I have no special talent. I'm only passionately curios - Albert Einstein
For your reading pleasure... Comment on For your reading pleasure... 0

  A collegue of mine reccomended that I read the book Clean Code: A Handbook of Agile Software Craftsmanship, by Robert C. Martin.  I opened the book, and was immediately pleased with the introduction provided:

WTFs/minute

  Continue Reading

javascript functions in anchor tags: RETURN FALSE!!! Comment on javascript functions in anchor tags:  RETURN FALSE!!! 0

This is more of a rant than anything.  Have you ever been on a website, scrolled down to the middle of the page, and found a little slideshow control or some other anchor tag which is really controlled via the onclick method?  Have you ever clicked it, and seen that you're now located at the top of the page again?  How annoying is that!

  Continue Reading

getResource and getResourceAsStream Comment on getResource and getResourceAsStream 0

This is so basic but it's also one of the most frustrating things to deal with in Java.  On Windows, I was trying to load a file in a TestCase within my IDE.  I know the way to do this is to use this.getClass().getClassLoader().getResource() and this.getClass().getClassLoader().getResourceAsStream().  I spent more time than I should have had to in order to figure out how to get this to work correctly.  All examples and Javadocs I encountered stated that the solution should work in a completely different way.  And there are tons of postings around the net with people asking for the answer to this problem, so here it is.

  Continue Reading

More Upgrades Comment on More Upgrades 0

Developing my own CMS with an integrated blogging system has been an exciting experience so far.  It's been a lot of meticulous planning and a significant development effort, combined with multiple redesigns and refactors along the way.  Recently I've been focusing mainly on developing blogging features.  The features I've finished with the last two releases include categorization of blog entries, archive functions, pagination for browsing the articles by category and within the archives, and the ability for users to leave comments on blog entries.  I've also started to focus on SEO for all aspects of the system, providing the users with the ability to enter the Meta keywords and description for each page, and adding reasonable defaults in their absence, like taking the 'parent' pages keywords and description.  The unseen pieces developed for all of those features include the administrative functions.  Anyone who uses Wordpress is familiar with the easy to use interface where you can manage any of your content.  Recognizing a usable system and developing ones have proven to be very different things.


Completely Reverse Engineer your DAO Layer Comment on Completely Reverse Engineer your DAO Layer 0

  I've been using Hibernate for about three and a half years now.  When I began using Hibernate, I was hand-coding the Hibernate mappings and DAOs.  The work was tedious, error prone, and time consuming.   I've spent the time learning how to use both Middlegen and Hibernate tools to completely reverse engineer your Hibernate mapping files, the hibernate.cfg.xml file, the Model (beans), and all of the DAOs using a combination of Velocity and Freemaker templates to guide the code generation.  I even went a step further and integrated Spring's HibernateDaoSupport into each of the DAOs.

  Continue Reading

Using DBUnit to transfer data between databases Comment on Using DBUnit to transfer data between databases 0

  At my current client, I've ran into the need to have the ability to transfer data from our production database to our lower level environments for QA and other user testing purposes.  One of the other consultants here mentioned a tool called DBUnit, and he said he thought it might have the capabilities I was looking for.

DBUnit has turned out to be a great tool for performing database tasks with Ant.  I was able to set up an Ant task and create a flat file (XML Format) data dump of the entire database.  The task was very straightforward, called Export, and has a quite a few options for generating the exported database file.

  Continue Reading

Recent Movies I've Enjoyed Comment on Recent Movies I've Enjoyed 0

I would have to say that I enjoy movies which are outside the canon.  I like movies which make me think, make me wonder, and are normally "out there".  A few movies I've enjoyed recently are:

  • Southland Tales
  • The Nines

Both of these movies offer an incredible story line, as well as what I consider class A acting. 


This tree grows some serious wood Comment on This tree grows some serious wood 0

 

Screw Palm

My parents neighbors have a queen palm in their front yard.  Until recently, they didn't know why the guy who sold the tree to them, Mr. Kim, called the tree a 'screw palm'.  Surprise surprise, this tree's roots grow out (yes, this is completely natural) in a very curious fashion:

 

 

  Continue Reading

Wordle Comment on Wordle 0

Wordle: d.avidmalone.com

   I was reading my friends blog, The Future Buzz, and I ran across something really cool.  It's called a Wordle, and is a collection of words or the most common words from your website built using your RSS feed.  Wordle.net has a really slick feature-rich Java Applet which can be used randomize and style your Wordle.

  You can see my wordle built from my RSS feed to the left.  I just thought this was something fun that I would share since I've never seen it before.

 


Upgrades Round 2 Comment on Upgrades Round 2 0

