So a situation came up at work, it’s a simple enough thing, but I decided that I did not know it thoroughly and in-depth. This post is a result of studying and experimenting for that. Say we have ...
-- Douglas Adams, The Hitchhiker's Guide to the Galaxy
Performance of various strategies of condition based function call
Accessing large memory in loops
Going through a 2-D array seems trivial. There’s an inner loop and an outer loop. However, I finally got to understand some concepts I had learned in computer organization theory when I actually tr...
An experiment in threading
An experiment in threading Introduction I was working on a toy code problem for a simulation for a small contest: We need to find with what probability any two random points chosen inside a squar...
A list of many freely available online references pertaining to topics in Embedded Development
References to learn / revise concepts in C Beej’s C Guide GNU C Manual Eric S. Raymond’s “The Lost Art of Structure Packing” Computer archtecture concepts YouT...
Pointers in C
[WIP] The concept of pointer in C is one of the most feared concepts, but with a little bit of effort, it’s easily understood. However, even after understanding, because there are many small conce...
Hello World to OpenCL
This is going to be a very basic post showing how to set up an OpenCL development environment. The environment assumption I’m gonna work with is: You have Windows installed You have an Intel ...
Notes From Tensorflow Study (WIP)
Image recognition using Shallow Neural Network import tensorflow as tf Improving Computer Vision using CNN With a shallow neural network, our accuracy will not be great on the validation set. T...
PIR based light control simulation
flowchart LR P1[PIR1] P2[PIR2] C1[Controller1] C2[Controller2] L1[Light1] L2[Light2] G[Gateway] Cl[Cloud - UI] U[User] P1-->C1 C1<-->L1 C1---G G---Cl Cl---U P2-->C2 C2<-->L2 C2---...
CheatSheet - C Problems
Write a program to count number of high bits in given unsigned integer input We will first show the optimum solution #include <stdio.h> int numones(unsigned int val) { ...
CheatSheet - ZigBee
ZigBee Communication Type of WPAN (Wireless Personal Area Network), usefull for Low power, medium to long range, low data rate Mesh communication, for example sensor networks and building autom...