This is too entertaining not to share

Posted by kev Fri, 09 Nov 2007 02:08:00 GMT

I’ve apparently “hacked” someone’s unborn children. Or something.

And, among the lists of names, includes someone who goes by the name of Kevin Clark. And, if you were to take it even one step further, and INVESTIGATE this person, you would also come to the conclusion that he is a computer hacker who resides (or has resided) in San Francisco before. Another coincidence, I suppose?

Update: She says in one of her latest comments that she has a gun now. It’s amusing, but please do not poke/provoke her. Look, but do not touch.

Update 2: She’s still accusing me of multiple felonies, but seems to have leveled off. I don’t think she’s going to track me down at this point. Woo personal safety. Oh, and technorati is apparently involved now:

I believe Mr. Clark is somehow routing fake websites through technorati via powerset and is doing something illegal.

Posted in  | 8 comments

<3 rpm version comparison

Posted by kev Wed, 19 Sep 2007 21:19:00 GMT

/* take care of the case where the two version segments are */
/* different types: one numeric and one alpha */
if (one == str1) return -1; /* arbitrary */
if (two == str2) return -1;

– rpm/lib/misc.c

Posted in ,  | no comments

Johnathan Coultan

Posted by kev Wed, 19 Sep 2007 18:23:00 GMT

Geeky, catchy music. So awesome. If you’ve heard “Areas of My Expertise”, this is Hodgeman’s buddy. (via Wanstrath)

Posted in  | no comments

Code Personified

Posted by kev Thu, 13 Sep 2007 20:31:00 GMT

if self.stillHopeful:
    # oh, cruel reality cuts deep. no joy for you. This is the
    # first failure. This flunks the overall BuildSet, so we can
    # notify success watchers that they aren't going to be happy.
    self.stillHopeful = False
    self.status.giveUpHope()
    self.status.notifySuccessWatchers()

– Buildbot Source

Posted in  | no comments

Ruby Gotcha of the Day: String Ranges

Posted by kev Wed, 20 Jun 2007 19:05:00 GMT

Spot the pattern?

('1'..'10').to_a
# => ["1", "2", "3", "4", ..... "10"]

('2'..'10').to_a
# => []

('2'..'20').to_a
# => ["2", "3", "4", "5", ..... "20"]

('3'..'20').to_a
# => []

('3'..'30').to_a
# => ["3", "4", "5", "6", ..... "30"]

('4'..'30').to_a
# => []

('4'..'40').to_a
# => ["4", "5", "6", "7", ..... "40"]

(2..10).to_a
# => [2, 3, 4, 5, 6, 7, 8, 9, 10]

('2'.to_i .. '10'.to_i).to_a
# => [2, 3, 4, 5, 6, 7, 8, 9, 10]

Posted in ,  | 5 comments

On Twitter, Rails, and Community

Posted by kev Sun, 15 Apr 2007 20:13:00 GMT

An interview by a twitter developer has gotten a good deal of press lately. For many, it has reawakened the giant that is the “does Rails scale” debate, and others feel compelled to defend the framework.

The problem with Rails isn’t that Ruby is slow. It’s also not that Rails is slow, or big, or bloated, or doesn’t scale. The problem isn’t that Rails doesn’t support multiple databases or composite keys out of the box. The problem is that this is how the vocal minority in the community tends to respond to criticism.

So let’s all slow down and take a look at how we got here and what we can do to avoid it. That’s of course assuming we want to. Inflammatory posts certainly get lots of traffic, but I think Rails is in the spotlight enough we can actually talk like reasonable people and still get things done.

More after the jump.

Read more...

Posted in , ,  | 29 comments

On The Day's Events

Posted by kev Thu, 31 Aug 2006 01:25:00 GMT

So, I seem to have inadvertently caused a significant amount of controversy with this morning’s article on what I don’t think you should be doing in Rails. Some rather harsh words have been exchanged. It’s time for us all to take a breath, count to ten, and remember we’re all just coders working together to make Rails (and Ruby) better.

Matz is nice, so we should be nice.

With that as a preface I’d like to explain some of the things I said which caused a stir. Hopefully this will clarify and you can stop thinking of me as some pre-pubescent FUDdy jerk if indeed that’s where you stand.

I thought I was giving you a list of things that you should avoid in modern versions of Rails. I didn’t get anything back differently from my reviewers. You should know that for bigger articles like this I always have a group of people take a look see first and give me feedback. These are people that I respect and may be better at writing and programming than I am (and often are). I wait to get OKs from that group before I post.

I think this group of lines may have been my downfall.

See? A halt! Sufficiently frightened? You should be. Now, stop using these things. It’s for your own good.

I rather regret this. In my head it was tongue-in-cheek. My reviewers didn’t even mention it though I imagine they knew I was joking since they know me personally. Others apparently didn’t. What I meant to say was that I hope the list would coerce you into improving your code. That message got lost somewhere along the line and I feel like we’ve played a rather large game of telephone. I’m sorry for that.

Pagination seems to be the issue we pulled apart today so let’s talk about that for a few minutes. I said some things about pagination that, after returning to them, seem a bit cryptic. Sorry about that. Let me clarify: the built in pagination helpers are a hackish pain. They’re hard to work with and have some efficiency issues. As a result, working with very large data sets can cause it problems. Don’t be afraid, just be aware. With large data sets you’ll want to roll your own. The Paginator object itself isn’t so bad (though we really should clean it up) and I prefer to use custom pagination with it over the helpers.

That being said, we’ve talked about pulling out the Rails pagination helpers into a plugin for a while. I imagine they were brought up when I passed the article around was for that reason. It isn’t deprecated yet, but it probably will be.

Now, if you have other concerns please bring them up here.

Update: A friend has noted that one of the problems may be that some look at me as a voice of the core. Let me be clear: I’m not in core. I don’t speak for core. I speak for myself based on my knowledge and opinions. When I say, “we’ve talked about it” I mean “I’ve talked with developers working with the core in and outside the core team and the consensus seems to be that pagination will come out”. BUT, I’m still not David and not the core.

Posted in , ,  | 29 comments

Curing the Help Vampires

Posted by kev Thu, 23 Mar 2006 21:23:00 GMT

Listless? Tired? Unable to give helpful feedback? Perhaps the help vampire has got you down! Learn about how to defeat (and cure) them at Amy Hoy’s Slash7.

Posted in  | no comments | no trackbacks

Recent Downtime

Posted by kev Wed, 25 Jan 2006 22:07:03 GMT

Sorry about the recent outages folks. Seems apache was having some permissions errors, but the great people at Planet Argon were quick to get me fixed up.

Posted in  | no comments | 1 trackback

So, I'm famous

Posted by kev Thu, 05 Jan 2006 20:23:00 GMT

Ok, so thats just a hook. I’m not really famous. I did however make the front page of Digg, albeit not credited to me directly. I guess I should give some background.

I’m the managing editor of a satire newspaper at UCSD. These days I don’t do alot of writing, but I have had some articles I was proud of over the last several years.

One of them made digg and, according to the comments, the front page.

Cool eh?

Posted in  | no comments | 1 trackback

Older posts: 1 2