Someone posted a question on comp.lang.ruby recently asking for help with solving anagrams. The poster originally asked about ways of generating permutations and several people pointed him to the facets library which has some permutation utility functions. As it turns out, I benchmarked the following naive permutation generator as 3 times faster than the facets library code:
I came across a little programming puzzle on comp.lang.ruby.
The author blogged about the original paper that got things started, but I haven’t had time to read it in depth yet.
I’ve been teaching my eldest daughter to program in Logo over the summer. Brian Harvey has posted PDF files for a set of excellent books on learning to program in Logo on his web site. The Berkeley version of Logo he’s produced is really excellent. It’s not just your typical turtle graphics language; it has arrays, macros, file processing, graphics, etc.
This is so easy, you’re gonna love it! Thanks Tyler Pedersen.
I’ve been using my laptop more frequently at wifi hotspots. Many web sites I visit encrypt traffic with SSL for authentication, but after that they send traffic in the clear which means the cookies that are used for authentication purposes are sent in the clear, so anyone with a sniffer within range of my laptop could easily intercept the traffic, steal my cookies and impersonate me on the web site. Not good! So, I went looking for a simple solution, and found a great article about using ssh for this purpose. Ya gotta love open source software.
Rails provides some nice helper functions (numbers, dates, etc.) that are available to views, but they’re not automatically available to controllers. I found a number of ways to accomplish this on the web, but I wasn’t satisfied with any of them.
When I worked at CompuServe around 1993, I saw a picture of Kwajalein Island on Alisa DeSisto’s cubicle wall. As it turns out, she was stationed there for a year or two. I was fascinated by the concept of people actually living on such a tiny island (about twice as long as the airport runway!) in the Pacific Ocean many hundreds of miles from any decent size chunk of land. Is this place cool, or what?
Had lunch with Mike F. on Friday and he mentioned a site called Pandora.com. It’s a great free site for streaming audio.
I’ve had ‘create a blog’ on my todo list for quite a while. Well, I just signed up for a hosting account with Lojic Technologies, installed Wordpress, and here’s the blog.