Maven with Clover in IDEA
When running mvn install from IntelliJ IDEA with the Clover2 plugin, I got the following error:
Clover could not be initialised. Are you sure you have Clover in the runtime classpath?
It was easily fixed by running mvn clean.
I found the original answer here, but I wanted to repost so people wouldn’t have to deal with such a horrid site.
No commentsSpring AOP requires an ApplicationContext
Having problems getting Spring AOP working? Is your bean being created, but your aspect not running? Is the section on @AspectJ support not helping?
Make sure you check out Section 3.8.1 of the Spring documentation, which says, “if you are using just a plain BeanFactory then a fair amount of support such as transactions and AOP will not take effect (at least not without some extra steps on your part), which could be confusing because nothing will actually be wrong with the configuration.”
No commentsStop compressing audio!
Siriusmo has some good songs, but they compress them to shit… yuck.
No commentsWicket problems & solutions
So, I’m learning a lot about Wicket lately. Here’s a couple things I’ve learned:
If you’re using the CheckBoxTree from the openCDMS, make sure you get the most recent version. The revision linked to in the Google search results is old, and does not include CheckBoxIconPanel.html. It took me a while to realize what the problem was, because Wicket Components will use the HTML file of their superclass if one is not provided. Here’s a link to the most recent version.
Another issue I recently ran into is that an AJAX Component on my page would get redrawn for the first AJAX call, but not for subsequent calls, even though I added it to the AjaxRequestTarget. Looking at the handy in-page Wicket AJAX debug, I saw,
“ERROR: Wicket.Ajax.Call.processComponent: Component with id [[selectedFeaturesContainera]] a was not found while trying to perform markup update. Make sure you called component.setOutputMarkupId(true) on the component whose markup you are trying to update.”
I was indeed calling setOutputMarkupId(true). The problem was actually that I was using a <wicket:container> for that Component. The <wicket:container> was present with the proper id in the HTML of the initial page load, but would not be included in the document replacing it during the AJAX call. As a result, subsequent calls could not find the element to replace.
The solution: use a real HTML element for every element that has setOutputMarkupId(true). Also, remember that if you’re using using id selectors in your stylesheets, you need to be careful of setOutputMarkupId(true) because your id hard-coded in the HTML will get replaced/overwritten by Wicket’s automatically generated id.
No commentsEclipse IAM
If you get this error when launching a Run Configuration in Eclipse with the IAM (Maven) plugin:
Referenced classpath provider does not exist: org.maven.ide.eclipse.launchconfig.classpathProvider
It’s probably because your Run Configuration was created on an old project, and has bad entries in the Classpath section. The solution is to delete the Run Configuration and create a new one.
No commentsPumping Station: One has a location!
I just saw the new Pumping Station: One location for the first time, and it’s made me very excited. Getting a bunch of talented, interesting, friendly people together is just what I had in mind as I finished reading Earth Abides. Seeing everybody in the actual space today cemented the reality of the group in my mind, and has me full of anticipation of what we can accomplish.
Everybody is making me jealous with their ASUS EEE PCs, and now that I have somewhere to hang out and code I really need a laptop! So that’s my next project… The big decision is not really on the hardware but the software: Linux or Windows? The last time I ran Linux was in college, so I’m a little hesitant.
No commentsSpeak & Spell is Live
Use your keyboard to play hangman, and view recent activity in the Feed section. Speak & Spell is live as my homepage.
No commentsSpeak & Spell!
Those of you who remember the Speak & Spell will probably love my first attempt at a website redesign based around it.
So far, you can type letters using the keys, and it has sounds I recorded from my actual Speak & Spell. The text is much bigger than the real thing, so it can be read, but it is limited to 8 characters like the real thing. The sounds are somewhat delayed on Firefox, and the text is in the wrong place in IE… but you can see the potential!
The image is from a patent application made by Texas Instruments. Hopefully they don’t mind if I use it!
Edit: it’s now my home page
No commentsRails inconsistency
I like Ruby on Rails, but the design is sometimes inconsistent.
For example, consider the “text_method” parameter to the collection_select helper method. The argument forces you to call a method on the model object which returns the text which is used in the select list. That’s ok when you only want to display a single field from that object, for example “name”. It’s not ok if you want to display something more complicated, because then you’re putting display logic into the model. You’re supposed to use helpers for that! Since doing it right would make it ugly and more complicated, I end up giving in and doing it the wrong way by adding a method to the model. It frustrates me.
Fareed Haque
It’s nice to have a girlfriend who works for the Skokie Theater. I’m getting free admittance to see Fareed Haque tonight. Awesome.
1 comment