September 2011
7 posts
2 tags
Swap Word Instances in BBEdit
Sometimes I want to swap all instances of “foo” with “bar”. That is, I want every instance of “foo” turned into “bar” and vice-versa.
This may sound odd, but I encounter often it enough that I formed a strategy long ago, three replacement operations:
Replace “foo” with something unique (a sentinal) in the document. I often use a...
2 tags
Switch Between Tabs and Spaces in BBEdit
Here’s a script I wrote to make it easy to switch between tab-based and space-based indention in BBEdit 10:
tell application "BBEdit"
tell text window 1
if expand tabs then
set currentMode to "Spaces (" & tab width & ")"
else
set currentMode to "Tabs"
end if
display dialog "Current Mode: " & currentMode & ".
Enter...
1 tag
Apps I Love: DTerm
DTerm is a free app that uses the Accessibility API to figure out the current document you’re looking at. When you hit a hotkey (mine is bound to command-shift-return), it pops up a window with a shell command line with the working directory already set to the frontmost document’s folder.
DTerm works awesomely with Finder, BBEdit, TextMate, Xcode, GitX and a bunch of other Mac...
Google Storage Economics
Scott McNulty / @blankbaby:
You can add 1 TB of storage to your Google account for $256 a year. Who knew? bit.ly/pDO7aS
At first glance it seems excessive that Google would charge you $256/year for an extra 1TB of storage when raw 1TB drives run ~$60-80 on Amazon today.
But you need to keep in mind a lot of extra factors:
Redundancy. You’ll need at least two drives to match...
Mac Illustrator Alternatives
Jon Stokes / @jonst0kes:
So the answer to my Illustrator question seems to be that there is no Pixelmator for vectors. You just have to shell out for AI.
I purchased LineForm a while back, however since Freeverse was bought out by ngmoco I doubt for its future. Here’s some other options, mostly gathered by Chris Foresman:
Artboard
iDraw
Intaglio
Sketch and DrawIt
...
[NSScreen mainScreen] != screen with menubar
Karsten Kusche:
for years i’d thought that [NSScreen mainScreen] returns the screen with menu. It returns the screen with the window that has keyboard focus
My testing doesn’t agree with +mainScreen’s documentation:
The main screen is not necessarily the same screen that contains the menu bar or has its origin at (0, 0). The main screen refers to the screen containing the...
Transformation Matrix Funhouse
I wrote Transformation Matrix Funhouse to make is easier to understand and play with -webit-transform: matrix3d(). It’s also cool for grokking transformation matrices in general.