Tuesday, January 15, 2008

MozyHome Settings

I'd already gone over Mozy twice now in previous posts, but this time around I'll go over the exact custom settings I use, as well as other tweaks to make sure not only that my important data is backed up but also that MozyHome stays out of the way as much as possible.

First and foremost, here's a screenshot of the Backup Sets I currently have:


I've kept the music set turned off because I have far more music than the 2 gigabytes of free space MozyHome gives you for free, plus those are backed up in my MP3 player anyway. Notice that I have it set to back up my instant messenger logs as well as my Firefox bookmarks.

Next, here is my Options window. Emphasis is on making it user-friendly when it's running, but out of the way when it's not needed:

Then, in the "Schedule" tab, I have it set to suspend automatic and scheduled backups. With my Autohotkey-scripted Standby/Hibernate routine set to go every night (or whenever I press Alt-H), MozyHome runs at least 7 times a week, oftentimes more (as I usually run the routine when I leave for work and when I go to bed). This way I can keep MozyHome shut down 99% of the time, not taking up extra resources. Speaking of which, I have the MozyHome backup Windows Service set to Manual so it doesn't become part of the startup routine.

Here's the Autohotkey script that controls Mozy's functions:

run C:\Program Files\MozyHome\mozystat.exe

Sleep, 5000

WinWait, MozyHome Remote Backup (1.8.4.7) - Status,
IfWinNotActive, MozyHome Remote Backup (1.8.4.7) - Status, , WinActivate, MozyHome Remote Backup (1.8.4.7) - Status,
WinWaitActive, MozyHome Remote Backup (1.8.4.7) - Status,
MouseClick, left, 210, 18
Sleep, 8000
Send, s
Sleep, 5500

WinWait, MozyHome Remote Backup (1.8.4.7) - Status, 1 minute ago
Run, C:\Program Files\PSTools\pskill.exe "mozybackup.exe"
Run, C:\Program Files\PSTools\pskill.exe "mozystat.exe"
Run, C:\Documents and Settings\Arvin\My Documents\scripts\finishedbackup.txt
The first WinWait routine waits until Mozyhome finishes loading, activates the window, then hits "S" to start the backup.

The second WinWait routine waits until the phrase "1 minute ago" shows up in the window. This means that the backup just finished. It then runs PSKill, a utility used for fast killing processes (MozyHome won't just quit by closing the window). Finally it opens up a premade text file that says "Backup Finished!" which awaits me when I bring the computer out of standby.

(Feel free to use the script and tweak it as you wish. I claim no responsibility for how you choose to use and modify it, and how it affects your system).

Remember, MozyHome offers 2 gigabytes of space free, and unlimited storage for $4.95 a month. I also get an extra gigabyte of space per user I refer, so please click on the link and sign up for this great service!

Monday, January 14, 2008

Prefetching

I saw a tip this morning on gHacks, about the proper setting for prefetching your programs during Windows startup, and instinctively turned on regedit to apply it myself.

Then it turned out I'd set it the proper way long ago. I guess my 1:10 record'll stand for now.

Backing Up

Anybody who's had more than a few years relationship with a computer knows the pain of a hard drive crash, and we all know that the pain resulting is directly proportional to how often you'd backed up in the past. I'm happy to say that just I've learned from my past mistakes, little by little, and each hard drive failure has been easier to deal with than the past.

In fact, I think I believe I'm going on almost two and a half years now without having to reformat my 400 mb primary hard drive (I've got a 100gb media hard drive that's going on 6 years now, I think, and I bought it used on eBay!). That being said, if something were to go wrong, I'd be set back at most a few weeks or a month.

Here are the various precautions I use to back up my data, in order of importance from most to least:

1) Windows Backup - it's included with every installation of Windows XP, and can be found in Start>Programs>Accessories>System Tools. If you can't find it there, you have to dig out your Windows XP disc and install it from there. Once installed, it has an easy to follow Wizard that asks you to specify which folders you want to back up. Restoration can be done from this wizard as well (I haven't had to restore anything, thank god, but as a result I can't give you first hand accounts of it). I personally choose to back the entire C: partition up (currently 80 gigs, up to 125 gigs when full) into my 500 gb Seagate external HD . Many of you may not have such disposable hard drive space, so pick and choose what you absolutely can't live without, mainly your My Documents folder.

