Monday, December 15, 2008

My Projects

Hi,

this is a link to a website, where i have uploaded my recent projects and relevant codes and project description. please view them if you are interested

http://suja.synthasite.com/index.php

Monday, October 13, 2008

glsl with mingw

GLSL Installation on windows vista (32bit)

This installation direction is for installing opengl shading language with windows vista using mingw


opengl support for vista

1)download the current drivers for your graphics card from www.support.dell.com, to fully use the hardware acceleration of your graphics card.

2)check in c:/windows/system32/ for opengl32.dll, glut32.dll. They will be automatically installed in vista. If not, install the driver from support.dell.com.

mingw installation

3)install mingw (if u dont want to go through the trouble of visual studio usage, or you are comfortable with command line usage, like me :) ) from http://sourceforge.net/project/showfiles.php?group_id=2435 (automated mingw installer). run the file, and it will do the work for you.

4)from the same url, install mingw utilities. it has reimp command which is used to convert *.lib files to *.a files. tar.gz files can be extracted in windows using a freeware 7-zip which could be installed from http://www.ofzenandcomputing.com/zanswers/1072

glut installation

5)http://mywebpage.netscape.com/PtrPck/glut.htm install glut from this page, and use reimp to convert glut32.lib to libglut32.a.
Command: /mingw-utils/bin>> reimp.exe glut32.lib
copy this libglut32.a file to mingw/lib directory, and replace the old libglu32.a file. The old files gives out some "undefined reference to `__glutInitWithExit@12'" errors, which the new file eliminates.Copy the dll file to c:\windows\system32 and .h files from GL/ to c:/mingw/include/GL/

msys installation

6)run msys.exe file from http://prdownloads.sourceforge.net/mingw/MSYS-1.0.10.exe?download to install msys. msys is used to build glew from the source, since using glew binaries for windows gives out errors of the form "undefined reference to `_imp____glewGetShaderiv'". installation process will ask for mingw path. give the full path c:\mingw or whichever path mingw is installed in. msys will get installed into path/msys/1.0. Run the msys batch file. this is a shell program.

glew installation

7)download glew source file,(latest:1.5.0, has support for opengl 2.0, which inturn as support for glsl 1.2) zip file from http://glew.sourceforge.net/, and extract the folder to somewhere inside /msys/1.0. open msys shell program (batch file), and Go to the folder where the makefile in glew directory is present. cd /home/glew. Run the command: make

now copy the GL/glew.h, glxew.h, wglew.h to mingw/include/GL/ folder. copy lib/libglew32.a, libglew32.dll.a files to mingw/lib. copy glew32.dll to c:/windows/system32 folder.

thats all folks. your opengl shader program should compile and execute beautifully in windows vista.

other links


for furthur information please go through the following links

about opengl installation: http://www.opengl.org/wiki/index.php/Getting_started
about opengl usage: http://www.dgp.toronto.edu/~mjmcguff/learn/opengl/
about mingw setup: http://www.jumpstation.co.uk/info/mingw_setup_guide.html

Monday, February 11, 2008

Wubi review . part 2

continued from review part1
The most awaited 1gb ram came home in a nice package. I was very excited to experience fast performance, that I forgot one simple detail. Screwdriver to open the computer module. The screw is very small that none of my screwdrivers would fit. So I had to wait until yesterday to purchase a precision screwdriver set from walmart for 5$. Today morning, I opened the module at the back of my dell inspiron 600m laptop, and installed the new 1gb ram. starting windows showed me 1.5 gb of total RAM. "whew". Now I can continue the wubi ubuntu installation.

For the past few days, my windows client could not detect any wireless networks in range, and was asking me to switch on my radio, I tried to troubleshoot this for some time, but none worked. So I took my other laptop and searched in the net for ubuntu offline installation proceedure. I searched on my laptop and found the offline installation file, saved the exe file, and this offline iso file in the same folder, and started installing in 6gb space.

As the system rebooted, I went inside ubuntu, and the installation started. Last time the system hung when it was trying to install softwares for ubuntu. So I was biting my fingernails when the system started "installing softwares" proceedure.

