Posts

Showing posts from January, 2012

Heisenberg!

Image
This is a meme, the idea of which stemmed while reading one of my friend's quantum mechanics books.


In case you do not know what this thing is, you should ideally jump off a well. Otherwise you might want to check this out.

Alumni Research Talks 2012

Image
The day approaches! The first edition of the Alumni Research Talks is all set to kick off in five more days. This three day symposium shall see recent alumni of BITS Pilani converge from all corners of the world (literally) and talk about their experience in grad school and at their workplace.

The speakers include alumni doing research at some of the elite colleges in the world including UIUC, Stanford or are working/have worked at Google, Facebook, NetApp etc after passing out of BITS. While most of the lectures will be about their research/work fields, some lectures will also aim at clarifying the post-graduate scenario and hope to dispel all myths about fears and speculations that we BITSians tend to harbour.

ART is being organized by the Computer Science and Information Systems Department of BITS Pilani, with organizational support from us, the students of the Computer Science Association. All the lectures will be live-casted in the Goa and Hyderabad campuses (Dubai have their en…

Integrate C code within Java code using Java Native Interface in Ubuntu

Image
Java and C are two of the most widely used high level programming languages today. As a result of which there is often a need to incorporate the two in a single application. Like say for example, we have some legacy code written in C or C++ and we want to use certain features of the powerful Java platform within our application without rewriting the legacy code in Java.

This is where JNI or Java Native Interface comes riding in from the darkness on a fine steed and helps save the day.

This post serves to illustrate how to write a simple HelloWorld application using JNI wherein a certain function written in C will be invoked from a Java driver class.

And oh, this is for the Linux user. So if you are on Windows you should be better off Googling the same issue.

Prerequisites:

Needless to say, your system should have Java installed. I do not wish to digress and explain installing Java on Linux, there are a host of tutorials that will help you with the same.

So first up, we write a tiny Ja…

Setting up OpenCV 2.3 and Eclipse on Ubuntu 11.10

Image
This post seeks to help you in installing OpenCV and Eclipse and setting them up on Ubuntu 11.10 Oneiric so that you can begin development straight away.

What is OpenCV? OpenCV is a library of programming functions (in C and some C++ classes) mainly aimed at real time computer vision and image processing. It is a cross platform library, first developed by Intel and now supported by Willow Garage, and is free for use under the open source BSD license.

What is Eclipse? Eclipse is a multi-language software development platform comprising an IDE and lots of plug ins to help you develop applications in several widely used programming languages.

This walk through is aimed at helping you to set up OpenCV 2.3 (the latest version as of January 2012), and Eclipse CDT (Eclipse with the C Development Toolkit) on Ubuntu 11.10.

Ubuntu 11.10 does come with OpenCV 2.1 in the repositories, but we want OpenCV 2.3 ... so we first begin with adding a PPA for OpenCV 2.3.

Head over to the terminal and type

$…