Getting Quicksilver show notification to work

Anybody trying to use “show notification” Applescript with Quicksilver b54 (3815) may get this error: “Quicksilver got an error: Some parameter is missing for show notification”

Looks like it is a bug on this version, as more people reported here.

You may try providing all parameters. Here are some examples:

Continue reading

Leave a Comment

Filed under Uncategorized

Quickly cruding with code2code plugin and VRaptor2

In this post I will show how to use the code2code plugin (beta) to quickly generate a crud with the VRaptor2 and Hibernate 3 frameworks.

code2code lets you create your own generators using template engines. In this example we’ll use the plugin to generate an entire crud for us, using a generator I’ve made.

Note that the code was made simple, to show the capabilities of the plugin, and not of the frameworks involved.

Continue reading

3 Comments

Filed under Uncategorized

Open a new tab on Terminal with the same path (on Mac OS X)

While working on the command-line, we always find ourselves in situations where we have to open a new tab and cd to the path we were working on.

On a Mac, we can use some Applescript to help with that.

Paste it to your ~/.profile:


# open a new tab on Terminal with the current working dir
function newtab {
	osascript -e "
		tell application \"System Events\" to tell process \"Terminal\" to keystroke \"t\" using command down
		tell application \"Terminal\" to do script \"cd \\\"$(PWD)\\\"\" in selected tab of the front window
	" > /dev/null 2>&1
}

Now you just need to type “newtab”

4 Comments

Filed under Uncategorized

code2code eclipse plugin: generate code using template engines

Do you find yourself always creating the same kind of files with very similar content? DAOs, services, actions, models and etc?

Don’t you wish you could generate common sets of files with parameterized content, just like the rails guys do?

Well, I do.

Why not?

What I want is:

  • Simplicity: No UML, no XML, no new languages to learn
  • Flexibility: Edit and create my own generators, on a per project/frameworks basis
  • Ease of use: Easily create generators: no tons of files to write, little configuration. Easily configure parameters and generate files.

So, I didn’t like the existing plugins I’ve found.

Let’s try one ourselves…

Continue reading

Leave a Comment

Filed under Uncategorized

Hello world!

Welcome to my technical blog

Leave a Comment

Filed under Uncategorized