Favourite blogs for Anyone Can Post On The Internet

My favourites » All entries

February 23, 2007

Junction Detection

Recently I have been focusing on detection of junctions and end points on a raster network. It is suprisingly difficult, but I have something that works nicely on test images.
Junctions Sample
The parameters the algorithm uses seem to be quite sensitive at the moment, this mainly due to the point grouping function. I need to come up with a more stable point grouper…

However, with the junction detector working vectorising a network is simple a case of line following out of one junction until reaching another!


February 20, 2007

Rice–tacular

This is just too awesome to remain unblogged. It would seem that my brother is a creative genius with rice, this is his latest masterpiece – Jimi Hendrix, made entirely from uncooked rice placed on his campus bedroom carpet. Teh Win is it not?

Rice Hendrix Inverted

This is the inverted image. For the original click here

M xxx

EDIT: Also, why am I almost one third of the hot topics? What is up with everyone? This is unnatural…


February 14, 2007

Mmmm Topical Repost

Love

If February 14th is for couples, just remember that February 15th is everyone elses turn to celebrate; so use the opportunity to buy a nice big box of reduced chocolates to treat that special someone in your life - you.

Or just stock up with cards and fluffy crap for next year. Y'know. Whatever.

M xxx


February 13, 2007

Hell Yes!

Follow-up to Dear Mr/Ms World from Something Random

As of the 5th of March Mia will be officially EMPLOYED.

Yes, EMPLOYED

E   M   P   L   O   Y   E   D   .

Parfait Amour celebrations will commence ahead of schedule, as will much bubble-bathage, pampering and singing musicals/radio karaoke out loud. Then after a while it will really sink in and I will have to have a little lie down I guess. Wow. Fucking hell. A Job. With many shiny pennies. and a health plan. Christ.

This is a big thing after all that being poor and tesco-value-ness.

I think I might have to have that lie down first... 

:)

M xxx 


February 12, 2007

Paul Collingwood: The Owen Hargreaves of cricket

So, England have managed to win something in Australia, and the unlikely hero is that ginger bloke from Durham. A man who, before the Ashes had the reputation of being that bloke who would come in to the team if someone was injured, but nothing much was really expected from him. A man who, as Shane Warne pointed out in one of the better reported pieces of sledging this winter, got an OBE for scoring 10 in the final Ashes test in 2005. And now he’s scored a double century in the Test England really should have won and been instrumental in the one dayers with bat, ball, and in the field, and is probably now an automatic selection for the England XI.

Sounds very simillar to a certain Canadian and events in Germany last summer.


February 11, 2007

Fingers on buzzers…

parfait amourSo, how many "first posts" will be made on wednesday? Any guesses? Will the stats peak like a 7.2 on the Richter scale? Hopefully it won't be as tragic as I expect, although it would prove to be one of the few times my pessimism has let me down.

Still, I can't help but feel optimistic this week, for on top of the prospect of imminent employment I will at last get to spend the 14th with my true love. Which definitely beats last year (when I was forced, by circumstance, to spend it with my brother - I'm sure he was equally thrilled) and, come to think of it, the other preceeding twenty...  But finally on wednesday I'll get to snuggle up with my darling, my treasure, my "Parfait Amour" - all 70 neon-violet centilitres of it. Bliss.

M xxx


February 07, 2007

Installing ClickOnce application as non–admin user

Insight shipped a while ago. It is deployed as a ClickOnce application. The bootstrap setup.exe created by the .NET SDK is excellent in that it detects missing pre-requisites on a user’s machine, downloads and installs them.
The problem is that a non-admin user will not be able to install components such as the .NET Framework, Microsoft Reporting Library, etc.
“Right-click, RunAs admin” on the setup.exe works except that the Start Menu entry for the application is put in the Administrator’s start menu and home directory. This means the user has to run Setup.exe again as themself! Argh, imagine the support calls on that one…

My solution is to make a ZIP file containing setup.exe, Install.bat and part2.bat.
Install.bat contains:

