VS2012 Express for Desktop

I’ve been waiting for this for a while so I was glad when they finally released this. Now for some initial feedback.

First off, the download was reasonable – size and speed wise. The installation was, lets just say ok – as I had to reboot since it had to update some libraries that were is ‘use’ at the time. Registration was also not too bad – since I have an old existing Hotmail/Live account where more of the details were already populated. Running it for the first time is where the shock comes in… it is as ugly as hell (reminds me death, all grey and boring). Unfortunately the same would apply to any of the other Express and even full versions of VS2012.

VS2012 Express For Desktop development

Functionality wise it provides just the very basics – not that you can expect anything more. Since I haven’t installed the ‘full’ express version I cannot comment on any other functionality that version might have. Anyway, The only templates worth mentioning is the Windows Forms, WPF and Console ones. Again, one cannot expect anything more of this release. Interestingly enough, when creating a new project the framework version cannot be changed on the ‘create project’ dialog screen. You can only change this ‘after’ the project has already been created.

One nice thing is that you can still create custom toolbars with ‘external’ commands – I use it to run a source backup tool I created some time ago. Another thing to remember is that this tool can be installed in Windows 7, unlike the full Express version that can ONLY be installed on Windows 8. The Web express version can also be installed on 7 (plus the TFS Express version).

If you excuse the way it looks (wearing shades to protect your eyes) then this tool is not that bad… Just wish they allowed old fashioned ‘themes’ to change the look and feel of the entire editor. Ah well, it is an ‘Express’ product… Fortunately you can import your VS 2010 color and font settings to get all your customizations back (even though it does moan about a whole bunch of settings that are not applicable to this edition which you can ignore)

In order to try it out you can follow this link.

Update:
If you like to change the overall theme and don’t like the built-in Light or Dark there are some more options if you look at this blog entry.

Getting list of disabled users in AD

Having to quickly help some colleagues find a list of all the currently disabled users on a domain I created a quick Powershell script (with some help from Google of course).

I suspect other people might also like to know how to do it so here is a copy of the script.

This script is easily modifiable to search for all kind of other ‘stuff’ in AD as well.

A little perspective

I saw a picture of solar flare this morning comparing it to the size of the Earth. Years ago as a kid I used some old mainframe stream paper to ‘draw’ the solar system at scale (1/1 000 000 000 000). That really puts the whole solar system into perspective (about 9 meters long to fit Pluto on furthest point). The following things could/can be observed using stuff at this ‘scale’.

Scale 1:1 000 000 000 000
Object Description
The Sun A little ball of 1 millimeter in diameter
Earth would be 15 centimeters away from the sun (Moon about 0.4mm away from Earth)
Jupiter about 0.8 meters away (and 0.15mm in diameter)
Saturn about 1.3 meters (rings about 0.2mm in diameter)
Neptune about 4.5 meters
Pluto around 6 meters (average, varies from 4.4m to about 7.3m)
Voyager 1 is about 18 meters away
1 light year is about 11 kilometers away (10.8km)
Proxima Centauri (The closest star) would be about 45 kilometers away!
Sirius (The brightest star) about 93 kilometers away!
Betelgeuse about 6940 kilometers away! (diameter roughly 1 meter estimate)
Alnilam (Epsilon Orionis, middle star of the Orion belt) about 14 000 kilometers away
The largest star known (estimated) has a diameter of about 1.5 meters
Milky way galaxy diameter about 1 000 000 kilometers!
Andromeda galaxy about 24 000 000 kilometers away!!
Speed of light about 1 meter per hour!!!

Kinda put things into perspective – especially the speed of light
Earth compared to Sun flare

Image Credit: NASA/GSFC/SDO

Enabling .Net 4.0 on Web server

Not being an active ‘web’ developer for some time I stumble across an issue to make a small .Net 4.0 web application to work on a new Windows 2008 R2 server. After copying the application files to the local server (inetpub) and even creating the application in IIS (with no warnings or indications of a problem) I tried to test the application from the local machine.

