Month: October 2007
Execute JavaScript files using Rhino
The command to execute a javascript file using rhino. java -jar /path/to/custom_rhino.jar JS_File.js Get Custom Rhino(From Dojo Library)
Creating a Toolbar in GTK Python(PyGTK)
Creating a toolbar using GTK Python. There is an old method – but this example shows a better method of…
Install Rhino
Installing Rhino(Javascript interpreter created in java) on Fedora 7 sudo yum install rhino-manual rhino-demo rhino
Restarting XServer in Fedora
Restart XServer from command line in Fedora – for testing xorg.conf settings… telinit 3 #Shutdown X telinit 5 #Starts X
Single User Mode in Linux
To get into single user mode in Linux, stop the boot at grub then edit the kernal you want to…
Python Function for Space Units
A Python function to return readable size using the given size(KB) # Returns a more readable format of the given…
Get Result of Command using Python in Linux
Execute a command and get its results using python in Linux import commands result = commands.getoutput(“ls”)
Concatinate Files in Linux
This is how you concatinate multiple files in linux… cat file1 file2 file3 > final_file
301 Redirect using PHP
301 Redirect using PHP header (‘HTTP/1.1 301 Moved Permanently’); header (‘Location: ‘.$new_location);
Basic Screen Shortcuts(Linux Terminal Tool)
Some important screen shortcuts Create New : Ctrl+A c Next Screen: Ctrl+A Space Previous : Ctrl+A Backspace Show Screen List:…
Recent Comments