Vanity Foul : Latest Comments
Show the Latest Comments

Commenting on Groovy Markup Builder:

Okay, I had a "DOH" moment: I'm still relatively new to groovy and it escaped me that builder.x(foo:'bar', bodyText) is the same as builder.x(fooHash, bodyText)! builder.updatetime(attributes, sdf.format(updateTime)) worked just fine.

Posted by Lance (76.17.209.80) on April 09, 2009 at 08:26 AM CDT

Commenting on Groovy Markup Builder:

I can just pass the map in and get the attributes as the key="value" pairs? Awesome, I don't think I've seen that mentioned anywhere. I'll be trying that today. Thanks Ted.

Posted by Lance (76.17.209.80) on April 09, 2009 at 07:47 AM CDT

Commenting on Groovy Markup Builder:

Shoot, the comment system ate the html part of the result even though it was in a pre. Give it a try in a groovyConsole as I think the output is the same as what you wanted in your post.

Posted by Ted Naleid on April 08, 2009 at 08:38 PM CDT
Website: http://naleid.com/blog

Commenting on Groovy Markup Builder:

I'm not sure I'm fully following what you're trying to do, but if you've already got a map, why are you trying to recreate it using "attributes.each{key, value -> key:value}"? In the markup builder, there's a magic value called "mkp" that you can call yield on to print a value out as the text node child of an XML node. Here's an example that approximates what I think it is you're trying to do:
import groovy.xml.MarkupBuilder
import java.text.SimpleDateFormat

def writer = new StringWriter()
def builder = new MarkupBuilder(writer)
def sdf = new SimpleDateFormat("hh:mm aa z EEEE, MMM d")
def updateTime = new Date()

def attributes = [day: "2", mon:"8", date:"11", yr:"2008", hr: "4", tz: "GMT", mer:"am", min:"1", sec:"0"]

builder.updatetime(attributes) {
    mkp.yield sdf.format(updateTime)
}

writer.toString()
prints:
07:12 PM CDT Wednesday, Apr 8

Posted by Ted Naleid on April 08, 2009 at 08:32 PM CDT
Website: http://naleid.com/blog

Commenting on Re: Grails Test Fixtures:

It looks like part of the problem is that FixtureLoader doesn't save the results of beanBuilder.createApplicationContext(). And if we adding some logic to invokeMethod(), such that it looked in ctx.getBean(methodName) we could then use fixtureLoader.jobOne to get the Job created in the fixture.

Posted by Lance (66.187.202.163) on February 04, 2009 at 02:57 PM CST

Commenting on Oooh, say can you see....:

I don't think they do as they get older (I'll have to ask my older two), I remember one of them commenting about it in Elementary school not too long ago.

Posted by Lance (66.187.202.115) on November 06, 2008 at 02:40 PM CST

Commenting on Oooh, say can you see....:

Yeah, people don?t take pride in the nat?l anthem. Do the kids still say the pledge of allegiance in school?

Posted by Darryl (66.187.202.115) on November 06, 2008 at 02:39 PM CST

Commenting on Perl 6:

Here it is, nearly 2008 and Perl 6 is still a work in progress.

Posted by Lance (66.187.202.115) on December 18, 2007 at 12:46 PM CST

Commenting on Re: showRecentEntries():

I18N support was added more recently to the Velocity macros. Unfortunately I don't have access to the source from my current location, but if you do you can look at weblog.vm for some help with this.

Posted by Lance Lavandowska (198.74.20.73) on June 30, 2005 at 08:29 AM CDT

Commenting on Re: showRecentEntries():

Hi, Lance, the macro #showRecentEntries( 20 ) seems work good for English Locale, but captions contain CJK charactors will not work at all.

Posted by Gorden Lin (192.18.200.10) on June 28, 2005 at 09:02 PM CDT

Commenting on Re: Featuritis vs. the Happy User Peak:

I totally agree about the WeblogEdit page, it needs work. Most of the requests I'm hearing for new features are really requests to make things simpler and easier and that's a good thing.

Posted by Dave Johnson on June 14, 2005 at 01:53 PM CDT
Website: http://rollerweblogger.org/page/roller

Commenting on Re: Featuritis vs. the Happy User Peak:

