August 10, 2012

This blog is down since 2008

Please go to my new place since 2008 - Wohill


September 04, 2008

Still here...

It has been rather quiet here for a while now. I haven't put this blog to sleep for ever but I let it rest for a while. All my attention has been going to the new project Wohill other sub projects 


Wohill is another blog that I share with another author. I'll definately take care of this baby now and then anyway.

I have been saying for quite some time now that I am going to put a Java Web Service Consumer notes database here and I also intend to do so. I am only going to modify a few minor things. So for those of you interested in that(and patient enough) it will be here (and on Wohill I guess) with code for both a Lotusscript and a Java Web service consumer.

Take care!


April 03, 2008

MessageBox and InputBox easily in a Notes Java agent

When you start to code Java as a notes developer you will very quickly start missing the msgbox and dialog boxes for simple interaction with the users. I did and started to develop my own MessageBox class which certainly could be better. Well, if you go through the Java API and look at the swing classes there are message boxes ready to use - Just what I was looking for.

Use this row to display information to the user:
JOptionPane.showMessageDialog(null, "Test");

Use this row to get information from the user:
String s = JOptionPane.showInputDialog("Get me some input dude!");

Example:
Add this code into a new Notes Java agent and run it from the Notes client:
import lotus.domino.*;
import javax.swing.JOptionPane;

public class JavaAgent extends AgentBase {

public void NotesMain() {

try {
Session session = getSession();
AgentContext agentContext = session.getAgentContext();

/* Display message to user - like Notes MsgBox or MessageBox */
JOptionPane.showMessageDialog(null, "Test");

/* Display message to user and get user input - like Notes InputBox */
String s = JOptionPane.showInputDialog("Get me some input dude!");

/* Display the input */
JOptionPane.showMessageDialog(null, s);

} catch(Exception e) {
e.printStackTrace();
}
}
}




Technorati tags:
, , , , ,


March 15, 2008

PHP's next major release

I have been working some with PHP but mostly as a script language for building blogs, admin interfaces or standard websites with lookups to mysql db's and similar, not too advanced that is. But the reason I keep doing it is that it has so much capability and there is so much information and examples all over the Internet.

PHP has come a long way and already is an object-oriented language. With the new upcoming release (5.3) more interesting things will come (originally intended for release 6) that makes it more competitive and assuring that it will continue being one of the best. Some of the new things you can expect are native MySQL support, variable static calls (like in Java), enhanced error reporting and namespaces (really cool). Read this article for all this information.

An if you want to get started your self, use the following two sites which is close to anything you need, except Google of course ;-)

- W3Schools tutorial
- php.net

Technorati tags:
, , , ,


March 14, 2008

JavaScript references

In my series of reference pages (see blog's sidebar) there is clearly one about JavaScript and its surroundings missing. So here it goes. As the others it will be constantly updated and will be here for my own use and hopefully helpful to others as well. Feel free to post a comment for any suggestions to changes or additions on the following bullet lists.

Tutorials/explanation:

References/APIs:
JavaScript frameworks/toolkits/libraries:
JSON/AJAX/blogs/etc:
JavaScript editor:


Technorati tags:
, , , , , ,


January 30, 2008

Get your own animated favicon

A favicon for your site makes a better overall impression. My blog's favicon is the icon with the white B on an orange background in the address bar, which stands for Blogger (the platform).

It's actually possible to use animated favicons as well.
Either you can make the icon roll from up to down or you can have a marquee horizontel scroll text. It took some time before it started work in IE though and I have had some troubles with version 6 as well, but it should work for version 7 anyway and of course for mozilla.

Great feature!
This site will show you how to do it and provide you with animated icons as well.

www.wohill.com is an example site that uses an animated favicon. Reload the page if you don't see it first, it runs again on each refresh.

I will be on vacation for the next three weeks by the way, so no more posts til then. See you soon!

Technorati tags:
, ,


January 22, 2008

The Notes.ini ego parameter

Add this line to your private notes.ini file:

Window_Title=Lotus Notes 7.0.2 mastered by Niklas Waller

and restart Lotus Notes. And don't remember to change the text, even if its ok for me to use it ;-)

Each new window in Notes will have the following title








Technorati tags:
, , ,