shahine.com/omar/

homepage | Send mail to the author(s) contact

yet another Microsoft blogger

# Saturday, December 30, 2006

Amazon S3 programs

What are people using to backup to Amazon S3? I've tried a number of tools and they all fall short for one reason or another.

The basic problem with Amazon S3 is this:

  1. They do not support rename/moves (you must do a delete/copy)
  2. They write the current upload time as the modified time. This breaks programs that rely on date/time to detect changes.

Jungle Disk

Great app, it allows you to map a drive letter to your Amazon S3 account. It has built in backup, however, it does not remove things in the destination that no longer exist in the source. I personally want my backup to be a mirror of my source because I tend to organize/move files around a lot.

Jungle Disk + SyncBackSE

This combo proved to be horrible because SyncBackSE relies on file date/time modifications to detect changes. The end result is that lots of unchanged files get sync' ed again. To make matters worse, when SyncBackSE copies a file to a remote drive, it will upload a temp file and then rename it. Well since Amazon S3 does not support rename, this results in two file uploads by Jungle Disk (and wastes time and bandwidth).

SyncBackSE has an option to use file hashes to detect changes, but this is far slower and requires that each file be downloaded to get the hash. No good for remote backup where you are paying for the bandwidth.

Jungle Disk + SyncToy

If you configure SyncToy to "echo" files from your local machine to Amazon using Jungle Drive you get what appears to be perfection. However, I have noticed that renames and deletes on the source are not mirrored on the destination. I suspect this has to do with either a bug in Jungle Disk or some issue with amazon's lack of support for rename.

Furthermore, SyncToy does not delete directories on the destination using echo.

S3 Backup

I'm currently trying this out, but it lacks any backup scheduling support. I also do not know if it will delete files on the destination that are no longer on the source. I Will find out soon enough I guess.

update: looks like this scenerio is possible, but the option to delete files on the destination that are no longer on the source is greyed out in the current beta. hmm.

Anyone else have any tips here?

Posted Saturday, December 30, 2006    Permalink    Comments [8]  View blog reactions

 

Microsoft releases Remote Desktop Connection 6.0

My favorite feature of RDC 6.0 is that when connecting to a Vista machine, ClearType is supported. Seriously, I hated to connect to other computers because I'm so used to ClearType and fonts are so darned ugly without it... not to mention that the new Office 2007 and Vista fonts are ClearType hinted and look terrible if ClearType is disabled. 

As for Network Level Authentication, I can't get that to work at all (I still have to auth).

The last cool feature is I can connect to my PC at work without having to VPN to the office. This is done using my smartcard.

Source: Microsoft releases Remote Desktop Connection 6.0

Posted Saturday, December 30, 2006    Permalink    Comments [0]  View blog reactions

 

Roth 401k?

If the Roth 401K is an option for you, and you are not contributing to it, or are wondering if you should, I found a fantastic article by Vanguard that goes into great detail about this 401K plan.

Basically, what it amounts to is this. Do you think you will be in a higher tax bracket in retirement than you are now? Remember that money withdrawn from a Roth 401 will actually help to reduce your taxable income in retirement assuming you will have other forms of taxable income (normal 401k, pension etc). Also of note is that any corporate matching donations are still taxed for either type of plan.

One interesting wrinkle is if you are paying the AMT now. If you are that puts you in a potentially higher tax bracket now and the additional amount due for the AMT may not be reduced much relative to your normal tax liability with a pre-tax 401k. Something to think about. Because I live in California, have high property taxes + state income taxes, I'm pretty much going to be paying AMT till congress changes the tax law.

Anyway, read the article and decide for yourself. I think next year I'll be doing 50/50 traditional/roth.

Posted Saturday, December 30, 2006    Permalink    Comments [0]  View blog reactions

 

# Friday, December 29, 2006

Put your PC to sleep from the command line

I was looking for a way to put my PC to sleep from the command line (and found one). Why? Cause my new keyboard (the Microsoft Natural Ergo Keyboard 4000) doesn't have a sleep button and I wanted to set the 5th customized key to do that but all it can do is launch an application. So I set it to Run:

rundll32 powrprof.dll,SetSuspendState

and Voila.