@echo off
set _User_=%USERDOMAIN%%USERNAME%
set _wd_=%CD%

echo Installing Insight for %_User_%.
runas /u:%COMPUTERNAME%\Administrator "cmd.exe /c CD \"%_wd_%\" && part2.bat \"%_User_%\" \"%_wd_%\""

which upon running prompts:

Installing Insight for WORK\Andrew Davey.
Enter the password for WORK\Administrator: 

The user types the admin password, hits enter. That runs part2.bat:

@echo off
echo Giving %1 temporary Administrator status
net localgroup Administrators %1 /ADD
echo Running Insight install program
runas /u:%1 "cmd.exe /c CD %CD% && setup.exe" 
echo Removing %1's Administrator status
net localgroup Administrators %1 /DELETE

That adds the user to the Administrator group, then runs setup.exe as the user (but now with admin permissions). Afterwards, the user is removed from the Administrator group.

I took the idea from the MakeMeAdmin.cmd batch file. I could not seem to pass the current directory using MakeMeAdmin, so it could not find setup.exe. That’s why I have two batch files.
Maybe someone can point out how it should be done.

So the result is I can tell someone to download the ZIP, extract and double-click Install.bat. Whilst that’s not exactly “ClickOnce” anymore, it slightly better than the alternative! Of course once installed, any later application updates go into the user’s directory so no admin permissions are required.
I hope Microsoft update the bootstrapper in the next version so that it can handle non-admin users better.


February 05, 2007

On Bettering Oneself

I used to read a book a day, and now I’ve sunk to such levels that I’m lucky if I manage a book a year. It bothers me so much that I’ve set myself the task of bridging this literary deficit as quickly as possible, starting with “To Kill a Mocking Bird”.

What are the classics that you would consider unmissable reading? Are there any books that changed your life or worldview? I’m giving myself a year to get through as many suggestions as possible…

And yes Hughes, Catch 22 is on the list already.

M xxx

-

Should read:
1984 – George Orwell
A Farewell To Arms - Ernest Hemingway
A Million Little Pieces - James Fray
A Suitable Boy – Vikram Seth
American Psycho - Bret Easton Ellis
Animal Farm – Orwell
Anna Karenina - Leo Tolstoy
Between Silk and Cyanide – Leo Marks
Birdsong – Sebastian Faulks
Catch 22 - Joseph Heller
Catcher in the Rye - JD Salinger
Coming Up For Air – George Orwell
Crime and Punishment - Fyodor Dostoyevsky
Don Quixote - Miguel De Cervantes Saavedra
Down and Out in Paris and London - George Orwell
Emma - Jane Austen
Everything Is Illuminated – Jonathan Safran Foer
Extremely Loud and Incredibly Close – Jonathan Safran Foer
Flowers for Algernon – Daniel Keyes
Going Solo - Roald Dahl
Gone With The Wind - Margaret Mitchell
His Dark Materials - Phillip Pullman
Homage To Catalonia - George Orwell
How Green Was My Valley - Richard Llewellyn
I am Legend - Richard Matheson
I Know Why The Caged Bird Sings – Maya Angelou
Jonathan Strange & Mr Norell - Susanna Clarke
Mrs Dalloway - Virginia Woolf
Once in a House on Fire - Andrea Ashworth
One Flew Over the Cuckoo’s Nest - Ken Kesey
One Hundred Years Of Solitude - Gabriel Garcia Marquez
Paddy Clarke Ha, Ha, Ha – Roddy Doyle
Romance Of The Three Kingdoms - Lo Kuan-Chung and C.H. Brewitt-Taylor
Sandman - Neil Gaiman
Sophie’s World – Jostein Gaarder
Tess D’Urbervilles – Thomas Hardy
The Bonfire of the Vanities
– Tom Wolfe
The Count Of Monte Cristo - Alexandre Dumas
The Curious Incident of the Dog in the Night-Time – Mark Haddon
The Day of the Triffids - John Wyndham
The Electric Kool Aid Acid Test - Tom Wolfe
The Forever War
The Great Gatsby - F. Scott Fitzgerald
The God Delusion – Richard Dawkins
The Kite Runner – Khaleid Hosseini
The Time Traveller’s Wife - Audrey Niffenegger
The Outsider - Albert Camus
The Selfish Gene – Richard Dawkins
The Shadow of the Wind - Carlos Ruiz Zafon
Transmetropolitan - Warren Ellis
War And Peace
- Leo Tolstoy
Wind Up Bird Chronicle - Haruki Murakami
Zen And The Art Of Motorcycle Maintenance - Robert M. Pirsig

