Entries for month: March 2008

Dumping MySQL databases using Groovy

Today I needed to use Groovy to create a dump of all MySQL databases on the MySQL server running on my local machine.

So I looked at my earlier blog entry on how to dump MySQL databases using the "mysqldump" command.

So when I issued the command create a dump from console, the contents of the database are dumped to a sql file as expected.

// Works in command line
mysqldump --all-databases -u [username] -p[password] -C > alldatabases.sql

As you might know, it is fairly straight-forward to execute shell commands from Groovy. You simply put the command in quotes and call the execute() method.

However, when I issued the same command using Groovy, the command did not work... well, at least not at first.

Read more...

Cairngorm extensions from Universal Mind

I just saw that Universal Mind Cairngorm extensions for Flex are now set up on RIAForge (thanks Andrew).

We have been using the UM Cairngorm Extensions at Straker Interactive (where I work) for ZoomFlex since about six months.

One of the features that I really like about the UM extensions is the ability to combine together event-business logic. Given that any real-life application (like ZoomFlex) has quite a few commands, having a separate Command class for each command can become quite overwhelming. The ability to aggregate command logic into context-specific command classes is very useful.

Read more...

New Zealand, a great place to do business (including software development)

Just found this blog entry that speaks of why New Zealand is a great place to do business. Some of the reasons mentioned are:

  • At 30%, the corporate tax is lower than or equal to most developed countries?.
  • Our GST is only 12.5%, in most developed countries it is 15-25%.
  • Workforce participation is 68%, very high by international standards.
  • ACC provides no-fault income insurance, meaning businesses to not have to go to massive expense insuring themselves against litigation by injured workers and hiring lawyers to defend themselves.
  • Ease of doing business is New Zealand is second in the world only to Singapore.
  • This is the least corrupt country in the world.
  • Corporate profits were up 60.5% in just six years from 1999 to 2005.
  • Only 0.54% of businesses failed last year.

Plus it offers a great lifestyle!

On the downside, Internet connectivity less than average, but is getting better every year.

But if you can be happy living on a large, very pretty island, New Zealand is the place for you.

I came to New Zealand five years back and have been working in the area of software development, and have enjoyed every minute of being here.