<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>R&#38;D Notes</title>
	<atom:link href="http://rndnotes.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://rndnotes.wordpress.com</link>
	<description>Domino and Notes developer describes what he finds interessting. Web 2.0, antispam, encryption and cooking.</description>
	<lastBuildDate>Wed, 20 May 2009 09:47:48 +0000</lastBuildDate>
	<generator>http://wordpress.com/</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<cloud domain='rndnotes.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://www.gravatar.com/blavatar/1045ca7b7a75fa2b4f7ae6cd63e10329?s=96&#038;d=http://s.wordpress.com/i/buttonw-com.png</url>
		<title>R&#38;D Notes</title>
		<link>http://rndnotes.wordpress.com</link>
	</image>
			<item>
		<title>@URLEncode and the JavaScript equivalent!</title>
		<link>http://rndnotes.wordpress.com/2009/05/19/urlencode-and-the-javascript-equivalent/</link>
		<comments>http://rndnotes.wordpress.com/2009/05/19/urlencode-and-the-javascript-equivalent/#comments</comments>
		<pubDate>Tue, 19 May 2009 14:53:17 +0000</pubDate>
		<dc:creator>Tomas Ekström</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[Web Development]]></category>
		<category><![CDATA[Encoding]]></category>
		<category><![CDATA[Formula]]></category>

		<guid isPermaLink="false">http://rndnotes.wordpress.com/?p=86</guid>
		<description><![CDATA[JavaScript has many different encoding function with different approaches. Some of them does not encode all special characters.
escape() - does not encode: *@-_+./
encodeURI() - Does not encode: ,/?:@&#38;=+$#
But encodeURIComponent() encodes all special characters! Link to W3SChool
@URLEncode(&#8220;ISO-8859-1;&#8221;,/?:@&#38;=+$#&#8221;) will encode to the following string: &#8220;%2C%2F%3F%3A%40%26%3D%2B%24%23%22&#8243;
Which means that @URLEncode is similar to encodeURIComponent()!
But be warned @URLEncode/@URLDecode in standard [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=rndnotes.wordpress.com&blog=1714933&post=86&subd=rndnotes&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>JavaScript has many different encoding function with different approaches. Some of them does not encode all special characters.<br />
<em>escape() </em>- does not encode: *@-_+./<br />
<em>encodeURI() </em>- Does not encode:<span class="sansserif"> ,/?:@&amp;=+$#</span></p>
<p>But <em>encodeURIComponent() </em>encodes all special characters! <a href="http://www.w3schools.com/jsref/jsref_obj_global.asp" target="_self">Link to W3SChool</a></p>
<p><em>@URLEncode</em>(&#8220;ISO-8859-1;&#8221;,/?:@&amp;=+$#&#8221;<em>) </em>will encode to the following string: &#8220;%2C%2F%3F%3A%40%26%3D%2B%24%23%22&#8243;<br />
Which means that <em>@URLEncode </em>is similar to <em>encodeURIComponent()</em>!</p>
<p>But be warned @URLEncode/@URLDecode in standard uses &#8220;Domino&#8221; as decode type. &#8220;Domino&#8221; uses UTF-8 char set which will not work together with standard encoding on a  web page togehter with the JavaScript encode and decode functions . To work well with international characters use &#8220;ISO-8859-1&#8243;.</p>
<p>When it comes to encoding keep in mind that the <em>decodeURI()</em> function will skip decoding escaped characters which <em>encodeURI() </em>will not encode (at least in Firefox). <em>@URLDecode </em>and the JavaScript functions <em>unescape() </em>and <em>decodeURIComponent() </em>will decode all % escaped characters.</p>
<p>So decoding the string above will give the following result:</p>
<p><em>unescape() </em>=&gt; ,/?:@&amp;=+$#&#8221;<br />
<em>decodeURI() </em>=&gt; %2C%2F%3F%3A%40%26%3D%2B%24%23&#8243;<br />
<em>decodeURIComponent() </em>=&gt; ,/?:@&amp;=+$#&#8221;</p>
<p>Conclusion:<br />
<em>@URLDecode </em>will decode anything encoded with any of the JavaScript alternatives correctly.<br />
<em>@URLEncode </em>will only be correctly encoded by the JavaScript functions <em>unescape()</em> and <em>decodeURIComponent()</em>.</p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/rndnotes.wordpress.com/86/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/rndnotes.wordpress.com/86/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/rndnotes.wordpress.com/86/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/rndnotes.wordpress.com/86/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/rndnotes.wordpress.com/86/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/rndnotes.wordpress.com/86/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/rndnotes.wordpress.com/86/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/rndnotes.wordpress.com/86/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/rndnotes.wordpress.com/86/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/rndnotes.wordpress.com/86/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=rndnotes.wordpress.com&blog=1714933&post=86&subd=rndnotes&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://rndnotes.wordpress.com/2009/05/19/urlencode-and-the-javascript-equivalent/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/46e9c5c4a1a309e30d59464b809b7ee6?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">rndnotes</media:title>
		</media:content>
	</item>
		<item>
		<title>Am I a Domino Developer &#8230;</title>
		<link>http://rndnotes.wordpress.com/2009/04/23/im-i-a-domino-developer/</link>
		<comments>http://rndnotes.wordpress.com/2009/04/23/im-i-a-domino-developer/#comments</comments>
		<pubDate>Thu, 23 Apr 2009 14:44:03 +0000</pubDate>
		<dc:creator>Tomas Ekström</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[configure]]></category>
		<category><![CDATA[Domino]]></category>
		<category><![CDATA[Joke]]></category>

		<guid isPermaLink="false">http://rndnotes.wordpress.com/?p=81</guid>
		<description><![CDATA[&#8230; or do you configure applications on the Domino server.
Sometimes when comparing Domino with more &#8220;glorious&#8221; products, for example SAP or Sharepoint. I have the feeling that most customer think you only have to configure them to work as you want.  Maybe I&#8217;m just configuring Domino to, or can it be that they are actually [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=rndnotes.wordpress.com&blog=1714933&post=81&subd=rndnotes&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>&#8230; or do you configure applications on the Domino server.</p>
<p>Sometimes when comparing Domino with more &#8220;glorious&#8221; products, for example SAP or Sharepoint. I have the feeling that most customer think you only have to configure them to work as you want.  Maybe I&#8217;m just configuring Domino to, or can it be that they are actually developing?</p>
<p>I like the word configure since it is a very good marketing trick! When comparing develop and configure most people would say configuring is much faster and cost less. It also give the impression it is a standard application you are using!</p>
<p>But comparing how long it takes to &#8220;configure&#8221; an application/functionality on those systems, I wounder if I&#8217;m really a developer?</p>
<p>So to annoy customers and my colleges, I have started to say I can <span style="text-decoration:underline;">configure</span> such an application!</p>
<p>To get Domino to be more glorious. I believe IBM should do a search for the word develop and replace it with configure.</p>
<blockquote><p><em>There is a flaw in my logic! It takes much longer to completely rebuild SAP for Domino then it takes to &#8220;configure&#8221; SAP to do what you want!</em></p></blockquote>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/rndnotes.wordpress.com/81/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/rndnotes.wordpress.com/81/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/rndnotes.wordpress.com/81/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/rndnotes.wordpress.com/81/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/rndnotes.wordpress.com/81/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/rndnotes.wordpress.com/81/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/rndnotes.wordpress.com/81/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/rndnotes.wordpress.com/81/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/rndnotes.wordpress.com/81/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/rndnotes.wordpress.com/81/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=rndnotes.wordpress.com&blog=1714933&post=81&subd=rndnotes&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://rndnotes.wordpress.com/2009/04/23/im-i-a-domino-developer/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/46e9c5c4a1a309e30d59464b809b7ee6?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">rndnotes</media:title>
		</media:content>
	</item>
		<item>
		<title>Linking Notes and Domino directories and application</title>
		<link>http://rndnotes.wordpress.com/2009/01/02/linking-notes-and-domino-directories-and-application/</link>
		<comments>http://rndnotes.wordpress.com/2009/01/02/linking-notes-and-domino-directories-and-application/#comments</comments>
		<pubDate>Fri, 02 Jan 2009 10:16:20 +0000</pubDate>
		<dc:creator>Tomas Ekström</dc:creator>
				<category><![CDATA[Domino]]></category>
		<category><![CDATA[Show-n-Tell Thursday]]></category>
		<category><![CDATA[SnTT]]></category>
		<category><![CDATA[application]]></category>
		<category><![CDATA[client]]></category>
		<category><![CDATA[database]]></category>
		<category><![CDATA[folder]]></category>
		<category><![CDATA[Link]]></category>
		<category><![CDATA[notes]]></category>

		<guid isPermaLink="false">http://rndnotes.wordpress.com/?p=13</guid>
		<description><![CDATA[A very powerful feature in linux is linking files and directories. Used in the right way it can save you a lot of space and keep thing often used or changed in one directory structure to be easily find.
All Administrators knows the feature in the Admin client where you can create links to directories and [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=rndnotes.wordpress.com&blog=1714933&post=13&subd=rndnotes&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>A very powerful feature in linux is linking files and directories. Used in the right way it can save you a lot of space and keep thing often used or changed in one directory structure to be easily find.</p>
<p>All Administrators knows the feature in the Admin client where you can create links to directories and nsf files. For some developers it may be new! For some admins and developers it may also be new that it works really well within the notes client on the local machine.</p>
<p>You can easily create links to directories and nsf files which is then resolved by the notes client.</p>
<p>Personally I try to keep a folder structure on my PC where important stuff is located under one directory.<br />
Doing a back of the machine is then much easier and the number of folders to consider in a backup set is greatly reduced.</p>
<p>So how does it work!</p>
<ol>
<li>Create a text file in the domino/notes data directory and name it eg.  BackupedData.txt.</li>
<li>Open the text file in your preferred text editor and type in the path to the source directory eg. C:\Documents and Settings\Tomas\My Documents\DominoData.</li>
<li>change the file type from .txt to .dir. (&#8220;BackupedData.dir&#8221;)</li>
</ol>
<p>The linked folder will be shown as &#8220;BackupedData&#8221; when browsing for files in the Notes client.</p>
<p>This can also be done on single NSF files. Instead of naming it .dir change it to .nsf and the content in the file should contain the full path to the target nsf file.</p>
<p>Step by step guide linking nsf file:</p>
<ol>
<li>Create a text file in the domino/notes data directory and name it eg.  myApplication.txt.</li>
<li>Open the text file in your prefered text editor and type in the path to the application eg. C:\Documents and Settings\Tomas\My Documents\DominoData\myApplication.nsf.</li>
<li>change the file type from .txt to .nsf</li>
</ol>
<p>The link files can be  put anywhere in the data directory structure!</p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/rndnotes.wordpress.com/13/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/rndnotes.wordpress.com/13/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/rndnotes.wordpress.com/13/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/rndnotes.wordpress.com/13/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/rndnotes.wordpress.com/13/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/rndnotes.wordpress.com/13/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/rndnotes.wordpress.com/13/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/rndnotes.wordpress.com/13/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/rndnotes.wordpress.com/13/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/rndnotes.wordpress.com/13/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=rndnotes.wordpress.com&blog=1714933&post=13&subd=rndnotes&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://rndnotes.wordpress.com/2009/01/02/linking-notes-and-domino-directories-and-application/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/46e9c5c4a1a309e30d59464b809b7ee6?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">rndnotes</media:title>
		</media:content>
	</item>
		<item>
		<title>NotesNames in LotusScript</title>
		<link>http://rndnotes.wordpress.com/2008/12/27/notesnames-in-lotusscript/</link>
		<comments>http://rndnotes.wordpress.com/2008/12/27/notesnames-in-lotusscript/#comments</comments>
		<pubDate>Sat, 27 Dec 2008 16:15:48 +0000</pubDate>
		<dc:creator>Tomas Ekström</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[Domino]]></category>
		<category><![CDATA[LotusScript]]></category>
		<category><![CDATA[Authors]]></category>
		<category><![CDATA[How to]]></category>
		<category><![CDATA[Names]]></category>
		<category><![CDATA[NotesItem]]></category>
		<category><![CDATA[NotesNames]]></category>
		<category><![CDATA[Readers]]></category>

		<guid isPermaLink="false">http://rndnotes.wordpress.com/?p=26</guid>
		<description><![CDATA[Just wanted to show how easy creating names, authors, and readers fields can be in LotusScript?
As always there are different ways to accomplish that. Here&#8217;s two of them.
1) Use New NotesItem:
Set item = new NotesItem(&#8220;SendTo&#8221;, sendToArray,NAMES) &#8216; For other type use the SpecialType parameter with AUTHORS or READERS instead of NAMES depending on what you [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=rndnotes.wordpress.com&blog=1714933&post=26&subd=rndnotes&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>Just wanted to show how easy creating names, authors, and readers fields can be in LotusScript?</p>
<p>As always there are different ways to accomplish that. Here&#8217;s two of them.</p>
<p><span style="text-decoration:underline;">1) Use New NotesItem:</span><br />
<em>Set item = new NotesItem(&#8220;SendTo&#8221;, sendToArray,NAMES</em>) &#8216; For other type use the SpecialType parameter with AUTHORS or READERS instead of NAMES depending on what you want to create.</p>
<p>This is useful if you want to do something more with the field/item.<br />
Eg. Change some properties.</p>
<p><span style="text-decoration:underline;">2) Using ReplaceItemValue</span><br />
<em>set item = doc.replaceItemValue(&#8220;SendTo&#8221;,sendToArray)</em></p>
<p>This will only create a text field item. We need to change it to an Names item.<br />
<em>item.isNames = true</em></p>
<p>This can be shortened since ReplaceItemValue returns a notes item:<br />
<em>doc.replaceItemValue(&#8220;SendTo&#8221;,sendToArray) .isNames = True</em></p>
<p>If you want it to be readers field or authors field do this.</p>
<p><em>doc.replaceItemValue(&#8220;SendTo&#8221;,sendToArray) .isReaders = True</em></p>
<p><em>doc.replaceItemValue(&#8220;SendTo&#8221;,sendToArray) .isAuthors = True</em></p>
<p>Personally I tend to use the shortened version since I find it easier to read. That is if I do not need the NotesItem further down in the code.</p>
<p>It saves me a dummy variable which may not be using further down in the code.<br />
I do not like to set variables which are never used.</p>
<p>It&#8217;s like in a movie where you get to see a shotgun in the beginning of the film. You then sort of expect it to be used before the end.</p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/rndnotes.wordpress.com/26/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/rndnotes.wordpress.com/26/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/rndnotes.wordpress.com/26/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/rndnotes.wordpress.com/26/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/rndnotes.wordpress.com/26/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/rndnotes.wordpress.com/26/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/rndnotes.wordpress.com/26/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/rndnotes.wordpress.com/26/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/rndnotes.wordpress.com/26/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/rndnotes.wordpress.com/26/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=rndnotes.wordpress.com&blog=1714933&post=26&subd=rndnotes&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://rndnotes.wordpress.com/2008/12/27/notesnames-in-lotusscript/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/46e9c5c4a1a309e30d59464b809b7ee6?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">rndnotes</media:title>
		</media:content>
	</item>
		<item>
		<title>MacBook with wrong HDD size</title>
		<link>http://rndnotes.wordpress.com/2008/10/28/macbook-with-wrong-hdd-size/</link>
		<comments>http://rndnotes.wordpress.com/2008/10/28/macbook-with-wrong-hdd-size/#comments</comments>
		<pubDate>Tue, 28 Oct 2008 15:35:41 +0000</pubDate>
		<dc:creator>Tomas Ekström</dc:creator>
				<category><![CDATA[Apple]]></category>
		<category><![CDATA[General]]></category>
		<category><![CDATA[Personal]]></category>
		<category><![CDATA[harddrive]]></category>
		<category><![CDATA[hdd]]></category>
		<category><![CDATA[MacBook]]></category>

		<guid isPermaLink="false">http://rndnotes.wordpress.com/?p=60</guid>
		<description><![CDATA[Last week I went to the local Apple dealer to purchase a new Notebook for my stepfather. Since he recently retired he had to give back the company notebook.
To give him a new challenge my step sister and I decided he should try Mac.
Since he does a lot of presentation as wine connoisseur, good presentation [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=rndnotes.wordpress.com&blog=1714933&post=60&subd=rndnotes&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p><!--[if gte mso 9]&gt;  Normal 0   false false false        MicrosoftInternetExplorer4  &lt;![endif]--><!--[if gte mso 9]&gt;   &lt;![endif]--><!--[if !mso]&gt;-->Last week I went to the local Apple dealer to purchase a new Notebook for my stepfather. Since he recently retired he had to give back the company notebook.</p>
<p>To give him a new challenge my step sister and I decided he should try Mac.<br />
Since he does a lot of presentation as wine connoisseur, good presentation software was one criteria and Keynote is the best I&#8217;ve seen. So I found it to be the perfect match.</p>
<p>We decided that the 2.4GhZ, 2Gb Ram, 250Gb HDD version of MacBook would be the best! Back lit keyboard is really good when presenting (Especially in dimmed rooms). And size optimal for transportation. So that was a perfect match to! Still the price is a bit high. So that is not a perfect match.</p>
<p>Back @ home we did some unboxing and I started to configure and install the necessary software. I was rally surprised as I wanted to resize the hard drive (needed a partition for Windows XP) and found it only to be 160GB. First I thought it may be an extra 90GB partition some where, but I could not find it.<br />
Opening the battery lid, the HDD size of 160GB could easily be confirmed!</p>
<p>Today we brought it back to the Apple reseller and they confirmed it. They also did do some checking and Apple in Ireland apparently had never heard of some thing like this.</p>
<p>So my recommendation, to anyone with a new 2008 generation MacBook with 2.4GHz cpu, is to check that you did get a 250GB HDD (if you didn&#8217;t order a larger one). If you have something smaller then that, it is not what you have paid for! Minimum configuration is 250GB HDD.</p>
<p>I have personally decided to buy one, but since renovating two baths in our house, did get a little more expensive then calculated. A MacBook Pro more expensive to be precise! I have to wait until I can afford one form my self. But I will for sure check the size of my HDD</p>
<p>So now they have ordered a new hard drive! At least it easy to switch, since I have a Time Machine backup of the smaller drive.</p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/rndnotes.wordpress.com/60/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/rndnotes.wordpress.com/60/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/rndnotes.wordpress.com/60/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/rndnotes.wordpress.com/60/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/rndnotes.wordpress.com/60/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/rndnotes.wordpress.com/60/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/rndnotes.wordpress.com/60/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/rndnotes.wordpress.com/60/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/rndnotes.wordpress.com/60/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/rndnotes.wordpress.com/60/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=rndnotes.wordpress.com&blog=1714933&post=60&subd=rndnotes&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://rndnotes.wordpress.com/2008/10/28/macbook-with-wrong-hdd-size/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/46e9c5c4a1a309e30d59464b809b7ee6?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">rndnotes</media:title>
		</media:content>
	</item>
		<item>
		<title>NotesAgent.ServerName with consequences</title>
		<link>http://rndnotes.wordpress.com/2008/09/11/notesagentservername-with-consequences/</link>
		<comments>http://rndnotes.wordpress.com/2008/09/11/notesagentservername-with-consequences/#comments</comments>
		<pubDate>Thu, 11 Sep 2008 07:40:11 +0000</pubDate>
		<dc:creator>Tomas Ekström</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[Domino]]></category>
		<category><![CDATA[Agent]]></category>
		<category><![CDATA[NotesSession]]></category>
		<category><![CDATA[Server]]></category>
		<category><![CDATA[Server Name]]></category>
		<category><![CDATA[ServerName]]></category>
		<category><![CDATA[session]]></category>

		<guid isPermaLink="false">http://rndnotes.wordpress.com/?p=54</guid>
		<description><![CDATA[
NotesAgent.ServerName may not give you the server you expect!
In the properties for scheduling the agent, you can set on which server the agent shall run.
But from time to time you may want to trigger it manually.
If so, be careful when you use NotesAgent.ServerName, since it will give you the server name set in the agent [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=rndnotes.wordpress.com&blog=1714933&post=54&subd=rndnotes&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p class="MsoNormal">
<p class="MsoNormal">NotesAgent.ServerName may not give you the server you expect!</p>
<p class="MsoNormal">In the properties for scheduling the agent, you can set on which server the agent shall run.</p>
<p class="MsoNormal">But from time to time you may want to trigger it manually.</p>
<p class="MsoNormal">If so, be careful when you use NotesAgent.ServerName, since it will give you the server name set in the agent property described above and not the server on which it was manually triggered.</p>
<p class="MsoNormal">To get the current server be sure to use NotesSession.CurrentDatabase.Server instead.</p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/rndnotes.wordpress.com/54/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/rndnotes.wordpress.com/54/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/rndnotes.wordpress.com/54/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/rndnotes.wordpress.com/54/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/rndnotes.wordpress.com/54/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/rndnotes.wordpress.com/54/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/rndnotes.wordpress.com/54/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/rndnotes.wordpress.com/54/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/rndnotes.wordpress.com/54/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/rndnotes.wordpress.com/54/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/rndnotes.wordpress.com/54/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/rndnotes.wordpress.com/54/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=rndnotes.wordpress.com&blog=1714933&post=54&subd=rndnotes&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://rndnotes.wordpress.com/2008/09/11/notesagentservername-with-consequences/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/46e9c5c4a1a309e30d59464b809b7ee6?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">rndnotes</media:title>
		</media:content>
	</item>
		<item>
		<title>JavaScript in Domino &#8211; Unobtrusive JavaScript and mandatory fields</title>
		<link>http://rndnotes.wordpress.com/2008/08/06/javascript-in-domino-unobtrusive-javascript-and-mandatory-fields/</link>
		<comments>http://rndnotes.wordpress.com/2008/08/06/javascript-in-domino-unobtrusive-javascript-and-mandatory-fields/#comments</comments>
		<pubDate>Wed, 06 Aug 2008 14:20:00 +0000</pubDate>
		<dc:creator>Tomas Ekström</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[Domino]]></category>
		<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[Web Development]]></category>
		<category><![CDATA[event]]></category>
		<category><![CDATA[Unobtrusive]]></category>

		<guid isPermaLink="false">http://rndnotes.wordpress.com/?p=36</guid>
		<description><![CDATA[Finally I found a name for it. Chris Blatnick named it on his blog Interface Matters.
The technique was presented to me by Patrick Kwinten a while back. He as also blogged about it here.
Since then I find the technique really appealing since it in my opinion makes the coding in domino a lot cleaner. You [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=rndnotes.wordpress.com&blog=1714933&post=36&subd=rndnotes&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>Finally I found a name for it. Chris Blatnick named it on his blog <a title="Unobtrusive JavaScript" href="http://interfacematters.com/2008/04/unobtrusive-javascriptyou-should.html" target="_self">Interface Matters</a>.</p>
<p>The technique was presented to me by Patrick Kwinten a while back. He as also blogged about it <a href="http://quintessens.wordpress.com/2007/10/23/update-warning-before/">here</a>.</p>
<p>Since then I find the technique really appealing since it in my opinion makes the coding in domino a lot cleaner. You can create a javascript library and put all the event management in there instead of having it in forms and subforms. Personally it goes along very well with my belief in separating style and content.</p>
<p>Here&#8217;s an example how to dynamically change the behavior on mandatory fields. In this case it uses css to show a red border around the field which is mandatory and is missing a value. I have not included the css here. But it is basic knowledge so it should not be hard to create one your self.</p>
<p><strong>This example requires </strong><strong>prototype.js</strong></p>
<p>First a function is used to get a Hash of mandatory fields. In this case the mandatory fields are different depending of a previous selection in a field. The selections are &#8220;IBAN&#8221;, &#8220;US-ABA&#8221;, &#8220;SE-BG&#8221;&#8230;<br />
There is a function for this so that the source of the information easily can be changed. Later its easy to implement a configuration document and fetch the information via ajax.</p>
<p><span style="color:#0000ff;"><code>function getMandatoryFields(){</code></span></p>
<p style="padding-left:30px;"><span style="color:#0000ff;"><code>var mandatoryFields = {</code></span></p>
<p style="padding-left:60px;"><span style="color:#0000ff;"><code>"":{"mandatory":["Tx_BankName","Tx_BankID","Tx_AccountNumber</code><br />
<code>"IBAN":{"mandatory":["Tx_BankName","Tx_BankID","Tx_AccountNumber"]},</code><br />
<code>"US-ABA":{"mandatory":["Tx_BankName",<br />
"Tx_BankID", "Tx_AccountNumber"]},</code><br />
<code>"SE-BG":{"mandatory":["Tx_AccountNumber"]},</code><br />
<code>"SE-PG":{"mandatory":["Tx_AccountNumber"]},</code><br />
<code>"SE-Clearing":{"mandatory":["Tx_BankName",<br />
"Tx_BankID","Tx_AccountNumber"]},</code><br />
<code>"DE-BLZ":{"mandatory":["Tx_BankName", "Tx_BankID","Tx_AccountNumber"]},</code><br />
<code>"CANADA":{"mandatory":["Tx_BankName",<br />
"Tx_BankID", "Tx_AccountNumber"]}};</code></span></p>
<p style="padding-left:30px;"><span style="color:#0000ff;"><code>return mandatoryFields;</code></span></p>
<p><span style="color:#0000ff;"><code>}</code></span></p>
<p>Here&#8217;s the code:<br />
<span style="color:#0000ff;"><code>Function refreshMandatoryBankInfo(accountType, mandatoryFields){</code></span></p>
<p style="padding-left:30px;">//Get the list of fields to the specific account type<br />
<span style="color:#0000ff;"><code>mandatoryList = mandatoryFields[accountType].mandatory;</code></span></p>
<p style="padding-left:30px;">//This is not very modular for now.<br />
<span style="color:#0000ff;"><code>var allFields = ["Tx_Recipient","Tx_BankName","Tx_BankID","Tx_AccountNumber"];</code></span></p>
<p style="padding-left:30px;">//Now we reset all fields. Removing onFocus and onBlur events and styles for mandatory fields<br />
<span style="color:#0000ff;"><code>for (var i = 0; i &lt; allFields.length; i++){</code></span></p>
<p style="padding-left:60px;"><span style="color:#0000ff;"><code>$(allFields[i]).setAttribute('onFocus','');</code><br />
<code>$(allFields[i]).setAttribute('onBlur','');</code><br />
<code>$(allFields[i]).removeClassName('mandatoryField');</code><br />
<code>$(allFields[i]).removeClassName('required');</code></span></p>
<p style="padding-left:30px;"><span style="color:#0000ff;"><code>};</code></span></p>
<p style="padding-left:30px;">//Go through all mandatory fields and assign an onFocus and onBlur event.<br />
<span style="color:#0000ff;"><code>for (var i = 0; i &lt; mandatoryList.length; i++){</code></span></p>
<p style="padding-left:60px;"><span style="color:#0000ff;"><code>Event.observe($(mandatoryList[i]), 'focus', mandatoryOnFocusEvent);</code><br />
<code>Event.observe($(mandatoryList[i]), 'blur', mandatoryOnBlurEvent);</code></span></p>
<p style="padding-left:60px;">//Set initial class for the field.<br />
<span style="color:#0000ff;"><code>if (IsEmpty($(mandatoryList[i]))){</code></span></p>
<p style="padding-left:90px;"><span style="color:#0000ff;"><code>$(mandatoryList[i]).addClassName('mandatoryField');</code><br />
<code>$(mandatoryList[i]).addClassName('required');</code></span></p>
<p style="padding-left:60px;"><span style="color:#0000ff;"><code>}else{</code></span></p>
<p style="padding-left:90px;"><span style="color:#0000ff;"><code>$(mandatoryList[i]).removeClassName('mandatoryField');</code><br />
<code>$(mandatoryList[i]).removeClassName('required');</code></span></p>
<p style="padding-left:60px;"><span style="color:#0000ff;"><code>}</code></span></p>
<p style="padding-left:30px;"><span style="color:#0000ff;"><code>}</code></span></p>
<p><span style="color:#0000ff;"><code>}</code></span></p>
<p style="padding-left:15px;">//Function to check if field is empty<br />
<span style="color:#0000ff;"><code>function IsEmpty(aTextField) {</code></span></p>
<p style="padding-left:30px;"><span style="color:#0000ff;"><code>if ((aTextField.value.length==0) || (aTextField.value==null)){</code></span></p>
<p style="padding-left:60px;"><span style="color:#0000ff;"><code>return true;</code></span></p>
<p style="padding-left:30px;"><span style="color:#0000ff;"><code>}else {</code></span></p>
<p style="padding-left:60px;"><span style="color:#0000ff;"><code>return false;</code></span></p>
<p style="padding-left:30px;"><span style="color:#0000ff;"><code>}</code></span></p>
<p><span style="color:#0000ff;"><code>}</code></span></p>
<p style="padding-left:15px;">//The onFocus function<br />
<span style="color:#0000ff;"><code>function mandatoryOnFocusEvent(e){</code></span></p>
<p style="padding-left:30px;">//Find source element (field which event was triggered) read more about the technique <a href="http://www.quirksmode.org/js/events_properties.html">here</a>. The difference is due to different handling in ie and mozilla.<br />
<span style="color:#0000ff;"><code>if (typeof e == undefined) {</code></span></p>
<p style="padding-left:60px;"><span style="color:#0000ff;"><code> var e = window.event;</code></span></p>
<p style="padding-left:30px;"><span style="color:#0000ff;"><code> }</code><br />
<code> var source;</code><br />
<code> if (typeof e.target != undefined) {</code></span></p>
<p style="padding-left:60px;"><span style="color:#0000ff;"><code> source = e.target;</code></span></p>
<p style="padding-left:30px;"><span style="color:#0000ff;"><code> } else if (typeof e.srcElement != undefined) {</code></span></p>
<p style="padding-left:60px;"><span style="color:#0000ff;"><code> source = e.srcElement;</code></span></p>
<p style="padding-left:30px;"><span style="color:#0000ff;"><code> } else {</code></span></p>
<p style="padding-left:60px;">//Since it is a target type we do not handle, exit function<br />
<span style="color:#0000ff;"><code>return true;</code></span></p>
<p style="padding-left:30px;"><span style="color:#0000ff;"><code> }</code></span></p>
<p style="padding-left:30px;">//Set class for active field (You can define a special style to show in which field the cursor is placed).<br />
<span style="color:#0000ff;"><code>source.addClassName('activeField');</code></span></p>
<p><code>}</code></p>
<p><span style="color:#0000ff;"><code>function mandatoryOnBlurEvent(e){</code></span></p>
<p style="padding-left:30px;"><span style="color:#0000ff;"><code> if (typeof e == undefined) {</code></span></p>
<p style="padding-left:60px;"><span style="color:#0000ff;"><code> var e = window.event;</code></span></p>
<p style="padding-left:30px;"><span style="color:#0000ff;"><code> }</code><br />
<code> var source;</code><br />
<code> if (typeof e.target != undefined) {</code></span></p>
<p style="padding-left:60px;"><span style="color:#0000ff;"><code> source = e.target;</code></span></p>
<p style="padding-left:30px;"><span style="color:#0000ff;"><code> } else if (typeof e.srcElement != undefined) {</code></span></p>
<p style="padding-left:60px;"><span style="color:#0000ff;"><code> source = e.srcElement;</code></span></p>
<p style="padding-left:30px;"><span style="color:#0000ff;"><code> } else {</code></span></p>
<p style="padding-left:60px;"><span style="color:#0000ff;"><code> return true;</code></span></p>
<p style="padding-left:30px;"><span style="color:#0000ff;"><code> }</code></span></p>
<p style="padding-left:30px;">//Remove class for active field<br />
<span style="color:#0000ff;"><code>source.removeClassName('activeField'); </code></span></p>
<p style="padding-left:30px;">//Different handle for text and textarea and a select object<br />
<span style="color:#0000ff;"><code>if (source.type =="text" || source.type =="textarea"){</code></span></p>
<p style="padding-left:60px;"><span style="color:#0000ff;"><code> if (IsEmpty(source)){ </code></span></p>
<p style="padding-left:90px;"><span style="color:#0000ff;"><code> source.addClassName('mandatoryField')</code></span></p>
<p style="padding-left:60px;"><span style="color:#0000ff;"><code> } else{ </code></span></p>
<p style="padding-left:90px;"><span style="color:#0000ff;"><code> source.removeClassName('mandatoryField') </code></span></p>
<p style="padding-left:60px;"><span style="color:#0000ff;"><code> } </code><br />
<code> source.value = Trim(source.value);</code></span></p>
<p style="padding-left:30px;">//Check if select statement is empty. Select-one is for on selection if you have a multiple selection object test for select-multiple. The test if it is empty may then have to be rewritten to work.<br />
<span style="color:#0000ff;"><code>}else if (source.type =="select-one"){</code></span></p>
<p style="padding-left:60px;"><span style="color:#0000ff;"><code> if(source.options.text == ""){</code></span></p>
<p style="padding-left:90px;"><span style="color:#0000ff;"><code> source.addClassName('mandatoryField')</code></span></p>
<p style="padding-left:60px;"><span style="color:#0000ff;"><code> }else{</code></span></p>
<p style="padding-left:90px;"><span style="color:#0000ff;"><code> source.removeClassName('mandatoryField') </code></span></p>
<p style="padding-left:60px;"><span style="color:#0000ff;"><code> }</code></span></p>
<p style="padding-left:30px;"><span style="color:#0000ff;"><code> }</code></span></p>
<p><span style="color:#0000ff;"><code>}</code></span></p>
<p>How the function is called:<br />
<span style="color:#0000ff;"><code>refreshMandatoryBankInfo($F("Tx_AccountType"), getMandatoryFields());</code></span></p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/rndnotes.wordpress.com/36/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/rndnotes.wordpress.com/36/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/rndnotes.wordpress.com/36/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/rndnotes.wordpress.com/36/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/rndnotes.wordpress.com/36/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/rndnotes.wordpress.com/36/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/rndnotes.wordpress.com/36/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/rndnotes.wordpress.com/36/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/rndnotes.wordpress.com/36/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/rndnotes.wordpress.com/36/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/rndnotes.wordpress.com/36/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/rndnotes.wordpress.com/36/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=rndnotes.wordpress.com&blog=1714933&post=36&subd=rndnotes&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://rndnotes.wordpress.com/2008/08/06/javascript-in-domino-unobtrusive-javascript-and-mandatory-fields/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/46e9c5c4a1a309e30d59464b809b7ee6?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">rndnotes</media:title>
		</media:content>
	</item>
		<item>
		<title>Summory of the time between blogs</title>
		<link>http://rndnotes.wordpress.com/2008/08/06/summory-of-the-time-between-blogs/</link>
		<comments>http://rndnotes.wordpress.com/2008/08/06/summory-of-the-time-between-blogs/#comments</comments>
		<pubDate>Wed, 06 Aug 2008 11:46:35 +0000</pubDate>
		<dc:creator>Tomas Ekström</dc:creator>
				<category><![CDATA[Personal]]></category>

		<guid isPermaLink="false">http://rndnotes.wordpress.com/?p=37</guid>
		<description><![CDATA[Have been very bussy trying to get old things done. Had a lot of old development project I wanted to finish.
In my free time I&#8217;ve been:
- working on two bathrooms. One at a time of course.
- Preparing our summer pool.
- Isolating our small summer lodge.
- Time with the kids.
- Garden work.
- Playing with Joomla.
- Guests, [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=rndnotes.wordpress.com&blog=1714933&post=37&subd=rndnotes&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>Have been very bussy trying to get old things done. Had a lot of old development project I wanted to finish.</p>
<p>In my free time I&#8217;ve been:<br />
- working on two bathrooms. One at a time of course.<br />
- Preparing our summer pool.<br />
- Isolating our small summer lodge.<br />
- Time with the kids.<br />
- Garden work.<br />
- Playing with Joomla.<br />
- Guests, guests and another guest. I&#8217;ve been thinking off opening a Hotel.</p>
<p>Still it’s always nice having guests but it is not good if you want to get things done.</p>
<p>Most projects are now at an end. Bath close to be finished&#8230;<br />
Now I&#8217;ll try to be more productive, logging what I have found.</p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/rndnotes.wordpress.com/37/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/rndnotes.wordpress.com/37/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/rndnotes.wordpress.com/37/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/rndnotes.wordpress.com/37/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/rndnotes.wordpress.com/37/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/rndnotes.wordpress.com/37/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/rndnotes.wordpress.com/37/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/rndnotes.wordpress.com/37/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/rndnotes.wordpress.com/37/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/rndnotes.wordpress.com/37/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/rndnotes.wordpress.com/37/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/rndnotes.wordpress.com/37/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=rndnotes.wordpress.com&blog=1714933&post=37&subd=rndnotes&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://rndnotes.wordpress.com/2008/08/06/summory-of-the-time-between-blogs/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/46e9c5c4a1a309e30d59464b809b7ee6?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">rndnotes</media:title>
		</media:content>
	</item>
		<item>
		<title>Easy implementation of multiple configurable global stylesheets</title>
		<link>http://rndnotes.wordpress.com/2008/03/19/easy-implementation-of-multiple-configurable-global-stylesheets/</link>
		<comments>http://rndnotes.wordpress.com/2008/03/19/easy-implementation-of-multiple-configurable-global-stylesheets/#comments</comments>
		<pubDate>Wed, 19 Mar 2008 16:11:23 +0000</pubDate>
		<dc:creator>Tomas Ekström</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[Domino]]></category>
		<category><![CDATA[Web Development]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[html]]></category>
		<category><![CDATA[multiple]]></category>
		<category><![CDATA[stylesheet]]></category>

		<guid isPermaLink="false">http://rndnotes.wordpress.com/?p=35</guid>
		<description><![CDATA[The concept is to have a profile document with a multi value field containing the stylsheet path. First entry has the lowest priority the last the highest priority.
First create a profile document and a multi value field
In my example the profile form is named &#8220;(DbSetup)&#8221; and the field is named &#8220;globalCSS&#8221;.
In the Form you add [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=rndnotes.wordpress.com&blog=1714933&post=35&subd=rndnotes&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>The concept is to have a profile document with a multi value field containing the stylsheet path. First entry has the lowest priority the last the highest priority.</p>
<p>First create a profile document and a multi value field<br />
In my example the profile form is named &#8220;(DbSetup)&#8221; and the field is named &#8220;globalCSS&#8221;.</p>
<p>In the Form you add the following code into to the &#8220;HTML Head Content&#8221; form object. Explanation follows.</p>
<p><code>startTagCSS := "&lt;link rel=\"stylesheet\" type=\"text/css\" href=\"";<br />
endTagCSS := "\"&gt;";<br />
s := @Name([CN]; @ServerName);<br />
@If( s= "" ; varGlobalCSS:="css/global.css";varGlobalCSS:=@GetProfileField("(DbSetup)"; "GlobalCSS") );<br />
@Implode((startTagCSS) + varGlobalCSS + (endTagCSS);@NewLine) + @NewLine</code></p>
<p>First I define the start and end tags. I then try to find out if it runs local or on a server. If it is local it gets the css path from the local application it self, otherwise it gets it from the profile document. Needed that to be able to debug without network access.</p>
<p>Then, on each entry in the GlobalCSS field, the start and end tag is added in front and back of the path. By using @Implode and @NewLine each entry will be separated with a new line. Last but not least I add an extra new line after. To make it look more readable.</p>
<p>If the field GlobalCSS contains [http://myserver.com/css/global.css", http://myserver.com/css/second.css, http://myserver.com/css/third.css] we would get the following in the &#8220;&lt;head&gt;&#8221; tag on the web page.</p>
<p><code>&lt;link rel="stylesheet" type="text/css" href="http://myserver.com/css/global.css"&gt;<br />
&lt;link rel="stylesheet" type="text/css" href="http://myserver.com/css/second.css"&gt;<br />
&lt;link rel="stylesheet" type="text/css" href="http://myserver.com/css/third.css"&gt;</code></p>
<p>This is only for absolute paths, since the relative path changes depending on if the document is new or already exists.<br />
In this case each entry has to be tested for the existence of http or &#8220;//&#8221; in the beginning of the path and add &#8220;../&#8221; in the  beginning if it is not a new document. Hint use @IsNewDoc in combination with @Transform.</p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/rndnotes.wordpress.com/35/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/rndnotes.wordpress.com/35/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/rndnotes.wordpress.com/35/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/rndnotes.wordpress.com/35/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/rndnotes.wordpress.com/35/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/rndnotes.wordpress.com/35/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/rndnotes.wordpress.com/35/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/rndnotes.wordpress.com/35/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/rndnotes.wordpress.com/35/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/rndnotes.wordpress.com/35/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/rndnotes.wordpress.com/35/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/rndnotes.wordpress.com/35/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=rndnotes.wordpress.com&blog=1714933&post=35&subd=rndnotes&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://rndnotes.wordpress.com/2008/03/19/easy-implementation-of-multiple-configurable-global-stylesheets/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/46e9c5c4a1a309e30d59464b809b7ee6?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">rndnotes</media:title>
		</media:content>
	</item>
		<item>
		<title>Debootsrap ubuntu and locale problems</title>
		<link>http://rndnotes.wordpress.com/2008/02/25/debootsrap-ubuntu-and-locale-problems/</link>
		<comments>http://rndnotes.wordpress.com/2008/02/25/debootsrap-ubuntu-and-locale-problems/#comments</comments>
		<pubDate>Mon, 25 Feb 2008 22:28:48 +0000</pubDate>
		<dc:creator>Tomas Ekström</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[Xen]]></category>
		<category><![CDATA[ubuntu xen locale domU]]></category>

		<guid isPermaLink="false">http://rndnotes.wordpress.com/?p=33</guid>
		<description><![CDATA[I&#8217;m trying to install a ubuntu gutsy xen guest. I&#8217;ve had some problem to get the locale to work.
Thereby  installing it on lvm volume group with xfs as file system. Using debootstrap to get gutsy on it.
Since xfs is not installed with debootstrap you have to install the xfsprogs package to get it to [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=rndnotes.wordpress.com&blog=1714933&post=33&subd=rndnotes&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>I&#8217;m trying to install a ubuntu gutsy xen guest. I&#8217;ve had some problem to get the locale to work.</p>
<p>Thereby  installing it on lvm volume group with xfs as file system. Using debootstrap to get gutsy on it.<br />
Since xfs is not installed with debootstrap you have to install the xfsprogs package to get it to work.</p>
<p>After installation i mounted it and chrooted the system to continue the configuration.</p>
<p>Executed &#8220;apt-get upgraded&#8221; to get the newest version of every thing.</p>
<p>Doing that I got this error message:<code><br />
perl: warning: Setting locale failed.<br />
perl: warning: Please check that your locale settings:<br />
LANGUAGE = (unset),<br />
LC_ALL = (unset),<br />
LANG = "en_US.UTF-8"<br />
are supported and installed on your system.<br />
perl: warning: Falling back to the standard locale ("C").<br />
locale: Cannot set LC_CTYPE to default locale: No such file or directory<br />
locale: Cannot set LC_MESSAGES to default locale: No such file or directory<br />
locale: Cannot set LC_ALL to default locale: No such file or directory<br />
</code></p>
<p>So, I googled about it and found some statements telling you to execute the following command:<br />
<code>$ sudo dpkg-reconfigure locale</code></p>
<p>When you have installed Ubuntu by using debootstrap it will not work, since it to will fail with the same message. So to run the command you need to have at least one locale language generated.</p>
<p>The solution is to first generate one language by executing the following:</p>
<p><code>$ sudo locale-gen en_US.UTF-8</code></p>
<p>This will generate the necessary files for the first command.</p>
<p>It is also possible to generate all locale languages by just executing it without the en_US.UTF-8 parameter.  That will take some time since all language combinations are generated.</p>
<p>No I&#8217;ll continue and pray I will start and that I do not get any tls warning message.</p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/rndnotes.wordpress.com/33/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/rndnotes.wordpress.com/33/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/rndnotes.wordpress.com/33/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/rndnotes.wordpress.com/33/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/rndnotes.wordpress.com/33/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/rndnotes.wordpress.com/33/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/rndnotes.wordpress.com/33/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/rndnotes.wordpress.com/33/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/rndnotes.wordpress.com/33/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/rndnotes.wordpress.com/33/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/rndnotes.wordpress.com/33/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/rndnotes.wordpress.com/33/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=rndnotes.wordpress.com&blog=1714933&post=33&subd=rndnotes&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://rndnotes.wordpress.com/2008/02/25/debootsrap-ubuntu-and-locale-problems/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/46e9c5c4a1a309e30d59464b809b7ee6?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">rndnotes</media:title>
		</media:content>
	</item>
	</channel>
</rss>