jump to navigation

Google Chrome: input type=”search” & results HTML attribute! January 27, 2012

Posted by prasada in Uncategorized.
add a comment

Pulled my hair for a while as the search icon did not appear inside “input type=’search’” on Chrome.

Took a while to realize that I had missed results=”..” attribute (number of history item to drop-down) in the HTML tag!

<input type=”search” placeholder=”Search” results=”3″ …>

Boilerplate template for apache ant build.xml January 20, 2012

Posted by prasada in Uncategorized.
add a comment

Pulled up the basic boilerplate template for Apache ant build.xml that was written year’s back.
You might find it useful to extend it further. Find it here.

Filesearch in download directory October 4, 2011

Posted by prasada in Uncategorized.
add a comment

I found myself re-downloading files that was available in central-download-server (on internal LAN). The issue was primary the lack of web-enabled search application.

Developed a simple application using (PHP + jQuery + find command) that lets user to search for the files in the download server directory, if nothing found suggest for Google search.

Here is the download details.

Javascript Array Sort Custom Comparator June 28, 2011

Posted by prasada in javascript, programming.
add a comment

Javascript Array.sort() allows you to define custom comparators!

var numbers = [10, 20, 5, -10, 30];

// Sorting in ascending order.
numbers.sort(function(a, b){return a-b;});

// Sorting in descending order
numbers.sort(function(a, b){return b-a;});

i18n-translator: makes it easy to translate and verify June 14, 2011

Posted by prasada in Uncategorized.
add a comment

Translating strings using online-services for providing internalization support might be a fun job. However, you could end up with inconsistent translation. Verifying the translation across different services would helpful. i18n-translator could be handy tool for it.

PHP Performance Tuning: Watch out for notices, warnings, errors… June 1, 2011

Posted by prasada in Uncategorized.
add a comment

PHP error reporting like notices, warnings… adds performance overhead and would make it hard to trace. During development make sure to turn-on error_reporting (E_ALL) and fix the issues logged, it helps your code to reach production quality.

Android 3.0 (Gingerbird) – Drains Battery!!! March 11, 2011

Posted by prasada in Uncategorized.
add a comment

Last week I upgraded to Gingerbird (Android 3.0) and noticed heavy battery draining! Turning off Wifi helped in retaining device run on battery for longer time :)

Working with Remote URL – BlackBerry Simulator March 4, 2011

Posted by prasada in Uncategorized.
add a comment

If you are getting started to work BlackBerry development and aim at fetching connect from remote URL, to test with Blackberry simulator review the following:

* Setup Wifi on the Blackberry Simulator.

* Blackberry MDS is running – without which Remote URL fetch attempt silently fails.

* Grant access in the app (config.xml)
<access subdomains=”true” uri=”http://targetdomain.tld”> or
<access subdomains=”true” uri=”*”>

* Now launch the app and test the url fetch. (assuming it uses javax.microedition.io.* classes)

NOTE: Blackberry MDS failed to work as expected on Windows Vista/Windows 7, I had to switch on Windows XP!

va_callback plugin for jQuery February 4, 2011

Posted by prasada in Uncategorized.
add a comment

Passing state information through variables for callback function is essential.
Although jQuery proxy API is available, it does not seem to accept more arguments to be tunneled for the callback.

jquery-vacallback plugin targets to achieve the same.

Click to download plugin. Look at the example.

TextMate – Themes February 4, 2011

Posted by prasada in Uncategorized.
add a comment

Following places could help you find themes for TextMate.

http://wiki.macromates.com/Themes/UserSubmittedThemes
https://github.com/filmgirl/TextMate-Themes
http://textmatetheme.com/themes

Follow

Get every new post delivered to your Inbox.