That’s when I got the ‘HTTP Error 404.2’ error with further details ‘The page you are requesting cannot be served because of the ISAPI and CGI Restriction list settings on the Web server.’. As usual I did not read the whole page again and went on to find an answer on Google which did not really help too much – but it did point me in the right direction. Eventually I went back and read the full error/warning page that actually list the solution…

The solution is to enable .Net 4.0 for IIS (this is a 64-bit machine) doing the following:

  1. Open the IIS Manager and navigate to the server level.
  2. In the Features view, double-click ISAPI and CGI Restrictions to verify that the Web service extension is set to Allowed.

At least next time I will know better (or find it quicker) 😉

One small step

With the passing of ‘Neil Armstrong’ I can’t help thinking that we must give more attention things that really make an [positive] impact on us all – especially the exploration of outer space.

As a small tribute to Mr Armstrong I always thought of him as a true gentleman, an example of what a true hero should be. He never let ‘fame’ get to him and did not exploit his position to achieve more than he should – but he did what had to be done and nothing less.

The famous quote ‘One small step for [a] man, one giant leap for mankind’ is just the beginning. It should be continued with something like “which is only the start of the next [small] step towards infinity!”. Both ‘Buzz’es’ would have been proud of that (Aldrin and Lightyear) 😉

I really hope we [as humanity] would set foot again on the moon and will continue to the planets and eventually the stars. Sadly, as things look now we are still to caught up with out petty little differences (as always) and too jealous of each other to allow good to happen to even our ‘own’ neighbor, never mind the possible rivals somewhere. Ironically, the only reason we [they] reached the moon was for a political statement which in the end meant nothing as it wasn’t continued.

Going into space isn’t easy. But it is worth it. If only we can realize that ‘space’ can also be a solution to a lot of our ‘imaginative’ problems here on Earth. I still believe one of our most fundamental problems is that there are only ‘so much’ Earth’ we can share and having too much pressure on its resources is what is driving most [if not all] of our struggles. If we can only learn how to live in space [since there is so much of it] it surely will help.

RIP Mr Armstrong.

Windows 8 – Down with Metro

No, I haven’t managed to get the latest build or RTM of it yet and neither am I going to rush out to get it. I played with the Developer preview and then again with the Consumer preview plus I’ve been following online all the ‘progress’ (or lack thereof) and thoughts of other people and reviewers.

In recent news two ‘Gaming’ companies gave Windows 8 a thumb down for their own reasons. They probably also have alternative motives which I don’t even know about right now – and don’t care about. My ‘beef’ with it is more on the productivity and corporate fronts.

Let me try to explain a bit more.

The vast majority of ‘users’ I know use the desktop in Windows like a… {drumroll} real desktop with Icons cluttered all over the show. Some may say that is untidy and unproductive but most people (me included I admit) ‘know’ exactly where I left stuff in that mess (yes and my wife also hates that… hehe ). It all forms part of my thought or work processes as I may not be done with something yet and want to go on or repeat that action or process at some time again. Sounds familiar? That is why I create custom shortcuts or leave some files on my desktop. Lots, if not the majority of users do that.

Now, Retro (cough I mean… Metro) was probably (in part) made to help clean up that messy practice – but here is the problem – just like when my wife (or maid or whoever) go an clean or pack away stuff that I left there where I know about it, Microsoft went and try to ‘fix’ something that ain’t broken. I absolutely hate this! If they have to ‘fix’ Metro to do this it will become just another ‘desktop’, duhhh.

Further, Metro looks more like a toddler interface meant for babies or (cough) idiots. Yeh, I know, it is intended for the more ‘mobile’ space like tablets but I’m using a ‘desktop’ computer so why must I also be forced feed this ugly interface? I admit, it has its advantages but I can happily live without most of them for my purposes.

