Nils’ Geek Blog

Stuff that doesn’t matter

Flash Player 9 released

Flash Player 9It’s finally released! I guess I’m not the only developer who’ve been waiting for this release. One of the new features of Flash Player 9 is the support for ActionScript 3.0. Here are some of the new features of version 3:

(Read the article)

Listen to this podcast Listen to this podcast

Tags: , , , , , Trackback URI

The digital tabletop - the nextgen keyboard?

Have you ever been thinking about what will replace the keyboard, and when will it happen? Maybe it will happen sooner than you thought? (Read the article)

Listen to this podcast Listen to this podcast

Tags: , , , , , , , Trackback URI

Video Component for Flash

Do you think the MediaDisplay component in flash is to complicated to use…or maybe it’s just plain bad? Here’s an alternative :) I’ve created a small component which uses the NetStream class. The component takes an array of video urls/files. You can set lots of parameters like width, height, aspect preservation etc, background color and alpha, titles, randomized order, bordersize and color etc. You can also bind the component to other components.

You’ll find my component here: VideoViewer Component

Hopefully some of you likes it! Any feedback would be highly appreciated. I would be very greatful if you post any changes you’ve made to the code here or email it to me at nils@djupvik.org.

Have a nice day!

Listen to this podcast Listen to this podcast

Tags: , , , Trackback URI

Java RMI - a frustrating business!

I’ve been working on a development project the last week. Everything was proceeding as planned until we found out that we needed to use Java RMI. After 2 days of biting my tongue and eating candles I finally got a simple “Hello World” example working. It’s nice to have connections from uni ;) Thanks to Arild Sandven for helping us on the right track. For everybody struggeling with implementing RMI try running the registry from within the JVM. Here’s the code:

public interface MyRemoteObjectInterface extends Remote {
void someMethod() throws RemoteException;
}

//Serverside
Registry reg = LocateRegistry.createRegistry(1099);
MyRemoteObject remote = new MyRemoteObject();
reg.rebind(”RemoteObject”, remote);

// The MyRemoteObject class must extend UnicastRemoteObject and implement MyRemoteObjectInterface (which extends Remote)

//Clientside
String host = “localhost”;
int rmiPort = 1099;
lookUpName= “rmi://” + _host + “:” + rmiPort + “/RemoteObject”;
MyRemoteObjectInterface = (MyRemoteObjectInterface) Naming.lookup(lookUpName);

Hope this helps someone!

Back to the code ! :)

Listen to this podcast Listen to this podcast

Tags: , , Trackback URI

Complete it, then perfect it

The best is the enemy of the good. Working toward perfection might prevent completion. Complete it first, and then perfect it. The part that needs to be perfect is usually small.

– Steve McConnell, Two time winner of the Software development magazine Jolt award.

Listen to this podcast Listen to this podcast

Tags: , Trackback URI