Digest The Tortoies And The Hare

== The Tortoies And The Hare ==
I was looking for a API that could help me create a data driven model for a application I was writting at work. Since it was a Java application I turned my eyes towards [http://jakarta.apache.org Jakarta] (a true saviour for us Java coders) and found [http://jakarta.apache.org/commons/digester/ Jakarta Digester]. It seemed to full fill all that I needed. So I took it for a spin.

Computer Science Trivia

Here are some fun and usefull(?) facts about the Internet and other areas of computer science.

== First WWW server ==
The first WWW server, serving a HTML page over HTTP was named ''nxoc01.cern.ch''.
The URL to the document was http://nxoc01.cern.ch/hypertext/WWW/TheProject.html

The server was later renamed info.cern.ch which is still available.

=== Sources ===
# [http://www.w3.org/People/Berners-Lee/FAQ.html#Examples Frequently asked questions by the Press - Tim BL]
# [http://info.cern.ch/ info.cern.ch the website of the world's first-ever web server]

NWN Dedicated Server

== Introduction ==
[http://nwn.bioware.com/ Never Winter Nights] (NWN) is a [[wikipedia:Computer_role-playing_game|RPG]] computer game created by [http://www.bioware.com/ BioWare Corp.]. It was initaly released for Microsoft Windows platform but BioWare has since then also released both servers and clients for both GNU/Linux and Apple Macintoch systems.

NWN also allows you to create your own worlds and maps (called modules) so you can extend the experiance of the game.

Linux and Nokia 6680

== Introduction ==
I got myself a Nokia 6680 phone and wanted to connect it to my Ubuntu Linux machine.
Here are some quick notes on what I had to do to get it running.

== Connecting using Nokia DKU-2 USB cable ==
The Nokia 6680 comes with a DKU-2 USB cable which can be used to connect the phone to your computer.
[http://members.dodo.com.au/~joaniemrc/nokia/Nokia-6670-USB.html USB OBEX HOWTO]

== Transfer files ==

=== Using obexftp ===
When I used obexftp I had to use the '''-F''' flag to get listings.

obexftp -U 1 -F -c C: -l

Sed

Sed is a very useful program that often is used as a filter in shell scripts.

From the sed man page:

Sed  is a stream editor.  A stream editor is used to perform basic text
transformations on an input stream (a file or input from  a  pipeline).

== Simple find-and-replace in text file ==
To replace all occurrences of the string ''findme'' and replace it with the string ''replcaceme'' in a file named test.file using ''sed'' just use the follwing command.

sed -e 's/findme/replaceme/g' test.fil > newtest.fil

Unused parameter warning

When using a [[wikipedia:API]] that uses callback functions there is sometimes not necessary to use at all parameters that the callback function prototype declares.

A example a API defines a callback function handleEvent as follows.
int handleFooEvent(int type, EVENT_T* event_p);

In your application you implement this function to see when a Foo Event occurs.

int handleFooEvent(int type, EVENT_T* event_p)
{
printf("Foo Event of type %d occured", type);
}

Tags: 

Register new protocol handler in Firefox

Sometimes you may want to configure [http://www.mozilla.org/firefox Firefox] to open links for a special protocol in a external application. There is a quite simple way to do this but it requires knowledge about one of Firefox most usefull "hidden feature" the ''about:config'' page. On this page you can view and alter the your Firefox configuration.

* Enter about:config
* Create a new string value by right click and select New -> String. Enter ''network.protocol-handler.app.'''protocol''''' as preference name.

Multiple interfaces on the same subnet

In the Linux implementation of the IP stack a IP address belongs to the host event though the administrator configures it on a devices. This can cause somewhat unexpected behaviour when multiple interfaces are configured to use the same network.

== The network ==

 {network A}
            \       +--------------+
             -(eth0)| Linux server |
                    +--------------+
                     (eth2)  (eth3)
                       |       | 
                      {Network B}
Tags: 

Pages