Currently reading: Neither Here Nor There - Bill Bryson
& The Sound Of Laughter - Peter Kay

Have read:
To Kill a Mockingbird – Harper Lee
Far From The Madding Crowd – Thomas Hardy
The Last Continent - Terry Pratchett (I fell off the waggon...)
Small Gods - Terry Pratchett (I fell off the waggon again...)
The Discworld Companion - Terry Pratchett (And again...)
Colony - Rob Grant (Screw the waggon.)
Northern Lights - Philip Pullman
As I Walked Out One Midsummer Morning - Laurie Lee
The Lost Continent - Bill Bryson




February 02, 2007

Problems focusing

How come the best projects always come along at the busiest times? My mate Alex came to visit last weekend and we got talking about a great project. I don’t want to say too much here in case some sneaky bright-spark implements it before us! The project has great potential and really motivated me to get cracking on a prototype. This is the kind of motivation that makes me work until 3am without even realising!
Of course the problem with all this is that I should be working on my 3rd year uni project right now. In addition, I need to prepare for travelling back the Cornwall on the 8th to sell my primary school assessment tracking app “Insight”. I really should be doing reading for my various uni modules as well. I actually turned down some contract work with a regular client because I’m just too busy. I could have really done with the money too.
Uni is seeming less relevant every day. I have to stick it out, don’t I? My plan for when I finish is to start my own software company. I already have one great product, Insight, and this new project with Alex stands to be an awesome success as well. I guess a few more months won’t seem like a big deal in retrospect, but right now it feels like I’m wasting precious time that would better spent developing my company.
Maybe I should find out the university’s policy on defering my final year…
Heh, isn’t the world richest man a college drop out? ;)


January 17, 2007

Network Vectorization

My recent development efforts have focused on vectorizing networks (either graphs or trees). These structures often appear on maps as rivers and roads that branch out. This is a more general problem than simply capturing a single line. However the approach required to vectorize is in some ways simpler.

My algorithm so far is:
  1. Create “waypoints” on the network by repeatedly getting pixels with the most surrounding pixels withing a given radius. These are rough approximations to the center line that should be followed.
    Waypoints on a network
  2. Calculate best-fit lines at each waypoint (images scaled 2x)
    Best-fit lines on a network
  3. For each line-segment, check for intersections with the other lines. These intersections are the nodes of the polylines representing the network.

I am yet to create step 3. The algorithm will need some reasonable smarts to handle junctions well. I imagine something like “if a line-segment has more than two intersections, those intersection are junctions terminals”.

The primary limitation of the algorithm is the reliance on a fixed line width that manifests as a “radius” parameter used to determine nearby pixels. An improvement will be to calculate the line width at each pixel. I think this can be done by repeatedly increasing the radius until doing so actually reduces the amount of valid pixels captured. A negative weight is assigned to invalid pixels. The amount of negative weight really depends on how sensitive to noise the algorithm needs to be.


Cocktails

I have been provided with a fine assortment of spirits from the drinks cabinet to cater for my mother's posh dinner party this saturday but find myself at a loss when it comes to cocktail recipes. What are your tried and tested favourites? Leave recipes with the comments (especially if they include spirits off the list) and I will use them to experiment on all the guests.

