Go to advanced search

by Heater
Mon Dec 09, 2019 9:39 pm
Forum: General discussion
Topic: Connect REST API on Pi to the Cloud
Replies: 22
Views: 375

Re: Connect REST API on Pi to the Cloud

N8SYG,

And happy holiday to you. Good to know the P2 is a thing. Now I gotta check it out!
by Heater
Mon Dec 09, 2019 9:27 pm
Forum: General discussion
Topic: Pi 4 a cautionary tale
Replies: 9
Views: 380

Re: Pi 4 a cautionary tale

HawaiianPi, Yea, don't do that either (even once). Well, it was an interesting, shall we say 'experiment'. The first time I inadvertently applied 12v to a Pi smoke came out and a protection diode unsoldered itself and jumped off the board. I realized my mistake pretty quickly and shut it down. Amazi...
by Heater
Mon Dec 09, 2019 9:04 pm
Forum: General discussion
Topic: Pi 4 a cautionary tale
Replies: 9
Views: 380

Re: Pi 4 a cautionary tale

Imperf3kt , ..simply twist gently using your fingers and it should pop off easier than opening a soda can... Clearly you have not done this enough times to know what can go wrong. Besides, quite often ring pulls on drink cans break where they should not. But that is not 30 to 70 dollars worth of dam...
by Heater
Mon Dec 09, 2019 8:43 pm
Forum: General discussion
Topic: How does the Raspberry Pi work?
Replies: 17
Views: 288

Re: How does the Raspberry Pi work?

I might have had some sympathy for youngdawg's question, without joking around, if they had responded to their post a couple of days ago:
https://www.raspberrypi.org/forums/view ... 8#p1576988
by Heater
Mon Dec 09, 2019 7:31 pm
Forum: General discussion
Topic: How does the Raspberry Pi work?
Replies: 17
Views: 288

Re: How does the Raspberry Pi work?

youngdawg, How does the Raspberry Pi work? As far as I can tell it goes like this: One feeds the Pi with energy. More specifically electrical energy, but let's skip the boring details. That causes some kind of attached "screen" to light up with weird and intriguing patterns. Then people poke at some...
by Heater
Mon Dec 09, 2019 6:19 am
Forum: General discussion
Topic: Pi 4 a cautionary tale
Replies: 9
Views: 380

Re: Pi 4 a cautionary tale

Also don't power your Pi up with a PSU set to 12 volts like I did. Twice!
by Heater
Mon Dec 09, 2019 6:03 am
Forum: C/C++
Topic: Simple example of class and object
Replies: 14
Views: 300

Re: Simple example of class and object

abhi143: Now can you give one simple meaningful example of class in embedded programming ? Your question does not make much sense. Or is very vague anyway. When people think of "embedded system" programming they often mean programming some computer that is part of some other system and running some ...
by Heater
Sun Dec 08, 2019 11:08 pm
Forum: Other programming languages
Topic: Dart Native on Raspberry Pi
Replies: 14
Views: 532

Re: Dart Native on Raspberry Pi

Interesting.

A log-log plot would be nice to see.
by Heater
Sun Dec 08, 2019 10:56 pm
Forum: C/C++
Topic: Simple example of class and object
Replies: 14
Views: 300

Re: Simple example of class and object

swampdog, The switches seemed too complex. They might arc.... Indeed. But switches need not be electrical. I have worked on control systems with a lot of hydraulic switches. Spool valves. It's amazing what logic you can do with those. Then you have issues of fluid pressure and so on. I have also bui...
by Heater
Sun Dec 08, 2019 10:18 pm
Forum: C/C++
Topic: Simple example of class and object
Replies: 14
Views: 300

Re: Simple example of class and object

swampdog,

Oh boy. That is a thing. You have introduced a hundred other concepts besides "switch". Volts, amps, batteries, lamps, the whole circuit simulation!
by Heater
Sun Dec 08, 2019 9:43 pm
Forum: C/C++
Topic: Simple example of class and object
Replies: 14
Views: 300

Re: Simple example of class and object

abhi143, We can say that SPST is an object of the class known as SWITCH. It has only one pin We can say that SPDT is an object of the class known as SWITCH. It has only three pins No. We cannot. An SPST is a kind of Switch. An SPDT is a different kind of switch. They are not the same class. Besides,...
by Heater
Sun Dec 08, 2019 5:07 pm
Forum: General programming discussion
Topic: Tatami Pi Fun.
Replies: 165
Views: 4558

Re: Tatami Pi Fun.

ejolson, ...if only to port Linux and then Rust... To be clear the Rust solution does not need Linux to run. It can run on the barest of bare metal, just like C. Being able to do that is a key design principle of Rust. It a "systems programming language" one can write an OS is Rust. Many are doing j...
by Heater
Sun Dec 08, 2019 8:36 am
Forum: C/C++
Topic: From python to C/C++
Replies: 5
Views: 162

Re: From python to C/C++

See "Basic Input/Output" : http://www.cplusplus.com/doc/tutorial/basic_io/

Note the example code in the section "Standard input (cin)"

Google is your friend.
by Heater
Sat Dec 07, 2019 11:32 pm
Forum: General programming discussion
Topic: Tatami Pi Fun.
Replies: 165
Views: 4558

