I am Binny V A, a Freelance Web Developer on the LAMP Platform(Linux/Apache/MySQL/PHP) based at Cochin, Kerala, India.
| << 2006 | < September | October 2007 | November > | 2008 >> | ||
|---|---|---|---|---|---|---|
| Sun | Mon | Tue | Wed | Thu | Fri | Sat |
| 1 Command to Print Until Regular Expression
Print a file until a regular expression is matched. cat file.txt | perl -pe "exit if(/Thats all/)" | 2 Article Templates WordPress Template
Article Templates plugin lets you create templates that can be used when writing a new post or page. This will be very useful if you are writing many post with the same structure.
| 4 Article Templates - WordPress Plugin
Article Templates wordpress plugin lets you create templates that can be used when writing a new post or page. This will be very useful if you are writing many post with the same structure. Download Article Templates 1.00.A Beta This is my first WordPres | 5 301 Redirect using PHP
301 Redirect using PHP header ('HTTP/1.1 301 Moved Permanently'); header ('Location: '.$new_location); | 6 Concatinate Files in Linux
This is how you concatinate multiple files in linux… cat file1 file2 file3 > final_file | ||
| 7 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") | 8 Ajax Data Transfer Methods - XMLHttpRequest Alternatives
XMLHttpRequest is not the only way to implement Ajax - in fact it is not even the most popular one. Take a quick look at the various transport methods in Ajax...
| 10 Five Amarok Tips and Tricks
Rating If the rating feature is turned on you can rate the songs from the player… Settings -> Configure Amarok -> General -> Use Rating = On Song Information Fetching Amarok can automatically fetch information about the current song fr | 11 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 boot and add the word ’single’ at the end. For example ‘kernel /vmlinuz-2.6.21-1.3194.fc7 ro root=LABEL=/ rhgb quiet single’(your line ma | 12 Restarting XServer in Fedora
Restart XServer from command line in Fedora - for testing xorg.conf settings… telinit 3 #Shutdown X telinit 5 #Starts X | 13 Install Rhino
Installing Rhino(Javascript interpreter created in java) on Fedora 7 sudo yum install rhino-manual rhino-demo rhino | |
| 14 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 creating a toolbar using pygtk. toolbar = gtk.Toolbar() toolbar.set_style(gtk.TOOLBAR_BOTH) toolbar_item = gtk.ToolButton("Quit") toolbar_item.set_st | 15 Dual Monitors - The Realization of a Dream
Ever since I had a monitor, I wanted another. Its true that I bought three other monitors after I bought my first one - but I bought the rest of the computer along with them. So I never had a chance to have two monitors for myself. That is until this Satu | 16 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) | 17 Case Sensitivity in URLs
I am an open source guy - so naturally I prefer the flagship OSS software Apache to the proprietary Microsoft IIS. But there is one area where IIS does a better job than Apache - the case sensitivity of URLs. | 18 Sensex Figure using a Linux Command
This one command will fetch and display the latest sensex figure in Linux. This command basically downloads a page, locates a specific line, and then extract just the necessary portion from it. I am sure you could find other uses for this method. curl -s | 19 Linux Command to get the Sensex
Another method to get the sensex. This method is more realiable in working - but the data might be a bit old. Data supplied by Yahoo Finances. curl -s 'http://download.finance.yahoo.com/d/quotes.csv?s=%5EBSESN&f=sl1d1t1c1ohgv&e=.csv'| awk | 20 |
| 21 Using Ant to Concatenate files
The build.xml file to concatenate files using ant. This can be executed using the command ‘ant “ConcatAll”‘ <?xml version="1.0" encoding="UTF-8"?> <project name = "MyProj" basedir = "." > <target name = "Conc | 22 Some File Operation in SVS
Moving, Coping and Deletion svn mv file.php to_folder/ #Move svn cp file.php to_folder/ #Copy svn rm file.php #Deletion | 23 Make Firefox Twice as Fast and Much More Stable Easily
A must have extension for all javascript programmers is Firebug. It is my favorite extension in firefox - bar none. I cannot imagine how I managed to work on JavaScript before Firebug. But all this power comes at a price - it is slow. It causes the enti | 24 | 25 Frees - PyGTK Tool to show HardDisk Space Usage
Frees is a GUI tool that shows the HardDisk space usage. It is written in Python using the GTK2 framework. This will only work in linux as it depends on the 'df' command. Frees just parses the output of df and shows it in a graphical format.
| 26 Audacious Media Player
Audacious is not among the ’star media players’ in Linux - so many people never try it out. But those who have tried it out like it. For the sake of this article, I installed it - and I liked it. I even considered switching from amaroK to Aud | 27 |
| 28 Create a Permanent Alias in Fish Shell
This is how you create a permanent alias is fish… alias x='exit' save_function x Chainable interface in JavaScript Creating Chainable interfaces in javascript… (function() { function _init() { return this; } _init.prototype = { "myFunction": function() { return this; } // Put all the functions here - make sure all 'return this;' } chainer = f | 29 A Simple Logging Function for JavaScript
Prints all the arguments of the function. This function uses console.log if firebug is available - else, uses alert. function p() { for(var i=0; i | 30 Compress PHP Output from .htaccess
Compress all PHP output by adding this line to .htaccess file php_value output_handler ob_gzhandler | 31 Tk Verses Gtk(And Python verses Tcl)
Back when I was using Windows, I searched for some language that would let me create GUI application. I knew C++ - but creating a GUI using C++ was very, very hard. After some searching I found Tcl/Tk - it was perfect. I liked Tk so much that I used it to | |||