Monday, December 04, 2006

Making Cartoons

I generally don't design anything since I am not a designer but thought of making a one of my friends cartoon "avtar" to put it on her scrap book. This idea clicked when one of my friend(Kevin Pinto) had done our cartoons for our web technology's project. The one on the right is his creation.

I started with hunting her photograph. Later used photoshop and opened the picture there. By adding transparent layer I traced the outline using a pencil tool. It did look shabby since it was just mouse that I used. But then had no choice. Later on of my friend gave me an idea of using bezier curves. But he used another tool for making such dough I was making it in photoshop. So later I googled for cartoons to see 1000 different creation. Later I started using simple line tool and then giving it different thickness and curves. I eliminated black colour border line and started using the those tones of the actual fill colours as the outer line. It worked the pieace was looking much neater and cool. I wasn't sure about the face looks since I still have to work on it. But the rest is fine I suppose. It was a real good experince in doing this.

Sunday, December 03, 2006

Google Analytics

My final year project is on "Analysing Web Content through Users Clicks/Access Pattern". Once while surfing few fourms I found one intresting thing. What we were doing is analyzing the content of a particular website which would use this system. But Google has something which collects stats of other website also. One has to just use some browser side scripting software like greasemonkey or something like that. For more information please visit
http://blogs.open.ac.uk/Maths/ajh59/008701.html

Google Desktop

Once while surfing I came across another Google's product. "Google Desktop" Just thought of downloading wow....it simply rooocks. It took me nearly 4 hours on AMD64 Athlon with 512 MB RAM for its indexing. But then it gives results as you type the word just like Winamp media center. Like grep command it scans the documents also which has text material in it. I am yet to find out how much memory it eats but as far as my messy comp is concern Google Desktop has really made me lazy. hehe

Sunday, August 13, 2006

TexLive not on Dapper.

I wanted to make few documentation in Latex. So tried figuring out what should I install through Synaptic Manager. I got few packages but then it did not include packages which I wanted to use. It did not serve me for those package which I need. Edgy edition had the texlive package which included all AMS fonts and amssymb package. So what I had to do is just copy Texlive CD. Change install-tl.sh's first line for bash. And run the file thats it it works. So next time if a shell script is not running please check the first line and see if it for the shell which you have.

Saturday, August 05, 2006

Strange Problem (Motherboard chipset and Sata HDD)

While being with CRAVE we discovered a strange problem. For Crave Project AMD64Athlon with ASUS motherboard, SATA hard disk, 1GB RAM were ordered. Now ASUS motherboard had a chipset of VIA. Its southbridge chipset is VT8215 and for this chipset there are no drivers in linux for SATA hard disk. SUSE, Fedora, Debian, Ubuntu none of the Distributions could detect any SATA hard disk during installation. This made us to come in the soup. So now for the time being most of the machines will have a PATA hard disk. Then after recompiling the kernal it is possible to run Ubuntu on SATA hard disk with VT8215 chipset.

I had similar combination but my chipset was VT8237. This worked. I could nicely install along with SATA drives.

On Ubuntu forums few other people also faced similar problem. One guy had made iso of ubuntu for such a system. For time being that will also be installed on one of the machine.

Monday, July 31, 2006

SATA vs PATA

I always use to wonder what is the exact diffrence between Serial Adavance Technology Attachment and Parallel Advance Technology Attachment. The only thing I knew was SATA is better than PATA and its wire is really small. They can be attached to only those motherboards which has SATA port.

Well everytime we think that parallel transmission is faster since there are more bits transfered but this is little confusing here SATA provides more faster output. For more information and clear idea between SATA and PATA please visit this page hope they keep the website for long time. It is not good to copy someone's elses material hence just giving the link here.

http://www.directron.com/patasata.html

Tuesday, July 04, 2006

Ubuntu Dapper Drake from Badger Breezer

1st June 2006 Ubuntu released its new version Dapper Drake. It was almost 1-2 months after I had installed and set up my Badger Breezer on my machine. I was not in a mood to again order for new cd's or download its ISO on the cd. So thought of reading articles about upgrading directly the entire Operating System. Yes I got few positive articles. Even people who did it. It was quiet simple.

