>Write ASCII codes in Text Editors

Posted: May 25, 2011 in MISC


To write some charecters, letters or symbols which are not available in our keyboard, portable personal computers, notebooks, laptops, etc.. we can print using ASCII code.
Below is the example to print symbols.

1) Open your favourite Text Editor.

2) Press the “ALT KEY” in your keyboard and hold it, do not release the key.

3) In the numeric keypad type the numbers “131”, that correspond to the ASCII code for the character, letter or symbol “â” .

4) Release “ALT KEY” to Print ASCII Code.

Here is the link for detailed information



Now we can send SMS to our mobile numbers for free. Google has introduced service called Google SMS Channels. Using this service you can subscribe to news alerts, blog updates and other kinds of information like horoscopes, jokes, stocks or even cricket scores via SMS text messages.

Here  you can Subscribe to Service.

For more information Click Here.

>Using Eclips we can easily apply patch to drupal module.Below are the steps..

To apply patches to code using Eclipse:

1. Menu > windows > open perspective > others > team synchronizing
2. Open the patch file, select all text and copy it to clipboard (Ctrl+ C)
3. Menu > project > apply patch
4. Select clipboard, click next, select the file you want to patch, click finish or next to setup patching options.

>Free Download Ebook

Posted: May 7, 2011 in General


Here is the good URL for downloading free ebooks  


Here are the 28 new features coming with HTML5.Presently Chrome, IE9 and Firefox4 supporting HTML5.

  • New Doctype
  • The Figure Element
  • Redefined
  • No More Types for Scripts and Links
  • To Quote or Not to Quote.
  • Make your Content Editable
  • Email Inputs
  • Placeholders
  • Local Storage
  • The Semantic Header and Footer
  • More HTML5 Form Features
  • Internet Explorer and HTML5
  • hgroup
  • Required Attribute
  • Autofocus Attribute
  • Audio Support
  • Video Support
  • Preload Videos
  • Display Controls
  • Regular Expressions
  • Detect Support for Attributes
  • Mark Element
  • When to Use a
  • What to Immediately Begin Using
  • What is Not HTML5
  • The Data Attribute
  • The Output Element
  • Create Sliders with the Range Input

Please  click here to know detail information.

Good Video for HTML5 beginners

>20 things about Browsers

Posted: April 27, 2011 in Internet


To know more about browsers and web just go through with below link…



Published on February 5, 2009
An easy way for computers get a virus is from the use of pen drives (also known as USB devices or flash drives). Many viruses like the Ravmon virus and Heap41, which is a worm, are not detected by the usual anti-virus software. These viruses spread rapidly through USB devices. Suma Munireddy—our Employee Journalist from Bangalore—sent us a useful tip on how to protect your computer from viruses spread through USB devices.
1. Plug your pen drive or USB device to the computer.
2. After a few moments, a dialog box will pop up. Ignore this dialog box by clicking Cancel.
3. Now go to Start –> Run and type cmd to open the Command Prompt window.
4. In the Command window, type the USB drive letter and then press Enter. For instance, the drive letter for your USB device may be “E:” In this case, type “E:” in the Command window and press Enter.
5. Then, type dir/w/o/a/p and press Enter.
You will now get a list of files. In the list, see if you have any of the following:

 *   Autorun.inf
 *   New Folder.exe
 *   Bha.vbs
 *   Iexplore.vbs
 *   Info.exe
 *   New_Folder.exe
 *   Ravmon.exe
 *   RVHost.exe
 *   Any other files with .exe extension
If you notice any of the files above, type attrib -h -r -s -a *.* and press Enter.
Now delete each of the above files by typing the following command: del “filename” (for instance, del autorun.inf).
That’s all there is to it! Now just scan your USB drive with the anti-virus software you have to ensure that your pen drive is really free of all viruses.


We can create new custom formatter for CCK fields using hook_field_formatter_info(), below is the example

* Implementation of hook_field_formatter_info().
function myModule_field_formatter_info() {
$formatters = array();
  if (
module_exists('filefield')) {
$formatters['myFormatter'] = array(
'label' => t('My Formatter'),
'field types' => array('filefield'),
'multiple values' => CONTENT_HANDLE_CORE,
* Theme function for myFormatter from hook_field_formatter_info.
* @param $element
*   an array of formatter info and the item to theme. look in $element['#item'] for the field item to theme.
function theme_myModule_formatter_myFormatter($element) {
"themed element"
* Implementation of hook_theme().
function myModule_theme($existing, $type, $theme, $path) {
  return array(
'myModule_formatter_myFormatter' => array(
'arguments' => array('element' => NULL),

>Find number of weeks in a Year

Posted: March 16, 2011 in PHP


$weeks_in_year = strftime(“%W”,strtotime(“12/31/”.date(‘Y’)));

>Get number of weeks between 2 dates

Posted: February 18, 2011 in PHP


function weeks_between($datefrom, $dateto)
    $datefrom_arr = explode(“-“, $datefrom);
    $datefrom = mktime(0,0,0,$datefrom_arr[1], $datefrom_arr[2], $datefrom_arr[0]);
                //echo date(‘Y-m-d’,mktime(0,0,0,$datefrom_arr[1], $datefrom_arr[2]+7, $datefrom_arr[0]));
                $dateto_arr = explode(“-“,$dateto);
                $dateto = mktime(0,0,0,$dateto_arr[1], $dateto_arr[2], $dateto_arr[0]);
    $day_of_week = date(“w”, $datefrom);
    $fromweek_start = $datefrom – ($day_of_week * 86400) – ($datefrom % 86400);
    $diff_days = days_between($datefrom, $dateto);
    $diff_weeks = intval($diff_days / 7);
    $seconds_left = ($diff_days % 7) * 86400;
    if( ($datefrom – $fromweek_start) + $seconds_left > 604800 )
        $diff_weeks ++;
    return $diff_weeks;
function days_between($datefrom,$dateto){
    $fromday_start = mktime(0,0,0,date(“m”,$datefrom),date(“d”,$datefrom),date(“Y”,$datefrom));
    $diff = $dateto – $datefrom;
    $days = intval( $diff / 86400 ); // 86400  / day
    if( ($datefrom – $fromday_start) + ($diff % 86400) > 86400 )
    return  $days;