Time for another set of upgrades.  I've been working on implementing a plethora of new features for Stratosphere, and now I'm finally getting the chance to integrate it into my site and deploy it to my server.  Although I am still working on upgrading the system without completely impacting the content.  I'm still stuck copying and pasting the content from the old site into my new one.

  Continue Reading

They don't make 'em like they used to Comment on They don't make 'em like they used to 0

This year almost every one of my electronic devices has burnt out on me.  I was very lucky that each one was still under the manufacturers warranty, because I never buy the extended warranties at Best Buy or Circuit City.  It's nice that the devices were covered under the manufacturers warranties, but it's upsetting that all of these electronics are failing so quickly.  I think it speaks volumes about the standards these companies are willing to commit to.

  Continue Reading

Extracting Images From a Word Document Comment on Extracting Images From a Word Document 0

Have you ever tried to extract images from a Word Document?  It just doesn't seem to work.  After searching the internet, I found plenty of articles which claim that it can't be done.  I started playing around with a few techniques, and I've found a failsafe way to extract images from a Word Document.  

  Continue Reading

Recent Move to Minneapolis Comment on Recent Move to Minneapolis 0

As I mentioned earlier, I recently moved to Minneapolis.  I rented a Uhaul, and asked three of my friends to help me move.  I had reserved the largest Uhaul (a beastly 26 footer) available, and I was convinced we wouldn't need a truck that large.  To my dismay, we actually own enough stuff to fill the entire truck, and we still weren't able to fit everything into the truck. 

Cracked 50" Samsung Plasma   We were exhausted after spending nine hours moving furniture and boxes to the third floor.  I was pushing myself to the limit, spending every last ounce of energy getting all of my things moved into the apartment.  I saved my favorite item for last - my 50" Samsung Plasma TV.  My best friend and cousin went downstairs to get my TV for me while I was getting some final items up to my apartment.  They took an unusually long amount of time, and I became concerned.  I went to see what was going on, and found them walking towards me a short distance down the hall from my door.  They both stopped smiling once they saw me, and immediately said "we have good news, and bad news".  I looked down and noticed the only thing they had on the moving cart was my prized television set.  My stomach turned and my heart dropped.  A humongous crack ran rampant throughout the screen.

  Continue Reading

The Gimp Comment on The Gimp 0

A lot people are under the impression that Photoshop is the only available tool for designing digital art and graphics.  I'll admit that I'm not a professional designer whatsoever, but I like to try to create designs and graphics on my own.  I really didn't want to fork out the cash for a Photoshop license, especially since I'm only doing this as a hobby.  A little known tool (to most) that is free, and in my opinion just as powerful as Photoshop, is the Gimp.  The great thing about the Gimp (besides the fact that it's free) is that you can download some (if not most) components for Photoshop and install them for use seamlessly.  I was able to download gradients and brushes which were created for Photoshop and use them within Gimp with no problem.

  Continue Reading

Moving to Minneapolis Comment on Moving to Minneapolis 0

My fiancee and I have spent all weekend packing our place in preparation for our move to downtown Minneapolis.  We spent all day today taking down dozens of pictures and other wall decorations, packing boxes, and moving stuff to our storage unit.  We still have a lot more to pack, but we're looking forward to the move, regardless.

The tradeoffs are between our current apartment - a two bedroom, with a two car attached garage and a back porch with a bit of a private back yard - and our new apartment in downtown Minneapolis, without a private garage, back yard, or back porch.  But, it beats sitting in traffic for hours a day, since we both work in downtown Minneapolis and commute into the city.


An email from Ireland to the States Comment on An email from Ireland to the States 0

A point to ponder despite your political affiliation:  We, in Ireland, can't figure out why people are even bothering to hold an election in the United States...

  Continue Reading

Upgrades Comment on Upgrades 0

Like most service professionals, I find myself putting off my personal projects for way too long.  So, at long last, I'm pleased to announce that I've released a new version of my site.  I designed and developed my site using open source technologies, including the Gimp, Nifty Corners, DWR, and jQuery.  


DWR 2 + WebLogic 8.1 SP 5 Comment on DWR 2 + WebLogic 8.1 SP 5 0

Apparently, there is a bug with DWR 2 when running in WebLogic 8.1.  This bug may appear in all server environments running versions of Java less than 1.5, since it appears to be related to version checking built into DWR which doesn't work.  The stack trace leads up to a NullPointerException from the java.util.Hashtable class (which doesn't really help you solve the real problem):

  Continue Reading

About

David Malone is a Java consultant for the Solution Design Group in the Twin Cities area.  He has been developing enterprise applications since 2004.  This is his personal blog, as well as his design and development workspace.