Sunday, 29 May 2011

Plants and stuff: Garden mapping

We started plugging things into the garden with no plan, no idea where things should go or how it would work, just this urge to make use of the land we had available.

Things have taken root, things have grown, things now cannot be moved.

Which is a shame, cos some tranches get a great deal of sunshine and some parts do not get so much. I was pondering this a little too much and so I've created a shadow map, showing which bits of the garden gets get the most sun, and which does get so much.

A rough diagram where everything was in the garden, then every hour or so draw on where the line of the shadows was.

We can clearly see that the right (south) side of the garden by the fence gets no direct sunlight at all. And overhanging tree things cast a shadow over the top (east) side a little more than I'd like. Rather counter intuitively the area under the fire escape steps gets quite a bit of direct sunlight.

With this new knowledge in mind we can set about on round two of planting stuff.

Thursday, 19 May 2011

Plants and stuff: Thems outdoors

Crikey, our plants outdoors have been growing, growing like mighty plant things, and quite a few of the old indoor plants have been shifted outdoors too. I'm absolutely certain you want to see how they're all getting on.

This is the Baron Tomato, when we last saw him he was an indoor plant in a rather dashing ceramic orange pot, but he's grown into a great swarthy beast of a plant and just yesterday was transferred to a B&Q growbag. Its kind of like a step down in the world, but I'm sure he can cope, slumming it with the plebian plants.

Does Amelia Tomato look divine though in her B&Q growbag. She's a fine young plant, I have great plans for her.

You'll easily recognise Colin Rhubarb, he's become a bit of a celebrity cos of my anecdotes about him at work. Last time we saw him he was just a stalk and a tiny leaf living in a cardboard box, but a week ago, I read up on wikipedia about how to cultivate rhubarbs, so I transferred him into some well dug soil, with plenty of compost.

Quite a dramatic change took place, his stalk withered away to nothing and his tiny leaf took on the mantle of being the new face of our rhubarb community. If you look carefully in the photie, you can see a second leaf coming through. By the end of the summer, there might just be enough rhubarb to make a decent crumble. Come on Colin!

Deborah Chives has put on a little weight, but looks all the lovelier for it. And she's kept her beautiful array of flowers. I really must remember to use her in more meals, adding that oniony chivey flavour to dishes.

I'm not sure what's going on with Louise Mint, before I went away on holiday she was huge, with long flowing stems and leaves all over the place, but in the past few days, she's lost a bit of weight and seems a bit straggly. Still as flavoursome as ever, its just down at the base of her stems there are quite a few dead leaves. I'm sure she'll be fine though.

Nina Raspberry is getting bigger. I don't have much faith in her producing any fruit this year, but as long as she's growing in body and spirit, then I'm a happy gardener.

Rosemary Rosemary, much like her colleague Deborah Chives, is doing well, but is under-used in the kitchen. I'm going to have to have roast lamb more often, ooh, and that would make work for Louise Mint too. Could I make lamb and rosemary sausages? That would be ace. What else goes with rosemary?

Sarah and Tabatha are mourning the death of their friend and roommate Pauline. You know, I could have sworn that Pauline was basil, but I've got some growing indoors and he looks completely different. So now I feel bad cos Pauline died and I didn't even know what she was, I don't know why she died, she just slowly faded away in the shade of her roomies.

Redtree Stolenfromwerk is doing okay, he's going a bit green in the leaves, and I've noticed his leaves are like really soft to the touch. He's grown a little bit in stature and seems to be sprouting more leaves. I wonder if he's going to flower or something, or just do the leaf thing.

Huey Lewis, my apple tree who I doubt, but then sprouted, he's wonderful. I think I'm falling in love. He's even doing the apple blossom thing, not just one or two blossomy buds, but loads and loads of them. I might do a whole blogpost just about him.

He fills me with joy.

Our old friend the Dying Bathroom Tree is still holding a tight grasp of life. He doesn't look the healthiest of plants, and his roots are showing and he's got weeds growing in his pot, but, he's still alive. I don't know how he does it. Could it be will-power alone or some magical plant power, cos, I mean he's been looking like he's going to wither and die for about two years now.

Kristin Gooseberry - an ambitious and wide-reaching plant.


Paul, Neville and Phil Johnson, they've grown up to be hardy brothers, darker in leaf than their indoory cousins. I was a little worried that by living in a growbag, I'd be over-watering them, their roots would grow soggy and rot, but they're doing just fine.


The Johnson's neighbours, Cecil and Carlos Cucumber, are mourning the death of their brother Colin, he was eaten, presumably by slugs. They're both looking quite bad themselves, great chunks missing from the leaves, silvery trails leading into the distance. They don't really stand a chance.

Taking Colin's place in the B&Q growbag is Stuart, one of the Jockrock tomatos.

