Alexander Quine

Read this first

sometimes iTunes doesn’t show the currently-playing song’s name and position

In the middle of the very top of iTunes, between the play/volume controls on the left and the search bar on the right, there’s a panel that normally shows the currently-playing song name and position, or device sync info, or CD burning info.

Sometimes it doesn’t show me the currently-playing song name and position even though I’m playing a song and not doing anything else. There’s no little triangle button to switch between the things it should be showing, like I’ve sometimes seen.

To fix, close the iTunes window and re-open it by goning up to the Window menu and “unchecking”/selecting the (helpfully-named) iTunes menu option. The song you’re playing will continue to play, but the iTunes window goes away. Then pull the Window menu down again and “check”/re-select the iTunes menu option. The iTunes window comes back, and now it’s showing the name/position/album of the still-playing...

Continue reading →


killing processes

Signals to try in order: 1, 15, 2, only then 9

View →


RequireJS “invalid require call” error

Ruh roh.

Uncaught Error: Invalid require call
http://requirejs.org/docs/errors.htmlrequireargs require.js:167
makeError require.js:167
localRequire require.js:1372
Module.fetch require.js:806
Module.check require.js:841
Module.enable require.js:1144
context.enable require.js:1512
(anonymous function) require.js:1129
(anonymous function) require.js:133
each require.js:58
Module.enable require.js:1091
Module.init require.js:775
(anonymous function) require.js:1417

That link up there pointing to the RequireJS site tersely states that this happens because you didn’t pass an array as the first parameter to require().

This error can also come from the shim portion of the config, if you (similarly) declare the deps as a bare string instead of an array. CoffeeScript example:

require.config shim:
  'underscore':
    exports: '_'
  'backbone':
    exports: 'Backbone'
    deps: ['jquery',
...

Continue reading →


setting up fancy fonts for Vim in iTerm

Might need a patched font to get the fancy glyphs, e.g. Inconsolata for Powerline

In iTerm:

  • use the patched font: Preferences > Profiles > Text > Regular Font and Non-ASCII Font
  • don’t make questionable characters doublewidth: uncheck the “Treat ambiguous-width as double width” checkbox at Preferences > Profiles > Text > Double-Width Characters
  • change terminal name: enter “xterm-256color” in Preferences > Profiles > Terminal > Report Terminal Type

View →


git update-fork

In your .gitconfig:

[alias]
  update-fork = !git fetch upstream && git pull && git checkout master && git rebase upstream/master

View →