I decided to go for the whole partition because I do have that space, and should the unthinkable happen it'll be completely painless to restore everything. And since I've done so many tweaks to my system that I can't even remember most of them (though I'm trying to for this blog), being able to pick up where I left off would be most ideal. I sincerely doubt I'd be building a new PC after this one anyway in the foreseeable future.

Finally, I decided to go with Windows Backup as opposed to a third party backup solution because it's built right into Windows, and was very user friendly from the get-go.

2) Mozy Backup - I'd already gone over this in an earlier post, but it bears repeating. Mozy is an online backup space that offers 2 gigabytes free for their personal license. Just sign up for an account, install their application, specify what folders/filetypes to back up, and set it and forget it. You can tell it to back up automatically on a schedule daily, even specify how much network and CPU bandwidth for it to use. 2 gigabytes isn't much, but it's enough for me to back up my emails to another source, as well as critical documents like accounting information and instant messenger logs. Also, every person you refer to use Mozy gets a free gigabyte of space! (coughpromotioncough)

3) Manual backup of work - I manually back up my current and past projects into another partition of my external drive. My external drive actually isn't big enough to fit all my old projects and current ones, so I prefer to have more control over what goes in and what doesn't.

4) DVD backups - I do this myself using Nero Express, and really only of projects that I've finished and need to archive for future reference. I don't do this very often anymore since getting my external HD, but it's always good to have another place for things to go, and DVD's are good especially if they're of projects long finished.

Finally, it's worth noting that for Windows Backup and Mozy Backup I've used Autohotkey and Windows scheduler to automate backup. I have Windows scheduler set up to run an Autohotkey script at 1:30 in the morning as long as the computer's been idle for at least an hour. Said Autohotkey script is my so-called "Hibernate" process, which among other tasks that I'll cover in a future post, runs Mozy backup, then detects whether my external drive is connected (it isn't always, as it sits at the office most of the time), and if so, runs Windows Backup. At the end the script puts my computer on Standby. I hope to elaborate more on this in the future, but for now I feel very good knowing that at most I'd only be a week or two set back in case of an emergency!

Friday, January 11, 2008

svchost.exe and Process Explorer

Technically it was yesterday morning since it's 2 in the morning as I write this, but "earlier today" I had some random compulsion to check my Task Manager to see if there'd been any leftover processes running in the background following my sampling of various Windows dock launcher applications such as ObjectDock, RocketDock, and Y'ZDock (long story short, I ended up sticking with my taskbar. I'll try to go over my experience in an upcoming post).



I didn't see any processes that shouldn't've been there, though for some reason looking at all those instances of svchost.exe finally got to me and I decided to investigate where they were coming from once and for all.



As some of you may know, svchost.exe is a program that handles a lot of important Windows services, many involving networking. Unfortunately the Task Manager doesn't tell you which services are using which instance of svchost, and you can have as many as 10 instances of the program running.



Luckily, Microsoft has a free utility called Process Explorer that does exactly what you'd expect it to: explore your running processes in a way that shows you where the processes are coming from. For those of you who haven't already seized total control of your Windows startup, this is another great utility to keep you better informed of what's taking up your valuable RAM.



Hovering over the various svchosts showed which service was invoking them. Unfortunately with the exception of one unnecessary service that I identified (again, by checking the safety of disabling it through various sites online), all of the other instances of svchost were necessary for the proper operation of my operating system.



Oh well, I still got one less process off Windows, which makes more room for crap like, hopefully, a free dock launcher that has taskbar and system tray support built right in. Maybe next time!

Wednesday, January 9, 2008

Speeding Up Startup

One of the more unfortunate consequences of doing a systemwide overhaul is sometimes I change something that causes something else to stop working, without knowing what the hell I'd done to cause it (because I'd changed so many things).

At some point while I was still using Windowblinds, I noticed that my computer was taking interminably long to start up. It would routinely take 4 and a half minutes from the BIOS posting to being able to open Firefox. Moreso, as soon as the Windows chime plays, it just shows the wallpaper with no icons or taskbar, and the mouse pointer that was movable but couldn't click anything. I would later discover that for some reason if I used CTRL-ALT-DEL to log off as a user and log back in, the computer would finish its startup in no time at all. So I could either endure nearly 5 minutes of waiting, or cut out a minute and a half by jumping in the middle of it by logging out and logging back in. I usually just let it go and used the time to stretch my legs or refill my drink.

