This week I learned a little bit of Go. I was fascinated by the power and simplicity of goroutines and channels. With these ideas fresh in my mind, I decided to reproduce Mark C. Chu-Carroll’s Go prime sieve in JavaScript with goroutines and channels as my toolset instead of conventional JavaScript idioms. Find my translation [...]
John Gruber published a helpful JavaScript Bookmarklet Builder which I used to generate my IPA TTS bookmarklet. A few users reported that Chrome choked on the bookmarklet. I found that the bookmarklet builder does not produce the output that Chrome expects. I was using Chrome 15.0.874.54 beta. For example, take this simple script. (function () [...]
Let’s say we have a Google App Engine model with two fields, “x” and “y”, and all objects are distinct. We’d like to paginate with the sort order criteria “x ascending, y ascending”. For example, that index might look like this. While paginating, we need to know whether there is a “next page”, because we [...]