Posted by: csaborio | May 18, 2009

Moving to a New Home

Hi, we have moved to a new home.

http://www.scorpiotek.com/blog

We are still ironing out details with the new web site, so things might not be perfect.  Please bear with us until we get things back on track.

Please updated your RSS & bookmarks.

Thanks!

PS: This blog will most likely self-destruct by early June.

Posted by: csaborio | April 21, 2009

I will be a PC ;)

This post has moved to a new location, please visit: http://scorpiotek.com/blog/?p=435

Posted by: csaborio | March 26, 2009

VHD Operations in Windows Server 2008 R2

This post has moved to a new location, please visit: http://scorpiotek.com/blog/?p=428

Posted by: csaborio | March 17, 2009

How to Recover an Orphaned VHD on Hyper-V

This post has moved to a new location, please visit: http://scorpiotek.com/blog/?p=424

All the buzz these days is around Windows 7; but its big brother, Windows Server 2008 R2 is the one that should be stealing all the attention (IMHO).  I’ve been using it for a while, to the point (don’t try this @ home) of using it as my main Hyper-V solution because of a problem I faced with regular Windows Server 2008 a couple of weeks ago.

Today I thought about what would happen if I ever needed to move the images from R2 to 2008 and the obvious question arose: Will it blend work?

I searched a bit on the web and no one has reported on this (it’s a hard search query to formulate).  Anyhow, to save you some time and headaches in the future, I have carried this procedure for you :)  I am right now in the Server Manager console, opening Hyper-V and about to select import and point to the machine I exported from Hyper-V R2.

After pointing it to the folder, it successfully imported the machines with ALL respective snapshots.  When I started the machine it failed to start.  This machine was exported with a saved state, so after deleting the Saved State and trying again, the machine booted up.

After this, I was immediately blue screened by the host, but this is something that had happened before and was the reason why I switched to R2 (no blue screens after upgrading to R2 – ironically, the beta of  R2 is more stable than the release of 2008 on my HP machine).

So in a nutshell, Hyper-V images exported from Windows Server 2008 R2 can be successfully imported to previous versions of Windows Server 2008 given that they do not have saved states.  Hope this helps!

Posted by: csaborio | January 2, 2009

How to Increase the MaxArrayLength in a WCF Component

This post has moved to a new location, please visit: http://scorpiotek.com/blog/?p=393

Posted by: csaborio | December 31, 2008

How to Create Startup Items on Server Core

Things changed a bit from Windows Server 2003 to Windows Server 2008 when it comes to startup items. In W2K8, the place where you want to put items launched at startup is:

C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Startup

This works great, but what about Server Core? The path exists and you can place all you want in there, but guess what? When you log into the server core machine, nothing happens and this is most likely because there is no start menu ;)

The fix to this is to modify your registry in Server Core:

  1. Launch RegEdit by typing regedit at the command prompt
  2. Access the following registry key: HKLM\Software\Microsoft\Windows\CurrentVersion\Run
  3. Right click on the right pane and select New -> String Value
  4. Name the String something relative to what you are launching, for instance Launch Notepad
  5. Double click on the key that you just created to edit the string
  6. Enter the path of the executable, script, etc. that you want launched in this key and click OK
  7. Click OK, logoff and the next time anyone logs in, Notepad (in my case) will be launched – easy as pie!

Sources:

http://forum.sysinternals.com/forum_posts.asp?TID=15330

Posted by: csaborio | December 29, 2008

AppleTV: The Media Center from Hell

I have tried not to rant about anything in this blog, mostly to try and stick with a problem-solving scenario but lately there has been something that has really made me lose my hair – the AppleTV. When I purchased this unit, I was expecting it would change the way I watch TV, and it certainly did. After using the AppleTV for less than 6 months, I am on the verge of never watching anything on TV again, that’s how badly scarred I have been left from this experience.

The OS X version that runs on the system is really slow, and it takes a long time for it to respond to the remote. As of now, when you pair the AppleTV v1.0 with iTunes, it immediately disappears from devices and the connection is lost. This is the most frustrating issue with the AppleTV: no matter if it is paired via wireless or through a wired connection to the network, it will suddenly disappear from your list of devices (I had to switch to Ethernet once the wireless of the AppleTV died on me completely). The ways of getting it back to work usually involve restoring the AppleTV to factory settings, upgrading to version 2.0 and re-pairing the AppleTV – something that can easily take 30 minutes depending on your Internet connection and your patience (trust me, I am not the only one facing these issues)

The AppleTV is an “OK” device at best when it decides it wants to work. The constant disconnects has turned me into the worst fan that it will have, and I want to take this opportunity to urge you to stay AWAY from any incarnation of the AppleTV, even at version 2.0 it is buggy and will only drive you nuts. I really should have bought an XBOX and use that for media, most likely I’ll but a 360 in the future and completely forget about Apple when it comes to watching anything on my TV.

Posted by: csaborio | December 27, 2008

How to Combine PDFs on OS X (for free)

This post has moved to a new location, please visit: http://scorpiotek.com/blog/?p=367

Posted by: csaborio | December 3, 2008

How to load a DLL from an Unamanged Application

Quick post, this is to work as reference for the future as I know I will need this again.

First off, to load a static function from a DLL, what I do is open an SDK window and fire off dumpbin with the /EXPORTS switch to see if the names of the functions are correctly exported (in this case DisplayHelloFromDLL):
10.0.1.26-3.jpg

Ok, now the code. You need a function pointer type as you will invoke this function dynamically:

typedef void (__stdcall *HELLO-DLL)();

Next, load the DLL (I called mine SortLibrary.dll)

HMODULE hMod = LoadLibrary (L”SortLibrary.dll”);

if (NULL == hMod) { printf (“LoadLibrary failed\n”); return 1; }

Then you must find the function in the DLL by using GetProcAddress:

HELLO-DLL pHello = (HELLO-DLL) GetProcAddress (hMod, “DisplayHelloFromDLL”);

if (NULL == pHello) { printf (“GetProcAddress failed\n”); return 1; }

Now, you can call the function:

pHello();

And the world is a much much better place:
10.0.1.26-4.jpg

Older Posts »

Categories