.net 3d art blog c# coding college computers editorial entertainment firefox food freeware gaming hardware hdtp hiking humor ide japan japan, javascript linux mac mailbox milestone misc. mods momoiwa, mono movie nintendo philosophy php politics rant rebun review science software technology time ucr wakkanai windows work wormholeftp
I migrated my computer over to the Beta release of Windows 7 before the new year. Every time I re/install an OS on my machine, I back up a few folders stored in the AppData folder containing Pidgin's chatlogs, Thunderbird's e-mails, and Firefox's browser preferences.
Dropbox is a relatively new automated file synchronization service that gives users 2GB of free online storage to synchronize documents to. Using a desktop app (available for Windows, Mac, or Linux), you can specify a single folder as your "dropbox", the contents of which are automatically synchronized to your storage space online. Your Dropbox account can then be linked to any number of other machines, and those machines in turn will download and make available all of the documents that have been synchronized to your account.
What does Dropbox have to do with backing up the three folders I mentioned earlier? Well, through the magic of a few NTFS Symbolic Links, I've managed to move folders that are otherwise in C:\Users\<username>\AppData\Roaming and place them in the folder I've designated as my dropbox in my Documents folder; as a result, I can keep all of my chatlogs, e-mails, and browser preferences automatically synchronized online and accessible from anywhere I have internet access, and I can easily restore all of those files the next time I install an OS.
To accomplish this, I used Vista's mklink command:
mklink [[/D] | [/H] | [/J]] link target
/D – Creates a directory symbolic link. Default is a file symbolic link./H – Creates a hard link instead of a symbolic link./J – Creates a Directory Junction.You can read more about the /D and /H flags with a bit of googling, but for now we'll focus on the /J flag. When set, the /J flag tells the OS to point any requests to the link directory to the target directory. Here's an example:
mklink /J "C:\Users\AppData\Roaming\.purple" "D:\My Dropbox\Pidgin"
First, we initiate the link program with mklink with the /J active. Next, we give the program the folder path that we want to link to another folder somewhere else in the computer. We're telling it to point (a hypothetical) Pidgin's settings and chatlogs folder to another location. That location is specified in the last folder path. In this case, I'm pointing it to the Pidgin folder stored within the Dropbox synchronization directory.
Before you hit enter, make sure the link folder is completely empty of any file or folder. When everything's set, hit enter and you'll have made a directory junction between the two folders.
It's worth taking a moment to explain how the OS handles the junction. First, if you go to C:\Users\AppData\Roaming\.purple, though it appears as though files are in the folder, what you're really seeing are the files stored in D:\My Dropbox\Pidgin. To Pidgin, it appears as though all the files it needs to run are in their proper location, but in reality it's accessing and modifying files in the Pidgin dropbox folder.
How does all of this fit in with Drobox? Each of the three Directory Junctions I created points to a target folder in the My Dropbox folder. Whenever Pidgin, Thunderbird, or Firefox makes a change to any of their files, Dropbox see the changes and synchronizes the files to my Dropbox storage space online. With just a few short minutes in the command line, I was able to automate the archival of some of the most important files on my computer and set up an easy means of accessing them should something ever happen to my machine.
I hope this tutorial helps out someone in a similar bind as me. If you find a better way of automating file backups to an online location (maybe even a personal FTP server!), let me know; I'm always looking for new ways to automate archiving of important files!
I was rummaging through some old Lifehacker posts when I came across a little gem called Vista Drive Icon.
What does Vista Drive Icon do?
It implement's Vista's Hard Drive capacity meter in Windows XP! This was one of the few features about Vista I liked; the lack of that feature made the move back to XP a bit more difficult, since now I had to right-click on a drive and click Properties to see how much capacity was available.
And the best part? It's freeware! If you're worried about memory usage, don't be; on my system it only used ~4.5MB of RAM, a measly amount in today's era of 1+GB of system RAM.
Microsoft is the standard for things when it comes to things like operating systems or office productivity suites, so I took it upon myself to get a copy of Microsoft Office 2007 Ultimate.
Now, normally this software runs anywhere from mid-$600's to the low-$400's, but Microsoft decided to be generous (most likely for some penetration into the college-age market) and offer it up for the low, low price of $60. The software is offered up to students as part of their "The Ultimate Steal" program and requires that you have a valid school e-mail address.
I've been a proponent of OpenOffice.org because it's a free Office-compatible suite of programs; before I used it I relied on pirated copies of Office 2003 for my word processing and spreadsheet needs. I figured this offer was as good a time as any to get my own legitimate copy of Office, so I caved and bought a license. Now I don't have to worry about anyone knocking on my door and hauling my ass to court!
I should mention that for most people, OpenOffice is more than enough, and the price can't be beat. One of the main reasons I decided to buy Office 2007 was because it comes with Outlook; nothing in the OO line of software offers a program I can synchronize my Pocket PC to, so I was dependent on my copy of Outlook 2003 to keep my device and computer synchronized.
$60 isn't a bad price for over $400 worth of software, but a heads-up, if you want a physical copy of the program on a DVD it'll cost you an additional $20; I went ahead and added on to my order because I like having hard copies of the good software!
In other news, my right knee experiences sharp pangs whenever I bike; this is bad news, especially since I'm supposed to be preparing for a 40-mile up-hill bike ride on the weekend of Thanksgiving! I'm going to the health clinic tomorrow to have someone take a look at it, and with any luck it'll be something that can be fixed without much downtime. Here's hoping!
Every once in a while, I'll see some article on Digg about programming font alternatives and I'll find myself thinking, "is that really necessary?" I've been around programming for the last four or five years, and in all that time I've never once moved away from the default Windows IDE font.
For those of you who've never touched programming in a computer language, most programming integrated development environments (IDE) are set to use the monospaced Courier New font. Created in 1955 for typewriters, this font eventually found its way into Windows operating systems as far back as Windows 95. The strength in this font and many of the other monospaced fonts is that the characters all line up vertically. Here's an example of what I'm talking about:

I've compared Courier New to Times New Roman because TNR is widely known as a popular font for word processors. As you can see from the guide lines in the image, all the characters typed in Courier New (the monospaced font) line up, while the characters typed in Times New Roman do not. A benefit to monospacing characters in code is that its possible to easily compare the content of various lines of code. If I want to compare a MySQL database connection string from one file to a similar string in another file, I can just copy-paste the two strings and compare their string length to check for any inconsistencies or differences between the two. With a font like Courier New you'll notices character differences between strings almost immediately.
Since I started coding, I've tried to switch fonts once or twice. I stayed away from TrueType fonts because I liked the look of monospaced characters, but finding a monospaced font I like was difficult. Every time I tried a different font, I thought the text was too small or the characters were too blocky. SOME monospaced fonts even boasted a special tiny size, as though I liked coding at size five font. No matter which font I tried, though, I ALWAYS moved back to Courier New. Call it stubborness, call it security, but I had found my favorite programming font a long time ago.
I suppose the perfect programming font is determined solely by personal preference. Personal experience tells me that, for a word document, non-monotype-fonts such as TNR are perfect because they set up words that look more naturally-spaced, similar to how someone would write. When it comes down to programming, monospace fonts are the way to go because of how neat the code looks easy it is to compare various bits of code. Just my two cents.