Le Alcohols:

  1. Absinthe
  2. Advocaat
  3. Apricot Liqueur
  4. Aquavit
  5. Baileys
  6. Blue Curacao
  7. Bols Parfait Amour
  8. Brandy
  9. Cream of Aniseed
  10. Cream Sherry
  11. Galliano
  12. Gin Mahon & Dry
  13. Martini Rosso
  14. Moscatel
  15. Peach Schnapps
  16. Pimm's No.1
  17. Pina Colada
  18. Rum
  19. Tequila
  20. Tintilla
  21. Triple Sec Curacao
  22. Vermouth Bianco
  23. Vodka
  24. Whisky


My personal favourite involves a large bottle of Baileys and a glass. 

M xxx 


Thoughts so far

I didn’t get any work done on my project over Christmas. Things were just too busy. However, I did finish my last piece of external work. So I am now free to concentrate fully on university… (in theory!)

I am painly aware of the lack of reading done so far. I keep trying to find relevant papers, but whenever something good turns up I can’t get the damn content! I’m so sick of only reading great sounding abstracts. The library seems to be totally lacking the resources I need. I’m not sure where my tution fees are going!

I discussed this problem with my supervisor, who suggested emailling authors directly. Hopefully this will return some useful material.

My supervisor pointed out that vectorising raster images is a hard problem and told me not to expect great results in the short time available. Lots of work has been done in the area (though I can’t get the damn papers!). I have had lots of ideas myself, but I got the impression I should just be implementing existing ideas and reporting the results… sigh.


January 10, 2007

Product vs. Process

The Painting

He was a little boy
And he was going to paint.
“What are you going to paint?”
Asked the teacher.

“The sky,” replied the little boy
And he picked up the brush
And dipped it into the paint
And painted a big blue sky
With a big yellow sun.

Then he turned around for
The teacher’s approval
But she moved on
To another little boy.

Then the little boy
Remembered the sky at dawn
With pink fluffy clouds
And a soft grey background.

So he dipped his brush
Into the pink and grey
And painted the sky at dawn.
But he’s seen other skies –
The sky at sunset
All red and orange and purple
So he painted the sky at sunset
Streaked with red
And orange and purple
And all the colours ran
Into each other
And the paper was very wet.

Then he painted the sky at night
And he dipped his brush
Into the dark blue
And studded the paper with
White stars and a yellow moon
And the sky before a storm
Angry and grey and dark,
And then he put down his brush
And stood back
Looking at what he had done

And that the colours had all run together,
All the blue and the pinkand
Red and orange and purple
And yellow
And had made a grey wet mess

“Goodness,” said the teacher
When she came back,
“That doesn’t look like the sky.”

But the little boy didn’t care.
It was exactly how
He wanted it
And he carefully put the painting
Away to dry.

by Winnie Pe##, 198#*
* unfortunately the only copy I have is very old and some letters were cut off the original by the photocopier.

Taking a look at some of the most recent blog images reminded me to post it. I wish I had read it when I was doing my A Levels and constantly getting criticism for not sharing the same vision as my art teacher; maybe things would have turned out differently. For starters I wouldn’t experience the urge to be sick every time I see a vase of dying flowers.

M xxx


January 09, 2007

Dissertation?

How to get it write.

  1. Verbs has to agree with their subjects.
  2. Prepositions are not words to end sentences with.
  3. And don’t start a sentence with a conjunction.
  4. It is wrong to ever split an infinitive.
  5. Avoid clichés like the plague.
  6. Also, always avoid annoying alliteration.
  7. Be more or less specific.
  8. Parenthetical remarks (however relevant) are (usually) unnecessary.
  9. One should never generalise.
  10. Comparisons are as bad as clichés.
  11. Don’t use no double negatives.
  12. Eschew ampersands, & abbreviations etc.
  13. Never use a big word when a diminutive one would suffice.
  14. Understatement is always the best way to put forward earth shaking ideas.
  15. Puns are for children, not groan readers.
  16. Even if a mixed metaphor sings, it should be derailed.
  17. Who need rhetorical questions?
  18. Exaggeration is a billion times worse than understatement.
  19. One word sentences? Eliminate.
    And finally…
  20. Proof read carefully to see if you any words out.