The ideal would simply have been that we still had the option to make the ‘classical’ desktop the default upon starting Windows. It can be system setting that you can choose either during set-up or through control panel or whatever system configuration tool they use. I have a suspicion that somewhere down the line they (MS) will be forced to implement this – mark my words!

Until then, Windows 8 will not see any of my computers where I have a say about it.

Update: Well, apparently the name ‘Metro’ itself has become almost poison to Microsoft themselves -due to trademark issues with a German retailer (Metro AG).

Mass Effect 3 Extended Cut sound track

For those that somehow missed it. The ‘sound track’ for the Extended cut is now available for download – for free (as far as I can tell).

Go grab it here.

Mostly it is just rework pieces of existing tracks from the already existing sound track. I like it though. Gives you a more ‘in depth’ feeling of the final few minutes of the game/story. There are 7 tracks in this download:

  1. Wake Up
  2. An End, Once And For All – Extended Cut
  3. A Future That Many Will Never See
  4. I Will Watch Over The Ones Who Live On
  5. I Am Alive An Im Not Alone
  6. We Fought As A United Galaxy
  7. Resolution

Thanks BioWare (or whomever released it). You scored some more browny points with me. Now the Earth DLC is next in line.

Enjoy!

Windows Command Centre

A few years ago I created a quick utility to simply bring together all the various configuration tools that are included inside Windows itself. The problem is that there are actually all these built-in tools and utilities but finding them sometimes require you to search or discover them by accident. The tool I created simply provides an easy way to get to a lot of them. Even in Windows 7 not everything is located in one place – especially the more ‘advanced’, older or legacy tools – e.g. ODBC settings. Additionally I added something simple to simply ‘list’ the installed .Net versions as well.

A quick summary of what it contains:

System

Control panel
Manage computer
System config
Registry editor
Performance monitor
Scheduled tasks
Locale

Regional settings
Date and time

.Net

List versions
Disable Explorer GAC view

Hardware

Device manager
Install hardware
Remove hardware
Power options
Disk management
Removable storage
Settings

Keyboard
Mouse
Display
Sound
Printer

Software

Add & remove programs
Default programs
Windows components

Services

Services
IISAdmin
Component services
ODBC

Security

Security centre
Firewall settings
User accounts
Policy
Local security settings

Connections

Network connections
Create share
Shared folders
Map network drive
Disconnect network drive
Internet options

Looks

Taskbar properties
Fonts
Folder options
Display themes

I’ve now simple recompiled the utility and created a very simple installer for it (one for x86 and one for x64)

x86 – https://dl.dropbox.com/u/20983/WindowsCommandCentreSetup.msi

x64 – https://dl.dropbox.com/u/20983/WindowsCommandCentreSetupx64.msi

I’ve tested it on Windows 7 and it use to work on Vista/XP as well. Unfortunately I cannot guarantee that it will work properly on Windows 8 if at all. All it requires is the base .Net 2.0 framework to work.

How to run application after VS MSI installer finish

Sometimes you need to do something that is not provided ‘out-of-the-box’ – as provided by the default tools you use. Take Visual Studio’s built in ‘Set-up’ and installation projects as an example.

I wanted to simply add the option to launch the executable that was installed during the install process once the installer ends. Sounds simple and there are ways of doing this with and without Visual Studio using custom installer classes plus ‘Custom Actions’ is possible but it has its drawbacks – like it suspend the installer or you have to write extra code inside your app just to cater for that.

Interestingly enough, MSI installers actually supports this functionality ‘natively’ i.e. it is a built-in feature of MSI technology to have the option for ‘Run my app after the installer ends’. The problem is just that Visual Studio doesn’t expose this functionality itself. The only way to ‘enable’ this feature is to modify the MSI package afterwards – through a ‘Post build action’ or manually (or you can use msbuild or any other build process tool).