Had to find my source.list file (/etc/apt/sources.list) which had all the sources listed from where it generally downloads or installs the packages. This file had to be modifed. The word "breezy" was replaced with "dapper" everywhere. The problem I faced with was the first source. It was the cdrom. Now since I did not have the cdrom of the new version I was not sure what to do. This source also mentioned the version number hence I got more confused with which source to use. What if I change cdrom source to dapper and it prompts me to insert the cd labled with dapper. Hence I kept it untouched.

Once I saved the modified file. I had to run two commands in root mode.

$ sudo apt-get update
$ sudo apt-get -y dist-upgrade

This did my job but then since my internet had 150 MB limit I had to do it only in the night. Downloading took me 3 days since one of the day my internet package expired so the rest of the software wasn't downloaded and the computer was left on unnecessarily since I was deep asleep.

After those 2 commands the system got downloaded but it did not get installed so had to run those 2 commands again. I don't know what happened but on second time those downloaded packages got installed it took long time but it was fun looking at the changes happening live when the system was getting upgraded.

But latered figured out new problem. Sound was missing. It was soundless. I was like nooooo. Since system without no sounds is like no songs and it becomes bit boring. I posted it on techtalk since I tried few things by adding myself to the audio group, playing with the mixer settings and trying to setup sound card again.

Later on tecktalk someone asked me for lsmod this gave the list of modules present and lspci which gave me the list of components on my board


sid@nimkar:~$ cat /etc/issue

Ubuntu 6.06 LTS \n \l



sid@nimkar:~$ lsmod
Module Size Used by
acpi_sbs 24600 0
i2c_acpi_ec 7040 1 acpi_sbs
battery 12296 1 acpi_sbs
ac 7176 1 acpi_sbs
thermal 16524 0
fan 6408 0
button 8864 0
via_rhine 28676 0
8139too 31744 0
nls_iso8859_1 6656 0
nls_cp437 8320 0
vfat 16768 0
fat 57136 1 vfat
binfmt_misc 15248 1
rfcomm 45600 0
l2cap 30464 5 rfcomm
bluetooth 59268 4 rfcomm,l2cap
ipv6 300416 12
ppdev 11400 0
powernow_k8 12992 0
cpufreq_userspace 9184 1
cpufreq_stats 8264 0
freq_table 6464 2 powernow_k8,cpufreq_stats
cpufreq_powersave 3328 0
cpufreq_ondemand 9768 0
cpufreq_conservative 10984 0
video 18824 0
tc1100_wmi 9096 0
sony_acpi 7188 0
pcc_acpi 16128 0
hotkey 13768 0
dev_acpi 15364 0
container 6272 0
dm_mod 63176 1
md_mod 76792 0
lp 15040 0
snd_seq_dummy 5508 0
snd_seq_oss 38372 0
snd_seq_midi 11456 0
snd_seq_midi_event 9984 2 snd_seq_oss,snd_seq_midi
snd_seq 64088 6 snd_seq_dummy,snd_seq_oss,snd
_seq_midi,snd_seq_m idi_event
floppy 74120 0
snd_via82xx 32936 1
gameport 19216 1 snd_via82xx
tsdev 10240 0
snd_ac97_codec 110268 1 snd_via82xx
snd_ac97_bus 4096 1 snd_ac97_codec
snd_pcm_oss 59424 0
snd_mixer_oss 20608 1 snd_pcm_oss
8139cp 26880 0
mii 7680 3 via_rhine,8139too,8139cp
parport_pc 40944 1
parport 44172 3 ppdev,lp,parport_pc
snd_pcm 104712 3 snd_via82xx,snd_ac97_codec,snd_pcm_oss
snd_timer 29064 2 snd_seq,snd_pcm
snd_page_alloc 13968 2 snd_via82xx,snd_pcm
snd_mpu401_uart 10368 1 snd_via82xx
snd_rawmidi 31648 2 snd_seq_midi,snd_mpu401_uart
snd_seq_device 11280 5 snd_seq_dummy,snd_seq_oss,snd_seq_midi,snd_seq,s nd_rawmidi
snd 68576 13 snd_seq_oss,snd_seq,snd_via82xx,snd_ac97_codec, snd_pcm_oss,snd_mixer_oss,snd_pcm,snd_timer,snd_mpu401_uart,snd_rawmidi,snd_seq_ device
soundcore 13216 1 snd
i2c_viapro 11416 0
i2c_core 26624 2 i2c_acpi_ec,i2c_viapro
pcspkr 3592 0
psmouse 40452 0
serio_raw 9732 0
shpchp 51360 0
pci_hotplug 33168 1 shpchp
sg 43568 0
evdev 14464 1
ext3 145936 1
jbd 70952 1 ext3
ide_generic 2816 0
ehci_hcd 34568 0
uhci_hcd 36640 0
usbcore 145980 3 ehci_hcd,uhci_hcd
ide_cd 35744 0
cdrom 41144 1 ide_cd
via82cxxx 10884 0 [permanent]
sd_mod 21504 3
generic 7300 0
sata_via 11140 7
libata 86048 1 sata_via
scsi_mod 160504 3 sg,sd_mod,libata
processor 29224 2 thermal,powernow_k8
capability 7176 0
commoncap 9728 1 capability
vga16fb 15120 1
cfbcopyarea 5120 1 vga16fb
vgastate 10368 1 vga16fb
cfbimgblt 4224 1 vga16fb
cfbfillrect 5760 1 vga16fb
fbcon 43136 73
tileblit 4096 1 fbcon
font 9984 1 fbcon
bitblit 7424 1 fbcon
softcursor 3712 1 bitblit