Anon.

:) M xxx


January 08, 2007

Oh and another thing

I disappeared for a while. But I now have hot steaming broadband being pumped straight into my room, so love me or hate me I’m back; Funnier, cuter and even more outrageously employable than before. Cue 24/7 msn in t minus 9 hours… well, a girl has to sleep


Dear Mr/Ms World

Enough.

Just give me a goddamn job already.

Not that I’m impatient or anything.

Lots of love,

Mia.


January 05, 2007

Exeter Christian Union suspended from their SU

Writing about web page http://news.bbc.co.uk/1/hi/uk/6232869.stm

Didn’t something similar happen with Warwick’s about 5 years ago?


December 13, 2006

Mary

Mary

December 11, 2006

The Year, the Whole Twelve Months

tor
January

Was thrown into 2006 in Berlin, in some type of happy party, with fireworks, and Germans, but with more non-Germans audible. The mood was amicable and the group was large, although at times I slipped into my distant self. I wore tights underneath my trousers and the snow crunched under my boots. I moved away from silent, friendless student halls into a shared flat with proper people. Panicked at having to live with proper people, before realizing that actually, this is the best thing that’s happened to me in a while.

February

Watched my first Takashi Milke film. Went to Prague with my new housemates and friends, where I experienced what was back then the best party I’d ever seen: an underground, hardcore drum and bass rave. I got completely mashed, then enjoyed Prague city centre in those unofficial early hours, with a flicker of morning light filtering through the darkness, battling with the neon, where the only people up are those working and resenting it, or rowdy groups still playing out on the streets after a long night’s party. There’s nothing like confused carnage to mess you up whilst being sufficiently bacchanalian to give you the dose of freedom you need to keep going. Gave the worst presentation of my life: half way through I pretended to nearly faint to try and stop that excruciating ordeal. Vowed to never be so ill-prepared or downright stupid as to ever get into a similar situation, whilst admitting the unliklihood of me keeping that vow.
exit: the new album from helen fitton and voislav stoianovsky

March

Visited a friend in Hanover, spend most of the time sleeping or drinking, but paid €15 for entrance into the world’s largest IT and telecommunications fair, CEBIT, an experience I would never have embraced were it not for new influences. Toured the North of Germany. Fell in love with Hamburg, wished I lived there. Saw a man carrying a suitcase full of cutlery and a gorgeous slim black girl smoking a joint whilst waiting for the subway. Accidentally ended up visiting a girl I didn’t know that well in Bremen and we ended up becoming friends: was just the shot of Britishness and understanding I (we both) needed. Told someone who didn’t mean anything to me that he didn’t mean anything to me and then started acting that way. Met my housemate’s girlfriend, and learned more about him just through meeting her than a whole bundle of conversations would’ve taught me. She told me the Greeks enter the Olympic stadium first, when the games are held, because of their historical status. Respected her a lot, though we clashed, occasionally, for what seemed like cultural reasons, or so my gut told me. Felt increasingly like the spoilt Westerner.

April

Went to the Filmfest Dresden: International Festival for Animation and Short Film. The ultimate night was the best, there were films worth waiting for: still, my housemates did it better, with their home-made, home-grown filmfest zu Hause. A pair of children destroyed their surroundings in a familiar childhood, abusing an idol from the stomach of a rabbit. Became Frau Fitton for the first time as I attempted to show a bunch of teenagers what a delightful language English is. Stood in front of a group of mocking kids who just didn’t give a damn, and were obnoxious as hell. Realized there is a distinct possibility of me falling into teaching were I not to find a better career path, and realized how God awful that would be. I started learning Chinese: something I mentioned more often at parties than did any work for. Went to a castle hidden away in folds of hills and steams for a long weekend of reflecting upon German Studies with the other Warwick students from my year. They fed us salmon. Spent one of my last hours there looking outwards towards the moon, the mist curling on the surrounding hills, and became intensely Romantic. Found out that next year there was going to be an absence of someone who inspired admiration, humanity, respect, fear in me, cried in front of her.
Dhaun

