Archive for the 'Programming' Category

Arduino SRF08

The speed of the sound in the dry air (20° C) is around 343 m/s. Send a short ultrasonic pulse at Frequency of 40Khz in the air, and try to listen to the echo. Of course you won’t hear anything (only a little click noise), but with an ultrasonic sensor the back pulse can be detected. If you know the time of the forth & back travel of the ultrasonic wave, you know the distance, divide the distance by two and you know the range from the ultrasonic sensor to the first obstacle in front of it.
Continue reading ‘Arduino SRF08′

Segmentation fault example


A tiny Segmentation fault study example (Page Fault).

This tiny code will produce a SIGSEGV (Segmentation fault) after compiling and executing

Create file example.c and fill it with this code: Continue reading ‘Segmentation fault example’

Web frameworks

For most web projects is django or Ruby on Rails the overkill and that is the problem!

There are a lot Micro Frameworks available without nasty and unnecessary stuff:
Continue reading ‘Web frameworks’