Archive for February, 2008

XML, DOM and Xerces

Sunday, February 17th, 2008

I’ve been having to use the Xerces framework because of school, and after I was rather searching tooo long how to use xerces, I thought I’d just go about and do a little blog on how to use the framework, so that in the future, I still know what I have to do.

Read the rest of the entry for everything

(more…)

Tables in LaTeX

Thursday, February 14th, 2008

Ok… I have most definitely gone over the bend, LaTeX tables are a pain, at least till you know how to do them… I have been trying to add neat tables to LaTeX documents, and I have been searching all kinds of places. But I have finally found something that seems to work.

It has one last slight problem: If you have a column with so much text that it should span onto more than one page, then TeX system will sadly just make it overlong.

But otherwise, here is how I did it. First the document begins:

\documentclass{scrartcl}
\usepackage{array}
\usepackage{tabularx}
\usepackage{longtable}
\usepackage{ltxtable}
\begin{document}
\section{Title}

Now these are the first lines needed and will be in the main document .tex file.
The actual table must be in a different file and will then be added with this command in the main document:

\LTXtable{\textwidth}{table.tex}

Now in the table.tex file as is included in the above line we add the table as follows:

\newcolumntype{Y}{>{\small\raggedright\arraybackslash}X}
\renewcommand{\arraystretch}{1.5}
\noindent \begin{longtable}{|>{\setlength\hsize{.5\hsize}}X|>{\setlength\hsize{1.5\hsize}}X|}
\caption{Some table} \\
\hline
Lorem & Lorem ipsum dolor sit amet, consectetuer adipiscing elit. sdfsdfsfsdfs dfg dfg\\
Lorem & Lorem ipsum dolor sit amet, consectetuer adipiscing elit. sdfsdfsfsdfs dfg dfg\\
Lorem & Lorem ipsum dolor sit amet, consectetuer adipiscing elit. sdfsdfsfsdfs dfg dfg\\
\hline
\end{longtable}

After that is done, our table is included and will automatically span to different pages, as well as have a specified column width.
This column width in this example is made to be the full textwidth of the page, as described in the

\LTXtable{\textwidth}{table.tex}

line.

In the

\begin{longtable}{|>{\setlength\hsize{.5\hsize}}X|>{\setlength\hsize{1.5\hsize}}X|}

line of the table definition/environment we can see that our second column is three times as wide as the first column. It is important, that the some of the columns NEVER be more than number of columns in the text.

In the following links one will find the pdfs to files I found on the net to tables in LaTeX. They helped me quite a bit.

Tables in LaTeX

Typesetting tables with LATEX

My blueberry nights

Saturday, February 9th, 2008

blueberry

I was in Nürnberg, Germany this past week. My visit was work, with working times between 9pm and 5am. One afternoon knowing that there were cinemas in Nürnberg and the weather was way past nice, I decided to go and watch My blueberry nights. Now sadly in Nürnberg I did not find a single cinema, which had the original language, so I had to watch it in German.

The movie just rocked my world. The way how the director Wong Kar-Wai created the movie with the softness in pictures. The whole time over one is just completely mesmerized through the colours. The story is filled with interesting characters, allowing the watcher to associate oneself with the one or other character. It is always wonderful to see in which new way that Wong Kar-Wai adds life questions in his movies.

The actors are amazing, there is not much to say about Jude Law, Rachel Weisz or Natalie Portman, as they are well known. The real jewel in this movie is no doubtedly Norah Jones. I for one did not really know what to expect, but from her music alone, one feels already such an amazing energy and so I was actually quite sure that she would be wonderful. Even so, how astonished was I when, I saw her on the screen. She has such a charismatic way of being on the screen, that I was blown away.

In the end all I can say is, that if one likes Wong Kar-Wai movies, then you will not at all be disappointed, as this movie touches the viewer in the same way, with the difference, that this movie plays in present day America and not in “future” Hong Kong

Wow!

Saturday, February 9th, 2008

Look at me… I have finally installed my own blog. Now let’s just hope I use it often… I’ll be trying to write about a lot of stuff, ranging from personal, to technical, over I suppose ranting as well… since everything is personal, I might offend people, but I really couldn’t bother less about that…