It had nothing to do with Windowblinds at all (in fact one of the reasons I uninstalled it was hoping it would fix the startup problem), but it bugged me enough to go through everything I possibly could to speed up my Windows startup.

I won't go into obvious computer maintenance tasks like defragging and running scandisk, I'll assume you've done that already.

First, I cleaned up the Startup folder in the Start Menu. This is the most visible way of knowing what was starting up with Windows on your computer, and was the easiest to clean up (just delete the icon from the menu). However I think because it's so easy to remove stuff from there most programs use more insidious ways to ensure loading at startup. So I moved on.

Oftentimes, you can also right-click on the icons in the system tray and see if there's a "Preferences" or "Options" menu, and see if it gives you the option to disable loading at Startup. Quicktime is an application that springs to my mind that always runs at startup when it doesn't need to, and can be disabled this way.

Next up, I loaded up Spybot: Search and Destroy, and Ad-Aware Personal, and ran a systemwide check for spyware. I consider myself pretty savvy when it comes to spyware, so I don't keep these programs running all the time (that would slow down my computer as much as the actual spyware would), but it's always good to see what falls through the cracks. When I did the check, it found some cookies, but for the most part, my computer was clean.

Next, by clicking Start>Run>msconfig.exe, you are taken to the Windows System Configuration Utility, which lets you edit the .ini files that govern how Windows loads up. By clicking on the Startup tab, you can see the various programs that start with Windows. Some of the programs on there can be identified easily by their filenames, but many are not. Check the folder they're in for clues as to what they do, and if all else fails, google the filename. If you see anything that doesn't need to run, uncheck it. Novice users might want to do this one restart at a time so you know what disabled application causes whatever side-effect pops up. When I did it I saw some programs that loaded with my video card, mp3 player, and my seldomly used webcam, which I went and shut down.

I restarted when prompted. I noticed a little bit of a speedup at shutdown, but nothing major, and that minute and a half of dead time in the middle was still there. I decided to keep looking.

Start>Run>services.exe brings up the Windows Service Controller. Windows services are application-like components that Windows loads up in order to make sure certain options are always available. I learned about what each of the many services did from sites like these (among others that I can't remember specifically), and then went about setting unnecessary ones to Manual or Disabled.

Again, a tiny bit of speed up (maybe ten or so seconds max), and by this point the startup was almost entirely just that dead period, but alas, the dead period was still there.

Then it turned out it was just my Wacom Cintiq driver acting up. It felt like such a throwaway application/service that I never assumed that would be the problem (I was all ready to reinstall my video card drivers before I even thought of the Wacom drivers). Luckily Wacom had newer drivers on their website and reinstalling the drivers cleared the entire problem up.

Now, instead of nearly 5 minutes to start up, it now takes 1 minute and 8 seconds. That's one third of the time! The only applications starting up that aren't completely necessary for Windows to function are my Wacom drivers, my antivirus, and Thunderbird.

There's more about this topic I can elaborate on, but I'll postpone those for a future post. Especially look forward to more information about Windows Services, and being able to start and stop them at your convenience.

What's gone

As I alluded to earlier, while that first month accounted for the most drastic changes to my desktop and parts beyond, some of the choices I made were inevitably overwritten. Here are some of the stuff that I ended up jettisoning after a week or more of usage:

  • Windowblinds - A dark Windows theme is awesome, but it was a lot of work to integrate it with a lot of Windows applications, most of which were designed with a light theme in mind. The Windowblinds theme I was using, the gorgeous Eminence, for example, had incompatibilities with Macromedia Flash, in which the layer names were the same font color as their background (or just about), and made it difficult to go from one layer to another. I also didn't like how Windowblinds added yet another process in the background, which slowed things down even more.

    Luckily though, I discovered that Microsoft had released their own readymade themes for XP free for download: Royale, Royale Noir, and Zune, which was what I ultimately settled with. They all offered the shiny gloss of Vista but was a quick install that didn't involve an extra process. It basically just installs itself to show up like the other builtin XP themes like Classic and Silver (which was what I'd been using since getting XP 5 years ago)

  • Google Desktop - as much as I loved the gadgets, Google Desktop just took too much ram, CPU, and hard drive space for its own good (almost all for the desktop search function, which I couldn't find any more handy than how I'd laid out my hard drive already... I also had some privacy issues with it). I momentarily tried Yahoo Widgets, which had less of a footprint, but I just came to realize that all those widgets weren't giving me much more functionality, and were really kinda cluttering up my desktop. Besides, widgets like To-Do Lists and Calendars I was able to integrate very nicely into Thunderbird using the Lightning extension.

  • Proud of my new streamlined desktop, I treated myself to a really nice dual-display wallpaper. Then, becoming so enamored with looking at it, I sought out applications that could turn other apps translucent. You can see what my desktop looked like in November, a month after I started my quasi-project:

    It looked really cool like that for a couple of weeks, but in the end the app I used (whose name now escapes me... I tried a whole bunch of different ones) wouldn't work perfectly at startup, and really strained the 32 mb Rage 128 video card powering my 2nd monitor, (the 2nd display of my ATI radeon 9600 was reserved for my Wacom Cintiq). So after a while, that app went away also.
