Master Thesis submitted

Finally submitted my master thesis. Have a look if you want: Online XML Editor Based On XML Schema

Abstract:
This master thesis introduces a mechanism of mapping XML Schema (XSD) to PHP. In the mapping process PHP classes are automatically generated which include all the functionality defined by the schema. The second achievement is an online syntax-directed editor based on the above defined mapping to friendly create Extensible Markup Language (XML) documents based on the mapped schema. In addition the editor offers several guidance mechanisms to create complex XML documents online.

Stay tuned for more updates soon.

Cheers.

Semi-Autocrop PDF using Inkscape command line

Programs intend to save a whole page for everything that is saved as PDF, even if the content just takes 5% of a page. If you then have to crop a large batch of PDFs manually it is really a pain, but Inkscape offers a nice way to do this using the command line.

Continue reading “Semi-Autocrop PDF using Inkscape command line”

Range in Regular Expressions

While searching for ranges in regular expressions I found this page: http://utilitymill.com/utility/Regex_For_Range/42 The page generates regular expressions for ranges and works really nice. You want for example a regex for the range 12 to 389 and the page generates this for you: 

^0*(1[2-9]|[2-9][0-9]|[12][0-9]{2}|3[0-8][0-9])$

Unfortunately negative values are not allowed. But I needed to have an regex for the range between -128 and 127. If you also need something like this to define types like short or byte, there is a nice trick.

  1. generate the regex from 0 to 128: ^([0-9]{1,2}|1[01][0-9]|12[0-8])$
  2. add an optional – in the beginning: ^[-]?([0-9]{1,2}|1[01][0-9]|12[0-8])$
  3. exclude 128: ^(?!128)[-]?([0-9]{1,2}|1[01][0-9]|12[0-8])$

And there you have it, a range regex for values from -128 to 127.

Footnote in Longtable

Maybe many of you have such problem. You have a table and want to have a reference inside, but it doesn’t work. Propably you get this or similar error:

name{Hfootnote.7} has been referenced but does not exist, replaced by a fixed one

This happens, because hyperref has problems with its counters, when they are inside of a table environment.

I searched the net for a couple of hours with no real solution. Mostly it says, don’t use footnote in table. But it’s much more nice to have. With some inspiration from some boards I came up with this solution which works fine for me.

Continue reading “Footnote in Longtable”

Extending DOMNode

Sometimes you may think: Wouldn’t it be cool if I can extend DOMNode and since all other functions extend DOMNode, my custon functions will be available in every element?

The bad news, it will not work for DOMNode, but the other elements which extend from it.
Continue reading “Extending DOMNode”

Adventures in Widget Development

Life is hard, developing a widget is even harder…

I could never imagine how hard it is to get a widget running or better to get it accepted. Maybe it is just for the JIL specification or especially for the Vodafone Appstar Competition which I attended. I definitely don’t know.

Imagine this: You have a good idea about some piece of software (widget) you would want to have on your mobile, what do you do ? You read the W3C widgets specification and a lot of tutorials and then you are ready to develop your own widgets.

Life is hard, developing a widget is even harder…

I could never imagine how hard it is to get a widget running or better to get it accepted. Maybe it is just for the JIL specification or especially for the Vodafone Appstar Competition which I attended. I definitely don’t know.

Imagine this: You have a good idea about some piece of software (widget) you would want to have on your mobile, what do you do ?

You read the W3C widgets specification and a lot of tutorials and then you are ready to develop your own widgets. Continue reading “Adventures in Widget Development”

Nun doch WordPress

Nachdem ich nun auch mal was posten wollte in meinem Blog habe ich festgestellt, dass es unter Drupal nicht so schön ist. Damit ich in meinem Post ein Bild integrieren kann, muss ich extra noch plugins installieren. Das kann ja wohl nicht sein, sowas sollte man doch erwarten. Naja der Umstieg auf wordpress fiel nicht so schwer, da ich ja nur einen Post hatte in Drupal 🙂

Auf den ersten Blick gefällts mir schon viel besser. Das erste Bild kommt in diesem Post noch nicht, aber die Möglichkeit besteht auf jeden fall schon gleich nach der installation.

Nun denn, stay tuned.