September 2008
20 posts
2 tags
Sep 1st
August 2008
32 posts
Things to Say During Sex (a map) →
via anarchaia
Aug 30th
“It has been tested on Firefox 2.0, Safari 3.1.1 and IE 7 on Windoze Vista. Not...”
– Jim Neath in SWFUpload, Paperclip and Ruby on Rails
Aug 29th
“You could say that the best thing to happen to new media is old media.”
– Nigel Hollis » Blog Archive » The new media dilemma (via datainsightsideas)
Aug 27th
Aug 27th
223 notes
The BBC’s Fifteen Web Principles →
datainsightsideas: (via danw) Fantastic list. May I add Getting Real?
Aug 27th
2 tags
My New Favorite Git Trick
In your .bash_profile or similar branch_point() { git rev-list --boundary $(__git_ps1 '%s')...master | grep ^- | cut -c2- } $ git rebase -i $(branch_point) Wonderful for making topic branches, committing the hell out of them & cleaning up before a push/dcommit.
Aug 26th
2 tags
All the Colors in Your CSS
grep -h 'color: #' *.css | awk '{ print $2 }' | sort | uniq
Aug 25th
The illustrated guide to recovering lost commits... →
I may/may not have just done something to warrant finding this page.
Aug 25th
Tris pulled from the App Store →
marco: The Tetris Company sent one of their infamous bullshit threat letters to Apple and the author of this (very good) free Tetris clone. Their claim, as usual, is completely unenforceable and would never hold up in court. They know this. But they also know that indie developers are unlikely to have the cash to spare on lawyers and court proceedings, so they send bullshit letters like this...
Aug 25th
1 tag
`git pull --rebase` by default
It took me a while to track this down (since it’s not in the docs for git-pull), so I’ll throw it out there for the G to pick up. If you want git pull to add in --rebase every time, you can set the branch.autosetuprebase configuration option. From the docs (for git-config): When a new branch is created with git-branch or git-checkout that tracks another branch, this variable...
Aug 25th
49 notes
1 tag
One more Mario Kart Wii question:
mandel: marco: And what happened to the jump-skidding-turning thing that everyone did in the N64 version? How do I do that? Or has it been removed? The “jump-skidding-turning” is there when you select the manual mode and they have added some cool stuff. When ever you turn and use the skidding (which I recommend), if you do it for long enough, you will see that a “blue” trail...
Aug 25th
5 notes
1 tag
Mario Kart Wii
marco: Anyway, Mario Kart seems good so far. It will get better as I figure it out and get used to the mechanics. Woo! I actually just got a hold of this game for myself finally (played the girlfriend’s copy for a while first). I’ve played MK since the SNES version, and I must say, although nothing beats the N64 version for pure replay value, I am really enjoying the Wii version...
Aug 24th
1 tag
Aug 24th
1 note
2 tags
Things that make me feel like we're missing the...
marco: Having to insert a different plastic disc for every different console game. Having to drive to a store to acquire these plastic discs (or have them delivered on a truck, in a box, from a far-away warehouse). Having to store the plastic discs and their giant plastic cases on a shelf somewhere. Having to purchase a new game license if the plastic disc is lost or scratched, which could...
Aug 24th
9 notes
2 tags
The vexed question of punctuation →
Mostly very good although I’m not sure I agree with the rules for emoticons: A smiley has to be separated from the word by a space. If a punctuator follows, no space should be put between. As a rule, using an emoticon means no full stop at the end. A smiley may coincide with a closing bracket (given that it is preceded by an opening one :-). It looks as if that last closing bracket...
Aug 24th
2 tags
Aug 23rd
Chris Wanstrath's Keynote at Ruby Hoedown →
My plea to you today is to start a side project. Scratch your own itch. Be creative. Share something with the world, or keep it to yourself. Long. Some choice wisdoms though.
Aug 21st
2 tags
git svn dcommit with username on 1.6.0
Apply this patch to your git src before you compile: cd $GIT_SRC curl http://gist.github.com/raw/6442/37801bd3ec887329ba9e01119e7f568cc620c533 | patch -p1
Aug 20th
"".nil?
"".nil? # => false Consequently: foo = "" if foo # THIS WILL EXECUTE! end Please be careful. Use String#empty or Object#blank?
Aug 20th
“Now take a moment to reflect on just how empty your repository is. A fine moment...”
– Dr. Nic in My attempt at sake task management
Aug 20th
Aug 19th
Aug 19th
12 notes
html_escape in your flashes
in application.rb: def html_escape(*args) ERB::Util.html_escape(*args) end alias :h :html_escape
Aug 18th
Random Subset
How would you implement grabbing a random n-sized subset of an array? ie, class Array def rand_subset(n) # WRITE ME end end My initial thought was self.sort_by{rand}.slice(0,n). Although this runs in something around O(n*log(n)), it just seems like there has to be a better way. Ron introduced this into a project at work: class Array def rand_subset(n) subset = [] n =...
Aug 15th
Use the Best Available Ampersand →
Dan Cederholm taking Robert Bringhurst to heart: Use CSS to make a list of common, and beautiful, italic ampersands and substitute them in Roman text. Why didn’t I think of this before‽ (via SimpleBits) Been doing this for a while, ever since topfunky wrote about it. (via jhongosh)
Aug 15th
1 note
~>
gem 'will-paginate', '~>2.2' Notice that we only include 2 digits of the version. The operator will drop the final digit of a version, then increment the remaining final digit to get the upper limit version number. RubyGems User Guide The idea being here that you trust the 2.x series, but not the 3.x series. Cool!
Aug 14th
1 note
“The antiscience agenda is visible as early as kindergarten, with its infantile...”
– How Our Culture Keeps Students Out of Science
Aug 13th
Aug 12th
try the new BETA tumblr →
Okay, so if you haven’t checked this out yet, let me summarize: everything is bigger. That’s all. Oh, there is as new color them. But I can’t even tell if I like it because every element on the page is so freaking massive. (via peterwknox)
Aug 12th
“The clusterfuck that has been the first month of MobileMe […] has resulted in...”
– Gruber on the MobileMe Reorg
Aug 6th
Google Calendar CalDAV support →
This is awesome. Not perfect yet, but awesome.
Aug 6th
1 note