Sunday, May 12, 2013

Idea: a remote-controlled car as a modern-day Logo-turtle


Just a random thought.

You could do a modern take on the old Logo turtle-robot, but with a remote-control car whose movement you could program, wirelessly, via a smart-phone or tablet.




If you're not familiar with Logo, the "turtle" was a simple robot on wheels with a pen attached to it.  You sat it down on a big piece of paper and as it moved along the pen traced out its path on the paper.  Logo was the simple programming language used to tell the turtle what to do (e.g. 'move forwards 10 units', 'turn 45 degrees right', 'move forwards 5 units', etc).  You'd write the program then send it to the turtle which would slowly move around according to the commands in your program, and if you programmed it right it could draw out all sorts of shapes and patterns.  The system was for teaching kids the basic concepts behind programming.




A Logo 'turtle'. Image source


But what if instead of the turtle you had a remote-controlled car?  Instead of directly controlling its behaviour with a normal RC controller, you'd control it like the turtle, by writing a program that sets out the movements it should perform.  Specifying this with a smart-phone or tablet would make sense - the instructions could be sent wirelessly to the car.

Compared to the traditional turtle an RC car would be faster, have acceleration and braking, and could travel over rough and varied surfaces.

Instead of being about drawing patterns on paper, it could be about getting the car to successfully navigate the physical environment.  It might be in your backyard, and avoiding trees, going down slopes, traversing small mounds, etc.  Where there's obstacles, the possibility for jumps, and so forth.  Where obstacles could form signposts for a track.

I suspect that, rather than programming it by telling it to move by a certain distance or to turn by a certain number of degrees, you'd want commands like 'move at 75% throttle for 5 seconds' and '50% right turn for 1 second' (where '100% right turn' would mean turn as sharply right as possible, so 50% means turn half as sharply).

The hope would be that kids would find this kind of thing fun.  Rather than having a more abstract goal of drawing certain shapes, they'd have more tangible goals like navigating around the physical space, getting it to do a jump over a curb, etc.  That a remote control car can go pretty fast would hopefully make it more exciting, too.

I would imagine that if a bunch of kids got together and they had several of these cars, they could try and race them or set up some other kind of competition (e.g. trying to get the cars to ram each other, maybe to knock one over).

Electronics are so much cheaper these days, so I imagine that cost or getting the necessary parts to do something like wouldn't be too much of a barrier.  (And if you are wondering whether I have any thoughts about trying it out, I don't.  It'd be nice to try but I'm working on other things at the moment.  Just thought I'd get the idea out there).

----

Of course, there'd be a lot more to think about to think this through properly.  E.g. Logo has the equivalent of procedures, which can be useful for drawing shapes and patterns, and these are a form of abstraction you want to teach.  Would there be some motivation for utilising procedures if the focus wasn't on drawing patterns?


Thursday, May 02, 2013

Allowing wiki-style edits on every single web-page

As everyone knows, anybody can edit any page on Wikipedia.  What if anybody could also make edits on every single page on the internet?

I mean every - a corporate site's 'about' page, their CEO's bio page, the Amazon.com description of a book, a post on someone's personal blog, a news story.  Anything.

Sound crazy?  No doubt about it.  But here's a slightly less crazy way it could be handled:

  • Edits don't change the public version of the page.
      
    • All edits are publicly accessible via a standard [edits] link on each page, and the page owner gets to choose whether to accept, reject or ignore any of them.
        
  • You must log-in with a public identity (Facebook, Google+, etc) to make an edit.
      
    • To help deal with trolls.
Why let anyone edit any page?  For the same reasons Wikipedia does: to allow people to suggest corrections and enhancements.

People like feeling that they've made a contribution, and if their contributions are useful and get taken up that can add to their reputation.   Such a system would help better harness the talent out there.  Or such is the hope.

Some slightly more technical points:
  • The site owner could possibly even mark someone's edits as trolling, where both the edits and who marked them as trolling are public information, and if people's edits across the internet were aggregated it might further discourage trolling.
  • What if the changes a person suggests concern information that comes from a database rather than a static page?  If the page owner thinks it's a good contribution then they'd have to change the relevant data in the database.
