Brian's Waste of Time

Fri, 20 Feb 2004

Serious Astroturfing

This is pathetic. Thank you, Andy, for pointing it out. Makes me want to break out my Andre: "I don't think that word [grassroots|nonpartisan] means what you think it means."

0 writebacks [/tech] permanent link

Newspeak, FSF, "Free"

I am a bit amused by the hullabaloo about the ASL 2.0 not being compatible with the GPL according to the FSF. I don't particularly care, personally, about the FSF's opinion of the license -- but that is because for the most part I view the FSF as I view [insert obnoxious dogmatic beurocracy of choice] -- people that latched onto good idea and built a bad system around it to further their personal goals.

I have never been a fan of the GPL -- the redefinition of free has always bothered me in a 1984 way. The GPL places a lot of restrictions on what you can do in order to make the software free. Call me dense, but "Restriction is Freedom" sounds a lot like "War is Peace" =/ I understand (I think I do, anyway) the politics and philosophy behind the GPL and FSF -- I just disagree.

If you believe that open and free software will lead to better sofware than believe in that (and I'll agree with you). There is no need to try to force everyone else to also believe it. If you are right, you are right. If you are wrong, then let yourself be wrong and don't try to force everyone to sink with you. The FSF's dogma reads like a famous last stand (in the Terry Pratchett sense).

1 writebacks [/tech] permanent link

Better GroovySQL Example

Glen complained that the example in my previous post was pretty bad, so here is a better one in honor of Andy ;-)

<step name="md5-passwords" type="groovy">
    <script>
import groovy.sql.Sql
import java.security.MessageDigest

sql = new Sql(connection)

sql.queryEach("select password, user_id from users") {
    MessageDigest md = MessageDigest.getInstance("MD5")
    sql.execute("update users set password=? where user_id=?",
                 [md.digest(it.password.bytes), it.user_id])
}
    </script>
</step>

=)

4 writebacks [/src/groovy] permanent link