Author Archives: Gangarasa

Rajnikanth’s new fan page

Rajnikanth, the name that could make titles feel proud, has a new type of fan page. It’s as simple as rajni and equally magical! It works only after you unplug yourself from the internet! How you do that is left … Continue reading

Posted in Coffee Table, General | Comments Off

Extending ls command

How to generate list of files and their size in bytes? Comma Separated List (CSV) $ls -l | awk ‘{ print $5 “,” $9 }’ > list.tsv Tab Separated List (TSV) $ls -l | awk ‘{ print $5 “\t” $9 … Continue reading

Posted in General, Mac | Comments Off

Cisco VPN Client for Mac

Finally, after 12 years of windows 3.x, 95, ME, 2000, XP, Vista and 7 I decided to try a Mac. Got one, setup XCode, TextWrangler, FTP client, AirPort, MS Office, IMs. Most of it went smoothly. The first major issue … Continue reading

Posted in Mac, TechNews | Comments Off

UPDATEs without a WHERE?!

It’s quite common that programmers (non-framework) write UPDATEs without WHERE clause and cause unexpected problems. This perhaps can make their job inconsistent as well and not just the database Well if you’re a programmer follow some simple techniques to save … Continue reading

Posted in General | Tagged | Leave a comment

Escape from Magic Quotes for Non-Frameworks Programmers

Here is a quick thing to help you fetch clean data from GET POST COOKIE and REQUEST input variables. Of course, you need to rely on something like mysql_real_escape_string before writing this into a database. But a common function like … Continue reading

Posted in PHP | Tagged , , | Leave a comment

Flexible Client-side table sorting using jQuery

I found these plugins to be very useful. Not sure if there is a new version of it. Worth trying. tablesorter: 1) http://tablesorter.com/docs/ 2) http://tablesorter.com/docs/example-pager.html

Posted in Client-Side, General | Tagged , | Leave a comment

doxentral – A CodeIgniter based Web App.

New to CodeIgniter and looking for a example that helps you learn how a Model is written? or how form_valdiation library is used? and how to integrate SWFUpload? Here is a nice example: doxentral Useful links: CodeIgniter ColorBox jQuery Plugin … Continue reading

Posted in PHP | Tagged , , , , | Leave a comment

New! Google Chrome now has extensions and bookmark sync.

WoW! Google Chrome now has <a href=”https://chrome.google.com/extensions?hl=en-US”>extensions</a> and bookmark sync. New area for developers to play. Just tried a few recent/popular extensions. They are superb. The Evernote Web Clipper, Dictionary, FireBug and Calendar extensions are worth trying…That’s not all, you can … Continue reading

Posted in TechNews | Leave a comment

Setting Upload Max Size via .htaccess

Here is an example to allow File Uploads upto 2 GB. You may also have to consider Max Execution Time. PHP4: <IfModule mod_php4.c> php_value upload_max_filesize 2G php_value post_max_size 2G </IfModule> PHP5: <IfModule mod_php5.c> php_value upload_max_filesize 2G php_value post_max_size 2G </IfModule>

Posted in General, PHP | Tagged , , | Leave a comment

Tip: Searching for Unread e-mail in GMail

Finally, figured out how to find those hiding unread messages in my GMail Inbox or other folders. aah! A quick relief. Always hated going down the pages and finding the mails in some 20th or 40th page. You can just … Continue reading

Posted in General | Tagged | Leave a comment