How To Find Bash Script Directory Within ScriptSeptember 14th, 2008 One of the common challenges bash script writers face when writing a script which references files in the same directory (or its sub-directories) as the script file. As the script can be called from anywhere, you cannot use the current directory to refer to the files.
6 MySQL Database Replication TipsNovember 18th, 2007 Replicating on two or more MySQL master database servers
1. MySQL Master-Master Replication Fails With ERROR 1200 (HY000) on Master
2.
Nginx: How To Redirect /index.php To / To Avoid Content DuplicationAugust 8th, 2008 Normally any website that responds to /index.php also responds to /. This has the potential to duplicate content.
Tips on Java Enhanced For LoopNovember 14th, 2005 After enhanced for loop was introduced with J2SE 1.5.x aka J5SE, I made it a delightful habit to use it. You know what I am talking about, right?
For example previously I used to write:
private gbWay() {
....
How To Fix MS Outlook Jam With Outlook ExpressFebruary 3rd, 2007 I recently faced a strange situation where my mail server was showing over 700 emails but Microsoft Outlook was failing to download them with timeout error. The problem was that it wasn't downloading even a single email.
Monitoring MySQL Queries Using Bash ScriptNovember 18th, 2007 Monitoring MySQL queries is a favorite pastime of MySQL administrators especially for performance reasons. Here is a simple bash script to monitor long running MySQL queries in realtime using the ubiquitous 'show processlist'.
How To Add Single Quotes In WordPress PostsSeptember 3rd, 2006 Single quotes are a royal pain when using WordPress to post your code. WordPress, in its infinite wisdom, does some really bad things to it.
Free e-Book: Linux Command Line and Shell Scripting Bible January 29th, 2009 Covering the most popular Linux shells (such as bash, ash, tcsh, ksh, korn, and zsh), this reference book shows how to use commands to create scripts within each shell and demonstrates practical applications for shell scripts (including retrieving information from Web sites and sending automated reports via e-mail). For each shell, the author discusses the commands available and explains how to use these commands to create scripts that can automate common functions and reports.
How To Stop Firefox From Blocking Sites Suspected of Forgery or AttackMarch 15th, 2009 Firefox 3 onwards has a nice feature which warns you of sites which are suspected of forgery or attacks (through trojans, malware etc.). Unfortunately the feature is too intrusive and warns you repeatedly, nags you to death is a better phrase to describe it, even when you have confirmed that the site is genuine.
Java Runtime.Exec() GuideJuly 19th, 2007 Everything you ever wanted to know and should know about Java Runtime.exec(). This old but still golden article is an excellent guide to using Runtime.exec().
How To View New Blog Posts Directly From Firefox ToolbarMay 16th, 2006 This is a simple tutorial to help you to view new blog articles (from your favorite blogs) directly from your Firefox toolbar. Suggestion: Please maximize browser window for better viewing.
Why do IT people really bash Windows?July 21st, 2005 Angus McLaren at TechRepublic writes cluelessly:
Anyone who claims to hate Microsoft Windows, Linux, Mac OS or any other operating system is not a true techie or network guru. You don't ever bash the OS, in fact if the OS crashes then it's your fault not the OS; Why didn't you make sure that it was using the right drivers, or the hardware is compatible or blah this and blah that, and so the list goes.
How To Create Always Visible (Frozen) Header Rows in Microsoft ExcelMay 19th, 2005 My friend is making a large document in Microsoft Excel 20 or so columns. He found that he was forced to go back everytime to the top of the document to figure out what the column represents.
How to Import Winamp Equalizer For Your Linux Audio Players like XMMS, Audacious etcFebruary 16th, 2009 With most of you using Linux players like XMMS, Audacious or BMP desperately miss out equalizer presets of Winamp. For a die-hard music-aficionado who loves to hear Miles Davis' Kind of Blue in pure Jazz can never compromise with an equalizer.
How To Add Double-Dash / Hyphen in WordPressJune 12th, 2007 WordPress in its infinite wisdom consumes one dash ( - ) and converts the other when there are two consecutive dashes like this: --. The solution is to use - twice instead of dash.
June 2nd, 2008 at 10:18 am
thanks !
June 8th, 2008 at 9:28 pm
Thanks, worked great.