Calling methods with parameters using JSTL

I was quite annoyed by the fact that you can’t just call a method with certain parameters using JSTL. Lucky me, google gave me a result where I could see how this is done (using JSP 2.0).

The thing is, you need to create a static method with the required parameters and then you need to define a TLD to be able to call the function. This process can probably be simplified by using a tool like XDoclet so your TLD is generated automatically, but I didn’t look into that, yet.

Another way to do it is described by Lucas Jellema on the AMIS blog. But I don’t call this a real solution, just a very dirty hack. I respect him for his posts on Oracle, but I don’t like this solution at all.

WordPress privacy concerns

I was told by a colleague that WordPress was being discussed on the privacy subject. Now I don’t want to go into that discussion, but I encountered a post by Ryan Finnie about $_SERVER variables being send to the Akismet server.

If you plan to use HTTP authentication and use Akismet it’s a wise idea to patch your Akismet with the patch provided Ryan Finnie. This because otherwise your login data is send to the Akismet server every time it checks the comment post. True, having both Akismet and HTTP authentication is a bit strange, but I think it’s better to remove such data then to have it transferred to Akismet.

I hope Matt will accept this bug as being valid.

I also found some other items about the need to send $_SERVER in total. Certinately the enhanced akismet plugin sounds like a good alternative.

svn move multiple directories with confirm

I had to rearrange multiple directories, but not all, in a svn tree to make a project more compatible with Eclipse. For this I used the following one-liner so I could do this more easily.

for file in `find -maxdepth 1 -type d`; do \
echo -n $file "[y/n] "; \
read -n 1 shouldMove ; \
if [ "$shouldMove" == "y" ]; \
then \
svn mv `basename $file` WebContent/`basename $file`; \
fi; \
done

This way I was sure all directories I wanted to move were moved (since a svn mv does not remove the directory right away, it does that on commit).

I hate blogging already….

So. I was writing a post about some one-liner I wrote to move a lot (but not all) directories in a svn repository to another directory. Because the one-liner was getting lengthy I added slashes to it so it was better readable. But on saving I lost my slashes?!

This seems to be caused by a 2 year old bug in wordpress. I hope that with the fix I posted this bug will be resolved soon. For now I’ll just patch my version of WordPress.

Starting to blog

Since I see many people blogging about things they do, and I use that to acquire a lot of knowledge, I’ve decided it’s time for me to start blogging as well. I hope I’ll be able to help you out with some issue’s I / my colleagues encounter.