Re: Tatami Pi Fun.

That damn fmax. fmax gets used as an array index. All array indices in Rust have to be of type usize. usize is defined to be a wide as as an address in ones architecture. That meant I had a lot of conversion going on before so that fmax could be used as an index. That was pretty ugly so I made fmax ...
by Heater
Sat Dec 07, 2019 10:34 pm
Forum: Other programming languages
Topic: Dart Native on Raspberry Pi
Replies: 14
Views: 532

Re: Dart Native on Raspberry Pi

Wow! That is above and beyond the call of duty. Brilliant.

Now we can tell how much global warming we are causing with different languages :)
by Heater
Sat Dec 07, 2019 10:21 pm
Forum: General programming discussion
Topic: Tatami Pi Fun.
Replies: 165
Views: 4558

Re: Tatami Pi Fun.

Nooo....what happened... I'm gaining cabbage! Something has to be done. The latest Rust version of limited.c runs in 4.8 seconds on a Pi 3B as a 64 bit program. Or 6.8 seconds as 32 bit. How could that be 12 seconds on a Pi 4? Meanwhile the Rust version prune.c runs in 4m43 which is the same as the ...
by Heater
Sat Dec 07, 2019 6:43 pm
Forum: General programming discussion
Topic: Concord 4 Programming
Replies: 3
Views: 108

Re: Concord 4 Programming

bluerock6#, Is there any knowledge on decoding the alarm trip protocol out of a GE Concord 4? I suspect that what you asking for help with is: a) Hard to do unless GE publish a specification of that protocol. Probably they do not. b) Against the law. To the second point please read the GE-Concord-4-...
by Heater
Sat Dec 07, 2019 3:08 pm
Forum: Other programming languages
Topic: Dart Native on Raspberry Pi
Replies: 14
Views: 532

Re: Dart Native on Raspberry Pi

OK. Fair enough.

Would be interesting to see the timing for fibo(42) nonetheless. Seeing as you have it set up and running.
by Heater
Sat Dec 07, 2019 11:55 am
Forum: Other programming languages
Topic: Dart Native on Raspberry Pi
Replies: 14
Views: 532

Re: Dart Native on Raspberry Pi

hippy, ...fastest execution isn't the most important requirement for everyone. So why did you open with micro benchmark timing results then? And no other suggestion as to why Dart might be attractive. It's not necessary to derail every language thread with 'my preferred choice of language is better ...
by Heater
Sat Dec 07, 2019 11:13 am
Forum: For sale
Topic: What does a used Raspberry pi 1 model B cost?
Replies: 4
Views: 244

Re: What does a used Raspberry pi 1 model B cost?

It's a Raspberry Pi 1 Model B. It's a collectors item. It's worth a fortune to some Pi collector somewhere. Put it up for auction. Put a reserve of a hundred thousand dollars or so on it. If you don't get a buyer stash it away safely, it will gain value over time. Conversely it's a seven year old pi...
by Heater
Sat Dec 07, 2019 9:34 am
Forum: General discussion
Topic: Apache Server, FTP -SSL Servrr, YouTubeTv, Netflix & Emulators on a Pi 4 4GB (Multiply if necessary)
Replies: 13
Views: 628

Re: Apache Server, FTP -SSL Servrr, YouTubeTv, Netflix & Emulators on a Pi 4 4GB (Multiply if necessary)

I know nothing about video editing except the people that do seem to be constantly maxing out their PCs to get things done faster, processor, memory, GPU, storage. Which leads me to believe that a Pi 4 will be disappointing in that role. I don't get the need to be running all you have listed on the ...
by Heater
Sat Dec 07, 2019 8:46 am
Forum: Other programming languages
Topic: Dart Native on Raspberry Pi
Replies: 14
Views: 532

Re: Dart Native on Raspberry Pi

I make that about 10 times slower than C or Rust on a Pi 3B: fn fibonacci(n: i32) -> i32 { match n { 0..=1 => n, _ => fibonacci(n - 1) + fibonacci(n - 2), } } fn main () { let n = 24; println!("fibo({}) = {}", n, fibonacci(n)); } $ rustc -C opt-level=3 fibo.rs $ time ./fibo fibo(24) = 46368 real 0m0...
by Heater
Sat Dec 07, 2019 1:24 am
Forum: General discussion
Topic: after electrical service interruption pivpn anomalous behavior
Replies: 7
Views: 188

Re: after electrical service interruption pivpn anomalous behavior

Are you sure noting has been upgraded at one end or the other?

I have know secure links fail a protocols change or encryption standards get removed as no longer deemed secure.

Could it be some router was damaged by said power shorts?
by Heater
Fri Dec 06, 2019 9:48 pm
Forum: General discussion
Topic: x86 apps
Replies: 17
Views: 663

Re: x86 apps

I hate to admit it but I agree with Dougie as well.
by Heater
Fri Dec 06, 2019 6:14 pm
Forum: General discussion
Topic: Data Usage and Production
Replies: 3
Views: 176

Re: Data Usage and Production

youngdawg, ...what data the Raspberry Pi uses specifically and how it produces new data. A Raspberry Pi is a computer. Typically computers do not produce data. They consume data as an input. They store and process that data. They output a transformed version of that data. Of course you don't find an...

Go to advanced search