Thursday, December 31, 2009

Everyone have a safe and Happy New Year!

Everyone and their mother has been making top XX list of 2009, whether it be news stories, gadgets, tech news, security breaches, etc. Not here. After all, this blog is brand spanking new - it'd hardly be fair to touch on stories and such that I have never covered.

At any rate, I just wanted to leave you all with a word - and that word is safe.  I want everyone to stay safe this New Year's Eve and through New Year's Day. Safe is the key word here.

Look for more blogs from me in the new year.  Until then,

HAPPY NEW YEAR!

(follow me on twitter @nkyadav)

Wednesday, December 30, 2009

Some oft used applications I have for Windows 7

Since I have technically been using Windows 7 for over a year now, I have amassed a collection of freeware applications that I cannot live without.  They serve various purposes, and you may not like them all, but FWIW, here they are.  (Note, this is a multi-part series, featuring a single application at a time).

Part I:  RegEditX

If you have been using Windows XP/Vista/7 for any length of time, you've probably come across a blog post or tutorial that tells you to 'edit the Registry'.  Isn't it a PITA to open Regedit, then find your way to that key location?  Enter RegEditX - an app that was last updated 4 July 2004.  Yup, you read that right - an application that was written when Longhorn was in alpha stages works perfectly fine with Windows 7.  In order to run, you need to make one small change after installation - the installation ends with the installer opening an explorer window with the Start Menu shortcuts, which suits our issue perfectly fine.  Follow these steps to make it work.


1.  Right click on the RegEditX shortcut icon (usually the middle icon) and select Properties




2.  Go to the Compatibility tab




3.  Click on the Change settings for all users at the bottom




4.  Check the Run this program as an administrator at the bottom




5.  Click OK all the way out of the dialog boxes.


In order to run it, you can open it via the Start menu, use the Start searchbar to find it, use the Run dialog to start it (enter RegEditX in the run box), and you can even pin it to the Start Menu and / or Taskbar just like any other app.

Here is what it looks like in Windows 7 - and why it is an indispensable tool:



Happy Registry editing!

The beauty of multiple hard drives

So, I am a techy kinda guy, and I like having things different.  Part of it is consistency, part of it is ease of usability, and part of it is sheer simplicity.  Back when I was using XP, and honing my skills around an NT based OS (I ran 2000 on a laptop previously, but with the release of XP, I built a new machine around the OS), I figured out pretty quickly that the *nix methodology of using separate partitions for different aspects of the OS and applications and user space makes sense - perfect sense, logical sense, the kind of sense that transcends just logic and traverses into the realm of harmony, of righteousness, of that sense of everything being "right as rain" as the Oracle is fond of saying.

I learned how to make custom installs, thanks to a little gem of a find called nLite, at http://www.nliteos.com (Thanks Nuhi!), and I quickly used it not to cut out any real fat, as some users were prone to do with the OS, but to customize it to my own tastes - I forced it to install to a system that either had dual partitions, or else had dual HDs, and it moved the Entire Program Files tree as well as the Entire Documents and Settings tree to the second drive / partition.  Why?  The answer is not as complicated as you may think.

Ever notice how every tech support agent and all their cronies (not to mention System Administrators, Windows gurus, and virtually every other banner advertisement on the web, and of course,...ME!) advocates some sort of backup strategy to safeguard your DATA when you use a computer?  Ever notice also how it is a PITA to try to figure out what to back up, and even then getting everything back in place is not always the easiest thing to do b/c of some of the idiosyncrasies of the way modern OSs (read: Vista / 7) save settings, extended settings, documents, etc.?

You're not alone - but I figured out very early that having separate partitions for the OS and applications from the data was vital.  I later extended this to separate physical HDs.  It has made re-installation of applications after an OS reinstall almost trivial - and that is a good thing, considering that I am testing no less than 10 apps on a daily basis, not to mention testing productivity applications, anti-malware applications, and for the last year (well, until Aug 9) even testing OSs.  When you test things, you tend to need to restore items as fast as you can, but a lot of times the testing is more of an indefinite type of thing - I continue to keep the latest nightly build of Minefield (the Über Geek bleeding edge testing build of the next generation of Firefox), and it gets upgraded almost daily, and the same goes for most other Mozilla apps.  Therefore, restoring is not much of an option, at least not for me - b/c on any given day, I'll have updated various Mozilla apps, updated the extension versions, updated malware definition files, etc.  Therefore, for me, the best is to perform a clean install every now and again (usually 9-12 months).

OK, I know what you're thinking - I am a Mathematics major, and yet I cannot count the number of days from 9 August to 20 December???  Yeah, well, there was a bit of user shenanigans involved, and I basically did something I should not have done, and hosed my system.  But, see, the good part is that *I* can afford to do that and be back up and running less than 24 hours later.

You see, when I was testing Windows 7, I realized that performing an upgrade of a heavily used system, particularly from Vista, took aeons - not to mention still messed things up with application compatibility issues.  So, my age old strategy of using separate partitions / HDs came in handy in a big way with all the build releases of Windows 7, from 6801 all the way through the RC.  I was able to perform a completely fresh install when needed, rather than upgrading, and therefore avoided a lot of the idiosyncrasies that some folks faced when upgrading over and over, and yet I was still able to use the OS as my daily OS on any given day.