It isn't so much recent history, though I have concerns over the podcasting additions (disclaimer: I haven't actually seen the interface for this). In particular I think we've done a clumsy job adding options to the Weblog:Entry page - I'm just as guilty as anyone else. I've spent a fair amount of time thinking about how to make it more intuitive but failed. That said, I think the collapsable sections is the best compromise. The default interface doesn't have too many options and allows for fairly straight-forward posting, I just worry about it getting out of control. Then there are all the options available under the other tabs. I think this 'hides' them fairly well, but I think Allen's recent suggestions about retooling the menu is well advised. Again, perhaps I was too harsh. I don't think Roller has gotten "out of control", but I fear that the potention for such is easily available. And I hold myself accountable for that as well.

Posted by Lance Lavandowska (198.74.20.77) on June 14, 2005 at 10:58 AM CDT

Commenting on Re: Featuritis vs. the Happy User Peak:

That's an interesting quote, but I don't think it applies to Roller. The Roller user experience hasn't changed much in the last year or so (I think that is unfortunte). The features we've added are mainly valuable to admnistrators (e.g. planet and better config subsystem). What features have we added that make Roller harder to use from a user's point of view?

Posted by Dave Johnson on June 14, 2005 at 08:48 AM CDT
Website: http://rollerweblogger.org/page/roller

Commenting on Regards to Ila Fern:

How unreasonably wonderful to be a friend to my child. Thank you more than words can say. You have just given me the most perfect gift possible.

Posted by Mom on May 06, 2005 at 09:16 PM CDT

Commenting on Empty Post Day?:

I hereby declare today, the 18th of March, Empty Post Day. Let this day be celebrated every year by posting an entry with no content, not even a title.

Posted by Lance Lavandowska (192.168.0.14) on March 18, 2005 at 07:33 PM CST

Commenting on Empty Post Day?:

It wasn't on purpose (rather, it was MT momentarily deciding that it wouldn't work properly), but "empty post day" doesn't sound like a bad idea now. The empty post was up on the site for only a few minutes, but some aggregators (including bloglines) still managed to grab it. Quite the coincidence!

Posted by Diego Doval (64.81.64.246) on March 18, 2005 at 03:04 PM CST
Website: http://www.dynamicobjects.com/d2r/

Commenting on Buzzed?:

I noticed that on my blog too. Yahoo wouldn't stoop to referrer spamming would they? I did notice that the word "roller" (as in rollerball) appears on the Buzz index. I wonder if there is some correlation there.

Posted by Dave Johnson on March 15, 2005 at 12:35 PM CST
Website: http://rollerweblogger.org/page/roller

Commenting on it's worse when they're a friend:

Thanks for your comment. We take your thoughts and comments seriously, and we're trying to learn from this experience. Dave

Posted by David Sifry on March 10, 2005 at 10:54 AM CST
Website: http://www.sifry.com/alerts

Commenting on board game recommendations:

I came across a link to BoardGameGeek today. I'll have to look up your games there: Bootlegger Cityscape Tantrix Citadels Twilight Imperium 3rd Ed. From Hixie's Jan 24th entry: Attack! Blokus 1856 Richochet Robots Acquire Power Grid Quicksand Carcassone looks interesting. From Jan 10: Euphrat & Tigris From Dec 12th, 2004: Bohnanza Alhambra

Posted by Lance (198.74.20.78) on March 10, 2005 at 08:55 AM CST

Commenting on Re: The Contribution Society:

Please do when your thoughts have "gelled". I'm always impressed at how well you express yourself!

Posted by Mom on March 01, 2005 at 04:16 PM CST

Commenting on board game recommendations:

because you are better than me, of course (and much less lazy :-)).

Posted by Lance (192.168.0.12) on February 21, 2005 at 04:54 PM CST

Commenting on board game recommendations:

I haven't been including links because I've mostly been writing the blog entries off-line. Also, if it's hard for you to find sites about the games, why would it be easy for me? :-P

Posted by Ian Hickson on February 21, 2005 at 03:58 PM CST
Website: http://ln.hixie.ch/

Commenting on I'm a wealthy miser!:

I started an account last month. I'm currently averaging about 38 cents a day. Not bad, but I wouldn't mind seeing more like 50 cents. I should take up the idea you and others are doing. Only show the ads to search engine referrals. They are the most likely to want to click on one than my regular readers. :)

Posted by Dave M. on February 16, 2005 at 04:14 PM CST
Website: http://www.daveschalkboard.com

Commenting on SourceBeat, for magazines:

This is an extension of an idea I already pitched to Matt and Jim (the SourceBeat publishers). http://jira.sourcebeat.com/browse/SB-3 I think it's a great idea.

