Sunday, October 10, 2010

Virtualisation for Beginners

I recently learnt that Dr Dobbs Journal is no more, having just become a sub-section of Network World.


This prompted me to go pick up the article code ZIPs from the old web-site to trawl for any useful bits.

I pointed my Getright Browser Tool at - ftp://66.77.27.238/sourcecode/ddj/ and downloaded the lot (1.31GB of zip files) while it is still there.


Amongst the goodies I found that I had downloaded a zipped image for a Ubuntu Dot.Net Development virtual machine.

I put this Zip and the FREE VMPlayer from VMWare onto an old 786MB / 40GB / AGP video Pentium PC running fully up-to-date XP SP3.

Honestly, there are probably better machines hardware-wise put out for recycle at the side of the road.

I unpacked the 1GB ZIP which became about 11GB on account of a 10GB disk image in there.


I installed and ran the VMPlayer and was happy to see that it actually ran OK on such a low-spec machine and handled the wireless 11n NIC OK.

I tried to run the Ubuntu virtual machine but if failed as it was created to run as a 2-CPU machine though luckily only with 512MB RAM.

I changed the VM settings (so easy that the cat could do it) to 1 CPU and away it went.


Then VMPlayer announced that my Linux VMWare Toolkit was out of date and offered to fix it up while I was still using the Ubuntu VM.

I accepted and the tools were downloaded verified and mounted so that they suddenly appeared as a CD inside the Ubuntu VM, Impressive!

I opened the .tar.gz tools archive file on the CD and dragged the contents to my home/user directory and they were uneventfully extracted.

I then ran the enclosed .pl install script and voila, my Ubuntu virtual machine is all updated with the latest VMWare tools.


Now I can play with Ubuntu Dot.Net development any time I want without having another old PC hanging around.

Actually, I’m tempted to get VM Workstation and make a VM of the old XP machine so that I can run IT under Windows 7 in the future.

And NO I won’t even try and run Ubuntu in VMWare in the virtual XP machine, I’ll make a separate Ubuntu machine. :-)


So, two take-aways from this –
  1. Getting a hands-on taste of Virtualisation is cheap and easy, and…
  2. You don’t need a high-end machine to experiment on (and get some Virtualisation experience you can claim when job-hunting).

Have a go! :-)

Thursday, March 25, 2010

General: My Obesity Solution

Here is a passing thought I will share with you.
The media and doctors are all brow-beating us about how the population is becoming obese.
Well surely, if so many people are becoming obese, then it should be time to redraw the height/weight scales that are used to determine 'normal'.
If you think that would be cheating consider this - the scales currently in use were derived post-war after years of rationing where people barely saw sugar or butter or any sizable piece of meat, is that fair? Is it pure coincidence or artistic incompetence that paintings and books from previous centuries depict a great many portly people? (Think 'Pickwick Papers').
I think that losing weight might be a good plan, but I am not convinced that we are being judged fairly.

Others doubt the BMI too!

Update: A nice kicking for BMI on The Register -'Being fat is no worse for you than being a woman'

Friday, January 29, 2010

General: Embedded Development

Unless you are manufacturing your own line of products, embedded development starts with a customer wanting to create or improve a new or existing product.
Then follows a lot of question and answer and,l usually, research to identify the possible range of solutions, from off-the-shelf to fully-custom, and consider their respective strengths and weaknesses.
If it seems to both parties that a custom solution is the best option, you may have work to do, if the business matters are agreeable to you both.

Then, in theory, begins the thinking and design of a possible solution, although in practice quite a few possibilities will usually have occurred to the designer during the discovery phase.
The next step is fleshing out the component parts of the overall solution, which may start as no more than a few quickly drawn ideas, like so -


These rough ideas are frequently tested by the designer, either as components, or as a part of a whole solution. Whilst the older method is to build test hardware, a lot of people opt for simulation nowadays.
In order to produce the prototype, the schematic designs must be entered into the design tool and parts created and added to the library if it does not contain the required part, or not one in the required physical package.


When the complete schematic is entered and verified for electrical consistency, the board layout can be performed. An important first step here is entering the manufacturing capabilities of the PCB company as a set of design rules that your board must conform to.


When the layout is complete, a set of files can be sent to the PCB manufacturer and a small batch of prototype boards ordered. It can typically take 5-10 days to receipt of the finished boards, although speedier options exist for higher prices.