May

Started to spend time out-of-doors, particularly by the banks of the Elbe River, with Dresden’s skyline one side and the start of the Sächsische Schweiz on the other. Was visited by four Warwick friends, did not rise well to the challenge of being a hostess, or to the challenge of the incompatibility of my two groups of people. Was told that even in Berlin, the gay community faces much prejudice: a statement retracted five months later by the unsaid individual, alcohol and seesha had gone to his senses. Peed on the pavement next to a tram full of people at 2am; denied that this was unacceptable behaviour. Had a wonderful breakfast on a Sunday morning with my three girlfriends, the highlight of the visit: right on Alaunstraβe, at 10am, eyeing up a cute guy reading a paper opposite us, I proved beyond reasonable doubt that I cannot impersonate an American accent.
goa

June

Persuaded the authorities to let me on a plane which allowed me back into the United Kingdom. Surprised my mother by drinking black coffee; this took on a metaphorical value for her as it represented my metamorphosis into a ‘European’. Returned to the Warwick bubble for a fleeting few days, whilst remaining separate from the bubble. Managed to almost completely severe a bond with someone: a bond that was already fragile, and teetering on strained. Took a step backwards into a relationship with another person, which either was or seemed like a good idea at the time. Not sure which. Made another girl cry and was happy about it, though the Schadenfreude really came after this month. Went to what is still now the best party of my life: open air psychedelic trance party in the middle of nowhere (well, Drebkau) with Goa Gil. By far the most beautiful people I’ve ever seen partying, and the best, wildest music. It won’t be beaten for a long, long time. Went for a bare-foot walk in the woods there. Was told: “Don’t be confused. BE CONFUSED”. Cried like a Mexican with my friend as we ate chilli. Danced until 2:30pm the following afternoon.

July

Started working for a summer school for people learning German. Got things wrong a lot of the time. Felt better about my German as it was superior to that spoken by people who’d been learning German for two weeks. Was flown to Scandinavia. ‘Es lebe der Feminismus’. Managed to do something slightly obscene without any drugs. Went to a psychedelic trance festival immediately afterwards, had a crazy week. Was told that I took too much, man. Was in agreement with this statement. Had an intense morning looking at giant grasshoppers in a deserted airbase, whilst thinking about Catch-22 and holding on to Zen and the Art of Motorcycle Maintenance. Was told it’s not healthy to always be looking for Falk. Saw an internal fear expressed on someone’s face with a clarity one normally only sees in well-made horror films. Saw the beginning of something I wanted to go further with. Was told that all Americans are ignorant and all Brits are arrogant. Went to the Bundesrepublik Neustadt, the best festival in Dresden. Was told that if I liked it there I would like it in China.

we four and a big red hand that you can
August

