Germans and my Name
No Comments

Posted by Drakonen on May 20, 2008 in Uncategorized | Short Link

Germans are used to Johann I guess… But alas, my name is still Johan without the second n.

Violation
1 Comment

Posted by Drakonen on May 7, 2008 in Uncategorized | Short Link

I am in violation of german law:

http://kismac.de/

My German phone number
No Comments

Posted by Drakonen on March 25, 2008 in Uncategorized | Short Link

Keeping up with the one post per month… I present:

My new German Mobile phone number!

  • 0049 17696209986

Still using my old P900 for this. My dutch number is out of service until I find a good phone for it. (switching Sim’s once in a while) using a way back old phone for my dutch one.

Nginx userdir list
5 Comments

Posted by Drakonen on February 29, 2008 in Programming, Tech | Short Link

Our Nginx server was without a proper ~user listing. While this is default in most apache configs, its not in Nginx. My friend Dominiek made a hack with a ruby script. This would have worked fine if had some more work but memory usage was pretty bad (especially for big files).

So, I started on a proper Nginx way to solve this and harness it’s power. By diving into the config I figured it out:

# the [a-zA-Z0-9] is for the greedy .
location ~ /~([a-zA-Z0-9]*)/(.*) {
root /home/;
autoindex on;
index index.html;

rewrite ^/~(
[a-zA-Z0-9]*)/(.*)$ /$1/www/$2 break;
}

Put this small snippet into the server config where you want userdirs enabled and enjoy your apache like mod_userdir.

Edit: made it work with subdirs
Edit: took advice of beate (see comments)

Tags: , , , ,

Vim tags not sorted error
4 Comments

Posted by Drakonen on February 12, 2008 in Programming, Tech | Short Link

Vim has a pretty nice (although not that smart) completion command, Ctrl+n.

Lately I’ve been getting this error:

 E432: Tags file not sorted

This error is pretty annoying as it interrupts your work with an error. Googeling for this gave me no solution. Then I searched for files named tags (which are a lot), and I found a file in my home dir ~. I deleted that file and the error was gone.

The lesson was:
NEVER put a tags file in your home dir!

Tags: , ,

No Comments

Posted by Drakonen on November 28, 2007 in Tech | Short Link

As I keep working on school projects getting my points. As I’m getting more and more familiar with ReST, I like it more and more! But I’m also becoming more and more aware of its limitations. Don’t get me wrong, ReST will do everything for most document needs, but it lacks features to be used for scientific papers. It also lacks a page break function, which i miss. Now i need to export the document to LaTeX and make some modifications there, which is far from ideal. BUT! It’s a lot better than writing the entire document in LaTeX myself.

Anyway, this post was to let you see http://rst2a.com/ . A cool project to make converting ReST to html and PDF easy. It also has more styles available than default ReST. I’s easy quick and painless.

Tags: ,

Mouseless Xorg, numpad!
No Comments

Posted by Drakonen on November 11, 2007 in Tech | Short Link

Don’t have a mouse? Want to move that pointer anyway? Press shift+alt+numlock and press the numpad keys to move your pointer!

1 2 3 4 6 7 8 9 are the direction keys, 5 is a click. 0 (zero) is press and hold, the . key is release.

On the top are the mouse buttons: / for left * for middle and - for right. These select the type of button is used when you press 5.

ReST experience
No Comments

Posted by Drakonen on October 9, 2007 in Uncategorized | Short Link

I’ve been playing with Restructured Text for a bit, and it was a very pleasant experience, unlike latex. ReST has a nice readable source, and the source file itself is very suited for distribution. When needed you can convert it to HTML and latex. ReST is very suited for HTML, and as it is one of the most prominent standards this day, I see this as a good thing.

This does not mean that it cannot be used for printing, the HTML it generates is very suited for printing, but if you want a more “professional” layout you can easily convert it to tex.

ReST has many advantages over tex of you’re writing normal documentation (like most texts) without any mathematical markup. The code to make a ReST document is easy, clean and easily comprehensible. Layout options are plenty, not too much, not too many. I will doubt that I will run into a limitation soon. The only thing it misses is a table of contents generator, but that can be solved by using tex. It even has a table of contents generator, which automaticly makes links inside the document.

I see ReST as a nice alternative to tex, or at least a better beginning for writing pieces of text.

P900, linux and connection to the internet
No Comments

Posted by Drakonen on July 20, 2007 in Connectivity, p900, Tech | Short Link

I got an unlimited gprs/umts plan for my P900 a while ago, so I wont be needing a windows pc anymore to connect to the internet. What would be nice though is connecting from my laptop to the internet using my P900. I found this site which seems to do the trick pretty well. More when i have tested it!

Also, i can really recommend Opera mini as a fast internet browser. I’m currently running the beta for 4, Which is working great for me so far.

Found a somewhat better SSH client too. Its mostly the same as the previous one I was using, but i like this one a bit better. Still no page up and page down though so I can scroll in irssi.

A good programming language…
1 Comment

Posted by Drakonen on July 18, 2007 in Uncategorized | Short Link

A good programming language does not need a lot of books to explain the language.

Copyright © 2005-2012 Draakwired All rights reserved.
The Shades theme, version 1.7, is a BuyNowShop.com creation.

Social links powered by Ecreative Internet Marketing