Tales From An Unchecked Mind

A Blog By Daniel Kennett

The Bike Shop, the Birthday and the Averted Disaster

I’m a country boy by heart — I grew up in a hamlet in Derbyshire with only 13 houses in it, then moved Down South to Hertfordshire and after a couple of moves, ended up in a small village in Bedfordshire that was surrounded by fields and trees.

Moving this close to a city — not to mention one in a foreign country — has taken some getting used to. Thankfully Stockholm is very small as cities go, and it’s a beautiful city at that. I’ve grown to love it here, and am finally starting to figure out that although Stockholm is small, it is the capital city of Sweden, so it’s very likely that if I want something I can find it nearby. However, most of the stores I’ve found are big-city style fancy shops — everything is expansive and the staff don’t know squat.

Finally I found a place that’s different, and just in time!

The Bike Shop

It’s a rainy March afternoon and I’m scuttling through Södermalm (a district of Stockholm), cursing myself for not bringing a coat to work. I’d just received some new parts for my bike from a big box retailer and realised that I needed a specific tool fit them. I found a close-ish bike shop that looked halfway decent, and headed out in hope they’d even heard of a HollowTech II BB Tool, let alone have it in stock.

I opened the door to the small looking-shop and stood there in shock. And wet. But mostly in shock — this place was nirvana. To the right, the walls were jam-packed full of bike parts and accessories literally up to the ceiling. To the left are hundreds of bikes of all kinds — from the road bikes that most bike shops I’ve tried specialise in to the mountain bikes I love and crave parts and expertise in.

Do you have a HollowTech II BB tool in stock?” I ask, with not much hope.

Well, be don’t have the Park one in, but we do have this other one that’s just as good,” the guy behind the counter says while rummaging through shelves before producing the tool I need.

Well, this is unexpected. In a distant, grey corner of Södermalm I’ve stumbled on what appears to be the perfect bike shop — packed to bursting with parts and tools for my bike, not those damn hipster things, at a reasonable price and, most importantly, with staff who seem to be knowledgable at the task at hand. I’m in love!

The Birthday

Is there anything else I can help you with?

I pause for a moment to think. I had considered ordering this from a big retailer in the UK, but for stuff this big I really prefer getting it from a local place, but had come up fruitless so far.

How much would a Specialized Myka FSR Comp in ‘Small’ be? I’m buying one for my fiancé for her 25th birthday.

We don’t have it in stock here, but we could have one in a week or so,” he said, before telling me the price. It’s a buttload of money, but actually worked out cheaper than any UK prices I’d found so far.

Great!” I say. ”I’ll have one of those, too.

He looked slightly surprised at selling a bike so easily, and started taking my details.

~ One week later ~

After getting lost twice and likely scaring my friend Rick half to death — I’m so worried Alana will see through my weak excuse for going into Stockholm without her, my driving is less than ideal — we arrive back at Södermalm to pick up the bike.

To my surprise, the same guy is there again.

I didn’t know how heavy your fiancé is, so I set up the suspension for the average sort of weight of someone that high. Once she gets the bike, you can come back and we’ll set it up properly for her, if you like.” At this point I’m gazing over the wall of parts again, fairly sure I’ll never need any other bike shop ever again, but assure him I already have the tools to set the suspension up myself and thank him for putting the bike together so quickly (it’d only arrived the day before, but he was sympathetic to my cause) and was on my way.

Hey look, a bike! And Rick’s arm.

~ Two weeks later ~

Surprise!

The Averted Disaster

My fiancé loves her bike. It’s been living in my friend’s apartment since I picked it up, and as I look it over properly for the first time, my heart begins to sink. The rebound on the rear shock absorber is so slow it’s like it has no pressure in it — when you push the bike down onto its suspension, it takes a good thirty seconds to come up again. I check the pressure — it’s fine. However, the rebound adjuster seems to be stuck and I don’t know enough about how shock absorbers to fix it.

Me and my fiancé are driving back to Södermalm to be at the shop for opening time. We walk in to find the same guy yet again.

Hi, I picked this bike up a couple of weeks ago,” I say, ”and I think there’s something wrong with it — look.” I push the suspension down and show him the problem.

Oh, that’s not right!” he says. ”Unfortunately if the shock is broken there’s nothing I can do until Monday — the supplier is closed at weekends.

My heart sinks. I’d spent so much time organising not just getting the bike in secret, but organising a bunch of her friends to contribute towards it and to take photos saying ‘Happy Birthday!’ for a photo book to accompany it. I go pretty much silent, as is often the case when I get upset. All this effort for a broken gift!

Oh, it’s your birthday, right?” he says, turning to my fiancé. ”I’m so sorry I ruined the surprise!