Another Jockrock tomato making the step outdoors is Louise Wener, joining Amelia and The Baron in the new growbag. I hope she's be a fruitful addition to the team.

Fitness Regime: Spring 2011- pipped at the post

Bah! I say, BAH!! Winter beat me.

Well, me in winter beat me in spring. My fitness regime kind of petered out towards the end of my almost traditional 39 day season. Mostly because I went away on holiday for three nights, but I ought to have been able to catch the up if I wasn't so damned lazy and ill-disciplined.

Anyhoo, now the 39 days are up, I can reflect on my progress a bit more objectively. Here, we can look at this graph of my the average distance I worked out on the cross trainer each day.

I started off in pretty much the same fashion as my winter feat, doing it for a few days then taking a few days off so the average fell, but then, with great will power, I maintained a steady 12.6km per day so my average rose, a lot more than back in winter, when I was mostly doing 10.5km. But I seem to have peaked at an average of 8km a day. Sure, when I worked out I did 12km, but then I was taking day's off which brought the average down. Compare that with Winter when my average just kept on rising until the end of the 39 days.

This next graph shows my speed for each session, bear in mind that 20km/h on the cross trainer doesn't quite match 20km/h jogging or running.

Success, broadly I was going faster in Spring than I was in Winter. The latter bumbling around at 20km/h, and in Spring, more like 21.5km/h.

So, what does all that look like?

Sorry ladies, I'm taken.

Tuesday, 10 May 2011

Shares and Stuff: My top tips

Its been a month since I started wading in the murky depths of buying shares, and to date I've made a loss of about £40. As I said before, I bought about £250's worth each of Royal Bank of Scotland(LON:RBS), Kenmare (LON:KMR) and Halfords (LON:HFD) shares

The other week I sold the RBS and Kenmare cos they were looking shite. The taxpayer subsidized banking sector is doing down the swannie, with Lloyds giving up on some court case and now having to set aside £3billion to pay as compensation to folk who they'd mis-sold insurance to. Bear in mind that Lloyds don't have £3billion, its all taxpayers money, they're just moving it from one bunch of taxpayers to another. RBS will have to do the same. They're all just a load of shite. And Kenmare, they announced that all was going well and the prices of their products is going up, but that didn't affect their share price. So both RBS and Kenmare are about 42p a share now, compared to the 45p I bought them at.

Halfords is a bit of a success story, if only I'd just bought shares in Halfords. They're up about 11% in the month I've had them, so that's earned me back the commission fee and then some. I'm going to keep hold of Halfords for the summer.


But could I be doing better?

Sure, the housing market. I'm not quite in a position to but a house right now, I still need to make a my fortune with shares, but housing is where its at. Take a look at RightMove, the property website (LON:RMV) and Savills, the estate agents and property management people (LON:SVS). They've done pretty well over the past month compared to my benchmark Halfords.

And check out the past six months. Yeah, I think RightMove is my next big investment opportunity for shares and stuff. Over the past twelve months they've gone up 59%. Compare that to 3.3% return you'd get for a decent ISA, your money could be earning twenty times as much if you want to take the risk.

Dreams: Doom on the ZX Spectrum and Gameboy

I had a dream, well, not so much a dream, just this idea about computers and software and hardware, and how folk of my generation have seen home computer processing power improve and graphics improve, and maybe have a tiny inkling that back in the day, one guy in his bedroom could write the bestest computer game in the world, like Elite, but these days, it take a team of dozens of people.

Code used to be written really tightly to fit into a Vic 20's 20 kilobytes, or an Amstrad CPC's 64k or a Spectrum's 48K. Code had to be tight to fit, these days code sprawls and sprawls, and processing power always increases faster than the need to write tight code.

The limitations used to be things like how many colours you could have on screen at once, a pallet of 15 or 32 colours, resolutions less than 300 by 200. It seems so long ago. Now, the only colour limit it the human eye, and with screen resolutions, even the iPhone has the human eye resolution beaten. The limits for graphics are in terms of polygon count, 10,000 or 100,000 ain't much of a difference.

Anyhoo, what I'm imagining is if somehow could could get twenty-first century games on old 8-bit machines, with the graphical limitations inherent to them.

Doom.

I remember when I first saw Doom, the graphics blew my mind, on my dad's 486 DX2 PC. But compared to state of the art games graphics now, it was a bit pants.
What I wonder is, What would Doom look like on 8-bit machines?

Well, on the ZX Spectrum, 15 colours in two colour 8x8 blocks for a screen resolution of 256x192, it would look like this:-
And on the Nintendo Gameboy, four shades of green/gray at 160x144, it would look like this:-
I reckon the Game Boy version would be bestest.

