The Kaptain on … stuff

30 Aug, 2009

Twitter Weekly Updates for 2009-08-31

Posted by: TheKaptain In: TweetTweet

Powered by Twitter Tools

30 Aug, 2009

Twitter Weekly Updates for 2009-08-31

Posted by: TheKaptain In: TweetTweet

Powered by Twitter Tools

30 Aug, 2009

Twitter Weekly Updates for 2009-08-31

Posted by: TheKaptain In: TweetTweet

Powered by Twitter Tools

27 Aug, 2009

VIJUG Griffon/Groovy Presentation

Posted by: TheKaptain In: Development

I had a great time tonite geeking out with Griffon in front of an audience. My thanks to everyone that attended, and especially to Manfred Moser and VIJUG for the chance to show off some Groovy and Griffon Swing code!

The venue was great – very nice that the Vancouver Island Tech Park is kind enough to host meetings. Next time I’ll have to come early enough to figure out how to make the projector do better than 800X600 resolution, however. Hard to show much other than a slide deck presentation with that little space. Then again I may be a little spoiled when my usual is 1920X1200.

I love using Keynote for presentations with the Apple infrared remote. Between the presenter view with notes to guide what I wanted to say(and to remind me when to step out and demo some code) and the timer to keep me on track, it went really pretty smooth. That’s my story, and I’m sticking to it. The software, both Griffon and Keynote, worked flawlessly so if things weren’t perfect, there’s only me to blame.

SwingPad seemed to make quite an impression, which is not hard to understand considering how little effort it takes to start showing results on the screen. Put that together with the recent CSSBuilder integration and the rich samples for other builders and I think more than a couple of Java developers will be installing it soon.

The question came up enough that I want to directly reference this blog post from Andres Almiray regarding GSQL in Griffon. Apparently people like to have databases handy at all times

πŸ™‚

And a big thanks to Andres for sharing two free copies of the upcoming Griffon In Action that he is co-authoring for raffle prizes tonite. Through the magic of Twitter he was very supportive about 20 seconds after the original announcement went out. Now if only they can kill all those nasty spam-bots, etc that are messing with my Twittiness!

I’ve uploaded the demonstration application at github. It shows a simple Griffon app with three tabs. The first is a minor port of Andres’ Trident/GfxBuilder example to show animation. The second is a simple demo of the @Bindable AST transformation along with the SwingBuilder syntax for accesing SwingUtilities; it comes along with an accompanying Fest test. The third requires an internet connection as it parses out the DZone rss feed and delivers it into a GlazedList, demonstrating usage of SwingWorker courtesy of the SwingXBuilder. I showed those samples along with installer plugin built versions of some of the included Griffon sample applications. WeatherWidget is a one fine looking translucent UI example!

Please ping me if you have any problems running this Griffon app, as I did trim out a bunch of the extraneous project files and test reports right before uploading. This was my first time ‘really’ using Git for source control so it’s bound to be a bit messy – nevertheless the Git experience has been great so far. I also tried to get the slides up on SlideShare, but that appears to… not be happening(been uploading now for over 20 minutes this time- about to kill it, again). So here’s the pdf.
Source code download here.

Slidedeck download here.

Reblog this post [with Zemanta]

23 Aug, 2009

Twitter Weekly Updates for 2009-08-24

