February 2010
64 posts
http://uk.linkedin.com/in/sjtgraham →
4 tags
Ideas are cheap, work is hard.
Traits Of An Indispensable Person
CEO of Acumen Fund, Jacqueline Novogratz breaks it down on how to spot indispensable people.
via Seth Godin & Guy Kawasaki
1 tag
The TinyMCE editor that Tumblr uses for blog posts...
Currency Arbitrage In 100 Lines of Ruby →
LOL is Ruby even fast enough for something as super real time as currency arbitrage?
5 tags
Procrastination Vs. Incubation: Why Some "Lazy"... →
8 tags
Rake Stats Isn't Very Smart
I noticed something at work today. rake stats is dumb when it reports test LOC. This is something to bear in mind when evaluating test coverage mertics, as good test coverage is one thing indicative of the code base.
If you’re anything like me you like to deploy a little metaprogramming to make your tests as DRY as possible. So you might have something like this:
%w[first_name last_name...
Autodidatic polymath dropout making beaucoup... →
polar r=(sin(t)*sqrt(abs(cos(t))))/(sin(t) + 7/5)... →
Enemy + Admirer = ?
Holy shiiiiiieeettt! I love Brandon’s musings.
brandonthegreat:
Ever since I can remember I’ve sporadically been a magnet to people who were my enemies and admirers at the same time. Enemies because they’re actively opposed to the thought of my existence, and admirers because they are secretly obsessed with my thoughts and ideas.
If you’re familiar with psychology, then you would...
Why did Tumblr just spew a load of posts from my...
5 tags
Model Layer Attribute Level Access Control
I have this interesting problem at work on this web app. The requirements mandate super fine-grained access control on model objects. It’s not enough to restrict access to CRUD actions, my boss wants different roles to be able to access specific attributes and not others. i.e. normal users can access name but not salary etc.
I came up with a DSL for this. This is what it looks like:
let...
mattonrails asked: Recommended you for the Tech directory. It's not showing up yet.
FUHHHHHHHHHHHH
FUHHHHHHHHHHHH
1 tag
MongoDB is way fast →
JILFS: The Rise of the Hot Jewish Girl →
4 tags
Version Control FTW (via AIM)
Tiffani: version control is probably the best thing that's ever happened to me as a developer (especially during the early years of using it) nothing like rolling back off code you wrote when you were sleepy and/or drunk (don't ask lol)
Me: HAHA
Tiffani: I think they should teach it to freshmen in college and call it a day tried to get my compSci department chair to do that...they hold off until an upperlevel class though. huge mistake. SVN or Git or whatever would have saved my ass so many times freshman year and before that really.
Me: lol
Tiffani: seriously
Me: soooo coding drunk? lol. i couldn't resist!
Tiffani: there are photos.
Me: please do elaborate
Tiffani: *untagged* on Facebook
Me: lol smh
Tiffani: it was kind of a test, sobriety test lol. unfortunately, I could tell the next day I failed. you don't want to get drunk with a bunch of nerds...this is what ends up happening
Me: lol insanely funny
Tiffani: I started sobering up and thinking I could pontificate on OOP and all kinds of ish, then I sat down and started coding. FAAAAAIL. I don't know why I didn't just go to sleep
Me: "I started sobering up and thinking I could pontificate on OOP and all kinds of ish" - OMG *DEAD* LAMAOMASAOSMAO
Tiffani: nothing serious happened..it was just exceptionally bad code
Me: lmao
Tiffani: I know I know lol
Funny world... Funny people...
aniyasblog:
Referring to me, my opinions, experiences or thoughts as “ignorant” is only the easiest way to show off your very own ignorance… The End.
non-sequitur.
4 tags
Project Euler in Ruby: Problem #3
Problem
The prime factors of 13195 are 5, 7, 13 and 29.
What is the largest prime factor of the number 600851475143?
Solution
require 'mathn'
class Integer
def largest_prime_factor
number = self
prime = Prime.new
divisor = prime.succ
while divisor < number
number /= divisor if number % divisor == 0
divisor = prime.succ
end
divisor
end
end
puts...
Insanely delayed reaction.
10 tags
Haml & Sass: Pointless abstraction?
I remain unconvinced on the utility of Haml and Sass. I definitely am convinced it’s not commensurate with the airtime they get online and in dev circles.
Hand coding semantic, well-formed HTML is so trivial every professional developer should be able to do it. It’s not uncommon to have 10+ years HTML experience. People have literally grown up with it.
Textmate HTML bundle tab...