Jun 262011
 

We had quite some fun with the lensebaby kit we got a while ago. Since then we were considering getting the aperture kit with shaped disks. It never happened, but recently Jim found a blog post similar to this one giving instructions how to do custom shapes yourself. We created hearts and stars and started for a nightly walk through Dublin. I am quite impressed by the results. 

IMG_8897IMG_8904IMG_8907IMG_8918IMG_8926IMG_8932IMG_8933

Popularity: 4% [?]

Tags: , , , ,
Jun 242011
 

This year’s BRN was the reason why I booked tickets for a trip to Dresden in June together with my fiance. We arrived at Thursday afternoon and left Sunday afternoon after almost excactly 72h. It was a great long weekend stuffed with things even though we haven’t planned anything particular before. 

Day 1

My parents picked us up and took us to my uncles garden for having coffee and cake. So first stop was with fiance at a German bakery. Arrived at my uncle’s garden fiance got introduced to a few more of my family as well as the concept of German allotment associations. It was a great time, I haven’t seen my uncle in ages, so it was good fun to have a chat. After that we went to a restaurant in a pasta manufactury in Riesa. After that we wanted to go to a micro brewery which unfortunately had closed that day. We eventually got to my parents place and spent the evening there.

Day 2

We had to get up early as we needed to get to Dresden because I arranged a hair dresser appointment with the best hairdresser alive. To not bore fiance out of his mind I sent him togehter with my father to the Panometer in Dresden – a 360° experience of Dresden as of 1756. Once we all were finished we got to the historic city centre and had lunch at the Coselpalais close to the famous rebuilt church Frauenkirche. From there we did drive along the river to see the bridge in construction in Elbe valley which caused Dresden being deleted from the world heritage list in 2009. We finished our visit with my parents at Louisenhof with a panoramic view over Dresden’s skyline on a beautiful summer day sitting on a terrace. The evening we spent on a friends place having a BBQ with his family – his wife and 2 daughters. This was quite fun, it’s amazing to see how fast children grow up and develop their personalities. 

Day 3

After breakfast we left and got to Dresden city center to a place called Max for a light lunch and mainly to meet two friends of mine and chat for a while. I was surprised about fiance not complaining drinking a capuccino with 4 girls ;) From there we got to another friend’s place who recently moved. I love his new apartment and it was good to see him again. With him we got to the Neustadt part of the town to attend the BRN a pretty unique street festival. We strolled around all evening, tried random food and drinks, listened to random bands on one of the many stages – especially to mention The Blumenkinders as their singer is my friend’s buddy; they also were pretty good entertainers. 

Day 4

 

Last day started with a surprise for my friend. As he slept much longer than we did, mutual friends decided to stop by his place to say hello. They have a daughter which can already walk, last time we saw her she was a few months old baby and before that she was still in production. Time flies! We left at noon to meet one of my dearest, oldest friends to have lunch at the Schillergarten and a good chat. Due to unforseen circumstances we spent much less time with him than planned and wished :( Next time…

And that was it. 3 days in Dresden without planning and especially without any planned sighseeing turned out to be for fiance lots of new impression like the street festival, several local dishes at restaurants, a few panoramic Dresden views and lots of fun with good people. I am always happy when I return from Dresden as I had perfect days with well-entertained fiance, met people who matter to me and who I miss. But then, back home I get my blues about all the people and things I miss in my daily life here in Dublin. 

Popularity: 4% [?]

Tags: , , ,
Jun 222011
 

Due to a recent project I started working on a talend component. This blog post is not about how to do this from scratch, I am quite sure that Talend provides enough tutorials about it, alternatively you can do it like me and just use existing components as reference and build your own one (work environments without internet access suck!)

Prior reading this You Should Have:

  • A basic understanding of Talend Data Integration solutions. 
  • A basic understanding how to develop and deploy Talend (Java) components.
  • Knowledge about maven, maven build plugins and ant builds.

My Environment is:

  • Mac OS 10.6.6 with Java 1.6
  • Eclipse 3.5.1 Java EE editon
  • Jaspersoft ETL 4.1.2 (aka Talend Open Studio 4.1.2)

 

Everything I describe applies for Jaspersoft ETL, Talend Open Studio and Talend Integration suite. The <Jaspersoft ETL workspace dir> is my local Talend repository folder – the Eclipse workspace folder of Jaspersoft ETL.

 

At The Beginning I found a few items to struggle with:

  • Project structure: 
    • src/main/template: contains all files which are patched during the build process such as the component registration file.
    • src/main/resources: contains all resources such as jet templates, icons, message properties
    • src/test/java: reference implementation of the functionality which shall be in the component
    • for the build (see below):
      • src/assembly, pom.xml for the maven build
      • build.xml for the ant wrapper.
  • Editing Template files: By default Eclipse handles *.javajet files as text files without code completion and syntax highlighting. If you download the m2t JET from http://download.eclipse.org/modeling/m2t/updates/releases/ an editor will be installed. Now go to Preferences > General > Editors > File Associations and add “*.javajet” as extension. Select it and click on the second Add.. button and select “JET-Java Emitter Templates Editor”. Click Ok. Reopen the javajet templates. 
  • To refresh the javajet templates in Talend without restarting it just hit Control+Shift+Function+F3 to re-initialize the code generation.
  • Dealing with JETorg.eclipse.emf.codegen.jet.JETException: The generated java files are in a specific folder. These files can help to understand what the compilation error caused. I linked the folder into my project
    ln -s <Jaspersoft ETL workspace dir>/.JETEmitters/src/org/talend/designer/codegen/translators/<family> ./gen-src
    ln -s <Jaspersoft ETL workspace dir>/.metadata/.log ./log.log
    The log file i monitor with tail on command line.  

The Build And The Component File

I setup maven to maintain the dependencies for my project as I don’t want to collect everything manually, I also want to be able to easily migrate to a later version. Now, as you might now, the component descriptor file requires a list of component specific imports. For obvious reasons I did not want to create this list manually, therefore I wrote a little ant script which wraps the maven build and patches the component descriptor.

The maven build file is responsible to collect all required files and bundle it as a single zip file. I used

  • the maven dependencies plugin to download all required jars into the target folder during prepare-package phase.
  • the maven assembly plugin for collecting all resources and bundling into a zip file during package phase.

The ant build is has only a few targets

  • a prepare target which triggers mvn clean prepare-package
  • a patch method which utilizes the (evil) antcontrib library to iterate over the jars and collect their names which are written in the required structure into the component file. 
  • a package target which triggers mvn package.

 

Popularity: 33% [?]

Tags: , , , , , , , ,
Jun 102011
 

 

we have a new vacuum cleaner
as it is a device which has a power cord
i couldn’t resist
unboxed it
assembled it
and tested it
I fucking cleaned the entire apartment. on a friday evening. a time when I shouldn’t be sober *or* at home at all.

 

Popularity: 2% [?]

Tags: ,