Are You Colorblind?

fakescience:

Are You Colorblind?

ha ha, now that’s just mean.

Cleaning out macruby (if you have to)

Macruby 0.6 is out, and with it a lot of new enhancements, but unfortunately i’ve been having some difficulties with rubygems.

Thankfully Matt Aimonetti is not only an awesome guy but also willing to help out if you’ve got a problem! I asked him what i could do to get my system back to a pristine state (since running the installer again over my borked install didn’t help).

Matt pointed out that all macruby really does to your system is drop some executables into /usr/local/bin/, and a framework in /Library/Frameworks/MacRuby.framework/.

So, if you do this:

ls /usr/local/bin/mac* | xargs rm
rm -rf /Library/Frameworks/MacRuby.framework

(you may have to sudo for the last one), you should be back to square one from which you can reinstall macruby.

Happy hacking!

Best sentence involving Paris Hilton ever

Thus, e.g. if Paris Hilton knows that Paris Hilton is Paris Hilton, then she must also know that every nontrivial zero of the zeta-function has real part 1/2, if that is indeed the case, or else she must know that this is not the case, if indeed it is not.

The abstract for Hyperintensional Questions, authored by Carl Pollard, a professor at my alma mater

RE: SEC proposal to require asset backed securities described in python.
Ben Larrimer:i just don't know enough to assume that python doesn't have some amazingly important reason for using
Ted Han:your opinion would be interesting as a lawyer :)
Ted Han:it doesn't
Ted Han:i think what they're going for with Python
Ted Han:is that they want something that is Open Source (so anybody can download the tools needed to run the code)
Ted Han:and that is interpreted code, so that the code has to be transmitted across the wire, and inspected
Ted Han:as opposed to compiled code
Ted Han:which is in an opaque binary format, and not portable from platform to platform
Ted Han:python is a fairly human readable programming language.
Ted Han:there are problems and pitfalls which i need to see if this proposal addresses
Ted Han:things like what happens when programming langauges change/update
Ted Han:what about embedded code? You can write compiled C code and stick it inside of a python program
Ted Han:and it'll run on the python interpreter, but you won't be able to inspect the C code.
Ben Larrimer:honestly.... i think it depends upon the court
Ted Han:exactly :P
Ted Han:and i don't trust the courts on tech matters
Ted Han:i really really don't
Ted Han:they've screwed the tech community too many times
Ben Larrimer:you shouldn't. the way even liberal courts have shackled technology isn't shameful, its just stupid
Ted Han:yeah
Indexes and auto migration in DataMapper
< snusnu>JamesHarrison, knowtheory: you *can* specfiy indexes
<@dkubb>yeah
<@dkubb>you can go: property :name, String, :index => true
<@dkubb>that'll create an index for just that property
<@dkubb>you can also go: property :name, String, :index => :something
< snusnu>JamesHarrison: :index => true or :unique_index => true, or :unique_index => :some_index_name (for compound indices)
<@dkubb>where :something is a label that multiple properties share
Formative Experiences: Intro to Chapter 5 of Larry Wall’s Programming Perl

Reading Larry Wall’s Programming Perl book was a formative experience for me in a variety of ways. Discovering that writing about programming could be funny was amazing. But more importantly, that writing about programming could be fundamentally insightful while being funny was the true delight. The introduction to Chapter 5 on “Packages, Modules and Object Classes” is the distillation of what makes this book great. Wall’s awareness of the sociology of programming and addressing/accommodating/reining developers and their base instincts is something that’s stuck with me far beyond my dalliances with perl. If you’re a programmer, these paragraphs are worth a read

This chapter, more than any other in this book, is about Laziness, Impatience, and Hubris – because this chapter is about good software design.

We’ve all fallen into the trap of using cut-and-paste when we should have chosen to define a higher-level abstraction, if only just a loop or subroutine.[1] To be sure, some folks have gone to the opposite extreme of defining ever-growing mounds of higher-level abstractions when they should have used cut-and-paste.[2] Generally, though, most of us need to think about using more abstraction rather than less.

(Caught somewhere in the middle are the people who have a balanced view of how much abstraction is good, but who jump the gun on writing their own abstractions when they should be reusing existing code.)[3]

Whenever you’re tempted to do any of these things, you need to sit back and think about what will do the most good for you and your neighbor over the long haul. If you’re going to pour your creative energies into a lump of code, why not make the world a better place while you’re at it? (Even if you’re only aiming for the program to succeed, you need to make sure it fits it’s ecological niche.)

[1] This is a form of False Laziness.

[2] This is a form of False Hubris

[3] You guessed it, this is False Impatience. But if you’re determined to reinvent the wheel, at least try to invent a better one.

Content Aware Fill Fail
via Reddit

Content Aware Fill Fail via Reddit

Datamapper paranoid delete quirks - Hez's Bloggity Blog

I’d never bothered learning about how DataMapper does paranoid properties and how to work w/ paranoid models. Out of a discussion today in #datamapper on freenode, i learned how! I suggested to Hez, who was the impetus for the discussion, that he write up what we learned, and he did! Check it out at the link.

The most hyperbolic NYT piece ever

After all, nothing is more demoralizing and damaging to a nation than being beaten at your national sport. Even having been dragged into an 8 year long war, where your country men are losing life and limb, with no end in sight, pales by comparison!

For Canada, anything other than victory after Sunday’s humiliating 5-3 defeat by the United States would have been a catastrophe that scarred the nation’s psyche.

Thank you NYT, for your startling clarity and insight. Your vivid description of what is vital to the collective Canadian subconscious.