Alain Hufkens {Rich Interactive Applications Developer}

21Feb/100

Playing with Maven & NativeProcess API in AIR 2.0

I have been playing with Adobe AIR 2.0 beta 2 for a couple of weeks now. And because we use Maven for our bigger development projects at Nascom, I decided to create a small proof of concept app to wrap the most used Maven commands. Off course Maven is a very powerful asset when building big Java based applications, but for a some of my colleague Flex developers it can be a frustrating experience. Working with the command line is not the preferred thing to do for a developer that is working most of the time on building user interfaces.

So to avoid these frustrations and to experiment with Adobe AIR 2.0 beta 2, I created this small app that calls some of our most used maven commands:

  • mvn flexmojos:flexbuilder (generates the Flex Builder project settings)
  • mvn jetty:run (starts the Jetty webserver)
  • mvn jetty:stop (you will need to and an extra setting in the project's pom.xml file)
  • ...

So what's this post all about?

First it's about the code that uses the new NativeProcess API available in Adobe AIR 2.0 to call Maven commands and process (display) the output of these commands. On the other hand I have built a small tool that could be useful for all you frustrated Flex developers that have to know commands to start and stop servers, and all that magic mojo stuff (Flexmojos). The current example only has a very limited list of commands (see above). But it could be a start for another great productivity app, because with the NativeProcess API  you can now take advantage of almost everything on your OS. Only be aware that when doing this you are mostly writing OS specific code.

How does it work?

Start the application in Flash Builder and drag and drop the pom.xml (this is a Maven project file) file from the root of the project to the app, and then the xml file will be parsed. There are normally al least two modules: a server (war) module and a flex (swf) module. And they each support different commands.

There are however still a couple of issues. So if anybody can help me out here, that would be very appreciated.

  • Because the NativeProcess can't call .bat files directly, you need to use a workaround calling cmd.exe and passing the mvn.bat file as a parameter. It works great while running from Flash Builder. But in the installed app it shows the cmd.exe window. Read more about this issue here. So if anybody has a solution, that would be appreciated.
  • At the moment there is only support for windows. Of I figure out how to run the Maven process from a Mac I will add Mac support. More about issue that here.
  • If you run the server and close the app, then the server (java.exe) still keeps running in the background.
  • And it lacks a lot of features, so feedback is welcome.

If you are interested, check out the code on Google Code: it's called The Ma(ven)trix.

Filed under: air, flex, other No Comments
10Sep/094

The F*Team @ Nascom

After a very relaxing holiday under the Tuscan sun in la Bella Italia, I just finished my first working day at Nascom with some bug-fixing, refactoring and implementing an error handling mechanism in an AIR application. But none of this boring stuff for this post. This post is about something completely different, my colleagues that I work with every day.

Here's a picture of my team: from left to right David (aka. Der Schmale), Rien (flying in the AIR), Sakri, Geert, Wouter (kicking some ass), Ricardo, Ilse and myself (with the Lancer Assault Rifle from my favorite game Gears of War, hell yeah). All credits go to David for creating this piece of art.

Flash Team Doesn't Look At Explosions

Before looking at the picture check out the following video. We flash/front-end developers are the ones that can create the explosions and stuff you see in those fancy sites, but remember: cool guys don't look at explosions.

And that's what we are ;)

Filed under: other 4 Comments
8Jul/091

Pixel art by Kristof

You might wonder who created the pixel version of myself that you can admire on the right. It certainly was not me. All credits go to Kristof Saelen who has the difficult job at Nascom to create a pixel version of every employee. We use this avatar for email signatures, business cards and I like it so much that I already have a second version of my pixelpeep.

Check out some of his latest work. It's pretty cool:

Tribute to Michael Jackson by Kristof Saelen

Tour de France Heroes by Kristof Saelen

UPDATE: the pixels got their own site called VIPs * Very Important Pixels. You better check it out for more creations.

Filed under: other 1 Comment
24Apr/090

Nascom showreel 2009

Nascom, the company I work for just released a very sweet showreel of some of the coolest projects we did during our existence. Check it out!

If you want to see the high quality version please click here.

Filed under: other No Comments
21Feb/090

VAIO Contest: Europe’s Top Spots

Check out the latest contest on Club VAIO created by Nascom. The idea is to add tips about your favorite cities in five different categories (Architecture, Fashion, Food, Music and Art). Be sure the check out the cool Flash visualization map created by my colleague David. Kudos to the rest for creating this contest. And the best part is that you can win a VAIO P-Series + a City Trip.

Check out my favorite cities here:

guess I won't be winning the new Vaio P-Series :(
Filed under: other No Comments
8Feb/091

Reset default keyboard layout in Vista Welcome screen

windows-vista-logoI had this problem for some time. Every time I reboot my Windows Vista laptop the default keyboard settings are set to Dutch (Belgium). I have a English (United States) keyboard on my laptop and I have to change this setting every time again. I never got around to fix it, but today I found the solution on this forum and it works. This is what you have to do:

Go to Regional and Language Options:

  1. Click the Administrative tab.
  2. Under "Language for non-Unicode programs", make sure that you have "English (United States)" selected.
  3. Under "Reserved accounts", click the "Copy to reserved accounts" button.
  4. Click Continue for UAC prompt.
  5. Check "System accounts....." and click OK.

That's it, finally.

Filed under: other 1 Comment
20Jan/090

Seven things about me (cause I’ve been tagged)

icon_128Saturday I was tagged by a Mark Creeten, a co-worker who blogs about HTML/CSS. I was already thinking about what would be my first post this year, but because I was too busy a haven't gotten to it. But now someone else decided the topic for me. Thanx, Mark with a K.

Well, here goes:

  1. Once a year, I drive to the snow and put on my snowboard boots. I am not an expert, but when the snow is fresh and crispy you can find me in the deep snow next to the piste.
  2. The first video game I played was Mario Bros on Atari 2600. I played it until the joysticks completely fell apart. You can say that this was my first contact with the bits and the bytes. The last game I played was the fantastic Gears Of War 2 on Xbox 360.
  3. In the weekend I like playing boardgames with my friends. My favorite games are Settlers of Catan and Carcassonne.
  4. When I was little I had a lot of Star Wars toys, but I gave them all away to the boy next door who was a lot younger than me. Too bad, because I could have sold them for a lot of money on eBay!
  5. I like to cook, especially exotic dishes. My favorites are the Mexican, Thai and Moroccan kitchen. The more spices the better!
  6. There is a Wikipedia entry about my family (sorry, only in dutch). Royal Nord was a brand of old timer motorbikes made in Belgium in the fifties and sixties.
  7. And last but not least, I became the proud father of a beautiful son at the end of last year.

Here are my victims:

  • Rien, a fellow Flash developer.
  • C'Real a former classmate and creative soul.
  • Bert Heymans, the Journeyman Project Manager.
  • Mark Deraeve, a former colleague and .NET Developer.
  • Minorissues, the interactive strategy maven.
  • Sakri, the best Flash developer from Finland.
  • Patrik, traveler and designer.

Here are the rules if you are tagged:

  • Link your original tagger(s), and list these rules on your blog.
  • Share seven facts about yourself in the post - some random, some weird.
  • Tag seven people at the end of your post by leaving their names and the links to their blogs.
  • Let them know they've been tagged by leaving a comment on their blogs and/or Twitter

Well that's it.

Filed under: other No Comments
29Aug/081

footballfan.be

I have been working on a social networking platform for soccer fans and players for the last month. We started more or less a month ago building the platform from scratch. We developed the site in Java with a team of very good developers. By using existing frameworks like Hibernate and Spring we were able to deliver on time (which was actually almost impossible).

The new part for me was working with Spring MVC, which meant working a lot in the HTML front-end. With Spring MVC you can almost have data binding like in Flex, but off course keeping in mind that we still are working in a HTTP context. Another cool thing was adding the UrlRewriteFilter so that we can have clean urls like http://www.footballfan.be/users/alain instead of something like http://www.footballfan.be/user.do?username=alain. There are also some cool AJAX features in there. So in the end it was fun developing again in Java, but now I am also eager to go back to Flex or "who knows" a Silverlight project.

So here you go footballfan.be has gone live yesterday and has been launched as part of the "We Believe" campaign. The site is only available in Dutch and French.

Filed under: other 1 Comment
28Aug/080

This is so true

Filed under: other No Comments
19Jul/080

It’s been a while

It's been a while since my last post. I have been on holiday for two and a half weeks and we visited the eastern part of Canada. You can see the the route we followed here, and read more about the trip on my travel blog (it's in Dutch).

At work I am currently working on a big social networking site. This is going to be a very big challenge because we are on a very tight deadline and the project is very big. Anyway when we go live I can be more specific, but for now I can tell you that I will be working on the front-end development of the site. This means that for the coming months I will be coding Java again. Fortunarily we will be using the latest version of the Spring framework and Hibernate. I already did two smaller projects with this setup, but now will also be using Spring-MVC to integrate the HMTL front-end.

Filed under: other No Comments