Posted by Bruce Snyder (24.8.139.227) on January 03, 2005 at 11:09 PM CST

Commenting on SourceBeat, for magazines:

Is there an On Java publication? Now that you mention it, perhaps O'Reilly would be another natural source for a periodical.

Posted by Lance Lavandowska (192.168.0.10) on January 03, 2005 at 10:09 PM CST

Commenting on Meet me in St. Louis:

Sounds good to me, I love brewpubs! I think I should be able to find my way there :-)

Posted by Lance Lavandowska (192.168.0.10) on January 03, 2005 at 09:58 PM CST

Commenting on Meet me in St. Louis:

I'd love to hookup. How about CB Potts on Monday night?

Posted by Matt Raible on January 03, 2005 at 04:26 PM CST
Website: http://raibledesigns.com

Commenting on SourceBeat, for magazines:

How would it differentiate from onjava.com?

You seem to pretty much just be suggesting a sourcebeat version of that.

Posted by Henri Yandell on January 03, 2005 at 08:38 AM CST
Website: http://blog.generationjava.com/roller/page/bayard/

Commenting on SourceBeat, for magazines:

Hmmm, that's definitely an interesting idea.

Posted by Matt Raible on December 18, 2004 at 04:08 PM CST

Commenting on I'm A Functional Idiot:

Thanks Abhijit for reading my blatherings (though I'm still not sure why anyone bothers :-) ). I'm going to give the article another go, as once I progressed to the "closures for business rules" part it made sense again to me. I think the problem I was encountering was that the example (page 8 or so) was just too dense. By using the Apache-supplied classes the example becomes more opaque. Whether the 'solution' is to reimplement them (code is worth a thousand words?) or just spend more time describing them I am not sure. As I mentioned in the main post, I think doing a bit of code with explanation (rather than 'all the code' then 'explain it all') would work better *for me*. BTW: the last section of the article, on closures, was much better. I hadn't got that far yet when I posted (read on the bus). I particularly liked how it demonstrated composition of predicates.

Posted by Lance Lavandowska (198.74.20.78) on December 17, 2004 at 09:39 AM CST

Commenting on I'm A Functional Idiot:

Hello Lance, I have been a reader of your blog for some time now. I'm sorry that my article wasn't very successful in explaining FP (at least the support for it in the Jakarta Functor project) to you. If you like, I'll be more than happy to go over the specific points in it that were unclear. Best regards, Abhijit

Posted by Abhijit Belapurkar on December 16, 2004 at 10:24 PM CST

Commenting on Re: CVS Hosting:

Thanks to the miracles of search engines and referrers I discovered two more CVS hosting solution.

Posted by Lance Lavandowska (198.74.20.78) on December 16, 2004 at 02:16 PM CST

Commenting on I'm A Functional Idiot:

Thanks Brian. I've seen closures in Python and Groovy, and liked what I saw.

Posted by Lance Lavandowska (198.74.20.78) on December 16, 2004 at 02:07 PM CST

Commenting on I'm A Functional Idiot:

Java makes it inconvenient to do most FP type things, possible (like objects in C) but inconvenient. I would suggest trying out Ruby to get a good feel, blocks come pretty naturally to most Java folks. The best overall thing to make the lightbulb go off is probably a small book called "The Little Schemer" which uses, wait for it, Scheme =) It is as much about thinking recursively as it is about functional abstraction, but the two go hand in hand.

Posted by Brian McCallister on December 16, 2004 at 12:13 PM CST
Website: http://blog.skife.org/

Commenting on Sorry For All The Political Content:

No need to apologize for the recent politcal nature of your blog. There are many people in the same boat as you, trying to reconcile the country's attitudes/beliefs with personal ones. It makes for an interesting, introspective read which I've been sharing with anyone I meet.

Posted by Jason Graff (192.168.0.20) on December 15, 2004 at 10:37 PM CST

Commenting on Hate Apache much?:

That was about the dumbest thing I have ever read on the internet. Too bad there isn't a way to post negative links.

Posted by Tim McGuire on December 14, 2004 at 02:34 PM CST
Website: http://www.phpsolvent.com/wordpress

Commenting on Hate Apache much?:

True, I guess I am just encouraging them by linking to it. Still, the tone was just so snotty that I couldn't resisted. I am easily baited, which is why I stay away from newsgroups and IRC.

