<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments for eknori.de</title>
	<atom:link href="http://www.eknori.de/comments/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.eknori.de</link>
	<description>the weird world of eknori</description>
	<lastBuildDate>Sat, 12 May 2012 07:27:35 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
	<item>
		<title>Comment on Joda to the rescue by Mikkel Flindt Heisterberg</title>
		<link>http://www.eknori.de/2012-05-09/joda-to-the-rescue/comment-page-1/#comment-4227</link>
		<dc:creator>Mikkel Flindt Heisterberg</dc:creator>
		<pubDate>Sat, 12 May 2012 07:27:35 +0000</pubDate>
		<guid isPermaLink="false">http://www.eknori.de/?p=2648#comment-4227</guid>
		<description>The date represented by java.util.Date is always the UTC date and hence daylight savings doesn&#039;t apply. Daylight savings and time zones is what the java.util.Calendar is for why this is a perfectly fine approach. Of course the date objects would come from a daylight savings/time zone aware piece of code in a real piece of code where Locale etc. apply.</description>
		<content:encoded><![CDATA[<p>The date represented by java.util.Date is always the UTC date and hence daylight savings doesn&#8217;t apply. Daylight savings and time zones is what the java.util.Calendar is for why this is a perfectly fine approach. Of course the date objects would come from a daylight savings/time zone aware piece of code in a real piece of code where Locale etc. apply.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Joda to the rescue by Stephen Colebourne</title>
		<link>http://www.eknori.de/2012-05-09/joda-to-the-rescue/comment-page-1/#comment-4226</link>
		<dc:creator>Stephen Colebourne</dc:creator>
		<pubDate>Fri, 11 May 2012 11:30:18 +0000</pubDate>
		<guid isPermaLink="false">http://www.eknori.de/?p=2648#comment-4226</guid>
		<description>As a general rule, LocalDate should be preferred to DateMidnight for cases like this. Thats because in some time-zones, midnight does not occur on the date of daylight savings change - ie. time jumps from 00:00 to 01:00 with midnight never occurring. DateMidnight clearly has issues with this. LocalDate does not have a time-zone and so handles it fine.

Mikkel, your code ignores daylight savings time days that last 23 or 25 hours. More generally, its only really reliable if your default time-zone is UTC. If thats fine in your case, great, but please don&#039;t pretend that the code is equivalent.</description>
		<content:encoded><![CDATA[<p>As a general rule, LocalDate should be preferred to DateMidnight for cases like this. Thats because in some time-zones, midnight does not occur on the date of daylight savings change &#8211; ie. time jumps from 00:00 to 01:00 with midnight never occurring. DateMidnight clearly has issues with this. LocalDate does not have a time-zone and so handles it fine.</p>
<p>Mikkel, your code ignores daylight savings time days that last 23 or 25 hours. More generally, its only really reliable if your default time-zone is UTC. If thats fine in your case, great, but please don&#8217;t pretend that the code is equivalent.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Joda to the rescue by Ulrich Krause</title>
		<link>http://www.eknori.de/2012-05-09/joda-to-the-rescue/comment-page-1/#comment-4225</link>
		<dc:creator>Ulrich Krause</dc:creator>
		<pubDate>Fri, 11 May 2012 05:49:04 +0000</pubDate>
		<guid isPermaLink="false">http://www.eknori.de/?p=2648#comment-4225</guid>
		<description>Thx for sharing, Mikkel. Much easier, indeed ...</description>
		<content:encoded><![CDATA[<p>Thx for sharing, Mikkel. Much easier, indeed &#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Joda to the rescue by Mikkel Flindt Heisterberg</title>
		<link>http://www.eknori.de/2012-05-09/joda-to-the-rescue/comment-page-1/#comment-4224</link>
		<dc:creator>Mikkel Flindt Heisterberg</dc:creator>
		<pubDate>Thu, 10 May 2012 17:58:55 +0000</pubDate>
		<guid isPermaLink="false">http://www.eknori.de/?p=2648#comment-4224</guid>
		<description>While Joda Time is a great library there is an easier way to accomplish what you are trying to do. Simpy remove the time component by doing a simple modulus calculation. I am not trying to be smart about it but we do this quite a lot at OnTime :) Code could look like so:

Date d = new Date();
long lngTime = d.getTime();
lngTime -= lngTime % TimeUnit.DAYS.toMillis(1);
Date dNoTime = new Date(lngTime);

The latter date object creation isn&#039;t actually necessary for the comparison. An utility function could be like so:

private boolean isSameDay(Date d1, Date d2) {
  long lngTime1 = d1.getTime();
  lngTime1 -= lngTime1 % TimeUnit.DAYS.toMillis(1);

  long lngTime2 = d2.getTime();
  lngTime2 -= lngTime2 % TimeUnit.DAYS.toMillis(1);

  return lngTime1 == lngTime2;
}

Hope it helps and it helps remove the dependency on Joda Time if that&#039;s all you&#039;re using it for. </description>
		<content:encoded><![CDATA[<p>While Joda Time is a great library there is an easier way to accomplish what you are trying to do. Simpy remove the time component by doing a simple modulus calculation. I am not trying to be smart about it but we do this quite a lot at OnTime <img src='http://www.eknori.de/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  Code could look like so:</p>
<p>Date d = new Date();<br />
long lngTime = d.getTime();<br />
lngTime -= lngTime % TimeUnit.DAYS.toMillis(1);<br />
Date dNoTime = new Date(lngTime);</p>
<p>The latter date object creation isn&#8217;t actually necessary for the comparison. An utility function could be like so:</p>
<p>private boolean isSameDay(Date d1, Date d2) {<br />
  long lngTime1 = d1.getTime();<br />
  lngTime1 -= lngTime1 % TimeUnit.DAYS.toMillis(1);</p>
<p>  long lngTime2 = d2.getTime();<br />
  lngTime2 -= lngTime2 % TimeUnit.DAYS.toMillis(1);</p>
<p>  return lngTime1 == lngTime2;<br />
}</p>
<p>Hope it helps and it helps remove the dependency on Joda Time if that&#8217;s all you&#8217;re using it for. </p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on SSJS &#8211; @CancelPartialRefresh by Stephan H. Wissel</title>
		<link>http://www.eknori.de/2012-05-07/ssjs-cancelpartialrefresh/comment-page-1/#comment-4223</link>
		<dc:creator>Stephan H. Wissel</dc:creator>
		<pubDate>Wed, 09 May 2012 05:03:04 +0000</pubDate>
		<guid isPermaLink="false">http://www.eknori.de/?p=2638#comment-4223</guid>
		<description>Sweet. Keep the @ rolling</description>
		<content:encoded><![CDATA[<p>Sweet. Keep the @ rolling</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Access UserBean from Java by Mark Leusink</title>
		<link>http://www.eknori.de/2012-05-08/access-userbean-from-java/comment-page-1/#comment-4222</link>
		<dc:creator>Mark Leusink</dc:creator>
		<pubDate>Tue, 08 May 2012 17:45:44 +0000</pubDate>
		<guid isPermaLink="false">http://www.eknori.de/?p=2644#comment-4222</guid>
		<description>Did you also check the source code for the UserBean? It is in the ExtLib download. The get() function is actually pretty handy and you might want to add that to every bean you create to be able to access it in Java:

public static final String BEAN_NAME = &quot;userBean&quot;; //name of the bean

public static UserBean get(FacesContext context) {
 UserBean bean = (UserBean)context.getApplication().getVariableResolver().resolveVariable(context, BEAN_NAME);
 return bean;
}</description>
		<content:encoded><![CDATA[<p>Did you also check the source code for the UserBean? It is in the ExtLib download. The get() function is actually pretty handy and you might want to add that to every bean you create to be able to access it in Java:</p>
<p>public static final String BEAN_NAME = &#8220;userBean&#8221;; //name of the bean</p>
<p>public static UserBean get(FacesContext context) {<br />
 UserBean bean = (UserBean)context.getApplication().getVariableResolver().resolveVariable(context, BEAN_NAME);<br />
 return bean;<br />
}</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on FollowUp: Paul Withers: Extending Themes &#8211; Custom Pager Labels by Real estate consultants gurgaon</title>
		<link>http://www.eknori.de/2012-03-02/followup-paul-withers-extending-themes-custom-pager-labels/comment-page-1/#comment-4221</link>
		<dc:creator>Real estate consultants gurgaon</dc:creator>
		<pubDate>Mon, 02 Apr 2012 08:00:22 +0000</pubDate>
		<guid isPermaLink="false">http://www.eknori.de/?p=2614#comment-4221</guid>
		<description>Your blog is perfect, and I like this article. I find the information I need.</description>
		<content:encoded><![CDATA[<p>Your blog is perfect, and I like this article. I find the information I need.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Using a RamDisk with Notes Client by Leo</title>
		<link>http://www.eknori.de/2012-03-04/using-a-ramdisk-with-notes-client/comment-page-1/#comment-4220</link>
		<dc:creator>Leo</dc:creator>
		<pubDate>Sun, 25 Mar 2012 21:18:49 +0000</pubDate>
		<guid isPermaLink="false">http://www.eknori.de/?p=2618#comment-4220</guid>
		<description>I make even more on every logon:

del &quot;%homedrive%%homepath%\lotus\notes\data\cache.ndk&quot;
del /Q /S &quot;%homedrive%%homepath%\Lotus\Notes\Data\workspace\Local\*.*&quot;
rd /Q /S &quot;%homedrive%%homepath%\Lotus\Notes\Data\workspace\.metadata\.plugins\org.eclipse.core.resources\&quot;</description>
		<content:encoded><![CDATA[<p>I make even more on every logon:</p>
<p>del &#8220;%homedrive%%homepath%\lotus\notes\data\cache.ndk&#8221;<br />
del /Q /S &#8220;%homedrive%%homepath%\Lotus\Notes\Data\workspace\Local\*.*&#8221;<br />
rd /Q /S &#8220;%homedrive%%homepath%\Lotus\Notes\Data\workspace\.metadata\.plugins\org.eclipse.core.resources\&#8221;</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on TabContainer and RichText Control interaction by Philippe Riand</title>
		<link>http://www.eknori.de/2012-03-09/tabcontainer-and-richtext-control-interaction/comment-page-1/#comment-4217</link>
		<dc:creator>Philippe Riand</dc:creator>
		<pubDate>Sat, 10 Mar 2012 23:18:37 +0000</pubDate>
		<guid isPermaLink="false">http://www.eknori.de/?p=2620#comment-4217</guid>
		<description>For now, add this dojo module at the page level: ibm.xsp.widget.layout.xspCKEditor. A future build of the extlib will solve it.</description>
		<content:encoded><![CDATA[<p>For now, add this dojo module at the page level: ibm.xsp.widget.layout.xspCKEditor. A future build of the extlib will solve it.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Using a RamDisk with Notes Client by Lauri Laanti</title>
		<link>http://www.eknori.de/2012-03-04/using-a-ramdisk-with-notes-client/comment-page-1/#comment-4216</link>
		<dc:creator>Lauri Laanti</dc:creator>
		<pubDate>Tue, 06 Mar 2012 14:50:41 +0000</pubDate>
		<guid isPermaLink="false">http://www.eknori.de/?p=2618#comment-4216</guid>
		<description>I think that the workspace size setting applies to desktop.ndk, not cache.ndk. That would explain Ulrich&#039;s findings. The cache.ndk size is controlled via notes.ini property &quot;UserCacheQuotaSize&quot; (30 MB is the default).

The RAMDisk idea sounds quite interesting, please post your findings!</description>
		<content:encoded><![CDATA[<p>I think that the workspace size setting applies to desktop.ndk, not cache.ndk. That would explain Ulrich&#8217;s findings. The cache.ndk size is controlled via notes.ini property &#8220;UserCacheQuotaSize&#8221; (30 MB is the default).</p>
<p>The RAMDisk idea sounds quite interesting, please post your findings!</p>
]]></content:encoded>
	</item>
</channel>
</rss>

