Selenium Trick: Using a different DNS

I love Selenium. It’s a great tool, that does a damn fine job. But one thing I’ve been wanting to do for a while is to get it to use a different DNS server to the box it’s running on.

Here’s how you do it:

java -Dsun.net.spi.nameservice.provider.1=dns,sun -Dsun.net.spi.nameservice.nameservers= -jar selenium-server.jar

(Caveat: may not work on non-Sun JVMs. Does work on OSX, though…)
Continue reading “Selenium Trick: Using a different DNS”

Maven – still giving me the shits

Some months ago, I wrote about how the Maven Eclipse Plugin 2.7 release didn’t fix a bug introduced in 2.6

Well, neither does the newly released 2.8 version.

Guys, I know you didn’t hear me earlier, but for pity’s sake – DO NOT RELEASE SOFTWARE while you still have critical bugs open. If you don’t want to fix the bugs, edit the issue so it’s no longer bloody marked as critical.

OSGi Diaries – Creating A Bundle

Covers turning the simple web app from the first installment into a simple web app using an OSGi Bundle.

In the first installment, I outlined a simple web application. In this post, I will be turning that application into two parts – an OSGi bundle, with a client web app.
Continue reading “OSGi Diaries – Creating A Bundle”

OSGi Diaries – A short series

I’m going to be spending some time over the next couple of weeks learning about OSGi – there is an application at work that we want to try and make more modular. In particular, we’d like to be able to share the back tier with more front end clients. The more conventional modularisation techniques, such as EJBs, have been tried and didn’t work fairly well. Simply creating more deployments is prohibitive, due to hardward And before someone asks “why not just stick a web service on it and share that way” – some of the front end clients will be those web services. To cut a long story short, one of the options we want to check out is OSGi.

The only problem is that there isn’t much in the way written up on the web about writing OSGi components – at least not without invoking magic tools (e.g. Maven plugins) that don’t work on any version of any tool developed six months later. Which is odd, because OSGi, as a spec, doesn’t look that hard to write too. So, I thought I’d write up a series describing the initial investigative spikes, starting as close to the metal as possible and working up.
Continue reading “OSGi Diaries – A short series”

Why positive thinking works – in my opinion, anyway.

I saw an an article on Seth Godin’s blog about positive thinking. Godin makes the valid point that people who think positively tend to succeed more, in part because their confidence means they don’t second-guess themselves. You can easily waste a lot of energy debating what to do.

A point that Seth didn’t cover is that positive thinking means it’s more likely you will attempt something new: if you feel you can accomplish a task, you’re more likely to try. Sometimes, when you try something new, you will succeed. Other times you will fail. When you fail, there’s a chance you will learn – and learning makes it easier to succeed next time.

One of the key take aways of agile development for me is “experiment, and fail early”. Fail early, fail often, fail cheaply. And learn every time.

Two weeks with Twitter…

A little over two weeks ago, I succumbed and decided to see exactly what the deal with twitter was. It just didn’t seem like a wonderful tool – SMS for the web? Really? But, in the spirit of inquiry, I thought I’d give it ago. Now, a bit over two weeks later, I can say “I’m glad”.
Continue reading “Two weeks with Twitter…”

Software and Obama’s Victory

from Martin Fowler: Software and Obama’s Victory. I like the last org model shown; it would be very interesting to work in a company structured in such a fashion, with middle management acting as guides & facilitators, instead of intermediates, filters and superiors.

Warning: get off housing gravy train – ABC News (Australian Broadcasting Corporation)

There’s an opinion page on the ABC News page about the increasing rise in house prices (and the subsequent fall in housing affordability). The solution presented: build more housing (not necessarily houses – apartments are okay too), thus increasing the supply. Unfortunately, that won’t help.
Continue reading “Warning: get off housing gravy train – ABC News (Australian Broadcasting Corporation)”

Wage growth does not automatically equate to inflationary pressure…

One of my coworkers tossed out this line today: “We can’t just increase the minimum wage, because that would cause inflation”. I said at the time that didn’t have to be the case, and I just thought I’d capture my reasoning in writing.
Continue reading “Wage growth does not automatically equate to inflationary pressure…”

Hudson Plugin for Eclipse

Lusting over the Atlassian Connector’s support for Bamboo made me decide to check out what support there was for Hudson in Eclipse. So I checked out the Hudson Eclipse Plugin. My thoughts: not bad, but not great – a lot of potential is there, though.

Continue reading “Hudson Plugin for Eclipse”