BlackBerry Controversy in India

Indian Govt. has asked RIM (maker of BlackBerry smart phone) to provide access to the data going through its servers for intelligence purposes and it appears that BlackBerry has accepted the demands. Due to the lack of understanding of encryption on the part of Indian media, misleading and ambiguous reports have been published on the same. This blog post is an effort to clarify the same.
Read More

Animation in diagrams (presentations in Latex)

While most people draw diagrams in Xfig (or GIMP) and include them in LaTeX, they can be drawn directly in LaTeX (using tikz package).
A major advantage of doing that is animation (\pause) is possible when using these diagrams in presentations(based on beamer)

Following is an example demonstrating that (code released under BSD license)
Read More

Basic GDB Tutorial

So, you believe there are bugs in your C/C++ code or you have encountered SEGFAULT while executing your code. What will you do?

  1. write a lot of printf statements at various places in your code under suspicion
    OR
  2. use gdb (GNU code debugger)

This article is about Approach 2
Read More

Programming in Linux for newbies

This is meant to be a small guide (though not exhaustive) for students beginning to program on Linux system. Particularly for those, who have done extensive C/C++ programming in Windows, using the Borland/Turbo interface or the Visual C++ interface, and are greatly intimidated by the Linux platform.
Read More

GCC Hacks

A small list of GCC Hacks

  1. g++ -o helloworld helloworld.cc produces helloworld binary from helloworld.cc C++ file.
  2. use -Wall switch turns on all warnings(potential errors) in the code (like unused variables)
  3. g++ -E helloworld.cc generates output code after pre-processing stage.

Read More