Politics, Programming and Possibilities
28 Feb
Most languages have a nice package management system that helps install new software or libraries—Ruby has the “gem” system, Perl has cpan, etc. In Haskell, it’s “cabal”, and here is how you install it:
darcs get http://darcs.haskell.org/cabal-install
cd cabal-install
sh bootstrap.sh
In addition, you should occasionally use the “update” command to sync your local package listing with the centralized one:
cabal update
To install a remote package, simply use “cabal install
cabal install happstack
Also noteworthy is that you can use cabal to install a package from the local directory. For example, if you’ve fetched something using darcs, you could procede to install it like this:
darcs get --lazy http://code.haskell.org/yi/
cd yi
cabal install
Update: To install yi above, I also had to install a package called “alex” which is outside the cabal system at this point. I used MacPorts, i.e. “sudo port install alex”.
21 Feb
20 Feb
I am deeply touched by the stories of those who have been “disappeared” by the U.S. government over the last 8 years, and hope that what they have to tell us–those who have returned to tell us–can help guide us back to a place of responsibility and strength by example. I wrote last year to my senator about my Canadian compatriot Maher Arar who was taken from his family during a visit to the US and later tortured in Syria. Recently, another man who is not Canadian but suffered similarly, Mohamed Bashmilah, has published a short account of his experience. It begins:
From October 2003 until May 2005, I was illegally detained by the U.S. government and held in CIA-run “black sites” with no contact with the outside world … never once having faced any terrorism-related charges. Since my release, the U.S. government has never explained why I was detained and has blocked all attempts to find out more about my detention.
19 Feb
18 Feb
18 Feb
I added a few improvements to the Ubiquity “download-files” command. It now checks everything on the page, including frames and iframes. Also, it walks through all of the CSS files and downloads image assets if they match the pattern you specify.
Visit Ubiquity Download Files on GitHub to see the code, or this gist to subscribe.
17 Feb
A handful is five, so I will try to make this a short but helpful list:
12 Feb
I wrote a ubiquity script that lets you download just about anything on the page you’re visiting, for example images and javascript files. It’s called “save-all” “download-files” and it’s available as a gist on github. One of my classes at university has a “resource page” where they provide all of the datasets for our statistics homework; however, you have to click on each one of them (stored in “.dat” format) to get them all! What a waste of time. So instead of clicking on each one, I wrote the following script. Here’s how you would use it:
download-files .*png$ ~/Desktop/Images
download-files dat$ ~/Desktop/DataFiles
download-files .*
Update: Changed the name of the command from “save-all” to “download-files”.
10 Feb
Video: Robot uses human mind tricks to navigate
10 Feb
There is a fascinating change taking place in categorization due to the internet: we are no longer constrained to say that a book is about one particular thing:
From the page Shirky: Ontology is Overrated — Categories, Links, and Tags:
It isn’t the ideas in a book that have to be in one place — a book can be about several things at once. It is the book itself, the physical fact of the bound object, that has to be one place, and if it’s one place, it can’t also be in another place. And this in turn means that a book has to be declared to be about some main thing. A book which is equally about two things breaks the ‘be in one place’ requirement, so each book needs to be declared to about one thing more than others, regardless of its actual contents. Just thinking out loud here… I wonder if this physical requirement of books being in one place at one time has caused us (humans) to think in categories? Do we naturally think in graphs with nodes and edges? If so, the internet is a nearly perfect medium for this new way of organizing information.