Windows XP SP3 Activation Issues

My father’s PC recently died and needed a new motherboard.  Taking the opportunity to upgrade, we put in new RAM, CPU, but left the old hard drive.

Using the old hard-drive, the PC would go to boot and restart half way through the boot process.  This was the same in safe mode as well.

A repair install was the best way to go, so I downloaded a XP SP3 retail image from Technet and wen’t along with the install process.  All seemed to go well until the next major reboot after setup is complete, a smaller than normal Windows logo with a Please Wait… message at the bottom.  This did not go away so after half an hour, I reset the PC.

The Welcome screen showed up, I thought all was well.  I went to login as my user and a prompt appeared telling me that Windows needed to be activated before I could login.  I chose Yes and allowed it to do its thing.  My backdrop screen appeared, and there was a lot of disk activity for about 10 mins, before it then stopped doing anything useful.  It just sat there.  I could move the mouse and nothing more.

I’ve experienced a fair few encounters with WGA and most of the time, the fix involved getting to the registration wizard, by starting it from the Start->Run prompt.  Once there, Windows could do its thing.  Without a working explorer, no control+alt+delete to bring up task manager, I could do nothing.  You cant run the wizard in safe mode either, and whilst there are some hacks to bring up a command prompt in the welcome dialog and lots of other workarounds, nothing I tried worked.

In the end I simply installed XP SP2. Because it came with IE 6 or 7 though and the installed IE was version 8 there were periodic program exceptions regarding a synchronisation app (i think what IE 8 uses to keep its RSS feed list up to date).  An upgrade through windows update to internet explorer fixed that but we were reluctant to change anything.  In the end, I bought Dad a bigger harddrive, a proper copy of Win7 and haven’t had to worry about it since.

Why is it so hard to get anything done?

My favourite subject, what the business wants VS what IT wants?

The analogy of the expectations of a coffee barista and their ability to deliver their service is used as an analogy to that of the business has a service in mind from IT that needs to get delivered according to a set of reasonable parameters (timeliness, cost, value for money).  IT on the other hand have an agenda of logic and process, which doesn’t gel well when business requires innovation and doesn’t have the rules or the process in place themselves.

I think personally the biggest barrier is that the business sees IT as a service and IT sees business as a consumer/customer.  Yet they are all on the same team and the goals of business sustainability, profitability and efficiency are all shared and equally valued.  There needs to be a bridge, and I dont mean of the heavy BA role variety. 

The bridge as I see it, is the increase in toolboxes.  Business for whatever reason innovate within the spheres of people, interactions and workflows, but either abstract too far or are focused on existing implementation when it comes to involving IT style solutions in their innovation.  Perhaps as our current Gen Y workforce begin to move into management roles that shape business thinking, they will have an IT acumen and understanding of the tools and patterns that can take a business workflow and cut out the redundancy – they’ll know what to ask out of IT better because they’ll be able to ask for the right shaped tools.

I’m not saying that IT should just be a bunch of monkeys coding to whatever requirements waiting for these super Gen Y managers to come up through the ranks and lead us out of bad requirements / bad direction hell.  IT need to step up into the business strategy to do the same thing – innovate with the business – show them where the efficiencies and sweet solutions lie.  And really instead of being put to task with what the business wants (an extension of a business domain area for example), they should innovate with the business, put to task on how to grow the company, taken out of the tunnel vision project and given the autonomy and self direction to grow the company.

The article asks something of IT which is important – professionalism and knowledge.  Having barrista’s scratching their heads about how to perform a request indicates a lack of experience and knowledge.  IT people know how to be innovative, but they don’t necessarily know how to innovate within a business environment where they have constraints on time, directions by different stakeholders, but to also be innovative, you have to be timely.  You cant be timely if you don’t have the experience or knowledge to respond in a timely manner.  But in order to be useful to the business, you need to be.

At the end of the day, my half baked utopia is that IT are the business decision makers, and conversely the business decision makers are also IT people.  Those companies that can leverage best of breed can at the very least save some unnecessary time and interactions.

Mounting a Loopback Device Image

This is what I used to mount the Mandrake Pendrive Linux loopback device to retrieve my partners files when she moved back to a proper PC with a working hard drive 

# Create the device as /dev/loop0 and point to the loopback file
losetup /dev/loop0 Desktop/mcnlive.loop
# Mount the device in the usual way
mount -t ext2 /dev/loop0 Desktop/vfs

Firefox Keyboard Shortcuts

Following my previous post on IDEA keyboard shortcuts, I was inspired to look for the same thing for Firefox.  In particular I use the Copy URL function a fair bit but saddened to learn it doesn’t have a shortcut provided out of the box.

