shiftleftplusone

Results 28 comments of shiftleftplusone
trafficstars

Geany is an IDE for C/C++. https://www.geany.org/ my Geany settings for compile and build are: compile g++ -Wall -pthread -I/opt/vc/include -I/opt/vc/include/interface/vmcs_host/linux -I/opt/vc/include/interface/vcos/pthreads -c "%f" -lshapes -lwiringPi -lrt -lpigpio build g++...

For `srand(seed)` - resp. `randomSeed()` - , perhaps 0 is handled seperately to avoid division by zero, but **often this following is common practice** to PRNGs: seed== 0 // 0:...

IMO we actually needed to have srand(0) for "randomized" seeding and srand(-1) to restore the last random series These C functionalities seems to be missing yet.

yes, I only know the common cstdlib C commands `rand` and `srand`. But about the (0) I stand corrected, I muddled it up - it was `time(0)`, not just (0),...

I don't see a "CANCEL" button in my IDE - so how does it work? I also often run into this issue when bigger programs getting stuck during upload. https://github.com/arduino/Arduino/issues/3771...

I already tried that "click upload a 2nd time" on my Due without knowing that that was a trick which actually was supposed to work, nonetheless, it didn't - when...

since the new Raspi kernel has been released in April, there is eventually a SD cloning tool in the menu bar which works fine even for cloning images on different...

thank you, but since the latest Jessie releases have that great partition cloning tool in the launch panel I'm absolutely fine with this feature, both for bigger target SDs and...

no idea if this helps, but: for adding (concatenating) ANSI strings I'm using my own stradd() funktion: ``` char * stradd(char * s, int n, ...) // "adds strings" s=sumstring...

better then implement a variadic "real" printf() subsidiary instead, feat. then also Serial.printf("%s %s %s %d !", "Hello", "World", "in the year", 2015) That actually would finally make the Sketch...