1% completed
2%
3%
4%
6%
.
"Please God, dont let it fail"
.
.
8%
9%
"I will come to temple this weekend, if the installation goes smoothly"
10%
11%
I am praying with mumbled sound
12%
.
.
.
.
.
25%
"whew 25% completed, plz God take this through 100%."
.
.
.
.
.
.
30%
"It is in your hands God. plz plz plz dont fail me"
.
.
.
.
.
40%
I had a bit of relief, since I thought the rest will go on smoothly..
.
.
.
.
50%
still praying. Half completed. rest has to go
51%
52%
53%
beep
beep
Oh no, what now?
"SYSTEM IS IN CRITICAL TEMPERATURE. PROCEEDING TO SHUT DOWN. TERMINATING PROCESSES"

NOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO

my mom comes out of the other room "what happened? did u fall down?"

I google on my other laptop to do something about this temperature and could not find anything relevant, so I use the old age method. Turning on fan-only on my A/C.

So, I tell my mom to take my kid Sanjay and go to the other room where it is warmer.
my mom asks me " are you feeling ok dear? because I see that you have gone crazy putting the A/C on when outside temperature is -22F

You see, I live in westmont, Illinois and the temperature outside is -1F and feels like -22F. Who in their senses will turn the A/C on in this weather?. I did .... for my laptop and love of linux.

Anyways, now I uninstalled again, and installed with 4gb space, because I dint want anything to go wrong now. I decided this is going to be the last try. If my stupid system cant install ubuntu this time? after all these work of adding more memory, putting the A/C on, and using the least memory possible 4gb, if it still cant install, then probably my system does not have the right to have ubuntu. yes, thats right, Oh system, you deserve this punishment. hahaha (villaneous laughter).

What else do you expect me to say? I have uninstalled and installed about 25 times. If it still doesnt make it, I will have to live with windows, and find another way to use linux.

Ok, so I threaten my lappy, pray to God, touch my lucky charm, and reboot.

installing softwares
1%
2%
3%
4%
5%
.
.
.
.
.
20%
good until now. last time, it went off at 53 % when it was installing telnet. Let me wait until 53%
.
.
25%
I touch the base to see if it gets heated up. no. still warm only
.
30%
laptop still warm. good.
.
.
.
.
40%
laptop still warm. still praying
.
.
.
.
50%
here it comes
51$
52%
53%
.
.
.
54%
55%
whew. Good going
.
.
.
.
60%
.
.
.
.
70%
I take the laptop from the table and hold it in my hands careful so that its base is not touching anything. hehe I just wanted the cpu not to overheat.
.
.
.
.
80%
plz God install this successfully
.
.
.
.
90%
.
.
.
.
98%
99%
just one more to go
100%

yuppie... hurray
oh no what is this? another bar
ok finishing installation. good good

1%
.
50%
.
.
83%
why is this pausing at 83% for a long time.?
Still holding the laptop in my hands.
oh no
System proceeding to shut down
GREAT JUST GREAT.

I gave you my ultimatum, and this is your choice. thats it. no more wubi for you. bad lappy.

When the system rebotted, it directly went into windows os. I went to the drive and placed my mouse over the uninstall icon.

wait a minute. it said finishing installation. may be it finished and restarted. ok let me give this a try. I rebooted and clicked ubuntu this time.

HURRAY.. GREAT GOD. THANK YOU THANK YOU

kubuntu started and asked for user name password. and it went in. I was so happy that I shouted again YESSSSSSSSSSSSSSSSSSS, and my mom came out from the otehr room and asked again " are you alright?"

So I explored kubuntu for a while, and found that internet was not working, since it was a problem in windows os itself. I tested hello world in c++, python, perl and found them running.

After 3 hours of struggle, I finally installed kubuntu, and it is now up and running.

Wednesday, January 30, 2008

PC Restore in DELL inspiron 600m

I wanted to improve performance on my laptop, so I decided to do PC Restore in my dell laptop. My system was damn slow, and I got fedup with all the hangings and the end nows.

So It took me a whole day to convert my data into winrar, and move it to another laptop using my 512 mb flash drive. Now you might ask, why in God's name would i want to move it to another laptop, when I have cd burner on this one itself. well, when I checked with the cd burner of the second laptop, I found out that it has dvd burner too. Now, I dont know fully about this system, because it is my husband's office laptop, given to continue his office work at home.

