The “Failed” State

A thorough examination of yet another way that the U.S. attempts to justify its foreign policy. Namely by claiming a sovereign state is failing and needs saving.

Luckily, we can pinpoint exactly where it all began – right down to the words on the page. The failed state was invented in late 1992 by Gerald Helman and Steven Ratner, two US state department employees, in an article in – you guessed it – Foreign Policy, suggestively entitled Saving failed states. With the end of the cold war, they argued, “a disturbing new phenomenon is emerging: the failed nation state, utterly incapable of sustaining itself as a member of the international community”. And with that, the beast was born.

Hoefler & Frere-Jones release their webfont service

This looks like an awesome service. The only issue I have is the cost. Its $99+ for the subscription and then you have to license the fonts you want to use.

The service does however make others look like amateurs.

James Gandolfini has died

Well, if ever I have an excuse to watch The Sopranos...

The Science of Why We Don’t Believe Science

A great article that I think hints on a lot of things about being human. That we have these feelings that sometimes conflict with a cold scientific view of the world. My favourite quote being:

Head-on attempts to persuade can sometimes trigger a backfire effect, where people not only fail to change their minds when confronted with the facts—they may hold their wrong views more tenaciously than ever.

Introducing Dumbquotes

This is slightly re-inventing the wheel, but I have released a new package called Dumbquotes. The idea is to replace simple typographic techniques with their more correct forms. Such as replacing a ' with ‘ or ’. This also gave me the chance to try and write a package. So dealing with making sure it’s psr-0 compliant and has associated unit tests to run with phpunit.

The package will deal with apostrophes, quotes, dashes, and ellipses. There are certain issues. Ultimately this is designed to deal with plain text such as a markdown document. It does not work with HTML. Trying to parse HTML with regex will bring the return of Cthulu. However once you deal with HTML directly things get a little complicated.

Consider the following sentence that could appear in some HTML <p>Mary said \"How <em>did</em> she do that?\"</p>. We want to turn this into <p>Mary said “How <em>did</em> she do that?”</p>. This is complicated by the fact we can't just search for a string of text containing two double quotes like so, /\"(.*?)\"/. The sentence doesn't actually appear in the HTML DOM. We actually have three blocks of text

  • Mary said \"How
  • did
  • she do that?\"

To concatenate that into a single string, and then put the tags back in the right place seems a very difficult task. So I have decided to write the dumbquotes parser to be applied before the markdown transform is applied.

*[HTML]: HyperText Markup Language *[DOM]: Document Object Model