Monday, 28 March 2011

Sandcastles

I've been reading Sandcastles Made Simple by Lucinda Wierenga, which I bought after reading an extract in The Guardian.

Here's some photos of my initial experiments:









You can see a few more (at higher res) at my sandcastles flickr set.

Tuesday, 25 January 2011

sfBehatPlugin - BDD for symfony

I just installed sfBehatPlugin, a behat plugin for symfony.

Tip: if behat isn't finding the steps that come with sfBehatPlugin and you're getting:


$ behat features/
Feature: auth

Scenario: Index page # features/frontend/auth.feature:3
Given I am on homepage
When I go to /auth
Then Response status code is 200
And I should see "This is a temporary page"

1 scenario (1 undefined)
4 steps (4 undefined)
0.035s

You can implement step definitions for undefined steps with these snippets:

$steps->Given('/^I am on homepage$/', function($world) {
throw new \Everzet\Behat\Exception\Pending();
});

$steps->When('/^I go to /auth$/', function($world) {
throw new \Everzet\Behat\Exception\Pending();
});

$steps->Then('/^Response status code is (\d+)$/', function($world, $arg1) {
throw new \Everzet\Behat\Exception\Pending();
});

$steps->And('/^I should see "([^"]*)"$/', function($world, $arg1) {
throw new \Everzet\Behat\Exception\Pending();
});


Try running it from the root of your symfony project, with no params:

$ behat
Feature: auth

Scenario: Index page # features/frontend/auth.feature:3
Given I am on homepage # features/steps/tester_browser_steps.php:13
When I go to /auth # features/steps/tester_browser_steps.php:17
Then Response status code is 200 # features/steps/tester_response_steps.php:13
And I should see "This is a temporary page" # features/steps/tester_response_steps.php:17

1 scenario (1 passed)
4 steps (4 passed)
0.288s


Thursday, 30 December 2010

Postprocessing scanned crayon images

Postprocessing crayon drawings

I have some scans of crayon drawings, but the colours are washed out (well, the colours are pretty light on paper too):


First, some due dilligence. Google for solutions. (Actually, first fire up GIMP and try a few ideas. But let's pretend I hit the books before hitting the lab).

Lit review:

  1. google'd: post processing scanned crayon drawings - no help, but kids drawing reenacted was entertaining.

  2. google'd: scanning crayon drawings - better, results in a yahoo answers entry... which suggests GIMP. Also a couple of references warning about crayon wax sticking to scanners (I didn't have this problem).

  3. searched flickr for examples in the hope of finding a discussion in comments. Photos tagged with crayon art was the best of the flickr searches. Several people, including Steve brandon, used a camera, rather than a scanner.


Ok, that's enough searching. Let's play with some balances. Here's screenshots of the settings (from GIMP's colour menu) and the changed versions of the image.

original


take 1






take 2





I bumped up blue similarly.


take 3





Applied these settings after inverting the image.


take 4






take 5





I expanded this settings box out to make fine control easier.



In the end I went with the first take, as the least abstract of the bunch.


Tuesday, 28 December 2010

Wednesday, 1 December 2010

The Hive Brisbane, 2010-11-30 - interesting people with exciting projects

I went to a The Hive event today yesterday, featuring Richard Slatter from We Are Hunted.

I enjoyed the event. They talk was good but the best bit of the evening was talking to some interesting people about their exciting projects:

  • The speaker, Richard Slatter, about We Are Hunted (music charts based on online chatter) and the advantages of RERO.

  • Alice and Leo from Davinway Marketing, who are applying agile methodologies to marketing (which is an idea that appeals to me).

  • Mike Boyd, part of The Hive's Brisbane team, who's working on Cupstart, a project that will let you "Order your coffee online using Cupstart and collect it as you arrive". Oh, he also has a survey.

Tuesday, 23 November 2010

WP7 developer signup ToS wordcount

Registering as a developer in order to publish Windows Phone 7 apps involves the following Terms of Use.
(the numbers are approximate word counts).



36752 words total. Word counts are approximate.

From https://users.create.msdn.com/Register/
10935 - App Hub Terms of Use ( http://go.microsoft.com/?linkid=9740471 )
1308 - Xbox LIVE Code of Conduct ( http://www.xbox.com/en-US/legal/codeofconduct )
4751 - Microsoft Online Privacy Notice ( http://go.microsoft.com/?linkid=9740471 )
505 - Microsoft Anti-Spam Policy ( http://privacy.microsoft.com/en-us/anti-spam.mspx )
6316 - Windows Phone Marketplace Application Provider Agreement ( http://go.microsoft.com/?linkid=9739544 )
?? - Refund Policy ( http://create.msdn.com/resources/en-ww/MarketplaceRefundPolicies.pdf - dead link)
3230 - GeoTrust Code Signing Certificate Subscriber Terms
1931 - Xbox LIVE Indie Games game submission agreement
?? - Terms of Use ( http://create.msdn.com/termsofuse - dead link - redirects to register page)
?? - Code of Conduct ( http://create.msdn.com/conduct - dead link)

And then to pay them money:
7776 - Xbox LIVE and Games for Windows LIVE Terms of Use


I didn't count the ToSs for Windows 7, Visual studio, Windows Live etc. I also didn't count every document referenced by another document, just some of them.


Edit: the http://create.msdn.com/termsofuse link is only dead until after you have an account. I still don't count it, because it wasn't something I could read before signing up.

Tuesday, 14 September 2010

Quad Negative

This didn't fail to amused me. From http://210.8.42.125/other/accagr1.shtml :

The User will not use, nor will it sell or make available to any person,
the Information for the purpose of issuing Independent Forecasts or
Warnings unless:
...
(ii) the additional forecasting elements are not inconsistent with the
Bureau's Forecast;


TLDR: Will not ... unless ... not inconsistent