2009-06-01から1ヶ月間の記事一覧

Setting the body of a POST request in a Rails integration test

You might try to set the request object's RAW_POST_DATA as you do in a functional test, but this will fail.The following blog explains the solution: http://codemonky.com/post/8241251/integration-test-funBasically, you do something like thi…

Rails: Using url_for in a functional test

This post explains how to use url_for inside of a functional test.http://jotthought.com/articles/2007/05/04/using-url_for-in-ruby-on-rails-tests/EDIT: Unfortunately, doing it this way seems to break url_for in integration tests, which norm…

Commands for the package management system in Ubuntu/Debian

The command-line tools for apt/dpkg are surprisingly unintuitive, and I could not find any useful yet concise guide, so here is my attempt. (I dare to put Debian in the title, since all documentation indicates that Ubuntu's and Debian's pa…

How to stop Hatena diary from highlighting search terms

I didn't realize that when clicking through a Google search to this blog, the items from the search query appear highlighted whenever they appear on the page. This is extremely annoying for common words like "on" and has little benefit eve…

How to change Firefox's context menus (and other menus)

I have long wanted a way to disable the "Send Link as Mail" item on Firefox's context menu. Never have I meant to use this feature, and whenever I do accidentally click on it, the computer freezes while some unwanted mail client is launche…

Lack of usable WebDAV clients and servers

This is pretty frustrating. I'm just jotting these posts down as useful links.http://wooga.drbacchus.com/webdav-windows-and-frustration http://it.knightnet.org.uk/2009/05/how-to-use-webdav-on-windows-vista-and.html

How to tell what version of Ubuntu you are running.

There are (as usual) multiple ways to do this. You can run: lsb_release -aThis will give output such as: No LSB modules are available. Distributor ID: Ubuntu Description: Ubuntu 8.10 Release: 8.10 Codename: intrepidLinux Standard Base (LSB…