There is the keyconfig addon that provides the ability to look and add keyboard shortcuts to functions.  Strangely you cant change a shortcut, only add new ones by default. However, there are addons for this addon 🙂 that allow you to set shortcuts to actions that normally don’t have such functions.

Firefox as it stands

KeyConfig Extension

Functions for KeyConfig

Articles on being a better programmer (Career Development Advice)

Quick Reads

This is a quick read: Making the Good Programmer … Better

And another: 5 Tips for creating good code every day; or how to become a good software developer

Longer Reads

Find where you’re at, Improve It and your Career in the process

**** Recommended ****  If you are looking to get a job or updating your resume, you might want to know where your competencies stand.  The Programmer Competency Matrix very thoroughly lists attributes in the disciplines of Computer Science, Software Engineering, Programming, Experience and Knowledge and provides 4 levels (numbered 0 – 3) for each attribute describing what knowledge you have to be considered at each level.  I think it should be a mandatory professional TODO for any serious programmer to rate where they are at and what they need to do to achieve further competency.  Its a career development guide for the technical and soft skills a developer is required to have in a world that is growing ever more competitive.

In Signs that you’re a bad programmer the blogger talks about Symptoms and Remedies of bad, mediocre and ‘shouldn’t be a’ programmer types.  Its an excellent tool to look at yourself critically and see where you could be improving. 

Stay Informed

Most of these articles I picked up by following the DZone site on twitter, who are also behind those awesome Refcardz that help you get up to speed or revise on a particular technology in very short time.

I also follow a lot of other renowned technical guru’s in the Agile, Java, Spring and Groovy spheres.  Usually, they are all following each other and when there is a good article, they all retweet it (a validation of what is good).  If you look at my twitter profile, you can see who else I’m following and add to your sources of development info.

Somewhat due to the number of developer emails and twitter posts I dont read tech books as often as I’d like, but there are some important ones that every dev should read, usually everyone has their own list with a bias to a particular technology they use more often.  The one here is a fair example of books I’ve read or own.  There are plenty more ‘good programming list’ posts, just google or look on Amazon.

Key Promoter for IDEA

This is one of the best plugins that I’ve come across in IDEA.  It simply pops up an unobtrusive window every time you do something with the mouse, that has an equivalent keyboard shortcut to remind you how you can get to that action quicker.  This means you can become more productive.

An even better feature though is that if you use an action that doesn’t have a keyboard binding, after about 3 times of using an action it will ask you if you’d like to set one and take you to the preferences dialog (I’ve configured mine down to 2)

Speaking of plugins, Thoughtworks Neal Ford has a neat presentation online about some of the most useful plugins in Idea and Eclipse.  There were a couple in particular I wasnt aware of

CTRL+E – Open recent files list – This makes using tabs redundant.  A small popup list of files you’ve recently looked at for you to choose using, regardless of if they are appear on the tab bar, you closed or IntelliJ took the liberty of closing for you because you’ve exceeded the default 7 tab limit (super annoying coming from Eclipse, BTW)

ALT+SHIFT+CTRL+N – Symbol lookup (aka CTRL+N on roids) – Find a symbol (variable, method name, whatever) in any file.  Obviously slower than CTRL+N since it has more to look through, but a zillion times efficient than opening the Find dialog and navigating its controls.  BTW, Eclipse has CTRL+O, but from memory, that only looked in the currently edited file only.

Some Groovy Little Tips

My favourite Groovy/Java/IntelliJ web presenter, Vaclav Pech, has a short 20min Parleys talk on using Groovy with IntelliJ.

What I found neat was IntelliJ’s ability to take a Java class, rename it as a Groovy one, then refactor all the annonymous inner classes.  I also learnt about the capabilities of Groovy, the part where a class gets defined as a Map.  Wonderful stuff.

Also neat, was showing how refactorings apply not only to Groovy and Java, but also to Scala code in the same project.

http://beta.parleys.com/#state=state_player&slide=7&id=354

JVM garbage collection behaviour on virtual machines

Interesting blog about how multiple virtual machines running on the same metal, each with their own JVM instances performing garbage collection can degrade app performance when the hypervisor has to swap out memory

http://www.devwebsphere.com/devwebsphere/2009/08/why-you-shouldnt-overcommit-memory-on-virtualized-servers-running-java.html

Given at work, we will be switching platforms so everything is moving to the supposedly common good of redundancy that virtualisation provides, its worth noting.  I wonder if the new G1 garbage collector is any different, or if staying on Solaris with its Sun/Java roots and using zones instead manage this any differently?