Anyways, I found out that the seond system has dvd burner in it, and each dvd can hold 4.7 gig of data. So I winrared my important data and copied it to the second system. After every data was safely secured, I added the folder to dvd burner, and clicked "RECORD". This error message popped up on the screen. "NO SUITABLE SOFTWARE FOUND FOR BURNING DVD."

Great just great. I had to save all the data in six 700mb-cds, which took about another four hours.

Now that all my data is safe on cds, I prayed to God, and rebooted the laptop, entered ctrl+f11 when it was booting. Seems I dint hit the keys at the appropriate time. So the system went straight to user login screen, and I had to reboot again.
Finally the PC Restore screen came up. I prayed once again that the system shouldnt mess up, and confirmed the restore.

It took about 10 minutes only for the whole process. The system rebooted, and went through some basic formalities. Lo and presto my lappy is fast again. *whew*.

I should have stopped there. But I dint. I want to install freebsd as the second operating system. So I installed partion magic, and tried to partition the disk from only c: to c:, e:, f: g: with g: for freebsd.

But as I was partioning, I found out, that only c: could be primary partition in my drive. The others became logical drives. I read online that freebsd could be installed only on a primary partition. So I was trying different techniques to bring about atleast one extra partition as primary. But in vain.

Finally I thought If I could first bring down the size of c:, then I could later partion the rest using windows disk management. So unfortunately, I reduced the size of C: to 7gb, and rebooted as asked by the disk manager.

The lappy rebooted, and proceeded to resize c:. As it was proceeding, I had an instinct to cancel, and go back. If humans start listening to their instincts, then half of their problems will be solved. As humans err, I too failed to listen to my inner voice, and waited until the resizing became 100%.

Then started my problems. After resizing, I went back, and after trial and error, found out that
i could not create another primary partion,
could not increase the c: size because it cant be done in NTFS,
and could not hence install freebsd.

Depressed, I switched off my system with a small hope that there might be an online shell available to work on unix commands, atleast. Instead I found wubi ubuntu installer

Memory upgrade for my inspiron 600m.

My inspiron 600m is painstakingly slow. It has 512 mb RAM, 1.6mhz processor,, and 60 GB hard drive. My hard drive light will flicker like crazy. The system was good for ordinary stuff like browsing the web, checking mail, and stuff. But if I want to do serious stuff like programming, whoosh, it will hang up on my face. So I decided to upgrade my system. First I thought I will do a complete sweep, format the drive and install the windows xp. I called up dell customer service and told them i lost the Windows XP CD while changing house (seriously i did lose it ;) ). The cutomer service person first told me that our warranty has expired (obviously), and so we have to pay for the cd. But then after serious negotiation, he told he will ask his manager and put me on hold. I started reading a book since i know it ll take time when a customer service person puts u on hold.

Surprisingly , he came back soon, and told me, that they would post the cd and the general drive's cd (since system specific driver cd is not available for inspiron 600m. It seems they have stopped production of this system. Yes I am still having this out-of-production lappy).

While talking to him, he mentioned a technique called PC Restore in dell systems manufactured after april 2004. It will convert your system to the stage in which it was shipped. Yes, no windows cd required, no painstaking process of installing drivers, and downloading more from the internet. Just do PC Restore and have your shipped in system in 10 minutes.

So I asked this customer representative about the process, and he reminded me that my laptop's warranty expired, and i would have to pay for this type of customer service. Yeah right, I would pay 100$ to dell for telling me how to press ctrl + f11 during bootup. In his dreams!!!!!

I thanked him for his valuable time, and browsed the net for "pc restore dell", and immediately found the proceedure to do PC Restore. I backed up my important data, and did PC Restore. When I rebooted my system, to my bliss it worked at a speed i havenet experienced in a long run. Still it is 512 mb only, but working at a faster rate. Even my husband was surprised at the speed of this new system.

Now as my next step, I thought about ordering more memory to my system to increase its performance. Atleast 100 bucks is better than buiying a new system for 700$ rite?. So I searched the internet and found that there are two slots for inspiron 600m, and a maximum memory of 2 gb here. I even watched a video that explained how to install more memory in a laptop.


