Go to advanced search

by Heater
Sat Aug 24, 2019 8:06 am
Forum: General discussion
Topic: External Antenna
Replies: 26
Views: 608

Re: External Antenna

I'm pretty sure it does not.

There is a reason WiFi routers come with antennas.

Anyway good enough for the intended purpose. Annoying when one needs to put the Pi in a metal box. Ah well.
by Heater
Sat Aug 24, 2019 6:16 am
Forum: General discussion
Topic: Why moving to 64bit?
Replies: 203
Views: 9587

Re: Why moving to 64bit?

Pimaxin, so should I download a 32 bit or 64 bit OS for the 4B? I think that if you have to ask that question it's better that you go with the mainstream and just use 32 bit Raspbian like most of everyone. If you should find a reason in the future why you need a 64 bit OS on the Pi then that is the ...
by Heater
Fri Aug 23, 2019 12:24 pm
Forum: Off topic discussion
Topic: Best Raspberry Pi Alternatives 2019
Replies: 32
Views: 816

Re: Best Raspberry Pi Alternatives 2019

hippy, That sounds slightly better expressed as "3 in every 20". Does it? In that moment before my brain has had time to do the arithmetic they both sound equally small to me. Not small enough to be negligible, not big enough to be an obvious lump like a quarter or a half. Perceptions differ of cour...
by Heater
Fri Aug 23, 2019 12:16 pm
Forum: General discussion
Topic: Why moving to 64bit?
Replies: 203
Views: 9587

Re: Why moving to 64bit?

Gavinmc42,

There is a growing tribe of people working on that very idea.

RISC V for the safer processor. Bootloader, OS and up written in Rust for the safer software.
by Heater
Fri Aug 23, 2019 4:06 am
Forum: General discussion
Topic: Why moving to 64bit?
Replies: 203
Views: 9587

Re: Why moving to 64bit?

I think assembler might required for timing attack resistance so that one can be sure the output code is actually what you want rather than being rearranged and/or optimized away by a compiler.
by Heater
Thu Aug 22, 2019 6:39 pm
Forum: Off topic discussion
Topic: Solder Question
Replies: 13
Views: 384

Re: Solder Question

According to this document http://www.farnell.com/datasheets/315929.pdf Multicore 20/80 solder has a higher melting point than regular electronics solder and is recommended for "lamps". Are you working in an old light bulb factory? Probably not much use for electronics, high temps damage components....
by Heater
Thu Aug 22, 2019 1:53 pm
Forum: General discussion
Topic: What Memory is required to run webserver
Replies: 7
Views: 211

Re: What Memory is required to run webserver

How long is a piece of string? A "web server", LAMP or otherwise, could mean anything from the configuration pages served up by your WiFi router to Facebook. In short, the resources you need to throw at it depend on what you expect it to do. I'm sure any Pi can run a LAMP stack to some degree. If pe...
by Heater
Wed Aug 21, 2019 6:59 pm
Forum: General discussion
Topic: unplug anytime ?
Replies: 21
Views: 572

Re: unplug anytime ?

The idea is to protect whatever media it is one is booting from, say the SD card.

Then you at least have a system that will boot and work with.

Data on another media, like USB stick, may well get damaged.
by Heater
Wed Aug 21, 2019 5:07 pm
Forum: Other programming languages
Topic: nodejs if else conditions
Replies: 3
Views: 460

Re: nodejs if else conditions

Excellent !
by Heater
Wed Aug 21, 2019 3:51 pm
Forum: Other programming languages
Topic: nodejs if else conditions
Replies: 3
Views: 460

Re: nodejs if else conditions

Looks like the uid response is an array. So you need to compare that uid response array against your expected uid array.

The are many ways to compare arrays in Javascript and net has them all. For example see here:

https://www.geeksforgeeks.org/how-to-co ... avascript/
by Heater
Wed Aug 21, 2019 11:21 am
Forum: General programming discussion
Topic: Liberation through Computer Literacy
Replies: 1093
Views: 41159

Re: Liberation through Computer Literacy

Paeryn, I have no idea what you are up to there but I have to dispute your use of the word "need". 1) The input is sorted, so if we scan the input words no sorting is needed. 2) For every new word create hash (by sorting the letters or whatever) then: a) If there is no anagram list existing for that...
by Heater
Wed Aug 21, 2019 7:57 am
Forum: General programming discussion
Topic: Liberation through Computer Literacy
Replies: 1093
Views: 41159

Re: Liberation through Computer Literacy

Hmm.. I see...

But, but, the input data is already sorted, it's a dictionary after all, so there is no need to do any sorting to get the anagrams out (except for sorting letters in words perhaps).
by Heater
Wed Aug 21, 2019 5:06 am
Forum: General programming discussion
Topic: Liberation through Computer Literacy
Replies: 1093
Views: 41159

Re: Liberation through Computer Literacy

How on Earth can juggling 650,000 words, only 6.6M bytes, manage to consume 2 giga bytes?!
by Heater
Wed Aug 21, 2019 5:01 am
Forum: General discussion
Topic: unplug anytime ?
Replies: 21
Views: 572

