<?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>gHacks technology news &#187; gzip</title> <atom:link href="http://www.ghacks.net/tag/gzip/feed/" rel="self" type="application/rss+xml" /><link>http://www.ghacks.net</link> <description>A technology blog covering software, mobile phones, gadgets, security, the Internet and other relevant areas.</description> <lastBuildDate>Sat, 20 Mar 2010 15:17:27 +0000</lastBuildDate> <generator>http://wordpress.org/?v=2.9.2</generator> <language>en</language> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <item><title>Get to know Linux: File compression</title><link>http://www.ghacks.net/2010/01/22/get-to-know-linux-file-compression/</link> <comments>http://www.ghacks.net/2010/01/22/get-to-know-linux-file-compression/#comments</comments> <pubDate>Fri, 22 Jan 2010 18:22:57 +0000</pubDate> <dc:creator>Jack Wallen</dc:creator> <category><![CDATA[Advice]]></category> <category><![CDATA[Desktop Manager]]></category> <category><![CDATA[Linux]]></category> <category><![CDATA[Open Source]]></category> <category><![CDATA[Tutorials Basic]]></category> <category><![CDATA[software]]></category> <category><![CDATA[archives]]></category> <category><![CDATA[bunzip]]></category> <category><![CDATA[bzip2]]></category> <category><![CDATA[dolphin]]></category> <category><![CDATA[file compression]]></category> <category><![CDATA[gzip]]></category> <category><![CDATA[linux compression]]></category> <category><![CDATA[nautilus]]></category> <category><![CDATA[tar]]></category> <category><![CDATA[zip]]></category><guid isPermaLink="false">http://www.ghacks.net/?p=22512</guid> <description><![CDATA[How many times have you come across a .tar, .tgz, or .bz2 file in Linux and had no idea what to do with it? Or what it was? Most users of computers know what the .zip file is. Simple, it&#8217;s a compressed file. And to uncompress you generally double click it or right click and [...]]]></description> <content:encoded><![CDATA[<p>How many times have you come across a .tar, .tgz, or .bz2 file in Linux and had no idea what to do with it? Or what it was? Most users of computers know what the .zip file is. Simple, it&#8217;s a compressed file. And to uncompress you generally double click it or right click and select Extract. Most people recognize that from the world of Windows. But did you know that file compression/decompression is just as easy in the world of Linux? It is. The only problem is that most don&#8217;t recognize what files are, in fact, compressed files, archives, or compressed archives.</p><p>In this article I am going to de-mystify Linux file compression and archiving for you. By the end of the article you&#8217;ll be compressing and decompressing files in your sleep. And, as a bonus, you&#8217;ll know how to do this both via command line and GUI.</p><p><span id="more-22512"></span><strong>Compression versus archiving</strong></p><p>The difference between compression and archiving is simple: Compression makes a file (or directory) smaller and Archiving takes many seperate files (such as a directory containing sub-directories and/or files) and turns it into a single file. You can have a compressed archive (such as .tar.gz or .tgz) and you can even have an archive of compressed files (such as a directory that contains a bunch of compressed files). But how do you know what are compressed files verses archived files? Here&#8217;s a list of file extensions and what they are.</p><p>.tar &#8211; This is an uncompressed Tar archive file. This type of archive is unpacked with the command <em>tar xvf file.tar</em>.</p><p>.tgz &#8211; This is a compressed Tar archive file. This type of archive is decompressed and unpacked with the command <em>tar xvzf file.tgz</em>.</p><p>.gz &#8211; This is a file compressed with the gzip program. This type of file is decompressed with the command <em>gunzip file.gz</em>.</p><p>.zip &#8211; This is a compressed file. This type of file is decompressed with the command <em>unzip file.zip</em></p><p>.bz2 &#8211; This is a compressed file. This type of file is decompressed with the command <em>bunzip2 file.bz2.</em></p><p><strong>Which compression to use?</strong></p><p>Of the three compression utilities (bzip2, zip, and gzip) the tool that will result in the most compression (the smallest file) is bzip2. The only disadvantage to bzip2 is that the algorithm uses more processor to complete than does the other utilities.</p><p>If you are sharing your compressed files with Windows users your best bet is to use zip for compression. Although there are tools (such as <a title="Stuffit Delux" href="http://my.smithmicro.com/win/stuffit/index.html" target="_blank">Stuffit Deluxe for Windows</a>) that can handle bz2 files, the default supported is .zip.</p><p><strong>Using the GUI</strong></p><p>If you are a fan of the GUI (and who isn&#8217;t these days?) you will be glad to know that most all Linux file managers can handle compressed and archived files. In both Nautilus (GNOME) and Dolphin (KDE) you can simply right click a compressed, archived, or compressed archive file and select Extract. Both file managers also offer compression and archiving options when you right click a file or directory.</p><p><strong>Final thoughts</strong></p><p>Working with compression and archiving is very simple with the Linux operating system. You have plenty of options in both the command line and the GUI worlds.</p> ]]></content:encoded> <wfw:commentRss>http://www.ghacks.net/2010/01/22/get-to-know-linux-file-compression/feed/</wfw:commentRss> <slash:comments>3</slash:comments> </item> <item><title>Optimize Wordpress loading times</title><link>http://www.ghacks.net/2007/03/19/optimize-wordpress-loading-times/</link> <comments>http://www.ghacks.net/2007/03/19/optimize-wordpress-loading-times/#comments</comments> <pubDate>Mon, 19 Mar 2007 06:28:04 +0000</pubDate> <dc:creator>Martin</dc:creator> <category><![CDATA[Knowledge]]></category> <category><![CDATA[The Web]]></category> <category><![CDATA[ghacks]]></category> <category><![CDATA[blog]]></category> <category><![CDATA[css-compress]]></category> <category><![CDATA[gzip]]></category> <category><![CDATA[optimize]]></category> <category><![CDATA[wordpress]]></category> <category><![CDATA[wordpress-compress]]></category> <category><![CDATA[wordpress-gzip]]></category><guid isPermaLink="false">http://www.ghacks.net/2007/03/19/optimize-wordpress-loading-times/</guid> <description><![CDATA[I'm using Wordpress as the blogging software of choice for Ghacks and all of my other blogs. After reading Paul Stamatious article on optimizing CSS for Wordpress I decided to give it a try and see if page loading times would benefit at all from it. I also had to check if the optimization would change the way my blog would be displayed or would throw up errors. I began by analyzing the page loading times of my blog without any optimization. The result for the frontpage was that my blog used 166K and that users with ISDN (128 Kbit) would have to wait 18.55 seconds before my site was fully loaded.]]></description> <content:encoded><![CDATA[<p>I&#8217;m using Wordpress as the blogging software of choice for Ghacks and all of my other blogs. After reading <a href="http://paulstamatiou.com/2007/03/18/how-to-optimize-your-css-even-more/" target="_Blank">Paul Stamatious</a> article on optimizing CSS for Wordpress I decided to give it a try and see if page loading times would benefit at all from it. I also had to check if the optimization would change the way my blog would be displayed or would throw up errors. I began by analyzing the page loading times of my blog without any optimization. The result for the frontpage was that my blog used 166K and that users with ISDN (128 Kbit) would have to wait 18.55 seconds before my site was fully loaded.</p><p>Users with T1 connections, that is 1.44 Mbps would have to wait 9.28 seconds. The figures are of course only valid if they do not use part of their download speed for other transfers at the same time. The first thing that I decided to do was to enable gzip compression in the Wordpress options in the reading tab. Before I enabled it I did a quick check that my server was actually able to gzip by using the simple phpinfo() command.</p><p><span id="more-1319"></span>I tested the result and the page size went down almost 35%! It went down 58K to 108K total. The time users with ISDN had to wait before the full page is loaded was reduced by almost 4 seconds from 18.55 seconds to 14.80 seconds. The loading time for T1 users was reduced by 0.51 seconds to 8.77 seconds in total.</p><p>I still did not apply the optimization that Paul suggested and that is what I intended to do next. His suggestion was to gzip compress the css file as well to reduce loading time even further. I found a reference to a nice Wordpress plugin in the comments of his post. The plugin is called <a href="http://dev.wp-plugins.org/wiki/css-compress" target="_blank">css-compress</a>. It just has to be activated in the plugin tab in Wordpress. The advantage of using css-compress over Paul&#8217;s method is that css compress compresses all css files even those of third parties such as those from advertisers or other plugins.</p><p>Another check reported that the total size of my blogs frontpage was again reduced by almost 10k from 108K to 98K. Loading time was again reduced by 1.17 seconds for ISDN users and 0.65 seconds for users with a T1 connection.</p><p>I was not able to witness any negative effects on my blogs design, the functions or server load. Sure it uses a little bit processing power but this should only be a problem for weak shared hosts.</p><p>You can check the loading speed of  websites using the nice script available at <a href="http://www.websiteoptimization.com/services/analyze/wso.php?url=http://www.ghacks.net" target="_blank">website optimization</a>.</p> ]]></content:encoded> <wfw:commentRss>http://www.ghacks.net/2007/03/19/optimize-wordpress-loading-times/feed/</wfw:commentRss> <slash:comments>41</slash:comments> </item> </channel> </rss>
<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Minified using disk
Page Caching using disk (user agent is rejected)
Database Caching 8/16 queries in 0.005 seconds using disk

Served from: www.ghacks.net @ 2010-03-20 16:53:41 -->