It would be neat if I could be bothered to do some kind of gif animation of the action, but that's a little too much hassle. For the ZX Spectrum screen shot I used a utility called zxspectrumizer, from this chap and for the Gameboy screenshot I just used good old Photoshop.

UPDATE
Looks like some Hungarian mob put together an Spectrum version after all

Its a bit crap

This version of Wolfenstein 3D looks a bit better

Sunday, 8 May 2011

Programming: Java text board game

Gor, it must be getting on for a year, since I uploaded that game what I wrote in Perl to SourceForge, you can download it from here if you're into that sort of thing. Its a bit like the programs I used to type in from Amstrad Action or Amstrad Computer User.
Anyhoo, I've now ported it across in Java, and tidied it up a bit, making the code a bit more concise. Its taken me a while because I didn't actually know how to program in Java, luckily I managed to borrow this book from my girlfriend's sister.

Its all right, not too confusing, I'm not even halfway though but I've got enough of it in me to port perl to java.

The basic premise of the game is kind of like checkers, apart from you add one new piece to the board every turn and the stacks explode. Actually, its only like checkers in that its played on a 8x8 board and you can stack pieces, other than that, its like in games like Doom or Halo where you can blow up oil drums and they set of nearby oil drums in a chain reaction.

It must have been back in 1993 when a friend showed me a version of the game on his Acorn Archimedes, and then a few months later I was going through all my old ACU magazines typing in all listings and ended up with the same game. I hadn't see it since so I figured I could create my own version on modern computers.

For a player versus player game, it game works like this basically


The main difference I found between perl and Java was that in the latter you have to is statically typed whilst the former is dynamically typed. I think that means you have to define what sort of data all the variables are, whether they're integers or strings and so on. Also, with things like arrays you have to state how long they are before you use them, rather than just adding stuff into an array whenever you want. And lastly getting user input from the keyboard is a little bit more different in java than in perl. It took me about a week to figure it out.

Anyhoo, once I'd nailed all that it was easy. The gameboard is a great three dimensional integer array, 10x10, but it ignores the border squares and uses one layer for each player. You play a turn, it checks whether there's any 'explosions', explodes them and then checks again until its exhausted its explosives, then the next player takes a turn. This repeats until one player or the another has been annihilated or someone quits.

Then for playing against the computer it does the same thing but substitutes in a routine for chosing where to play. It builds itself a little list of what grid squares do the most damage, which are most aggressive, or which are safest, and then randomly selects the most appropriate.

Games take around twenty minutes to play, or maybe 200 turns. I've managed to win in 140 turns, which I guess is the closest thing to a high-score at this stage.

If you want to play, or just peer at my well leet coding, you can download the source code from this page.

ChainOfWar is the java version
plainofwec is the perl version

You'll need to compile the code to get it to work. If you don't know what that means, then you ought to have a long hard think about what you want to get out of life. Do you want to be a creator or a consumer? Do you personally want to leave the world a better place than how you found it. Do you want to grow as a person, or just wallow until dementia hits.

Anyhoo, I have a plan. Whilst this it just a command-line/text based version of the game, I'm going to use java's gridbag class to do a windows version that ought to be a bit more fun to play, then I'd going to do some kind of web applet version so you can play it online. Then, I know, crazy, I reckon its just the same learning curve to do an android and iPhone version that I can sell and become one of these millionaires.

Friday, 6 May 2011

Plants and stuff: Mostly pommes

I was convinced I'd been sold a pudding by Tesco in this apple tree named Huey Lewis, but it looks like I've been proved wrong.

For weeks he looked just like a dead stick planted in the ground, showing no signs of life whatsoever, except for a few spiders who'd taken up home in his branches. But I was having a potter round the garden after work, when I thought I saw something on Huey.

My eyes did no deceive me, Huey Lewis is starting to bud!

Little green buggers, and not just one or two, but loads of them all over his branches. Even coming out of the bits I thought were broken, dangling limbs. There's life in old Huey yet.

He's veritably bristling with life, like the wee embryonic leafy dudes can't wait to get out there and start photosynthesizing. I might be optimistic expecting fruit this year, but at least he's no dead and I'm so excited to see his buds.

Anyhoo, so there I was, buzzing round the garden, trying to remember the words to Huey's namesake's Power of Love, and doing a spot of weeding, when I saw this little guy.



He's called Ian, he's a potato plant. I'd forgotten I'd planted potatoes. It must have been a few months ago, there were some dodgy ones at the back of the fridge, you know the potatoes with tentacles that make Jaclyn scream. I thought, rather than chuck them, I'd stick them in the ground and hope for the best.

See, cos the soil is so poor, I didn't think they'd do anything, but no, this little chap is just creeping above ground.

Admittedly at first I thought he was a weed, so I have him a light tug, usually cos weeds are peely wally chaps they just come out, but Ian, he's got a lot going on underground, so I'm going to leave him be.