Does anyone know of a similar command that will invoke the User Screen under Fast User Switching? The following command simply locks the computer. It's then an extra step to get to the user selection screen on vista. The reason I ask is that it's to much of a pain to go to the vista start menu to switch users.

rundll32.exe user32.dll,LockWorkStation

update: well that was fast, an anonymous commenter let me know that running tsdiscon.exe will switch users and bring you back to the logon screen. Acording to Windows this command line app "Disconnects a terminal session.".

Posted Saturday, December 30, 2006    Permalink    Comments [10]  View blog reactions

 

Going to a website with control-enter

Jeff Atwood inspired me to write this. It's a parody of this Logging in with the Keyboard Post and I've tried to keep it word for word, just on a different topic. Hope you don't mind Jeff!

The standard address bar is in every browser window.

As much as we see the address bar every day, you'd think we would have mastered them by now. Unfortunately, we haven't. Here's what I've observed users doing, over and over again:

  1. Launch IE
  2. Click the mouse to the address bar field
  3. Type "www."
  4. Type "google"
  5. Type ".com"

Every time I watch someone do this, a little part of me dies inside. And I see it all the time.

I'm not just talking about casual users like our parents. I'm talking about our fellow software developers, and other users who work with the computer for most of the day. People who really should know better.

What kills me about this is all the needless, painful keystrokes. You've needlessly entered "www." and ".com" millions of times-- just add a little control-Enter to the mix! I'm no keyboard Nazi. All I want is to save users a few precious seconds of their day as they slog through the endless web pages during their work day. And it's so darn easy:

  1. Launch IE
  2. Click the mouse to the address bar field (or better yet, Type Alt-D)
  3. Type "google"
  4. Type control-enter

See? Wasn't that nice? Now it's your turn to play Keyboard Appleseed and spread the word so your fellow coworkers can spend less time logging in-- and more time getting actual work done.

Sidenote: Mac IE was much smarter in this respect. All you had to do was type "google" enter and it did the rest. No big deal you say? Well you could type "shahine/omar" and it would take you to www.shahine.com/omar. If you try that in Win IE you get http://www.shahine/omar.com. Not smart.

Posted Friday, December 29, 2006    Permalink    Comments [15]  View blog reactions

 

# Thursday, December 28, 2006

My Documents in Vista

 

Funny, Raymond Chen linked to my post on "My" Documents from earlier this year.

I'm still pissed about this, especially at Adobe cause it still insists on placing it's temporary Updater downloads in My Documents folder. The programmer who did that should be sent to Programmer Jail™.

Anyway, the world is a bit better on Vista. Actually I really like how the whole Documents things works.

My Moniker

First of all the "My" moniker  has been dropped. Yay! However, old applications still don't know this yet and still litter your folder with the My namespace. Luckily it's easy to spot the offenders now.

Pictures, Videos, Music

Second, all the "My Pictures", "My Videos", "My Music" folders now live in your User folder, not your Documents folder. Great.

User folder

There is a new User folder that you can get to from your Start menu (the topmost item in the start menu). It's named after your user name.

 

When you select Omar you get the following items:

  • Contacts (\Users\Omar\Contacts)
  • Documents (\Users\Omar\Documents)
  • Favorites (\Users\Omar\Favorites)
  • Music (\Users\Omar\Music )
  • Saved Games (\Users\Omar\Saved Games)
  • Desktop (\Users\Omar\Desktop)
  • Downloads (\Users\Omar\Downloads)
  • Links (\Users\Omar\Links)
  • Pictures (\Users\Omar\Pictures)
  • Searches (\Users\Omar\Searches)
  • Videos (\Users\Omar\Videos)

as well as some hidden folders like

  • AppData
  • a few others.

This is great as now there is a user friendly place to get to stuff that's not "Documents" but stuff you want access to. This also greatly improves backing up the Documents folder as you won't accidentally include multi gigabyte folders like Saved Games, Pictures and Music (you can back those up using separate schedules and schemes).

Another side benefit to the Users folder is that what used to be in:

\Documents and Settings\<username>

is now in:

\Users\<username>

this is much shorter for command line users, and lacks a space so you don't need to place it in quotes.

BTW - I'm pretty sure this is all modeled after Unix, and now Mac OS X.

