skwpspace it’s pronounced ’scoop’. yan pritzker’s home on the web

Blog :: Photography :: About Me

hello, i'm yan

I blog here occasionally. I hope you like it.

Subscribe by Email

planypus

I'm the founder of Planypus, the place to share your plans!

cohesiveft

Accessible, manageable, virtualized application stacks ready to download or deploy to the cloud!

flickr

starlightthe playersredmoon theater - boneyard prayerredmoon theater - boneyard prayer-5redmoon theater - boneyard prayermetal goddessmetal monstersprofessor

Archives

Contact

Reach me at yan at pritzker.ws

Posts from May 2008

Rails tagging plugins overview and comparison

span.pro, li.pro {
color: green;
}
span.con, li.con {
color: red;
}
span.maybe, li.maybe {
color: orange;
}
table.separated td {
border-bottom: 1px solid #eee;
vertical-align:top;
line-height:1.2em;
}
[...]


Ruby/html trick: wrap long strings with invisible wordwrap characters

def wrap_long_string(text,max_width = 20)
(text.length < max_width) ?
text :
text.scan(/\S{1,#{max_width}}/).join(“<wbr>“)
end


Git tips & tricks part 4: more on cherry picking

In my previous post I discussed how it was possible to merge individual changes from one branch to another. At that time I mentioned using the log on the original branch to figure out which changes were available to merge, but it turns out there’s an easier way.
Let’s say you made some changes in local-trunk [...]


Git tips and tricks part 3: working with svn branches and cherry-pick

After several weeks of git usage, I’ve developed a nice workflow. First, we’ll start with working with several svn branches via git.
Working with svn branches via git
Assuming you’ve properly cloned your svn repository, you should have your trunk and remote branches fetched from svn. You can see the remote branches via
git branch -r
If you [...]


Why twitter is relevant and how it can make money

There’s been some speculation on how twitter can make money and while there are detractors who still don’t understand why people would twitter, it’s becoming clear that twitter happens to have captured a unique segment of the population in a way that practically no other site has.
Twitter’s very nature attracts chatterboxes, connectors, social sneezers. [...]


Twitter opens the floodgates of FUD

TechCrunch is reporting on rumors that twitter is leaving Ruby on Rails. Of course the comment threads are covered by a heated debate by people either bashing RoR, suggesting their favorite language and platform as the ‘only possible solution’, or both. Nevermind that Friends For Sale, with 630k active daily users scales just fine on [...]


Posted
2 May 2008 @ 2am

Tagged
thoughts

Ponoko brings product design to the masses

The printing press, the photography studio, and the movie set are already in the hands of the people thanks to products like wordpress, flickr, and youtube. Now Ponoko is looking to revolutionize product manufacturing by providing a direct channel for users to create designs, have them manufactured to order, and distributed via an online storefront [...]


Posted
1 May 2008 @ 9pm

Tagged
git, thoughts

More git tips and tricks

Here are a couple more fun git commands and configuration tricks.
Make some aliases because typing ‘checkout’ is a pain. In ~/.gitconfig:
Note the quicklog command below uses a custom log format which shows you a short hash, a relative date (”4 hours ago”) and the commit message. I created it by reading the git log formatting [...]