I use both of these on a regular basis. I've printed them out on paper, so they're always withing arms reach.
Domino URL cheat sheet
Domino supported syntax for Full Text searching
For web development, ILoveJackDaniels.com has a few nice ones (the site seems to be down at the moment).
Friday, May 30, 2008
Monday, May 26, 2008
Upcoming experiment - Beautiful URLs with Domino

Just a little preview.. It's a simple "hack". No admins involved :)
More info about well designed URLs
Wednesday, May 14, 2008
StrToken/@Word in JavaScript
function strToken( string, separator, position ){
//If the string doesn't contain the separator, return
//empty string
if( string.indexOf( separator ) == -1 ){ return ''; }
var arr = string.split( separator );
//If the position is larger than the number of elements,
//return empty string
if( position > arr.length ){ return ''; }
//Return found item
return arr[ position - 1 ];
}
Tested in IE6/FF2
Labels:
JavaScript
Thursday, May 8, 2008
@Unique in Javascript
Update, 16.06.09: As Ronaldo points out, this doesn't work in IE6, as it doesn't have the Array.indexOf-method (I probably tested the function in a Prototype JS-enviroment). To make the function work for browsers that doesn't have the aforementioned method:
Tested in IE6/FF2
if(!Array.indexOf){
Array.prototype.indexOf = function(obj){
for( var i = 0, len = this.length; i < len; i++){
if(this[i]==obj){
return i;
}
}
return -1;
}
}
function arrayUnique( array ){
var uniqueArray = [];
var item;
for( var i = 0, len=array.length ; i < len ; i++ ){
item = array[i];
if( uniqueArray.indexOf( item ) == -1 ){
uniqueArray.push( item );
}
}
return uniqueArray;
}
Tested in IE6/FF2
Labels:
JavaScript,
web
Friday, April 25, 2008
Setting charset in pages/forms with content-type: text/javascript
The Character set-setting for a page/form doesn't seem to do anything more than to set the character encoding for the text if content-type is text/javascript.
With character set set to Unicode (UTF-8), and content-type to text/javascript, Norwegian letters look like this:

If I set content-type to: text/javascript; charset=utf-8


Much better.. :)
With character set set to Unicode (UTF-8), and content-type to text/javascript, Norwegian letters look like this:

If I set content-type to: text/javascript; charset=utf-8


Much better.. :)
Labels:
domino,
random tip,
web
Monday, April 7, 2008
How I got started with Lotus Notes
Quite a coincidence actually. After I graduated as a Bachelor of Information Technology in 2004, it was quite hard to get a programming-job in my part of Norway.
I applied for every interesting/uninteresting job I found (including project manager/etc :D), and got some interviews, but never got called back.
While still applying for programmer positions, I had a small job, setting up ADSL in private homes. The hourly pay was ok, but I only got one or two jobs per month.
Got tired of that, and started working at NorDan in Egersund, January 2005, putting together balcony doors/etc. While the job itself sucked, it was an overall fun time I had there, because of great colleagues (I'm more blue-collar than white-collar).
I had an interview with Compendia, my current employer. During the interview I got asked about Lotus Notes, which I'd never heard about. A month later, I got a call from my current boss.. I think my first words was something along the lines of "Ehhrmm... Who?". Having had several interviews that seemed to go ok before/not getting called back, I'd almost forgotten that I'd applied for a job. July 2005, I first put my hands on Lotus Notes (6.5).
If I hadn't gotten the job, I'd probably have gone back to school again..
I applied for every interesting/uninteresting job I found (including project manager/etc :D), and got some interviews, but never got called back.
While still applying for programmer positions, I had a small job, setting up ADSL in private homes. The hourly pay was ok, but I only got one or two jobs per month.
Got tired of that, and started working at NorDan in Egersund, January 2005, putting together balcony doors/etc. While the job itself sucked, it was an overall fun time I had there, because of great colleagues (I'm more blue-collar than white-collar).
I had an interview with Compendia, my current employer. During the interview I got asked about Lotus Notes, which I'd never heard about. A month later, I got a call from my current boss.. I think my first words was something along the lines of "Ehhrmm... Who?". Having had several interviews that seemed to go ok before/not getting called back, I'd almost forgotten that I'd applied for a job. July 2005, I first put my hands on Lotus Notes (6.5).
If I hadn't gotten the job, I'd probably have gone back to school again..
Labels:
random nonsense