Tuesday May 11, 2004
|
Vanity Foul Dedicated to the wanderings of an egotistical mind. |
|
The Infinite Cat Project I don't often post just a link, so I have to say "Contribute to this worthy *ahem* cause!" Hibernate: SessionFactory.close() I want to explicitly add shutdown behaviour in my ServletContextListener to release all database resources when contextDestroyed() is called. Fortunately, Hibernate's SessionFactory implements a close() method specifically for this purpose. However, in it's JavaDoc it says
But there is no means by which to determine if there are any open Sessions. I would have to create my own SessionCache, adding the Session when it is opened and removing the Session when it is closed. This sounds like something the SessionFactory (or someone else in the library) should handle since it is the one handing out Sessions. At least Hibernate is a step ahead of Castor here (sorry Bruce), in that Castor provides no mechanism to release resources. The Ideal Gasbag Law : for your entertainment
( May 03 2004, 03:00:36 PM ) Humor? Permalink [Trackback] A new Comment Spam fighting technique Or at least it's new to me. Kasia has implemented a rule requiring a referer header from her own site for Commenting. As she points out it won't stop some of the smarter spambots, but has the side benefit of stopping the formmail bots. Something to add to Roller methinks. Footnote: apparently Kasia's bright idea also stops Trackbacks. Ah well. User Friendly: The Label tag While still little known, so far as I can tell, use of the <label> tag can greatly aid users trying to click a checkbox or radiobutton (and is a requirement for 508 compliance). But today I ran into a question I cannot readily answer: how do you label the members of a radio group? Each <input type="radio" /> has the same name, what will happen when I click the label? Well, the answer seems to be nothing, at least if one of the buttons is already checked (which is the case for the app in question). A (non)exhaustive search with Google turned up nothing. But one result, talking about radio button manipulation via javascript, reminded me of the
Fight the Meme! I will not be providing you with "the fifth sentence on page 23" of the book nearest me, nor any other book. LazyWeb: Prevent IE Usage I've got my family fairly well-trained to use Mozilla instead of InternetExplorer. But there is the occasional bit of software (such as DVD players) that will launch IE regardless of the fact that Mozilla has been set as the default browser. That and occasionally my mother-in-law will use the computer, and I So, the question for the LazyWeb: Is there a way to intercept launching of IE and prevent it? Even better, "route" the request to Mozilla? Windows: 0, Lance: 0 I used the laptop-to-IDE converter to hook up the laptop's harddrive to my desktop. The plan was to copy-in the missing file. But my desktop is WinNT and the laptop was WinXP, and I couldn't see the necessary c:/windows/system32 directory and thus couldn't copy the file. But I could see the rest of the drive so I've snatched as much pertinent information as I could think of and will be working to restore full functionality. Things are getting busy around here so I may not have as much time to work on this as I'd like, though. |
|
||||