There are many other changes/upgrades/downgrades since back in November, but I plan on covering those in future editions dedicated to specific areas, like how I switched again from Trillian Pro to Miranda. Hope you come back to read them!

Tuesday, January 8, 2008

Macros, October 15, 2007

Continuing on, another entry from my "personal journals" dated October 15, 2007:

First off, I've become slowly addicted to computer macros via the awesome program AutoHotKey. It lets you create automation and hotkey based batch programs of incredible depth and versatility.

My first hands on experience with automation programs was earlier in the summer during an online contest I had joined. Using Automation Anywhere, a program for which I only had the demo, I was able to friend hundreds of voting members every hour to the point where I'm still by far the user with the most friends, and certainly helped me secure 2nd place in the competition. Even that program I found somewhat complicated, and it never performed exactly as I needed it to.

I vaguely recall Autohotkey back then also, but it was impossible to understand when I first loaded it up, and moved on.

The first automation program I ran was from a few weeks ago when I got WakeUpOnStandby, a freeware standalone program that woke my computer up from Hibernate at a predetermined time (8 am), so I could power down my computer overnight (helping fulfill my "Be Greener" New Year's Resolution), but be ready to roll as soon as I wake up. My computer had never been powered down so much, for so long, in forever.

The next program I used was Batchrun, which was simple in that it really only could run, close, and delete programs. My goal was to have it be able to singlehandedly close down all the processes that I needed closed whenever I should play a computer game (namely Team Fortress 2 and the rest of the Half Life Orange box when it arrived), and then another program to turn them all back on when I finished playing.

It worked well enough except some programs wouldn't close right, and, desperate, I turned back to Autohotkey.

Autohotkey was still very oblique when I powered it up, but somehow (I can't even remember it now), I figured out the intricacies of its interface (basically you just code it all in Notepad!), and found the code (and extra app PSKill) I needed to end the processes I wanted perfectly and quickly, and also open them back up.

Since then I've realized the possibilities this opened up for me. I tweaked the Open programs code to include resetting the color palette of my video card after I played. This was an annoying bug via my video drivers that I still haven't been able to fix, and I feel very empowered to have just written (okay, Autohotkey comes with an action recorder function much like Automation Anywhere that can duplicate all mouse and keyboard actions you choose) a code that will just do it for me very quickly.

I've even expanded the capabilities of WakeUpOnStandby so that I can run a script that turns the program on right before I put it on hibernate, so I don't have to keep it on at all times now so as not to risk having it inadvertently off when I put the computer on hibernate. This way I can save even more system resources by turning WOSB off also when I play my games.

But that's not all. I figured out how to get it to automate tedious internet tasks. I was annoyed when the online contest announced that voting was now enabled daily, which meant I would have to vote for myself daily if I wanted any chance at all of making it to the next rounds. So I set up a script to run that opens firefox, logs me in, and votes for me automatically. I set it to run in the morning after WOSB turns the computer back on, so unless I did it wrong (haven't tested it under real conditions yet), it should have done it before I wake up!

I tried to get it to load the aLiveJournal site up and click on the ranking sites and an add also, but it was having some problems I didn't have the time to fix. As soon as I figure that out, I'll have that run in the morning as well.

Then after that I'll set up another friending program for the contest, and then possibly a commenting program! Then I'd be unstoppable!

Now I get all overexcited just wondering what other things I can schedule for it to do (probably run defrag and autobackup)
As an epilogue, the second time I joined the contest, I ended up ranking 7th in the final round, versus the 2nd I did the second time around. Not bad for not asking help from friends, just AutoHotKey.