Also nice is that all application data now lives in AppData and from there you can find the Local and Roaming folders that are clear on their intent and use. In XP you had \Local Settings\Application data and \Application Data and I always forgot which one was which and when to use one vs the other.

Public

Finally, the last great improvement is that there is a notion of "Public" now which replaces "Shared Documents", "Shared Videos" etc. For multi user computers, this is great as you have a real user to place all your stuff in. This is also true for shortcuts and settings that were previously mapped to the "Documents and Settings\All Users".

There is also another great feature for the multi user PC that existed in Windows XP but was not made available in the GUI, and that's Junction Points.

Junction Points, or how to share files on your family PC

Why should you care about Junction Points? Well let me illustrate something.

Say you are sharing your computer with your spouse. You have your pictures, music and documents that you share. This may include an iTunes library etc. You don't want each user to have their own Pictures and Music because this is a "family pc". Well, in XP you had the good old Shared folders, but if you didn't know to use them then they never got used. To make matters worse, Photo and Music programs still insisted on defaulting to the individual user folders. This meant that now you had photos and music in two places. Not good.

Well, in Vista, there is a really easy way to say "Point folder x at folder y permanently".

So for example:

\Users\omar\Pictures and \Users\lora\Pictures can point to \Uses\Public\Pictures.

This means that files can no longer be stored in the individual folders for each user, but instead all file system access to those folders is automatically redirected to the Public folder.

How do you do this?

Simple:

  1. Right click on any folder (try the Pictures folder)
  2. Select Properties
  3. Click the Location tab.
  4. Click the Move button
  5. Select the new location (try \Users\Public\Pictures)
  6. Vista will ask you if you want to move the current contents of your folder to the new location. Say yes or no depending on what you want to do.

Now go to any application and click the Pictures shortcut. Cool eh?

Now repeat this process for each user on your machine.

Another sweet Vista feature.

Hopefully Application Developers will take advantage of this new organization.

Posted Friday, December 29, 2006    Permalink    Comments [7]  View blog reactions

 

Recycle Bin Hack

I love life hacks like this. Mike Torres and I were emailing back and forth today about our backup strategies, and recent discovery of JungleDisk (which is an excellent program) and cheap storage via Amazon S3 when the discussion spiraled into how to deal with "journaling" changes that a daily backup will not address (if you delete a file, then the backup no longer has the tombstoned file etc).

Anyway, Mike told me that he hid his Recycle Bin and basically has ignored it. You see the problem with the Recycle Bin is that since the beginning of time (since I used a Mac) I used to empty the thing a few times a day. Why is that? In fact, my father suffers from this same problem. He cannot stand seeing the Recycle Bin full.

Much like the trash cans in our lives, they are meant to be emptied. But, if you think about it there is no good reason to empty it these days. In fact, if you let Windows do its thing, the Recycle Bin will just sit there and get bigger and bigger till it reaches it's allotted size, then it will automatically purge itself. You can specify how large it's allowed to get:

But in order to realize this benefit, you should hide your Recycle Bin. I just did this  on all my machines and I feel better already.

To disable the Recycle Bin do the following:

Vista

  • Select Recycle Bin
  • Press the Delete key

Windows XP

Method 1

  • Start->Run
  • Type gpedit.msc
  • Go to User Configuration -> Administrative Templates
  • Select Desktop
  • Double Click Remove Recycle Bin icon from desktop
  • Click Enabled
  • Click OK
  • Logoff/Logon to see your changes

Method 2

BTW, my backup strategy is totally influx now. I'm using Carbonite, Amazon S3 (via JungleDisk), a local server and FolderShare. The things I have to backup are a bit complex (my stuff, shared stuff, my wife's stuff etc). When things settle down I'll blog about it cause I hope to have a system that can be cloned into a LifeHack. Right now I have 5 computers between work/home and they all have data I want everywhere and want backed up... not easy.

Posted Friday, December 29, 2006    Permalink    Comments [6]  View blog reactions

 

# Wednesday, December 27, 2006

Ed Bott on Shuttle PC

Ed Bott detailed his recent experience with his Shuttle PC. I had a similar problem a while back except, this happened right away, and I was able to return it to Fry's. I am not as patient as Ed, and would not have gone through all that before giving up.

