Archive for February, 2008

Remote reconnecting with Fritz!Box

Sunday, February 24th, 2008

This little script I picked up here (and modified just a little bit) makes it easy to make a Fritzbox reconnect it’s DSL-connection. It works fine with my FRITZ!Box Fon WLAN 7170 at firmware version 29.04.49.

There are some really nice hacks out there for the Fritzbox, like the DS-mod and other stuff, but at the moment I like the box just like it is (remote WoL would be a nice thing though) and having a 2 year warranty also is not a bad thing.

Remote editing with (g)vim

Saturday, February 16th, 2008

Logging onto an remote server and editing a file via vi(m) requires three things (to do it securely):

  1. (Open)SSH: the tool of choice for (almost) every network-operation.
  2. (g)VIM: the ugly monster editor of choice to those that have seen the light.
  3. a fast enough, not otherwise used, stable network-connection to be able to work fluently and not loose your changes.

If you do not want to depend on number 3 (for example get disturbed by an improperly configured backup-operation or someone else putting heavy load onto the server or by faulty connections), do it this way:

Open your files using the (amazingly extended) netrw plugin VIM brings along since version 6. Just open your files via :e scp://<username>@<servername>//<dir>/<file>. Or even shorter (if ssh is configured correctly) via gvim scp://<servershortcut>/<somedir>/ - if your scp-command ends with a slash, VIM will give you the :E-exploring-mode on the remote server. I’m loving it!

PS: And I also love it, that I do not have to install vim at every remote computer I want to edit files at and that I am able to edit files on headless servers with the g-version of vim.

FLOW3

Friday, February 8th, 2008

This is kind of very VERY INTERESSTING. Might be it takes some of the pain out of php-programming.
Guess I should get a little bit more verbose on, why I am so happy just by the announcement of yet another PHP-Framework.
First of all - I hate PHP, but I love TYPO3 (in spite of being PHP-based). TYPO3 has proven very solid in the years I use it. It’s backend might seem complicated, but once you understand the basic principles, it is very easy to handle and to enhance. For me TYPO3 lifted PHP-programming to a new level - usable libs, simple, but yet efficient design (considering it is a PHP-programm).
The public announcement of the FLOW3 framework is the first visible step towards abandoning the PHP4-style and consequently using the new PHP5 possibilities.
In addition to this the very will of using modern design-patterns and programming-techniques (which is even more important than the consequent usage of the new OO-features of PHP5) in order to be ready for the future, shows it’s first (very promising) fruits.
The way, the TYPO3-project chose to try to remain in the market is one of professionalisation - coding for TYPO3 will at the same time become more difficult and easy. TYPO3/FLOW3 seems to be a promising opportunity for PHP-Coders to become better programmers and write better programs (faster).
I am very enthusiastic about the consequent architectural approach chosen for the TYPO3-to-come and I wish them the very best (even though they should have taken the opportunity to drop PHP and switch to python ;)).

Extension of the Day (messageidfinder)

Sunday, February 3rd, 2008

Message-ID-Finder is a truly nice Add-on for Thunderbird. It embeds clickable message-ids into the mail-header. So if there are any references in the header, you are quickly able to find them, where ever you dropped them.
Sadly Message-ID-Finder does not seem to be under active development, so the you have to adjust the installation-requirements in install.rdf in order to enjoy this wonderful extension. Even though this is ugly in some way - this extension rocks!