Entries created during 2004


Worse Is Better
- The story of Worse is Better.
To links coding lisp theory ... on Tue 12/14/04 at 04:05 PM
Massive Frog Eats Three-Legged Radioactive Dog!
- The frog is probably radioactive too.. it's pretty big.
To links diversions funny ... on Tue 12/14/04 at 04:44 AM
Kid on Cafe con Leche
- Elliotte Rusty Harold announces Kid to the masses. thanks!
To links coding kid python splice ... on Tue 12/14/04 at 04:13 AM
Gish
- Supposedly kick ass video game for OS X, Linux, and Windows. Free demo available.
To links diversions games linux osx ... on Mon 12/13/04 at 11:39 PM
The present and future value of Python
- Udell talk on Python from Summer 2004. He talks about python running on JVM/CLR/Mono towards the end.
To links coding python ... on Mon 12/13/04 at 06:43 PM
Have a coprophilic Catalan Christmas
- We'll be adopting this tradition in my home this Christman. no doubt.
To links diversions funny ... on Mon 12/13/04 at 02:43 PM
Don't Let Architecture Astronauts Scare You
- mmmmm.. mangos.. yum.
To links coding theory ... on Mon 12/13/04 at 02:41 PM

How I explained REST to my wife...

Some days the Powerbook gets more attention than the wife and so she snoops over my shoulder and starts asking a bunch of questions about whatever is on the screen. She doesn't really care, this is just the cue to shift my attention over to her. I usually do just that and say something like, Oh, this is some interesting stuff but nothing you would care about.

But on this day I decided that I would play along a bit and see how far I could take her into my world before she ran away screaming in terror.

To weblog coding web ws rest soap xml ... on Sun 12/12/04 at 12:30 PM

Blasphemy!

At this very moment, Linus Torvalds has a massive 42 vote lead on the next closest contender for the Twenty Top Software People in the World. Unfortunately, that next closest contender is Alan Turing. Blasphemy! This is just wrong on so many levels. I have a ton of respect for Linus and all but come on people, if you go to this site and don't use a vote on Turing you need to get your head examined. The closest Linus should come to Turing is a tie: if every single visitor to the site votes for both.

To weblog coding stupid diversions ... on Sat 12/11/04 at 08:44 PM

But the world doesn't work that way

I was searching for a specific piece of Dive into Python when I ran into this classic from diveintomark.org:

Tom: "This is really good. You could probably make some money off this someday."
Mark: "Maybe, but I'm not going to. I'm giving it away for free."
Tom: "Why would you do that?"
Mark: "Because this is the way I want the world to work."
Tom: "But the world doesn't work that way."
Mark: "Mine does."

I had to pour out a little liquor for my homies.

To coding python freeculture weblog ... on Sat 12/11/04 at 08:33 AM

Python Tutorials, more than 100, sorted by topic and category
- nuf' said.
To links coding python reference ... on Sat 12/11/04 at 08:26 AM
Optimize Me Harder
- "Nobody *really* modifies the source of open source software." -- somebody didn't get that memo; possibly all of australia..
To links foss linux ... on Sat 12/11/04 at 08:12 AM
New file system (WinFS) has long road to Windows
- It's not going to happen you guys...
To links diversions microsoft ... on Sat 12/11/04 at 06:52 AM

More on cross-breading ZPT and XSLT - Transformation Templates in Kid

This is the second post in response to cross-breading ZPT and XSLT. I'd like to dig into how I'd like templating to work in Kid and Leslie opens the door for me:

... maybe this is the sort of thing Ryan's thinking about-- I wonder how hard it would be to hack this into Kid? It would give only a subset of XSLT's capabilities in trade for simplicity, and would only offer the pull approach, but it would give XML-pipelining to a ZPT-ish technology.

To weblog coding python xml kid splice ... on Sat 12/11/04 at 05:31 AM

A Crash Course in Python
- Nice intro to Python HTML-based slides. This covers a ton of info in a very small space.
To links coding python reference ... on Sat 12/11/04 at 05:02 AM
The groovy sinking ship
- Hani at his finest, lambasting the Groovy project and the Dynamic Java meetup.
To links bile coding funny java ... on Sat 12/11/04 at 02:59 AM

Why isn't there a simple XSLT?

Leslie de 0xDECAFBAD talks a bit about cross-breading ZPT and XSLT and mentions Kid along the way. This is the first in a series of response posts.

To weblog kid splice python xml ... on Fri 12/10/04 at 11:16 PM

Laptops a Hot Fertility Issue
- I've been looking for an alternative to vasectomy.
To links diversions funny ... on Thu 12/09/04 at 11:17 AM

The Day Tim Bray Saved Java

