The Garden Pi

This is a small project that will introduce you to IoT and on how to use WebIOPi and Raspberry Pi to create a small and cool project. These are the components that you will require for this project: Raspberry Pi B+ ( Any Rpi should work) 3-6V Submersible Mini water pump Wifi Adapter  (You can skip … More The Garden Pi

Range Based For Loops in C++11

Here is a short post on the range based for loops in C++. I recently learned about range based for loops in C++11 standards. These are nothing but easier constructs on writing loops. You no longer have to write: for(initialization;condition;update) The syntax is: for(declaration:expression) Although this looks like a very simple feature there are a few things … More Range Based For Loops in C++11

Calling a function On termination of main() in C

Dear readers, A friend of mine taught me this new “trick” where you can call a function when the main() in C exits. In the Library “stdlib.h” there exists a function int atexit(void (*func)(void)) the “func” is any function without any arguments. The atexit() calls the function that you register as soon as the main() … More Calling a function On termination of main() in C

2014 in review

The stats helper monkeys prepared a 2014 annual report for this blog. Here’s an excerpt: The concert hall at the Sydney Opera House holds 2,700 people. This blog was viewed about 27,000 times in 2014. If it were a concert at Sydney Opera House, it would take about 10 sold-out performances for that many … More 2014 in review