Own maven archetype problem with Eclipse Java Nature

27 11 2009

Yep, i’ve build my own archetype and everytime i’ve created a new maven project with this archetype the java nature has been missing. So i’ve searched for more then 8 hours for a solution and finally found a small page of a developer who had the same problem. The solution is so easy … just delete the .metadata directory of you Eclipse Workspace and every Maven Project with your archetype will have the java nature in that Workspace out of the box.

Hope this helps :)





Regex to filter ISBN 10 and ISBN 13

30 07 2009

In case of a project of two friends of mine, i have been asked to write a regular expression pattern that matches ISBN 10 and ISBN 13 in different notation ways. So the result looks crappy but it works nearly perfect … here it is:

((?=(?:978|979)[0-9 ]{14})(?:\d{3}[ ]{1}\d{1,5}[ ]{1}\d{2,7}[ ]{1}\d{2,7}[ ]{1}\d{1})|(?=(?:978|979)[0-9-]{14})(?:\d{3}[-]{1}\d{1,5}[-]{1}\d{2,7}[-]{1}\d{2,7}[-]{1}\d{1})|(?=(?:978|979)\d{10})(?:\d{13})|(?=[0-9xX]{10})(?:(?:\d{9}[xX]{1}|\d{10}))|(?=[0-9-xX]{13})(?:\d{1}[-]{1}\d{3,5}[-]{1}\d{3,5}[-]{1}[0-9xX]{1})|(?=[0-9xX ]{13})(?:\d{1}[ ]{1}\d{3,5}[ ]{1}\d{3,5}[ ]{1}[0-9xX]{1}))

It matches:

  • 1. 1234567891
  • 2. 1234567891011
  • 3. 3-446-19313-1
  • 4. 3 446 19313 1
  • 5. 978-3-86680-192-9
  • 6. 978 3 86680 192 9

Notice: I’m far-off from being a regex guru so please don’t argue about the syntax :)





Petition an den Bundestag: Bachelor/Master-Studienplätze

8 07 2009

Folgende Petition an den Deutschen Bundestag dürfte für viele Studenten interessant sein:

Text der Petition
Der Deutsche Bundestag möge beschließen, dass jeder Bachelorabsolvent einen Masterstudienplatz erhält, unabhängig von Note, Herkunft und sozialem Stand.

Begründung
Mit der jetzigen Regel, bei der es so organisiert ist, dass nicht alle einen Masterplatz erhalten, steigt der Konkurrenzkampf unter den Studenten. Es geht nur noch darum gute Noten zu erzielen, um einen Masterstudienplatz zu erhalten. Die Möglichkeit Interessen auch innerhalb des Studiums zu vertiefen bleibt aus. Der Bachelor ist meist nicht berufsqualifizierend, sodass die übrig gebliebenen Studenten kaum etwas mit dem Abschluss erreichen können. Zunehmend wird die Qualität sinken durch das angestrebte Ziel, dass die Studenten möglichst schnell das Studium beendet haben müssen. Dies alles ist nicht tragbar, wenn ein Studium interessant sein soll und auf den Beruf vorbereiten soll!

Hier könnt ihr mitzeichnen





TwitSaw.com … great!

12 06 2009

Hey,

a small personal ad for a good friend of mine who had a great idea. So everybody knows twitter and he thought about an app which offers the possibility to link people on pictures like in facebook or studivz. The result is www.twitsaw.com a very good app and also for free so test it!





GWT 1.6 with SmartGWT 1.02b

2 05 2009

Since two weeks I’m playing around with the new Google Plugin for Eclipse, GWT 1.6 and SmartGWT. One of the things that annoys most was to find out how to get the SmartGWT themes working with GWT 1.6. So to get the SmartGWT themes working you have to set a path new with this small javascript line in the html file:

<script>
 var isomorphicDir = "ModuleName/sc/";
</script>

So hopefully this prevents anybody from searching 4-5 hours how to get it working …





Wow my own Blog

30 04 2009

In every man’s life there comes the time where he has to open up his own Blog. My time has come right tonight. So lets have a good blogging time.