-
Solving binary puzzles with Haskell
I first came across binary puzzles in early 2013 after finding a book of them in a Belgian supermarket, not long after I first came across Haskell. And I believe that I've now published the first solver for binary puzzles written in Haskell. And it only took 3 years ;-)The puzzles are a little lik …
- On:
-
Au revoir Twitterfeed. Bonjour RSSTwit.
A few weeks ago, I received an email from Twitterfeed’s founder, a chap called Mario. In unnecessarily jolly prose, it announced the demise of the service which turned RSS feeds into Tweets and recommended moving to dlvr.it or Buffer. We’re writing to let you know that Twitterfeed wi …
- On:
-
Digits in page numbers and thoughts on optimization
Sometimes solving problems with dumb code involves a simpler expression of a problem than solving the same problem with highfallutin' maths. Sometimes the simpler expression involves more time or space complexity. That might be fine, depending on the inputs we need to process, indeed spending a long …
- On:
-
Why sum and product types?
When reasoning about functional types it sometimes helps to take a step away from the compiler and delvelop some informal intuitions about why things work the way that they do.When I read about algebraic data types they seemed rather complex notions. Algebraic data types, I discovered from wikiped …
- On:
-
Magento tip: Number of products in category, subcategories of a store
I had need today of counting the total number of products in a category and all its subcategories in one of the magento stores that New Internationalist runs. It took a little while to write the code so I am putting it out there in case anyone else has the same problem. Most probably my future self. …
- On:
-
Javascript: the weird parts
Javascript. Love it or hate it it seems to have become the defacto virtual machine of the internet that Java was supposed to be. And it is odd. Like properly odd. This is a short collection of some weird things that I have noticed about it. I keep a little list of these by my desk for my ow …
- On:
-
Online morse code translator. With sound. Using the web audio API.
Today’s project is this tool, which translates to and from morse code. In my version of morse code I introduce the _ to stand for a space between words. Characters are separated by a space. Try typing something in alphanumerics first._H_Web Audio API is not supported in this browser. S …
- On:
-
Morse code again — translating audio back to morse
Today is the final installment in my Haskell morse code odyssey, in which I translate some audio of morse code back into dots and dahs and even strings on the screen. The idea of translating audio back into something more human-friendly was suggested by @russellbanned when I put up my Let’s ma …
- On:
-
More haskell morse code. This time with audio!
Today I added audio support to the morse translator that I made yesterday. There ought to be a screencast of me demoing it, but screenr is being a dick, as it sometimes is for no discernable reason. I found the admirably minimalistic Data.WAVE library with a little bit of searching. This …
- On:
-
Let’s make morse code with Haskell
Recently, nor and I went with her family to Bletchley Park. Nor’s grandmother used to be a radio operator at what we think was one of the Y stations, near Leighton Buzzard. She spent her time transmitting and receiving coded messages in morse code — in 5 character blocks of apparently …
- On:
-
Scheme in Haskell
This is a little home project that I am working on implementing Scheme in Haskell based on the core provided by Write yourself a Scheme in 24 hours. I have also borrowed from …
- On:
-
Muffet: A Perl Web Spider
Muffet is a web spider written in Perl and Moose that I've put up on github, under GPL.
The problem that I was trying to solve was to spider …
- On:
-
Fixed: Flickrshow NS_ERROR_INVALID_POINTER
I recently added a flickrshow to my cider reviews page, Ben Sekulowicz has done a great job with it, it worked exactly like I wanted, well almost. There was something breaking for me, showing up as this error in Firefox:
u …
- On:
-
charlieharvey.org.uk: Operator Userscript
I've just spent a couple of hours adding some basic microformat support to this site. You might have seen the Find Articles on New Internationalist-type Operator Userscript I made the other …
- On: