geeky

jQuery.each vs Javascript for loop

Being a big jQuery fan, I use jQuery.each method a lot in my Javascript code. Until recently I didn’t think too hard what jQuery.each really is. Its description says it’s an iterator but it certainly is NOT a true iterator. For example: Let me know what you expect the code below to return. Before I… Continue reading jQuery.each vs Javascript for loop

geeky · java · plug

2011 nfjs Central Iowa Software Symposium

My survey responses to the 2011 nfjs Central Iowa Software Symposium event for my company. Benefits to you and the company from attending this event: Keep up to date regarding the current technologies and development in the Java community. Information that your co-workers / the company should be aware of: Functional programming is making a… Continue reading 2011 nfjs Central Iowa Software Symposium

geeky · non php code

QUnit – test your javascript

After over ten years of javascript programming, I’m finally seriously considering writing at least unit tests for my javascript. Since I’m such a big fan of jQuery, QUnit seems like the obvious choice. It’s sad but better late than never. The truth is, in my opinion, the fact that javascript test frameworks do not yet… Continue reading QUnit – test your javascript

geeky · java

SPEL! I conquered you on a Friday!

Today is my first attempt at using SPEL. After a mighty struggle, I was able to conquer it! Background: I needed a year variable for some work on a jsp page. It’s not always defined. I know for our routable datasource, a default year is required in order for it to work. I wanted to… Continue reading SPEL! I conquered you on a Friday!

geeky · java

Java concurrency – Multiple queue monitors

At work, I’ve implemented a queue monitor batch application. Due to business rule changes, it now needs to monitor two queues. Instead of creating another batch application, I really wanted to stick with the same application but just create two threads, each monitoring its own queue. However, the twist I need is to have the… Continue reading Java concurrency – Multiple queue monitors

geeky · java

Eclipse 3.6 freezes at startup

My Eclipse 3.6 froze today at startup. I think what I did was that I clicked on the shortcut a bit too fast and two instances of Eclipse started running at the same time. I got an error message for one saying “workspace in use”. I killed the one that showed the error message but… Continue reading Eclipse 3.6 freezes at startup

geeky · java

m2eclipse plugin jdk warning

More info – old issue but I ran into it on every freaking machine at home. After I installed the m2eclipse plugin on Eclipse 3.6, I keep getting the following warning on the console: The solution that worked for me is changing the shortcut properties for eclipse e.g. I couldn’t get the eclipse.ini updates to… Continue reading m2eclipse plugin jdk warning

geeky · java

Eclipse 3.6 Auto Static Import

After I started using JUnit 4, I really want Eclipse to automatically import org.junit.Assert.* statically for me. So when I do ctrl+space on methods like assertTrue, it will do: for me. I’ve figured it out for a while but I’ve been noticing it conflicting with my save action -> organize imports setting. I finally got… Continue reading Eclipse 3.6 Auto Static Import

geeky · java · rants

Grails: I will not use you

After the cijug presentation on Grails, I’ve decided I will not use it. I know Grails is hot and cool but I don’t like it. It’s probably just a personal preference. Why don’t I want to use Grails It’s built on spring and hibernate, so why not just use them directly? It’s just adding another… Continue reading Grails: I will not use you

geeky · rants

jQuery UI even though you disappointed me, I still figured you out

So I upgraded to jQuery UI version 1.8.2 at work and thought that I should instead of using the autocomplete plugin which is deprecated, switch over to use the jQuery UI build-in autocomplete widget. jQuery UI autocomplete widget is NOTHING like the original jQuery autocomplete plugin!!! At least by jQuery UI version 1.8.2 it’s not.… Continue reading jQuery UI even though you disappointed me, I still figured you out