Browse > Home

Thursday, July 2, 2009 | Subscribe via RSS

Subversion for Beginners

June 30th, 2009 | 1 Comment | Posted in Computer Matters

I mentioned previously that I wanted to post how Subversion works (on the surface, for beginners) and how I use it for my development needs.

To create my WordPress plugins, Simpler iPaper and Simpler CSS, using SVN has been a must; after all, the only way to release new versions of the plugins is through SVN. I also keep this site’s WordPress installation up-to-date on the development version using Subversion. Additionally, in my current efforts to develop a working solution for HDTV’s in business and organizational settings, Display UI is being developed using Subversion for version control.

You get the idea. I use it on a daily basis, and for practical purposes. I don’t claim to understand the fine details, but hopefully this post gives you an idea of how I use it and how you can, too.

Source Code SnapshotSo what is version control? Simply put, it’s a way of keeping track of the changes made to files. It’s often impractical to make manual backups of a file before every set of changes to it, so version control systems like CVS and SVN emerged to help people — especially developers and programmers — keep track of their files, share changes with team members, and prevent stupid mistakes.

Accidentally deleted your code? Revert your changes. Came up with an ingenious way (that works) to do something? Commit your changes. Need to get the latest revision of all the files? Update the working copy.

Perhaps the most practical application of systems like Subversion is in team development. When three or more people are working on the same set of files, it’s useful to be able to merge the changes seamlessly, see the changes others have made, or even work separately on branches (kind of like forks) and tags (usually released versions that are being maintained).

I did write that I don’t claim to understand the fine details. If you really want to understand Subversion, I highly recommend this book by members of the development team: Version Control with Subversion, or the book online.

Let’s talk about how to use it. Hard-core programmers often choose to use the command line tools, where they type commands like svn up to update the files. Beginners will be glad to know that there are implementations with GUI’s, like RapidSVN and TortoiseSVN. Eclipse users may use Subversive or Subclipse, “team providers” that let coders easily perform version control tasks inside the IDE.

Subversion tasks can be done in Windows Explorer

Subversion tasks can be done in Windows Explorer

Assuming that you’re using the command line binaries — which you can get from the Subversion site, and I recommend official CollabNet builds where possible — most of the basic tasks are rather easy.

Instead of right-clicking and picking options from a menu, tasks are done by typing commands.

First of all, a ‘repository’ is a hosted location containing all of the code, revisions and metadata. Often, one can access a repository via HTTP, as in the case of WordPress, which is found at http://svn.automattic.com/wordpress/ .

To ‘checkout’ a repository means to make a local copy (known as a ‘working copy’) of the contents. That’s what we have to do first when working with an established project: get the code from the repository.

To do so, type the following at an open shell (on Linux/Mac OS X) or command prompt: (don’t type the ‘$’ — that’s just what you should see at the start of every command line in Bash)

$ svn checkout http://svn.automattic.com/wordpress/trunk/ wordpress/

Windows users would do the same, but at a command prompt — again, without the dollar sign.

That command invokes the svn executable and tells it to checkout the WordPress trunk directory to the local folder wordpress.

More »

VIPRE – Another Antivirus Product?

July 2nd, 2009 | No Comments | Posted in Computer Matters

I’m usually sceptical of new antivirus products advertised to be both ‘fast’ and ‘effective’. But after receiving an offer from Sunbelt Software to inform readers about their new product — VIPRE® Antivirus + Antispyware — I had to investigate.

VIPRE claims to be “high-performance security software” that performs better than traditional suites like Norton Antivirus. That much is very believable; after all, we all know how clunky and laggy the established ‘leaders’ in antivirus are. But my personal antivirus favourite is ESET NOD32 — and I’ve always gotten the impression that it’s fast — so I was really surprised that internal testing showed VIPRE to be even faster and more resource-efficient than NOD32.

VIPRE: Scan in Progress

VIPRE: Scan in Progress

At this point I wanted to see what some credible sources had to say. CNET UK had essentially the same reaction that I had when first presented with this product: “never heard of it.” But after their own use, they had this to say: “we’re pretty impressed and will continue to use it — particularly on netbooks, which don’t have much power to spare.”

Credible sources that give software positive reviews always influence me. That’s why I think (and this personal opinion isn’t influenced by the sponsorship of this post) you should try Sunbelt’s new Antivirus Software, especially if you don’t have antivirus software already. Install the 15-day trial and decide for yourself whether it’s worth using. (I would have done the same myself if I had another PC to use for testing.)

Sponsored by Sunbelt Software

Tweets for 2009-07-01

July 1st, 2009 | No Comments | Posted in Personal Matters

Tags: ,

Tweets for 2009-06-29

June 29th, 2009 | No Comments | Posted in Personal Matters
  • I'm downtown right now, there's a TEXTING COMPETITION @ Dundas Sq, and I tried out but got the phrase 'cal me wen u cn txt beta'. I suck … #

Tags: ,

Tweets for 2009-06-28

June 28th, 2009 | No Comments | Posted in Personal Matters
  • My optometrist gave me 3 prescriptions to choose from. I definitely won't be returning to his practice. #

Tags: ,

Bing: the better way to Google

June 27th, 2009 | No Comments | Posted in Video Matters

This is one of the most humorous videos I’ve seen in a while.

“…introducing Bing: the better way to Google”; also known as “the easiest way to Google since Yahoo!”

Please enable Javascript and Flash to view this Flash video.

via TechCrunch

Tweets for 2009-06-26

June 26th, 2009 | No Comments | Posted in Personal Matters

Tags: ,

Tweets for 2009-06-25

June 25th, 2009 | No Comments | Posted in Personal Matters

Tags: ,