1 0
post icon

Robocopy – Copy files and exclude few

E:\>robocopy e:\foo-folder\foo\ e:\test /s /xf *.mp3 *.mp4 *.wav *.flv *.vob * .xml *.wmv

Leave a Comment
September 20, 2012
post icon

How do you Stretch a Background Image in a Web Page?

The best way to stretch an image to fit the background of a page is to use the CSS 3 property, background-size:

body {
background: url(bgimage.jpg) no-repeat;
background-size: 100%;

Leave a Comment
post icon

Google Fonts – adding Fonts from Google API


example –

<link rel=”stylesheet” type=”text/css” href=”http://fonts.googleapis.com/css?family=Oregano” />
<link href=’http://fonts.googleapis.com/css?family=Lemon’ rel=’stylesheet’ type=’text/css’>
<style type=”text/css”>
h2 {
font-family: ‘Oregano’,cursive;
font-size: 28px;
h1 {
font-family: ‘Lemon’,cursive;
font-size: 28px;


Leave a Comment
September 10, 2012
post icon

Google Apps MX record values

Name/Host/Alias  (TTL) Record Type Value
Blank or @ 300 MX 1 ASPMX.L.GOOGLE.COM
Blank or @ 300 MX 5 ALT1.ASPMX.L.GOOGLE.COM
Blank or @ 300 MX 5 ALT2.ASPMX.L.GOOGLE.COM
Blank or @ 300 MX 10 ASPMX2.GOOGLEMAIL.COM
Blank or @ 300 MX 10 ASPMX3.GOOGLEMAIL.COM
Leave a Comment
post icon

The audio service is not running – Server

1. Click Start, type Services.msc in the Start Search box.

2. Scroll down the list of services, right-click Windows Audio and select Start.

3. Select Properties for Windows Audio and set its Startup Type to Automatic.

If the Windows Audio service does not start and you get the error Error 1068: The dependency service or group failed to start, then make sure that the following services are started and their Startup Type is set to Automatic.

  • Plug and Play
  • Multimedia Class Scheduler
  • Windows Audio Endpoint Builder
Leave a Comment
post icon

Setting Timezone for India in PHP

if you need to setup Time Zone for India, do includes these lines at the begining of

$date = date(‘Y-m-d’);

Leave a Comment
September 4, 2012
post icon

Adding Local Time Zone

If need to set time adjusted as per the localtime of hosting domain country


date_default_timezone_set(‘America/Chicago ‘);

Leave a Comment
August 30, 2012
post icon

Auto Refresh PHP page

$sec = 10;
$page = $_SERVER[‘PHP_SELF’];

header(“Refresh: $sec; url=$page”);


Page will refresh every 10 sec.

Leave a Comment
August 27, 2012
post icon

Update MySQL data from two tables

update node_revisions one, content_news_image two
set one.image = two.image_value
where one.nid = two.nid


Ex 2

update tbl_news one, term_node two
set one.description = two.description
where one.vid = two.vid

tbl_news – name of the table to be updated
term_node – name of table which hold data
one.description – name of the field where data is going (being updated)
two.description – name of the field FROM where data is hold



Leave a Comment
post icon

Using Google Adsense code in a proper way

For important section of the post/page make sure to include text between –

If your pages contain important, targeted sections that you want to emphasize, tell Googlebot by surrounding them with this code:
<!– google_ad_section_start –>
Information to be emphasized
<!– google_ad_section_end –>

If you want Adsense bot to ignore some text of the post,

If there are areas of your pages that contain necessary but untargeted information, ask Google AdSense to ignore them. You might have to block off a navigation menu, a ‘word of the day,’ or other unrelated content. Surround the areas you want ignored with the following code:
<!– google_ad_section_start(weight=ignore) –>
Information to be ignored
<!– google_ad_section_end –>

Leave a Comment