Obviously there'd be various technical issues in implementing this.  Presumably these days storage space for the edits wouldn't be much of an issue.  Perhaps the ability for storing each person's edits for a page could be handled by a standard feature of the web-server.  Naturally there'd be issues with how the editing interface is provided, how the edits are described, etc.  This post is more just about the general idea rather than all of the hurdles it'd have to overcome to make it practical.

.

EDIT 5 May 2013: I originally used Wikipedia as a model for this idea.  Github is another model you could think of it in terms of.  On Github you can fork anyone's project to make improvements to it.  Doing so doesn't effect the original project.  You can send the owner of the project a pull-request suggesting for them to incorporate your changes.  They can ignore that if they wish, but if they decide they like your suggested changes they can make use of them.  What I'm suggesting is a standard, structured way for anyone to suggest changes to a web-pages.

Tuesday, April 23, 2013

Things to try: tequila edition


Until recently, my only experience of tequlia had been tequila shots and the 'lip, sip, suck' (salt, tequila, lime) drill.  I didn't know that shots typically used just one type of tequila, and that there are other types with different types of flavours.

Silver (or 'white') tequila is what they normally use in shots.  Silver tequila is un-aged and has a rawer, more vegetal taste.  All the other types are aged.









There's Reposado which is aged for less than a year.  ~AUD$40-50 upwards







Añejo which is aged for one to three years.  ~AUD$70 upwards (often over $100).  There's also an Extra Añejo category, which is aged even longer.





Gold tequila (known as Joven or oro tequila) is a mixture of a silver tequila and an aged tequila.






Trying them.

Reposado tequila has a nice smooth, earthy flavour.  I reckon it goes best 1:1 with some soda water.  The slight bite of soda water suits it (soda water is preferable to mineral water, which is preferable to still water).  You can also sip it straight.

I haven't tried an Añejo yet, but presumably it's similar to a Reposado.

I find Silver tequila goes well with generous amount of soda water and a dash of lime juice, or with tonic water.


Other things.

Watermelon wedges soaked in Reposado tequila tastes great!

If gluten is a problem for you, good quality tequilas are 100% gluten free.  Tequila is made from the blue agave plant, and the good quality tequilas will say "100% blue agave" on the label - these are completely gluten free.  If the label doesn't say that, then the tequila will be a Mixto, which includes other ingredients, and these mightn't be gluten free.  More info.

Oh, and this is what blue agave plants look like:


the 'hearts' of the plants, from which the tequila is made. source.


Wikipedia page on tequila



I'd like a 'Lessons Learnt' episode of Grand Designs


It must be Grand Designs season on this blog, coz this post makes two in a row about the show.

That show's been going for over ten years and they've probably featured around 100 homes.  So what are the lessons learnt?  Are there any lessons to be learnt?  Any common patterns to successes or to failures?  Any other types of patterns (concerning: aesthetics, construction materials, amount or type of planning done, use of experts, etc etc)?

It could make for an interesting episode.

Thursday, April 11, 2013

Visually comparing the different stages of a house's construction


I was just watching the tv show Grand Designs.  It's nice to see the development of a house from plans, through construction to the finished design.

One thing I find, though, is that it's always hard to connect the before and after.  You see the after shot and it's hard to remember what that spot looked like at different stages in the construction, and it made me think about how you make those details more apparent.

They could show the exact same shot -- with the camera in the exact same location, pointing in the exact same direction -- at different points in the house's development, starting with the empty site, when the foundations are up, when the wall frames are up, when the roof and walls are done, and when it's fully furnished.  They could run through them in chronological order, transitioning between them by fading the current one out and at the same time fading the next one in, so you could see a bit more of the relationship between the two.

Such a technique could also be employed on moving shots, such as a shot that sweeps across a room, or one that starts at one end of a long room, facing towards the other end of the room, and then moves towards the other end of the room.  As the camera moves along, the imagery could seamlessly progress between the different stages of the development.

And of course such techniques lend themselves to some sort of interactive presentation on a web-site.  (It makes me think of these interactive before-and-after photos of the recent Brisbane floods.)

Tuesday, January 22, 2013

