Blog

Replace pattern1 with pattern2 :

:%s/pattern1/pattern2/gc

Replace all whitespaces :

:%s/\s\+//gc

31.05.13 09:07 AM - Comment(s)

To convert an object to string JSON.stringify(obj) is enough.

var  obj = {
  name
: 'myName',
  value: 'anyValue',
};

JSON
.stringify(obj);

21.09.12 08:33 AM - Comment(s)

Chart that converts points to pixels (and ems and %). It also depends on font, browser and OS.

PointsPixelsEmsPercent
6pt8px0.5em50%
7pt9px0.55em55%
7.5pt10px0.625em62.5%
8pt11px0.7em70%
9pt12px0.75em75%
10pt13px0.8em80%
10.5pt14px0.875em87.5%
11pt15px0.95em95%
12pt16px1em100%
13pt17px1.05em105%
13.5pt18px1.125...
07.08.12 01:31 PM - Comment(s)
Just follow the below steps to get it done:::


1. Type 'about:config' in mobile browser address bar. This opens configuration settings.
2. There is a option for use bitmap fonts. Change that to Yes.



22.06.12 06:42 AM - Comment(s)

Once you save the changes in bashrc file, you need to open a fresh tab for the changes to get reflected

If the changes has to be reflected in same tab, then enter the following command


source .bashrc



21.06.12 12:06 PM - Comment(s)
Here is the fix

  • Go to directory cd /usr/share/fonts/truetype/freefont/
  • Delete both the FreeSerif.ttf and FreeSans.ttf file.

Command


sudo rm -f /usr/share/fonts/truetype/freefont/FreeSerif.ttf 
sudo rm -f /usr/share/fonts/truetype/freefont/FreeSans.ttf 



21.06.12 12:00 PM - Comment(s)
To get nslookup of domain name,check the below command


nslookup domainName

Eg: nslookup sathishkumars.in



To get name server details:


dig +short NS domainName

Eg: dig +short NS sathishkumars.in



21.06.12 08:02 AM - Comment(s)

Hello world!!

Hello  world!!!

Hello  world!!!

Hello  world!!!

14.06.12 12:02 PM - Comment(s)