1. Inspired by http://botanicamathematica.wordpress.com/2013/03/06/introduction-to-l-systems/#more-47 I hacked together this version which uses D3 to connect together layers of nodes, each one being generated from the inner layer pattern based on the LSystem rules. Each layer node is connected to its inner parent. The whole thing has some physics added using D3 force layout.

    To play with it, http://mikemoraned.github.io/lSystemsCrochet/ and to fork the code, see https://github.com/mikemoraned/lSystemsCrochet

     
  2. min(weight) = 90.0kg! (gotta work on avg(weight))

    weight snapshot month

    I’ve been doing the 5:2 diet now for around three months now, and just this week my min weight hit 90.0kg! As you can see from above there is a lot of volatility in my measurements; I measure myself every weekday at around the same time, but there is still easily a range of 2kg in the measurements. My fast days are Monday and Thursday, and my weight, unsurprisingly, is lowest after those days.

    If you look at the data since my records began, you see the effect on the weekly average:

    weight snapshot year

    It’ll still be a while before I average below 90kg, but it’s encouraging to see it going down.

    Overall, the fasting days are a lot easier to do than I’d thought. You have 600 calories to spend, and I usually split these between 300 calories for coffee/lattes in the morning and during the day, followed by 300 calories for a meal in the evening. I don’t have much variety in meals; typically it’s some pitta bread with sliced meat. When I do vary, I stick to what I can easily scan into http://www.myfitnesspal.com/

    I chose Mondays and Thursdays as fast days because I don’t do much in the evenings on those days, which makes it easier to stick to. I’ve found I can do exercise on these days too; I’m up to 6 mile runs with no obvious ill-effect.

    On off-days I’ve been taking advantage of “eat what you like” a little too much. The freedom is nice, but to be honest, I do sometimes binge. I don’t think this will ultimately effect whether I will reach my goal, just when. I’ve done around 3kg in 3months, and being down to 87kg by June would be nice, but 85kg would be even nicer!

     
  3. BrowserStack: thumbs up on first minimal try-out.

    I just tried out http://www.browserstack.com/ for testing my minimal IE8/IE9 changes for Nice to have. It’s actually really quite handy. Take my review below with a pinch of salt though, as I only used it for 30 mins. I did a free registration around xmas and forgot about it, so that’s all I had left today! Silly mike.

    All the standard debugging tools are set up (e.g. firebug lite), and you get a single window to play in. You set up a tunnel through a signed app so that it sees your server, choose your OS/browse combo, and your off. You do your edits locally, as normal, using whatever libraries and editor you fancy. It is a bit laggy, but usable, and that could have been my connection to blame.

    It’s around £12 ($19) dollars a month. Given I can set up a VM locally for IE testing if I really need to, that’s not in the range where I’d immediately upgrade to paid, but I’ll definitely consider it next time I’m doing a bunch of IE testing.

     
  4. Brickman Experiment 1

    Best of friends

    I had some fun making snow bricks at the weekend. Technically, Nils was present but it would be unfair to say I was playing with him; “directing”, perhaps.

    So, anyway, obviously you should try to use snow bricks to make a Lego man. Obviously.

    It turns out that moo milk cartons are quite good brick molds if you cut off one side and leave the flap on.

    This one got to the point where I was just about to make a head, but then thought I should defer until later to give me a chance to get Nils interested. Unfortunately, headlessness was the least of its problems: it fell over a minute after I came in. Oh well. Looks like balance is gonna be a bigger problem than structural strength.

    Here’s hoping it snows again next weekend!

     
  5. Reading the Tea Leaves

    When I was at Amazon I looked at a lot of graphs. Graphs of hits, graphs of cpu, graphs of all sorts of shit. Graphs are great, I loves them. However, the problem is that if you aren’t in a habit of looking at the relevant graphs every day, and then something happens, you’re faced with the problem of deciding what’s normal. It is so easy to find patterns, especially if you have a good reason to think something important is happening (either for a good or bad reason).

    I’m reminded of all this when I happen on a GeoCities-tastic page like this: http://www.trading-naked.com/headandshouldersREVERSE.htm I am no stock expert but I’m willing to bet the patterns he is using are tenuous at best. Then again, maybe the market wouldn’t work without people like him?

     
  6. Resources for a designer transitioning from print to the web?

    A friend of mine who has a background in print design (copy, layout, some photography) is wanting to move his skills over into web design. I am most definitely on the other-side of this divide, so I asked another web designer friend what resources (website/book/whatever) they’d recommend:

    I think that’s a good start I’ve purposely left out any core design as he should have a solid foundation in that already

    Any more recommendations?

     
  7. “Nice to have” v0.0000001

    Ugh. Enough holiday hacking for now. I had an idea for an app a few weeks ago, and finally had some time between xmas celebrations to hack up a first version. Here it is: http://nicetohave.houseofmoran.com/ (source: https://github.com/mikemoraned/nicetohave-app)

    I’m not gonna talk much more about it until I’ve dog-fooded it a bit myself for my own personal backlog. Feel free to use it though, I always appreciate feedback.

    For now, I’ll just leave some links which helped me to write it.

    Trello:

    https://trello.com/docs/gettingstarted/clientjs.html http://jsfiddle.net/E4rLn/ https://trello.com/docs/gettingstarted/index.html https://trello.com/docs/api/card/index.html#put-1-cards-card-id-or-shortlink-pos

    D3:

    Scales: http://www.jeromecukier.net/blog/2011/08/11/d3-scales-and-color/

    Ordinals aren’t great to work with: https://github.com/mbostock/d3/pull/598

    Brushes/selections: http://people.ucsc.edu/~pmerritt/d3/examples/brush/brush.html http://bl.ocks.org/1667367#index.html

    Knockout custom bindings:

    http://knockoutjs.com/documentation/custom-bindings.html

    Knockout Event bindings:

    http://knockoutjs.com/documentation/event-binding.html

    Twitter bootstrap form examples:

    http://www.w3resource.com/twitter-bootstrap/forms-tutorial.php

    Ejs/express:

    http://robdodson.me/blog/2012/05/31/how-to-use-ejs-in-express/

    Sammy + Knockout example:

    http://learn.knockoutjs.com/WebmailExampleStandalone.html

    “Less” middleware:

    http://www.andyjarrett.co.uk/blog/index.cfm/2012/4/11/Express-Less-and-lessmiddleware

    Annoyances:

    “top” and “left” css attributes don’t work in FF unless you specify a unit i.e. “px”. Why do I always forget this?

     
  8. I got Nils (and myself, mostly) a Lego Mindstorms Kit for xmas. So far, assembly has been fun but programming is tiresome. When following the instructions, it’s very easy to make a little mistake in a number (e.g degrees to turn), and then have to go through it all again to find the mistake. Obviously, I’m not the intended audience, so we’ll see how Nils finds it when he’s old enough.

     
  9. Heed!

    Heed!

    And so, the saga continues, baldie once again.

    Interestingly, this time, I was very conscious of when it started happening. It may just be my imagination, but soon after I got a few midgy (or Mücken) bites in Germany, I noticed my head was a bit itchy. In the following days, the hair loss seemed to accelerate rapidly.

    My hypothesis is that given that aa is an auto-immune disease a reaction to a bite could somehow start my immune system off, but I obviously can’t prove it. However, it’s about as good as any hypothesis I ever heard from my doctor since she basically had no idea. To be fair, she was very apologetic about it.

    Anyway, c’est la vie. Now I can go back to disturbing people by absent-mindedly rubbing my head in meetings ;-)

     
  10. Truth is more depressing than fiction?

    This holiday, I finally finished “The City & The City” by China Miéville.

    My paper version of the Miéville book was a gift. Its hugeness makes it hard to carry, so I never got round to reading it. I bought it again for my Kindle (I wonder how often that happens?). Alongside his newly coined words there are many that lie just outside my vocabulary, so the built-in Kindle dictionary was very handy. Some of his invented words, e.g. “grosstopically” and “toppelganger”, make so much sense. I almost wish I lived in his cleaved world of seeing and unseeing, just so I could use them.

    I’m reading another book of his, Embassytown, right now. It is more outright Science Fiction, and is spattered with new words. A main subject of the book is language, so this richness makes sense in this context, but I imagine I would grow sick of it if the usage wasn’t so relevant.

    I seem to be into a ‘divided city’ shtick this holiday, as I also read Jerusalem by Guy Delisle. A lot of it is just day-to-day errands and looking after his kids; not surprising, given it’s basically a diary. However, it is leavened by the many WTF moments when he encounters another bizarre behaviour of the locals. The strange but rigid rules of movement in The City & The City seem pedestrian in comparison to the complex enforcements in place in Israel and Palestine.

    Delisle isn’t primarily there for journalistic purposes; he mostly just happens to be there with his wife, who works for MSF. This make Delisle a lot softer than other authors, like Sacco. I find it hard to read more than one of Sacco’s books in quick succession. They are lively, in-depth, but simply too depressing.

    However, I haven’t read one of Sacco’s in a while, so it may be time to spend more holiday money on Amazon … recommendations?