Hence I ordered 1 gb RAM, and eagerly am waiting for its arrival through fed-ex. After I clicked confirm, I realised, I dint open my laptop and see my laptop's architechture (though, i know there is nothing new in my out-of-production laptop). I switched off my laptop, removed the power cable, inverted it. I took out a small star screwdriver out of my 2-month kid's bassinet kit, and tried to unscrew my memory slot. Not useful. Then I climbed the two step ladder, blew the dust out of our toolkit box, and opened it to find a useless set of 10 removable tips, none of which was useful for my purpose. Then I heard some noise outside. The maintainance guy was working with something outside my apartment. My mom suggested that he might have such small driver. So I took up courage of not seeming stupid, went to him, and asked if he had a screwdriver smaller than mine. He said he has it at home, and not now. He even offered to bring it tomorrow. Whew. I was relieved. Got his name, Thanked him, and came back to install Ubuntu on my laptop.

After a few days I got my 1 GB RAM in mail, but realised that I dont have that small screwdriver for my laptop. So had to wait until we went to walmart to get the precision set. Today morning I installed the extra memory, and my system started running fast and I installed kubuntu without out of memory shut downs.

I dont know how or when I opened the pandora box, because now my wireless is not working. I am using microsoft client, and the radio is not working. I am discussing about it soon in my blog.

Wubi review . part 1

I wanted linux on my system for a long time, and was trying to install freebsd, since it is obviously FREE FREE FREE and quite simple for my necessities. But then as I was using Partition magic, i realised, i cant have freebsd installed on my system because freebsd required a primary partition to be installed on, and my system had c: and extended memory as primary partitions. I couldnt create more primar partitions.

So I left it there itself and browsed the net. I remember that there might be an interface on teh internet that gave the shell environment, without installing anything. It is like practising unix commands on the net, without the burden of installing or uninstalling. As I was searching for this online shell, i stumbled upon Wubi. I read its reciews and found that it is relatively easy to install and uninstall if anythign goes wrong. Doesnt take up much space and detects network card automatically.

I was very eager to give it a try. I recently backed up my data, and pc restored my dell system. So I dint have anythign else to backup. If you have any important data, i suggest u back it up before trying this. So I downloaded the installer which took some 5 mins. Then I ran the installer. It took about 1.5 hours in my laptop (512 RAM, 1.6 ghz processor, and 60 gb harddrive). After successfully completing 100%, the screen stood still without much progress. I could move my mouse, so i knew the system did not hung up on me. I waited for few minutes before the error message came up. It dint specify any particular error, but said i need to install again. Oh God, I dont have another 1.5 hours for it. So i clicked the installer again, thinking, if the estimated time says 1.5 hours, then i ll do it again sometime later. But fortunately, it checked the checksums and then rebooted. Great. I entered into ubuntu during the dual boot up options.

The settings started taking place. It detected the hardware, found floppy drive, autoconfigured the network drive, installed packages and softwares. Everythign went fine until this stage. Then it started doing setup, and before it could finish 5%, my laptop hung up.

So I rebooted, went into ubuntu. the boot up proceedure cant take place because of some error, and the screen asked me to run the installer again. So i rebooted again, went into windows xp, and clicked the installer. It said, i have to uninstall first. So i uninstalled. Fortunately for me, it saves some backup files. So when i clicked the installer again, the installation was smooth and quick. Now i rebooted again, and went into ubuntu. Again it went into settings mode, and did everything like the previous try, including the system hanging ARRRRRRRRRGGGGGGGGGGGGG.

It is getting on my nerves so bad, i want to hit my laptop, abandon the whole process, and go to sleep. But I want to work on ubuntu and I, that is my laptop, just have to pass the setup proceedure. I guess it is the memory insufficiency that is causing the problem. My system hangs up so often earlier. If i run yahoo messenger with webcam, and open firefox, the system will hang up. That is the main reason i did pc restore, to clear off the junks and have a clean start.

So now iam waiting for that 1gb i ordered online. will update once i resume the process of ubuntu installation.
continued in review part2 ...