Category Archives: Programming
Simple multi threading in C
Looking for a simple and easy to understand explanation of multi threading in C using pthread? Here is a great article with examples and a step by step break down. https://vcansimplify.wordpress.com/2013/03/08/pthread-tutorial-simplified/
argp basic tutorial – step by step
This document is by far the best out there on the net explaining step by step how argp works! http://ftp.yzu.edu.tw/nongnu/argpbook/step-by-step-into-argp.pdf Download actual file here If you have ever wondered where to find the text “Give this help list”, it is contained in the file argp_parse.c This file is in the argp folder in the package… Read More »
Automatically add include statements in your C code
A useful keyboard shortcut to automatically include header files is Ctrl + Shift + O (the letter, not the number). This #include line causes the preprocessor to “include” a copy of the header file such as stdio.h. The angle brackets indicates that the file is to be found in the “usual place” which is system… Read More »
Ubuntu Eclipse JVM terminated. Exit code=8
Getting this error message here? JVM terminated. Exit code=8 /usr/bin/java -Xms40m -Xmx384m -Dorg.eclipse.equinox.p2.reconciler.dropins.directory=/usr/share/eclipse/dropins -jar /usr/lib/eclipse//plugins/org.eclipse.equinox.launcher_1.3.0.dist.jar -os linux -ws gtk -arch x86_64 -showsplash /usr/lib/eclipse//plugins/org.eclipse.platform_3.8.1.dist/splash.bmp -launcher /usr/lib/eclipse/eclipse -name Eclipse –launcher.library /usr/lib/eclipse//plugins/org.eclipse.equinox.launcher.gtk.linux.x86_64_1.1.200.dist/eclipse_1503.so -startup /usr/lib/eclipse//plugins/org.eclipse.equinox.launcher_1.3.0.dist.jar –launcher.overrideVmargs -exitdata 31000a -vm /usr/bin/java -vmargs -Xms40m -Xmx384m -Dorg.eclipse.equinox.p2.reconciler.dropins.directory=/usr/share/eclipse/dropins -jar /usr/lib/eclipse//plugins/org.eclipse.equinox.launcher_1.3.0.dist.jar It is probably because you are using incompatible JVMs. You probably ran an… Read More »
Complexity and Simplicity in Design
“To achieve complexity one must master simplicity”. In any system, the building blocks are so important and this is reflected in nature all around us. Amino acids are the building blocks of protein. DNA the building blocks of cells and all living things. Elements of the periodic table the building blocks of the matter that… Read More »
Masking, bit-shifting and & 0xff00
If you are reading about endian (big and small) and seen snippets of code where you AND the input with 0xff00 and then shift the result say by 8 via >> 8 and wondering what the heck is going on then you’ve come to the right place. If you have an input such as int… Read More »
Meeting the creator of PHP
It was pretty neat to meet in person Rasmus Lerdof, shake his hand, hear him talk about his PHP story and also get some one on one time. I had no idea that PHP is basically C under the hood with a wrapper. He talked about how he is not a real programmer but really… Read More »