Feb
13
Posted on 13-02-2006
Filed Under (Life, Movie) by Johan Känngård


I’ve had my KiSS DP-558 for some time now, and haven’t used my VHS-recorder since! Recently, I began to get strange behaviours from it. Sometimes, the disk seemed to be full, though I had not anything recorded! Another problem was that every recording was put into subfolders with the same name as the recorded file.
After some searching on MPC Club, I found a firmware that enables http and telnet access to the player! It’s called Stage 2, was created by martinb and can be downloaded in the download section. You have to be a member to access it though.

After the upgrade, I ran the fsck command, and the problems I was having is now gone! Since the player has a Linux dialiect on it, it’s not a user friendly task to do the above, so make sure you read the HOWTO’s for more information.
[tags]DVD, CD, Video[/tags]

(1) Comment    Read More   
Feb
13
Posted on 13-02-2006
Filed Under (Domino/Notes, Java, XML) by Johan Känngård

Here is an example how to use the XMLEchoer class, that I have refurbished from Sun’s tutorial Echoing an XML File with the SAX Parser. It is of limited use, but can be a good start learning SAX.

import java.io.PrintWriter;
import lotus.domino.AgentBase;
import net.kanngard.xml.XMLEchoer;

public class JavaAgent extends AgentBase {

public void NotesMain() {

try {
String xml = "Hello World";
PrintWriter writer = getAgentOutput();
writer.println("Content-type: text/xml");
XMLEchoer echoer = new XMLEchoer(writer);
echoer.start(xml);
} catch(Exception e) {
e.printStackTrace();
}
}
}

To get it working, you need a SAX implementation, like Apache Xerces 2. Just drop the JAR files from Xerces 2 into the jvm/lib/ext directory in your Notes or Domino installation. Restart the http task if you are testing with Domino.

[tags]Java, XML, SAX[/tags]

(0) Comments    Read More