I didn’t realise but as part of the upgrade from Windows Server 2003 to 2008 Microsoft removed the ability to run as different user as a context action. You can still do it from the command line using the command “runas” but on the whole that’s not very useful.
Fortunately Microsoft Sysinternals have a very useful too called ShellRunas.
It can be found here
Friday, 4 December 2009
Tuesday, 1 December 2009
AX reaches for the cloud
Interesting blog by Brandon George about AX ROI and also AX starting to offer some services over the AX Cloud Platform
- Payment Services for Microsoft Dynamics ERP
- Connect for Microsoft Dynamics ERP
Labels:
AX
Saturday, 18 July 2009
Kindle goes bad
Are you kidding? It appears that owning a book on a kindle means that you own it at the publishers discretion and not your own.
I have been following the Kindles progress with great interest and have been patiently waiting for Amazon to introduce it down under to New Zealand and Australia.
However behaviour like this is a deal breaker.
Labels:
Kindle
Sunday, 5 July 2009
Windows 7
Part of my justification for getting a MacBook Pro was the fact that with bootcamp i can install windows. As i am a .NET developer this is kind of dealmaker or dealbreaker :) The process was easy.
1. Create partition in bootcamp
2. Boot to windows and format partition
3. Install windows
4. Drink beer
1. Create partition in bootcamp
2. Boot to windows and format partition
3. Install windows
4. Drink beer
Labels:
MacBook Pro,
Windows 7
MacBook Pro
So after much debating and googling i finally bought myself a new laptop. Its been on the cards for quite a while and i did a lot of looking around.
I was quite drawn to the macbook pros when i first saw them but the cost kept put me off. I had a look at the dell XPS range, the IBM thinkpads and a quick nosy at the sony vios but i just kept coming back to the macs. The design, the build quality and the fact i could maybe play at some iPhone development were all just too tempting.
So i ordered one about two weeks ago and it arrived last week. Aside from the fact that the numpty TNT courier dropped it about 10 feet in front of me when he was trying to put in on the receptionists desk -it survived the fall- i have been impressed.
The unboxing was treat. I thought that when i open my iPhone that that was an awesome experience, however it pales into comparison when opening a MacBook Pro, the whole experience puts you in a delightful frame of mind and then you simply open the aluminium lid and enjoy.
I have been using the laptop for about a week now and so far it has been a dream. Easily the most satisfactory piece of hardware i have ever owned
I was quite drawn to the macbook pros when i first saw them but the cost kept put me off. I had a look at the dell XPS range, the IBM thinkpads and a quick nosy at the sony vios but i just kept coming back to the macs. The design, the build quality and the fact i could maybe play at some iPhone development were all just too tempting.
So i ordered one about two weeks ago and it arrived last week. Aside from the fact that the numpty TNT courier dropped it about 10 feet in front of me when he was trying to put in on the receptionists desk -it survived the fall- i have been impressed.
The unboxing was treat. I thought that when i open my iPhone that that was an awesome experience, however it pales into comparison when opening a MacBook Pro, the whole experience puts you in a delightful frame of mind and then you simply open the aluminium lid and enjoy.
I have been using the laptop for about a week now and so far it has been a dream. Easily the most satisfactory piece of hardware i have ever owned
Labels:
MacBook Pro
Thursday, 28 May 2009
JQuery Ribbon Manager
Saw this on a Scott Hanselman tweet. Some nice JQuery candy
http://jqueryribbon.codeplex.com/
http://jqueryribbon.codeplex.com/
Labels:
JQuery
Thursday, 14 May 2009
Booting from a VHD with Windows Server 2008 R2
*Updated 11 June 2010* - fixed some incorrect text when attaching the VHD and added a gotcha when building the VHD in a drive other than your primary c: drive
To skip straight to the technical setup click here
I have been developing on virtual machines for quite some time now. First with Virtual PC/Server and then a little more recently with HyperV and although there are many well documented major benefits throughout the web to this approach to development, there is a downside
*There is a small amount (~120MB) of RAM that is set aside to run the VHD that the VHD cannot see.
For me the decision to go down this path was a no brainer. My current machine is no slouch -duel core 2.83GHz, 4GB RAM and running windows server 2008 with no themes installed and desktop experience turned off . However when I was using HyperV to run my development VM, the host OS was only running Outlook and my browsers and I was having to set aside 1.5GB for the base OS when i was creating my VMs. Think about that for a second… 1.5GB to run Outlook, IE and Chrome/Firefox! While this in of itself is not necessarily a bad thing, when you combine this with my development VM setup (2.5GB RAM ) which is running SQL Server 2008, SQL Reporting Services, Navision 2009 and Visual Studio 2008 (with ReSharper obviously) running a WinForms solution of some 125915 lines of code (not including comments, region tags or curly braces) then you can probably start to see my pain point. So short of applying some dilithium crystals to my VM i needed a way to realise all the processing power on my machine.
There are two ways to set this up you can upgrade from a previous version or run through a clean install which also happens to be the MS recommended approach.
I choose the upgrade path and went from Server 2008 to Server 2008 RC. To do this upgrade requires 15GB of HD space and if you are running HyperV you have to disable the role as the upgrade will not proceed with it enabled.
I ran through the upgrade process and it took about 80 minutes. Much longer than the 20 minute install but worth it to keep my system intact.
Once the upgrade/install is complete reboot from the Server2008R2/Windows7 disk and when you get to your first splash screen (for me it was the select keyboard configuration) press SHIFT+F10 to launch a command window
*Important* Be aware that if you are going to build your file at a location other than the c: drive then the letters might not match up. I assume this has something to do with reserved letters not being allocated at this point and the partitions just get allocated when they appear. Hence what might be f:\ for you might be e:\ at this point.
To skip straight to the technical setup click here
I have been developing on virtual machines for quite some time now. First with Virtual PC/Server and then a little more recently with HyperV and although there are many well documented major benefits throughout the web to this approach to development, there is a downside
-
You have to share processor power and RAM between two Operating Systems
-
You get no decent native graphics hardware support so no luck with duel monitors (i do realise you could use /span in remote desktop but it is a pain to configure the setup and if anything crashes or you need to reboot…. you get to start all over again)
-
No native graphics support also rules out developing for WPF or XNA in an meaningful way
*There is a small amount (~120MB) of RAM that is set aside to run the VHD that the VHD cannot see.
For me the decision to go down this path was a no brainer. My current machine is no slouch -duel core 2.83GHz, 4GB RAM and running windows server 2008 with no themes installed and desktop experience turned off . However when I was using HyperV to run my development VM, the host OS was only running Outlook and my browsers and I was having to set aside 1.5GB for the base OS when i was creating my VMs. Think about that for a second… 1.5GB to run Outlook, IE and Chrome/Firefox! While this in of itself is not necessarily a bad thing, when you combine this with my development VM setup (2.5GB RAM ) which is running SQL Server 2008, SQL Reporting Services, Navision 2009 and Visual Studio 2008 (with ReSharper obviously) running a WinForms solution of some 125915 lines of code (not including comments, region tags or curly braces) then you can probably start to see my pain point. So short of applying some dilithium crystals to my VM i needed a way to realise all the processing power on my machine.
*The technical stuff*
To boot from a VHD requires either Server2008 R2 (RC) or Windows 7 (RC)There are two ways to set this up you can upgrade from a previous version or run through a clean install which also happens to be the MS recommended approach.
I choose the upgrade path and went from Server 2008 to Server 2008 RC. To do this upgrade requires 15GB of HD space and if you are running HyperV you have to disable the role as the upgrade will not proceed with it enabled.
I ran through the upgrade process and it took about 80 minutes. Much longer than the 20 minute install but worth it to keep my system intact.
Once the upgrade/install is complete reboot from the Server2008R2/Windows7 disk and when you get to your first splash screen (for me it was the select keyboard configuration) press SHIFT+F10 to launch a command window
*Important* Be aware that if you are going to build your file at a location other than the c: drive then the letters might not match up. I assume this has something to do with reserved letters not being allocated at this point and the partitions just get allocated when they appear. Hence what might be f:\ for you might be e:\ at this point.
-
type diskpart at the promt. Then
-
type create vdisk file c:\Server2008R2vhd.vhd type=fixed maximum=30000
-
You can call your file whatever you like I called mine Server2008R2vhd.vhd. For the size of the VHD, I choose 30GB (30000) which is huge for a VM but really whatever suits you.
-
type select vdisk file=c:\Server2008R2vhd.vhd (selects the VHD)
-
type attach vdisk (this used to be called 'surface'). Essentially it mounts the VHD as a visible partition
-
we're done. Type exit and then exit again
-
Continue on with the installation configuration i.e. pick an OS version etc. until you get to the point where you choose your partition to install to.
-
Select the newly added partition which should be the same size as you added (fingers crossed) and hit go.
-
Sit back, configure as required and enjoy.
-
You cannot use an existing VHD i.e. a backup, HyperV, Virtual Server or PC versions. It must be a brand spanking new clean version. There probably is a nice workaround for modifying an existing VHD for this purpose. If anyone knows what to do then please let me know :)
-
The VHD was added as boot menu option with the exact same name as my host OS (they both said Windows Server 2008 R2.) The top option is the newly added VHD. Which is useful as the machine needs to reboot several times as part of the install process. You can rename this options using BCDEdit (see below)
-
I was able to rename and remove my first few unsuccessful attempts through BCDEdit
-
typing bcdedit gives a list of the all profiles for booting
-
bcdedit /set {ntldr} description "My Awesome boot VHD" with {ntldr} being the identifier of the profile or {current} or {default}
-
you can delete by typing bcdedit /delete {GUID} /cleanup
Monday, 11 May 2009
Staying home when sick
I saw this very interesting article on www.stuff.co.nz some months back and have been meaning to post it as it it struck a chord.
Bottom line. If you are feeling sick.. stay home!! End of story
Bottom line. If you are feeling sick.. stay home!! End of story
Labels:
Random
Friday, 3 April 2009
Decimal versus Double
I was trying to remember the difference between a decimal and a double and came upon this handy little reference on MSDN
Essentially decimals have a far greater level of precision but doubles have a much larger range. However in most case when dealing with UI why would you ever need the range of a double?
My ten cents anyway
Mind you, when you save it to the database it shrinks it down to whatever your DBA thought was appropriate anyway :)
Essentially decimals have a far greater level of precision but doubles have a much larger range. However in most case when dealing with UI why would you ever need the range of a double?
My ten cents anyway
Mind you, when you save it to the database it shrinks it down to whatever your DBA thought was appropriate anyway :)
Thursday, 2 April 2009
Sql Express 2008 - saving changes
Recently I installed SQL Express 2008 on my home machine and on my first outing with it I received this error
Saving changes is not permitted. The changes you have made require the following tables to be dropped and re-created. You have either made changes to a table that can't be re-created or enabled the option Prevent saving changes that require the table to be re-created.
It turns out that the ability to edit a table that will result in the table being recreated in SQL Server Express 2008 is turned off by default. Awesome!!!
To enable this you need to go the the menu
Tools --> Options --> Designers
and then Table and Database Designers. Uncheck the checkbox marked "Prevent saving changes that require table re-creation"

Problem solved!
Saving changes is not permitted. The changes you have made require the following tables to be dropped and re-created. You have either made changes to a table that can't be re-created or enabled the option Prevent saving changes that require the table to be re-created.
It turns out that the ability to edit a table that will result in the table being recreated in SQL Server Express 2008 is turned off by default. Awesome!!!
To enable this you need to go the the menu
Tools --> Options --> Designers
and then Table and Database Designers. Uncheck the checkbox marked "Prevent saving changes that require table re-creation"

Problem solved!
Labels:
SQL,
Sql 2008 Express
Subscribe to:
Posts (Atom)