This board is mostly Surface-Mount, apart from power devices all lined up to share a common heatsink and the much cheaper through-hole electrolytic capacitors. The hardest-to-solder ARM processor goes on first to give unimpeded access to it!
Once the prototype is fully debugged, actual assembly will be performed at the PCB manufacturers, but for the prototype it's a job for a good eye and a steady hand.

Once all parts are fitted, the board can be fitted into the prototype hardware and then the software programming and debugging can commence!


In this case, a JTAG port makes software development and testing much easier.

Larger size photo's can be viewed in this Flickr set.

Saturday, January 23, 2010

General: Test your ISP!

This summary is not available. Please click here to view the post.

Saturday, April 18, 2009

General: The future of Second Life

I have just read an interesting post by ArminasX Saiman on the latest departures of staff from Second Life.
While it is possible that these are due to the company transitioning from small start-up to large-scale operation, my skeptical mind has another opinion.

The thing about SL (Second Life) is that it is its own showcase, in other words 'what you see is what you get' a world where the user is free to create content to bend the virtual world to their own ends.
Given this, it makes sense that it is in their own best interest to make SL as high-performing a platform as possible. What we see however is a platform crippled whenever serious numbers of people are present in the whole system, and downright unusable if any significant number are gathered in one place for an event. This latter limitation is critical if SL is ever to become a virtual world to be used by business for large-scale events.
ArminasX makes note of the ability of the platform to now support 88,000+ concurrent users, but I see this advance as nothing more than the expected improvement due to the progression of hardware performance.
In short, the lack of real satisfactory performance on a platform which is its own major sales tool strongly implies to me that this implementation has hit a wall, that is there is some inescapable, insurmountable problem.
I, personally, suspect that the problem is the huge asset database rather than a network bandwidth problem and I was therefore less than surprised to see that the impending Blue Mars VR intends that 'many thousands of users will be able to simultaneously log into a single “city.”' (where a 'city' seems equivalent to an SL 'sim') but does not support user-created content, thus limiting the assets database whilst presumably requiring considerable bandwidth.
Blue Mars also does not have contiguous sims (cities) with seamless travel over boundaries, each one is discrete, which I assume means that a sims servers asset cache (I think that this exists from personal experience) will not need to import a users assets as they enter it.

Still, whatever the technical limit, back to the reasonable supposition that there must be one since the main sellling tool, the actual experience, is clearly limited.
The shareholders would obviously like a return on their investment and a big IPO would be their best bet. In order to do this they would need it to be seen by both businesses and Joe Public as a viable platform with room for growth in size, performance and stability.
If one knew that the platform as is wouldn't deliver and the shareholders want those who profess belief otherwise while they get an IPO together then, ethically, one might have to think about leaving.

Of course, they could easily prove me wrong, just fix the performance issues to prove it can be done.

Saturday, February 28, 2009

General: The passing of a friend

Peter Hemsley was a good friend of mine who lived in the UK.
I had known him for about thirty-eight years when we both became 'Telecoms Technician Apprentices' in British Telecom (then known as the Post Office as the same company was the national mail carrier)

During this time we both enrolled in an early computing night-class at South-East Derbyshire College of Further Education and rapidly gained skills in BASIC and PDP-8 assembler, both memory-constrained so we learnt to code lean and mean!

Later we both worked at S.E Labs in Sandiacre, Nottingham (which became a branch of Thorn EMI Datatech) in the field of instrument repair specialising in microprocessor-based instruments and analogue and digital multi-channel tape decks.