In Weapons and Coding, I made a prediction:

The first environment [Java / .NET] to successful mesh static and dynamic languages into a coherent platform will win the interpreted byte-code market.

Tim Bray must have come to a similar conclusion because he recently organized a meeting of the minds at Sun to talk about Dynamic Java. Here's a great pic of the BDFL and Larry Wall Tim shot right before they pulled out their katana's to settle the Python vs. Perl debate like gentlemen.

Katana

In my mind, Tim is moving into this small classification of people labeled, Hero. His past work on XML (as in, his name is on the Recommendation), recent work on Atom, declaration of The Loyal WS-Opposition, contributions through W3C TAG on the excellent Architecture of the World Wide Web, and now this seemingly unrelated initiative to get Sun to wake up about dynamic languages puts Tim on the right side of almost every major area of innovation I'm interested in. Go Tim, go!

I really hope this leads to some serious discussion on how we can bring static and dynamic languages together into a single cohesive platform. Drop the MFL is better than YFL talk found in Every Language War Ever. We need to start having these types conversations: MFL is a compliment to YFL. This is happening only in very small pockets right now and until today, they were pockets without a lot of potential for real impact.

To java python coding weblog ... on Thu 12/09/04 at 08:50 AM

Dynamic Java
- Oh Tim, how I love thee. Let me count the ways..
To links coding java python ... on Thu 12/09/04 at 06:45 AM
gyum - Graphical User Interface for Yum
- Cool. This is one of the most frequent requests on yum-devel. Not sure who's behind this though because I don't remember seeing it discussed on the mailing list.
To links fedora linux tools yum ... on Thu 12/09/04 at 06:16 AM
4096 Color Wheel Version 2.1
- Is it just me or are color pickers the only apps that are innovating on the web. You can never have too many of these.
To links color design tools web ... on Tue 12/07/04 at 10:44 PM
Teen pregnancy in the Red States
- oops..
To links politics ... on Mon 12/06/04 at 10:56 PM
Java is not Python, either...
- Nope.
To links coding java python ... on Mon 12/06/04 at 10:51 PM
bugzilla.redhat.com: Bug 127369
- Best bug report I've ever seen in my life.
To links diversions fedora funny linux ... on Mon 12/06/04 at 09:56 PM
Apple of IBM's eye?
- Did IBM drop the x86 PC so it could start selling Mac's? Interesting..
To links diversions osx ... on Mon 12/06/04 at 07:15 PM

FC2 to FC3 upgrade with Yum

I finally got around to upgrading one of my non-critical FC2 desktop boxes to FC3 using yum and figured I'd dump my notes for Google. This covers the basic upgrade process.

To linux yum fedora weblog ... on Mon 12/06/04 at 03:33 PM

Python Vs Ruby
- A complete comparison..
To links coding python ruby ... on Mon 12/06/04 at 01:56 PM
a generator-based XML reader
- Fredrik Lundh with a super simple technique for incremental parsing with ElementTree. There's a few limitations but this is probably all that is needed in large portion of cases.
To links coding python ... on Sun 12/05/04 at 09:35 PM

XML Pull-chaining with Python

So this is pretty crazy. I'm messing around with ElementTree (which has been nothing less than perfect) and trying to get it to act like a xml.dom.pulldom/XmlTextReader style pull-parser. But I'd like to be able to assemble a chain of generator producing/consuming functions (or other callable) so that the file can be read, parsed, filtered/mutated, encoded, and written all incrementally.

Check it out:

import sys
import pulltree    # that's what I'm working on :)

def upper_filter(source):
    for (ev, item) in source:
        if ev == pulltree.CHARACTERS:
            item = item.upper()
        yield (ev, item)

reader = pulltree.reader(sys.stdin)
filter = upper_filter(reader)
writer = pulltree.writer(filter, sys.stdout)

for (ev, item) in writer:
    pass

C-z

$ echo "<hello>world</hello>" | python test_filter.py 
<hello>WORLD</hello>

That felt good. More functional than a chain of SAX XMLFilters, almost as efficient, and muuuuch perdier.

Something like this might work someday soon:

import urllib2
from pulltree

XINCLUDE = '{http://www.w3.org/2001/XInclude}include'

def xinclude_filter(source):
    events = iter(source)
    for (event, item) in events:
        if event == pulltree.START_ELEMENT and elm.tag == XINCLUDE:
           href = item.attrib['href']
           for woot in pulltree.reader(urllib2.urlopen(href))
               yield woot
           pulltree.eat(elm, events) # eat events to the end of the element
        yield (ev, elm)

Granted, that's as basic an XInclude processor could be and still be useful but you get the point.

To python coding xml weblog ... on Sun 12/05/04 at 12:08 PM