Archive for the ‘Technology’ Category

Relict 1: Getting things done

Friday, January 30th, 2009

This is my oldest relict… I started this post about 8 months ago and I am convinced that it is worth mentioning. :-)

After reading the post from Mirko I thought why not read something different from time to time.
Besides some students at the CMU recommended this book on the Google Group for new entering students ;-)
Even though I did not completely finish the book, I would recommend the book to anyone who wants to improve his time management. I did not apply all the things the book mentions but I definitely could improve some work habits, which saved a lot of time.

Thanks to Mirko for lending me the book! Meanwhile I posses my own copy of this book :-)

Trac over XML-RPC with JAVA

Tuesday, July 1st, 2008

For our work on the C++ Refactoring in Eclipse CDT we created some helper classes. We thought it would be nice to document this helper classes in a way that it is browsable and searchable. The best would be to generate a wiki entry in our trac using the javadoc. Because then the documentation is directly in the source and not in a separate file and the advantage with the wiki should be obvious.
To extract the needed information out of the Java source code I wrote my own Doclet. This was not a big problem in contrary to editing the trac wiki.
Here are a few things you should pay attention to if you want use the Trac XML-RPC with Java:

Before starting you need to install the Trac XML-RPC Plugin. We had already done this to use Mylyn. After installing the plugin you should check if it works and make sure that you use the accurate url. You can do this by navigating to http://your.domain/xmlrpc or with authentication to http://your.domain/login/xmlrpc. You should see the “XML-RPC exported functions” site. Now you are ready to start!

I started with fetching all the needed libraries.
There are different vendors which provide libraries for XML-RPC. I use the own from apache.
To use the Trac XML-RPC Plugin the easiest way is to use the provided java library.

The next thing you should do is to create a user explicitly for this purpose and give him the needed privileges. Additionally you have to set the XML_RPC privilege. For a detailed view which privileges are needed look on your XML-RPC exported functions site.

After that let us have a look at the code. (Hint: I removed the exception handling)

XML-RPC Java code

This Code consists mainly of two parts. The first part where the connection is established over XML-RPC and the second part where the interaction with the Trac happens. I think that the first part is self explanatory. Therefore let us move on to the second part.


TrackerDynamicProxy tdp = new TrackerDynamicProxy(client);
Wiki wiki = (Wiki)tdp.newInstance(Wiki.class);

To add or change something in the wiki you need the correspondent object. This can be fetched over the TrackerDynamicProxy.


Hashtable h = new Hashtable();
wiki.putPage("MyWikiSite", "Hello World!", h);

From there it is quite easy. Just use the wiki object for all the modifications.
The Hashtable h can be used to set PageInformations which can be fetched again with wiki.getPageInfo(). But because we only need to write the page we won’t store any additional information with it.

Problems?
Following I will give you two hints which might help you.

  1. An exception will occur if you try to write the same page content into the wiki which already exists. This exception will look somewhat like:
    Caused by: org.apache.xmlrpc.XmlRpcException: 'Page not modified' while executing 'wiki.putPage()'
  2. Another really strange problem I experienced was with the authenticated access. My first approach was to put the user and password into the url (username:password@url) as common on the internet .
    conf.setServerURL(new URL("http://username:password@your.domain/login/xmlrpc"));
    But that did not work and I do not have a clue why?

    The only way it work was as shown above. By setting the user and password separately from the url.
    conf.setBasicUserName("username");
    conf.setBasicPassword("password");
    conf.setServerURL(new URL("http://your.domain/login/xmlrpc"));

Shrink Volume

Friday, May 23rd, 2008

After installing Windows Vista on my new Lenovo, Windows claimed the whole disk space for itself. Maybe I missed the option to adjust it during the installation process.
Anyway, Vista provides a tool to shrink a hard disk partition. Using this tool I was able to downsize the partition to 145GB but not more. After some investigation I found out, that many unmovable files (system information) where written at the end of this 145GB. With only about 20GB on a 145GB volume it was no possible to reduce it more.
Fortunately I found help on the Internet. I will not explain the whole process here again, because I think they did a pretty good job on How-To Geek. I have to add only one thing: I did not delete the c:\pagefile.sys.
On this How-To Geek site there are several programs mentioned. The one I used was PerfectDisk2008. An absolutly brilliant tool! The only down is that it is not free… but with this tool I could have downsized my partition to 21GB ;-)
Now I am working happily with an 80GB partition.

Webpage with Rubyscript

Saturday, March 1st, 2008

As I mentioned in an older post. I burdened myself with the task of creating a gallery for the Tourenlager08. I took that as opportunity to do some ruby scripting. I know… I just could have taken a gallery software out of the box… but that would not have been fun :-D
It is over a half year since I last used ruby. So my knowledge was a bit rusty. After a short time I was on track again…

