October 12, 2012 0 Comments

1. find current dir php file with content #FFFFFF find . -name "*.html" | xargs grep "#FFFFFF" 2. find a file current dir with content #FFFFFF find . -type f | xargs grep

September 8, 2012 0 Comments

allback functions are extremely important in Javascript. They’re pretty much everywhere. Originally coming from a more traditional C/Java background I had trouble with this (and the whole idea of asynchronous programming), but I’m

August 30, 2012 0 Comments

jQuery allowed control iframe parent element, but it must be in the same domain name. var button = jQuery("#indigenous"+video_id, window.parent.document); if(button.length>0){ button.removeClass('indigenous-watchvideo').addClass('indigenous-votevideo'); }

July 25, 2012 0 Comments

1. Create a pattern image Fire up a new canvas. It should be small (in terms of height x width). Image you are creating here will duplicate itself to form your pattern in

July 17, 2012 1 Comment

Documenting here the code and answer, for future use by any user which will stumble upon my question. The logic of SlickGrid works like this: Columns that define the table headers and other

June 27, 2012 3 Comments

When it comes to uploading files, users expect visual feedback, usually in the form of a progress bar. The problem is that PHP doesn’t offer a way to track file uploads in progress

May 18, 2012 0 Comments

Introduction From http://awstats.sourceforge.net/ : AWStats is a free powerful and featureful tool that generates advanced web, streaming, ftp or mail server statistics, graphically. This log analyzer works as a CGI or from command

April 20, 2012 0 Comments

vmkfstools -i "originalname.vmdk" "newname.vmdk" Configure a new virtual machine but when asked to configure a disk, select to use an existing one and select the one you just created. In my case, it

March 10, 2012 80 Comments

There are some instances where you have redirect the user through one page to get them to another page. There is a way to do this stealthily - without letting the user know

February 24, 2012 0 Comments

I spent a few minutes today setting up our nagios install at work to page me via prowl, instead of an email->sms gateway. Why? Because I'm cheap, that's why - don't like paying