Re: unplug anytime ?

Yes it is. I have done it. It works very well. What you need to do is set up your root file system as read only. A search should find you many discussions about doing this on this forum. There are many ways to approach it. It might be a problem for you that with a read-only root you will have to fin...
by Heater
Tue Aug 20, 2019 6:22 pm
Forum: Off topic discussion
Topic: Before Raspberry Pi
Replies: 14
Views: 1703

Re: Before Raspberry Pi

Quite so, when it comes to the latency of hitting a key and having a character show up on the screen we have been living in a "latency dark ages" for decades: https://danluu.com/input-lag/ In that article he has been measuring latency of all kind of machines since the apple 2e. We are still not doin...
by Heater
Tue Aug 20, 2019 6:05 pm
Forum: General programming discussion
Topic: Liberation through Computer Literacy
Replies: 1093
Views: 41159

Re: Project Digital Apocalypse Not Now

The Digital Apocalypse is nigh! I've just spent some days, non-stop, reimplementing one of our "micro-services" in Rust. Formerly in C#. Which was not just slow but a tangled mess of inter dependent classes/objects with no discernible rhyme or reason as to why any particular functionality was put in...
by Heater
Mon Aug 19, 2019 9:03 am
Forum: C/C++
Topic: Looking for advice with C++ learning
Replies: 25
Views: 1197

Re: Looking for advice with C++ learning

The frightening conclusion, when you step back an look at it, and try to forget all your years of C/C++ experience, is that every single statement of a C/C++ program is undefined behavior. Unless that is, one can be sure that in the context the statement is in, and with the data it receives at run t...
by Heater
Sun Aug 18, 2019 10:24 pm
Forum: C/C++
Topic: Looking for advice with C++ learning
Replies: 25
Views: 1197

Re: Looking for advice with C++ learning

It's not clear to me that parsing the comments and matching it up to the code is any more simple than putting something into the syntax itself. If you have warning as errors it certainly does effect the generated code :) C++ now has an attribute for it: case 2: g(); [[fallthrough]]; case 3: // no wa...
by Heater
Sun Aug 18, 2019 10:08 pm
Forum: C/C++
Topic: Looking for advice with C++ learning
Replies: 25
Views: 1197

Re: Looking for advice with C++ learning

The code I presented above has no complaints at all when compiled on my Pi: pi@pi3-buster-1:~ $ g++ -O3 -o junk junk.cpp -Wall -Wextra -Wconversion -Wuninitialized -Wcast-qual -Wcast-align -Wundef -Werror -Wfatal-errors pi@pi3-buster-1:~ $ The idea that stuff in the comments changes ones compiler ou...
by Heater
Sun Aug 18, 2019 9:09 pm
Forum: General discussion
Topic: Why moving to 64bit?
Replies: 203
Views: 9587

Re: Why moving to 64bit?

ejolson, Encryption hardware in garbage collection - that is one of the weirdest concepts I have heard for a long time. Do they really mean no hash collisions possible? Or is it just that there might be one collision in all the runs of all all the Go programs ever in the age of the universe? It's be...
by Heater
Sun Aug 18, 2019 8:20 pm
Forum: C/C++
Topic: Looking for advice with C++ learning
Replies: 25
Views: 1197

Re: Looking for advice with C++ learning

jahboater, These issues apply to C as well, and the OP is a competent C programmer. Sorry, I missed the part about being a C programmer. Nothing new in C++ here, except that there are things like smart pointers to help. But that is the tragic thing. Nothing new in C++ w.r.t correctness and safety. I...
by Heater
Sun Aug 18, 2019 7:36 am
Forum: C/C++
Topic: Looking for advice with C++ learning
Replies: 25
Views: 1197

Re: Looking for advice with C++ learning

Of all the problems I have had in C/C++ I don't recall any of them being to do with printf. After all printf() generally produces the outout you want so if you get it wrong you notice immediately. sprinf() and friends, which format strings into buffers, well that is a whole other story... As much as...
by Heater
Sun Aug 18, 2019 6:24 am
Forum: General discussion
Topic: Tool like imgurn (for ripping disks) on pi?
Replies: 8
Views: 353

Re: Tool like imgurn (for ripping disks) on pi?

bomblord,

Okie dokie.
by Heater
Sun Aug 18, 2019 3:22 am
Forum: General discussion
Topic: Tool like imgurn (for ripping disks) on pi?
Replies: 8
Views: 353

Re: Tool like imgurn (for ripping disks) on pi?

We should probably not be advising how to violate copyright restriction here.
by Heater
Sat Aug 17, 2019 8:03 pm
Forum: General discussion
Topic: Lightweight word processor (alternative to LibreOffice Writer)?
Replies: 25
Views: 771

Re: Lightweight word processor (alternative to LibreOffice Writer)?

bjtheone, The one that I really don't understand is vim. Take all that is wrong in the world and tack on a GUI. WISIWIG with modes... I have no idea what you are talking about. The vim I know and love has no high res graphic or WISIWIG. It's just good old fashioned text as we might have seen or our ...

Go to advanced search