Wednesday, November 30, 2011

C Program to find endianness ...

#include stdio.htypedef union s{ int i; char c[4];} Utype;int main(){ Utype u; char c; u.i = 0x12345678; printf(" %p - 0x%X\n", &u.i, u.i); printf(" %p - 0x%X\n", &u.c[0], u.c[0]); printf(" %p - 0x%X\n", &u.c[1], u.c[1]); printf(" %p - 0x%X\n", &u.c[2], u.c[2]); printf(" %p - 0x%X\n", &u.c[3], u.c[3]); c = (u.i & 0x00000078); if(c == u.c[0]) printf("\n***LITTLE ENDIEN***\n"); else printf("\n***BIG ENDIEN***\n"...

Friday, November 11, 2011

Python Digital Circuit Simulator

             If anyone is looking for the digital circuit simulator in python can refer to my project on google code hosting Pydlcs. It provides basic digital elements like AND, OR gates, some combinational  elements (e.g. half/full adder, mux/demux) and sequential elements (e.g. D-flipflop). You can create and simulate any digital circuit using this basic elements in this simulator.HAVE FUN  ...

Wednesday, September 7, 2011

PDF Annotator for Linux

        I was stifling for so long finding good PDF annotator for Linux and finally I found one good annotator named PDF-XChange Viewer. Unfortunately its not the FREE one and also not for Linux so... found the way around, installed its FREE version in wine. It's even better than AcrobatX. Try it !!!...

Wednesday, January 12, 2011

Developing mobile applications in J2ME- Installation Help Ubuntu

I just spent two hours trying to build a Hello World for the Java ME (Micro Edition) platform. A fate I don’t wish you, gentle reader, to suffer, I humbly present this step-by-step guide to starting Java ME development on Ubuntu 9.10. I specifically target Ubuntu (or other Linuxes) because all the guides I could find online assumed Windows, which appears to have some different requirements (what happened to Write Once, Run Anywhere™?)Firstly, I hate IDEs. I couldn’t get the command-line compilers (javac and the like) working — sure I could have...