During this time and subsequently, we formed a business partnership, 'Amber Microsystems' specialising in the development of custom hardware and software. Much of our development work was carried out on Apple ][ machines which were our first (and much loved!) personal computers. I left my half of the company to Pete' when I emigrated to Australia in late 1987.

I didn't normally get a lot of email from this friend although I included him on all the techo' newsletters and occasionally sent him an update on happenings in my life.
For a couple of weeks I had email delivery failure notices from his mailbox provider and on further investigation, his domain seemed to be gone from the internet.
On last Monday (the 23rd Feb') my unease and foreboding prompted me to seek more information on his curent status.

Knowing that he was keen on Amateur Radio, I 'Googled' his name with 'RSGB', that being the body (Radio Society of Great Britain) that 'Ham' clubs are affiliated with in the UK.
Sadly, I found an obituary notice on the site of SNADARC, a club in South Normanton, a village close by his home and one of our old haunts. -

Peter Hemsley
It is with sadness we report that Peter Hemsley has passed away
recently after his brave five month battle with cancer.
A floral tribute was sent on behalf of the club and members were also in attendance at the funeral service at Mansfield Crematorium.


Searching the site for confirmation that this was the same person I found some pictures that indeed seemed to be of my friend and I sent off an email with a picture I took of Peter in April for them to confirm my conclusion.

Sadly, it was indeed my friend Peter that had passed away just before Christmas after a five month battle with cancer.
When I saw him in April he was pretty ill and said that he had Emphysema (bad enough in itself) but perhaps he got re-diagnosed afterwards.
I suppose that his preference for hand-rolled filterless cigarettes may well have caught up with him finally.

He was an elegant coder with a preference for assembly language and had a particular skill with numerical methods and an intuitive grasp of manipulating numbers in binary representation.
There are still several places on the internet archiving his fast and compact PIC microcontroller routines for Square roots and Decimal Input/Output that he originally presented in Everyday and Practical Electronics magazine.
A bit of competitive fun that we both enjoyed was each taking turns trying to improve the speed or reduce the size of a piece of code until no further improvements could be made. I think the score was about even (well, that's my story and I'm sticking with it!).
He was similarly economical when it came to hardware design and contrived some very nifty microprocessor-based designs and single-sided PCB layouts with minimal interconnects.

I will miss him a lot for his sense of humour and steady friendship.

This is the last photograph I took of him as we wandered around Anchor Surplus in Nottingham in April 2008 chatting about how we used to actually work on half the old stuff there in our younger days!

Saturday, February 7, 2009

General: It's Prediction-Time!

It occurred to me today that now I don't do an email newsletter, I haven't made my New Year prediction this year.

Since we are already in February, I think it is appropriate to make a somewhat further-looking prediction than usual.

As you may know Copper is in seriously short supply world-wide. This has led to a lot of thefts of copper cable recently, sometimes attempted thefts of live cables worthy of Darwin Awards.

Simultaneously, our oil reserves are now on the downward side of 'peak-oil' and in any case we can't afford to burn carbon compounds and exacerbate Global Warming.

This inevitably means an ever more serious attempt to replace Internal Combustion Engines in vehicles with Electric Motors and some kind of electrical power storage.

Since putting new batteries in your vehicle every day is right out, a rechargeable power storage system is necessary and recharge-time is clearly a limiting factor if it can't be recharged in a reasonable time.

Eight hours is, in my opinion, the longest duration acceptable for recharging where a vehicle is used to it's maximum range/performance.
A vehicle that can be recharged in eight hours, adopted throughout a country clearly represents a massive load that cannot be easily distributed throughout the working day barring differences in time-zones.
The best that might be achieved is partial recharging whilst at work, but this is during the part of the day that industry makes it's heaviest demands of the power generating and distribution grid already.

With the current generation of electric vehicles, eight hours does indeed seem to be the best achievable recharge time BUT, this is on 110 Volt distribution outlets due to the limitations on maximum current. On 240 Volt outlets, this can be reduced strikingly to two and a half hours!

Once you can achieve a recharge in two and a half hours, you can also have a managed, phased recharge period in three or more 'shifts' to lighten the load on the power grid which saves building extra generating capacity just to recharge Electric Vehicles.

Given that copper house wiring may soon be impractical due to scarcity of copper, we can expect to see other materials used in this role. To achieve the same deliverable currents will require a moderate increase in wire size but to achieve a high enough current delivery for an electric vehicle revolution at 110 Volts would require a much larger diameter of wire and also present additional difficulties over those already present in working with conductors such as Aluminium.

An alternative would be to make ALL domestic 110 Volt mains three-phase, but this would have it's own complications of expensive re-work and materials as well as overcoming perceived safety issues with the higher phase to phase voltages.

For these reasons (Here comes the actual prediction!), I think it is extremely likely that within five years we will be hearing about the necessity of the USA adopting the 240 Volt standard to enable the Electric Vehicle solution to Oil shortages and Greenhouse Gases.

It is possible that in order to handle the recharging loads an even higher voltage could be chosen to reduce the cost of thicker conductors or to try and carry on with Copper conductors but of a lighter gauge. This would cost more in higher performance insulation and there would undoubtedly be a big panic about the safety aspects of voltages that are higher than any currently used. For these reasons I don't think a voltage greater than 240 Volts would be adopted.

Given the irresolute prevarication about switching to Digital TV (as if they will be any more ready in 4 months time), I can only guess what a mess the changeover to 240 Volts will be.

A sample Electric Vehicle (and a rather tasty one at that) with the recharging times documented.

Tuesday, January 27, 2009

General: My Australia Day

First a bit of sillyness and a dance at Eloquence - http://www.flickr.com/photos/27843830@N07/3226591313/


Then off to the local club to listen to the band and watch others dance - http://www.flickr.com/photos/27843830@N07/sets/72157612983770139/


Monday, January 12, 2009

General: My 2009 so far...

So far, 2009 has been a very busy year from day 1 for my wife and I.

We have been busy (but unpaid) getting to grips with multiple roles and functions at a local venue in order to re-allocate them in a more flexible distributed manner to facilitate easier management by the elected officials in the future.

I have also spent my weekends thus far assisting in the replacement of a commercial kitchen floor, which entailed dismantling and removing a lot of built-in steelwork and heavy-duty appliances, floor preparation for professionals to lay a sealed vinyl floor on a new level base, re-tiling walls, electrical and plumbing work and restoring/rebuilding all appliances and shelving.

In my 'free' time I have been seeking full-time employment as my wife is now unemployed after 33 years and I must put a steady income at the top of my priority list. Hopefully a decent income for me will allow my wife to find local low-stress employment, I know she has more than earned that lately.

I hope that your 2009 has been less hectic so far and that you prosper, despite the state of the world-wide economy.

Here's to us, Cheers!

Sunday, December 14, 2008

Second Life: Thoughts on Gender in Second Life

I have recently been considering the issue of gender as it affects a residents experience of Second Life. It could well be that the thoughts and conclusions I have arrived at have been thought of before or even superceded, but as far as i know they are original to me.

My consideration has led me to the belief that in terms of the depiction of gender in SL there are two functions performed by anatomical parts of the avatar. These are the sexuality component maleness and femaleness and the more identity-related femininity / womanliness and masculinity / manliness. While thinking up my theory, I mentally referred to this latter component as the 'Emblem'.

Both male and female initial avatars are devoid of any features in the crotch region other than a little pubic hair on the skin texture. This elimination of detail obviously greatly simplifies the addition of clothing layers for pants for both genders.

This presents no big problem for female residents in my theory since the vulva represents only the sexuality component of gender and the much more important identity component of gender is catered for by the female avatars breasts which are quite easily handled with clothing layers. Anyone who doubts the basis of this conjecture may care to reflect on women that they know / have known who have had health problems such as cervical cancer and those who have had breast cancer that might require mastectomy and recall which women were the more devastated and felt their identity more threatened.

Unfortunately for male residents the penis serves double-duty (yet again!) and represents both the sexuality and identity gender components and there is no alternative external physiology that can really substitute the masculine identity function so the intentional omission of a penis (etc) is at a probably sub-conscious level a source of distress for male residents. It’s not that we want to have it there all the time, but it never being there is just a constant ‘not quite right’ feeling.

I believe that this emasculation is probably the root cause for observed compensatory male avatar characteristics, unrealistic height, geeks with builds like Olympic athletes, strong "5 o'clock shadow" (since the avatar obviously shaves every morning). I am not in the least criticising any male avatars who evince any or all of these features, on the contrary, I understand completely. I think that this might even be behind some new male avatars eagerness to acquire the infamous ‘freenis’ with the justification of using it for sex, maybe it is really just an attempt to put something that they know is wrong to rights.

It's not even that any kind of 'funtionality' is necessary, but I can't help but wonder how many male residents have been lost due to the the choice of living a SL life with a neutered male identity or be thought of as a sex-fiend and get a penis

In closing, I would ask female residents who have female avatars to ask themselves: If the default female avatar was as flat as an ironing board, how long would it be (in minutes) before you went looking for boobs? ‘Frewbs’ anyone?

I welcome all comments and alternative viewpoints.