<?xml version="1.0"?><rss version="2.0">
<channel>
  <title>Alan&#039;s Ramblings - Web category</title>
  <link>http://bleaklow.com:80/categories/tech/web/</link>
  <description>My opinions may be incorrect, but they are my own</description>
  <language>en</language>
  <copyright>Alan Burlison</copyright>
  <lastBuildDate>Sun, 05 Sep 2010 20:50:00 GMT</lastBuildDate>
  <generator>Pebble (http://pebble.sourceforge.net)</generator>
  <docs>http://backend.userland.com/rss</docs>
  <item>
    <title>mod-rewrite equivalent for Tomcat</title>
    <link>http://bleaklow.com:80/2010/06/02/mod_rewrite_equivalent_for_tomcat.html</link>
    <description>
          &lt;p&gt;
I&#039;ve migrated and merged my old blogs.sun.com and bleaklow.com blogs into this new one, using &lt;a href=&#034;http://pebble.sourceforge.net/&#034;&gt;Pebble&lt;/a&gt;.  As a result, there are a number of links out there on the interwebs to bleaklow.com that are now broken, as everything has moved around - google&#039;s &lt;a href=&#034;http://www.google.com/webmasters/tools/&#034;&gt;webmaster tools&lt;/a&gt; gives me a comprehensive list.  If I was hosting this blog using &lt;a href=&#034;http://httpd.apache.org/&#034;&gt;Apache&lt;/a&gt;, the standard solution would be to use the most excellent &lt;a href=&#034;http://httpd.apache.org/docs/2.2/mod/mod_rewrite.html&#034;&gt;mod-rewrite&lt;/a&gt; Apache module to redirect the broken links to somewhere appropriate.  However Pebble is a &lt;a href=&#034;http://java.sun.com/javaee/&#034;&gt;J2EE&lt;/a&gt; application and uses &lt;a href=&#034;http://tomcat.apache.org/&#034;&gt;Tomcat&lt;/a&gt; instead of Apache.  I&#039;ve been looking for an equivalent to mod-rewrite for a while and never managed to find anything.  Whilst looking for something else entirely (always the way) I found &lt;a href=&#034;http://tuckey.org/urlrewrite/&#034;&gt;Url Rewrite Filter&lt;/a&gt;.  This is functional equivalent to mod-rewrite for J2EE servers, and offers most of the same features as mod-rewrite.  I&#039;m using it and it seems to do the job just fine, and the beta even has a mod-rewrite style configuration option, if you need a security blanket :-)
&lt;/p&gt;</description>
      <category>Web</category>
    <category>Tech</category>
    <category>Java</category>
    <comments>http://bleaklow.com:80/2010/06/02/mod_rewrite_equivalent_for_tomcat.html#comments</comments>
    <guid isPermaLink="true">http://bleaklow.com:80/2010/06/02/mod_rewrite_equivalent_for_tomcat.html</guid>
    <pubDate>Wed, 02 Jun 2010 17:15:00 GMT</pubDate>
  </item>
  <item>
    <title>Simple parser for MovableType exports</title>
    <link>http://bleaklow.com:80/2010/05/23/simple_parser_for_movabletype_exports.html</link>
    <description>
          &lt;p&gt;
As part of moving my blog over to &lt;a href=&#034;http://pebble.sourceforge.net/&#034; pebble=&#034;&#034;&gt;&lt;/a&gt; I needed to be able to transfer the content from my old &lt;a href=&#034;http://www.movabletype.com/&#034;&gt;MovableType&lt;/a&gt; blog and my blogs.sun.com blog, which runs on &lt;a href=&#034;http://www.movabletype.com/&#034;&gt;Roller&lt;/a&gt;.  Both MT and Roller can export in &lt;a href=&#034;http://www.sixapart.com/movabletype/docs/mtimport&#034;&gt;MovableType export format&lt;/a&gt; and Pebble has a MT importer, so it looked relatively straightforward.  However when I looked at the content I was importing it was clear I&#039;d need to munge it on its way into Pebble.  The Pebble MT importer is one-pass and loads the entries into Pebble as it reads them, whereas I wanted to read them in, munge them and only then load them into Pebble, so I wrote a simple parser to read in the MT export.  It&#039;s not a thing of great beauty but it got the job done.  I thought it might be useful for other people who want to read MovableType exports from Java, so I&#039;ve put a copy of it &lt;a href=&#034;files/2010/MTParser.tar.gz&#034;&gt;here&lt;/a&gt;.
&lt;/p&gt;</description>
      <category>Web</category>
    <category>Tech</category>
    <category>Java</category>
    <comments>http://bleaklow.com:80/2010/05/23/simple_parser_for_movabletype_exports.html#comments</comments>
    <guid isPermaLink="true">http://bleaklow.com:80/2010/05/23/simple_parser_for_movabletype_exports.html</guid>
    <pubDate>Sun, 23 May 2010 10:03:00 GMT</pubDate>
  </item>
  <item>
    <title>Image thumbnailer for Pebble</title>
    <link>http://bleaklow.com:80/2010/05/23/image_thumbnailer_for_pebble.html</link>
    <description>
          &lt;p&gt;
This blog uses the &lt;a href=&#034;http://pebble.sourceforge.net/&#034;&gt;Pebble&lt;/a&gt; package for delivering content.  Pebble isn&#039;t a particularly common blogging package but it fits my purely personal and subjective requirements:
&lt;/p&gt;
&lt;p&gt;
&lt;ul&gt;
&lt;li&gt;Not written in PHP (blegh)
&lt;li&gt;Open source, and something in Java would be nice
&lt;li&gt;Doesn&#039;t use a database and uses flat files that I can manage manually if I need to
&lt;li&gt;Good RSS, search, tag and category management
&lt;li&gt;Can be restyled easily
&lt;/ul&gt;
&lt;/p&gt;
&lt;p&gt;The old incarnation of this blog used &lt;a href=&#034;http://www.movabletype.com/&#034;&gt;MovableType&lt;/a&gt; but that doesn&#039;t really tick the Open Source box any more.  blogs.sun.com  uses &lt;a href=&#034;http://rollerweblogger.org/project/&#034;&gt;Roller&lt;/a&gt; but that requires a database back-end.  All these constraints combined to give a pretty short list of candidates, i.e. Pebble.
&lt;/p&gt;
&lt;p&gt;
One thing that Pebble lacks is an image thumbnailer.  I&#039;m not bothered about glossy JavaScript solutions such as &lt;a href=&#034;http://www.huddletogether.com/projects/lightbox2/&#034;&gt;Lightbox&lt;/a&gt;, and I&#039;m quite happy to type in HTML table definitions.  All I wanted was something to save me the tedium of manually generating the thumbnails and typing in the HTML to display them and link to the full-size image in a popup window.  MovableType has this feature but Pebble doesn&#039;t so I sat down one evening and knocked together an equivalent as a Pebble plugin, using the standard &lt;a href=&#034;http://java.sun.com/products/java-media/2D/index.jsp&#034;&gt;Java2D&lt;/a&gt; APIs to do the image manipulation.  All the thumbnails on this site are done with it, and I&#039;ve submitted this as a &lt;a href=&#034;http://open.jira.com/browse/PEBBLE-26&#034;&gt;patch&lt;/a&gt; to Pebble so hopefully it will make it into a future release.
&lt;/p&gt;
&lt;h2&gt;Update&lt;/h2&gt;
&lt;p&gt;
The patch has been accepted and should be appearing in a future version of Pebble.
&lt;/p&gt;
</description>
      <category>Web</category>
    <category>Java</category>
    <comments>http://bleaklow.com:80/2010/05/23/image_thumbnailer_for_pebble.html#comments</comments>
    <guid isPermaLink="true">http://bleaklow.com:80/2010/05/23/image_thumbnailer_for_pebble.html</guid>
    <pubDate>Sun, 23 May 2010 08:54:00 GMT</pubDate>
  </item>
  <item>
    <title>Facebook: do I get to say &#034;I told you so?&#034;</title>
    <link>http://bleaklow.com:80/2008/02/07/facebook_do_i_get_to_say_i_told_you_so.html</link>
    <description>
          &lt;p&gt;
Just noticed that &lt;a href=&#034;http://yro.slashdot.org/article.pl?sid=08/02/07/1646250&#034;&gt;slashdot&lt;/a&gt; is running a story on Facebook applications and data privacy:
&lt;/p&gt;
&lt;p&gt;
&lt;blockquote&gt;
Privacy activists are rallying around yet another major issue at Facebook, in which the company is secretly sharing user data with third parties. Researchers from the University of Virginia recently announced that in a study of the top 150 Facebook applications, more than 90% were given access to information that was not needed to function correctly. That Scrabble or Superpoke application you really like? Its developers get access to your religion, sexuality and home town.
&lt;/blockquote&gt;
&lt;/p
&lt;p&gt;
The slashdot article links to articles at &lt;a href=&#034;http://www.cs.virginia.edu/felt/privacy/&#034;&gt;The University of Virginia&lt;/a&gt; and &lt;a href=&#034;http://www.news.com/8301-10784_3-9854409-7.html&#034;&gt;news.com&lt;/a&gt;.  The University of Virginia article says that 90% of the top 150 Facebook applications request personal data that they don&#039;t need in order to function:
&lt;/p
&lt;p&gt;
&lt;blockquote&gt;
When Jane installs a Facebook application, the application is given the ability to see anything that Jane can see. This means that the application can request information about Jane, her friends, and her fellow network members. The owner of the application is free to collect, look at, and potentially misuse this information. The Facebook Terms of Use agreement tells application developers not to do this, but Facebook has no way of finding out or stopping them.
&lt;/blockquote&gt;
&lt;/p&gt;
&lt;p&gt;
I&#039;ll merely point out that &lt;a href=&#034;2008/01/04/facebook_and_so_it_begins.html&#034;&gt;I already told you so&lt;/a&gt; :-)
&lt;/p&gt;</description>
      <category>Web</category>
    <category>Tech</category>
    <comments>http://bleaklow.com:80/2008/02/07/facebook_do_i_get_to_say_i_told_you_so.html#comments</comments>
    <guid isPermaLink="true">http://bleaklow.com:80/2008/02/07/facebook_do_i_get_to_say_i_told_you_so.html</guid>
    <pubDate>Thu, 07 Feb 2008 12:26:17 GMT</pubDate>
  </item>
  <item>
    <title>Facebook faces privacy questions</title>
    <link>http://bleaklow.com:80/2008/01/18/facebook_faces_privacy_questions.html</link>
    <description>
          &lt;p&gt;
Just noticed &lt;a href=&#034;http://news.bbc.co.uk/1/hi/technology/7196803.stm&#034;&gt;this report&lt;/a&gt; on the BBC News website:
&lt;/p&gt;
&lt;p&gt;
&lt;blockquote&gt;
&lt;strong&gt;Facebook is to be quizzed about its data protection policies by the Information Commissioner&#039;s Office.&lt;/strong&gt;
&lt;br /&gt;&lt;br /&gt;
The investigation follows a complaint by a user of the social network who was unable to fully delete their profile even after terminating their account.
Currently, personal information remains on Facebook&#039;s servers even after a user deactivates an account.
&lt;br /&gt;&lt;br /&gt;
Facebook has said it believes its policy is in &#034;full compliance with UK data protection law&#034;.
&lt;br /&gt;&lt;br /&gt;
&#034;We take the concerns of the ICO [Information Commissioner&#039;s Office] and our user&#039;s privacy very seriously and are committed to working with the ICO to maintain a trusted environment for all Facebook users and ensure compliance with UK law,&#034; said a statement from the site. 
&lt;/blockquote&gt;
&lt;/p&gt;
&lt;p&gt;
That&#039;ll be me they are talking about...
&lt;/p&gt;</description>
      <category>Web</category>
    <category>Tech</category>
    <comments>http://bleaklow.com:80/2008/01/18/facebook_faces_privacy_questions.html#comments</comments>
    <guid isPermaLink="true">http://bleaklow.com:80/2008/01/18/facebook_faces_privacy_questions.html</guid>
    <pubDate>Fri, 18 Jan 2008 15:27:21 GMT</pubDate>
  </item>
  </channel>
</rss>