…was a long month. Saw the skyscrapers of Krankfurt, the Rhine of Köln, the splendour of München. Things were coming to an end in Dresden, it was quite final. It rained a lot and the rain reminded me of Wales. Whether the rain was like Welsh rain or whether it was just all in my head, well, I know what Vojo would say. I tried to read a lot but the words stayed flat on the page and did nothing in my mind. A nice girl caught my attention: she was from Nottingham but looked like she was Czech. Was told by a Russian boy who was arrogant as hell and didn’t have a clue about anything that I always say shit about my country and I shouldn’t. Maybe he did have a clue about that, but he didn’t know a damn thing about anything else. Went to Berlin for four days with my mother: after one inevitable and giant row, we had a pleasant time. Ate out of ‘Mutter Hopper’, where a rat ran under all the guests’ tables. I visited the nearly-severed friend in Prague, who was there with her boyfriend. Had an awful time, so did they, but at least they had an awful time together. Went to Wroclav for a final fling with friends. There it was warm, full of light, and colourful. Got into a negative state of mind which I couldn’t shake, still don’t know why. Screwed that one up. Was given one of the nicest presents I’ve ever received: perfectly chosen for me as a person: “Ich hab’ das Fräulein Helen baden seh’n”. I realized I had done a million things wrong; I realized I had understood a thousand things wrong. I began to realize what was meant by: “They are good people”. I had a way to go. I got on a tram, a train, a bus, a plane, a bus, a train, and then walked around Stockholm. The flags were dangling from the streets, above which the sky was an unblemished blue, and everyone there was beautiful. Got on a ferry, where there was a casino, which was appropriate. Then we were in Tallinn, Estonia. Roll playing again: it was unsure who was Raoul and who was Gonzo. I had never realized how much I relied on BBC news, and how anti-communist Spiderman is. Tallinn looked like a clip from the Simpsons, then the animation from Monty Python, I could feel the lines of the buildings, I could feel them on the edge of my skin. The smells became sounds, the sounds became visions, and everything became a part of me. I became very distant at times, which was necessary, as much distance was going to follow this excursion. The Swedish archipelago is really very beautiful.
Swedish archipelago-on board ferry to Tallin

September

Came back to the British Isles. Spent two hours at Victoria station waiting for my coach: saw two drunken men being chucked out of a pub whilst I dared myself to eat absolutely nothing for as long as possible. Was pleasing for a short while to be able to do the British thing. Arrived in my home town at 4am, and walked over the bridge, looked down at the river where the moon was shinning: that self-same moon that shines just about everywhere. Saw a friend’s bitter disappointment, she is no longer emmigrating to New Zealand. Spent a quality week with my father, unexpectedly, and enjoyed it. Saw the Blackpool illuminations, and went up the tower, like you do. We had fish and chips. Plodded up to London to see my brother doing well. Afterwards there was only stagnancy, and confusion. Perhaps the worst month of the year, perhaps not. Felt as though everyone was happy and I wasn’t, how stupid. Counted down the days till I would be active again, at Warwick this time.

top b
October

Moved into halls at Warwick. Shared three bottles of mock-champagne with my housemates. Stopped speaking to a friend who had gone a step too far. Saw two wonderful Shakespeare plays at Stratford and got more drunk on them than I have on copious amounts of vodka before. Became shockingly jubilant over my studies, and took zeal to a new level. Feared the zeal wouldn’t last so worked harder to make sure it would: is it really zeal if you do that? Was told that the members of ‘Team Shakespeare’ were going to guide me through my final year Shakespeare module, and through ever-changing dimensions of the ‘Shakespace’. Pretended to be German for a night; it worked. Spent a mistaken weekend getting to know the corporate side of myself: a side I’d always hoped didn’t exist. The weekend neither confirmed nor denied this suspicion: it did however make the horror more real to me. Which was really a good thing, as horror is no less real if it is not real to me.

November

Wore a suit at a careers event I co-organised. Told a member of the Conservative Party at Warwick I was the president of the Anarchy Society. Saw an all-male production of The Taming of the Shrew during which the lead, wearing a kinky red leather jacket adorned with handcuffs, fell on top of me. Was offered some noodles by the best actor in the play. Spent an entire Saturday afternoon lying on the floor of my room, doubting that I’d do anything worthwhile with my life, and knowing that this self-wallowing would do nothing to help me and was not necessary, but it felt as though I couldn’t move. Saw Bollywood Othello at the cinema: looked forward to it for six weeks.

December

Had two turkey dinners in two days, for which I did no cooking. Rekindled my love for the X-Files, watching them after eating stew: two activities I have not indulged in for a long time. Actually experienced a decent night at the union, some pretty wild drum and bass. Wrote a blog entry trying to explain away the last twelve months, during which I realised how impossible a task it is, to wholly recpature this formative year of mine, but still, had a bitterly-sweet poignant half-hour or so of recollection, and contemplation.