The perfect martini


At a friend's James Bond-themed party I discovered how much I like martinis.  There's something that really works about that combination of gin, vermouth and olives, making a flavour truly "greater than the sum of its parts".  Afterwards, I set out to try the different variations on martinis to see which ones I liked and which I didn't.  This is what I learned.


Lets look at the three ingredients.


Gin

While gin's the classic base for a martini, some people like to use vodka.  To my taste that's losing out on a lot of flavour - you're basically making a different kind of drink.

It's important to use a reasonably good gin for a martini because it's the main ingredient.  While a cheaper gin can be fine in a Gin & Tonic, because the tonic water has a stronger flavour, it can ruin a martini.  I tried using Vickers gin once and the result wasn't that nice.



Vermouth

Some people have their martinis with none or almost no vermouth - that is, 
they're basically having straight gin.  All I can say is prefer the 
combination of gin and vermouth to just straight gin.

There's three common types of Vermouth
  • Sweet (aka 'Rosso', 'Rosato', 'Italian')
  • Semi-sweet (aka 'Bianco', 'Blanc', 'White')
  • Dry (aka 'French')
Cinzano Rossi Vermouth Martini & Rossi Rosato Vermouth

Cinzano Bianco VermouthMartini & Rossi Bianco Vermouth

Cinzano Extra-dry VermouthMartini & Rossi Extra-dry Vermouth


There's lots of different brands of Vermouth.  Cinzano and Martini & Rossi (labelled just as "Martini") seem to be the most common here in Australia.  The Martini & Rossi sweet vermouth (their 'Rosato') is a noticeably sweeter than the Cinzano sweet vermouth (their 'Rosso').

Most recipes seem to refer to only the sweet and dry vermouths.  The Bianco vermouth is often called a sweet vermouth, but it's less sweet than the Rosso/Rosato.

The different types of vermouth don't just differ in terms of how sweet they are - they each actually have a fairly different flavours.

The Rosso and Bianco vermouths have stronger, more fragrant flavours.  In comparison, I find the flavour of dry vermouth a bit flat.  For me, the Bianco has the nicest flavour.

The classic martini uses dry vermouth, but I actually prefer it with bianco vermouth.  I like its flavour more, and the slight sweetness it adds.

The other thing about vermouth is that it's only around 15% alcohol, so it should be kept in the fridge not on the shelf.  Apparently an opened bottle will maintain its flavour for a month or two in the fridge.



Olives

I skewer three olives on a toothpick and drop that in the glass.  Lemon peel can also be used [2], or even cocktail onions (in which case, the drink is called a Gibson), but I don't think their flavour suits it as well.
[2] to make a lemon-peel twist use a fruit peeler to peel the rind off a lemon.  Start at one end of the lemon and work you way around its circumference in a spiral - just like you would when peeling an apple.  You can get enough peel for several drinks from the one lemon.



Temperature

Martini's taste better very cold, so you want keep all the ingredients cold.  They don't taste that nice if they're only slightly cool.  Keeping in mind that the drink will warm up in your hand and that it'll take a bit of time till you've finished drinking it, you want to get the initial ingredients as cold as possible
  • keep the vermouth in the fridge
  • keep the gin in the freezer
  • keep the martini glass in the freezer



My perfect martini recipe

A ratio of 5:1 of gin to vermouth.
  • 2.5 oz/shots good quality gin
  • 0.5 oz/shots bianco vermouth
  • 3 stuffed olives, skewered on a toothpick.