sid@nimkar:~$ lspci
0000:00:00.0 Host bridge: VIA Technologies, Inc. K8M800 Host Bridge
0000:00:00.1 Host bridge: VIA Technologies, Inc. K8M800 Host Bridge
0000:00:00.2 Host bridge: VIA Technologies, Inc. K8M800 Host Bridge
0000:00:00.3 Host bridge: VIA Technologies, Inc. K8M800 Host Bridge
0000:00:00.4 Host bridge: VIA Technologies, Inc. K8M800 Host Bridge
0000:00: 00.7 Host bridge: VIA Technologies, Inc. K8M800 Host Bridge
0000:00:01.0 PCI bridge: VIA Technologies, Inc. VT8237 PCI bridge [K8T800/K8T890 South]
0000:00:0d.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL-8139/8139C /8139C+ (rev 10)
0000:00:0f.0 IDE interface: VIA Technologies, Inc. VIA VT6420 SATA RAID Controll er (rev 80)
0000:00:0f.1 IDE interface: VIA Technologies, Inc. VT82C586A/B/VT82C686/A/B/VT82 3x/A/C PIPC Bus Master IDE (rev 06)
0000:00: 10.0 USB Controller: VIA Technologies, Inc. VT82xxxxx UHCI USB 1.1 Contr oller (rev 81)
0000:00:10.1 USB Controller: VIA Technologies, Inc. VT82xxxxx UHCI USB 1.1 Contr oller (rev 81)
0000:00:10.2 USB Controller: VIA Technologies, Inc. VT82xxxxx UHCI USB 1.1 Contr oller (rev 81)
0000:00:10.3 USB Controller: VIA Technologies, Inc. VT82xxxxx UHCI USB 1.1 Contr oller (rev 81)
0000:00:10.4 USB Controller: VIA Technologies, Inc. USB 2.0 (rev 86)
0000:00:11.0 ISA bridge: VIA Technologies, Inc. VT8237 ISA bridge [KT600/K8T800/ K8T890 South]
0000:00:11.5 Multimedia audio controller: VIA Technologies, Inc. VT8233/A/8235/8 237 AC97 Audio Controller (rev 60)
0000:00:12.0 Ethernet controller: VIA Technologies, Inc. VT6102 [Rhine-II] (rev 78)
0000:00:18.0 Host bridge: Advanced Micro Devices [AMD] K8 [Athlon64/Opteron] Hyp erTransport Technology Configuration
0000:00:18.1 Host bridge: Advanced Micro Devices [AMD] K8 [Athlon64/Opteron] Add ress Map
0000:00:18.2 Host bridge: Advanced Micro Devices [AMD] K8 [Athlon64/Opteron] DRA M Controller
0000:00:18.3 Host bridge: Advanced Micro Devices [AMD] K8 [Athlon64/Opteron] Mis cellaneous Control
0000:01:00.0 VGA compatible controller: VIA Technologies, Inc. S3 Unichrome Pro VGA Adapter (rev 01)



