<?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/"
	xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd"
	xmlns:media="http://search.yahoo.com/mrss/"
>

<channel>
	<title>World of *Nix &#187; Tricks</title>
	<atom:link href="http://www.lavluda.com/category/tricks/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.lavluda.com</link>
	<description>by S. M. Ibrahim (lavluda)</description>
	<lastBuildDate>Sun, 16 May 2010 16:23:20 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
	<!-- podcast_generator="podPress/8.8" - maintenance_release="8.8.5.3" -->
	<copyright>Copyright &#xA9; 2010 World of *Nix </copyright>
	<managingEditor>lavluda@yahoo.com</managingEditor>
	<webMaster>lavluda@yahoo.com</webMaster>
	<category>posts</category>
	<image>
		<url>http://www.lavluda.com/wp-content/plugins/podpress/images/powered_by_podpress.jpg</url>
		<title>World of *Nix &#187; Tricks</title>
		<link>http://www.lavluda.com</link>
		<width>144</width>
		<height>144</height>
	</image>
	<itunes:subtitle></itunes:subtitle>
	<itunes:summary>by S. M. Ibrahim (lavluda)</itunes:summary>
	<itunes:keywords></itunes:keywords>
	<itunes:category text="Society &amp; Culture" />
	<itunes:author></itunes:author>
	<itunes:owner>
		<itunes:name></itunes:name>
		<itunes:email>lavluda@yahoo.com</itunes:email>
	</itunes:owner>
	<itunes:block>no</itunes:block>
	<itunes:explicit>no</itunes:explicit>
	<itunes:image href="http://www.lavluda.com/wp-content/plugins/podpress/images/powered_by_podpress_large.jpg" />
		<item>
		<title>Download iPhone SDK using wget</title>
		<link>http://www.lavluda.com/2009/08/28/download-iphone-sdk-using-wget/</link>
		<comments>http://www.lavluda.com/2009/08/28/download-iphone-sdk-using-wget/#comments</comments>
		<pubDate>Fri, 28 Aug 2009 15:23:29 +0000</pubDate>
		<dc:creator>lavluda</dc:creator>
				<category><![CDATA[Tricks]]></category>
		<category><![CDATA[iphone]]></category>
		<category><![CDATA[mac]]></category>
		<category><![CDATA[iphone sdk]]></category>
		<category><![CDATA[wget]]></category>

		<guid isPermaLink="false">http://www.lavluda.com/?p=265</guid>
		<description><![CDATA[If you are using slow connection like me and trying to download the apples iPhone SDK , then you already know how much tough it is , because of apple only allow to download this file after login. And non of the download manager can give you the resume facility. so after trying 2 days [...]


No related posts.

Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.]]></description>
			<content:encoded><![CDATA[<p>If you are using slow connection like me and trying to download the apples iPhone SDK , then you already know how much tough it is , because of apple only allow to download this file after login. And non of the download manager can give you the resume facility. so after trying 2 days with different downloaders i tried wget and got sucess <img src='http://www.lavluda.com/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> </p>
<p>Here i am discribing how to do it. First login to http://developer.apple.com/iphone (if you don’t have any account, just create one, it’s free). then use firefox extension to export (firebug+firecookie) cookie to cookie.txt . Then rest of the task simple. just copy download link from http://developer.apple.com/iphone and give the following command in the console.</p>
<p>    <code>$cd /path/to/cookie.txt</p>
<p>    $ wget  -ct 0 –load-cookies cookie.txt your_file_url</code></p>
<p>that’s all, now you can resume download without any problem. Here is the command i used to download to download it.</p>
<p>   <code> $ wget  -ct 0 –server-response –load-cookies cookies.txt http://developer.apple.com/iphone/download.action?path=/iphone/iphone_sdk_3.0__final/iphone_sdk_3.0__leopard__9m2736__final.dmg</code></p>
<p>If this post help you, don’t forget to share it with others.</p>
number of view: 2716<img src="http://www.lavluda.com/?ak_action=api_record_view&id=265&type=feed" alt="" /><p><a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save"><img src="http://www.lavluda.com/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share/Bookmark"/></a> </p>

<p>No related posts.</p>
<p>Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://www.lavluda.com/2009/08/28/download-iphone-sdk-using-wget/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>Website optimization 02: enable deflate /output compression (debian/ubuntu)</title>
		<link>http://www.lavluda.com/2008/11/14/website-optimization-02-enable-deflate-output-compression-debianubuntu/</link>
		<comments>http://www.lavluda.com/2008/11/14/website-optimization-02-enable-deflate-output-compression-debianubuntu/#comments</comments>
		<pubDate>Fri, 14 Nov 2008 09:37:37 +0000</pubDate>
		<dc:creator>lavluda</dc:creator>
				<category><![CDATA[Debian]]></category>
		<category><![CDATA[Debian GNU/Linux]]></category>
		<category><![CDATA[HowTo]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Linux Helps]]></category>
		<category><![CDATA[Tricks]]></category>
		<category><![CDATA[server]]></category>

		<guid isPermaLink="false">http://www.lavluda.com/?p=244</guid>
		<description><![CDATA[On the first post of this series we learned how to disable etags. in this post we will learn how to enable output compression. Before enable this, let me introduce what deflate do. deflate is apache module, that main task is to compress all the output before serving or sending to client. Nowadays most of [...]


No related posts.

Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.]]></description>
			<content:encoded><![CDATA[<p>On the first post of this series we learned how to disable etags. in this post we will learn how to enable output compression.</p>
<p>Before enable this, let me introduce what deflate do. deflate is apache module, that main task is to compress all the output before serving or sending to client.</p>
<p>Nowadays most of the browser are enough expert to handle this. Here main technique  is , apache will send the output in compressed format, after receiving this output your browser will uncompress it and render the formated output.</p>
<p>This tricks will really improve your site performance, because user will get your site with less time and bandwidth.</p>
<p>Let me give you an example: let&#8217;s think if you are using jquery javascript library that size is 94 Kilo bytes, but if you enable the deflate with default configuration, it will be only 14 Kilo bytes. unbelievable right ? believe me, it&#8217;s true. And we are using this on our most popular product http://www.somewhereinblog.net .</p>
<p>OK, now i am showing how you will do this:</p>
<p>first of all you need to enable deflate module. You know i am debian fan, so i am giving commands for debian linux, other linux/unix commands will almost same. as ubuntu is comes from debian, these commands will also work for ubuntu</p>
<p>Open a new terminal and give this command.<br />
sudo a2enmod deflate</p>
<blockquote><p>it will enable deflate. Wait, you are not finish yet. little work left.<br />
create new file called deflate.conf in your apache conf.d folder. and paste the following code:<br />
<code>&lt;Location /&gt;</code></p>
<p># Insert filter<br />
SetOutputFilter DEFLATE</p>
<p># Netscape 4.x has some problems&#8230;<br />
BrowserMatch ^Mozilla/4 gzip-only-text/html</p>
<p># Netscape 4.06-4.08 have some more problems<br />
BrowserMatch ^Mozilla/4\.0[678] no-gzip</p>
<p># MSIE masquerades as Netscape, but it is fine<br />
BrowserMatch \bMSIE !no-gzip !gzip-only-text/html<br />
# Don&#8217;t compress images<br />
SetEnvIfNoCase Request_URI \<br />
\.(?:gif|jpe?g|png)$ no-gzip dont-vary</p>
<p># Make sure proxies don&#8217;t deliver the wrong content<br />
Header append Vary User-Agent env=!dont-vary</p>
<p><code>&lt;/Location&gt;</code></p>
<p>save the file, and restart apache.</p></blockquote>
<p>sudo /etc/init.d/apache2 restart</p>
<p>that&#8217;s all. now you can see the different.</p>
<p>**if you have not enabled header module of apache, please remove the line &#8220;Header append Vary User-Agent env=!dont-vary&#8221; from deflate.conf .</p>
<p>For more customization or option of deflate, please visit http://httpd.apache.org/docs/2.2/mod/mod_deflate.html</p>
number of view: 1789<img src="http://www.lavluda.com/?ak_action=api_record_view&id=244&type=feed" alt="" /><p><a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save"><img src="http://www.lavluda.com/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share/Bookmark"/></a> </p>

<p>No related posts.</p>
<p>Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://www.lavluda.com/2008/11/14/website-optimization-02-enable-deflate-output-compression-debianubuntu/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Website Optimization 01: disable ETag in apache (debian/ubuntu)</title>
		<link>http://www.lavluda.com/2008/10/20/website-optimization-01-disable-etag-in-apache-debianubuntu/</link>
		<comments>http://www.lavluda.com/2008/10/20/website-optimization-01-disable-etag-in-apache-debianubuntu/#comments</comments>
		<pubDate>Mon, 20 Oct 2008 15:27:54 +0000</pubDate>
		<dc:creator>lavluda</dc:creator>
				<category><![CDATA[Debian]]></category>
		<category><![CDATA[Debian GNU/Linux]]></category>
		<category><![CDATA[HowTo]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Linux Helps]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Programming Help]]></category>
		<category><![CDATA[Tricks]]></category>
		<category><![CDATA[somewherein...]]></category>
		<category><![CDATA[ubuntu]]></category>
		<category><![CDATA[apache2]]></category>
		<category><![CDATA[ETag]]></category>
		<category><![CDATA[server]]></category>
		<category><![CDATA[server optimization]]></category>
		<category><![CDATA[server performance]]></category>
		<category><![CDATA[somewhereinblog]]></category>

		<guid isPermaLink="false">http://www.lavluda.com/?p=230</guid>
		<description><![CDATA[From last few months i am working to optimize our somewhereinblog.net server, because right now we are getting huge amount of hits everyday (1,00,000 + hits). In this series i will describe the tricks that i learned On my first post of this searies i will talk about ETag. Before disable this, first we need [...]


Related posts:<ol><li><a href='http://www.lavluda.com/2009/08/28/download-iphone-sdk-using-wget/' rel='bookmark' title='Permanent Link: Download iPhone SDK using wget'>Download iPhone SDK using wget</a> <small>If you are using slow connection like me and trying...</small></li>
</ol>

Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.]]></description>
			<content:encoded><![CDATA[<p>From last few months i am working to optimize our somewhereinblog.net server, because right now we are getting huge amount of hits everyday (1,00,000 + hits). In this series i will describe the tricks that i learned <img src='http://www.lavluda.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p><br class="spacer_" /></p>
<p>On my first post of this searies i will talk about ETag. Before disable this, first we need to know what is ETags. From wikipedia:</p>
<blockquote><p>An <strong>ETag</strong> (entity tag) is an <a title="Hypertext Transfer Protocol" href="http://en.wikipedia.org/wiki/Hypertext_Transfer_Protocol">HTTP</a> response header returned by an HTTP/1.1 compliant <a title="Web server" href="http://en.wikipedia.org/wiki/Web_server">web server</a> used to determine change in content at a given <a title="Uniform Resource Locator" href="http://en.wikipedia.org/wiki/Uniform_Resource_Locator">URL</a>. When a new HTTP response contains the same ETag as an older HTTP response, the contents are determined to be the same without further downloading. The header is useful for intermediary devices that perform <a class="mw-redirect" title="Caching" href="http://en.wikipedia.org/wiki/Caching">caching</a>, as well as for client <a class="mw-redirect" title="Web browsers" href="http://en.wikipedia.org/wiki/Web_browsers">web browsers</a> that cache results. One method of generating the ETag is based on the last modified time of the file and the size of the file.</p>
<p>In certain situations, ETags may not improve the performance of a web application. For instance, some ETag generation schemes incorporate the file&#8217;s <a title="Inode" href="http://en.wikipedia.org/wiki/Inode">inode</a> on the system. The file&#8217;s inode is unique to the file only on one specific machine. If a site has multiple servers, each with its own copy of the file (i.e. <a title="Load balancing" href="http://en.wikipedia.org/wiki/Load_balancing">load balancing</a>), then a user&#8217;s request for the same file may get served by a different machine. In that case, the inode will almost certainly be different and, if it is used to generate the ETag, it will cause the file to be re-downloaded.</p></blockquote>
<p>So, this is not always helpfull for all type of sites. Always remember, if you are not using anything, you should not enable or kept enable on server.</p>
<p>Apache by default enable this ETags. We need to disable this to get better performance. Here i am describing the steps for debian and ubuntu linux.</p>
<p>We will take help from mod_header to disable ETags, so first we need to enable the mod_header (apache module)</p>
<p>sudo a2enmod header</p>
<p>sudo /etc/init.d/apache2 restart</p>
<p>this command will enable mod_header. Now open /etc/apache2/apache2.conf with your faviourate browser.</p>
<p>sudo nano /etc/apache2/apache2.conf</p>
<p>then paste the under given code to this apache2.conf file</p>
<pre>Header unset ETag
FileETag None</pre>
<p>now restart the apache2, and check if it working or not. If every thing OK, then you will not see the etags anymore <img src='http://www.lavluda.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>For better understanding i am giving you 2 screenshots.</p>
<p>Before ETag disable</p>
<p><br class="spacer_" /></p>
<p><a href="http://www.lavluda.com/wp-content/uploads/2008/10/beforeetagsdisable.png"><img class="alignnone size-medium wp-image-231" title="before etags disable" src="http://www.lavluda.com/wp-content/uploads/2008/10/beforeetagsdisable-300x178.png" alt="" width="300" height="178" /></a></p>
<p>After ETag disable:</p>
<p><a href="http://www.lavluda.com/wp-content/uploads/2008/10/afteretagsdisable.png"><img class="alignnone size-medium wp-image-232" title="after etag disable" src="http://www.lavluda.com/wp-content/uploads/2008/10/afteretagsdisable-300x194.png" alt="" width="300" height="194" /></a></p>
<p><br class="spacer_" /></p>
<p>If you don&#8217;t have root access to server, you still can do this from .htaccess , just copy that code to .htaccess instate of apache conf file.</p>
<p>Ask me if you have any question or problem about ETag.</p>
number of view: 2399<img src="http://www.lavluda.com/?ak_action=api_record_view&id=230&type=feed" alt="" /><p><a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save"><img src="http://www.lavluda.com/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share/Bookmark"/></a> </p>

<p>Related posts:<ol><li><a href='http://www.lavluda.com/2009/08/28/download-iphone-sdk-using-wget/' rel='bookmark' title='Permanent Link: Download iPhone SDK using wget'>Download iPhone SDK using wget</a> <small>If you are using slow connection like me and trying...</small></li>
</ol></p>
<p>Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://www.lavluda.com/2008/10/20/website-optimization-01-disable-etag-in-apache-debianubuntu/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>Speedup your apt</title>
		<link>http://www.lavluda.com/2007/04/13/speedup-your-apt/</link>
		<comments>http://www.lavluda.com/2007/04/13/speedup-your-apt/#comments</comments>
		<pubDate>Fri, 13 Apr 2007 02:35:32 +0000</pubDate>
		<dc:creator>lavluda</dc:creator>
				<category><![CDATA[Debian]]></category>
		<category><![CDATA[Debian GNU/Linux]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Tricks]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://lavluda.com/?p=78</guid>
		<description><![CDATA[Apt is the best friend for any deb dependend linux like debian , ubuntu etc. You can speed up your apt by searching the nerestrepositery of apt (for your distro/linux) I tested some tools to do this, APT-SPY shows the best performance From manpage: apt-spy is a program that tests a series of Debian archive [...]


No related posts.

Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.]]></description>
			<content:encoded><![CDATA[<p>Apt is the best friend for any deb dependend linux like debian , ubuntu etc.</p>
<p>You can speed up your  apt by searching the nerestrepositery of apt (for your distro/linux)</p>
<p>I tested some tools to do this, APT-SPY shows the best performance <img src='http://www.lavluda.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>From manpage:</p>
<blockquote>
<p align="left"><em>apt-spy is a program that tests a series of Debian archive mirrors  for bandwith.   It writes an /etc/apt/sources.list with the fastest server. </em></p>
</blockquote>
<p align="left"> Run this command as su or root next thing will done by apt-spy, it will write a new /etc/apt/sources.list and the olde one will be backup with sources.list.bak</p>
<p><code>apt-spy -d unstable  -n 5</code></p>
number of view: 295<img src="http://www.lavluda.com/?ak_action=api_record_view&id=78&type=feed" alt="" /><p><a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save"><img src="http://www.lavluda.com/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share/Bookmark"/></a> </p>

<p>No related posts.</p>
<p>Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://www.lavluda.com/2007/04/13/speedup-your-apt/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

<!-- Dynamic Page Served (once) in 1.403 seconds -->
