Tuesday 31 July 2012

Batman dark night rises theme pack for windows

Please download the themepack from here.
https://docs.google.com/open?id=0Bz3iL12EQc5-aG45M2kyY0trYW8









Monday 25 June 2012

Wordpress - set the large image size in editor

The large image size will be depend on the global variable $content_width.


Even if we change the settings in the media settings to a bigger one, we have to put the width to $content_width.


  In functions.php inside the active theme folder, 
   change like this,
   


if ( ! isset( $content_width ) ) 
$content_width = 754;







Monday 23 April 2012

Javascript array length problem

There is a problem in javascript array.length property.

var myOtherArray = [];
myOtherArray[100] = ‘one’;
and its length property would actually return 101 instead of 1.


Use this function  for correct result ,
function count(array)
{
   var c = 0;
   for(i in array) // in returns key, not object
   if(array[i] != undefined)
   c++;
   return c;
}