At present this was my configuration. Well all this seemed to be proper so I tried with mixer settings again in the prefrences I enabled few things and played with it. YES AND IT WORKED. Specially VIX DXS controller boosted my sound. Master surround had to be kept in limited. But I really liked ALSA mixer settings which really boosted sound something which I never seen in Windows.

Well now my every component I had installed in Breezy was upgraded with its version.
My firefox problem was also solved. I am now using FIREFOX 1.5. Yuppiee and Cheers to my new system now. And its dam smooth.

Tuesday, June 13, 2006

Type faster

If you want to type faster and without looking at the key board, then use gtypist. It is readily available package for Ubuntu.

apt-get install gtypist

this will instal it. It gives you step by step tutorial of using your keyboard and to locate your keys from a relative position. If also gives you percentage of error you make while writing as well as speed of typing.

Tuesday, May 09, 2006

Syncronization of system clock

In Ubuntu's boot up sequence it use to always try to syncronize system watch with ntp.ubuntulinux.org Now this use to suck big time. Since it use to be boring waiting for long time. I tried serching various files where bootup sequence will be given but I coudn't find it. On one of the ubuntu forums I found this command

~$ sudo update-rc.d -f ntpdate remove

This removed the option of synchronization with ntp.ubuntulinux.org
Wow now its so kwel that my machine boots faster since it doesn't have to waste time in searching for the address with no internet connection.


You can configure your time zone using.
~$sudo tzconfig


Well 2 good things I learnt from this..

Saturday, May 06, 2006

Mounting Partitions in Linux

In Ubuntu I always mount my windows partitions. I use to mount sda1 and sda2. Now the thing was these were primary partitions. sda3 was extended. sda4 (ext3) was primary again. Since this is where my Ubuntu was installed. Now to mount sda1 and sda2

sudo mount /dev/sda1 /media/c-drive
sudo mount /dev/sda2 /media/d-drive

These commands works

But we cannot mount an extended partition so what we have to do is mount the logical partition in this. which is sda5( it is purely logical)

sudo mount -t vfat /dev/sda5 /media/e-drive

If you have more logical partitions in this then go on with sda6, sda7 and so on and so forth.

Sunday, April 30, 2006

Pacenet on Ubuntu

Pacenet doesn't work on Ubuntu if you are using their low bandwidth plans. I don't understand thier company's policy why do they have to do that. They use DHCP for alloting IP. They also provide a dialer for windows. But they couldn't do that for Linux. Linux need 72kbps account. Who will buy that.

Their dialer encrypts the password and sents it to their site.
Using Ethereal I came to know my encrypted password.

To set up Pacenet on Ubuntu 5.10 Breezer I tried with.
sudo pppoeconf
Then just keep most of the things default go according to their instructions and your net is set. You just have to say sudo pon. This should ideally put your net on but what I use to get is this.
I tried various ways. My problem which I thought was MTU/MRU problem.


