Windows Home Server Restore Error

For the last month or so, I’ve been using my gaming box as my development machine. With that role come tons of background services which, in turn, eat up memory that could otherwise be used to play games. Luckily, I have Windows Home Server and made a backup prior to the computer’s transformation. However, whenever I attempted to restore the machine using the WHS restore disk, I kept getting a non-descriptive error on the “Enter your WHS password” screen. After some digging (sorry, lost the link), I found that WHS doesn’t play nice with some DHCP-enabled routers. As a workaround, I did the following:

  1. Start up the machine to be restored
  2. Work through the WHS restore process as normal
  3. Upon failing, unplug the router
  4. Click the back button in the WHS restore wizard
  5. Continue the restore process

–Adam

Converting From Decimal to Hex in Adobe Flex / ActionScript 3.0

In my most recent Adobe Flex project, I am storing color in the database as a hexadecimal number. However, Flex’s color picker widget (mx:ColorPicker) stores color values in decimal format. Now, I could use PHP’s dechex() function to convert the number, but I’d much rather send the data over in the proper format. After much struggling, I came across the following solution (it’s ridiculously easy):

var decimalNumber:int = 123456;
var someVal:String = decimalNumber.toString(16);

Apparently, passing a value of “16” to the toString function will convert a decimal number to hex. Go figure.

–Adam