purp
purp
geek!daily ... at least
152 posts
random effluvia upon the shore of my {semi,sub,un} consciousness
Don't wanna be here? Send us removal request.
purp · 10 years ago
Text
I thought so, too, until I realized that using callback.document.will-save along with the “Replace Document” setting will yank the insertion point to the bottom of the file every time you save. Totally throws my rhythm when I’m coding, so I went back to callback.document.export.
Strip trailing whitespace on Save with …callbacks!
Open the bundle editor (⌃⌥⌘B) and open “Text” → “Menu Actions” → “Converting / Stripping” → “Remove Trailing Spaces in Document / Selection”.
Then in the drawer put callback.document.export in Semantic Class and Document / Replace Document as Input / Output.
Hooray! From now on each time you’ll save a document all trailing space will be stripped!
21 notes · View notes
purp · 12 years ago
Text
Ruby 2.0 + Rails 4 MySQL library problem
I'm starting to play with Ruby 2.0 and Rails 4 and, after setting up a new app using MySQL, I got this error:
/Users/purp/.rbenv/versions/2.0.0-p0/lib/ruby/gems/2.0.0/gems/mysql2-0.3.11/lib/mysql2.rb:9:in `require': dlopen(/Users/purp/.rbenv/versions/2.0.0-p0/lib/ruby/gems/2.0.0/gems/mysql2-0.3.11/lib/mysql2/mysql2.bundle, 9): Library not loaded: libmysqlclient.18.dylib (LoadError)
Annoying, but thanks to this answer on StackOverflow not crippling. The magic incantation:
$ sudo install_name_tool -change libmysqlclient.18.dylib /usr/local/mysql/lib/libmysqlclient.18.dylib ~/.rbenv/versions/2.0.0-p0/lib/ruby/gems/2.0.0/gems/mysql2-0.3.11/lib/mysql2/mysql2.bundle
I thought about linking in the unversioned lib (libmysqlclient.dylib) but decided I'd rather manually handle that if and when.
0 notes
purp · 14 years ago
Text
jps with hexadecimal process ids
jps | awk '{printf("0x%x %s\n", $1, $2)}'
0 notes
purp · 15 years ago
Text
How to tell what package installed a file on MacOS
pkgutil --file-info /path/to/file
0 notes
purp · 15 years ago
Text
An old favorite: http://www.jxh.com/jxhc/ops-if/characteristics.html And, if it ever disappears from the web: http://web.archive.org/web/20070914230234/www.jxh.com/jxhc/ops-if/characteristics.html
0 notes
purp · 15 years ago
Text
iTunes: Ditch Ping, Link Into Your Music
Get rid of the Ping links in iTunes:
defaults write com.apple.iTunes hide-ping-dropdown 1
Make iTunes store arrows link to your music collection instead:
defaults write com.apple.iTunes show-store-link-arrows 1 defaults write com.apple.iTunes invertStoreLinks 1
0 notes
purp · 15 years ago
Photo
Tumblr media
Marshmallow inflatable conference room interior at Google IO.
0 notes
purp · 15 years ago
Photo
Tumblr media
Marshmallow inflatable conference room exterior at Google IO.
0 notes
purp · 15 years ago
Photo
Tumblr media
http://venturehacks.tv/iPhone site has a clever feature: notice the nav arrows at top left for paging back and forth. Pity the video itself isn't available on iPhone.
0 notes
purp · 15 years ago
Text
Adobe Reader 9 install failishness
Just downloaded the Adobe Reader 9 installer, which came as a 47.1MB zipfile that decompresses to be a 47.4MB PKG file (yes, Apple's installer files are already zipped). When launched, the installer window brags "decompressing powered by iNosso" (more compression?), then has a long "Recomposition" stage that I've never seen before (maybe that's the decompression?). Once it's finally installed, the first launch required my password, followed by a splash screen that said "Installing/fixing installation".
Ever get the feeling parts of Adobe don't talk to other parts of Adobe?
0 notes
purp · 16 years ago
Quote
HTML has always been a conversation between browser makers, authors, standards wonks, and other people who just showed up and liked to talk about angle brackets.
Mark Pilgrim, in an excellent post on why we have the IMG element.
0 notes
purp · 16 years ago
Video
Oh. Dear. Lord. I have mixed feelings about Psych, which can be hit-or-miss, but their musical Psych-Outs are ridiculously funny.
0 notes
purp · 16 years ago
Link
0 notes
purp · 16 years ago
Link
0 notes
purp · 16 years ago
Video
Larry Ellison on cloud computing. The money quote is at 3:55:
"Our industry is so bizarre. I mean, they just change a term and they think they've invented technology. You can't just come up with, 'Like, let's call that cloud!' and it sure beats innovation."
6 notes · View notes
purp · 16 years ago
Link
0 notes
purp · 16 years ago
Link
0 notes