|
KSJEclipse |
I've been using Eclipse for all development for a long time now. Moreover, I was also using SourceJammer as the versioning system of choice until some time ago. So, I wrote a SourceJammer plugin for Eclipse: for lack of a better name, I call it KSJEclipse. Now I don't need to leave the Eclipse IDE to perform most versioning actions. I can checkout/checkin, see the version status for all files in the projects. Makes my life really easy, one less program to leave open, file status is instantly visible speeding up development. The binaries, documentation and source is available at
SourceForge.
|
Editors and IDEs |
I have been using the Eclipse IDE for all development for a long time now: Java, C++ as well as UIs. Well, what can I say, I find it much much better than Netbeans. First of all, the IDE is very appealing. Secondly, its extremely powerful, and fast. So now, Linux or Windows, Eclipse it is :-) On Linux , I like to use Xemacs and Vi. I used to carry out C/C++ development and LaTeX typesetting on Xemacs, and all Java development on NetBeans. On Windows, I also like to use EditPlus2, which is an amazing editor, customizable for nearly every language. I use Windows to carry out all my work in Adobe Photoshop, Macromedia Dreamweaver, Macromedia Flash, Visual Basic development, and some of the other Windows-only tools. Other useful tools are Putty for SSH and PSFTP for secure ftp. |
C/C++/Java/Prolog: |
After GWBASIC, worked shortly on QBasic, didn't didn't get enough time to learn it, and then, I stepped into the world of C/C++ and it was a new world! Object-Oriented Programming, an awesome graphics library, control functions for the keyboard, so much more....I was in Heaven! I had access to Borland's TurboC++ at the time and wrote some amazing programs. I wrote applications with nifty graphics, database accessibility, some simple games, system manipulation, file management and much more. I found C and C++ to be so powerful that I almost never felt the need to learn another OOP language. But then I also discovered the sweet world of Java.... I would always refuse to learn Java, because I considered the coding to be bloated and the programs to be slow. True, it was supposed to be platform-independent but as a developer I did not think of the application of the programs I wrote --I was only concerned with enjoying the development experience. And I considered myself an expert in C/C++, so why learn another OOP language? Well, I had to learn it -- I was assigned a project which was to be written in Java and was to include an interface written using Swing. So I worked on Java, and I liked it. In the real-world portability is a major issue, and Java solves that issue. Moreover the sheer extent of libraries that are available to you in the Java framework make it very easy to do a lot of tasks. Now with skinnable look and feel decorations for Swing, with both Eclipse and Netbeans providing rich control application platforms, along with Eclipse's SWT, Java applications can look good too. But both C/C++ and Java have their own niche. while C code is definitely amaaaaazingly fast, java code is portable. Its a cinch to write embedded software in C, not so in Java. But right now, I enjoy both equally :-) I have always had an interest in AI, and so have given my share of attention to Prolog. But this language didn't really appeal to me, 'coz I couldn't see how it would be applicable in the real world, when it couldn't even provide a decent interface to the user. But I did get to be pretty good at programming in it. Then I didn't really develop on it for some time. However, I have recently found GNU Prolog which is a compiler for Prolog, allowing socket connections to Java and C/C++ programs. So I can actually use the power of AI provided by Prolog and combine it with the power of object-oriented languages. Having studied prolog twice (undergrad and master's) I am rapidly picking it up once again, and am enjoying the experience that this powerful combination provides. |
Visual Basic |
During my sophomore year (2000), I developed an interest in Visual Basic -- the ease of designing powerful applications with full-fledged interfaces appealed to me. I developed several applications, the most significant of which are listed below: 1. Sleep Program -- I wanted to be able to sleep to music. This
program automatically shut down my computer after a specified interval
of time. 2. Library Management System -- I submitted this application
as my final project in junior year. The name explains all. Uses an Oracle
database. 3. Buddy -- This is one of my masterpieces. I studied Microsoft's
API for Speech and MS Agent. It displays an animated character on your
screen, and responds to voice commands to control your computer. When
it starts up, it scans your computer for all installed programs. It employs
Windows API calls to control the computer so that you can open any program
just by saying its name. You can minimize/maximize/close windows, shutdown/logoff
your computer, control the screensaver, and so much more. 4. createPLS -- I run a mp3 server so that I can listen to my
music no matter where I am. The server has a php/html web interface. So
to play a song, I just have to drag its link into winamp on windows and
xmms on linux. This process of dragging each and every song one at a time
was getting to be a real pain. So to solve this problem I developed this
application which scans a specified directory tree for mp3 files and generates
playlist files in every directory, named the name of the directory they
are in. Can also automatically delete all PLS files in any tree. Now all
I do, is drag and drop the PLS file into winamp/xmms and automatically
get all the songs in my playlist :-) This program can also be executed
remotely. SleepProgram, LMS and Buddy have been written for Windows 98 and have not been tested on other version of Windows. createPLS has been developed on Windows XP but should work on all versions of Windows because it does not make any platform-specific API calls. |
Research Assistant: AI Robotics Lab, Texas Tech University |
In the year 2002, I enrolled at Texas Tech University to get a Master's degree in Computer Science, majoring in AI Robotics. Dr. Larry Pyeatt agreed to be my Advisor and I got a small office in the AI Robotics Lab. As a RA in a robotics lab, I had to work on, you guessed it, robots! There were several projects going on at the same time: Book list: Projects: 1. Dead Reckoning & Time Based Navigation (Adjudged top of the
class) 2. Line Follower (Adjudged top of the class) 3. Mapping & Obstacle Avoidance Wandering (A Grade) I also gave a few presentations during this period, two of which are: A Water Management System was to be developed as a joint project between the Department of Civil Engineering and Computer Science. As a RA, the remainder of this project came into my hands. The control system was to take data from pH, pressure and ORP sensors and insert the readings into an Oracle database. The system was also to provide a portable application and a web-accessible interface to monitor and control the system. This system was developed in C++, with the user interfaces written in Java/Swing. The software interfaces with the physical sensors using CORBA objects. I developed the Java/Swing interface making good use of JFreeChart and JFreeReport. After a couple of prototypes I was able to really improve on the interface, displaying a lot of data utilizing minimal screen space. I also developed the php/oracle web application so that user's can view the data from anywhere in the world, only requiring an internet connection. |
Distributed Computing |
There were three class projects in this course at Texas Tech University. A very interesting subject where I actually applied and implemented what I had learnt about distributed computing. Threads, Marshalling, RPC, UDP Sockets etc. were implemented in the class exercises and projects. 1. Client Server Communication - being the first project, this
was relatively basic construction of servers and clients communicating
via sockets. There are three exercises with an increase in the level of
difficulty for each exercise. 2. RPC Communication -- developed a math client/server architecture
which would accepts messages containing an operand and arguments. It would
process the instruction and return the result message to the client. This
project employs Sun RPCs. The arithmetic expressions typed at the client
side generate RPCs to the corresponding procedures on the server. 3. Multiple Servers -- Clients send a math expression message
to a dispatcher server, which parses the message and sends the operands
to the corresponding add, subtract, multiply or divide servers. The expression
is processed on the intended server and the result is sent back to the
dispatcher and then back to the client. This project demonstrated communication
between multiple servers and multiple clients with one central server.
|
Reinforcement Learning |
Reinforcement Learning is that branch of Artificial Intelligence where the agent learns with experience, and with experience only. No plans are given, there are no explicitly defined constraints or facts. It is a "computational approach to learning from interaction". The key feature of reinforcement learning is that an active decision-making agent works towards achieving some reward, which will be available only upon reaching the goal. The agent is not told which actions it should take to reach the goal, but instead it discovers the best actions to take at different states by learning from its mistakes. The agent monitors its environment at all times, because actions taken by the agent may change the environment and hence affect the actions available to the agent from the environment. The agent learns by assigning values to states and actions associated with every state. When the agent reaches a state that it has already learnt about, it can exploit its knowledge of the state space to take the best action. At times the agent takes random actions: this is called exploration. While exploring the agent learns about those regions of the state space that it would otherwise ignore if it only followed the best actions. By keeping a good balance between exploitation and exploration, the agent is able to learn the optimal policy to reach the goal. In all reinforcement learning problems, the agent uses its experience to improve its performance over time. Reinforcement Learning: An Introduction by Richard S. Sutton and Andrew G. Barto Final Project: |
Multimedia Programming |
This was an amazing class!! The projects required implementation of the theoretical concepts learned into real world applications. Some of the concepts I learned in this course were data compression and coding, image and video indexing and retrieval and multimedia information systems. A brief description of the projects is given below: 1. Voice Over IP -- Interface with the audio device driver and realize real-time communication by sending audio packets over the Internet. source 3. Lena -- Images constructed directly from wavelet coefficients. Lena was transformed using Daub4 filter for two-level wavelet decomposion. images 3. Indexing of Scenes of a Compressed Video Sequence -- The objective
of this project is to detect scene changes in a compressed movie and index
them, with the output being presented as a mosaic of images. The compressed
movie sequence is a Mpeg-1 file. The program scans the MPEG-1 video sequence
and extracts frame data, identifying scene boundaries automatically without
decompressing the video data. For each scene, the program selects a picture
as its representative image for use in the index. Then the program decompresses
the chosen pictures and reduces their size to place them in the mosaic.
The project must return output in the form of YUV files of the final mosaic
image. This image is finally viewed by converting the separate files to
a ppm image. The programs were written in C++ and compiled using g++ version
3.2.2 on a Redhat 9 machine. The project was successfully ported to Solaris.
|
Neural Networks |
An Artificial Neural Network (ANN) is an information processing paradigm that is inspired by the way biological nervous systems, such as the brain, process information. The information processing system is composed of a large number of highly interconnected processing elements (neurons) working together to solve a specific problem. ANNs, like people, learn by example. An ANN is configured for a specific application, such as pattern recognition or data classification, through a learning process. Neural networks, with their remarkable ability to derive meaning from complicated or imprecise data, can be used to extract patterns and detect trends that are too complex to be noticed by either humans or other computer techniques. A trained neural network can be thought of as an "expert" in the category of information it has been given to analyze. Final Project: |
TinyOS |
||
When I started working on TinyOS, there were about 40 persons using it, and now there are hundreds. TinyOS uses a C-style programming language and a custom compiler NesC. TinyOS was initially developed by the UC Berkeley EECS Department, as an event-based operating system for use with embedded networked sensors. TinyOS runs on motes which are available from Crossbow Technology Inc. I also wrote TinyOS programs for the MICAs, the MICA2s, the MICA2DOTs and the newer Telos motes. TinyOS is one of the most interesting technologies that I have had a chance to work with. It gives the power of a computer to a tiny mote. Networking, Sensing, File System, etc., are available on these motes via TinyOS. Although I worked on several projects involving sensing, data collection, networking and serial communication, the two most significant projects that I developed were: 1. TCP -- reliable communication between two motes. Like any packet-transfer-network, packets can get lost. This layer allows for reliable communication between two motes, thereby completely eradicating the chance of data loss. 2. Routing -- The motes can be programmed to multihop packets. Say there are three motes aligned like this: A <---> B <---> C. Now I want to send a packet from mote A to C, I cannot send it directly because mote C and A are not within each other's radio range. So A will simply broadcast the message, B will receive it, detect that this message is not for itself and rebroadcast it. Then mote C will receive all packets being broadcasted from anywhere, detect that one of the packets is for itself, sent by mote A and so, will use it, instead of rebroadcasting it. However, the problem becomes much more complicated when there are many motes involved and you want the data packets to reach the relevant mote in the shortest possible time, without losing data due to collision. Developed a routing protocol which would run on each mote and figure out the best route to send a particular packet, to achieve the above goal. This was my first experience with embedded software development, and it felt good. The feeling that you get when you see that some piece of code that you have written is actually making something happen (in a physical sense), is different from a regular computer program. With embedded systems, YOU are the operating system, telling the tiny pieces of hardware what to do with what parts of which data! Now that's control! |
MSP 430 |
After my experience with TinyOs, I am really into hardware programming. I was delighted when I was assigned another embedded systems project. I was to write code directly for Texas Instrument's MSP430 microprocessors. So, no computer in between, no OS, just plainly code this pin, code that pin, input these bits and output those bits, light this led and blow that horn! It was amazing! I was to use TI's MSP430F449 Board which has 60k Bytes Program Flash, 256 Bytes Data Flash, 2k Bytes RAM, a JTAG connector, an LCD, one LED, 4 buttons, one buzzer and some more stuff. Now the hard part was understanding the processor manual. That took some time. There are no guidelines, just instruction A does this, pin B is for that, Apply High here, and a Low there -- the manual is not for beginners! But I got the hang of it and the first productive program I wrote for the processor was the LCD library. The programming is C style but uses native MSP430 mappings. 1. LCD Library 2. Clock Library 3. Buttons Library To compile and install the code I had written I had to install the mspgcc toolchain for TI's MSP430 MCUs. I also had to install the JTAG library so that I could communicate with the processor for application management and debugging. |
I2C: communication between two bare-bones MSP430 processors |
Well, I had two MSP430F449 Boards so now the next question was, how to make them talk to each other comfortably so that they can have a lasting relationship? I didn't have pins to spare, they were all being used for other stuff (sensors, leds etc). So how do I make the two MCUs communicate reliably, efficiently using the minimal number of pins? Philips had the answer: the I2C bus. In the early 1980, Philips created the I2C bus. The I2C bus is a control bus for communication between various integrated systems in a system. It is a two-wire (one for data, one for the clock) bus and the protocol provides upto three levels of data transfer rate: upto 100Kbps, 400Kbps and 3.5Mbps. Two simple lines can connect all the ICs in a system, because any I2C device can be connected to a common I2C bus. A Master device on the bus can then communicate with any Slave device. The I2C bus protocol was ideal for this project. However, the MSP430s did NOT have any I2C controller. So now what? Here's what: I got down to writing a completely software implementation of the I2C bus. A longer description of the protocol is given here. The I2C protocol defines a master-slave relationship between components, i.e. the master controls the clock, and asks for data from the slave or sends data to the slave. The slave simply responds to the master's requests. Only the master can initiate communication. There are usually many slaves on an I2C bus and only one master. But this project wanted more! Any of the two MSP430s should be able to become the master, taking control of the bus and making the other the slave. Took me two weeks, and 3 prototypes, but I did it! The entire application is completely interrupt-driven. Initially both the processors are in the slave state. Then one of them reaches a condition where it would either need to send or receive data to/from the other processor. So this processor becomes the master by dropping the data line while keeping the clock line high. The slave intercepts this signal as the start condition of the I2C protocol. Then regular I2C transfers take place. The master sends some bits, raises/lowers the data/clock line as required, the slave responds and raises/lowers the data line to send/receive the data (according to the protocol). At the end of the transfers, the master raises the data line while the clock is high. The slave understands this as the stop condition. The master processor then reverts back to the slave state. Once again both processors are slaves and anyone of them can become the master! A finite-state machine in the program maintains the state changes of the bus and the processors. The program is written entirely in C for MSP430s and can only be compiled using the msp430gcc toolchain. It was amazing to see one of the processors display a message on its lcd and then, you hit a button and the same message appears on the other processor's lcd. The two processors are connected using only two wires. Since I wrote the clock library, to be completely configurable, I can really slow down the I2C communication and achieve data transfers between processors even if the distance between them is very high, and even if there are many devices on the bus. Since my application conforms to the exact I2C standards defined by Philips, it will work beautifully even if a hardware I2C device is connected on the bus. |
LaTeX |
| Over the past few years, I have attained a certain degree of expertise writing papers in LaTeX. All papers I have written have been typeset using LaTeX. LaTeX is a document preparation system for high-quality typesetting. Since it is not a word-processor, the writer does not have to worry about the layout of the document. The writer's job is to get the content right, and to place it in a proper place in the document. Latex takes care of the rest. Global customization allows the user to apply changes to the entire document just by changing a few lines. While it does have a bit of a learning curve, I have found LaTeX to be a much better program for document preparation (especially, if the document has mathematical equations), than any word processor I have used. |
Web Application Development |
Tomcat JBoss Application Server JBoss Portal I have worked on every stage of an enterprise web application development process. From database administration to making javascript menus, I've designed and developed applications. Most of the web applications I have written employ the following technologies: MySql PostgreSQL C-JDBC Hibernate Now you can either write line after line of complex sql statements in your java code and access your database via jdbc or you can map your object classes to database fields in hibernate association xml files and let hibernate do the job for you. Thats the motivation behind any object-relational system. Hibernate lets you use your class structure to access the database. You define the methods that are available to the Database Access Objects to extract/push data from/to the database. I have used Hibernate extensively. All web applications I have written use Hibernate. The basic structure of the hibernate part of a web-application can be downloaded here. It shows the mapping of a sample "users" table, and DAO methods, and the hibernate.xml file. Struts Freemarker HTML/DHTML/JavaScript/CSS Log4j Other technologies that I have worked on are Maven, Pluto Portal, uPortal, Struts Portals Bridge, PHP and more... |
Mailing Lists: |
|
| C-JDBC Users | |
| Freemarker Users | freemarker-user@lists.sourceforge.net |
| Jetspeed Portals Users | jetspeed-user@portals.apache |
| Log4j Users | log4j-user@logging.apache.org |
| MspGcc Users | mspgcc-users@lists.sourceforge |
| Struts Users | user@struts.apache.org |
| Subversion Users | users@subversion.tigris.org |
| TinyOS Help | tinyos-help@Millennium.Berkele |
| TinyOS Users | tinyos-users@Millennium |
| Tomcat Users | tomcat-user@jakarta.apache.org |
| Portlets Group | portlets@yahoogroups.com |