November 29, 2006

Point Grouping

Another part of my project is vectorising point objects on an image. The code for this is fairly simple, but I think I may want to re-use it to improve the line follower.
Points on Line

I am thinking about using the closest “point” as a hint to the next heading to take when following a line.


November 27, 2006

Where is my mind?

Oh, it went away.

For good.


K4rmageddon

Writing about web page http://www.joinees.org/k4/

Random Acts of Kindness

Oxford Street, 2-4pm Saturday 2nd December 2006

Free Hugs!

Just to get you in the mood…


thanks to the blogger who posted this video a while back, but I couldn’t find your post!

November 24, 2006

What's the deal with…

Writing about web page http://en.wikipedia.org/wiki/Keffiyeh

... all aspiring trendistas on campus suddenly sporting the keffiyeh?

I thought it was only unimaginative BoBos, fresh from Portabello and laahk saahriously in keeping with the whole ethnic vibe, who threw them on as if they were just a scarf.

Are they being sold at Topshop? Was Sienna Miller recently seen wearing one? And exactly how many of these people actively campaign on behalf of Palestine?

Hey you gap year students! Just carry round a Guardian and wear a discreet badge like the rest of us pinkos…


November 23, 2006

Line Follower

My initial line follower is working! It was tricky working out which end of a line segment, created by best fitting points, to follow each time. The code is still not perfect since tight hair-pin corners confuse it. The main assumption is that a line only changes direction gradually. So the line follower always try to continue in a direction close to the previous heading.
Here is a sample of a vectorized line (shown in red):
bestfit001

To improve performance when turning sharp corners I think the algorithm needs to be able to look at the image at different levels. Perhaps it can start with a small radius to capture points and grow it a few times to get a sample of possible headings. This would probably require the erasure of “used” points from the image.

In fact maintaining multiple possible paths could make the algorithm more adaptive. This would make junction handling easy. Both routes are taken, only one has to succeed.

Here is the NextSegment function so far:

        public NextSegment (prevPoint : Point, prevLine : Line) : (Point * Point * Line)
            def points = GetColoredPointsInCircle(prevPoint)
            def (centroid, angle) = BestFit(points)

            def rCosA = Cos(angle) * _radius
            def rSinA = Sin(angle) * _radius
            def startPoint = Point(centroid.X - rCosA, centroid.Y - rSinA)
            def endPoint = Point(centroid.X + rCosA, centroid.Y + rSinA)
            def line = Line(startPoint, endPoint)

            def betterStartPoint = match (line.Intersect(prevLine))
                | Line.Intersection.Point (pt) =>
                    if (PointInLineSegment(pt, startPoint, endPoint))
                        pt    
                    else
                        prevPoint
                | Line.Intersection.Parallel =>
                    prevPoint
                | Line.Intersection.Coincident =>
                    prevPoint

            def (next,l) = if (Abs(prevLine.AngleTo(line)) > PI/2)
                (startPoint, Line(line.Point2, line.Point1))
            else
                (endPoint, line)

            _finished =  (next.DistanceTo(_end) < _radius)
            (betterStartPoint, next, l)

The code to choose the correct next point on the polyline is a bit of hack. Basically it has to flip the best fit “line” as well to ensure the heading is maintained. This block will be changed in future versions to include the multiple branching.


Moving house (I wish I was)

I need to move. The urge is as strong as the one that makes geese fly stupid distances to warmer climes over the winter. So far after aaages of looking I’ve found a place not only nearby but over a pub and it’s free! woo-ha! (in return for a little barwork which I couldn’t care less about). Hot damn ladies and gents, hot damn. unfortunately it’s for two, but I don’t think my aura will count as another unit of Mia. So the search continues, but what an awesome find eh? Can’t wait to get job and consequently get money’d. rah.

xxx