Cheered up slightly by the fact that he remembered my plan, I ask ”Is there any chance you could take it apart today to see if it’s just stuck or something?” It’s a long shot, but I really want my fiancé to have a working bike on her birthday.

Of course!” he says.

The drive back home is silent. I’m back to being grumpy about the whole thing, and my fiancé’s attempts at cheering me up aren’t really doing much. After a horrible fifteen minutes, we’re 200 metres from home and her phone rings. They’d fixed it! We turned around and drove back to the shop.

~Fifteen minutes later~

Back at the shop, it’s packed. There’s a queue out the door to be served by one of the two people working there, and when it’s our turn, the same guy I’d worked with this whole time (I really should learn his name!) explained that the rear shock had simply got stuck in the lowest position and when he’d taken it out of the bike’s frame and re-pressurised it, it’d popped right back into position and was working fine.

I turn slightly red, realising that that might’ve been my fault — I’d sat on the bike after picking it up, which was the equivalent of trying to support a tank with car suspension. Genuinely happy again, I thanked him for fixing the bike so quickly — especially when it was this busy — and started to leave.

Okay, let’s get this bike properly set up for you,” he says to my fiancé and motions us to follow him as he carries the bike down a tiny staircase to the basement, which turns out to be a workshop at least as large as the shop upstairs! In the next twenty minutes he proceeds to set up the bike exactly for my fiancé, from the pressures in the suspension to the rebound rate and even cutting the seat post down a bit (she’s slightly… vertically challenged). We end up leaving the shop with a perfectly tuned bike and a free water bottle for our trouble.

This bike shop is the kind of local business I will gladly pay the slight price increase over big-box online retailers to. To recap:

  • I dealt with the same person every time, who was technically knowledgable and remembered me and my plan over the month it all took place in.

  • When something went wrong, not only did he bend over backwards to help us out in what I imagine is the busiest time of the week for the store, he took the time to make sure the bike was perfectly set up in every way once the problem was fixed.

I can’t remember the last time I’ve experienced customer service this good — they managed to turn having my fiancé’s gift broken on her birthday into two incredibly happy people. That place has me as a customer for life! Everyone should go to Cykelspecialisten on Långholmsgatan, Södermalm RIGHT NOW and buy LOTS OF BIKES.

I’ll have a Specialized StumpJumper FSR Comp EVO, please!

Core Audio: AUGraph Basics in CocoaLibSpotify

Core Audio is one of the trickier frameworks in the Mac and iOS arsenal, but is incredibly powerful once you manage to tame it. I’ve been spending some time at Spotify getting to grips with it, and have released some Core Audio code as part of the open-source CocoaLibSpotify library.

CocoaLibSpotify is an Objective-C wrapper around the libSpotify library, which is a C API providing access to Spotify’s service for music streaming, playlists, etc etc. A more advanced example of what you can do with (Cocoa)LibSpotify is my open-source Viva Spotify client.

CocoaLibSpotify contains a class called SPCoreAudioController that deals with getting audio data from libSpotify, through a Core Audio AUGraph and to the system audio output. The class also provides an easy way of customising the graph, and this post discusses the basics of Core Audio, AUGraph, and customising SPCoreAudioController with a 10-band graphic equalizier.

Note: While this post discusses Spotify technologies, I wrote this because I enjoy the topic at hand and thought it’d be nice to share. The opinions expressed here may not represent those of Spotify, etc etc.

Push vs. Pull

Core Audio and libSpotify have two opposing methods of dealing with audio data.

  • libSpotify uses the “push” method, which basically means it says “Here is some audio data, you should play it!”

  • Core Audio uses the opposite “pull” method, which means it asks “I need to play some audio, can I have some?”

This means that, unfortunately, we can’t simply hook libSpotify up to Core Audio and get playback happening. Instead, we need to store the audio provided by libSpotify into a buffer which we’ll then read from when Core Audio requests some audio data.

To solve this in an elegant manner, CocoaLibSpotify includes a ring buffer, which is a special kind of buffer that allows data to be read and written to is without reallocating memory, which can be expensive.

Audio Units and AUGraph

Core Audio uses a concept of “units” when working with audio. Each unit carries out a single task, such as applying an effect or actually playing the audio. AUGraph then provides a way to chain Audio Units together, much like how an amplifier stack works in the physical world.

To simplify this for most use cases, CocoaLibSpotify includes a class called SPCoreAudioController, which implements an AUGraph with three nodes:

  • Converter Node: Takes audio as delivered from libSpotify from the ring buffer and converts it into the canonical format used by Core Audio.

  • Mixer Node: Mixers are normally used to mix audio from multiple sources, but here it’s used simply to provide the ability to control volume separately from the system volume, since the audio output unit on iOS doesn’t provide volume control.

  • Output Node: This node takes the completed audio and delivers it to the system’s default audio output.