~$ sudo pppoeconf
Password:
Plugin rp-pppoe.so loaded.
~$ plog
Apr 1 11:41:45 localhost pppd[10685]: Couldn't increase MTU to 1500
Apr 1 11:41:45 localhost pppd[10685]: Couldn't increase MRU to 1500
Apr 1 11:41:45 localhost pppd[10685]: Couldn't increase MTU to 1500
Apr 1 11:41:45 localhost pppd[10685]: Couldn't increase MRU to 1500
Apr 1 11:41:55 localhost pppd[10685]: CHAP authentication failed: I don't like you. Go 'way.
Apr 1 11:41:55 localhost pppd[10685]: Couldn't increase MTU to 1500
Apr 1 11:41:55 localhost pppd[10685]: Couldn't increase MRU to 1500
Apr 1 11:41:55 localhost pppd[10685]: Connection terminated.
~$ ifconfig
eth0 Link encap:Ethernet HWaddr 00:C0:26:87:9F:BA
inet6 addr: fe80::2c0:26ff:fe87:9fba/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:53905 errors:0 dropped:0 overruns:0 frame:0
TX packets:56 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:5421421 (5.1 MiB) TX bytes:13674 (13.3 KiB)
Interrupt:18 Base address:0x6000

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:13909 errors:0 dropped:0 overruns:0 frame:0
TX packets:13909 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:1052408 (1.0 MiB) TX bytes:1052408 (1.0 MiB)

~$ sudo poff


I guess this must be my last try for Pacenet. Well now I have switched on to sify. It is little expensive but I am enjoying good speed...haha

Upgrading to Firefox 1.5 in Ubuntu

Recently when my netwas set up on Ubuntu. I was tempted to install many packages. Well I was use to firefox 1.5 since earlier I worked on windows xp. Now here also I wanted to install firefox 1.5 But since it was not tested it never came in repository. I manually downloaded its tar file. On its website it was given to just untar it. This worked for few of my friends but did not work for me. I had to do something for it. I put the query on the techtalk. Got some intresting answers. One good thing I learnt was the Back Port of Ubuntu.

I was suppose to just add this line to your /etc/apt/sources.list file:

deb http://archive.ubuntu.com/ubuntu breezy-backports main restricted
universe multiverse

And do "aptitude update"

(both the above as root)
Well it showed me some updates but I could never find firefox 1.5


I googled for certain key word and found this site. https://wiki.ubuntu.com/FirefoxNewVersion#head-26d21f8b635c06a9858f7bef322b3821c7545598

There were instructions to be followed for installing from the tar.gz file. Wow after following these instrctions wonderful thing happened was IT CRASHED...!!!

Sunday, April 16, 2006

RSK blog progress1

Well Deployment environment used for this is

eclipse
Tomcat 5.5
Mysql 5.0
JDK 1.5

Tools used are
Corel - Draw
Photoshop
Scite (editor)


RSK Blog site compatible with Mozilla firefox and InternetExplorer

While deploying folders created are

tomcat
|_webapps
|_rskblog
|_WEB-INF
|_style
|_scripts
|_includes
|_images
|_jsp pages

in web-inf folder we have
|_classes
|_web.xml

servlets

we shall have 3 folders
dao=data object ..its function is just to play with database connection...setting conection and getting values..
vo/to=value object/transfer object.......its function is just to set the values of certain attributes or get the values of the attributes....
servlet= will contain actuall servlet..where it will decide what data should be passesd to which next jsp page



Installation of all tools is completed successfully.
Front end is almost ready.
Database creation has been started
Writing JSP codes and servlets for pages is in progress

Things to learn
embedding FCKeditor in application
To generate permalink
RSS feeds
sevlets selecting jsp

Friday, April 07, 2006

RSK Blog

We are making a Blog site viz "RSK BLOGGER". This site will allow user to create multiple blogs. Blogs are nothing but "Web + Log". Here one can just write blogs and publish his/her thoughts to the world. Writing a blog is a good way to just type in your views and made publicly available.

This software is being made using HTML, CSS, Javascripts, Servlets, JSP. MySQL is the database used. We are following M-V-C architechture which stands for Model, view and controller architecture which is used by most of the companies in their J2EE applications. Its pattern is "DAO,VO, servelt" pattern. We are trying to make it highly modularize so that it can be extended later and made as a big project.

Now model becomes your databse. View is your JSP coding. And Controller are servlets. Your database communicates with only servlets. Your servlets will establish connection get results from the database.
These servlets will be in charge of commincating with JSP pages. And passing data to JSP pages. JSP pages will display it.
The desing of this software is developed using photoshop and corel draw.

One of the hot feature of RSS feeds is something our site will support. I don't know if we can complete it in the given time or not but lets hope for the best.