Sublime Text 2 Strip Whitespace on Save

I’ve become fond of Sublime Text 2. Gasp! Wait, what? You don’t use emacs/vim/butterflies? Anyway, regardless of the editor, I like to keep my whitespace under control. This usually means I add a hook to strip trailing whitespace when saving. The Sublime Text 2 Python API reference looks pretty complete, but there’s little pragmatic documentation. I tinkered with creating my own, found others that had semi decent solutions, but ultimately gave up. After my failed attempts and failed googling, my coworker informed me that Sublime Text has this built right in as a user setting you can set by adding a simple JSON snippet. Awesome.

Pervasive Computing: Vision and Challenges

Oct 08, 2012  | by Mahadev Satyanarayanan

This post is the reading notes of the following paper:

Mahadev Satyanarayanan, Pervasive Computing: Vision and Challenges, IEEE Personal Communications, 8, 2001:10-17.

Pervasive computing: Past, present, and future

Oct 08, 2012  | by Stan Kurkovsky

This post is the reading notes of the following paper:

Stan Kurkovsky, Pervasive computing: Past, present, and future, The 5-th International Conference on Information and Communication Technology (ICICT 2007), 2007: 65-71.

OS X: How to reset the DNS cache

Aug 17, 2012  | by Apple Inc.
From: http://support.apple.com/kb/HT5343

For OS X Mountain Lion or Lion, use the following Terminal command to reset the DNS cache:

sudo killall -HUP mDNSResponder

Sublime Text 2 Plugin to Convert Tabs to Spaces on Save

Here is a simple Sublime Text 2 plug-in to convert tabs (only at the beginning of lines) to spaces in the current file whenever you save it.

In Sublime, go to the Preferences menu and choose Browse Packages… This will open the Sublime Text 2 Packages folder. Create a new folder here with your last name, then open your new folder (you just created your own Package!)


© 2015 Haixing Hu with help from Jekyll Bootstrap and Twitter Bootstrap
This work is licensed under a Creative Commons License