Here is a great quote from my old post:

"Never buy a Shuttle PC. They are buggy, the BIOS releases are buggy, and if you read the release notes for the BIOS you’d understand. If you even read the forums for but a brief moment you’d come to the same conclusion."

Oh, and I will never buy a Shuttle PC. If you are building a PC yourself, you are better off getting a small form factor case (like the SilverStone SG01) taht can take a Mini-ATX motherboard. You will have a lot of selection to chose from any all standard components.

Posted Thursday, December 28, 2006    Permalink    Comments [2]  View blog reactions

 

My tiny USB Keychain Broke

My Tiny USB Keychain (the OCZ Mini-Kart) finally died the other day. I had bypassed the little thread loop to attach it to my keychain and finally the plastic gave way and now I can't keep it on my keychain.

Well, lo and behold, Sony produced an even smaller USB Keychain. The 2GB Micro Vault Tiny is half the size (really), comes with a protective pouch for your keychain, and is Vista ReadyBoost compatible. Heck, I got 2 of them... a 1GB model to use as a ReadyBoost Drive for my iMac and a 2GB model for my keychain.

For a great site compiling all the compatibility issues with lots of USB drives and Vista ReadyBoost go here.

Posted Thursday, December 28, 2006    Permalink    Comments [0]  View blog reactions

 

# Sunday, December 24, 2006

Sarah says "Happy Holidays"

Posted Monday, December 25, 2006    Permalink    Comments [0]  View blog reactions

 

Digital Picture Frame

Philips 8-Inch Digital Picture Frame (Milk)For the longest time I've wanted to get a digital picture frame. Well, they are finally big enough and affordable enough that I took the plunge and purchased one. Now that we have a little one, I wanted something at work that I can keep on my desk at work and keep the pictures fresh. Right now I have a bunch of ancient analog pictures that are really dusty.

So, with that in mind I was in Costco the other day and saw the Digital Spectrum NV700 for like $120. Since I was thinking of getting the Philips 9 inch frame which is twice that price I jumped at the chance to get a frame almost as big for cheaper. Well big mistake. That thing is a piece of junk. For one thing, it's got some bizarre resolution (I could not actually figure out the resolution from a bunch of test images I tried) and it will always scale your images using it's cheap horrible scaler which will make any good looking picture look distorted. Their web site claims the resolution is 480 x 234 pixels. Just so you know how weird that looks, most digital cameras shoot pictures in 4:3 or 3:2 ratio of horizontal to vertical pixels. Consumer point and shoot are generally are 4:3 while SLRs are 3:2.

Here are some examples of what that translates to.

 

The Digital Spectrum would be effectively 2:1

Who wants to look a a frame that makes people either look extra skinny or extra fat?

Anyway, back to Costco it went (within 2 hours). Next I took advantage of our Microsoft Employee Purchase Discount at Philips and got the frame I should have gotten in the first place. The quality of the Philips frame is amazing, and it also has a built in battery allowing you to unplug it from it's location, move it to your PC so you can upload some new pics over USB. The viewing angle is great and I'm really pleased with the frame.

The Philips frame comes in two sizes, 9 inch and 7 inch. Each is available in a number of finishes. I got the 9 inch milk frame. Note that Amazon and Philips are using different metrics to size the frame. I have no idea what's going on there. The Native Resolution of the Philips 9 inch or 8 inch (depending on who you believe) is 720 x 480 which is good old 3:2 (thanks for pointing out my mistake Tommy).

Posted Sunday, December 24, 2006    Permalink    Comments [5]  View blog reactions

 

# Saturday, December 23, 2006

I want... this car.

Posted Saturday, December 23, 2006    Permalink    Comments [2]  View blog reactions

 

# Thursday, December 21, 2006

The Vista Feature that saved my butt

I have Vista Ultimate running at home on our family iMac. If I were a consumer I would make sure this was the version of Vista my machine was running. Why? Because it has a feature called "volume shadow copy". Here is the description from a Microsoft site:

Have you ever accidentally saved over a file you were working on? Accidental file deletion or modification is a common cause of data loss. Windows Vista includes another useful innovation to help you protect your data: Previous Versions. This feature automatically creates point-in-time copies of files as you work, so you can quickly and easily retrieve versions of a document you may have accidentally deleted.

