<?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 &#124; Latest Tech News, Software And Tutorials &#187; space</title> <atom:link href="http://www.ghacks.net/tag/space/feed/" rel="self" type="application/rss+xml" /><link>http://www.ghacks.net</link> <description>A technology news blog covering software, mobile phones, gadgets, security, the Internet and other relevant areas.</description> <lastBuildDate>Sat, 11 Feb 2012 09:52:46 +0000</lastBuildDate> <language>en</language> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <generator>http://wordpress.org/?v=3.3.1</generator> <atom:link rel="hub" href="http://pubsubhubbub.appspot.com"/><atom:link rel="hub" href="http://superfeedr.com/hubbub"/> <item><title>Save disk space with UPX</title><link>http://www.ghacks.net/2010/04/28/save-disk-space-with-upx/</link> <comments>http://www.ghacks.net/2010/04/28/save-disk-space-with-upx/#comments</comments> <pubDate>Wed, 28 Apr 2010 13:11:32 +0000</pubDate> <dc:creator>Ronan Jouchet</dc:creator> <category><![CDATA[Hacking]]></category> <category><![CDATA[Knowledge]]></category> <category><![CDATA[Linux]]></category> <category><![CDATA[Mac]]></category> <category><![CDATA[Open Source]]></category> <category><![CDATA[Software]]></category> <category><![CDATA[Tutorials Advanced]]></category> <category><![CDATA[Windows]]></category> <category><![CDATA[compress]]></category> <category><![CDATA[disk]]></category> <category><![CDATA[executables]]></category> <category><![CDATA[save]]></category> <category><![CDATA[space]]></category> <category><![CDATA[upx]]></category> <guid
isPermaLink="false">http://www.ghacks.net/?p=24952</guid> <description><![CDATA[Disk space is cheap, but there are still situations where you&#8217;d like to reclaim space. For me, one of them is getting the maximum of the free Dropbox account I use to synchronize my applications between work and home. hey, don&#8217;t say my sysadmin I do this, he&#8217;d get a heart attack from the sole [...]]]></description> <content:encoded><![CDATA[<p>Disk space is cheap, but there are still situations where you&#8217;d like to reclaim space. For me, one of them is getting the maximum of the free Dropbox account I use to synchronize my applications between work and home. <em>hey, don&#8217;t say my sysadmin I do this, he&#8217;d get a heart attack from the sole thought of a virus among my tools collection</em>.</p><p>Of course {zip/rar}ing everything is a no-go; nobody wants to have to open an archive before being able to launch an application. So what?<br
/> <span
id="more-24952"></span>Enter UPX, the reference packer for executable files. UPX compresses executable files (mostly .exe and .dll under Windows), but contrarily to zip/rar/whatever, it keeps them executable, also preserving  their properties (icon, version&#8230;). All this at the cost of a completely unnoticeable performance hit when starting the application. Sounds good? Let&#8217;s compress everything executable in this Dropbox that is dangerously close to reaching its 2GB limit.</p><ol><li><a
href="http://upx.sourceforge.net/#download">Download UPX</a> from SourceForge and extract it to &lt;upxFolder&gt;.</li><li>Open a command prompt and browse to &lt;upxFolder&gt; (you can find the command prompt in Start &gt; Accessories or run it via Windows+R, then &#8220;cmd&#8221;. Use &#8220;cd FolderName&#8221; to navigate the filesystem).</li><li>Run upx.exe to have a look at the options available. I&#8217;ll use -9 but you can adjust this (for example if you feel a performance hit on an old machine &#8211;<em>I don&#8217;t</em>&#8211;), and -v to have verbose output. Now, navigate to the folder of a program you want to compress and run your freshly-baked command:<br
/> <code>"&lt;upxFolder&gt;\upx.exe" -9 -v *.exe *.dll</code><br
/> (replace &lt;upxFolder&gt; adequately, and keep the quotes around the path, or spaces will cause problems)</li><li>You&#8217;ll see the files being compressed, the compression ratio, as well as the occasional &#8220;<em>AlreadyPackedException: already packed by UPX</em>&#8220;, or &#8220;<em>CantPackException: .NET files (win32/net) are not yet supported</em>&#8220;, or &#8220;<em>IOException: read error: Invalid argument</em>&#8220;. These errors are all OK, UPX just notifies you that it left the file untouched.</li></ol><p>Woot, you already gained 50MB by just compressing big ol&#8217;Inkscape.<br
/> <a
rel="attachment wp-att-24921" href="http://www.ghacks.net/2010/04/28/save-disk-space-with-upx/inkscape/"><img
class="alignnone size-full wp-image-24921" src="http://www.ghacks.net/wp-content/uploads/2010/04/inkscape.png" alt="" width="547" height="306" /></a></p><p>Of course you now want to do this on ALL the executables in a folder. But you&#8217;re lazy, and the perspective of running this line inside hundreds of subfolders leaves you bleak. Lucky you, I&#8217;m lazy too, so I dug <a
href="http://stackoverflow.com/questions/2043869/how-to-execute-a-windows-batch-command-recursively">Stack Overflow</a> to assemble a script that will do the operation recursively.</p><ol><li>Paste this in a text file (of course adjusting the main line like we did before) you will rename to something like upxRecursive.bat<br
/> <code>for /r /d %%x in (*) do (<br
/> pushd "%%x"<br
/> "&lt;upxFolder&gt;\upx.exe" -9 -v *.exe *.dll<br
/> popd<br
/> )<br
/> pause</code></li><li>Move this batch file inside your Dropbox folder, launch it and see the magic. This will take a long time on a big folder filled with executable files, but will seriously slim it down. In my case, I saved 400MB (from 1.7GB to 1.3GB), leaving me with plenty of space for more crap.</li></ol><p><strong>Final notes:</strong></p><ul><li>UPX has been in development for a long time and is praised for its extreme stability and reliability, but could possibly leave you with some exotic executable files that won&#8217;t run after compression. I personally never occurred to me, but accidents happen. In this case, use <code>"&lt;upxFolder&gt;\upx.exe" -d problematicFile.exe</code> to get an uncompressed version. Note it won&#8217;t be byte-identical, if you want to be able to get back to byte-identical versions, you should add the <code>--exact</code> switch at compression time.<br
/> By the way, the folks at <a
href="http://portableapps.com/">PortableApps.com</a> pack all the software they release with UPX. Reassured about its reliability?</li><li>People familiar with <a
href="http://en.wikipedia.org/wiki/Portable_Executable">the win32/pe format</a> will know that .exe and .dll are not its only valid extensions. The full list is &#8220;.exe .dll .cpl .ocx .sys .scr .drv&#8221;. However, I don&#8217;t recommend compressing sensitive files like control panel extensions or driver files, and this is why the line I suggest targets only dll and exe files. Compressing VLC is OK because you can reinstall it if UPX butchers it. Compressing critical software is not.</li><li>I&#8217;m just repeating my previous point, but don&#8217;t want to see angry comments from people doing crazy things with this. Again, <span
style="text-decoration: underline"><strong>don&#8217;t do this on all C: , it -will- wreck your system</strong></span>. Compress executables when you really need it, and inside folders containing only reinstallable applications if things go wrong.</li><li>UPX is multi-platform. My article focuses heavily on Windows because this is the platform where my use case comes from, but you can of course adjust this idea/script for Linux (plus you will probably have access to a saner scripting language than batch).</li><li><em><strong>EDIT</strong>: as pointed by John T. Haller in the comments, PortableApps offers <a
href="http://portableapps.com/apps/utilities/portableapps.com_appcompactor">AppCompactor</a>, a graphical frontend  that relies among others on UPX.</em></li></ul><p><em>Ronan is a geek and musician living in Montreal. He likes scaring wary sysadmins with 2GB folders full of false positives and writes about  software, music and life at <a
href="http://www.flyingmolehill.com/">flying  molehill</a>.</em></p> ]]></content:encoded> <wfw:commentRss>http://www.ghacks.net/2010/04/28/save-disk-space-with-upx/feed/</wfw:commentRss> <slash:comments>8</slash:comments> </item> <item><title>Stellarium your own free planetarium</title><link>http://www.ghacks.net/2006/12/24/stellarium-your-own-free-planetarium/</link> <comments>http://www.ghacks.net/2006/12/24/stellarium-your-own-free-planetarium/#comments</comments> <pubDate>Sun, 24 Dec 2006 08:25:10 +0000</pubDate> <dc:creator>Martin Brinkmann</dc:creator> <category><![CDATA[Cool]]></category> <category><![CDATA[Entertainment]]></category> <category><![CDATA[Tools]]></category> <category><![CDATA[astronomy]]></category> <category><![CDATA[freeware]]></category> <category><![CDATA[moon]]></category> <category><![CDATA[nebulas]]></category> <category><![CDATA[planetarium]]></category> <category><![CDATA[sky]]></category> <category><![CDATA[space]]></category> <category><![CDATA[stars]]></category> <guid
isPermaLink="false">http://www.ghacks.net/2006/12/24/stellarium-your-own-free-planetarium/</guid> <description><![CDATA[Men has been looking to the stars from the beginning of the world and this tradition is still visible in our modern world,  although for slightly changed reasons. After the download of Stellarium finishes (Windows, Mac and Linux version available) you may startup the application to take a first look at the stars. I took a look from Paris, not sure if this is the default for everyone though. The name of the stars that I was able to spot were shown in the 360° landscape.]]></description> <content:encoded><![CDATA[<p>Men has been looking to the stars from the beginning of the world and this tradition is still visible in our modern world,  although for slightly changed reasons. After the download of <a
target="_blank" title="stellarium" href="http://www.stellarium.org/">Stellarium</a> finishes (Windows, Mac and Linux version available) you may startup the application to take a first look at the stars. I took a look from Paris, not sure if this is the default for everyone though. The name of the stars that I was able to spot were shown in the 360° landscape.</p><p><img
alt="stellarium planetarium" title="stellarium planetarium" src="http://www.ghacks.net/files/screens/2006/12/stellarium1.jpg" /> <img
alt="stellarium planetarium" title="stellarium planetarium" src="http://www.ghacks.net/files/screens/2006/12/stellarium2.jpg" /></p><p><span
id="more-1034"></span>You may change the location from where you are looking at the sky to almost any place on earth. Switching to the United States for instance changed the beautiful morning in Paris to a great view of the nightsky in that region of the world. Additional information like Nebulas, grids and constellations can be added to the view.</p><p>Stellarium is a fantastic application that teaches about the stars on the one hand and displays beautiful images on the other hand. Great for everyone with even a slight interested in astronomy.</p> ]]></content:encoded> <wfw:commentRss>http://www.ghacks.net/2006/12/24/stellarium-your-own-free-planetarium/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> </channel> </rss>
