Firmware update for Vertex 4 fixed wake from sleep issues on 2011 MBP, Mountain Lion

After installing 10.8.2 and a new Vertex 4 SSD into my mid-2011 MBP, my machine would come up from sleep but only be half-responsive, and I’d ultimately have to force power it off. Turns out the issue was the drive not coming back up after sleep, and following the instructions here to update the firmware twice (without data loss) seems to have fixed it:

http://www.ocztechnology.com/ssd_tools/OCZ_Vertex_4_and_Agility_4/

Comments

Fixing paredit in the clojure REPL

By default, paredit in the Clojure slime-repl doesn’t properly handle literal vectors and maps. This little snippet of elisp seems to fix it.

(defun fix-paredit-repl ()
  (interactive)
  (local-set-key "{" 'paredit-open-curly)
  (local-set-key "}" 'paredit-close-curly)
  (modify-syntax-entry ?\{ "(}") 
  (modify-syntax-entry ?\} "){")
  (modify-syntax-entry ?\[ "(]")
  (modify-syntax-entry ?\] ")["))

Comments

Treat LaTeX command definitions as Textmate symbols

I wanted LaTeX newcommand/renewcommand definitions to show up in the Textmate symbol list, so I could use the Cmd-Shift-T shortcut to jump to them. To accomplish this, I first went to the “LaTeX Language” entry in the bundle editor, and added this block to the “patterns” section:

{	name = 'latex.definition';
	match = '(\\)(newcommand|renewcommand)\{[^\}]+\}';
}

Then, I created a new LaTeX Preference with scope selector “latex.definition”, and contents:

{	showInSymbolList = 1;
	symbolTransformation = '
		s/^\\(newcommand|renewcommand)\{\\(.+)\}/$2/;';
}

Comments

« Previous entries Next Page » Next Page »