Archive for August, 2007
Friday, August 31st, 2007
LinuxDCPP is a linux client for the DirectConnect protocol. This is how you install it…
#Get the code
sudo cvs -d:pserver:anonymous@cvs.linuxdcpp.berlios.de:/cvsroot/linuxdcpp login
cvs -z3 -d:pserver:anonymous@cvs.linuxdcpp.berlios.de:/cvsroot/linuxdcpp co linuxdcpp
#Install Dependencies..
yum -y install scons
#Compile and install
cd linuxdcpp
scons
scons install
[tags]linux, software,dc++,client,scons,install,direct,connect[/tags]
Posted in Command Line, Linux | No Comments »
Wednesday, August 29th, 2007
Convent video using mencoder in linux…
mencoder input.mpg -o output.avi -oac mp3lame -lameopts abr:br=56 -srate 22050 -ovc lavc
http://www.mplayerhq.hu/DOCS/HTML/en/mencoder.html
http://gentoo-wiki.com/HOWTO_Mencoder_Introduction_Guide
Posted in Command Line, Linux | No Comments »
Tuesday, August 28th, 2007
Function x executions in the scope of object y.
var Car = function() { this.name = 'car'; }
var Truck = function() { this.name = 'truck'; }
var func = function() { alert(this.name); }
var c = new Car();
var t = new Truck();
func.apply(c);
func.apply(t);
Original Article
[tags]javascript,apply,call,binding[/tags]
Posted in Code, JavaScript | No Comments »
Friday, August 24th, 2007
Backup all files in /var/lib/mysql to another folder
To restore, stop mysqld if it is running
service stop mysqld
Move all database files back to /var/lib/mysql. Make sure that all the folder and files in that folder belongs to mysql
chown -R mysql.mysql /var/lib/mysql
Try starting mysql
service start mysqld
Posted in Linux | 1 Comment »
Tuesday, August 21st, 2007
How to read a big text file that is tarballed - without extracting the whole thing…
bzcat enwiki-20070802-pages-articles.xml.bz2 | head -10
[tags]tar,zip,bzip,text,read,wikipedia[/tags]
Posted in Command Line, Linux | No Comments »
Sunday, August 19th, 2007
The search that limits the results to just directory listings…
intitle:”index.of” inanchor:”Last Modified” inanchor:”Description” inanchor:”Parent Directory” -filetype:php -filetype:asp -filetype:htm -filetype:html -inurl:”index.of” search.string
[tags]google,search,directory,listing,apache,folder,power[/tags]
Posted in Uncategorized | No Comments »
Friday, August 17th, 2007
How to make an ISO image from contents of a directory?
mkisofs -V label-name -r directory-name > iso-image.iso
[tags]iso,image,folder,linux,mkisofs[/tags]
Posted in Command Line, Linux | No Comments »
Wednesday, August 15th, 2007
The code to add a Windows loading section in Grub
title Windows
rootnoverify (hd0,1)
chainloader +1
[tags]grub,windows,linux,boot,loader[/tags]
Posted in Code, Linux | No Comments »
Saturday, August 11th, 2007
These commands can be used to create an image of a CD/DVD/HDD. You can also use some GUI tool like K3B to do this. Use one any of the three commands…
dd if=/dev/cdrom of=cd_image.iso
cat /dev/cdrom >image.iso
readcd dev=device f=image.raw
[tags]cd, command, dd, dvd, image, iso,linux,raw[/tags]
Posted in Command Line, Linux | No Comments »
Friday, August 3rd, 2007
Wget can be used to download multiple files with just one command
wget -c "http://example.com/file[1-9].htm"
[tags]wget,download,multiple,series,linux,command,cli[/tags]
Posted in Command Line, Linux | No Comments »