With Vista and 7 both, you can move the location of certain special folders, namely Desktop, Favorites, (My ) Music, (My ) Pictures, (My ) Videos, (My ) Documents, Downloads, Saved Games, Contacts, Searches, and Links.  This makes for an interesting time, b/c by moving all of those to separate partitions / HDs, you are effectively ensuring that, barring a complete multiple partition / total HD failure, that all of your documents, saved games, contacts, even pictures, videos, downloads and searches, will be saved in the even of an OS re-installation.  Furthermore, it means that there is a *LOT* less that you actually have to back up in the even that you need to reinstall your OS.  For more information on how to move these folders, for Vista see http://www.vistax64.com/tutorials/107990-personal-user-shell-folders-move-location.html and for 7 see http://www.sevenforums.com/tutorials/18629-user-folders-change-default-location.html.

Now, that leads me to my point:  Installing the OS all over again is not the long drawn out process of having to install all your apps and configure them, and here is why.  (This assumes that the OS re-installation is not caused by a major fault that also affected other partitions / HDs).  When you go to reinstall, before you do, all you have to do is make a copy of the %USERDATA%\AppData folder onto some free space on a different HD (you'll need to enable viewing of hidden files and folders to do that - see http://www.sevenforums.com/tutorials/394-hidden-files-folders-show-hide.html?filter[2]=File%20Folder%20Settings), and you're off and running with the new OS install.  The key is that that folder stores 99% of all of you program configuration data - everything from .ini and .xml files to .dat, .sqlite, etc. types of files.  What's more, if you start exploring that AppData folder, you'll see some really interesting things.

First of all, there are three subdirectories, Local, LocalLow, and Roaming - the majority of your installed application settings will be in either Local, Roaming, or a combination of both.  I simply keep an explorer window open to wherever I have copied the %USERDATA%\AppData folder to (in my case, F:\, so it ends up looking like F:\{username}\AppData\) and keep another explorer window open to the original %USERDATA%\AppData folder, and just copy and paste any relevant folders from the save copy to the live folder.

As an example, I'll use Firefox.  Now, after the OS was installed, I simply ran a Firefox installer, choosing Custom at the initial screen (I don't use Desktop shortcuts nor QuickLaunch shortcuts, so I like to turn them off - plus, I like making sure that each build has it's own specific (and descriptive) folder name (luckily, Firefox has done just that, each installing into it's codename folder now).  When the installation ends, be sure to uncheck the box next to Launch Firefox/Shiretoko/Namoroka/Minefield now.  Now, from the saved copy (F:\{username}\AppData\) I copy \Local\Mozilla and \Roaming\Mozilla to %USERDATA%\AppData.  Et voila!  Now, when I run Firefox, it sees me profiles just like before and shows me my profile manager, allowing me to pick my profile based upon which build I installed.

After this is completed, any subsequent build installs can commence normally - no need to uncheck the last check box (although you will still want custom if you want to change other options).

It may seem like a lot of work - but, TBH, with my having planned for this previously, and with me having a nice, fast Cable modem connection, including downloading the 4 builds, and then installing them, I spent a grand total of 10 minutes installing and 'configuring' 4 different builds of Firefox.  I spent about 7 minutes for 3 builds of Thunderbird, and about 5 minutes on the latest build of Songbird (I would have spent less, but prior to the crash I was still running Songbird 1.2, so the latest 1.4 build performed an addon check and update).

Oh, and this is pretty much how fast it goes every time I was cleanly installing Windows 7 Beta / RC.  10 applications, all perfectly configured, just like I had it before I wiped the OS, in under 25 minutes.

Not bad for an hour's work.

Some really great Windows 7 Tutorials

If you find yourself with a new Windows 7 PC, and you need some help trying to accomplish a particular task, well, there probably a tut for that (yes, digs at Apple® are gonna happen here).

Over at SevenForums.com, you can find a wide variety of tutorials, from simply things like how to pin a folder to the taskbar, to more complex items, such as moving the location of user folders, run apps with elevated privileges, and more.

Head on over to http://www.sevenforums.com/tutorials/ and learn to your hearts content.

Thursday, December 24, 2009

Hell, World!

Being a programmer, it is almost obligatory to start out any project, especially in a medium / language unfamiliar to you, with a typical simple program called, appropriately, "Hello, world!" As I am rather new to blogging on any sort of regular schedule, let this serve as my obligatory introductory post.

"Hello, world!"

There. That's done. Now, let's get down to basics.

First, there is the "Who the heck are you, anyway?" question. You are more than welcome to read my bio for some info, but the skinny of it is this: I am a nontradtional senior in college majoring in Computer Science *and* Mathematics (dual majors) with eyes on going to grad school for Computational Finance (aka Financial Engineering). I am approaching middle age, having worked in IT for well over a decade, and have decided that a change of scenery was required. (OK, I really decided that I was tired of being single, working contract jobs, and generally having little stability, so I decided to do what I should have done 20 years ago).

My parents are Indian emigrants to the US, but I was born here in the good old US of A, and since I am now over 35, I meet the 2 requirements for running for the office of President of the United States. Whether I actually do this is a completely different thing, but you get the picture.

So, now that you know a little about me, I suppose you have some questions. Well, I ahve some answers - but I am not going to blog them. Rather, I am going to respectfully request that you address them in a private channel - GTalk / email is good.

If you feel the need to get an idea of what types of things I am going to be blogging about, feel free to follow me on Twitter - @nkyadav / http://www.twitter.com/nkyadav

Finally, a clue to the name of my blog: The easiest way to get people around me to say my name, Niraj, is to describe it as a mashup of the words Knee and Ridge. Get it?

I'll see you on twitter. Or GTalk. Or Email. Wherever.