sometimes a cigar is just a cigar
Header image

Author Archives: ALonon

To learn uuid of your device for instance a usb or hdd, you can use sudo blkid /dev/sda output: /dev/sda: UUID=”49eedef1-6331-4147-9bd5-a241ac16517c” TYPE=”ext4“ Linux (ubuntu) reads /etc/fstab file  to determine which deviced will be mount. To mount your devices automaticly when your computer restart add this line to /etc/fstab UUID=49eedef1-6331-4147-9bd5-a241ac16517c /home/onur/Desktop/archive ext4 errors=remount-ro 0       1 This … Read more

To use double monitor in extented mode you can use xrandr tool. To identify your monitor just type xrandr [onur@onur ~]$ xrandr Screen 0: minimum 320 x 200, current 1680 x 1050, maximum 8192 x 8192 VGA-0 connected 1280×1024+0+0 (normal left inverted right x axis y axis) 376mm x 301mm 1280×1024      60.0*+   75.0 1280×960       60.0 … Read more

To learn what type of your filesytem you can use, df -T Filesystem    Type   1K-blocks      Used Available Use% Mounted on /dev/sda1     ext4   469053936   5271756 439955596   2% /

Clean Format With DD

Posted by ALonon in Linux - (0 Comments)

If your data is important for you, you can prefer format with DD to make restore impossible. Simply to fill all your partions with “0″,  use this: dd if=/dev/zero of=/dev/sda1 bs=1M You can mount your hdd with using a live linux.

under linux you can use mii-tools sudo mii-tool eth2: negotiated 1000baseT-FD flow-control, link ok

/bin/bash^M: bad interpreter: no such file or directory If you are using both windows and linux, because of they are using different charecter for tab, new line etc … , you can get this error. simply use dos2unix filename if not installed sudo apt-get install dos2unix

Company that i worked in gave me a laptop with Windows 7. Actually I don’t like working with laptops because of their keyboard. But this one (hp pavilion dv6) seems OK because its keyboards is really big. After i installed UBUNTU 11.10 shortcut key for “disable touchpad” didn’t worked. It’s big problem because when i’m … Read more

Mysql reserved words

Posted by ALonon in Databases - (0 Comments)

Be careful when using this words as mysql table name. If you want to use anyway, don’t forget to add DATABASE.columnname in your sql command for example if you have a table with named desc, here is insert query; insert into USER(user.desc) values(‘example’) Otherwise you’ll get something like that … mysql syntax error near unexpected … Read more

I graduated !

Posted by ALonon in My news - (0 Comments)

Yes after 5 years, i attended my last exam today. So i can say that i graduated from computer engineering ! I’m a diplomaed computer fun now. What’ll change in my life ? More time on useful things Working on personal project and take tangible result Happier family members (for a week maybe … ) … Read more

Computer club of  ”MIDDLE EAST TECHNICAL UNIVERSITY”  has just started a contest “May i challenge.” about artificial intelligence.  I read some and, it looks like fun. To look over: http://mayichallenge.com/home