What is this page?
This page lists the source code for the weekly language classes sent to ILUGC mailing list. It is the local Linux user's club in Chennai, Tamil Nadu, India.
You can find the archived posts here.
List of syntax highlighted source code files
Print ASCII characters or lines at random/slow intervals
randtype.cFile alteration monitor/track directory changes
filealter.cSimple file I/O using C
fio.cA sample editline library usage with history features
editline-sample.cA sample dbopen(3) program with hash table in main memory. The semantics are similar for a binary tree or record no. database model. Check the man pages of hash(3), dbopen(3) and btree(3).
hashmcast.cA program to read the serial port on OpenBSD. On linux I guess the same code will work if you replace tty00 with ttyS0 or something.
footpedal.cSame thing as above for Windows. It is a lot easier. I tested it on the Cygwin shell by using the -no-cygwin switch. That way the code is compiled as MingW program which is very close to native Windows stuff.
winserial.cA simple rtspproxy single process model for running in constrained uClinux environments like webcams version 1 with multicast
rtspproxy.cA simple rtspproxy single process model for running in constrained uClinux environments like webcams version 2 with unicast
rtspproxy2.cA patch to mplayer for adding footpedal support used in medical transcription. Footpedal is a simple passive device with a serial interface. It has three pedals, the left pedal is connected to the CTS pin(Clear To Send) #8, the middle pedal is connected to the DSR pin(Data Set Ready) #6 and the right pedal is connected to the DCD pin(Data Carrier Ready) #1. When you look at a serial port, the broader side has the top 5 pins(1 to 5) and the bottom row has the pins numbered from 6 to 9. This code is for Windows. Only footpedal.c changes between OpenBSD and Windows.
Alternately download the Zip file here
A sample UNIX daemon that serves multiple simultaneous peers in which one peer can send an image file to another peer who displays it on the terminal in full screen. Uses the tool qiv(1).
Alternately download the Zip file here
A background DNS query utility
bgqueryThe eye project: This project stores problem areas in the eye by marking it with one of 4 defect possibilities and an area is chosen on the eye. Once this is identified the doctor submits into a CGI backend which stoers a marking as an SQLite row. The columns in the DB identify the top left corner and the bottom right corner of the rectangle marked in the eye. There is also a retrieve.html which retrieves the markings by the doctor once you query based on the patient ID or name. The markings are returned as a JSON array. Check out the syntax highlighted source files. This uses the imgAreaSelect jQuery plugin. Without that plugin I cannot imagine doing this so easily and gracefully. Many thanks to the author of the fabulous jQuery plugin.
The source of the CGI and html/css/js files here
index.html