<?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/"
	>

<channel>
	<title>VolkomenJuist.nl &#187; Technology</title>
	<atom:link href="http://www.volkomenjuist.nl/blog/category/technology/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.volkomenjuist.nl/blog</link>
	<description>Juist! Volkomen Juist!</description>
	<lastBuildDate>Mon, 18 Jul 2011 20:00:14 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>OSX: Browser is slowing down after updating to 10.6.8</title>
		<link>http://www.volkomenjuist.nl/blog/2011/07/18/osx-browser-is-slowing-down-after-updating-to-10-6-8/</link>
		<comments>http://www.volkomenjuist.nl/blog/2011/07/18/osx-browser-is-slowing-down-after-updating-to-10-6-8/#comments</comments>
		<pubDate>Mon, 18 Jul 2011 19:45:06 +0000</pubDate>
		<dc:creator>Stefanovich</dc:creator>
				<category><![CDATA[Technology]]></category>
		<category><![CDATA[browser]]></category>
		<category><![CDATA[OSX]]></category>

		<guid isPermaLink="false">http://www.volkomenjuist.nl/blog/?p=382</guid>
		<description><![CDATA[After updating to Mac OSX 10.6.8 the browser was responding very slow. It took up to 30-35 seconds to load a page (doesn&#8217;t matter which one). To solve this problem you can add a DNS. Click on Continue reading to see the solution. Open your network preferences, select Advanced and select the tab DNS. Add [...]]]></description>
			<content:encoded><![CDATA[<p>After updating to Mac OSX 10.6.8 the browser was responding very slow. It took up to 30-35 seconds to load a page (doesn&#8217;t matter which one). To solve this problem you can add a DNS. </p>
<p>Click on Continue reading to see the solution.</p>
<p><span id="more-382"></span><br />
Open your network preferences, select Advanced and select the tab DNS. Add the following two addresses: 208.67.220.220 and 208.67.222.222 (OpenDNS). </p>
 <img src="http://www.volkomenjuist.nl/blog/wp-content/plugins/wordpress-feed-statistics/feed-statistics.php?view=1&post_id=382" width="1" height="1" style="display: none;" />]]></content:encoded>
			<wfw:commentRss>http://www.volkomenjuist.nl/blog/2011/07/18/osx-browser-is-slowing-down-after-updating-to-10-6-8/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>MongoDB &#8211; Usefull PHP queries</title>
		<link>http://www.volkomenjuist.nl/blog/2011/05/10/mongodb-php-quiries/</link>
		<comments>http://www.volkomenjuist.nl/blog/2011/05/10/mongodb-php-quiries/#comments</comments>
		<pubDate>Tue, 10 May 2011 19:59:20 +0000</pubDate>
		<dc:creator>Stefanovich</dc:creator>
				<category><![CDATA[Technology]]></category>
		<category><![CDATA[Mongo]]></category>
		<category><![CDATA[MongoDB]]></category>
		<category><![CDATA[php]]></category>

		<guid isPermaLink="false">http://www.volkomenjuist.nl/blog/?p=368</guid>
		<description><![CDATA[Currently I am playing around with MongoDB. Most of the topics regarding MongoDB are quite straight forward. However, sometimes I needed more complex stuff and was not able to find it or it was not documented well. So in this topic I&#8217;ll add usefull queries which helped me while developing my application. Decrease a field [...]]]></description>
			<content:encoded><![CDATA[<p>Currently I am playing around with MongoDB. Most of the topics regarding MongoDB are quite straight forward. However, sometimes I needed more complex stuff and was not able to find it or it was not documented well. So in this topic I&#8217;ll add usefull queries which helped me while developing my application.</p>
<h3><span id="more-368"></span><br />
Decrease a field</h3>
<pre class="brush: php; title: ; notranslate">
$myCollection-&gt;update(array('_id' =&gt; new MongoId($myId)),
array('$inc' =&gt; array('item.inStock' =&gt; -1)
));
</pre>
<p><em>Note: the negative value (-1) of the &#8216;item.inStock&#8217; field.</em></p>
<h3>Increment / decrease multiple fields at once</h3>
<pre class="brush: php; title: ; notranslate">
$myCollection-&gt;update(array('_id' =&gt; new MongoId($myId)),
array('$inc' =&gt; array(
'item.inStock' =&gt; -1,
'item.sold' =&gt; 1)
));
</pre>
<h3>Return specific fields</h3>
<pre class="brush: php; title: ; notranslate">
$myCollection-&gt;findOne(array('_id' =&gt; new MongoId($id)), array('colors'));
</pre>
<p>This will get one item from the database with the given $id. The result will be the unique mongoId <strong>and</strong> the &#8216;colors&#8217; field. So not <strong>only</strong> the expected &#8216;colors&#8217; field. Other fields are not returned.</p>
<h3>&#8216;Not in&#8217;</h3>
<pre class="brush: php; title: ; notranslate">
$query = array(
			&quot;_id&quot; =&gt; array('$nin' =&gt; $ninArray),
			&quot;item.inStock&quot; =&gt; array('$gt' =&gt; 0)
		);
$offerCollection-&gt;find($query);
</pre>
<p>This examples will return all items which id is not in the $ninArray and item.inStock > 1 </p>
 <img src="http://www.volkomenjuist.nl/blog/wp-content/plugins/wordpress-feed-statistics/feed-statistics.php?view=1&post_id=368" width="1" height="1" style="display: none;" />]]></content:encoded>
			<wfw:commentRss>http://www.volkomenjuist.nl/blog/2011/05/10/mongodb-php-quiries/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Synology released Diskstation Manager 2.3 (firmware)</title>
		<link>http://www.volkomenjuist.nl/blog/2010/03/08/synology-released-diskstation-manager-2-3-firmware/</link>
		<comments>http://www.volkomenjuist.nl/blog/2010/03/08/synology-released-diskstation-manager-2-3-firmware/#comments</comments>
		<pubDate>Mon, 08 Mar 2010 19:57:02 +0000</pubDate>
		<dc:creator>Stefanovich</dc:creator>
				<category><![CDATA[Synology]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[firmware]]></category>
		<category><![CDATA[Mirror]]></category>

		<guid isPermaLink="false">http://www.volkomenjuist.nl/blog/?p=357</guid>
		<description><![CDATA[Today Synology released Diskstation Manager 2.3 (DSM 2.3). Currently the main download sites are very slow. You can find a miror here and the release notes here. Enjoy!]]></description>
			<content:encoded><![CDATA[<p>Today Synology released Diskstation Manager 2.3 (DSM 2.3). Currently the main download sites are very slow. You can find a miror<a target=\"_blank\"  href="http://www.volkomenjuist.nl/blog/wp-content/plugins/wordpress-feed-statistics/feed-statistics.php?url=aHR0cDovLzE4OC45Mi4yMzIuOTgvZmlybXdhcmUvMTEzOS8="> here</a> and the release notes <a target=\"_blank\" href="http://www.volkomenjuist.nl/blog/wp-content/plugins/wordpress-feed-statistics/feed-statistics.php?url=aHR0cDovL3d3dy5zeW5vbG9neS5jb20vZW51L3N1cHBvcnQvcmVsZWFzZU5vdGUvRFMyMDkrLnBocA==">here</a>. </p>
<p>Enjoy!</p>
 <img src="http://www.volkomenjuist.nl/blog/wp-content/plugins/wordpress-feed-statistics/feed-statistics.php?view=1&post_id=357" width="1" height="1" style="display: none;" />]]></content:encoded>
			<wfw:commentRss>http://www.volkomenjuist.nl/blog/2010/03/08/synology-released-diskstation-manager-2-3-firmware/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to check whether Javascript is enabled in Wicket</title>
		<link>http://www.volkomenjuist.nl/blog/2010/01/19/how-to-check-whether-javascript-is-enabled-in-wicket/</link>
		<comments>http://www.volkomenjuist.nl/blog/2010/01/19/how-to-check-whether-javascript-is-enabled-in-wicket/#comments</comments>
		<pubDate>Tue, 19 Jan 2010 21:31:49 +0000</pubDate>
		<dc:creator>Stefanovich</dc:creator>
				<category><![CDATA[Java]]></category>
		<category><![CDATA[Wicket]]></category>
		<category><![CDATA[Javascript]]></category>

		<guid isPermaLink="false">http://www.volkomenjuist.nl/blog/?p=337</guid>
		<description><![CDATA[It is possible, via Wicket, to gather a lot of information regarding the browser/system of your visitor. If you want this you can also turn on some extended information (like javascript is enabled) via the following code: This method works via a redirect to the BrowserInfoPage and finally it goes to your &#8216;original&#8217; page. Because [...]]]></description>
			<content:encoded><![CDATA[<p>It is possible, via Wicket, to gather a lot of information regarding the browser/system of your visitor. If you want this you can also turn on some extended information (like javascript is enabled) via the following code:</p>
<pre class="brush: java; title: ; notranslate">
getRequestCycleSettings().setGatherExtendedBrowserInfo(true);
</pre>
<p>This method works via a redirect to the BrowserInfoPage and finally it goes to your &#8216;original&#8217; page. Because of this it is possible that you see the BrowserInfoPage very shortly especially on slow computers/browsers or internet connections. But what if you don&#8217;t want this and only want to know whether Javascript is enabled? Please read on&#8230;</p>
<p><span id="more-337"></span></p>
<p>When the page is rendered it does a call(back) to Wicket. If  this callback is possible then we can assume Javascipt is enabled.</p>
<h4>How to setup?</h4>
<p>e.g. Login.java (Page)</p>
<pre class="brush: java; title: ; notranslate">
final WebClientInfo clientInfo = (WebClientInfo) WebRequestCycle.get().getClientInfo();
final AbstractDefaultAjaxBehavior behavior = new AbstractDefaultAjaxBehavior()
   @Override
   protected void respond(final AjaxRequestTarget target) {
        if (target != null) {
            clientInfo.getProperties().setJavaEnabled(true);
        }
   }
};
add(behavior);

Label jsEnabledScript = new Label(&quot;jsEnabledScript&quot;, &quot;wicketAjaxGet('&quot;+ behavior.getCallbackUrl() +&quot;', function() { }, function() { });&quot;);
jsEnabledScript.setEscapeModelStrings(false); // do not HTML escape JavaScript code
add(jsEnabledScript);
</pre>
<p>And in your HTML</p>
<pre class="brush: plain; title: ; notranslate">
&lt;script type=&quot;text/javascript&quot; wicket:id=&quot;jsEnabledScript&quot;&gt;&lt;/script&gt;
</pre>
<h4>How to use?</h4>
<pre class="brush: java; title: ; notranslate">
final WebClientInfo clientInfo = (WebClientInfo) WebRequestCycle.get().getClientInfo();
boolean javascriptEnabled = clientInfo.getProperties().isJavaEnabled();
</pre>
<address>Note1: Put this code on one of your first pages like your login page, to do this callback only once.<br />
Note2: I really don&#8217;t have a clue why they called it isJavaEnabled() because Java != Javascript&#8230;.</address>
 <img src="http://www.volkomenjuist.nl/blog/wp-content/plugins/wordpress-feed-statistics/feed-statistics.php?view=1&post_id=337" width="1" height="1" style="display: none;" />]]></content:encoded>
			<wfw:commentRss>http://www.volkomenjuist.nl/blog/2010/01/19/how-to-check-whether-javascript-is-enabled-in-wicket/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>AjaxTabbedPanel &#8211; Store state when switching tabs</title>
		<link>http://www.volkomenjuist.nl/blog/2009/12/01/ajaxtabbedpanel-store-state-when-switching-tabs/</link>
		<comments>http://www.volkomenjuist.nl/blog/2009/12/01/ajaxtabbedpanel-store-state-when-switching-tabs/#comments</comments>
		<pubDate>Tue, 01 Dec 2009 21:48:09 +0000</pubDate>
		<dc:creator>Stefanovich</dc:creator>
				<category><![CDATA[Java]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[Wicket]]></category>
		<category><![CDATA[AjaxTabbedPanel]]></category>

		<guid isPermaLink="false">http://www.volkomenjuist.nl/blog/?p=331</guid>
		<description><![CDATA[Normally when you switch tabs of an AjaxTabbedPanel it won&#8217;t store the state of all your input fields. If you do want this, without pressing a save button, you have to override the newLink(String linkId, final int index) method of the AjaxTabbedPanel class and use an AjaxSubmitLink instead of the default AjaxFallbackLink. Now all values [...]]]></description>
			<content:encoded><![CDATA[<p>Normally when you switch tabs of an AjaxTabbedPanel it won&#8217;t store the state of all your input fields. If you do want this, without pressing a save button, you have to override the <code>newLink(String linkId, final int index)</code> method of the AjaxTabbedPanel class and use an AjaxSubmitLink instead of the default AjaxFallbackLink. Now all values will be stored in the model (not saved to the database). </p>
<p>Keep in mind that all Wicket validations will be validated, so we have to take care of the FeedbackPanel (refreshing) as well.</p>
<p><span id="more-331"></span><br />
Example:</p>
<pre class="brush: java; title: ; notranslate">
/**
	 * {@inheritDoc}
	 */
	@Override
	protected WebMarkupContainer newLink(String linkId, final int index) {

			return new AjaxSubmitLink(linkId, m_form) {

			@Override
			protected void onSubmit(AjaxRequestTarget target, Form&lt;?&gt; form) {
				setSelectedTab(index);
				if (target != null) {
					target.addComponent(TabbedComponent.this);
				}
				onAjaxUpdate(target);
			}

			@Override
			protected void onError(AjaxRequestTarget target, Form&lt;?&gt; form) {
				target.addComponent(((FeedbackAware) getPage()).getFeedbackPanel());
			}
		};
	}
</pre>
<p>See also my other blog about the <a href="http://www.volkomenjuist.nl/blog/wp-content/plugins/wordpress-feed-statistics/feed-statistics.php?url=aHR0cDovL3d3dy52b2xrb21lbmp1aXN0Lm5sL2Jsb2cvMjAwOS8xMS8wNS9hamF4dGFiYmVkcGFuZWwtaW4tY29tYmluYXRpb24td2l0aC1hamF4bGF6eWxvYWRwYW5lbC8jbW9yZS0zMjI=">AjaxTabbedPanel and LazyLoading</a></p>
 <img src="http://www.volkomenjuist.nl/blog/wp-content/plugins/wordpress-feed-statistics/feed-statistics.php?view=1&post_id=331" width="1" height="1" style="display: none;" />]]></content:encoded>
			<wfw:commentRss>http://www.volkomenjuist.nl/blog/2009/12/01/ajaxtabbedpanel-store-state-when-switching-tabs/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>AjaxTabbedPanel in combination with AjaxLazyLoadPanel</title>
		<link>http://www.volkomenjuist.nl/blog/2009/11/05/ajaxtabbedpanel-in-combination-with-ajaxlazyloadpanel/</link>
		<comments>http://www.volkomenjuist.nl/blog/2009/11/05/ajaxtabbedpanel-in-combination-with-ajaxlazyloadpanel/#comments</comments>
		<pubDate>Wed, 04 Nov 2009 22:14:57 +0000</pubDate>
		<dc:creator>Stefanovich</dc:creator>
				<category><![CDATA[Java]]></category>
		<category><![CDATA[Wicket]]></category>
		<category><![CDATA[Ajax]]></category>
		<category><![CDATA[AjaxLazyLoadPanel]]></category>
		<category><![CDATA[AjaxTabbedPanel]]></category>

		<guid isPermaLink="false">http://www.volkomenjuist.nl/blog/?p=322</guid>
		<description><![CDATA[Wicket (extensions) offers a AjaxTabbedPanel to take care of your tabs. The constructor of the AjaxTabbedPanel expects a wicket id (obviously) and a list of ITabs. The implementation of this interface should return the panel via getPanel(String panelId) which will be the &#8216;actual&#8217; tab. Out-of-the-box Wicket (extensions) offers an abstract implementation of this interface (AbstractTab). [...]]]></description>
			<content:encoded><![CDATA[<p>Wicket (extensions) offers a AjaxTabbedPanel to take care of your tabs. The constructor of the AjaxTabbedPanel expects a wicket id (obviously) and a list of ITabs. The implementation of this interface should return the panel via <code>getPanel(String panelId)</code> which will be the &#8216;actual&#8217; tab. Out-of-the-box Wicket (extensions) offers an abstract implementation of this interface (AbstractTab).</p>
<p>What I want to achieve is that an AjaxIndicator (loading image) will be shown on the place were the actual panel will come till it is completely loaded. Especially when you have a lot of components to render this can be handy. See image below.</p>
<div id="attachment_324" class="wp-caption aligncenter" style="width: 506px"><img class="size-full wp-image-324" title="example" src="http://www.volkomenjuist.nl/blog/wp-content/uploads/2009/11/example.png" alt="Example" width="496" height="200" /><p class="wp-caption-text">Example</p></div>
<p><span id="more-322"></span><br />
My solution was to create a class (AbstractLazyLoadTab) on top of the AbstractTab (implements ITab) which will take care of this. It will use the AjaxLazyLoadPanel.</p>
<pre class="brush: java; title: ; notranslate">
public abstract class AbstractLazyLoadTab extends AbstractTab {
         //removed some lines

	@Override
	public Panel getPanel(String panelId) {
		return new AjaxLazyLoadPanel(panelId){

			private static final long serialVersionUID = 1L;

			@Override
			public Component getLazyLoadComponent(String markupId) {
				return getLazyLoadPanel(final String markupId);
			}
		};
	}

        public abstract Panel getLazyLoadPanel(final String markupId);
}
</pre>
<p>Now you can use this class as you normally would do when you use AbstractTab.</p>
<p>When your page (or components higher in the hierarchy) implements IAjaxIndicatorAware to show another loading layer it is possible that you now have two loading layers on top of each other. One on the tab and one which will e.g. block the whole page. To avoid that I created an other class which extends the AjaxTabbedPanel and implements the IAjaxIndicatorAware interface.</p>
<pre class="brush: java; title: ; notranslate">
public class TabbedComponent extends AjaxTabbedPanel implements IAjaxIndicatorAware{
         //removed some lines
        @Override
	public String getAjaxIndicatorMarkupId() {
		//Our tab will take care of the loading layer, so return null.
		return null;
	}
}
</pre>
<p>Now you can use the classes like this:</p>
<pre class="brush: java; title: ; notranslate">
  List&lt;ITab&gt; tabs=new ArrayList&lt;ITab&gt;();
    tabs.add(new AbstractLazyLoadTab(new Model(&quot;first tab&quot;)) {
        public Panel getLazyLoadPanel(String panelId) {
           return new TabPanel1(panelId);
        }
    });

    add(new TabbedComponent(&quot;tabs&quot;, tabs)
</pre>
</pre>
<h2>Another solution</h2>
<p>If you prefer to have a waiting icon on the right side of the tab itself, you can override the newLink method of AjaxTabbedPanel and use the IndicatingAjaxFallbackLink instead of the AjaxFallbackLink. You will probably have to add the following code to your css file.</p>
<pre class="brush: css; title: ; notranslate">
span.wicket-ajax-indicator {
float: left;
}
</pre>
<p>More information about this solution please click <a href="http://www.volkomenjuist.nl/blog/wp-content/plugins/wordpress-feed-statistics/feed-statistics.php?url=aHR0cDovL2phdmF0aG91Z2h0cy5jYXBlc3VnYXJiaXJkLmNvbS8yMDA3LzExL2FqYXgtdGFiYmVkLXBhbmVsLXdpdGgtbGF6eS1sb2FkaW5nLmh0bWw=" target=\"_blank\">here</a></p>
 <img src="http://www.volkomenjuist.nl/blog/wp-content/plugins/wordpress-feed-statistics/feed-statistics.php?view=1&post_id=322" width="1" height="1" style="display: none;" />]]></content:encoded>
			<wfw:commentRss>http://www.volkomenjuist.nl/blog/2009/11/05/ajaxtabbedpanel-in-combination-with-ajaxlazyloadpanel/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>WordPress application on iPhone</title>
		<link>http://www.volkomenjuist.nl/blog/2009/09/14/wordpress-application-on-iphone/</link>
		<comments>http://www.volkomenjuist.nl/blog/2009/09/14/wordpress-application-on-iphone/#comments</comments>
		<pubDate>Mon, 14 Sep 2009 20:06:08 +0000</pubDate>
		<dc:creator>Stefanovich</dc:creator>
				<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[iPhone]]></category>

		<guid isPermaLink="false">http://www.volkomenjuist.nl/blog/2009/09/14/wordpress-application-on-iphone/</guid>
		<description><![CDATA[This test entry is submitted via my iPhone. I was looking for a free application which is able to write/edit blog entries and manage comments. I think this application will fit my needs. (More info)]]></description>
			<content:encoded><![CDATA[<p>This test entry is submitted via my iPhone. I was looking for a free application which is able to write/edit blog entries and manage comments. I think this application will fit my needs. <img src='http://www.volkomenjuist.nl/blog/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' />  (<a target=\"_blank\" href="http://www.volkomenjuist.nl/blog/wp-content/plugins/wordpress-feed-statistics/feed-statistics.php?url=aHR0cDovL2lQaG9uZS53b3JkcHJlc3Mub3Jn">More info</a>) </p>
 <img src="http://www.volkomenjuist.nl/blog/wp-content/plugins/wordpress-feed-statistics/feed-statistics.php?view=1&post_id=318" width="1" height="1" style="display: none;" />]]></content:encoded>
			<wfw:commentRss>http://www.volkomenjuist.nl/blog/2009/09/14/wordpress-application-on-iphone/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Synology released new firmware (DSM v2.2)</title>
		<link>http://www.volkomenjuist.nl/blog/2009/09/08/synology-released-new-firmware-dsm-v2-2/</link>
		<comments>http://www.volkomenjuist.nl/blog/2009/09/08/synology-released-new-firmware-dsm-v2-2/#comments</comments>
		<pubDate>Tue, 08 Sep 2009 21:49:19 +0000</pubDate>
		<dc:creator>Stefanovich</dc:creator>
				<category><![CDATA[Synology]]></category>
		<category><![CDATA[firmware]]></category>

		<guid isPermaLink="false">http://www.volkomenjuist.nl/blog/?p=310</guid>
		<description><![CDATA[A couple of days ago Synology released new DSM firmware (v2.2) with a big list of new features/upgrades/fixes and improvements. For the whole list, please click here. Synology even offers/supports 2 free iPhone applications (DS Audio and DS Photo)!! Those applications allows you to play your own music ,stored on the NAS, on your iPhone [...]]]></description>
			<content:encoded><![CDATA[<p>A couple of days ago Synology released new DSM firmware (v2.2) with a big list of new features/upgrades/fixes and improvements. For the whole list, please click <a target=\"_blank\" href="http://www.volkomenjuist.nl/blog/wp-content/plugins/wordpress-feed-statistics/feed-statistics.php?url=aHR0cDovL3d3dy5zeW5vbG9neS5jb20vZW51L3N1cHBvcnQvcmVsZWFzZU5vdGUvRFMyMDkrLnBocA==">here</a>. Synology even offers/supports 2 free iPhone applications (DS Audio and DS Photo)!! Those applications allows you to play your own music ,stored on the NAS, on your iPhone and easily upload/share your photo&#8217;s.</p>
 <img src="http://www.volkomenjuist.nl/blog/wp-content/plugins/wordpress-feed-statistics/feed-statistics.php?view=1&post_id=310" width="1" height="1" style="display: none;" />]]></content:encoded>
			<wfw:commentRss>http://www.volkomenjuist.nl/blog/2009/09/08/synology-released-new-firmware-dsm-v2-2/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Hibernate SQL logging</title>
		<link>http://www.volkomenjuist.nl/blog/2009/08/13/hibernate-sql-logging/</link>
		<comments>http://www.volkomenjuist.nl/blog/2009/08/13/hibernate-sql-logging/#comments</comments>
		<pubDate>Thu, 13 Aug 2009 14:14:46 +0000</pubDate>
		<dc:creator>Stefanovich</dc:creator>
				<category><![CDATA[Java]]></category>
		<category><![CDATA[Hibernate]]></category>
		<category><![CDATA[Log4j]]></category>
		<category><![CDATA[Prepared statement]]></category>

		<guid isPermaLink="false">http://www.volkomenjuist.nl/blog/?p=298</guid>
		<description><![CDATA[When you turn on Hibernate&#8217;s SQL&#160;logging during Java development (e.g. log4j.logger.org.hibernate.SQL = debug, console), you won&#8217;t see values (only a ?) which will be/are used in a query. e.g. Now turn on some extra logging (log4j.properties): Now you&#8217;ll see some extra information like the type (StringType / EnumType / etc.) and the value: Note: When [...]]]></description>
			<content:encoded><![CDATA[<p>When you turn on Hibernate&#8217;s SQL&nbsp;logging during Java development (e.g. log4j.logger.org.hibernate.SQL = debug, console), you won&#8217;t see values (only a ?) which will be/are used in a query.<br />
e.g.</p>
<pre class="brush: plain; title: ; notranslate">
select this_.id as ID113_4_ ........ from INCOMINGMESSAGE ... where this_.STATUS=? and this_.FOO=?
</pre>
<p>Now turn on some extra logging (log4j.properties):</p>
<pre class="brush: plain; title: ; notranslate">
log4j.logger.org.hibernate.type = trace, console
</pre>
<p>Now you&#8217;ll see some extra information like the type (StringType / EnumType / etc.) and the value:</p>
<pre class="brush: plain; title: ; notranslate">
select this_.id as ID113_4_ ........ from INCOMINGMESSAGE ... where this_.STATUS=? and this_.FOO=?
DEBUG org.hibernate.type.EnumType  - Binding 'UNHANDLED' to parameter: 1
DEBUG org.hibernate.type.StringType  - Binding 'Bar' to parameter: 2
</pre>
<p>Note: When your application uses big queries then you&#8217;ll get a lot of extra logging\!</p>
 <img src="http://www.volkomenjuist.nl/blog/wp-content/plugins/wordpress-feed-statistics/feed-statistics.php?view=1&post_id=298" width="1" height="1" style="display: none;" />]]></content:encoded>
			<wfw:commentRss>http://www.volkomenjuist.nl/blog/2009/08/13/hibernate-sql-logging/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>A lot of spam? Check for X-Spam-Status.</title>
		<link>http://www.volkomenjuist.nl/blog/2009/06/23/a-lot-of-spam-check-for-x-spam-status/</link>
		<comments>http://www.volkomenjuist.nl/blog/2009/06/23/a-lot-of-spam-check-for-x-spam-status/#comments</comments>
		<pubDate>Tue, 23 Jun 2009 15:43:05 +0000</pubDate>
		<dc:creator>Stefanovich</dc:creator>
				<category><![CDATA[Technology]]></category>
		<category><![CDATA[Rules and Alerts]]></category>
		<category><![CDATA[Spam]]></category>
		<category><![CDATA[X-Spam-Status]]></category>

		<guid isPermaLink="false">http://www.volkomenjuist.nl/blog/?p=291</guid>
		<description><![CDATA[The last couple of months I received a lot of spam on my e-mail address which I am using for my soccer club. When I contacted my provider they told me that they do check for spam and that they put the results of this in the email header. In the email header you can find something [...]]]></description>
			<content:encoded><![CDATA[<p>The last couple of months I received a lot of spam on my e-mail address which I am using for my soccer club. When I contacted my provider they told me that they do check for spam and that they put the results of this in the email header. In the email header you can find something like this:</p>
<p><code>X-Spam-Status: No, score=0.001 required=5</code><br />
In case of spam:<br />
<code>X-Spam-Status: Yes, score=16.401 required=5</code></p>
<p>If the score is above 5, the X-Spam-Status flag is set to Yes. In your email application like Microsoft Outlook you can create a rule to check for this status and remove (or move) those emails. </p>
<p><span id="more-291"></span><br />
Lets see how we can do this:</p>
<ol>
<li>Open Outlook</li>
<li>Go to Tools, Rules and Alerts</li>
<li>New Rule&#8230;</li>
<li>Start from a blank rule</li>
<li>Check messages after they arrive</li>
<li>Check With specific words in the message header</li>
<li>Click on specific words and enter &#8220;X-Spam-Status: Yes&#8221; (without qoutes)</li>
<li>Press Add, OK and Next</li>
<li>Choose what you want to do with the message(s). E.g. delete it</li>
<li>Press OK and Finish</li>
</ol>
<h3>How can you see the mail headers?</h3>
<p>Go to your mail box, select an email, right click and select Options. On the bottom of the popup you&#8217;ll see the headers.</p>
<p><em>Note:</em> I used in this case Microsoft Outlook 2003. This won&#8217;t work in Microsoft Mail!</p>
 <img src="http://www.volkomenjuist.nl/blog/wp-content/plugins/wordpress-feed-statistics/feed-statistics.php?view=1&post_id=291" width="1" height="1" style="display: none;" />]]></content:encoded>
			<wfw:commentRss>http://www.volkomenjuist.nl/blog/2009/06/23/a-lot-of-spam-check-for-x-spam-status/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

