leff

Mr. Webpage

a blog about putting content on the web
Tuesday 22nd May, 2012
Looks cool. has anybody tried it? (via Handlebars.js: Minimal Templating on Steroids)

Looks cool. has anybody tried it? (via Handlebars.js: Minimal Templating on Steroids)

Monday 21st May, 2012

Cutting the mustard

responsivenews:

The browser is a hostile development environment and supporting a wide range of desktop browsers can be tough work.

One of the immediate challenges we discovered when we first started the responsive news prototype was the large range of devices that we would have to support. It terrified us. This article is about a solution we use to alleviate this problem.

Read More

Tuesday 17th April, 2012

hg update

After spending the last 7 or so years in subversion, the switch to mercurial is non-trivial. There’s a lot to un-learn (I still type svn sometimes). 

All the books and tutorials that I’ve read keep making these claims about how mercurial is so easy. Mother-uckers doth protest too much. Sure, the syntax is nice and coherent. But conceptually, in a team environment, mercurial is way more complicated.

In “traditional” client/server version tracking systems, you have exactly two things to think about. Your working copy, and the server’s definitive copy. 2. It’s a nice small number. Easy to think about.

In distributed systems like mercurial, there is no server, except when there is, but it’s just one more copy. I say one more, because the preferred method of working on stuff seems to be making local copies of the repository. Like, lots of them.

So you end up with a bunch of repositories that are similar. They are technically unrelated, but they’re kind of related. So there ends up being a graph of relationships between repositories. They are easy to merge back together, because mercurial is good at merging. But repo-relationship graph just exists in your head, as far as I can tell*. This is the part that’s throwing me the most.

The concepts do have a lot of power, I can see that. I’m just frustrated that it’s been 4 days and I’m not the god Mercury yet. I’ll get there eventually.

* when you clone, mercurial keeps track of where you cloned from. But I’m not sure how I would know that without looking in mercurial’s private .hg directory.

Thursday 8th March, 2012
Make things as semantic as possible, but no semanticer.
— Mr. Webpage.
Tuesday 28th February, 2012

Python + Postgres + Lion = PITA

I have to join the apple developer program just so that I can use python with postgres? That seems a bit silly.

Installing XCode, which is free from the app store, but only after you give them your CC details. And it still doesn’t seem to be enough to get llvm-gcc-4.2. But psycopg2 requires llvm-gcc-4.2. 

Apparently, to get this command line compiler I have to open up xcode prefs and ask for it. A step that requires a full developer program account. Which requires that you validate your CC info and go through a ridiculous multi step form, re-entering your apple id about 12 times on the way.

Then you have to sign up for which track you’re going to be on. I told them I was doing safari work, because it was the only free option. But I’m not. Safari can bite me. 

I may be showing my age here, but command line tools like a compilers should be part of the standard development environment. All the gui crap is the extra. When did we start flying backwards?

Tuesday 14th February, 2012
Worthwhile meetings. Rule or Exception? You be the judge!
(via Coding Horror: Meetings: Where Work Goes to Die)

Worthwhile meetings. Rule or Exception? You be the judge!

(via Coding Horror: Meetings: Where Work Goes to Die)

Monday 13th February, 2012
Monday 16th January, 2012
Thursday 10th November, 2011

CSS selector search/replace for html editors

Why doesn’t it exist? Quick, somebody, make an eclipse plugin. (and by ‘quick’ I obviously mean start a committee and work on it for a couple years. Gooooooo eclipse!)

Tuesday 1st November, 2011

Mr. Webpage is also