<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	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/"
	>

<channel>
	<title>eXpand yOur cReativity &#187; Uncategorized</title>
	<atom:link href="http://blog.bhushangahire.net/category/uncategorized/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.bhushangahire.net</link>
	<description></description>
	<lastBuildDate>Thu, 05 Jan 2012 07:17:32 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3</generator>
		<item>
		<title>Center Page Horizontal &amp; Vertical with plane CSS &amp; HTML</title>
		<link>http://blog.bhushangahire.net/2010/05/31/center-page-horizontal-vertical-with-plane-css-html/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=center-page-horizontal-vertical-with-plane-css-html</link>
		<comments>http://blog.bhushangahire.net/2010/05/31/center-page-horizontal-vertical-with-plane-css-html/#comments</comments>
		<pubDate>Mon, 31 May 2010 08:41:35 +0000</pubDate>
		<dc:creator>Bhushan G Ahire</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[center align]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[HTML]]></category>

		<guid isPermaLink="false">http://blog.bhushangahire.net/?p=193</guid>
		<description><![CDATA[Vertical centering has always been awkward with css as vertical-align only refers to inline elements within a single line and not to block level elements. However vertical align does apply to table-cells also so we can use this to our advantage in browsers that support display:table such as mozilla and opera. We can also cater [...]]]></description>
			<content:encoded><![CDATA[<!-- Start Shareaholic LikeButtonSetTop Automatic --><!-- End Shareaholic LikeButtonSetTop Automatic --><p class="intro2">Vertical centering has always been awkward with css as vertical-align only refers to inline elements within a single line and not to block level elements. However vertical align does apply to table-cells also so we can use this to our advantage in browsers that support display:table such as mozilla and opera.</p>
<p>We can also cater for all IE (IE5 &#8211; IE7) via conditional comments and supply them with their own vertical centering routine.</p>
<p>Firstly I&#8217;ll describe what&#8217;s needed for mozilla. Here&#8217;s the main css code:</p>
<p><strong>Code:</strong></p>
<div class="code">* {margin:0;padding:0}<br />
/* mac hide */<br />
html,body{height:100%;width:100%;}<br />
/* end hide */<br />
body {<br />
background-color: #cccccc;<br />
text-align:center;<br />
min-height:468px;/* for good browsers*/<br />
min-width:552px;/* for good browsers*/<br />
}<br />
#outer{<br />
height:100%;<br />
width:100%;<br />
display:table;<br />
vertical-align:middle;<br />
}<br />
#container {<br />
text-align: center;<br />
position:relative;<br />
vertical-align:middle;<br />
display:table-cell;<br />
height: 468px;<br />
}<br />
#inner {<br />
width: 552px;<br />
background:red;<br />
height: 468px;<br />
text-align: center;<br />
margin-left:auto;<br />
margin-right:auto;<br />
border:1px solid #000;<br />
}</div>
<p>The html would look like this:</p>
<p><strong>Html:</strong></p>
<div class="code">&lt;body&gt;<br />
&lt;div id=&#8221;outer&#8221;&gt;<br />
&lt;div id=&#8221;container&#8221;&gt;<br />
&lt;div id=&#8221;inner&#8221;&gt;<br />
&lt;h1&gt;Centered Vertical and Horizontal&lt;/h1&gt;<br />
&lt;/div&gt;<br />
&lt;/div&gt;<br />
&lt;/div&gt;<br />
&lt;/body&gt;</div>
<p>Most of the above should be familiar to you but the bit we are interested in is the display:table in #outer. This tells the browser to display this element with the same characteristics of a table which allows us to then use vertical-align:middle. We then nest an inner #container that is set to display:table-cell and this table-cell will then 				be vertically aligned to the parent as would a table cell.</p>
<p>The inner #inner element is then horizontally centered using margin:auto and that completes the solution for mozilla and Opera. It&#8217;s a shame that we need the extra wrappers but this is the safest way to do this. Unlike other vertical centering methods (where you position the element 50% from the top and then drag it back up with a negative top 				margin equal to half the elements height) the method I describe will always stay in the viewport and will not slide off the top or the side of the screen which is a bad failing of other methods used.</p>
<p>To bring IE into the game we need to do something else because it doesn&#8217;t understand display:table. Luckily we can draw on a behaviour that is consistent from ie5 &#8211; ie7 and simply involves positioning the outer element 50% from the top using relative positioning and the dragging the inner element back up with a negative 50% relative top position. 				In other browsers this would bring the element back to the same position but IE drags the inner element back only half its height therefore perfectly centering the element.</p>
<p><strong>Code:</strong></p>
<div class="code">&lt;!&#8211;[if lt IE 8]&gt;<br />
&lt;style type=&#8221;text/css&#8221;&gt;<br />
#container{top:50%}<br />
#inner{top:-50%;position:relative;}<br />
&lt;/style&gt;<br />
&lt;![endif]&#8211;&gt;</div>
<p>We also need to add overflow:hidden to the outer for IE7 otherwise we get a vertical scrollbar where its not needed.</p>
<div class="code">&lt;!&#8211;[if IE 7]&gt;<br />
&lt;style type=&#8221;text/css&#8221;&gt;<br />
#outer{<br />
position:relative;<br />
overflow:hidden;<br />
}<br />
&lt;/style&gt;<br />
&lt;![endif]&#8211;&gt;</div>
<p>Nothing else needs to be changed as IE7 and under doesn&#8217;t understand display:table and just ignores it. The html stays the same and the only extra css is the 2 lines above. It couldn&#8217;t really be much simpler.</p>
<div class="shr-publisher-193"></div><!-- Start Shareaholic LikeButtonSetBottom Automatic --><!-- End Shareaholic LikeButtonSetBottom Automatic -->]]></content:encoded>
			<wfw:commentRss>http://blog.bhushangahire.net/2010/05/31/center-page-horizontal-vertical-with-plane-css-html/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>10 Essential Plugins For Your WordPress Portfolio</title>
		<link>http://blog.bhushangahire.net/2010/05/19/10-essential-plugins-for-your-wordpress-portfolio/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=10-essential-plugins-for-your-wordpress-portfolio</link>
		<comments>http://blog.bhushangahire.net/2010/05/19/10-essential-plugins-for-your-wordpress-portfolio/#comments</comments>
		<pubDate>Wed, 19 May 2010 05:12:50 +0000</pubDate>
		<dc:creator>Bhushan G Ahire</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://blog.bhushangahire.net/?p=184</guid>
		<description><![CDATA[One of the best things about WordPress is the thousands of plugins available for free. No matter how you want to customise your site, there’s probably a plugin to do it. From turning it into an ecommerce store to automatically pulling in content, the possibilities are endless. When it comes to portfolio sites, you don’t [...]]]></description>
			<content:encoded><![CDATA[<!-- Start Shareaholic LikeButtonSetTop Automatic --><!-- End Shareaholic LikeButtonSetTop Automatic --><p>One of the best things about WordPress is the thousands of plugins available for free. No matter how you want to customise your site, there’s probably a plugin to do it. From turning it into an ecommerce store to automatically pulling in content, the possibilities are endless.</p>
<p>When it comes to portfolio sites, you don’t really need a lot of bells and whistles. Your portfolio is all about your work and presenting it in the best possible way, so which WordPress plugins are the best to achieve this? Which will help your <a href="http://www.frogsthemes.com/wordpress-portfolio-themes/">WordPress portfolio</a> really perform?</p>
<h2>Tweet This</h2>
<p>Chances are you have a Twitter account, so what better way to show off your work than to put it in front of your followers? The <a onclick="javascript:pageTracker._trackPageview('/outbound/article/wordpress.org');" rel="external nofollow" href="http://wordpress.org/extend/plugins/tweet-this/" target="blank">Tweet This plugin</a> installs a cool button on all of your posts and pages, allowing people to Tweet a link to your work. It can also be set up to Tweet new posts so you don’t have to sign up to a service like <a onclick="javascript:pageTracker._trackPageview('/outbound/article/twitterfeed.com');" rel="external nofollow" href="http://twitterfeed.com/" target="blank">Twitterfeed</a>.</p>
<p>Our favourite thing about this plugin is that it lets you shortern URLs using a service of your choice. If you’ve got your own URL shortener this is very nifty indeed.</p>
<h2>Sociable</h2>
<p>Fantastic for generating traffic spikes, <a onclick="javascript:pageTracker._trackPageview('/outbound/article/wordpress.org');" rel="external nofollow" href="http://wordpress.org/extend/plugins/sociable/" target="blank">Sociable</a> lets you add social bookmarking links on your posts, pages and RSS feeds. Good art, design or photography is social networking gold, so this is definitely a plugin you want to install.</p>
<h2>Xavins Review Ratings</h2>
<p>It might be a bit old-school, but star ratings are great for visitor interaction. Our favourite plugin for this is <a onclick="javascript:pageTracker._trackPageview('/outbound/article/wordpress.org');" rel="external nofollow" href="http://wordpress.org/extend/plugins/xavins-review-ratings/" target="blank">Xavin’s Review Ratings</a>. It’s entirely customisable from the number of stars to the size of the fractions to the design of the stars themselves. Intended mainly for review websites, we think it’s cool to let people review your work, so give this a try on your portfolio.</p>
<h2>NextGen Gallery</h2>
<p>Probably the most comprehensive image gallery plugin for WordPress, <a onclick="javascript:pageTracker._trackPageview('/outbound/article/wordpress.org');" rel="external nofollow" href="http://wordpress.org/extend/plugins/nextgen-gallery/" target="blank">NextGen Gallery</a> provides a huge set of options for displaying your images. From adding custom templates and multiple CSS stylesheets, to using watermarks and slideshows, it’s the only plugin you need for an instant, professional-looking gallery.</p>
<h2>FlippingBook</h2>
<p>Some people love them and some people hate them, but page-flip sites stand out from the crowd. If you want your portfolio in picture-book format, <a onclick="javascript:pageTracker._trackPageview('/outbound/article/pageflipgallery.com');" rel="external nofollow" href="http://pageflipgallery.com/" target="blank">FlippingBook</a> is the plugin for you. It lets you easily create an interactive Flash album complete with pages that, well, flip!</p>
<h2>Smush.it</h2>
<p>This neat little plugin is a FrogsThemes favourite, optimising your images in a ‘lossless’ way. As any web designer knows, saving bytes is a good thing. Your portfolio loads faster and there’s less stress on your bandwidth. <a onclick="javascript:pageTracker._trackPageview('/outbound/article/wordpress.org');" rel="external nofollow" href="http://wordpress.org/extend/plugins/wp-smushit/" target="blank">Smush.it</a> makes it easy for everyone to optimise their image file sizes – once installed, it optimises new images automagically!</p>
<h2>WordPress Super Cache</h2>
<p>This plugin also cuts down on your page load time by generating a static HTML file to serve to most of your users. It’s a lot quicker than serving normal WordPress php scripts and a really useful talent for image-heavy sites like your portfolio. If your work is popular on social media sites, <a onclick="javascript:pageTracker._trackPageview('/outbound/article/wordpress.org');" rel="external nofollow" href="http://wordpress.org/extend/plugins/wp-super-cache/" target="blank">WordPress Super Cache</a> can help your site handle the resulting heavy traffic. Neat huh?</p>
<h2>Audio Player 2.0</h2>
<p>Want to add audio to your portfolio? Look no further than <a onclick="javascript:pageTracker._trackPageview('/outbound/article/wordpress.org');" rel="external nofollow" href="http://wordpress.org/extend/plugins/audio-player/" target="blank">Audio Player 2.0</a>. From autostart to autoloop, it has everything you need to make your portfolio literally speak to your visitors. The top advantage for portfolio sites? You can customise the colour scheme to blend in with your design.</p>
<h2>WordPress Backup</h2>
<p>Now you’ve installed all these plugins and your portfolio is ace, it’s time to make it safe and secure. Currently, the best plugin that backs up your WordPress portfolio is simply called <a onclick="javascript:pageTracker._trackPageview('/outbound/article/wordpress.org');" rel="external nofollow" href="http://wordpress.org/extend/plugins/wordpress-backup/" target="blank">WordPress Backup</a>. It performs regular backups of your upload directory (i.e. images), your theme and your plugin directory. This takes care of a lot of your content, but unfortunately leaves out your database.</p>
<p>For that we recommend a newcomer – <a onclick="javascript:pageTracker._trackPageview('/outbound/article/www.backup-technology.com');" rel="external nofollow" href="http://www.backup-technology.com/online-backup-for-wordpress/" target="blank">Online Backup for WordPress</a>. This plugin comes with 50MiB of free space in a real life datacentre – your blog posts have never been so secure! We’ve been assured that in the coming months this plugin will backup images, plugins and other file-level items, so watch this space for an update.</p>
<div class="shr-publisher-184"></div><!-- Start Shareaholic LikeButtonSetBottom Automatic --><!-- End Shareaholic LikeButtonSetBottom Automatic -->]]></content:encoded>
			<wfw:commentRss>http://blog.bhushangahire.net/2010/05/19/10-essential-plugins-for-your-wordpress-portfolio/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Transperent div for all browser</title>
		<link>http://blog.bhushangahire.net/2009/05/26/transperent-div-for-all-browser/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=transperent-div-for-all-browser</link>
		<comments>http://blog.bhushangahire.net/2009/05/26/transperent-div-for-all-browser/#comments</comments>
		<pubDate>Tue, 26 May 2009 13:36:21 +0000</pubDate>
		<dc:creator>Bhushan Ahire</dc:creator>
				<category><![CDATA[Rails]]></category>
		<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[ie]]></category>
		<category><![CDATA[mozilla]]></category>
		<category><![CDATA[safari]]></category>
		<category><![CDATA[transperent]]></category>

		<guid isPermaLink="false">http://blog.bhushangahire.net/2009/05/26/transperent-div-for-all-browser/</guid>
		<description><![CDATA[if (b.ie) { var filter = this.element.style.filter.replace(/alphas*(s*opacitys*=s*[0-9.]{1,3})/, &#8221;); this.element.style.filter = filter + &#8216;alpha(opacity=&#8217; + parseInt(ht * 100, 10) + &#8216;)&#8217;; } else { this.element.style.opacity = ht; } this.element.style.visibility = &#8216;visible&#8217;; this.element.style.display = &#8216;block&#8217; }]]></description>
			<content:encoded><![CDATA[<!-- Start Shareaholic LikeButtonSetTop Automatic --><!-- End Shareaholic LikeButtonSetTop Automatic --><p>if (b.ie)<br />
 {<br />
  var filter = this.element.style.filter.replace(/alphas*(s*opacitys*=s*[0-9.]{1,3})/, &#8221;);<br />
  this.element.style.filter = filter + &#8216;alpha(opacity=&#8217; + parseInt(ht * 100, 10) + &#8216;)&#8217;;<br />
 }<br />
 else<br />
 {<br />
  this.element.style.opacity = ht;<br />
 }<br />
 this.element.style.visibility = &#8216;visible&#8217;;<br />
 this.element.style.display = &#8216;block&#8217;<br />
}</p>
<div class="shr-publisher-120"></div><!-- Start Shareaholic LikeButtonSetBottom Automatic --><!-- End Shareaholic LikeButtonSetBottom Automatic -->]]></content:encoded>
			<wfw:commentRss>http://blog.bhushangahire.net/2009/05/26/transperent-div-for-all-browser/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>See your most frequently used commands</title>
		<link>http://blog.bhushangahire.net/2009/03/10/see-your-most-frequently-used-commands/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=see-your-most-frequently-used-commands</link>
		<comments>http://blog.bhushangahire.net/2009/03/10/see-your-most-frequently-used-commands/#comments</comments>
		<pubDate>Tue, 10 Mar 2009 12:37:24 +0000</pubDate>
		<dc:creator>Bhushan Ahire</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[command history]]></category>
		<category><![CDATA[linux]]></category>

		<guid isPermaLink="false">http://blog.bhushangahire.net/2009/03/10/see-your-most-frequently-used-commands/</guid>
		<description><![CDATA[history &#124; awk '{print $2}' &#124; awk 'BEGIN {FS="&#124;"}{print $1}' &#124; sort &#124; uniq -c &#124; sort -n &#124; tail &#124; sort -nr]]></description>
			<content:encoded><![CDATA[<!-- Start Shareaholic LikeButtonSetTop Automatic --><!-- End Shareaholic LikeButtonSetTop Automatic --><div class="code-stylized" id="code-stylized-876">
<div class="highlight">
<pre><span class="nb">history</span> | awk <span class="s1">'{print $2}'</span> | awk <span class="s1">'BEGIN {FS="|"}{print $1}'</span> | sort | uniq -c | sort -n | tail | sort -nr
</pre>
</div>
</div>
<div class="shr-publisher-70"></div><!-- Start Shareaholic LikeButtonSetBottom Automatic --><!-- End Shareaholic LikeButtonSetBottom Automatic -->]]></content:encoded>
			<wfw:commentRss>http://blog.bhushangahire.net/2009/03/10/see-your-most-frequently-used-commands/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

