<?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>JavaWithMarcus</title>
	<atom:link href="http://blog.turabdin.nl/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.turabdin.nl</link>
	<description>Just another Java blog</description>
	<lastBuildDate>Mon, 24 Jan 2011 14:22:58 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>Lotus Notes: Create Excel files with POI</title>
		<link>http://blog.turabdin.nl/2011/01/lotus-notes-create-excel-files-with-poi/</link>
		<comments>http://blog.turabdin.nl/2011/01/lotus-notes-create-excel-files-with-poi/#comments</comments>
		<pubDate>Mon, 24 Jan 2011 14:19:51 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Java]]></category>
		<category><![CDATA[Lotus Notes]]></category>

		<guid isPermaLink="false">http://blog.turabdin.nl/?p=74</guid>
		<description><![CDATA[My colleague (Martin Meijer) asked me some time ago how to easy export data to Excel without installing Excel on the server. As a Java developer I know Apache POI project. There is some great progress on that project. So I made a simple Java Agent that creates a simple Excel file and embed it as an [...]]]></description>
			<content:encoded><![CDATA[<p>My colleague (Martin Meijer) asked me some time ago how to easy export data to Excel without installing Excel on the server. As a Java developer I know Apache POI project. There is some great progress on that project.</p>
<p>So I made a simple Java Agent that creates a simple Excel file and embed it as an attachment. First of all you need to <a href="http://poi.apache.org/" target="_blank">download</a> Apache POI.</p>
<p><span id="more-74"></span></p>
<p>Create a new Java Agent. Import the poi.jar as archive. Also import the dependencies commons-logging.jar and log4j.jar</p>
<p>Edit your JavaAgent.java</p>
<p>Take a look at this code and implement your own agent (our copy it if you&#8217;re too lazy to understand).</p>
<p>Past it where the comment is (Your code goes here).</p>
<pre>// (Your code goes here)
Workbook wb = new HSSFWorkbook();
Sheet sheet = wb.createSheet("Sheet 1");
Row row = sheet.createRow(0);
row.createCell(0).setCellValue("Hello Lotus");
Document doc = agentContext.getCurrentDatabase().createDocument();

RichTextItem item = doc.createRichTextItem("item");
File tempFile = new File(doc.getNoteID());
FileOutputStream out = new FileOutputStream(tempFile);

wb.write(out);
out.close();

item.embedObject(EmbeddedObject.EMBED_ATTACHMENT, null, tempFile.getAbsolutePath(), "Excel.xls");
doc.save();

tempFile.delete();
getAgentOutput().println("Done!");</pre>
<p>Make sure that you import the classes after you pasted the code. Press Ctrl+1 on the errors.</p>
<p>If you have some questions? Place a comment or contact me at twitter <a href="http://twitter.com/JavaWithMarcus" target="_blank">@JavaWithMarcus</a></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.turabdin.nl/2011/01/lotus-notes-create-excel-files-with-poi/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Install IBM Lotus Notes 8.5.2 on Ubuntu 10.04 64-bits</title>
		<link>http://blog.turabdin.nl/2010/08/install-ibm-lotus-notes-8-5-2-on-ubuntu-10-04-64-bits/</link>
		<comments>http://blog.turabdin.nl/2010/08/install-ibm-lotus-notes-8-5-2-on-ubuntu-10-04-64-bits/#comments</comments>
		<pubDate>Wed, 25 Aug 2010 07:28:54 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://blog.turabdin.nl/?p=70</guid>
		<description><![CDATA[Finally IBM is making it easy. Notes 8.5.2 installed finally without hassle. I had a code-drop that also didn&#8217;t work properly. The final is a much better piece of software. First install the dependencies: sudo aptitude install libgnomeprint2.2-0 libgnomeprintui2.2-0 After that install the DEBs with &#8211;force-architecture switch. No need to force everything. sudo dpkg -i --force-architecture [...]]]></description>
			<content:encoded><![CDATA[<p>Finally IBM is making it easy. Notes 8.5.2 installed finally without hassle. I had a code-drop that also didn&#8217;t work properly. The final is a much better piece of software.</p>
<p>First install the dependencies:</p>
<pre>sudo aptitude install libgnomeprint2.2-0 libgnomeprintui2.2-0</pre>
<p>After that install the DEBs with &#8211;force-architecture switch. No need to force everything.</p>
<pre>sudo dpkg -i --force-architecture ibm-lotus-notes-8.5.2.i586.deb</pre>
<p>And if you want sametime also:</p>
<pre>sudo dpkg -i --force-architecture ibm-lotus-sametime-8.5.2.i586.deb</pre>
<p>That&#8217;s it, start the client running</p>
<pre>/opt/ibm/lotus/notes/framework/../notes</pre>
<p>You will see the splash screen, it will disappear and do sometime nothing, just wait and a terminal window will popup with the license agreement. If you agree you will see the updated GUI Lotus Notes!</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.turabdin.nl/2010/08/install-ibm-lotus-notes-8-5-2-on-ubuntu-10-04-64-bits/feed/</wfw:commentRss>
		<slash:comments>17</slash:comments>
		</item>
		<item>
		<title>Get User-Agent string in XPages</title>
		<link>http://blog.turabdin.nl/2010/08/get-user-agent-string-in-xpages/</link>
		<comments>http://blog.turabdin.nl/2010/08/get-user-agent-string-in-xpages/#comments</comments>
		<pubDate>Tue, 03 Aug 2010 09:33:50 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Lotus Notes]]></category>
		<category><![CDATA[XPages]]></category>

		<guid isPermaLink="false">http://blog.turabdin.nl/?p=55</guid>
		<description><![CDATA[There is an easy way to get in server-side javascript in a XPage the User-Agent string from the request header. You can use this also to get other headers in the request. facesContext.getRequest().getRequestHeaderMap().get("User-Agent"); This returns: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US) AppleWebKit/533.4 (KHTML, like Gecko) Chrome/5.0.375.125 Safari/533.4 Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; [...]]]></description>
			<content:encoded><![CDATA[<p>There is an easy way to get in server-side javascript in a XPage the User-Agent string from the request header. You can use this also to get other headers in the request.<span id="more-55"></span></p>
<pre>facesContext.getRequest().getRequestHeaderMap().get("User-Agent");</pre>
<p>This returns:</p>
<p><span style="text-decoration: underline;">Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US) AppleWebKit/533.4 (KHTML, like Gecko) Chrome/5.0.375.125 Safari/533.4</span></p>
<p><span style="text-decoration: underline;">Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0)</span></p>
<p><a id="AA56048590" href="http://www.hypersmash.com/hostgator/"></a></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.turabdin.nl/2010/08/get-user-agent-string-in-xpages/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Install Flash 10.1 Beta on Ubuntu 64-bits</title>
		<link>http://blog.turabdin.nl/2010/05/install-flash-10-1-beta-on-ubuntu-64-bits/</link>
		<comments>http://blog.turabdin.nl/2010/05/install-flash-10-1-beta-on-ubuntu-64-bits/#comments</comments>
		<pubDate>Sun, 23 May 2010 08:55:31 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://blog.turabdin.nl/?p=43</guid>
		<description><![CDATA[For the people that want to test Flash 10.1 on Ubuntu 64-bits you&#8217;ll notice that there is no 64-bits version. There is a simple workaround. Install first the flashplayer installer through apt-get (This will actually install flash 32-bits with a wrapper so its works on a 64-bits browser sudo apt-get install flashplugin-installer Then download the [...]]]></description>
			<content:encoded><![CDATA[<p>For the people that want to test Flash 10.1 on Ubuntu 64-bits you&#8217;ll notice that there is no 64-bits version. There is a simple workaround.</p>
<p>Install first the flashplayer installer through apt-get (This will actually install flash 32-bits with a wrapper so its works on a 64-bits browser</p>
<blockquote><p>sudo apt-get install flashplugin-installer</p></blockquote>
<p>Then download the 10.1 version <a href="http://labs.adobe.com/downloads/flashplayer10.html">here</a> and put the libflashplayer.so file in <strong>/usr/lib/flashplugin-installer</strong></p>
<p>This will override the current 10.0 version.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.turabdin.nl/2010/05/install-flash-10-1-beta-on-ubuntu-64-bits/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Make VPNC work in NetworkManager</title>
		<link>http://blog.turabdin.nl/2010/05/make-vpnc-work-in-networkmanager/</link>
		<comments>http://blog.turabdin.nl/2010/05/make-vpnc-work-in-networkmanager/#comments</comments>
		<pubDate>Wed, 19 May 2010 07:26:39 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[NetworkManager]]></category>
		<category><![CDATA[VPNC]]></category>

		<guid isPermaLink="false">http://blog.turabdin.nl/?p=39</guid>
		<description><![CDATA[I was dealing with some issues with NetworkManager (used in various Linux distro&#8217;s). When I configured a VPNC connection in NetworkManager it couldn&#8217;t connect with all various errors like no VPN secrets is the famous one. I found a workaround so it works now. If you have a config like mine you&#8217;re probally affected. We [...]]]></description>
			<content:encoded><![CDATA[<p>I was dealing with some issues with NetworkManager (used in various Linux distro&#8217;s).<br />
When I configured a VPNC connection in NetworkManager it couldn&#8217;t connect with all various errors like no VPN secrets is the famous one. I found a workaround so it works now.</p>
<p>If you have a config like mine you&#8217;re probally affected. We have a static group password and a OTP (One-Time-Password) for the user password.</p>
<p>If you create a connection put all items on <strong>Saved</strong> and enter a value. If you save it now it will ask you (if you use it for the first time) for access to the keyring. For my config I&#8217;ve to put a dummy user password.</p>
<p>Once saved you can edit and set the user password to <strong>Always ask.</strong></p>
<p style="text-align: center;"><a href="http://blog.turabdin.nl/wp-content/uploads/blog.turabdin.nl/2010/05/Screenshot-Editing-VPN-connection-1.png"><img class="alignnone size-medium wp-image-40" title="Editing VPN connection" src="http://blog.turabdin.nl/wp-content/uploads/blog.turabdin.nl/2010/05/Screenshot-Editing-VPN-connection-1-269x300.png" alt="Editing VPN connection" width="269" height="300" /></a></p>
<p>Tested on Ubuntu 9.10 &amp; 10.04 and openSUSE 11.2</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.turabdin.nl/2010/05/make-vpnc-work-in-networkmanager/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Installing IBM Lotus Notes 8.5 on Ubuntu 64bits</title>
		<link>http://blog.turabdin.nl/2009/07/installing-ibm-lotus-notes-8-5-on-ubuntu-64bits/</link>
		<comments>http://blog.turabdin.nl/2009/07/installing-ibm-lotus-notes-8-5-on-ubuntu-64bits/#comments</comments>
		<pubDate>Fri, 03 Jul 2009 13:48:17 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Lotus Notes]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://turabdin.4fx.biz/blog/?p=9</guid>
		<description><![CDATA[Here is a small how-to install IBM Lotus Notes 8.5 on Ubuntu Jaunty 64 bits Sometimes I need to bite my tongue and this is on of those occasions. The icon text on the workspace is still an issue even with the final code drop 12. To make sure I was not at fault I [...]]]></description>
			<content:encoded><![CDATA[<p><img class="size-full wp-image-11 alignright" title="lotus-notes-logo" src="http://turabdin.4fx.biz/blog/wp-content/uploads/2009/07/lotus-notes-logo.png" alt="" width="100" height="100" />Here is a small how-to install IBM Lotus Notes 8.5 on Ubuntu Jaunty 64 bits</p>
<div id="_mcePaste">Sometimes I need to bite my tongue and this is on of those occasions. The icon text on the workspace is still an issue even with the final code drop 12. To make sure I was not at fault I did a few things today to work around the issue. I deleted, moved, copies, restored every desktop*.dsk file to no avail. The last test was to install Notes 8.5 on a clean system. The only one I had available was a new 64Bit Ubuntu system I have installed. For those in the know, Ubuntu sever does not come with a GUI. The options are to install the server version and then install the desktop. I use a different approach. I installed the 64Bit Ultimate Edition 2.0 version and then simply installed the Server Kernel. Works brilliantly. Here are the hurdles you will have to overcome to run on a 64bit system.</div>
<div id="_mcePaste">Download Notes 8.5 for debian platforms and extract the files.<span id="more-9"></span></div>
<blockquote>
<div id="_mcePaste">sudo dpkg -i –force-architecture ibm_lotus_notes-8.5.i586.deb</div>
<div id="_mcePaste">sudo dpkg -i –force-architecture ibm_lotus_activities-8.5.i586.deb</div>
<div id="_mcePaste">sudo dpkg -i –force-architecture ibm_lotus_cae-8.5.i586.deb</div>
<div id="_mcePaste">sudo dpkg -i –force-architecture ibm_lotus_sametime-8.5.i586.deb</div>
<div id="_mcePaste">sudo dpkg -i –force-architecture ibm_lotus_symphony-8.5.i586.deb</div>
</blockquote>
<div id="_mcePaste">However, you will find that you would not be able to start Notes.</div>
<div id="_mcePaste">Install the requisite 32 bit libraries.</div>
<blockquote>
<div id="_mcePaste">apt-get install ia32-libs</div>
</blockquote>
<div>You need to download the extra 32 bit libraries first. Use Getlibs</div>
<div id="_mcePaste">http://ubuntuforums.org/showthread.php?t=474790</div>
<div id="_mcePaste">Once installed then issue this command.</div>
<blockquote>
<div id="_mcePaste">getlibs -p libavahi-client3 libavahi-common3 libavahi-glib1 libbonoboui2-0 libcroco3 libdbus-1-3 libdbus-glib-1-2 libeel2-2 libgnome2-0 libgnomecanvas2-0 libgnome-keyring0 libgnome-menu2 libgnomeprint2.2-0 libgnomeprintui2.2-0 libgnomeui-0 libgnomevfs2-0 libgsf-1-114 libgsf-1-dev librsvg2-2 librsvg2-common libselinux1 libsepol1 libstartup-notification0 libxkbfile1 gtk2-engines-ubuntulooks gtk2-engines-murrine</div>
</blockquote>
<div id="_mcePaste">Depending on how you did the install the icon would not have been created but all is not lost. Start a Terminal session and change to:</div>
<blockquote>
<div id="_mcePaste">/opt/ibm/lotus/notes/framework/</div>
</blockquote>
<div id="_mcePaste">Now enter</div>
<blockquote>
<div id="_mcePaste">../notes</div>
</blockquote>
<div id="_mcePaste">If you are lucky then a separate console will startup and ask you to accept the license agreement.</div>
<div id="_mcePaste">Because you are starting Notes from a Terminal session you will see how the process starts up and this will help with diagnostics. In any event I had to issue the command three times before Notes would start but I am pleased to say the blog entry is being typed from an Ubuntu 64 bit server so It does work. Time to bite my tongue again.</div>
<p>After you&#8217;ve done this there are some steps to make it almost perfect.</p>
<p>Fonts fix. Install ttf-xfree86-nonfree package (Thanks Bram!)</p>
<pre>yum install ttf-xfree86-nonfree</pre>
<p>Fix Open attachment option. You cannot open attachments from the browser (this has also been seen on 32 bits systems). To fix this remove openwith in the notes directory and make a symlink to gnome-open</p>
<pre>rm /opt/ibm/lotus/notes/openwith
ln -s /usr/bin/gnome-open /opt/ibm/lotus/notes/openwith</pre>
<p>And for the last, start notes with linux32. This fixes that last library issues. Browser works and Sametime.</p>
<pre>cd /opt/ibm/lotus/notes
linux32 ./notes</pre>
<p>This is tested on Jaunty 64bits</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.turabdin.nl/2009/07/installing-ibm-lotus-notes-8-5-on-ubuntu-64bits/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Visual Web JSF (Woodstock) IE7 HTTPS warning</title>
		<link>http://blog.turabdin.nl/2009/04/visual-web-jsf-woodstock-ie7-https-warning/</link>
		<comments>http://blog.turabdin.nl/2009/04/visual-web-jsf-woodstock-ie7-https-warning/#comments</comments>
		<pubDate>Thu, 16 Apr 2009 19:56:46 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Java]]></category>
		<category><![CDATA[jsf]]></category>
		<category><![CDATA[woodstock]]></category>

		<guid isPermaLink="false">http://turabdin.4fx.biz/blog/?p=3</guid>
		<description><![CDATA[There is a bug in project woodstock when used in HTTPS with IE7 or newer. Since project woodstock has ended and all new development effort will be in ICEfaces it seems this &#8220;bug&#8221; will not be fixed. There are some solutions to change de webui-jsf.jar library to hardcode the URL, since this is not the best solution, because you [...]]]></description>
			<content:encoded><![CDATA[<p>There is a bug in <a title="Project Woodstock" href="http://woodstock.dev.java.net/" target="_blank">project woodstock</a> when used in HTTPS with IE7 or newer. Since project woodstock has ended and all new development effort will be in ICEfaces it seems this &#8220;bug&#8221; will not be fixed.</p>
<p>There are <a href="http://mentormate.com/blog/netbeans-visual-jsf-editor-tutorial-web-applications-running-https-displaying-warning-page-secure-nonsecure-items-2/" target="_blank">some</a> solutions to change de webui-jsf.jar library to hardcode the URL, since this is not the best solution, because you have to create a patch for every project (even create a patch if you move the project from test to production envoirement).</p>
<p>So i&#8217;ve looked in the code (shipped with Netbeans) and made a little fix. I determine the server URL from the HttpServletContext.</p>
<p><span id="more-51"></span></p>
<p>My fix:</p>
<p>Edited com.sun.webui.jsf.util.JavaScriptUtilities</p>
<p>The following method is little bit changed to determine the jsFile String</p>
<pre>   private static void renderJavaScriptInclude(UIComponent component,
            ResponseWriter writer, String file) throws  IOException
        if (file == null) {
            return;
        }
        String baseURL = "";
        try
        {
            HttpServletRequest req = (HttpServletRequest)FacesContext
                 .getCurrentInstance().getExternalContext().getRequest();
            StringBuffer url = req.getRequestURL();
            baseURL = url.substring(0, url.indexOf("/",10));
            // HTTPS fix over LB
            if (baseURL.indexOf(":443") &gt;0)
            {
                baseURL = baseURL.replaceFirst("http://", "<a href="https://&quot;).replaceFirst(&quot;:443">https://").replaceFirst(":443</a>", "");
            }
        }
        catch (Exception e)
        {
            baseURL = "";
        }
        String jsFile = baseURL + getTheme().getPathToJSFile(file);
</pre>
<p>You can also <a href="http://download.turabdin.nl/webui-jsf.jar">download the patched jar</a> file and put it in your netbeans directory/visualweb2/modules/ext/</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.turabdin.nl/2009/04/visual-web-jsf-woodstock-ie7-https-warning/feed/</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
		<item>
		<title>ICEfaces 1.8.0 is out now</title>
		<link>http://blog.turabdin.nl/2009/04/icefaces-1-8-0-is-out-now/</link>
		<comments>http://blog.turabdin.nl/2009/04/icefaces-1-8-0-is-out-now/#comments</comments>
		<pubDate>Thu, 16 Apr 2009 13:47:37 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Java]]></category>
		<category><![CDATA[icefaces]]></category>
		<category><![CDATA[jsf]]></category>

		<guid isPermaLink="false">http://turabdin.4fx.biz/blog/?p=7</guid>
		<description><![CDATA[ICEfaces 1.8.0 is out. I&#8217;ve used various Beta &#38; RC releases of 1.8.0. They are getting close to get it to let it work good on NetBeans, but still sticked to Project Woodstock ( + DynamicFaces). Maybe this release will get me there to work with ICEfaces. Finally some annoying bugs are fixed now. Visual [...]]]></description>
			<content:encoded><![CDATA[<p>ICEfaces 1.8.0 is out. I&#8217;ve used various Beta &amp; RC releases of 1.8.0. They are getting close to get it to let it work good on NetBeans, but still sticked to Project Woodstock ( + DynamicFaces). Maybe this release will get me there to work with ICEfaces.</p>
<p>Finally some annoying bugs are fixed now. Visual Designer ICEfaces (Netbeans) works almost like a charm now.<br />
There are some small things missing (like effects) but these things are easlily to work around in JSP edit mode.</p>
<p><a title="Download ICEfaces 1.8.0" href="http://www.icefaces.org/JForum/posts/list/12216.page" target="_blank">Download here</a></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.turabdin.nl/2009/04/icefaces-1-8-0-is-out-now/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