Once this is up-and-running, SPCoreAudioController is managing an audio chain that looks like this:

Customising SPCoreAudioController

If you want to customise audio playback, SPCoreAudioController includes a handy pair of methods that allow you to insert any AUNode you like into the AUGraph without having to manage the whole graph, making the chain look like this:

So, let’s provide an example that inserts a 10-band graphic EQ into the graph:

Note: The completed sample project can be found on GitHub here.

First, create a new class subclassing SPCoreAudioController - the sample project calls it EQCoreAudioController - then override -connectOutputBus:ofNode:toInputBus:ofNode:inGraph:error:.

In this first example, set up a description of the EQ Audio Unit then have the graph add a node matching that description before getting a reference to the Audio Unit itself so we can set properties on it. Then, it initializes the Audio Unit and sets it to a 10-band EQ.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
@implementation EQCoreAudioController {
    // Keep the node and unit around so we can reference them anytime.
    AUNode eqNode;
    AudioUnit eqUnit;
}

-(BOOL)connectOutputBus:(UInt32)sourceOutputBusNumber
                 ofNode:(AUNode)sourceNode
             toInputBus:(UInt32)destinationInputBusNumber
                 ofNode:(AUNode)destinationNode
                inGraph:(AUGraph)graph
                  error:(NSError **)error {

    // A description for the EQ Device
    AudioComponentDescription eqDescription;
    eqDescription.componentType = kAudioUnitType_Effect;
    eqDescription.componentSubType = kAudioUnitSubType_GraphicEQ;
    eqDescription.componentManufacturer = kAudioUnitManufacturer_Apple;
    eqDescription.componentFlags = 0;
    eqDescription.componentFlagsMask = 0;

    // Add the EQ node to the AUGraph
    AUGraphAddNode(graph, &eqDescription, &eqNode);

    // Get the Audio Unit from the node so we can set properties on it
    AUGraphNodeInfo(graph, eqNode, NULL, &eqUnit);

    // Initialize the audio unit
    AudioUnitInitialize(eqUnit);

    // Set EQ to 10-band
    AudioUnitSetParameter(eqUnit, 10000, kAudioUnitScope_Global, 0, 0.0, 0);

    //... continued in next code snippet.

At this point, our EQ is set up and inserted into the audio controller’s graph. All that’s left to do now is hook it up to the provided source and destination nodes so audio gets piped through it:

1
2
3
4
5
6
7
8
9
10
11
12
    // ... continued from previous code snippet.

    // Connect the output of the provided audio source node to the input of our EQ.
    AUGraphConnectNodeInput(graph, sourceNode, sourceOutputBusNumber, eqNode, 0);

    // Connect the output of our EQ to the input of the provided audio destination node.
    AUGraphConnectNodeInput(graph, eqNode, 0, destinationNode, destinationInputBusNumber);

    return YES;
}

@end

That’s it! The EQ node is now inserted into the AUGraph managed by SPCoreAudioController, which now looks like this:

It’s important to do cleanup as well so we don’t leak memory and cause problems. SPCoreAudioController provides -disposeOfCustomNodesInGraph: to be overridden for just this purpose:

1
2
3
4
5
6
7
8
9
10
-(void)disposeOfCustomNodesInGraph:(AUGraph)graph {

    // Shut down our unit.
    AudioUnitUninitialize(eqUnit);
    eqUnit = NULL;

    // Remove the unit's node from the graph.
    AUGraphRemoveNode(graph, eqNode);
    eqNode = 0;
}

Finishing Up & Adding UI

Now we have an EQ inserted into our Core Audio graph, we need to control the levels! To do this, the sample project implements the following method in EQCoreAudioController, which applies up to ten band values.

1
2
3
4
5
6
7
8
9
10
11
-(void)applyBandsToEQ:(NSArray *)tenBands {

    if (eqUnit == NULL) return;

    // Loop through our bands and update them.
    for (NSUInteger bandIndex = 0; bandIndex < MIN(10, tenBands.count); bandIndex++) {

        Float32 bandValue = [[tenBands objectAtIndex:bandIndex] floatValue];
        AudioUnitSetParameter(eqUnit, bandIndex, kAudioUnitScope_Global, 0, bandValue, 0);
    }
}