To do this you can use a JavaScript script that simply makes the required changes to the MSI package (its internal database). See Aaron Stebner’s blog for more details. The example script to do this is located here.

I initially had trouble getting the working paths correct for my specific project but it turned out the normal ‘build’ command in VS does not always rebuild the solution. Instead you have to explicitly use the ‘Rebuild’ command on the Set-up project to make sure it recreate the MSI using the post build action script.

To summarize how to do it:

  1. First download a copy of the ‘EnableLaunchApplication.js’ script to the set-up projects directory – the directory where the .vdproj file is located.
  2. Then edit the js file to specify the actual exe name of your application you want to ‘launch’ after the MSI finish. You can of course customize it further.
  3. In the Visual Studio set up project’s project properties specify the following ‘PostBuildEvent’: cscript.exe “$(ProjectDir)EnableLaunchApplication.js” “$(BuiltOuputPath)”
  4. Take not that the spelling mistake (BuiltOuputPath) is deliberate since that is how the VS team implemented it (was probably a typo which they never fixed)
  5. Now you can use the ‘Rebuild’ command for the (set-up) project.

and thats how it works. Have fun!

That Extended Cut

[ Spoiler warning if you haven’t played it yet ]

Well, most players of ME3 now probably tried out the ‘new’ Extended Cut with the ‘new/not so new’ ending to the story. My take on this is a bit more complex. It is not a major flop but neither a fantastic success. Overall I think it is better – actually much better than the original way they ended the game but there are a couple of ‘holes’ that need plugging. Mostly small questions or blatantly ‘duh’ issues.

Lets begin with the ‘run to the beam’ scene. Explaining how your squad mates that were with you at the start of the ‘run towards the beam’ got to the Normandy was explained a bit better. But at the same time it was a bit cheesy and opens the question – Aren’t there a damn Reaper shooting at you guys while the Normandy openly comes and land right in front of it! I mean really, that would be the ideal target for a Reaper or the Normandy could have taken out the Reaper… and then immediately after the Normandy leaves the Harbinger starts shooting again… Very convenient. How do you explain that one??

The extended dialog options with the Catalyst was done well. Even though I don’t really agree with the ‘facts’ as he/it stated. But it does help picture the story behind the ‘story’ and even raises some new questions – especially about the actual origin of the Reapers and Catalyst itself. Obviously they went over the rails somewhere and lost ‘focus’ about their actual intended ‘goals’. The fact that the Catalyst was aware of the Crucible but choose to ignore it is also a bit naive – I think. And why could it not take action itself for a new ending of the cycle considering all the other ‘smart’ and powerful things it was doing??

As before I first choose the destroy option (will try the others later) and there is still that ‘hint’ that Sheppard might have survived. I don’t know if this is part of it but when the crew of the Normandy place the names of their fallen friends/leaders the name plaque for Commander Sheppard is never actually seen being fixed to the wall. Instead, it is hold up close to the wall and then the scene ends with the Normandy taking off again (but I thought it crashed…).

The epilogue given by Adm Hackett does give a sense of a more ‘positive’ future despite the destruction and many deaths. I particularly liked the image of the Krogans with their babies and children. But what about Palaven? Or did the Turians suffer too much and were completely destroyed? Also, what about the Salarians?

Another thing never mentioned explicitly is what happened to the ‘people’ that were on the Citadel before it was taken over by the Reapers? What became of people like Bailey and the rest of C-Sec? Did they somehow escape before the take-over or hide away only to be killed when the ‘red’ ending blew up the place?

Then one thing that keeps on bugging me is why do/did the Catalyst look exactly like the boy Sheppard saw just before leaving Earth? That ‘smells’ of the indoctrination theory to me.

I still think the ending could have been a bit different but at least it is an improvement. At least now there is possibility of a continuation of the whole ‘Mass Effect universe – even though the Reaper threat has been removed. I’m sure there are other threats that will soon take its place 🙂