Please go to my new place since 2008 - Wohill
August 10, 2012
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
Posted by Niklas Waller at 2:28 PM 4 comments
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:
Lotus Notes, Domino, Java, MessageBox, msgbox, InputBox
Posted by Niklas Waller at 10:48 AM 6 comments
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:
PHP, MySQL, OO, Web, development
Posted by Niklas Waller at 8:31 AM 3 comments
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:
- Wikipedia information
- JavaScript tutorial from W3Schools
- JavaScript and AJAX tutorials
- JavaScript tutorial from Webucator
- AJAX tutorial from Webucator
- Dojo quick start guide
- JavaScript reference from W3Schools
- The JavaScript Source
- Core JavaScript Reference
- DevGuru JavaScript Index
- JavaScript Kit
- JavaScript - Mozilla Developer Center
- Microsoft JScript Reference
- Prototype
- Dojo
- Ext JS
- Ext.nd - Ext for Notes and Domino
- Script.aculo.us
- Rico
- MooTools
- jQuery
- YUI
- DOMAssistant
- MochiKit
- DED|Chain
- ARCHETYPE
- qooxdoo
- Rialto
- json.org
- JSON on Wikipedia
- AJAX tutorial from W3Schools
- The AJAX framework
- Ajaxian
- Viktor Krantz on Dojo and JSON
- The Book of Dojo
Technorati tags:
JavaScript, AJAX, JSON, framework, toolkit, references, resources
Posted by Niklas Waller at 7:34 AM 4 comments
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:
Favicon, Animated favicon, HTML
Posted by Niklas Waller at 2:22 PM 5 comments
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:
Lotus Notes, Domino, Notes.ini, Window title
Posted by Niklas Waller at 9:11 AM 7 comments