MacBook Pro Retina Locks Up Until Mouse Plugged In

a.k.a. MacBook Pro Retina locks up internal keyboard and touchpad

Every now and then, my MacBook Pro Retina locks up the keyboard and the touchpad. Plugging in a mouse and clicking somewhere recovers it. This is reportedly due to Android File Transfer, which I do use. I removed AFT from my auto-started applications and killed it.

If this doesn't fix it, I'm going to add a mouse jiggler to my carry kit. (USB device that moves a mouse a few pixels every few seconds to defeat screen saver.) Small and and easy to use recovery device.

Clojure Gibberish

If you see a word in a clojure program (e.g. apply, map, defn...) you can use Google to find out what it means. Just search for "clojure" and the word. Try that with something like curly braces or #' or '( or... This makes it tough for a beginner to read code written by someone at a higher skill level.

This is a list of the non-word character sequences which have a special meaning in Clojure that I had to look up at one time or another.

Text Editors

I'm an intermittent programmer. I program for a while, then I work on other things, then I do some more programming. I may take a break of months or even years between programming sessions.

I need a text editor, suitable for programming, that doesn't require intense familiarity with it in order to be moderately productive.

Xubuntu Window Borders Too Small - Unable to Resize Windows in Xubuntu 14.04

This is apparently an issue of dogma. Here's a workaround, if you don't care about the dogma.

Go to Settings -> Window Manager -> select Daloa. This gives you thicker window borders.

How to Use vundle

  • Install vundle

    • You might want to start with an EMPTY .vim folder and an EMPTY .vimrc file. Backup your existing ones! {{{ git clone ~/.vim/bundle/vundle }}}
  • Put this in your .vimrc (at the top, if you did not start with an empty .vimrc) {{{ " ============= vundle BEGIN ================ set nocompatible filetype off set rtp+=~/.vim/bundle/vundle/ call vundle#rc() Plugin 'gmarik/vundle'

Functional Programming Rules

  • Variables don't vary.
  • Don't use global variables or global constants.
  • Don't iterate. Use a higher order functions.

Repair a PDF Which Doesn't Fit the Paper

I downloaded a PDF book. It looks like someone added a footer to each page of the original, and that pushed the content up on each page so that the first half inch of each page's isn't visible.

I fixed the PDF by:

  • Downloading and installing the brew (homebrew) package manager. (I use a Mac.)
  • Running "brew install ghostscript".
  • Running

    gs -sOutputFile=output.pdf -sDEVICE=pdfwrite -sPAPERSIZE=a4 -dCompatibilityLevel=1.4 -dNOPAUSE -dBATCH -dPDFFitPage input.pdf

Getting Started With Clojure (On a Mac)

Note: I don't give choices here. If you're a beginner, you don't know enough to choose an option. Sometimes choice is a bad thing because it overwhelms.

To-do Again (October 2015 Edition)

I'm revising my to-do process again. My employer cancelled its full-time work-at-home program, so I need to use web-based tools, so I can get to them from work and home.

Some givens:

Mouse Wakes Windows 7 Even Though Allow this device to wake up the PC is Unchecked

I have a computer that wakes from sleep when the mouse gets jiggled. The mouse is so sensitive that it gets jiggled when someone walks across the floor.

I went into Device Manager and I cleared the checkbox for "Allow this device to wake up the PC" on the mouse device, and that didn't help.

It is a Logitech wireless mouse, and it added a second keyboard device, in addition to the "HID-compliant mouse" device. You have to disable wake for both the mouse device and the faux-keyboard device.


Subscribe to Input Jam RSS