tags: Marc

Action executed in 0.000

Each Tag

Marc

Common tags - number of posts

This Land is Your Land (1), Guthrie (1), Xerces (1), SonicSpin (1), guitar (1), XML (1), truncate (1), lyrics (1), articles (1), TrickleUp (1),

●●●●●○○○

SonicSpin

tags: SonicSpin, Marc
Marc's blog

url: http://sonicspin.info/

type: none, format: none

This Land is Your Land

I'm here this weekend at work and to my surprise my buddy Marc is also here. He just introduced me to the complete lyrics to "This Land is Your Land" by Woody Guthrie. Take a look at the 5th verse.

Guitar Test, Truncated XML

After a short workout, i went with Marc directly from work to Guitar Center. We went to the back room were we tested a varied selection of Martins and Taylors.

The Taylors have a tinny and bright sound whereas the Martins have a mellow and full bodied sound. After hearing it, i'm now thinking about the D-28; after all this guitar will last me a lifetime.

I didn't work on the comment feature on account of this dilemma. I want to provide truncated versions of articles on the top page, but don't know how to truncate XML without invalidating it. I do have one idea. Basically read and parse the content maintaining a stack of open tags. Count the number of characters printed. When you hit the limit, close all the open tags in reverse order.

PHP and Java have nice libraries to parse XML. I just prefer Xerces.