Archive

Archive for the ‘Grimoire’ Category

Oracle: Paging Results

February 5th, 2010 No comments

Paging Oracle developers…

This will be a quick post, as the problem is small.  I will add, though, that setting up paging with database queries can be a major pain in the ass.  Setting up the consumer – usually jQuery, ExtJS, DWR, or some other AJAX client, is hard enough, but then you have to translate the client’s version of “start-limit” to the persistance-side’s language.  Sometimes it’s a simple start/limit pair, sometimes it’s a start/page pair, and then there’s Oracle, which decided to punt on the whole thing. Read more…

  • Share/Bookmark
Categories: Grimoire, Oracle Tags: , , , ,

Frozen Explorer

January 21st, 2010 No comments

A common problem, unfortunately…

This is a simple trick that will save you from having to restart your pc at inopportune times.  The setup – you are working along, minding your own business, writing your [insert invaluable document name] Word document, when out of the blue Windows Explorer freezes up.  You know the symptoms – you can’t click on anything on the desktop… you drag a window around and it leaves “trails”, which everyone will automatically cover the entire desktop in (because it’s fun!).  A few seconds later, you realize that you can’t get to your Word document as well, and you hadn’t saved it.  “That’s [x] hours of work!” you silently scream to yourself as you contemplate the glowing frozen tableau in front of you, dread slowing sinking down into the pit of your stomach.  Now what the hell do you do?

The answer is to try this trick.  It can’t hurt, and it just might recover your computer enough to save your document and restart.  It actually might allow you to keep working normally, but when I’m doing something important, I usually ere on the side of caution – the side where you save anything and restart just to make sure. Read more…

  • Share/Bookmark
Categories: XP Tricks Tags: , ,

JSF: SelectOneComboBox

January 13th, 2010 5 comments
Post Technology Stack
  • MyFaces 1.1.7 (JSF 1.1 spec)
  • Java 1.5
  • MyFaces Tomahawk 1.1.9
  • ExtJS 3.1 *

Not Again…

JSF, that steaming pile of undocumented, developer-hating obfuscation has yet again soaked up about 16 hours of my time to do something that should have been a three second configuration. Just to reiterate, much like Randall Munroe’s hatred of velociraptors spurs him to evaluate houses based on their ability to repulse dinosauriod attacks, I find myself now evaluating jobs by how close the project requirements are to actually using the JSF framework.

That said, when you’re a contractor, you use the tools selected for you by the almighty architects. In my case, it’s JSF or my paycheck. Being the Alpha Geek that I am, I gratefully welcomed the paycheck an opportunity to learn more about JSF.
Read more…

  • Share/Bookmark

JSF Tricks: Abstracted Actions

December 17th, 2009 2 comments

JavaServer Faces – Aw, crap…

I hate JavaServer Faces. I think JSF is a bloated abstraction-fest and just about any other framework makes it easier to write MVC applications – even Struts. That being said, I’ve had to recently work with the beast, and in doing so I had to figure out how to do some things that wouldn’t even be an issue in Spring MVC, but required a workaround in JSF. One of those things is abstracting out actions from the JSF tags, and what follows is how to do it.
Read more…

  • Share/Bookmark
Categories: Grimoire, JSF Tags: , , , , ,

Spring ResourceBundle Property Configurer

December 4th, 2009 No comments

Spring Logo

I haz a problem!

I had a problem, as I often do with the frameworks I work on. I wanted to set properties in my spring context configuration file with externalized strings à la i18n. It seemed like a reasonable request at the time – and then I had several hours sucked out of my life by internet searches with terms like “propertyplaceholderconfigurer i18n”, “propertyplaceholderconfigurer externalized strings”, and near the end when my brain cells started committing seppuku out of loathing of whining forum posters and rage at bofh post answerers, “job openings mcdonalds”.
Read more…

  • Share/Bookmark