The sample project then has ten continuous vertical sliders all hooked up to different IBOutlets but calling the same IBAction. It’s best to set your sliders to range between -12.0 and +12.0 (this is the range iTunes uses in its EQ) otherwise the distortion gets a bit unbearable!

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
-(IBAction)eqSliderDidChange:(id)sender {

    NSMutableArray *bands = [NSMutableArray arrayWithCapacity:10];

    [bands addObject:[NSNumber numberWithFloat:self.eqSlider1.floatValue]];
    [bands addObject:[NSNumber numberWithFloat:self.eqSlider2.floatValue]];
    [bands addObject:[NSNumber numberWithFloat:self.eqSlider3.floatValue]];
    [bands addObject:[NSNumber numberWithFloat:self.eqSlider4.floatValue]];
    [bands addObject:[NSNumber numberWithFloat:self.eqSlider5.floatValue]];
    [bands addObject:[NSNumber numberWithFloat:self.eqSlider6.floatValue]];
    [bands addObject:[NSNumber numberWithFloat:self.eqSlider7.floatValue]];
    [bands addObject:[NSNumber numberWithFloat:self.eqSlider8.floatValue]];
    [bands addObject:[NSNumber numberWithFloat:self.eqSlider9.floatValue]];
    [bands addObject:[NSNumber numberWithFloat:self.eqSlider10.floatValue]];

    [self.audioController applyBandsToEQ:bands];
}

Further Reading

Learning Core Audio: A Hands-On Guide to Audio Programming for Mac and iOS by Chris Adamson and Kevin Avila.

High-Tech Meets Low-Tech: GPS, Topographic Mapping and the Great Outdoors

Software that comes with devices, 90% of the time, isn’t even worth installing. iTunes is almost universally hated. TomTom HOME is awful. Anything written by Sony makes me want to throw my computer out the window.

Yes! Sony’s PS Vita software seeing double and not communicating it very well.

This is why I’ve had this expensive GPS unit — a Garmin Colorado — strapped to my bike for nearly four years and I’ve barely even looked at the software. In 2008, Garmin’s software was largely Windows-only and while the mapping application (MapSource) was certainly powerful, its UI was very late-90s Windows and incredibly unintuitive to use.

I ended up with a set of incredibly detailed topographic maps on a device with a 3” display and nowhere else. I certainly got use out of them, but mainly on the trail with my bike or out hiking, using them to decide which direction to turn when I came to a junction.

A few weeks ago, while researching Gamin’s latest outdoor GPS unit, the Garmin Montana, I discovered they’d released a Mac version of their newer mapping application, BaseCamp. I decided to give it a try and it instantly increased the value of topographic maps ten-fold, and has completely transformed cycling and hiking for the better.

You PAY for maps?! But Google Maps is free!

As I was tweeting about this as I was researching it, someone derisively pointed out that “There’s an app for that!”, likely free. And sure, topographic maps are expensive — the maps on my device that cover the section of Sweden I’m in (roughly 1/4 of the country) cost $199. However, Google Maps doesn’t even come close to offering the level of detail these maps do, and while OpenStreetMap is better in my area they still don’t match the quality and level-of-detail of these proper maps. Oh, and there’s no way in hell I’m strapping an iPhone to my bike’s handlebars!

Google Maps on the left, 1:50,000 Topographic map on the right.

This path is on the topographic maps!

Using Garmin BaseCamp and Good Maps for Fun and Adventure

So, why is this so awesome? Well, BaseCamp has a superb map display, allowing you to virtually explore the paths and trails with ease and import logs of recent hikes and bikerides to be shown on the map.

BaseCamp’s Map Display, overlaid with a track of a recent bikeride (magenta).

The software comes into its own when planning where to go, though. You can draw out potential routes on the maps and you’ll be given standard stuff like distance, but also a height map of the route. This is invaluable for planning outdoor treks — the route shown above was great fun because as the height map below shows, it’s paced nicely with each steep uphill part followed with a rest, and running it in reverse on the way home has a nice long downhill section to finish on.

BaseCamp’s Height Map

As the quest to go snowboarding continues, this workflow is really helping me explore the countryside on my bike and have a lot of fun doing it. We’re going to the French Alps in the summer, and I’m really looking forward to getting maps of the area and going on some epic bikerides!

Public Shaming: The Only Way

Let’s be honest from the outset — I’m a big fat guy. During my third year at University (which was actually a placement year) I got an office job and piled on the weight stupidly fast. At one point I was so worried about it that I went to the doctor to get advice on how to best get healthy again. He did a couple of tests and said that I was fine, and that if I really wanted to lose weight, I should do it slowly rather than crash dieting.

Of course, I stopped worrying and “slowly” became “nothing”, and I’ve been more or less a constant weight ever since. In fact, according to the Wii Fit, I’ve lost 6lbs in the past 617 days.