Posted by: TheKaptain In: TweetTweet

  • @scottdavis99 LOL. Nice try on the joke anyhow. we'll just have to watch the Venkat interview instead πŸ™‚ in reply to scottdavis99 #
  • Nice productive day at work today, despite network problems. Now, what to have for dinner. Mmmm, lamb steaks ftw. #
  • RT @asmartbear Survivor Bias http://bit.ly/3yYoY3 (via @kerrywright) Great article! #
  • kellyrob99 http://ff.im/6Rf06 #
  • Today is the day I truly came to hate Java Date #
  • @tylerblack Oil. Stone. Grind. who needs to pay a knife sharpener? If you need to borrow a sharpener we can talk πŸ™‚ in reply to tylerblack #
  • Check out this SlideShare Presentation : Craig Smith & Paul King Agile Tool Hacking T… http://slidesha.re/EYN3p #
  • Nice presentation #dillyh Glad you're on our side πŸ™‚ http://tr.im/wMCm #
  • ROADTRIP! #
  • RT @jstrachan: #http://bit.ly/GolWe me.partner match { case w: Woman => Some(Cry()) case no => None } #
  • Coding up a Griffon app in the car. First trip with iPhone tethering enabled and it's working GREAT! #
  • RT @glaforge: Shared article: Gradle support http://bit.ly/7v8g7 #
  • RT @Rod_Phillips #yyj first 50 replies to #yyjwhiskypimp will get Carlsberg 12 bottles for $12- please RT:) (via @abstratt) #
  • @Rod_Phillips Tnx, never fear I'll being having a Blue Buck while I'm waiting πŸ™‚ in reply to Rod_Phillips #
  • Going to a wedding this afternoon, packing up to go back home tonite. Remind me again – is driving after an open bar illegal in Alberta? πŸ˜‰ #

Powered by Twitter Tools

18 Aug, 2009

My Favorite IntelliJ Resources, Tips and Tricks

Posted by: TheKaptain In: Development

Today at work I was reminded that I didn’t learn how to use my IDE overnight, and that I’ve been greedily hoarding where I found good resources for learning how to drive IntelliJ in the fast lane. So without further ado, here’s the top places I’ve found and things I know.

Links on the IntelliJ site:

  1. 1. The main documentation page
  2. 2. Demos and tutorials including a couple of new Groovy support demonstrations
  3. 3. 25 things you can do with IntelliJ 8 you can’t do with 7
  4. 4. Mac Keymap reference
  5. 5. Windows/Linux keymap reference
  6. 6. The Jetbrains IntelliJ blog. A great way of getting tips from the guys that wrote it, and keeping up to date with improvements.

DZone: Intellij in 7 pages

  1. 7. The DZone refcard for Intellij

My personal faves

  1. 8. Command Shift-A to bring up a search window for actions. This one I think of as Quicksilver for my IDE.
  2. 9. Alt-Enter to trigger intentions. Problem with your code? Let the IDE suggest a refactor to correct it.
  3. 10. Ctrl-n for auto-generation of Java code. Getter and setter boilerplate getting you down(and you can’t switch from Java to Groovy)? Want a nice compact toString() on a class with 20 member variables? Let the IDE do the heavy lifting.
  4. 11. The Javadoc Sync plugin. This goes well with #10 to javadoc all those getters and setters auto-magically.

Add logging using the debugger

  1. 12. Printing to the console is a basic tool for debugging code. Everybody’s done it – because it’s easy and it works. But you often come across scenarios that disallow this quick and satisfying hackish behaviour. Namely when you are debugging into code in a library, this is not necessarily an easy option. Fortunately IntelliJ provides a nice easy way to add console logging through the debugger. You can access the breakpoint configuration dialog either by right clicking on an existing line breakpoint and selecting ‘Properties’ or by pressing Command Shift-F8 from the Debug view. From there you configure your line or Exception breakpoint with a ‘Suspend policy’ of ‘None’ and check the boxes under ‘Actions’ to enable logging. A full description of the features can be found here.

    I find this especially handy when there’s a problem iterating over a Collection and only one or some of the items in that Collection lead to an error condition during processing. Using this strategy I can provide context as to which cases passed and which failed without having to stop at a bunch of breakpoints and inspect the variables on the stack; I can just concentrate on the failure point and look back at the console output to compare against previous invocations.
    Here’s a couple of screencaps to show configuration for logging the size of a list on a line breakpoint. Note that the Groovy requires a little bit of extra magic, since the debugger gets passed a Reference object instead of the raw List.

[nggallery id=”6″]

Bonus from the Community

  1. 13. Grails returning the favor for the great IntelliJ support.

How about you?

  1. 14. Do you know any other good places to learn about IntelliJ and how to get the most out of it? Please don’t keep it to yourself! I managed to line up a baker’s dozen, now you’re on the hook for number 14 smart guy.
Reblog this post [with Zemanta]