January 2012
2 posts
My SOPA letter
We are against piracy, but the way the bill is written now is far too broad and would stifle innovation and freedom of speech across the internet. As far as we can see, no competent technical expertise was consulted when writing the bill, and because of that, if passed into law, it will be very likely used in broad and over-reaching ways. It is easy to pass laws restricting freedom, but...
December 2011
1 post
October 2011
1 post
Dealing with cyrillic comments in your code with...
So you inherit some code from a russian predecessor who was coding in Windows. Predictably, the comments are in russian, and the encoding is CP-1251 (or koi-8, who knows). Here’s what you do:
mkdir conv
find . -type f -name '*.php' -exec bash -c 'iconv -f windows-1251 -t utf-8 "{}" > ./conv/"{}"' \;
view gist
then just copy the files from the new ./conv/ directory into their proper...
September 2011
1 post
August 2011
2 posts
love is a spring at which
crazy they drink who’ve climbed
steeper than...
– e. e. cummings - XXIII
Easily Embarrassed – Tales Of The Coin Spinner →
New Easily Embarrassed album is out. Free download!
June 2011
1 post
May 2011
1 post
Soundcloud -> iPhone app -> airplay speakers. This changes everything!
March 2011
1 post
Birds are Aves, which is part of the clade Theropoda, which is in Saurischia,...
– xkcd: Herpetology
January 2011
1 post
December 2010
2 posts
zsh goodies, oh my →
Excellent zsh config repository with a bunch of predefined plugins and themes
September 2010
2 posts
HPO The Snowbird (by U of T Engineering)
Bali
Intense rich colors, scents, the language like pealing and tinkling bells. Tegalalang, Denpasar, Mount Agung, Jalal Hanuman, the names echo and ring. The taste of Bali is the taste of unripe mango, sweet and tart.
Mopeds swarm through the streets, flowing around cars, buzzing like a great drone of bees. It is customary to honk when approaching a sharp turn, in case there is someone coming from...
July 2010
1 post
git - ignore local changes to tracked files
If you want to prevent committing (therefore also pushing) these local config files, you could use git update-index --assume-unchanged. Files marked with this flag will be assumed to never change (until you reset the flag with --no-assume-unchanged)
June 2010
1 post
Pcutmp3 →
The best lossless cue-splitter for mp3’s.
May 2010
7 posts
Anjuna To Assam is shamelessly fun and dancy modern goa/psytrance.
Original and catchy; I’ve listened to it from start to end on repeat several times, which doesn’t happen often for me.
Download it at Ektoplazm
Iceland, Eyjafjallajökull - May 1st and 2nd, 2010 (by Sean Stiegemeier)
rediscovering e e cummings
some poems
and some russian translations
Font Squirrel | Create Your Own @font-face Kits →
Awesome. Upload your font, specify your settings, and you’re good to go.
March 2010
4 posts
2 tags
Rails and midgets on unicycles
So let’s say you have a custom primary key for a table - a hash_id. It’s only ever populated externally, not by your rails application, so you figure you don’t really need to specify the custom primary key in the model, since it’s only ever read-only.
class Subscriber < ActiveRecord::Base
belongs_to :midget
set_primary_key :hash_id
end
Well, think again.
First...
3 tags
ruby templating and css frameworks
Pure CSS:
Blueprint CSS
960.gs
More powerful:
Compass - comes with support for Blueprint, and YUI css frameworks out of the box, written using Ruby SASS DSL.
compass-960 - compass support for 960
Less - another DSL, also very very cool.
960.less - 960.gs stylesheet rewritten in Less
960 gist - 960.gs stylesheet rewritten and simplified in Less
HTML templating:
ERB - old and busted
...
1 tag
2 tags
The Ruby Toolbox →
excellent resource for ruby and rails projects and plugins
January 2010
5 posts
1 tag
Yonderboi and Messer für Frau Müller are pretty close. Yonderboi’s more ambient/meditative though, while MFFM are a bit more playful/experimental. but both have a lot of resampling of old records, a nostalgia for the vinyl of the soviet era.
2 tags
rubyamp →
RubyAMP is a TextMate bundle that makes you more productive in editing, navigating, and debugging Ruby code. Now you can easily:
auto-complete from all open tabs
jump to a method, class, or fixture named under the cursor
start the debugger on a series of RSpec examples and break at the current line
inspect by highlighting to evaluate to tooltip or clipboard
fire up a Merb/Rails server or...
2 tags
bash arg expansion
$_ expands to last argument in previous command.
ie
cp a.txt /some/long/path/and/some_other_name.txt
vim $_
will open the just-moved file without retyping the whole damn thing. so useful.
libmad in snow leopard
If you run into the following error:
version.c:1: error: CPU you selected does not support x86-64 instruction set
run the following
export CFLAGS="-arch i686"
then, configure, make, sudo make install as normal.
Two Gentlemen of Lebowski →
The Big Lebowski, by William Shakespeare
December 2009
1 post
fix itunes arrow links
Change them to go to your library, instead of the apple store:
defaults write com.apple.iTunes invertStoreLinks -bool YES
Hide them altogether
defaults write com.apple.iTunes show-store-arrow-links -bool FALSE
October 2009
2 posts
2 tags
answer to the universe
Sat 24 Oct – Answer to the Universe was quite excellent.
Couple of videos…
And Also the Trees reminds me simultaneously of The Alan Parsons Project and The Nits. Just a note, if you like one of them, you might like the other two.
August 2009
11 posts
Site Templates - FlashDen →
Pretty, and reasonably priced flash templates.
Pro Git - distributed version control book →
using git now. woot.
gotoandlearn.com - flash tutorials →
excellent tutorials for flash
Chinese Fonts (Institute of Chinese Studies,... →
a few more calligraphic or stylized fonts than default ones
De MonsterDebugger - Open Source Flash, Flex and... →
super-useful
Xray ( The AdminTool ) Open Source Flash Debugger →
useful
4 tags
http://fuelyourcoding.com/in-field-labels/ →
Just so I don’t forget if I need this later… nice in-field labels for forms.
beautiful html5+canvas animation →
July 2009
8 posts
Every time I play go against myself, I lose. The only consolation is every time I also win. But usually the side I’m secretly against wins.
I was rooting for white..