Here is the link: http://www.zgraggen.name/tourenlager08

btw: I hopped that more people would send me their pics… but till today I have only the pictures from the three people (including me)

Hack the Hackit online!!!

Thursday, January 31st, 2008

Emanuel told me about Hackit and that he had solved the 16 levels. So I gave it a try…

The first few levels were very easy, than it got harder. The hardest level was the number 12 because I had to try out about 48 possible solutions. And it did not match until the second last. What bad luck! Congratulations

On the right and below you can see two evidences of my success :-D
GuestBook Level 16

Do it yourself: http://www.isatcis.com/

Adobe sucks

Wednesday, January 30th, 2008

In the last few days I did some work on our MathML plug-in for FrameMaker. It is about three years ago when I did a term project with Christian Cavegn on this topic. We started working with FrameMaker7.0. Since then I am burdened from time to time to do a new release for the current release. I had no problem with version 7.1 and 7.2. But now with FrameMaker8.0 it is different.
First, when downloading the FrameMaker Developer Kit (FDK8.0) I noticed that the included documentation is still for FDK7.2. Finally I found some parts of the documentation online, but not the things I needed. So the only thing I could do is work with the well known principle try and error. But that is not the way we do our work at the IFS. So unless our costumer pays for guessing around (which I doubt) I am done with it :-D

Yes, I know it does not sound too bad… but of course there are several other things to mention about Adobe especially the Acrobat Reader. Why does the installer need to reboot after the update process? Not only that it gives an alert which recommends a to reboot the system. Sometimes it even reboots the system automatically after a few minutes. Nice feature when you are compiling or letting the computer work itself without controlling the monitor.
And not to forget how slowly this document viewer is… Compared to other pdf viewer!

btw:
Other cool Post about the reboot process (in German)

Repair stuff at home

Friday, January 18th, 2008

The stereo from my parents did not work properly. Some times one loud speaker did not work so you could hear the sound only on the left or on the right side. It is quite a while ago this curious behaviour started. My father said to me lets open this thing and lets have a look otherwise we through it away. After we dissassembled the whole device. I started looking for a defect part. After a short time I noticed a few cold solder connection. I took the soldering iron and made this connection new. After reassemble the apparat, you will not believe it, it is working properly. I know good and high quality devices are hard to find especially with the strong competition today. No wonder money is safed everywhere. As it look like the conections on the print where made by machine automatically, but all the cables and other connection to the main platine where soldered by hand. And it looks like this people who soldered it had no clue how to do it…. Besides the stereo it is no long ago I fixed a toaster and a sauna heat controller (of our sauna) on the same way. Only by solder this joint again.

The worst Site ever!

Monday, October 8th, 2007

I couldn’t believe it, that such a bad site might exist. Unbelievable!

When I made the registration for the TOEFL. I had to fill in a lot of forms but the ugly part of it was, that this site doesn’t remember everything and the home country question has to be answered five times. (The Default was nothing or America but not the Location selected before) I also had to enter my address for three times. How difficult can it be to suggest the last address entered? And also some really unnecessary personal Questions where asked too.
And the worst of all is that an error message nearly can’t be read because the info text is over it. I Tested it with Firefox an Konqueror (Sorry for not trying with IE :-D )


TOEFL

Post 2.0

Thursday, August 23rd, 2007

Yesterday, while reading the newspaper (20min) I found the following subtitle Terror 2.0.

First, I thought that Web 2.0 was only a Buzzword for all wannebe’s to talk about. After a while I accepted the Web 2.0 because it associated at least several technologies and was a “little bit” more than only marketing. Definition of Web 2.0
But the downside of this trend is that several marketing guys take benefit of it.

A few examples:

  1. Bürgerkommunikation 2.0
  2. Vertrauen 2.0
  3. Zukunft 2.0 (At least an articel over web 2.0)

Sorry, for all the German words an links, but it seems that this 2.0 stuff might be a “regional” problem.

I don’t know why people (marketing or whatever) do such things? At least it worked a little bit because I blogged about it. For God’s sake not many read my blog :-D

Right now I would hate myself if I had to release a Software with the Version 2.0 I would rather stay on 1.xy or jump right to Version 3.0 :-)

Design-Gene

Saturday, August 18th, 2007

Something I don’t have: the design-gene

Therefore the change of my blog layout was a big challenge for me.
So instead of doing everything by myself I searched for a suitable theme on the internet.
Finally I found this theme you are looking at on Wordpress Themes.
The installation was very easy: copy it on the server in the right folder and activat it.

To put at least a little bit of personal touch into my blog a placed my Bike in the header ;-)