Posted by Lance Lavandowska (171.72.5.226) on December 08, 2004 at 11:45 AM CST

Commenting on Hate Apache much?:

Weird, I thought it had been pulled. The original interview was with John Ribeiro and was on a completely different website. The Techworld.com people took that interview and rebranded it on their site with Kieren McCarthy's editorial comments (ie the last line and the title). Sadly, these kinds of publications are all about advertising and the best thing that could happen for them is that an article will create lots of buzz and drive lots of people to their site. Contraversial articles are encouraged.

Posted by Henri Yandell (12.220.74.99) on December 07, 2004 at 09:56 PM CST

Commenting on Custom favicon.ico:

Thanks for the posting. I hope that it helped and let me know if you need any more information on it.

dl

Posted by Dan Lacher on December 06, 2004 at 06:54 PM CST
Website: http://blogs.sun.com/dlacher/

Commenting on Fighting Words For A Secular America:

I'm not anonymous, this is my blog. Arguably, the USA is not currently forcing a religion on its citizens. What I "fear" is our government moving in that direction. Some policies and policy directions declared by our leaders (particularly in Congress) appear to be in support of such a move. As to "arguably", an example: in the 1950's (sorry, I forget the exact year) the words "under God" were added to the Pledge of Allegiance. The Pledge should be restored to its original state so as to not advocate a State religion (or at least monotheism).

Posted by Lance Lavandowska (171.72.5.133) on December 06, 2004 at 09:58 AM CST

Commenting on Hate Apache much?:

For real. So the ASF is paying for hosting. So what? Next they'll notice that the ASF pays for bandwidth too. Some people just don't get it. It's about whether people get paid, it's about the damn code.

Posted by Glenn (65.6.14.169) on December 03, 2004 at 09:40 PM CST
Website: http://haikudojo.com

Commenting on Fighting Words For A Secular America:

Excuse me "Lance", you are posting just as anonymously. What government is forcing a religion on you? America isn't forcing it on their citizens. Middle East countries are forcing it on their citizens.

Posted by on December 03, 2004 at 04:34 PM CST

Commenting on Tomorrow may be too late:

And what does that have to do with arrogance?

Posted by Lance (192.168.0.20) on November 26, 2004 at 03:28 PM CST

Commenting on Fighting Words For A Secular America:

It's exactly the point of forcing a religion that concerns me. And it is easy to comment anonymously.

Posted by Lance (192.168.0.20) on November 26, 2004 at 03:27 PM CST

Commenting on Tomorrow may be too late:

Would that be the REVEREND Martin Luther King???

Posted by t123b456 on November 26, 2004 at 11:53 AM CST

Commenting on Fighting Words For A Secular America:

But -- Mr. Lincoln may not agree with you. It's easy to pick out the ones you like and ignore the ones you may not like. The first amendment doesn't mean what you imply, it just means the state cannot FORCE or Proclaim a state religion. I have no idea why people fear Christians. Not being one myself, I can't fathom the reasons. Read Lincolns proclamation about Thanksgiving then get back with me.

Posted by t123b456 on November 26, 2004 at 11:52 AM CST

Commenting on RSYA:

Thank you very much. I just added roller to my site and was wondering if a list of known spammers was available.

Posted by bree (216.231.208.128) on November 03, 2004 at 11:14 AM CST

Commenting on The Referer Spam battle rages on:

you might want to look at openbsd firewall with it's spam deferal daemon, spamd

Posted by mike on November 01, 2004 at 05:29 PM CST

Commenting on TCJUG: Advanced Hibernate:

Mmmm, beer! It was interesting to hear about Hibernate for a large enterprise perspective. I had heard rumors of a TC Java's Users drinking group but didn't have the inside info that Will just posted. I will have to check that out. :) It was really great to get a chance to talk to with Will and Lance. I don't have a lot of chances to interact with great developers since I work at a small company so it is always great to meet with talented people like Lance and Will.

Posted by Kurt Wiersma on October 21, 2004 at 02:31 PM CDT
Website: http://jroller.com/page/kwiersma

Commenting on Re: Re: The Referer Spam battle rages on:

On your last point: yes, this stops them from getting any google-juice, but would it stop them from pounding on my site? I dunno how selective these scripts are.

Posted by Lance (198.74.20.78) on October 18, 2004 at 11:34 AM CDT

Brainopolis Blogs | Weblog | Latest Comments | To-Do List | LifePathNumber | Wish List | Login