The problem is, I really enjoy the outdoors. I love hiking, cycling and more recently snowboarding, and being a big fat guy kinda gets in the way of that. Like many people, every year or so I vow that I’ll cycle and walk more, reduce my cake intake and generally get fitter. And, like most of those people, I fail pretty hard at changing my bad habits.

Me, right, cycling at the Nürburgring with friends

This Time, I Mean It — But Not Like Those Other Times I Said “This Time, I Mean It”

The problem is setting goals. I hate the gym and don’t care about my weight in that I have no interest in getting to some arbitrary number. I can already walk and cycle to some degree, so goals like “I should be able to cycle x kilometres” ends up being another arbitrary goal I don’t have much interest in.

However, I’ve found a new activity I really care about, and that I currently can’t do very well — sliding down the side of a mountain on a plank of wood! A year or so before we moved to Sweden, my fiancé and I took some skiing and snowboarding lessons and got proficient enough to tackle a mountain. As luck would have it, my mother lives literally twenty minutes drives from Risoul, a ski resort in the French Alps, so off we went for some mountainside action!

I absolutely adore snowboarding — I could’ve stayed there all week. Except that’s the problem — I don’t have the stamina to keep my ample frame upright on a snowboard for more than a day, and after that I started to get exhausted very fast, causing me to fall over more, causing me to get exhausted even faster.

I fell over a LOT.

There’s Nothing Like Public Shaming To Spur Motivation

I’m writing about this plan here simply so it’s out in the public domain — if I fail, my friends and internet strangers have full permission to mock me mercilessly.

The Goal: To be fit enough to go snowboarding in winter 2012/13 and have a damn good time.

The Plan: I’ve bought a FitBit to allow me to keep track of my daily activity. The software has a “Trainer” that slowly ramps up your activity targets over time, allowing me to increase my daily exercise levels in a way that doesn’t impact my daily routine. In addition, I’ll have a few of my friends set targets to meet that the software might not think of, as well as trying my hardest to cycle more.

And damnit, I’ll cut down on Coke/Pepsi/etc once and for all — which will be the hardest thing to do since there’s a fridge full of the damn stuff at work — for FREE!

So, friends and internet strangers — if I fail again, at least I’ll be doing it publicly so you can all yell at me for being a lazy bum.

Feel free to shout motivation and/or helpful goals to aim for - I’m @iKenndac on Twitter. A nice one a friend of mine suggested today was, given x as the number of weeks since you started, do 2x pushups each morning. In the first week it’s just two, which is nothing — but after a few months it really starts to add up!

PS Vita Mini-Review and UI Discussion

Dragons LOVE Rayman!

Thursday morning. It’s cold and wet, and me and three friends are trudging round Stockholm to pick up the PS Vita consoles they wanted. “I’m not going to get one!” I proudly proclaim, “I have a PSP and never play on it, and Sony have never made good software. Ever!”

“True!” they agreed, “But the launch lineup looks really good! And look how shiny it is!” I couldn’t disagree — it is shiny.

We get back to the office and Rick boots his Vita. “Would you like to use your PSN account?” it asked. Of course! He put in his details. Confirms that yes, he’d like to use his account. “Please wait…”.

“You need to update your Vita to the latest software version to sign into PSN.” A single button — OK. At this point, the Vita is back one step, at “Are you sure?”. We’re now stuck in the first-boot tutorial with no way forward. After a couple of minutes, we figure out that you need to go back two steps, answer No to “Would you like to use your PSN account?” then tell it your date of birth and country to get out of the tutorial and update the software.

I sit, piling a McDonald’s Big Mac into my face, happy about my decision to not buy one. Sony’s software is as bad as ever! However, as Rick starts navigating around the device, it doesn’t look that bad.

You’ll see this a LOT.

The Downfall

I start to feel a bit woozy. Thinking that perhaps inhaling a Big Mac in less than a minute wasn’t such a smart idea, I head back to my desk to carry on work. After ten minutes, staying upright in my chair is becoming a challenge and I remember that the hole where I had a tooth removed the week previous felt a bit… funny. I head home, go to the dentist to get told that my mouth is infected “a bit”, that I’ll need to double the use of the antibacterial mouthwash stuff I got last week, and that I’ll just have to put up with being dizzy for a while.

I return home, feeling rather sorry for myself. Confirm with my team lead that it’s OK to work from home for the rest of the week since while falling over a lot is hilarious to begin with, its gets old fast. Work for a little while. Porting Objective-C code to C++ starts draining my soul. Now I’m even more sad.

Hey, look! The Vita is only 1990kr at Elgiganten! That’s cheaper than Amazon UK!

