Tuesday, August 07, 2007

7-zip (file archiver)

7-zip is an open-source file archiver with high compression ratio. It can compress your files using a variety of methods, such as 7z, ZIP, GZIP, BZIP2 and TAR. It can also extract RAR, CAB, ISO, ARJ, LZH, CHM, Z, CPIO and NSIS archives.



Like other file archives you may be used to, 7-zip can integrate into the windows shell and it also has a command-line version. 7-ZIP also offers some advantages over other windows based archive programs such as winzip and winrar:

  • Open-source - You can read and modify the program source code.

  • Cross-platform - You can run 7-zip on any modern operating system (Windows, Linux, OS X, and so on)

  • No registration - There are no annoying splash screens or nagging registration pop-ups

  • Provides a compression ratio that is 2-10% better than PKZIP and WINZIP provide for ZIP and GZIP archives.


Note that you can register 7-zip if you want to support it by clicking Help->About 7-Zip->register in the 7-Zip File manager but it’s not a requirement and it will never bug you to.

There are two basic ways you can associate certain file types with 7-zip. The easiest way is to open up the 7-zip file manager and choose Tools->Options and in the System tab choose the file extensions you want to associate with 7-zip. This will make it so files ending in those extensions are automatically opened in the 7-Zip file manager for extraction. If you choose to add the associations manually by the standard MS Windows way of right-clicking on a file, choosing “open with”, selecting the “always open files of this type with this program” and then browse for the 7-zip program then make sure you select C:\Program Files\7-Zip\7zFM.exe. There are two other binaries in the 7-Zip installation folder that could confuse you and they are called 7z.exe and 7zG.exe; so make sure to use 7zFM.exe (FM means File Manager)

It is possible that 7-Zip can handle all your file archiving needs but you may run into some files that were compressed using Winzip and they won’t always be compatible with 7-Zip. I personally haven’t came across this issue but just be aware of it.

To extract all the files of an archive first click Edit->Select All and then click the 'Extract' Button.

Monday, August 06, 2007

TortoiseSVN (source code control system)

TortoiseSVN can be thought of as a Win32 GUI front end to the source code control system Subversion, which is an open-source software engineering tool to allow developers to easily maintain their projects.

Once you install Subversion via Windows Installer, grab the TortoiseSNV Installer. You can of course just use the svn command-line tool that comes with Subversion but there are some benefits for using TortoiseSVN instead. For one, TortoiseSVN allows you to work completely in a Graphical User Interface to manage your projects, but it does more than that; TortoiseSVN is basically a shell add-on to the windows shell, which means you can right-click on any file/folder in windows–be it on the Desktop or from within Windows Explorer–and you will have access to TortoiseSVN via the pop-up menu. What’s more is, only commands that make sense for the selected file/folder are shown. You won’t see any commands that you can’t use in your situation!

tortoisesvn

Here’s a couple hints to make your life easier:

  • When you install Subversion note that the client runs on Win9x/Me but the server does not. If you use Win9x/Me then add the following line to your autoexec.bat:
    SET APR_ICONV_PATH=”C:\Program Files\Subversion\iconv” (or whatever your path to it is if not this)
    (Don’t forget to reboot windows for the changes to take effect after you edit your autoexec.bat)

  • When you install Subversion it comes with documentation, which is actually the official book on Subversion. It will be in .chm format (Compiled HTML) but you can get other versions, like PDF (if you want to print it out) or both single page or multi-page HTML versions to download for off-line viewing from here. Trust me, you will want to read this if you’re new to Subversion–at least chapters 2, 3, and 1–in that order. That site also has dead-tree versions for sale.

  • If you’re not a programmer but still want to use TortoiseSVN then check out this tutorial.