Google are discontinuing support for the Documents List API, and moving to the Drive API.
The old API supported authentication with a username and password, but that’s not allowed in the new API. Instead, you need to use OAuth for access.
If you want to have server-to-server authentication, without user interaction, you need a “two-legged” OAuth process, where a token is obtained with an encrypted request and then used for future service requests.
Continue reading Two-Legged OAuth with the Google Drive API in Ruby
Sometimes the Ubuntu software updater finds it doesn’t have enough temporary space to download and apply updates – you get a message like this:
And even running the “sudo apt-get clean” doesn’t help.
Continue reading Not enough free disk space for Ubuntu software updater
I like the Rails to_sentence method on String class, which converts an array to a comma-separated sentence where the last element is joined by a connector word.
It makes it easy to take a list of names, for example, and make them human-readable, without having to fiddle with join words and last-item-is-special-case stuff:
['one', 'two'].to_sentence # => "one and two"
['one', 'two', 'three'].to_sentence # => "one, two, and three"
Continue reading from_sentence : the opposite of Rails to_sentence
VirtualBox provides a great way to run IE browsers for testing during development.
Continue reading Setting up an IE6 image for VirtualBox
There are several pieces that fit together to give a framework for running the tests in an automated build system – QUnit, PhantomJS and JSCover.
To see where your current file is in the folder sidebar, you can install SyncedSideBar.
However, that has some side effects – sometimes, even if you’ve hidden the sidebar, it pops back up when you switch between files, or search.
Continue reading Sublime Text 3 : keyboard shortcut to reveal file in sidebar
Get the location of the latest build from http://www.sublimetext.com/3, download it and install it (this is on Ubuntu):
sudo dpkg -i sublime-text_build-3047_i386.deb
Continue reading Sublime Text 3 : install notes
Another quick command line utility thing, this time to copy the contents of a file onto your clipboard without having to use the mouse (this is on Ubuntu, with the bash shell, incidentally).
First install xclip:
sudo apt-get install xclip
Continue reading Copy to clipboard without the mouse using xclip