Last week, I dumped a bunch of pictures and videos of our daughter Sarah from my wife's camera to our iMac. Later that week I decided to sync all our 11,000 photos from my home office machine to our iMac so my wife could tag them etc. Well in doing so I overwrote the contents of the Users\Public\Pictures folder where I had previously copied the pictures of Sarah. These were irreplaceable photos and videos of Sarah's first days and my wife would have killed me had I not remembered reading about the "Previous Versions" feature in Vista.

So what did I do? Well after I was done panicking, I right clicked on the Pictures folder, selected the Previous Versions tab, selected the Pictures folder version from the day before, clicked Open and copied the folder of pictures and videos over. I then copied that folder back to my home office machine to be automatically backed up to Carbonite. Eventually I will configure SyncToy to keep the two computers in sync or get a Home NAS server, but for now, disaster was averted.

I don't know about you, but this feature alone was worth the upgrade. If you are a consumer, this feature is only available in Vista Ultimate. It's also found in Business and Enterprise Editions.

Yeah, Ultimate is more expensive than Home Premium or the other editions, but it's Ultimate for a reason :-).

Posted Friday, December 22, 2006    Permalink    Comments [2]  View blog reactions

 

Five Things People Don't Know About Me

Uh, looks like I was tagged to write a post about 5 things people don't know about me... I don't even know what a "meme" is. Why do I have to write it? Because Sanaz tagged me. Oh, and I almost fell out of my chair when I read Mike's #3. I am guilty of getting rid of a gadget or two because I scratched it... I'm also borderline OCD, but not nearly as bad as Mike... Geez man, that's creepy... but I aspire to have OCD like yours...

  1. I can't spell without a spell checker (well some people know about that). With a spell checker I use the wrong words (like homonyms). This is a direct result of #2.
  2. My first language was French. My second language was Arabic. I learned English when I had to attend Nursery School, a side effect of that was I forgot my French and managed to average a B- for 7 years in school. I hate languages, except computer languages (cause they have rules allowing them to be compiled unlike spoken languages that have more exceptions than rules).
  3. I was pre-med in college, applied to like 20 medical schools and never got in. I was devastated as that's what I spent a good chunk of my life at that point trying to do, but it was also the best thing in the world that ever happened to me. I would have been a terrible doctor. Instead I got lucky because Dick hired me pretty much on the spot at Macworld... but only after I asked my mother if it was Ok for me to go work at Microsoft. Anyway, my wife turned out to be an amazing Doctor and I'm much happier we're not both Doctors.
  4. I have a filling in almost every tooth in my mouth. I spent an ungodly number of hours in the dentist office and an ungodly amount of money for that privilege. What you don't know is that for every cavity you have, you're chances of later having to replace that filling, or worse, get a crown or inlay is pretty high. Oh, and these things don't last forever. A result of my misery and the quickly disappearing money I was spending on this problem is that I started to floss on Jan 1st 3 years ago and have yet to get another cavity. My only problems have been issues related to my existing cavities or chipped teeth (as a result of the fillings in my mouth). I only wished I started flossing a decade ago.
  5. When I was in grade school I wanted a job one summer. I applied for a job picking strawberries in a field. I wasn't paid by the hour, and in fact this wasn't a legitimate or legal job. I was paid by how many strawberries I picked. Well, I sucked at picking strawberries, and I made half of minimum wage cause I was so slow. One morning I woke up and it was drizzling. I called my "boss" and said it's raining and I'm not coming to work. He fired me. It's the only time I've ever been fired :-). I used my money to go see a movie and buy some popcorn.

Lets see. I'll tag Trina, Reeves, Mike, Aditya and Dan.

Posted Friday, December 22, 2006    Permalink    Comments [4]  View blog reactions

 

# Tuesday, December 19, 2006

Inline Search Plugin Updated

The awesome inline search plugin that I blogged about a while back received some updates and has an impressive list of changes. I find that the plugin now works much better in IE 7 and fully behaves under tabbed mode.

Posted Tuesday, December 19, 2006    Permalink    Comments [0]  View blog reactions