FINALLY The Review!

I’m not going to do a full review here. You can find a hundred of them online, so I’ll just sum up my opinions:

  • The screen is beautiful.
  • Proprietary memory cards and connectors are the spawn of Satan himself.
  • Rayman Origins and Wipeout 2048 are the most beautiful mobile games I’ve ever seen.

Rayman Origins.

Oh, and the Mac software for connecting to the device is as awful as you might expect. It took 1.5Gb of RAM on my machine, then popped up this when I connected my Vita:

…so that got deleted pretty much right away.

What intrigues me most, though, about the Vita is the “home screen” menu system and multi-tasking UI, and the way it deals with the fact that only one “real” process can be active at a time. I really quite like the concepts they’ve employed, and this discussion will be looking past the stupid stuff Sony likes to do (like three separate “Please Wait…” dialogs when you sign into PSN) in favour of the overall flow of things.

A basic overview of the UI:

  • The Vita displays applications as pebbles on a vertically scrolling grid. Each “screen” can hold ten pebbles, which can be moved around freely.

  • When you tap an application’s pebble, its card is loaded and added to the stack, which scrolls horizonally. The main button on this card will launch or resume the application, so getting from the home screen to your application is at least two taps.

  • An application’s card is customisable - each card has a button to launch or resume the application, as well as a optionally other buttons to launch to specific parts of the application, read the manual, visit related websites, and so on.

  • Only one major application can be active at a time. If you press the PS button in an application you’ll be sent back to the home screen and can browse the web, do social stuff and so on. If you try to launch another major application, the Vita will warn you that the other one will be closed.

  • Up to six cards can remain in the stack. If you want to remove a card from the stack, grab the top right-hand corner of it and rip it off the screen - this will remove the card and completely quit the application if it’s still running.

Application pebbles.

The PSN Store’s card, featuring buttons for categories and current “trending” games.

In Action

While that sounds like a complicated UI, it actually works really well in real-world use and I’m very fond of it. The cards allow applications to show useful information without actually launching the app, and tearing a card out of the stack has a wonderful feel. Navigating around the system to find what you need is slick and fast.

Below is a video of the stacks UI, which shows the first-world problem shiny, glossy devices bring - very visible dust!

Only time will tell, but I’m really enjoying the experience with the Vita - the games are fun to play and absolutely gorgeous, and the hardware is beautiful. Hopefully it’ll stand the test of time better than the PSP.

Weekend Project: Aperture Export Plugin for 500px.com

500px.com is a pretty awesome new(ish) photo site. I really prefer its layout and display of photos over Flickr, in part because it simply displays the photos bigger, and the photos are the most important thing!

They’ve been saying for a while now that an official Aperture Export plugin is coming, and there seems to be a lot of demand. Well, I got bored of them taking their sweet-ass time and threw together my own.

It requires Mac OS X 10.7 (Lion) and Aperture 3.x, and do bear in mind that I made this in less than 48 hours, so it may be buggy and it’s certainly light on features. But, it gets my photos directly from Aperture into 500px, so I’m happy!

You can find out more and download the plugin from GitHub. Enjoy!

Oh, and if anyone loves this plugin so much that they want to get me a gift, well, gifting me a year’s worth of awesome would certainly be appreciated!

Keeping My Feet on the Ground

A few weeks ago, my friend came to visit me from the UK. He’s quite the photography enthusiast, and while he was here he fell in love with my Canon EF 24-105mm f/4 L lens. By the time we left for our road trip to the UK, he’d already ordered a similar lens and very kindly gave his Canon EF-S 17-85mm lens to my fiancé since his new one would be replacing it.

Two days after we arrive in the UK, the lens my friend gave us stuck at 17mm and wouldn’t budge. I felt super-bad about this, even though it turned out it was a common problem with this lens.

Still feeling bad about breaking my friend’s lens, I dived right into the tutorial and tried to fix it! Lenses are incredibly intricate, and my first attempt wasn’t so successful - I’d fixed the zoom sticking, but now the focus didn’t work!

Take Two

Tonight, I tried to fix it again, and was successful! The lens’ zoom is a smooth as ever and the focus works too. I was ecstatic, and I looked down to see my dog staring at me with glee, raising his paw as if to say “HIGH FIVE bro, you tha man!”

A couple of seconds later I realised he was actually trying to say “Damnit I’m hungry - give me food!” Still pleased with my dexterity and skill, I went to the kitchen to distribute food for him and ended up with, well, a less than optimal result.

I guess there’s no brain surgery in my future after all.

Me Time

