<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/rss2full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:sy="http://purl.org/rss/1.0/modules/syndication/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" version="2.0">
	<channel>
		<title><![CDATA[Skipser - Tech Blog]]></title>
		<link>http://www.skipser.com</link>
		<description><![CDATA[Selected most interesting/informative articles.]]></description>
		<lastBuildDate>Sun, 28 Apr 2013 15:03:46 +0000</lastBuildDate>
		<language>en</language>
		<image><link>http://www.skipser.com/</link><url>http://www.skipser.com/activetemplate/images/logo_txt_200x50.png</url><title>Skipser</title></image>
		<generator>Skipser</generator>
		
		<atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" type="application/rss+xml" href="http://feeds.feedburner.com/skipser" /><feedburner:info uri="skipser" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com/" /><feedburner:emailServiceId>skipser</feedburner:emailServiceId><feedburner:feedburnerHostname>http://feedburner.google.com</feedburner:feedburnerHostname><item>
			<title><![CDATA[How to Share a PC Internet Connection WIth an Android Device via USB.]]></title>
			<link>http://feedproxy.google.com/~r/skipser/~3/WKlkP9LKaGk/share-pc-internet-with-android-via-usb.html</link>
			<description><![CDATA[Share your computer internet connection with any android device directly via USB with this simple trick.]]></description>
			<pubDate>Sun, 28 Apr 2013 15:03:46 +0000</pubDate>
			<guid isPermaLink="false">http://www.skipser.com/p/2/p/share-pc-internet-with-android-via-usb.html</guid>
			<content:encoded><![CDATA[<div><p>Sharing a PC internet connection not only brings the super-fast internet into your phone, but also saves on your monthly bills. There are two ways to share internet between your computer and any android device.</p>
<ol>
<li><a href="http://www.skipser.com/p/2/p/share-pc-internet-with-android-or-iphone-without-using-router.html">Make a hotspot using your network card and use your Android's WiFi connection to connect to it.</a></li>
<li>Share connection directly via USB.</li>
</ol>
<h2>Using USB to share PC Internet With Android Phone.</h2>
<p><strong>Requirement:</strong> Before starting out, please keep in mind that your android device <strong>MUST BE ROOTED</strong>. </p>
<p>What you will be doing is something called <strong>reverse tethering</strong>. For those new to this term, <em>tethering is the process by which you share your Android device's internet connection with any other device like PC</em>.</p>
<p>First you need to <a rel="nofollow" href="http://www.mediafire.com/?vjbq255c8pza575" target="_blank">download the reverse tethering tool</a>. It comes as a zipped folder, so extract the folder somewhere you can access easily. Once done, simply follow these steps -</p>
<p>1. Some preparations on your android phone -</p>
<ul>
<li>Turn on USB debugging <em>(Settings -&gt; Developer Options -&gt; USB Debugging)</em>. </li>
<li>Make sure the option to install apps from outside Google's play store is enabled <em>(Settings -&gt; Security -&gt; Unknown Sources)</em></li>
</ul>
<p>2. Now connect the android device to the computer using a USB cable.</p>
<p>3. Inside the downloaded folder, you will have a file - <em>"AndroidTool.exe"</em>. Double click to run it. This is the reverse tethering tool. On starting, it will automatically detect your connected android device. If not, just hit the refresh button.</p>
<p><img class="img1" src="http://www.skipser.com/i/2/images/a1/android-reverse-tethering1.png" alt="Share PC internet with android via usb" /></p>
<p>4. All done, now click <em>"Connect"</em> and the tool will start the reverse tethering process. You will be prompted to provide super-user permissions in your phone the first time. Upon granting permissions, the tool will install a <em>"USB tunnel</em>" app in your android device. The app will start a service in your phone which will convert data coming though the USB connection to make it look like a network.</p>
<p><img class="img1" src="http://www.skipser.com/i/2/images/a1/android-reverse-tethering2.png" alt="reverse tethering superuser permission" width="320" height="569" /></p>
<p>That's it - your computer's internet is now shared with your phone. You can use it to browse the net, install new apps from the play store or to update apps.<br /><span style="color: #ff6600;"><em>Please note the installed app is different from the "USB tunnel" app available 
in the play store, so don't try installing it from the store manually.</em></span></p>
<p><span style="color: #ff6600;"><em><img class="img1" src="http://www.skipser.com/i/2/images/a1/android-reverse-tethering3.png" alt="Share PC internet with android via usb" /></em></span></p>
<p>What makes this tool great is - creating a shared connection is as simple as opening the tool and clicking <em>"Connect"</em>. To make it simpler, you could keep the extracted folder inside one of your drives and have a desktop shortcut to the <em>"AndroidTool.exe"</em> file for quick access.</p>
<p><em>HINT: Older versions of Google play store has a dependency on your phone's WiFi and mobile internet. So make sure you update your Google Play store app to the latest version or turn on WiFi while connecting using the tool. You need don't really need a WiFi connection, just that Play store needs to see it as turned on.. what a hack :-)</em></p>
<p>As usual if you encounter any issues or have suggestions, please feel free to leave a comment and I will get back.<em><br /></em></p><p>
	<a border="0" href="http://twitter.com/share?url=http://www.skipser.com/p/2/p/share-pc-internet-with-android-via-usb.html&text=How to Share a PC Internet Connection WIth an Android Device via USB."  title="Post to Twitter" target="_blank"><img src="http://www.skipser.com/activetemplate/images/rss/tweet.png" alt="Twitter" border="0"  /></a> <a href="http://www.facebook.com/sharer.php?u=http://www.skipser.com/p/2/p/share-pc-internet-with-android-via-usb.html" title="Share on Facebook" target="_blank"><img src="http://www.skipser.com/activetemplate/images/rss/share.png" alt="Facebook" border="0" /></a>
</p>
<hr />
<p>
	<a href="http://www.skipser.com" target="_blank">
		<img width="200" height="50" border="0" align="right" alt="Skipser" src="http://www.skipser.com/activetemplate/images/logo_txt_200x50.png" />
	</a>
	<small>This story, <a href="http://www.skipser.com/p/2/p/share-pc-internet-with-android-via-usb.html" target="_blank">How to Share a PC Internet Connection WIth an Android Device via USB.</a>, was originally published at <a href="http://www.skipser.com" target="_blank">Skipser</a>.</small>
</p>

<a href="http://www.facebook.com/skipser" target="_blank"><img border="0" src="http://www.skipser.com/activetemplate/images/rss/fb_small.png" /></a> 
<a href="http://twitter.com/skipser" target="_blank"><img border="0" src="http://www.skipser.com/activetemplate/images/rss/tw_small.png" /></a> 
<a href="https://plus.google.com/107226510212097262777" target="_blank"><img border="0" src="http://www.skipser.com/activetemplate/images/rss/gplus_small.png" /></a>
<a href="http://feeds.feedburner.com/skipser" target="_blank"><img border="0" src="http://www.skipser.com/activetemplate/images/rss/rss_small.png" /></a>
</div><img src="http://feeds.feedburner.com/~r/skipser/~4/WKlkP9LKaGk" height="1" width="1"/>]]></content:encoded>
		<feedburner:origLink>http://www.skipser.com/p/2/p/share-pc-internet-with-android-via-usb.html</feedburner:origLink></item>
		<item>
			<title><![CDATA[How to Add Google+ Comments to Your Wordpress Blog And Improve Readership.]]></title>
			<link>http://feedproxy.google.com/~r/skipser/~3/gCw0JOBWIBA/add-google-plus-comments-to-wordpress.html</link>
			<description><![CDATA[The best wordpress plugin to add Google+ comments to your wordpress blog. It is fully customizable with features you won&#39;t find with other plugins.]]></description>
			<pubDate>Thu, 25 Apr 2013 12:12:01 +0000</pubDate>
			<guid isPermaLink="false">http://www.skipser.com/p/2/p/add-google-plus-comments-to-wordpress.html</guid>
			<content:encoded><![CDATA[<div><p>The <strong>Google+ Commenting</strong> platform is unique in terms of features and value additions to every website. Here's what makes it special -</p>
<ul>
<li>Least spam - Nobody wants to loose their Google account right!!</li>
<li>Universal Commenting - Comments made directly from Google+ about your content also displayed on the page.</li>
<li>More Readers - Comments shared to Google+ brings in more viewers.</li>
<li>SEO friendly - All comments are fully indexed by Google ranking your site better.</li>
</ul>
<p><img class="img1" src="http://www.skipser.com/i/2/images/a1/google-comments-widget1.png" alt="Google+ comments widget wordpress" /></p>
<h2>Adding Google+ Comments to Your WordPress Blog.
</h2>
<p>The best way to add the Google+ Commenting system to your WordPress blog is using the plugin - <em><strong>"Google+ Comments Widget"</strong></em> </p>
<p>To install the plugin, just follow these steps.</p>
<ol>
<li>Download the plugin from <a rel="nofollow" href="http://wordpress.org/extend/plugins/google-comments-widget/" target="_blank">wordpress plugin directory</a> and unzip</li>
<li>Upload the google-comments-widget folder to your `/wp-content/plugins/` directory.</li>
<li>Activate the plugin through the <em>"Plugins"</em> menu in WordPress. Once activated, a sub-menu <em>"Google+ Comments"</em> will automatically get added to the <em>"Comments" </em>menu in your WordPress admin dashboard.</li>
<li>Go to <em>"Comments -&gt; Google+ Comments"</em> and customize the commenting system as per your needs.</li>
</ol>
<p><img class="img1" src="http://www.skipser.com/i/2/images/a1/google-comments-widget2.png" alt="Google+ comments widget options wordpress" width="552" height="298" /></p>
<p>Once activated, your existing comments will be replaced with the new Google+ Commenting system.</p>
<h2>Google+ Comments widget options.</h2>
<p>By default, the Google+ Comments widget will load with a width of 500px. But there are a host of options for you to customize -</p>
<ul>
<li>Width - You can set the widget width to suit your site's dimensions.</li>
<li>Dynamic Width - If you are using a responsive layout, Google+ commenting system has a bug. Suppose the width is set to 500 pixels and your site is loaded in a 
mobile with a screen size of 300 pixels. Google+ Comments will load with
 a fixed size of 500 and will overflow the screen. Just set the <em>"dynamic width"</em> option and the plugin will dynamically calculate the display width and use it to load Google+ Comments leaving no room for overflows.</li>
<li>Retain Older Comments - You definitely don't want to loose your old wordpress comments when migrating to Google+. This option is set by default so your older comments will show up below the Google+ comments.</li>
<li>On-Demand comments - Set this to true and a <em>"Show Comments"</em> link will be displayed instead of the comments. Click on it and all comments will show up inline.</li>
</ul>
<p>Unlike Facebook comments which didn't really hit the mark, Google+ have tried to do away with all the negatives. Google+ Comments come with better readability, comment aggregation from Google+, SEO support and more importantly, Google's own security and spam checking. </p>
<p>So be sure to try out the plugin and please let me know if you face any issues as comments below. If you like the plugin, please do rate it in the <a href="http://wordpress.org/extend/plugins/google-comments-widget/" target="_blank">WordPress Plugin directory</a> and help spread the word. Finally, here's video showing the plugin in action.
</p>
<div class="youtube-video">
<iframe type="text/html" width="575" height="350" src="http://www.youtube.com/embed/7q7fjGbSxEI?showinfo=0&&modestbranding=1&rel=0&iv_load_policy=3&hl=en_US" frameborder="0" ></iframe>
</div><p>
	<a border="0" href="http://twitter.com/share?url=http://www.skipser.com/p/2/p/add-google-plus-comments-to-wordpress.html&text=How to Add Google+ Comments to Your Wordpress Blog And Improve Readership."  title="Post to Twitter" target="_blank"><img src="http://www.skipser.com/activetemplate/images/rss/tweet.png" alt="Twitter" border="0"  /></a> <a href="http://www.facebook.com/sharer.php?u=http://www.skipser.com/p/2/p/add-google-plus-comments-to-wordpress.html" title="Share on Facebook" target="_blank"><img src="http://www.skipser.com/activetemplate/images/rss/share.png" alt="Facebook" border="0" /></a>
</p>
<hr />
<p>
	<a href="http://www.skipser.com" target="_blank">
		<img width="200" height="50" border="0" align="right" alt="Skipser" src="http://www.skipser.com/activetemplate/images/logo_txt_200x50.png" />
	</a>
	<small>This story, <a href="http://www.skipser.com/p/2/p/add-google-plus-comments-to-wordpress.html" target="_blank">How to Add Google+ Comments to Your Wordpress Blog And Improve Readership.</a>, was originally published at <a href="http://www.skipser.com" target="_blank">Skipser</a>.</small>
</p>

<a href="http://www.facebook.com/skipser" target="_blank"><img border="0" src="http://www.skipser.com/activetemplate/images/rss/fb_small.png" /></a> 
<a href="http://twitter.com/skipser" target="_blank"><img border="0" src="http://www.skipser.com/activetemplate/images/rss/tw_small.png" /></a> 
<a href="https://plus.google.com/107226510212097262777" target="_blank"><img border="0" src="http://www.skipser.com/activetemplate/images/rss/gplus_small.png" /></a>
<a href="http://feeds.feedburner.com/skipser" target="_blank"><img border="0" src="http://www.skipser.com/activetemplate/images/rss/rss_small.png" /></a>
</div><img src="http://feeds.feedburner.com/~r/skipser/~4/gCw0JOBWIBA" height="1" width="1"/>]]></content:encoded>
		<feedburner:origLink>http://www.skipser.com/p/2/p/add-google-plus-comments-to-wordpress.html</feedburner:origLink></item>
		<item>
			<title><![CDATA[How to Add Dynamic Responsive Adsense Ads in Any Website.]]></title>
			<link>http://feedproxy.google.com/~r/skipser/~3/HxX8FAdA774/dynamic-responsive-adsense-ads.html</link>
			<description><![CDATA[Make your Adsense ads responsive like your website so ads of correct size get displayed dynamically in monitor, tablet, smartphone or any other device.]]></description>
			<pubDate>Tue, 23 Apr 2013 15:03:01 +0000</pubDate>
			<guid isPermaLink="false">http://www.skipser.com/p/2/p/dynamic-responsive-adsense-ads.html</guid>
			<content:encoded><![CDATA[<div><p>Responsive layout is now a design standard across websites. It lets you display your website with the same <em>look and feel</em> on different screens like monitor, tablet, mobile etc. Even Google now recommends using responsive layout instead of creating separate pages for mobiles.</p>
<p>With responsive design, all components in the web page HTML adjusts dynamically and even position themselves depending on the screen size. But what about ads? Google's Adsense ads are not dynamic. They have fixed width/height and if the screen size is smaller, the ads just overflow the screen causing a part of the ad to be hidden. <img class="img1" src="http://www.skipser.com/i/2/images/a1/responsive-asense-ad.png" alt="reponsieve adsense ad" /></p>
<h2>Make Google Adsense Ads Responsive.</h2>
<p>As mentioned before, an Adsense ad unit can only have fixed dimensions by default. But luckily, Adsense provides a variety of ad sizes. So the trick is to show an ad of appropriate size depending on the screen size. </p>
<p>For example, open this <a href="http://www.skipser.com/test/responsive-adsense/test.html" target="_blank"><strong>demo page</strong></a> in your PC browser and you would see a <em>728x90 large leatherboard</em> Adsense unit. Now try resizing the browser by reducing it's width to be lesser than the ad unit and refresh the page. You will find a <em>468x60</em> or smaller ad appearing which will stay fully within the screen size.</p>
<h2>Responsive Adsense Ad JavaScript Trick.</h2>
<p>What you need to do is to replace the original Adsense code in your website with this JavaScript code. Don't worry, we are not violating any of Google's Terms and this method is approved by the Adsense team.</p>
<pre class="prettyprint linenums">&lt;div style="width:100%;"&gt;
    &lt;script type="text/javascript"&gt;
    
        // REPLACE THIS WITH YOUR ADSENSE PUBLISHER ID.
        google_ad_client = "ca-pub-592601807724218";
    
        // AD UNITS YOU WANT TO DISPLAY FOR THIS POSITION.
        var adsarr=[
            // The format is [width, height, "ad slot number"]
            [728, 90, "XXX"],
            [468, 60, "YYY"],<br />            [234, 60, "ZZZ"]
        ];
        
        // DO NOT MODIFY ANYTHING BELOW. 
        // This shows the adsense ad depending on your screen size.
        var scripts = document.getElementsByTagName( 'script' );
        var adblock = scripts[ scripts.length - 1 ].parentNode;
        var width=adblock.offsetWidth;                
    
        var got_adunit=0;
        for (var i = 0; i &lt; adsarr.length; i++) {
            adunitarr=adsarr[i];
            if(width &gt;= adunitarr[0]) {
                google_ad_width = adunitarr[0];
                google_ad_height = adunitarr[1];
                google_ad_slot = adunitarr[2];
                got_adunit=1;
                break;
            }
        }
        if (got_adunit == 0) {
            google_ad_slot="0";
            adblock.style.display="none";
        }
    &lt;/script&gt;
    &lt;script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"&gt;&lt;/script&gt;
&lt;/div&gt;
</pre>
<p>In the code, you need to replace two things.</p>
<ol>
<li><strong><em>google_ad_client</em></strong> value should be replaced with your Adsense publisher ID.</li>
<li>For the array with items like <em><strong>[970, 90, "YYY"]</strong></em>, replace them with values for the ads you want to show. The format is [width, height, "ad slot number"]. You can get these values from the Adsense code for the ad unit you want to add.</li>
</ol>
<p>What we are doing is to specify a set of Adsense ad units for different sizes as an array and the code will automatically display the best fitting ad. You could add,remove or change any ad in the array, but make sure the width, height and slot number are exactly the same as in the corresponding Adsense ad code.</p>
<p>For example, if you want to add a responsive ad in your header, you could have the array with leatherboard ads like "728x90", "468x60" and "234x60". And for your sidebar, the ads could be "300x250", "250x250" and "200x200". Depending on display area width, the best fitting ad would be shown.</p>
<p>The same code can be used in multiple places to show more than one ads in a page as well.</p>
<h2>Why This Responsive Adsense Ad Does Not Violate Adsense Policies?</h2>
<p>Google mandates the following in their Adsense publisher policy.</p>
<blockquote>
<p>Once you've generated your code, we ask that you do not alter any portion of the code or change the layout, behavior, targeting, or delivery of ads for any reason, unless specifically authorized to do so by Google.</p>
</blockquote>
<p>
Our JavaScript trick does not actually modify the Adsense code at all. All we are doing is to detect the display area size and use the exact Adsense code for the ad unit that would fit the area. Hence it does not violate any adsense policy.</p>
<p><em>Note: Thanks to <a rel="nofollow" href="http://www.labnol.org/internet/responsive-google-ads-approved/27872/" target="_blank">+Amit Agarwal</a> for the original concept.</em></p>
<p>Also Read: <a href="http://www.skipser.com/p/2/p/comparison-adsense-300x250-vs-300x600.html">Why you should use the new 300x600 adsense unit</a>.<em><br /></em></p><p>
	<a border="0" href="http://twitter.com/share?url=http://www.skipser.com/p/2/p/dynamic-responsive-adsense-ads.html&text=How to Add Dynamic Responsive Adsense Ads in Any Website."  title="Post to Twitter" target="_blank"><img src="http://www.skipser.com/activetemplate/images/rss/tweet.png" alt="Twitter" border="0"  /></a> <a href="http://www.facebook.com/sharer.php?u=http://www.skipser.com/p/2/p/dynamic-responsive-adsense-ads.html" title="Share on Facebook" target="_blank"><img src="http://www.skipser.com/activetemplate/images/rss/share.png" alt="Facebook" border="0" /></a>
</p>
<hr />
<p>
	<a href="http://www.skipser.com" target="_blank">
		<img width="200" height="50" border="0" align="right" alt="Skipser" src="http://www.skipser.com/activetemplate/images/logo_txt_200x50.png" />
	</a>
	<small>This story, <a href="http://www.skipser.com/p/2/p/dynamic-responsive-adsense-ads.html" target="_blank">How to Add Dynamic Responsive Adsense Ads in Any Website.</a>, was originally published at <a href="http://www.skipser.com" target="_blank">Skipser</a>.</small>
</p>

<a href="http://www.facebook.com/skipser" target="_blank"><img border="0" src="http://www.skipser.com/activetemplate/images/rss/fb_small.png" /></a> 
<a href="http://twitter.com/skipser" target="_blank"><img border="0" src="http://www.skipser.com/activetemplate/images/rss/tw_small.png" /></a> 
<a href="https://plus.google.com/107226510212097262777" target="_blank"><img border="0" src="http://www.skipser.com/activetemplate/images/rss/gplus_small.png" /></a>
<a href="http://feeds.feedburner.com/skipser" target="_blank"><img border="0" src="http://www.skipser.com/activetemplate/images/rss/rss_small.png" /></a>
</div><img src="http://feeds.feedburner.com/~r/skipser/~4/HxX8FAdA774" height="1" width="1"/>]]></content:encoded>
		<feedburner:origLink>http://www.skipser.com/p/2/p/dynamic-responsive-adsense-ads.html</feedburner:origLink></item>
		<item>
			<title><![CDATA[How to Type Symbols Like Smiley, Copyright, TradeMark etc Using Keyboard.]]></title>
			<link>http://feedproxy.google.com/~r/skipser/~3/wY3HF27Akc4/type-ascii-characters-using-keyboard.html</link>
			<description><![CDATA[Did you know you could just type a smiley, copyright symbol or a trademark directly from your keyboard. Here&#39;s how to do it along with the most useful ones.]]></description>
			<pubDate>Mon, 22 Apr 2013 16:04:04 +0000</pubDate>
			<guid isPermaLink="false">http://www.skipser.com/p/2/p/type-ascii-characters-using-keyboard.html</guid>
			<content:encoded><![CDATA[<div><p>What do you do when you want to add symbols like smily, copyright, trademark etc while typing in documents or posting to Facebook, Google+ or even Twitter? I bet you would just try remembering a web page where you have seen the symbol, open it and do a copy-paste. But instead of the long route, you can actually type these characters yourself directly from the keyboard.</p>
<p>The trick is to key in the characters using their ASCII code. What you do is to press the left ALT key and type the corresponding ASCII number using the numeric keys keeping the ALT key pressed.<img class="img1" src="http://www.skipser.com/i/2/images/a1/ascii-typing-keyboard.png" alt="Ascii input from keyboard" /></p>
<p>If you are using a laptop or a keyboard where you don't have dedicated numeric keys on the right,&nbsp; you can use the number keys on the top. But first make sure you press <em>"Num Lock"</em> key and the number lock indicator (green led in most cases) is turned on. Here's a list of most useful ASCII symbols you might find handy.<img class="img1" src="http://www.skipser.com/i/2/images/a1/ascii-keyboard-symbols.png" alt="Common ascii keyboard symbols" /></p>
<p>HTML was designed considering ASCII characters right from the start. That means you can key in these symbols in any web based text input including your favorite Facebook, Google+, Twitter and others. Please note that the appearance of the symbols will be different with different fonts just like text. That means you can vary their size by simply increasing font size or even changing the font family as well.</p><p>
	<a border="0" href="http://twitter.com/share?url=http://www.skipser.com/p/2/p/type-ascii-characters-using-keyboard.html&text=How to Type Symbols Like Smiley, Copyright, TradeMark etc Using Keyboard."  title="Post to Twitter" target="_blank"><img src="http://www.skipser.com/activetemplate/images/rss/tweet.png" alt="Twitter" border="0"  /></a> <a href="http://www.facebook.com/sharer.php?u=http://www.skipser.com/p/2/p/type-ascii-characters-using-keyboard.html" title="Share on Facebook" target="_blank"><img src="http://www.skipser.com/activetemplate/images/rss/share.png" alt="Facebook" border="0" /></a>
</p>
<hr />
<p>
	<a href="http://www.skipser.com" target="_blank">
		<img width="200" height="50" border="0" align="right" alt="Skipser" src="http://www.skipser.com/activetemplate/images/logo_txt_200x50.png" />
	</a>
	<small>This story, <a href="http://www.skipser.com/p/2/p/type-ascii-characters-using-keyboard.html" target="_blank">How to Type Symbols Like Smiley, Copyright, TradeMark etc Using Keyboard.</a>, was originally published at <a href="http://www.skipser.com" target="_blank">Skipser</a>.</small>
</p>

<a href="http://www.facebook.com/skipser" target="_blank"><img border="0" src="http://www.skipser.com/activetemplate/images/rss/fb_small.png" /></a> 
<a href="http://twitter.com/skipser" target="_blank"><img border="0" src="http://www.skipser.com/activetemplate/images/rss/tw_small.png" /></a> 
<a href="https://plus.google.com/107226510212097262777" target="_blank"><img border="0" src="http://www.skipser.com/activetemplate/images/rss/gplus_small.png" /></a>
<a href="http://feeds.feedburner.com/skipser" target="_blank"><img border="0" src="http://www.skipser.com/activetemplate/images/rss/rss_small.png" /></a>
</div><img src="http://feeds.feedburner.com/~r/skipser/~4/wY3HF27Akc4" height="1" width="1"/>]]></content:encoded>
		<feedburner:origLink>http://www.skipser.com/p/2/p/type-ascii-characters-using-keyboard.html</feedburner:origLink></item>
		<item>
			<title><![CDATA[How To Add Google+ Comments to Blogger Even For Custom Templates.]]></title>
			<link>http://feedproxy.google.com/~r/skipser/~3/D5ATxYcYlRk/add-google-plus-comments-to-blogger.html</link>
			<description><![CDATA[Add Google+ comments to your blog and bring in more engagement.]]></description>
			<pubDate>Fri, 19 Apr 2013 17:05:44 +0000</pubDate>
			<guid isPermaLink="false">http://www.skipser.com/p/2/p/add-google-plus-comments-to-blogger.html</guid>
			<content:encoded><![CDATA[<div><p>Comments not only lets you connect with your readers, but also brings in more authority to your blog. A blog with hundred comments is surely something a lot of others have found interesting and makes a visitor to stick around rather than browsing away. And Google has made it better by allowing you to bring <a href="http://googleblog.blogspot.in/2013/04/bringing-google-comments-to-blogger.html" target="_blank">Google+ comments</a> directly into your Blogger blog. 
</p>
<p><img class="img1" src="http://www.skipser.com/i/2/images/a1/blogger-googleplus-comments3.png" alt="google plus comments for blogger blog" /></p>
<p>That means instead of using the standard comment box and the infamous captcha, your readers can add in their comments directly using their Google+ accounts. There are a lot of advantages to this.</p>
<ul>
<li>Captcha checking is fully gone making commenting more fun.</li>
<li>Commenting with Google+ indirectly means commenting using a Gmail id and not many people would take the risk of spamming only to loose their Gmail account.</li>
<li>Google+ commenting tool also displays all comments from the Google+ universe related to your content. That means if <em>Jack </em>shares your post and <em>Jill </em>adds a comment on Google+, <em>Jill's</em> comment will automatically appear on your blog post as well.</li>
<li>Comments made from your blog also get shared to the commenter's profile in Google+ bringing in more readers.</li>
<li>Google will index all Google+ comments making your post look updated with every new comment - a nice SEO feature added with zero effort.</li>
</ul>
<h2>Adding Google+ commenting to blogger blog.</h2>
<p>First go to <a rel="nofollow" href="http://www.blogger.com" target="_blank">blogger.com</a> and select your blog. On the left menu, select the new <em><strong>Google+</strong></em> option. Now click on the <em>"Get Started"</em> button that will come up on the right.<img class="img1" src="http://www.skipser.com/i/2/images/a1/blogger-googleplus-comments1.png" alt="" /></p>
<p>Your blogger profile will now get replaced with your Google+ profile. This indirectly adds authorship data for your blog in case you have not already done. In the next page, make sure to tick the <strong><em>"Use Google+ comments on this blog"</em></strong> and Google+ comments are now enabled for your blog.<img class="img1" src="http://www.skipser.com/i/2/images/a1/blogger-googleplus-comments2.png" alt="" /></p>
<h2>I am using a custom template and the tool doesn't show up.</h2>
<p>If you are using a custom blogger template instead of one provided by blogger, chances are the commenting tool won't show up. The reason being the appropriate placeholders not available in your custom template. But no worries. You can add the comment placeholder code to your template yourself. Simply edit your template and add the following lines where you want the commenting tool to appear.</p>
<pre class="prettyprint linenums">&lt;div class='cmt_iframe_holder' expr:data-href='data:post.canonicalUrl' expr:data viewtype='data:post.viewType'/&gt;</pre><p>
	<a border="0" href="http://twitter.com/share?url=http://www.skipser.com/p/2/p/add-google-plus-comments-to-blogger.html&text=How To Add Google+ Comments to Blogger Even For Custom Templates."  title="Post to Twitter" target="_blank"><img src="http://www.skipser.com/activetemplate/images/rss/tweet.png" alt="Twitter" border="0"  /></a> <a href="http://www.facebook.com/sharer.php?u=http://www.skipser.com/p/2/p/add-google-plus-comments-to-blogger.html" title="Share on Facebook" target="_blank"><img src="http://www.skipser.com/activetemplate/images/rss/share.png" alt="Facebook" border="0" /></a>
</p>
<hr />
<p>
	<a href="http://www.skipser.com" target="_blank">
		<img width="200" height="50" border="0" align="right" alt="Skipser" src="http://www.skipser.com/activetemplate/images/logo_txt_200x50.png" />
	</a>
	<small>This story, <a href="http://www.skipser.com/p/2/p/add-google-plus-comments-to-blogger.html" target="_blank">How To Add Google+ Comments to Blogger Even For Custom Templates.</a>, was originally published at <a href="http://www.skipser.com" target="_blank">Skipser</a>.</small>
</p>

<a href="http://www.facebook.com/skipser" target="_blank"><img border="0" src="http://www.skipser.com/activetemplate/images/rss/fb_small.png" /></a> 
<a href="http://twitter.com/skipser" target="_blank"><img border="0" src="http://www.skipser.com/activetemplate/images/rss/tw_small.png" /></a> 
<a href="https://plus.google.com/107226510212097262777" target="_blank"><img border="0" src="http://www.skipser.com/activetemplate/images/rss/gplus_small.png" /></a>
<a href="http://feeds.feedburner.com/skipser" target="_blank"><img border="0" src="http://www.skipser.com/activetemplate/images/rss/rss_small.png" /></a>
</div><img src="http://feeds.feedburner.com/~r/skipser/~4/D5ATxYcYlRk" height="1" width="1"/>]]></content:encoded>
		<feedburner:origLink>http://www.skipser.com/p/2/p/add-google-plus-comments-to-blogger.html</feedburner:origLink></item>
		<item>
			<title><![CDATA[A New Way to Share Your Wallpapers With A Multi Screen Preview.]]></title>
			<link>http://feedproxy.google.com/~r/skipser/~3/dB8Z0jOOnyo/share-wallpaper-with-multi-screen-preview.html</link>
			<description><![CDATA[Instead of sharing images as such, share a screenshot preview of how the image will look like in different screens using the multi screen preview tool.]]></description>
			<pubDate>Thu, 18 Apr 2013 18:06:26 +0000</pubDate>
			<guid isPermaLink="false">http://www.skipser.com/p/2/p/share-wallpaper-with-multi-screen-preview.html</guid>
			<content:encoded><![CDATA[<div><p>You could be a photographer sharing your latest shot or a blogger publishing some cool new wallpaper. With all the different screen sizes to satisfy (laptop, mobile, tablet ...etc), you end up making a set of images catering to these different screens. But when it comes to sharing, you always share a thumbnail of the original.</p>
<p>Here's a better way - Instead of sharing the original image directly, share a screenshot preview of&nbsp; how the image will look like in different screens. So now, instead of your viewers having to imagine how it would look like on a tablet or mobile, they readily have it before their eyes. And better preview means more likes/shares. Something like this -<img class="img1" src="http://www.skipser.com/i/2/images/wallpapers/blossom_complete.jpg" alt="" width="580" height="350" /></p>
<h2>Creating Multi Screen Preview of Image.</h2>
<p>You would have seen similar previews in many professional blogs and websites, but there is always a skilled artist who is paid to create them using tools like Photoshop. This free and easy to use <em>"Multi Screen Preview Tool"</em> will let you create such previews yourself with a single click. Using the tool can't be easier</p>
<ol>
<li>Fist open the <a href="http://www.skipser.com/test/multi-monitor-image-preview/test.html" target="_blank">Multi Screen Preview Tool</a> in your browser.</li>
<li>Copy paste the URL of your image in the image field.</li>
<li>Click the generate button.</li>
</ol>
<p><img class="img1" src="http://www.skipser.com/i/2/images/a1/multi-screen-image-preview.png" alt="multi screen image preview" width="527" height="400" />The tool fetches the image from the URL and displays the preview after creating it. You can choose from two different sizes - 600px and 900px (width). The preview image will have the full image in the background and the same displayed on a monitor, laptop, tablet and a mobile. For the smaller screens (mobile and tablet), the landscape image is scaled to fit the height. That means a portion of the image will be shown in these screens and you can choose which portion of the image - center, left or right to show using the drop-down option.</p>
<p>There is a catch though. Although the preview looks like a single image, it is actually a set of images re-sized, scaled and properly laid out in a template one over the other using CSS and Javascript. That means you can't just right click and save the preview image to your disk. You can either hit the <em>"print screen"</em> button and cut out the preview using an image editor like MS Paint or use a browser extension like <a href="http://www.skipser.com/p/2/p/capture-full-page-screenshots-of-web-pages.html">Awesome Screenshot Plus</a> to save the preview portion directly from the browser. But that should be child's play for almost any computer user.</p>
<p><em>HINT: The tools works best on chrome. The preview is created by placing scaled images in appropriate positions and chrome browser has the best scaling algorithm maintaining curves in the image properly.</em></p>
<p>So next time you put your camera to work, do try out the <em>"Multi-Screen image preview"</em> for sharing and let me know if you liked it.</p><p>
	<a border="0" href="http://twitter.com/share?url=http://www.skipser.com/p/2/p/share-wallpaper-with-multi-screen-preview.html&text=A New Way to Share Your Wallpapers With A Multi Screen Preview."  title="Post to Twitter" target="_blank"><img src="http://www.skipser.com/activetemplate/images/rss/tweet.png" alt="Twitter" border="0"  /></a> <a href="http://www.facebook.com/sharer.php?u=http://www.skipser.com/p/2/p/share-wallpaper-with-multi-screen-preview.html" title="Share on Facebook" target="_blank"><img src="http://www.skipser.com/activetemplate/images/rss/share.png" alt="Facebook" border="0" /></a>
</p>
<hr />
<p>
	<a href="http://www.skipser.com" target="_blank">
		<img width="200" height="50" border="0" align="right" alt="Skipser" src="http://www.skipser.com/activetemplate/images/logo_txt_200x50.png" />
	</a>
	<small>This story, <a href="http://www.skipser.com/p/2/p/share-wallpaper-with-multi-screen-preview.html" target="_blank">A New Way to Share Your Wallpapers With A Multi Screen Preview.</a>, was originally published at <a href="http://www.skipser.com" target="_blank">Skipser</a>.</small>
</p>

<a href="http://www.facebook.com/skipser" target="_blank"><img border="0" src="http://www.skipser.com/activetemplate/images/rss/fb_small.png" /></a> 
<a href="http://twitter.com/skipser" target="_blank"><img border="0" src="http://www.skipser.com/activetemplate/images/rss/tw_small.png" /></a> 
<a href="https://plus.google.com/107226510212097262777" target="_blank"><img border="0" src="http://www.skipser.com/activetemplate/images/rss/gplus_small.png" /></a>
<a href="http://feeds.feedburner.com/skipser" target="_blank"><img border="0" src="http://www.skipser.com/activetemplate/images/rss/rss_small.png" /></a>
</div><img src="http://feeds.feedburner.com/~r/skipser/~4/dB8Z0jOOnyo" height="1" width="1"/>]]></content:encoded>
		<feedburner:origLink>http://www.skipser.com/p/2/p/share-wallpaper-with-multi-screen-preview.html</feedburner:origLink></item>
		<item>
			<title><![CDATA[Embed YouTube Videos Like in Google+ And Reduce Page Load Time.]]></title>
			<link>http://feedproxy.google.com/~r/skipser/~3/-bVVgTyH-ng/youtube-video-embed-like-google-plus.html</link>
			<description><![CDATA[Embedding YouTube videos like in Google+ can significantly improve page load time. This trick will let you do it without changing any existing website code.]]></description>
			<pubDate>Sun, 14 Apr 2013 18:06:00 +0000</pubDate>
			<guid isPermaLink="false">http://www.skipser.com/p/2/p/youtube-video-embed-like-google-plus.html</guid>
			<content:encoded><![CDATA[<div><p>When you embed a YouTube video in your web page, did you know a visitor's browser would have to download an extra ~400Kb just to render the player alone?</p>
<p><img class="img1" src="http://www.skipser.com/i/2/images/a1/youtube-iframe-data-size.png" alt="Load YouTube video like Google+" /></p>
<p>That's 7 files for a flash based player and the number is 12 if a HTML5 player is used - something not really under your control. These include image files, css, xml and javascript and the bad part is - they will always download even if the visitor doesn't actually play the embedded video. The extra weight(~.4Mb) and 7-12 additional HTTP requests only adds to slowing down your pages indirectly.</p>
<p>Not to mention, your site's overall loading time also goes high in the eyes of Google and other search engines where it is a significant factor for calculating page rank.</p>
<h2>Embed Youtube Videos Google+ style.</h2>
<p>Have you noticed how Google plus posts show YouTube videos with a slightly different play button? Well, that's a cleaver trick by Google+ where instead of embedding the full YouTube player, only a preview thumbnail of the video is displayed with a custom play button on top to make it look like a player. And when you click over it, the image is replaced by the standard YouTube player which will then load and play automatically.</p>
<p>That means any player specific resources are loaded only once a visitor actually chooses to play the video and not otherwise.</p>
<p>You can also use the same technique in your website to shorten page loading time while embedding YouTube videos. And here's a trick that will let you do it without changing any of your existing code.</p>
<h2>Making YouTube Video Iframes Like Google+</h2>
<p>First, add the following line in the header section of your page<em><br /></em></p>
<pre class="prettyprint linenums">&lt;script src="https://skipser.googlecode.com/files/gplus-youtubeembed.js"&gt;&lt;/script&gt;</pre>
<p>Next you need to call the <em>"optimizeYouTubeEmbeds"</em> function that will make your YouTube video embeds like the Google+ one. To do that, add the following code just before the ending &lt;/body&gt; tag of your page.</p>
<pre class="prettyprint linenums">&lt;script type="text/javascript"&gt;optimizeYouTubeEmbeds()&lt;/script&gt;</pre>
<p>That's it. Now all YouTube video embeds in the page will load only on-demand. The code has been tested on IE, Firefox, Chrome and Opera.</p>
<p><strong>Here's a working example.
</strong></p>
<div class="youtube-video">
<iframe type="text/html" width="575" height="350" src="http://www.youtube.com/embed/6kw1UVovByw?showinfo=0&&modestbranding=1&rel=0&iv_load_policy=3&hl=en_US" frameborder="0" ></iframe>
</div>
<h2>How It Works.</h2>
<p>The <em>"optimizeYouTubeEmbeds()"</em> function quickly scans to find out all embedded YouTube iframes and replaces them with the video preview image &amp; play button just like Google+. Since it gets called right at the end of the body, the browser doesn't get a chance to download the player or any associated resources while rendering the page.
</p>
<p>Adding this small piece of code will take away ~.4Mb weight out of your web page and improve user experience. If you are interested in knowing more about the code, <a href="http://www.skipser.com/test/googlecode/gplus-youtubeembed/test.html">here's where it is explained</a>. Please do like/follow/plus me if this was useful to you. And as always, if you encounter any problems, please do let me know as comments.</p>
<p><em>IMPORTANT: If yours is a high traffic site, make sure to download a local copy and use that instead.</em></p>
<script type="text/javascript">
// Call this function at the end of the closing </body> tag.
function optimizeYouTubeEmbeds() {    
    var frames = document.getElementsByTagName( 'iframe' ); // Get all iframes
    
    // Loop through each iframe in the page.
    for ( var i = 0; i < frames.length; i++ ) {
        // Find out youtube embed iframes.
        if ( frames[ i ].src && frames[ i ].src.length > 0 && frames[ i ].src.match(/http(s)?:\/\/www\.youtube\.com/)) {
            // For Youtube iframe, extract src and id.
            var src=frames[i].src;
            var p = /^(?:https?:\/\/)?(?:www\.)?(?:youtu\.be\/|youtube\.com\/(?:embed\/|v\/|watch\?v=|watch\?.+&v=))((\w|-){11})(?:\S+)?$/;
              var id=(src.match(p) ? RegExp.$1 : false);
            if(id == false) { continue}
            
            // Get width and height.
            var w=frames[i].width;
            var h=frames[i].height;
            if(src == '' || w=='' || h=='') {continue;}
            
            // Thease are to position the play button centrally.
            var pw=Math.ceil(w/2-38.5);
            var ph=Math.ceil(h/2+38.5);    
            
            // The image+button overlay code.
            var code='<div style="width:'+w+'px; height:'+h+'px; margin:0 auto"><a href="#"  onclick="LoadYoutubeVidOnPreviewClick(\''+id+'\','+w+','+h+');return false;" id="skipser-youtubevid-'+id+'"><img src="http://i.ytimg.com/vi/'+id+'/hqdefault.jpg" style="width:'+w+'px; height:'+h+'px;" />'+
                     '<div style="background: url(\'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAE0AAABNCAYAAADjCemwAAAAAXNSR0IArs4c6QAAAAlwSFlzAAALEwAACxMBAJqcGAAABgtJREFUeNrtXE1IJEcUFuYgHhZZAzOQwKLsaeY4MuCisLNkMUYM+TtmQwgYQSEg8RCIBAMBSYIQPCgEEiEYISZIgrhzCRLYg+BBMiiDGCHGH4xGETH4O85M+huql7Knuqe7urq7ercePAZnuqtefXZVvfe911VToyRUUqdpVNMmTROaJjVt0bRN0/uapslnG/k+Sa5rIvfVPQ8gRTSNaRrX9B4Bxa3eI+3FSPvPjLxAnpAbA+7s7HxrcnLyk8XFxe82NjZ+Ozw8XDk9Pd29urr6r1Ao5EulUhGf+Bvf43dch+txH+5ngJgg/YVWXtI0RQ9qbGzso1wu99PJyclfJQGCdtAe2jWAlyL9h0ZeJGtQeQC9vb2Pstns1NnZ2X7JQ0H76Af9UeC1EHukldtksS4bPDw83Le5uTlfCkDQL/qnwEsS+6SSu/SThbWnJIHADsOTd1cGsG5p2qwbhUXayaCOj4//XFtbm52fn/96fHx8oK+v793W1tbXGhoaHkYikQf4xN/4Hr/jOlyP+5z0A7so4JqJ3YFITPenBgcHP8DuZmcA29vbT2ZnZ4fb29vfcONu4H60g/bs9Av7YCfl/8X8BuyObnwmk/kK7kGVRfqfhYWFb9wCZQUg2kc/VbArwl7q3jt+Adakd4rdysrC8/PzfzGlvADKTNEf+rWyC3ZT9zT5Btj6+nqmmmHRaPShn4Dpin6r/UNhvx/APZ2SVrsjFumRkZEPgwDLqLDDatPAOLycqjE7T5j22+Pa2toHMgCmK+yBXTafOGGbwy19l7R65LVt/VuZwDIq7LOxxt0X5Y40U7skU/xe7N1sEmZjoHbVZiGePvwbM7ciLIDZAK5I+XHckcNtvSMzx1X2Kel0qmKc1HVcsWrSKjTC4hpGwKgN7XGVkCvJQ++Ug28zt0K2XZJnVzVzR6gg3xGt1GLlj8nih4nw46r4by1OGNcyH2YjBLGte3t7i/39/e/JBpyZG0XxcbYY4DJFzSIQEdPxhka4v1AoXK+urv7a0dHxpiygYTysWBXjp6jzqkkQ07XMjXtBt5PP58+wgzU2Nr4isxtCrW2WyZqE2SML2sWNYWa8/szMzOcgHIMGjkUrUUtRwiovqTdQkQQBXyUaNF2Ojo5yBk7fd8X4WP9U6pqIaVCOdBhrYG4JRBvkanFra+v37u7ud4IADeNjGUWlB5nBPDLVaeQRWRS1W6Ps8vnX19f5lZWV6VQq1eU3cCzqHHiQ3+Ms0MqlAqxELrh4v0DT5fLy8hgLdH19/ct+gYZxshLSVAnEDanTSwW8mJo8oFFG/z0xMfFxkFOUKoG4UXSDKpw0aiRYIZMIg9zmMA8ODv6gWAjPlBVaARfye7SC+2cF58gzygAacY6LYFq7urre9go0jNciiG+q8M9YsaYovkxk5txL55jl6FKxaKKCBmLxZshsywYa7UfNzc19IZJxwXgteLZkBauBOjDjDSgJkBU0et0dHR3tF2EnxmtsH7iwWA+UaKZRQGe8AbUUsoOmy87OzhO3zjHGa2wXuJDf22jQytkmUoF4Q1CEEhbQRDjHGC9jA8pT2aqnog+sInkiKpj2CzTssNgB0+n06zx2YrysEI+65tl60hD4Dw0N9bix08mTFuo1DSFXJpP5UsQu6mRNC+XuSZjgX0QG9052z9D5aYYivXQQflpoIoKLi4tDsBFesb1OIgLpY09MxVwu97PXPJuT2FNqlgMMx8DAwPt+0ENOWA4p+TRMRT8TL075NKmYW3j1y8vLP8bj8Vf9pLudMrfS5Aj29/eXgsrE8+QIAs1GgeaZnp7+LKgUHm82KpC8J6ZiNpv9we+pKCrv6XuGHUUxPT09j2QoTeDNsPtWy6EZuDc1NfWp7CWldms5PK0a0qbixdLS0veyFL6IqhryrD5td3d3IaiSAz/q01QlJEclpKq55ay5VdXdHNXdEPUeAaeoN1Y4Rb0bxSHqLTxOUe97cop6s5hT1DvsboFTpyVwTlV1LofzzUGdAMPpjqizhtxEDjXqVCuuWFWdn8Yp6qQ+F6LOhHQh6vRRF6LOuRUg6kTl50n+B4KhcERZo7nRAAAAAElFTkSuQmCC\') no-repeat scroll 0 0 transparent;height: 77px;width: 77px; position:relative; margin-left:'+pw+'px; margin-top:-'+ph+'px;"></div></a></div>';

            // Replace the iframe with a the image+button code
            var div = document.createElement('div');
            div.innerHTML=code;
            div=div.firstChild;
            frames[i].parentNode.replaceChild(div, frames[i]);

        }
    }
}
// Replace preview image of a video with it's iframe.
function LoadYoutubeVidOnPreviewClick(id,w ,h) {
    var code='<iframe src="https://www.youtube.com/embed/'+id+'/?autoplay=1&autohide=1&border=0&wmode=opaque&enablejsapi=1" width="'+w+'" height="'+h+'" frameborder=0 allowfullscreen style="border:1px solid #ccc;" ></iframe>';
    var iframe = document.createElement('div');
    iframe.innerHTML=code;
    iframe=iframe.firstChild;
    var div=document.getElementById("skipser-youtubevid-"+id);
    div.parentNode.replaceChild( iframe, div)
}
optimizeYouTubeEmbeds();
</script><p>
	<a border="0" href="http://twitter.com/share?url=http://www.skipser.com/p/2/p/youtube-video-embed-like-google-plus.html&text=Embed YouTube Videos Like in Google+ And Reduce Page Load Time."  title="Post to Twitter" target="_blank"><img src="http://www.skipser.com/activetemplate/images/rss/tweet.png" alt="Twitter" border="0"  /></a> <a href="http://www.facebook.com/sharer.php?u=http://www.skipser.com/p/2/p/youtube-video-embed-like-google-plus.html" title="Share on Facebook" target="_blank"><img src="http://www.skipser.com/activetemplate/images/rss/share.png" alt="Facebook" border="0" /></a>
</p>
<hr />
<p>
	<a href="http://www.skipser.com" target="_blank">
		<img width="200" height="50" border="0" align="right" alt="Skipser" src="http://www.skipser.com/activetemplate/images/logo_txt_200x50.png" />
	</a>
	<small>This story, <a href="http://www.skipser.com/p/2/p/youtube-video-embed-like-google-plus.html" target="_blank">Embed YouTube Videos Like in Google+ And Reduce Page Load Time.</a>, was originally published at <a href="http://www.skipser.com" target="_blank">Skipser</a>.</small>
</p>

<a href="http://www.facebook.com/skipser" target="_blank"><img border="0" src="http://www.skipser.com/activetemplate/images/rss/fb_small.png" /></a> 
<a href="http://twitter.com/skipser" target="_blank"><img border="0" src="http://www.skipser.com/activetemplate/images/rss/tw_small.png" /></a> 
<a href="https://plus.google.com/107226510212097262777" target="_blank"><img border="0" src="http://www.skipser.com/activetemplate/images/rss/gplus_small.png" /></a>
<a href="http://feeds.feedburner.com/skipser" target="_blank"><img border="0" src="http://www.skipser.com/activetemplate/images/rss/rss_small.png" /></a>
</div><img src="http://feeds.feedburner.com/~r/skipser/~4/-bVVgTyH-ng" height="1" width="1"/>]]></content:encoded>
		<feedburner:origLink>http://www.skipser.com/p/2/p/youtube-video-embed-like-google-plus.html</feedburner:origLink></item>
		<item>
			<title><![CDATA[Make YouTube Videos Auto-Resize in a Responsive Site Layout.]]></title>
			<link>http://feedproxy.google.com/~r/skipser/~3/EsV6JbP4K7Q/auto-resize-youtube-videos-in-responsive-layout.html</link>
			<description><![CDATA[Simple trick to make all embedded YouTube videos in your website to be auto-resizing without changing any code.]]></description>
			<pubDate>Fri, 12 Apr 2013 19:07:41 +0000</pubDate>
			<guid isPermaLink="false">http://www.skipser.com/p/2/p/auto-resize-youtube-videos-in-responsive-layout.html</guid>
			<content:encoded><![CDATA[<div><p>There are two cases when you would want auto-resizing YouTube videos -</p>
<ol>
<li>You are changing your site to a responsive layout and all existing content should self-adjusts according to the browser window size.</li>
<li>You are creating a new site and want all new embedded videos to be auto-resizing.</li>
</ol>
<p><img class="img1" src="http://www.skipser.com/i/2/images/a1/auto-resize-youtube-video-embed.png" alt="Auto resize youtube video for responsive site" /></p>
<p>Google for <em>"auto resize youtube video"</em> and you will find lots of sites explaining the traditional solution - Wrap the iframe in a new div with a bottom padding of 56.25% and make the height &amp; width of the iframe to be 100%. There are three problems with this solution -</p>
<ol>
<li>You need to find and change all your existing video embeds and change the code.</li>
<li>For new videos, you need to remember to insert them in the new format.</li>
<li>The "56.25%" is actually the aspect ratio of the video. Although most newer videos fall in this category, others would not display properly.</li>
</ol>
<h2>Making Youtube Videos Responsive Without Changing Code.</h2>
<p>Here's the ideal solution where you need not change any existing code. All you need to do is to insert a few lines of javascript and all your embedded YouTube videos will automatically become responsive.</p>
<p><strong>REQUIREMENT:</strong> This javascript based solution requires Jquery. So please add the following lines in your header first.
</p>
<pre class="prettyprint linenums">&lt;script src="//ajax.googleapis.com/ajax/libs/jquery/1.9.0/jquery.min.js"&gt;&lt;/script&gt;</pre>
<p><strong>Will adding Jquery decrease my site performance?</strong> Well, not really. The minified and zipped Jquery file only has a total size of around 31Kb. Also since Jquery is loaded from Google directly, chances of the visitor's browser already having Jquery in it's cache via some other site is very high. In short, Jquery is really light and would not need to be loaded again for your pages most of the time and the performance impact is near zero.</p>
<p>Now you need to load the actual code which makes the embedded videos auto-resizing. There are two ways to do this.</p>
<p>1. Include a javascript having the magic function in your pages. You can add the following lines in your page header.</p>
<pre class="prettyprint linenums">&lt;script src="https://skipser.googlecode.com/files/youtube-autoresizer.js"&gt;&lt;/script&gt;</pre>
<p>2. If you are not comfortable adding yet another javascript, you could just copy the content to one of your own .js files. Here's the code you need to copy-</p>
<pre class="prettyprint linenums">/*
 * Youtube video auto-resizer script
 * Created by Skipser.com
*/

$(document).ready(function() {
  if(typeof YOUTUBE_VIDEO_MARGIN == 'undefined') {
    YOUTUBE_VIDEO_MARGIN=5;
  }
  $('iframe').each(function(index,item) {
    if($(item).attr('src').match(/http(s)?:\/\/www\.youtube\.com/)) {
      var w=$(item).attr('width');
      var h=$(item).attr('height');
      var ar = h/w*100;
      ar=ar.toFixed(2);
      //Style iframe    
      $(item).css('position','absolute');
      $(item).css('top','0');
      $(item).css('left','0');    
      $(item).css('width','100%');
      $(item).css('height','100%');
      $(item).css('max-width',w+'px');
      $(item).css('max-height', h+'px');        
      $(item).wrap('&lt;div style="max-width:'+w+'px;margin:0 auto; padding:'+YOUTUBE_VIDEO_MARGIN+'px;" /&gt;');
      $(item).wrap('&lt;div style="position: relative;padding-bottom: '+ar+'%; height: 0; overflow: hidden;" /&gt;');
    }
  });
});</pre>
<p>If you want to add some margin on the sides of your video, just add the following line immediately above the javascript line or the code and replace <em>"10"</em> with the margin you need.
</p>
<pre class="prettyprint linenums">YOUTUBE_VIDEO_MARGIN=10</pre>
<h2>How it works.</h2>
<p>On loading, the script finds all embedded YouTube video iframes in the page and replaces them with a resizable version dynamically. For instance, here's how an embedded YouTube &lt;iframe ..&gt; tag would look like after conversion -</p>
<pre class="prettyprint linenums">&lt;div style="max-width:560px;margin:0 auto; padding:5px;"&gt;
  &lt;div style="position: relative;padding-bottom: 56.25%; height: 0; overflow: hidden;"&gt;
    &lt;iframe width="560" height="315" frameborder="0" allowfullscreen="" src="http://www.youtube.com/embed/hzixp8s4pyg?showinfo=0" style="position: absolute; top: 0px; left: 0px; width: 100%; height: 100%; max-width: 560px; max-height: 315px;"&gt;&lt;/iframe&gt;
  &lt;/div&gt;
&lt;/div&gt;</pre>
<p>
As you can see, the iframe gets wrapped insided a &lt;div&gt; element with a bottom padding equal to the exact aspect ratio of the video calculated by the script. The video will show in the original size initially and if the browser width is reduced,it will resize itself accordingly. You can check out this <a href="http://www.skipser.com/test/googlecode/youtube-autoresize/test.html" target="_blank">demo page</a> showing the script in action.</p>
<p><strong>Also See:</strong> <a href="http://www.skipser.com/p/2/p/backup-youtube-video-to-google-drive.html">How to backup your entire YouTube video channel to Google Drive.</a></p><p>
	<a border="0" href="http://twitter.com/share?url=http://www.skipser.com/p/2/p/auto-resize-youtube-videos-in-responsive-layout.html&text=Make YouTube Videos Auto-Resize in a Responsive Site Layout."  title="Post to Twitter" target="_blank"><img src="http://www.skipser.com/activetemplate/images/rss/tweet.png" alt="Twitter" border="0"  /></a> <a href="http://www.facebook.com/sharer.php?u=http://www.skipser.com/p/2/p/auto-resize-youtube-videos-in-responsive-layout.html" title="Share on Facebook" target="_blank"><img src="http://www.skipser.com/activetemplate/images/rss/share.png" alt="Facebook" border="0" /></a>
</p>
<hr />
<p>
	<a href="http://www.skipser.com" target="_blank">
		<img width="200" height="50" border="0" align="right" alt="Skipser" src="http://www.skipser.com/activetemplate/images/logo_txt_200x50.png" />
	</a>
	<small>This story, <a href="http://www.skipser.com/p/2/p/auto-resize-youtube-videos-in-responsive-layout.html" target="_blank">Make YouTube Videos Auto-Resize in a Responsive Site Layout.</a>, was originally published at <a href="http://www.skipser.com" target="_blank">Skipser</a>.</small>
</p>

<a href="http://www.facebook.com/skipser" target="_blank"><img border="0" src="http://www.skipser.com/activetemplate/images/rss/fb_small.png" /></a> 
<a href="http://twitter.com/skipser" target="_blank"><img border="0" src="http://www.skipser.com/activetemplate/images/rss/tw_small.png" /></a> 
<a href="https://plus.google.com/107226510212097262777" target="_blank"><img border="0" src="http://www.skipser.com/activetemplate/images/rss/gplus_small.png" /></a>
<a href="http://feeds.feedburner.com/skipser" target="_blank"><img border="0" src="http://www.skipser.com/activetemplate/images/rss/rss_small.png" /></a>
</div><img src="http://feeds.feedburner.com/~r/skipser/~4/EsV6JbP4K7Q" height="1" width="1"/>]]></content:encoded>
		<feedburner:origLink>http://www.skipser.com/p/2/p/auto-resize-youtube-videos-in-responsive-layout.html</feedburner:origLink></item>
	</channel>
</rss>
