<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" version="2.0">
  <channel>
    <title>lekkimworld.comjdbc</title>
    <link>http://lekkimworld.com/tags/jdbc/</link>
    <description>IBM Lotus Notes/Domino, Websphere, IBM Connections, mobile, web, JavaScript, Java...</description>
    <language>en</language>
    <copyright>Mikkel Flindt Heisterberg (mh [at] intravision [dot] dk</copyright>
    <pubDate>Sat, 19 May 2012 06:50:25 GMT</pubDate>
    <dc:creator>Mikkel Flindt Heisterberg (mh [at] intravision [dot] dk</dc:creator>
    <dc:date>2012-05-19T06:50:25Z</dc:date>
    <dc:language>en</dc:language>
    <dc:rights>Mikkel Flindt Heisterberg (mh [at] intravision [dot] dk</dc:rights>
    <image>
      <title>lekkimworld.comjdbc</title>
      <url>http://lekkimworld.com/tags/jdbc/</url>
    </image>
    <item>
      <title>Lotus Connections teaches you how to scale images in Java</title>
      <link>http://lekkimworld.com/2009/04/16/lotus_connections_teaches_you_how_to_scale_images_in_java.html</link>
      <content:encoded>&lt;p&gt;
Lotus Connections is a little bit screwy when it comes to profile pictures IMHO as they are being forced to be square in Profiles (115x115 pixels). In profiles search results however they are scaled to 55 pixel in width and height is automatic...
&lt;/p&gt;
&lt;p&gt;
In my mind portrait pictures are rectangular and not square. 
&lt;/p&gt;
&lt;p&gt;
Yesterday this gave me some grief as I was at a customer where I had to write Java code to import pictures in the PHOTO table of the Lotus Connections PEOPLEDB database. The actual importing the pictures into the database is easy using JDBC but the pictures showed up wrongly in Lotus Connections as they were rectangular (200 x 133 pixels). They clearly had to be scaled but how - clearly not manually!
&lt;/p&gt;
&lt;p&gt;
As with many other things you are gifted with Java as it already contains all the pieces you need to scale pictures. I quickly found some &lt;a href="http://www.rgagnon.com/javadetails/java-0243.html"&gt;sample code&lt;/a&gt; on Google to use java.awt for the resizing. The solution was to 
&lt;ol&gt;
&lt;li&gt;Scale the source image from 200 x 133 pixels to 115 x 76 pixels to keep the aspect ratio&lt;/li&gt;
&lt;li&gt;Create a new blank white image sized 115 x 115 pixels&lt;/li&gt;
&lt;li&gt;Place the resized source image on top of the white image centered&lt;/li&gt;
&lt;li&gt;Upload the resulting image to the database as a byte array&lt;/li&gt;
&lt;/ol&gt;
&lt;/p&gt;
&lt;p&gt;
Love Java!
&lt;/p&gt;</content:encoded>
      <category domain="http://lekkimworld.com/categories/java/">Java</category>
      <category domain="http://lekkimworld.com/tags/image/">image</category>
      <category domain="http://lekkimworld.com/tags/java/">java</category>
      <category domain="http://lekkimworld.com/tags/jdbc/">jdbc</category>
      <category domain="http://lekkimworld.com/tags/lotus_connections/">lotus_connections</category>
      <pubDate>Thu, 16 Apr 2009 16:29:53 GMT</pubDate>
      <guid isPermaLink="false">tag:lekkimworld.com,2009-04-16:default/1239899393260</guid>
      <dc:date>2009-04-16T16:29:53Z</dc:date>
    </item>
    <item>
      <title>StelsCSV v3.0 - a Fast JDBC Driver for CSV/Text Files</title>
      <link>http://lekkimworld.com/2006/10/06/stelscsv_v3_0_a_fast_jdbc_driver_for_csv_text_files.html</link>
      <content:encoded>&lt;p&gt;
Unfortunately it isn't open source and/or free but I can certainly see the uses for a JDBC driver that acts on plain text files. I cannot count the number of times I have written routines for parsing text files during migration projects. Could this be the answer. Imagine being able to simply JOIN data from different text files! Nice!! &lt;a href="http://www.csv-jdbc.com/order.htm#StelsCSV"&gt;Licenses&lt;/a&gt; start at 109 USD.
&lt;/p&gt;
&lt;p&gt;
&lt;a href="http://java.sys-con.com/read/281331.htm"&gt;StelsCSV v3.0 - a Fast JDBC Driver for CSV/Text Files @ JAVA DEVELOPER'S JOURNAL&lt;/a&gt;
&lt;/p&gt;</content:encoded>
      <category domain="http://lekkimworld.com/categories/java/">Java</category>
      <category domain="http://lekkimworld.com/tags/csv/">csv</category>
      <category domain="http://lekkimworld.com/tags/java/">java</category>
      <category domain="http://lekkimworld.com/tags/jdbc/">jdbc</category>
      <pubDate>Fri, 06 Oct 2006 12:18:23 GMT</pubDate>
      <guid isPermaLink="false">tag:lekkimworld.com,2006-10-06:default/1160137103362</guid>
      <dc:date>2006-10-06T12:18:23Z</dc:date>
    </item>
  </channel>
</rss>