Recently I’ve fallen into a common routine - I’ll arrive home from work between six and seven in the evening, slump down on the sofa for a rest, eat dinner, then faff around on the computer for a bit. Next thing I know, it’s 11pm and bed time.

This routine is lovely and lazy, but isn’t really helping me get stuff done - I have a ton of side projects, I want to play my guitar, I want to occasionally spend time listening to music as a primary activity (rather than in the background while I’m doing something else), etc etc.

It’s also been very easy to fall into the trap of thinking I simply don’t have time to do all these things - I mean, I get home, eat dinner, spend a small amount of time on the computer and now it’s bed time!

Be Selfish!

Recently, I’ve been trialling having an enforced “me time” - one hour per weekday, in the evening, where I’ll stop what I’m doing (within reason!) and go and do one of the above things.

So far, it’s working out really well. I’m fortunate to live in an apartment large enough to have a room available for filling with the kind of toys required for this - so far it’s decked out with a model railway, a fairly decent audio system and a small guitar rack with an amp. Best of all, it’s right at the opposite end of the apartment to the living room and above the entrance hall to the building, meaning I can make a racket without bothering my fiancé or anyone else.

Now I’ve settled into the routine - I’ve been doing this for a couple of weeks now - I’m actually finding that I’m enjoying my evenings way more and I still have plenty of time to do the things I’d normally do anyway - I can eat dinner, faff around on the computer a bit, play World of Warcraft with my fiancé and still have an hour for Me Time. My fiancé heartily approves because it means she can watch her crappy girl TV without me complaining about it.

So, if you’re finding you don’t have time to do the things you’d like to do in your spare time - I’d thoroughly recommend giving an hour of forced “me time” a try - it doesn’t even have to be every day!

Nerd Week: On Roleplaying

I was fortunate enough to be able to have the week between Christmas and New Year off work, and I dedicated the entire week to nerdly persuits. I sense a new tradition coming on! One of the things I did this week was start playing Dungeons and Dragons, which sparked off a thought about how I play games.

There are two reasons why I play games. Only two, and almost by definition they’re mutually exclusive:

  1. Because the game is a fun, normally multiplayer, pick-up-and go action/platformer.
  2. Because the game has an involving storyline I can engross myself in.

Part of my personality is that I get way too attached to characters in a good story, especially in films and TV shows. Up? Cried. Twice. At the start. That episode of Bones when Brennan and Booth finally tell each other how they feel, but decide to keep apart because they work together? Floods of tears.

This invariably moves over to video games, when the story is good. Unfortunately, video game writing is, as a rule, pretty bad - I have a pile of games that I’ve started playing and left after a couple of hours as the storyline simply hasn’t drawn me in at all. A couple of notable exceptions in my mind are Blizzard and Rockstar.

Major Spoilers for the endings of Red Dead Redemption and World of Warcraft: Cataclysm Ahead! You can safely skip these if you don’t want the stories of these games spoiled without missing the main point of this post.

The key, in games, is to get the buildup right. Red Dead Redemption does this very well - the entire storyline is about the main character chasing down an outlaw for the Feds in order to be reunited with his family. In the mission where you finally corner the outlaw and are closing in, the music slowly ramps up in intensity as you ascend the hill towards him. When he’s finally down, you’re free - the Feds let you go, and you spend the next few minutes riding your horse through a sunset-lit forest towards your family as a perfect song plays in the background. It’s such a wonderful moment, and since I got far too attached to this guy I was once again in floods of tears as I get reunited with my family and play through a few missions getting back into the swing of normal life.

Then? The Feds betray you. A bit cliché, to be honest, but I guess it’s time to take them down too. Then? BAM. You’re dead. I was so shocked by this that I missed half of the cutscene afterwards, scrabbling around on Google to confirm that the main character just got killed. I mean, they never kill off the main character!

When the game finally ends, I feel kinda hollow. I’ve spent so long with this character, reuniting him with his family, and it was all for nothing? Should I feel betrayed by Rockstar for doing this? I dunno, but it’s damn good storytelling.

Blizzard are another company who can tell an excellent story, and in the case of World of Warcraft, the story is even optional. The buildup to Cataclysm’s ending has been literally a year in the making, and a great example of the optional story. If you don’t care about story, you get:

  • Dragon burns down your capital city, tears up the world, kills your friends.
  • Dragon spends a year or so taunting you while you take down his cronies.
  • You finally kill Dragon. Hooray!

… and the whole thing is thoroughly enjoyable. If you do care about story, though, there’s a huge, deep, subplot involving the dragon forming a cult to infiltrate the upper powers of the land, twisting them to his will.

End Spoilers!

You Play World of Warcraft?!