Add the gin and vermouth and lots of ice (enough to at least cover the liquid) into a cocktail shaker.  Shake vigorously for about thirty seconds. (You can also just stir it for about the same amount of time.  I'm not sure if shaking vs stirring makes much of a difference to the flavour).  One thing this does is adds some water into cocktail.  Pop the olives into a martini glass and then strain the cocktail shaker mix into it.



Variations

  • The best variations I've come across
    • Cranberry martini (tastes good and has quite a nice colour)
      • 2 oz gin : 0.5 oz vermouth : 2 oz cranberry juice
      • Fresh, frozen or dried cranberries for garnish
  • Others
    • Add a little extra olive brine to make a 'Dirty Martini'
    • There's all sorts of variations on the ratio of gin to vermouth. E.g. a 50-50 martini uses equal quantities of gin and vermouth (you could use 1.5 oz/shots of each).
    • Cranberry Lime Martini (this one was a bit sharp for my tastes, but a friend really liked it)
      • 2 gin : 2 freshly squeezed lime juice : 2 parts cranberry juice
      • Lime wedge for garnish
    • Breakfast Martini (thought this one wasn't bad, but didn't think it was that great).
      • 2 gin : 0.75 cointreau : 0.75 lemon juice. plus 5ml orange marmalade
      • orange twist to garnish
    • There's two variants that add orange juice: the Bronx and the Minnehaha.  The difference between them is that they basically switch the vermouth and orange juice ratios.  Personally neither of these did that much for me
      • Bronx
        • 1.5 oz gin : 0.25 oz dry vermouth : 0.25 oz sweet vermouth : 1 oz orange juice
        • Orange slice for garnish
      • Minnehaha
        • 1.05 oz gin : 0.75 oz dry vermouth : 0.75 oz sweet vermouth : 0.25 oz orange juice
    • Marguerite
      • 2 gin : 0.75 dry vermouth. plus a dash orange bitters
      • Lemon twist to garnish
  • Haven't gotten around to trying these variants yet
    • Broadway Martini
      • 3 Gin : 0.5 Creme De Menthe (ideally the clear 'white' type)
      • mint leaves for garnish (optional)
    • Emerson
      • 2 gin : 1 sweet vermouth : 0.5 lemon juice : 0.5 maraschino liqueur
    • Dirty Blues Martini
      • 4 oz gin
      • 6 green olives stuffed with blue cheese
      • 1/4 teaspoon olive juice (adjust to personal taste)




Here's some other ways you can use vermouth
  • bianco goes quite well with equal portions of orange juice.
  • rosso goes well in equal portions with cranberry juice, and well with cola (though seems to be better if you add a larger proportion of cola).
  • dry goes not bad with pineapple juice.
  • and you can use them for cooking.

Monday, December 31, 2012

Gently-Baked Salmon with Cabbage, Bacon, and Dill

This is the "Slow-Roasted Salmon with Cabbage, Bacon, and Dill" recipe from serious eats.


It's quite quick and easy to prepare and tastes fantastic.


I wouldn't have thought it'd be possible to make salmon come out so soft and succulent, but baking it at low temperatures works wonders.  And the mild sweetness of the cabbage cooked with bacon really compliments it.


  • savoy cabbage, 1 head (halved, cored, and roughly chopped)
  • bacon, 6 slices
  • onion, 1, diced
  • water, 1 cup
  • salmon fillets, 4 (4-6 ounces each, skin removed)
  • fresh dill, chopped, 1 teaspoon (plus more for garnish)
  • olive oil, 4 tablespoons 
  • butter, 2 tablespoons
  • lemon juice, from one lemon
  • salt and pepper to taste


Preheat oven to 120 degrees celsius (250°F).

Cook the cabbage
  • In medium saucepan, place bacon and heat over medium. Cook, stirring occasionally, until fat is rendered from bacon and bacon is beginning to crisp.
  • Add onion and cook for an additional minute, then add cabbage and water.
  • Bring to a boil, then simmer until cabbage is tender, 20-25 minutes, adding more liquid if necessary.
  • Once very tender, season with salt, pepper, and half the dill.

Prepare and cook the salmon
  • In the meantime, season salmon fillets with salt and pepper and place salmon on non-stick sheet pan.
  • Drizzle olive oil over fillets, top with half the dill, and finish with small knob of butter.
  • Cook 15-18 minutes for medium rare, or up to 25 minutes for medium, depending on thickness of fish.
  • Remove from oven and drizzle with lemon juice.

Serve
  • Divide cabbage and salmon among plates and garnish with more dill, if desired.
  • Serve immediately.

Books I read in 2012


The best:

Wool - Omnibus edition, by Hugh Howey
Great bit of storytelling


.


Ones that were decent:

We Are All Weird, by Seth Godin
A touch wishy-washy but an interesting, brief look at broad cultural currents.

Rainbows End, by Vernor Vinge
Fairly good, but mainly as a plausible near-future (c 2025) world of pervasive augmented reality & wearable computers.


A number of Kindle Singles, all of which were decent:

My Seinfeld Year, by Fred Stoller
Memoir. A couple of interesting insights into how the writing process for Seinfeld worked.

Gutenberg the Geek, by Jeff Jarvis
A look at Gutenberg as an entrepreneur

Cautionary Tales, by Stephen Tobolowsky
Memoir of bad (but funny) mistakes the author made.

The First Light of Evening, by Mark Ernest Pothier
A day in the life of a guy 3 years after divorce and still dealing with it. Pretty nicely done.

Shakedown, by James Ellroy
Pretty sharply written. Somewhat salicious.


A number of books on ancient Rome, all pretty decent. Working on slowly building up my understanding of history.

Ancient Rome: The Rise and Fall of an Empire, by Simon Baker.
Decent, readable basic overview. Focus mainly on politics and major political figures

The World of Rome, by Michael Grant
This one was a bit less readable than the others, but fairly informative.

Rubicon: The Triumph and the Tragedy of the Roman Republic, by Tom Holland

Julius Caesar, by Philip Freeman

Cicero: The Life and Times of Rome's Greatest Politician, by Anthony Everitt

Antony and Cleopatra, by Adrian Goldsworthy

Augustus: The Life of Rome's First Emperor, by Anthony Everitt


.


Ones I really didn't like. I'd avoid these: 


The Metamorphosis of Prime Intellect, by Roger Williams

Accelerando, by Charles Stross


.


And several that I read bits of but didn't around to finishing. Not because I didn't like them, just didn't get time:

Stop Stealing Dreams, Seth Godin

The Mammoth Book of Best New Science Fiction 23, by Gardner Dozois
I read about 5 stories from this, and didn't think much of most of them.

Pro Git, by Scott Chacon

Poems of Emily Dickinson, series 1, by Emily Dickinson

Tuesday, June 12, 2012

Sweet Red Onion Pasta

This is a Jamie Oliver recipe.  I photocopied it from one of his cookbooks years ago, but I don't know anymore which cookbook it was.

The original recipe is vegetarian, but if you want to include meat some chicken thighs would suit the flavour.  You could add 2 chicken thighs, cut into thin strips.

  • Olive oil
  • Butter, 2 large knobs
  • Onions, 2 white, 3 red (i.e. five in total).
    • Peel and slice
  • Garlic, 1 clove
    • Peel and finely slice
  • Red chilli, 1
    • Finely slice
  • Potatoes, 200g
    • Finely slice
  • Cinnamon, 1/2 a stick
  • Thyme (fresh), small handful
    • Pick the leaves from it
  • Salt
  • Black Pepper
  • Nutmeg, a grating of
  • Fusilli or spaghetti, 450g
  • Chicken or vegetable stock, 250ml
  • Parmesan, grated, 2-3 handfuls of
  • Flat-leaf parsley, a handful of
    • Finely chop

Get a casserole-type pan

Put a drizzle of olive oil and the butter into it.

Slowly fry onions, garlic, chilli and potatoes with the cinnamon stick.  If adding chicken, add the chicken thigh strips now.

Cook slowly for 5 minutes

Then put the lid on and continue cooking for another 5 to 8 minutes until lightly golden (I found I had to cook a lot longer than this).

Add the thyme leaves and season carefully with salt, pepper and a light grating of nutmeg.


Bring a separate pan of salted water to the boil

Add the pasta and cook according to the packet instructions.

Try one of the potatoes to check that it is soft (if not, you've made the slices too thick, but no worries -- just add a little water to the pan and continue cooking until softened).

Drain the pasta, reserving some of the cooking water.

Add the stock to the onions and mush up about half of the potatoes.

Discard the cinnamon stick and season to taste.

Working quickly, toss the pasta with the onions and potatoes, loosening if necessary with a little of the reserved cooking water and add one or two handfuls of Parmesan and the parsley.


When it's all nicely mixed together, serve in warmed bowls.