The interesting thing about enjoying the story in video games is that a lot of people see them as children’s toys or nerd obsessions. It’s completely normal to sit and read about adventures in a fantasy world in a book, but from a game? I actually find that older generations can understand it better than younger generations who grew up in schools where computers were using by “the nerdy kids” while they ran around kicking balls around feeling all masculine.

This mentality is even present in my place of work, which is kinda surprising since I work at a tech company with a very high level of tech-savvy people. We were eating lunch one day when I was discussing Dungeons and Dragons with a friend. I’ve never played it, but I’d love to try, and my friend was the same. Someone else on the table whom I’d never met before cried “Dungeons and Dragons?! Oh my God, you guys are such nerds! Next you’ll be telling me that you play World of Warcraft!”. The rest of the table simply sat there staring at him in stunned silence, partly because it’s the first time we’d heard the word “nerd” used as an insult from one of our own, and partly because they all played either Dungeons and Dragons, World of Warcraft, something else similar, or all three.

The Inevitable Happens

I am completely invested in the story of the Warcraft universe and the characters within. I hate Garrosh for killing Cairne. I’m angry at Varian for acting like a complete asshole while his son grows out of him and looks destined to become a greater king than he’ll ever be. I was absolutely devastated with what happened to the Dragon Aspects after we killed Deathwing.

This passion for storytelling and living the story through games is what’s drawing me to Dungeons and Dragons. I was joking around yesterday and started making up a story about a dragon called Sid who was lonely and wanted to make friends with the local villagers, only to be chased out of town after he hiccupped and accidentally burned a family’s house down. After I’d finished telling the stupid story (Sid brought the hungry villagers some sheep he’d been keeping in his cave and won their friendship), I carried on thinking about the world this dragon might live in, the people in there, the geography of the place and so on.

I’d like to think this would make me a good Dungeon Master in D&D - the idea of leading others through a world and stories I help create sounds very appealing. So, the other day I picked up a D&D Starter Kit and started playing through it.

A few friends are also interesting in playing, so hopefully this will amount to something good!

Tales From an Unchecked Mind

I’ve been getting bored of my old domain, danielkennett.org, for a while. It’s long and boring, and is pretty much the only thing online that uses my real name. I don’t mind my real name being common online, but since I’m iKenndac on more or less every service I’m a member of, having my website be different seemed a bit weird.

A couple of weeks ago, I registered a nifty new domain: ikennd.ac. It’s perfect - short, sweet, and to the point. The problem is, though, that my blog had a big “danielkennett.org” logo on the top of it, and no other title or strapline. Replacing it with an “ikennd.ac” logo seems silly since I’ll be keeping the danielkennett.org domain alive for linking, and I was stumped.

That is, until today. A superb conversation popped up on Spotify’s internal IRC from Tobi, one of the designers, a slightly trimmed version of which I present here (I’m dan):

  • tobi: RIGHT
  • tobi: Time for weird theory
  • tobi: WHAT IF
  • tobi: “broken” was spelled “borken” from the beginning
  • dan: ?!
  • tobi: Then to enforce that something was broken, they broke the word
  • tobi: IE, they spelled “borken” -> “broken”
  • dan: But if it was spelled that way from the beginning, it wouldn’t be broken
  • dan: “borken” would be correct
  • tobi: yes, borken would be correct
  • tobi: NOWADAYS “broken” is correct
  • tobi: and borken is broken
  • tobi: but it may be turning back!
  • dan: And then hundreds of years later, people like you would be all “WHAT IF they spelled it ‘broken’ to break the word?!?!”
  • tobi: Exactly
  • dan: I should make a book of Tobi’s “theories”
  • tobi: dan: Best book ever
  • dan: Call it “Tales of an unchecked mind”
  • dan: HOLY SHIT
  • dan: http://www.google.com/search?&q=%22tales+of+an+unchecked+mind%22
  • dan: DIBS
  • tobi: dan: hahaha
  • dan: I can’t believe I came up with a unique title of something that sounds somewhat good
  • dan: That’s totally being my blog’s title :-P
  • tobi: :-D
  • tobi: dan: butbutbutbut I should use that!
  • dan: Too late
  • tobi: you don’t have weird enough theories
  • dan: COPYRIGHT
  • dan: ©

In it, I spontaneously came up with the phrase “Tales of an unchecked mind”, which is both a cheesy tagline and perfect for a blog, but more importantly at the time of writing had ZERO results on Google when the exact phrase was entered!

I changed it slightly to “Tales From An Unchecked Mind” and am now using it as the title for my blog. I’ve been wanting to make my blog more personal for a while now, including more writing about non-tech stuff along with an about.me-style page with my bio on it, and I think the new title will fit well.