<?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/"
	xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>Net Wolf's Blog</title>
	<atom:link href="http://netwolfuk.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://netwolfuk.wordpress.com</link>
	<description>TAG_LINE='Linux and stuff' ; echo ${TAG_LINE}</description>
	<lastBuildDate>Fri, 25 Sep 2009 10:53:23 +0000</lastBuildDate>
	<generator>http://wordpress.com/</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<cloud domain='netwolfuk.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://www.gravatar.com/blavatar/978de68921d74e7eca180176df5ec696?s=96&#038;d=http://s.wordpress.com/i/buttonw-com.png</url>
		<title>Net Wolf's Blog</title>
		<link>http://netwolfuk.wordpress.com</link>
	</image>
			<item>
		<title>Updated TeamCity WebHooks plugin available</title>
		<link>http://netwolfuk.wordpress.com/2009/07/04/updated-teamcity-webhooks-plugin-available/</link>
		<comments>http://netwolfuk.wordpress.com/2009/07/04/updated-teamcity-webhooks-plugin-available/#comments</comments>
		<pubDate>Sat, 04 Jul 2009 08:15:02 +0000</pubDate>
		<dc:creator>netwolfuk</dc:creator>
				<category><![CDATA[Java]]></category>
		<category><![CDATA[TeamCity]]></category>
		<category><![CDATA[WebHooks]]></category>
		<category><![CDATA[tcPlugins]]></category>
		<category><![CDATA[tcWebHooks]]></category>

		<guid isPermaLink="false">http://netwolfuk.wordpress.com/?p=107</guid>
		<description><![CDATA[Version 0.6.13.11 of the tcWebHooks plugin is available for download. It&#8217;s mainly a bugfix release and some tidy up of the user interface.
Fixes:
- Fix for newly created WebHooks not being persisted to plugin-settings.xml until re-edited.
- Plugin JSPs loaded using getPluginResourcesPath(), so plugin dir can be anything, and not hard-coded to &#8220;webhook&#8221;.
- webHookUrl form input style [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=netwolfuk.wordpress.com&blog=16414&post=107&subd=netwolfuk&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>Version 0.6.13.11 of the <a title="My TeamCity Plugins page" href="http://netwolfuk.wordpress.com/teamcity-plugins/">tcWebHooks</a> plugin is available for <a title="Download from SourceForge" href="http://sourceforge.net/projects/tcplugins/files/">download</a>. It&#8217;s mainly a bugfix release and some tidy up of the user interface.</p>
<p><strong>Fixes:</strong><br />
- Fix for newly created WebHooks not being persisted to plugin-settings.xml until re-edited.<br />
- Plugin JSPs loaded using getPluginResourcesPath(), so plugin dir can be anything, and not hard-coded to &#8220;webhook&#8221;.<br />
- webHookUrl form input style fix for linux (or large fonts in general). URL input field was too wide for div.</p>
<p><strong>Features:</strong><br />
- WebHook blurb updated. A new link can be added to the &#8220;Further reading&#8221; section of the blurb by adding a &lt;info&gt; line to the &lt;webhooks&gt; section of the main-config.xml<br />
- Enabled events are now listed in Tabs and Edit pages, eg. Build Started, Build Changed Status, Build Interrupted, Build Almost Completed, Build Responsibility Changed</p>
<p><strong>Links:</strong></p>
<p><a title="My TeamCity Plugins page" href="http://netwolfuk.wordpress.com/teamcity-plugins/">More Info</a> | <a title="Download from SourceForge" href="http://sourceforge.net/projects/tcplugins/files/">Download</a> | <a title="View the docs in Trac" href="http://sourceforge.net/apps/trac/tcplugins/">Install and usage docs</a></p>
<p>I welcome any and all feedback.</p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/netwolfuk.wordpress.com/107/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/netwolfuk.wordpress.com/107/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/netwolfuk.wordpress.com/107/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/netwolfuk.wordpress.com/107/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/netwolfuk.wordpress.com/107/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/netwolfuk.wordpress.com/107/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/netwolfuk.wordpress.com/107/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/netwolfuk.wordpress.com/107/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/netwolfuk.wordpress.com/107/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/netwolfuk.wordpress.com/107/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=netwolfuk.wordpress.com&blog=16414&post=107&subd=netwolfuk&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://netwolfuk.wordpress.com/2009/07/04/updated-teamcity-webhooks-plugin-available/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/c2845c0bcbd17725c71083db7a46a7d4?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">netwolfuk</media:title>
		</media:content>
	</item>
		<item>
		<title>Developing for TeamCity in Eclipse</title>
		<link>http://netwolfuk.wordpress.com/2009/06/28/developing-for-teamcity-in-eclipse/</link>
		<comments>http://netwolfuk.wordpress.com/2009/06/28/developing-for-teamcity-in-eclipse/#comments</comments>
		<pubDate>Sun, 28 Jun 2009 13:25:02 +0000</pubDate>
		<dc:creator>netwolfuk</dc:creator>
				<category><![CDATA[Eclipse]]></category>
		<category><![CDATA[Java]]></category>
		<category><![CDATA[TeamCity]]></category>
		<category><![CDATA[Tomcat]]></category>

		<guid isPermaLink="false">http://netwolfuk.wordpress.com/?p=94</guid>
		<description><![CDATA[Tips on developing for TeamCity, without restarting Tomcat continuously.<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=netwolfuk.wordpress.com&blog=16414&post=94&subd=netwolfuk&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>This document assumes you are running the TeamCity package from JetBrains, which includes Tomcat. If you are running your own Tomcat install, you may need to hunt out the files yourself. This document is based on Linux. I&#8217;ve tried to point out what you need to change on Windows, but I don&#8217;t have a Windows box to test with.</p>
<p>My TeamCity home  is <em>/opt/TeamCity</em></p>
<h4>Enable JSP development mode in Tomcat.</h4>
<p>This setting alows you to hot delpoy JSPs, and Tomcat will re-compile them for you without a restart.  Edit <em>&lt;TeamCityHome&gt;</em>/conf/web.xml and find the <strong>JspServlet</strong> section. Change the development mode to <strong>true</strong> as per the section below.</p>
<pre>&lt;servlet-name&gt;jsp&lt;/servlet-name&gt;
   &lt;servlet-class&gt;org.apache.jasper.servlet.JspServlet&lt;/servlet-class&gt;
     &lt;init-param&gt;
       &lt;param-name&gt;development&lt;/param-name&gt;
       &lt;param-value&gt;true&lt;/param-value&gt;
     &lt;/init-param&gt;
  ...</pre>
<h4>Enable Java code hot-swapping with a debugger</h4>
<p>We have enabled JSP hot-compile in the previous, now we need to configure Tomcat so that Eclipse can load new Java code into the JVM from within the Eclipse debugger.</p>
<p>For Linux, edit <em>&lt;TeamCityHome&gt;</em>/bin/teamcity-server.sh and insert the commands needed to start Tomcat with the debugger enabled. I added the TEAMCITY_DEBUG_OPTS variable, and then added it to the CATALINA_OPTS line.</p>
<pre>TEAMCITY_DEBUG_OPTS="-Xdebug -Xrunjdwp:transport=dt_socket,address=8000,server=y,suspend=n"

 CATALINA_OPTS="$CATALINA_OPTS $TEAMCITY_SERVER_OPTS $TEAMCITY_DEBUG_OPTS -server $TEAMCITY_SERVER_MEM_OPTS -Dlog4j.configuration=file:$BIN/../conf/teamcity-server-log4j.xml -Dteamcity_logs=../logs/ -Djava.awt.headless=true"</pre>
<p>For Windows, edit &lt;TeamCityHome&gt;\conf\teamcity-server.bat and insert the debug commands. I added the TEAMCITY_DEBUG_OPTS variable, and then added it to the CATALINA_OPTS line.</p>
<pre>:server_mem_opts_done
SET TEAMCITY_DEBUG_OPTS=-Xdebug -Xrunjdwp:transport=dt_socket,address=8000,server=y,suspend=n
SET CATALINA_OPTS=%TEAMCITY_SERVER_OPTS% %TEAMCITY_DEBUG_OPTS% -server %TEAMCITY_SERVER_MEM_OPTS_ACTUAL% -Dlog4j.configuration=file:../conf/teamcity-server-log4j.xml -Dteamcity_logs=../logs/</pre>
<h4>Start Tomcat</h4>
<p>Stop Tomcat if it&#8217;s running and then start it by running &lt;TeamCityHome&gt;/bin/teamcity-server.sh start (or &lt;TeamCityHome&gt;\bin\teamcity-server.bat start on Windows).</p>
<p>Have a look in <em>&lt;TeamCityHome&gt;</em>/logs/catalina.out  There should be a line similar to the one below indicating that Tomcat is running with the debug port open.</p>
<pre>Listening for transport dt_socket at address: 8000</pre>
<h4><strong>Configure Eclipse</strong></h4>
<p>In Eclipse, create a new Debug Configuration (In the Java perspective, it&#8217;s under the Run menu).</p>
<p>Find Remote Java Application, and click the new button.  In the <strong>Connect</strong> tab, set:</p>
<ul>
<li>Connection Type: Standard Socket (Attach)</li>
<li>Connection Properties:
<ul>
<li>Host: localhost (assuming your TeamCity instance is on your local machine)</li>
<li>Port: 8000</li>
</ul>
</li>
</ul>
<p>In the <strong>Source</strong> tab, I added my Java source directory.</p>
<h4>Connect to Tomcat in Eclipse</h4>
<p>Run the new Debug Config, and change to the Debug perspective. A quote from the <a href="http://www.jetbrains.net/confluence/display/TCD4/Development+Environment">TeamCity dev page</a> is relevant here.</p>
<blockquote><p>if you do not change code affecting plugin initialization and change only body of the methods, you can attach to the server process with a debugger and hot-swap the code</p></blockquote>
<p>So if you change your registers or constructors, you need to restart Tomcat.</p>
<h4>Deploy your JSPs</h4>
<p>When TeamCity starts, it copies the JSPs from your plugin into <em>&lt;TeamCityHome&gt;</em>/webapps/ROOT/plugins/<em>&lt;YourPluginName&gt;</em>/</p>
<p>Therefore, you can copy updated JSPs to here. This might be best acheived with a simple ANT script.</p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/netwolfuk.wordpress.com/94/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/netwolfuk.wordpress.com/94/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/netwolfuk.wordpress.com/94/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/netwolfuk.wordpress.com/94/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/netwolfuk.wordpress.com/94/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/netwolfuk.wordpress.com/94/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/netwolfuk.wordpress.com/94/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/netwolfuk.wordpress.com/94/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/netwolfuk.wordpress.com/94/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/netwolfuk.wordpress.com/94/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=netwolfuk.wordpress.com&blog=16414&post=94&subd=netwolfuk&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://netwolfuk.wordpress.com/2009/06/28/developing-for-teamcity-in-eclipse/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/c2845c0bcbd17725c71083db7a46a7d4?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">netwolfuk</media:title>
		</media:content>
	</item>
		<item>
		<title>TeamCity WebHooks plugin beta available</title>
		<link>http://netwolfuk.wordpress.com/2009/06/22/teamcity-webhooks-plugin-beta-available/</link>
		<comments>http://netwolfuk.wordpress.com/2009/06/22/teamcity-webhooks-plugin-beta-available/#comments</comments>
		<pubDate>Mon, 22 Jun 2009 16:33:28 +0000</pubDate>
		<dc:creator>netwolfuk</dc:creator>
				<category><![CDATA[Java]]></category>
		<category><![CDATA[TeamCity]]></category>
		<category><![CDATA[WebHooks]]></category>
		<category><![CDATA[tcPlugins]]></category>
		<category><![CDATA[tcWebHooks]]></category>

		<guid isPermaLink="false">http://netwolfuk.wordpress.com/?p=82</guid>
		<description><![CDATA[tcWebHooks - Trigger a WebHook POST from a build event in TeamCity<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=netwolfuk.wordpress.com&blog=16414&post=82&subd=netwolfuk&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>Announcing a beta release (version 0.5.5.5) of a plugin for <a href="http://www.jetbrains.com/teamcity/">TeamCity</a> which enhances TeamCity to provide <a href="http://webhooks.pbworks.com/">WebHook</a> functionality. With the <a href="/teamcity-plugins">tcWebHooks plugin</a> installed, you can tell TeamCity to trigger a webhook POST request as build events occur.</p>
<p>WebHooks are configured on a project basis, and when events occur in the build process, a POST request is submitted to the URL. You can configure as many URLs as you like (within reason) and which events will trigger the request.</p>
<p>There is support for proxies in this version, and webhooks are configured in the TeamCity UI. There are a few outstanding items to tidy up, but the core functionality is working.</p>
<p>The project is on SourceForge at <a href="http://tcplugins.sourceforge.net/">tcplugins.sourceforge.net</a>.</p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/netwolfuk.wordpress.com/82/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/netwolfuk.wordpress.com/82/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/netwolfuk.wordpress.com/82/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/netwolfuk.wordpress.com/82/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/netwolfuk.wordpress.com/82/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/netwolfuk.wordpress.com/82/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/netwolfuk.wordpress.com/82/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/netwolfuk.wordpress.com/82/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/netwolfuk.wordpress.com/82/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/netwolfuk.wordpress.com/82/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=netwolfuk.wordpress.com&blog=16414&post=82&subd=netwolfuk&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://netwolfuk.wordpress.com/2009/06/22/teamcity-webhooks-plugin-beta-available/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/c2845c0bcbd17725c71083db7a46a7d4?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">netwolfuk</media:title>
		</media:content>
	</item>
		<item>
		<title>MythStatusScreenlet 0.1.1 released (theme support)</title>
		<link>http://netwolfuk.wordpress.com/2009/01/15/mythstatusscreenlet-011-released/</link>
		<comments>http://netwolfuk.wordpress.com/2009/01/15/mythstatusscreenlet-011-released/#comments</comments>
		<pubDate>Thu, 15 Jan 2009 10:29:15 +0000</pubDate>
		<dc:creator>netwolfuk</dc:creator>
				<category><![CDATA[Cairo]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Linux Desktop]]></category>
		<category><![CDATA[Python]]></category>
		<category><![CDATA[Screenlets]]></category>
		<category><![CDATA[mythtv]]></category>

		<guid isPermaLink="false">http://netwolfuk.wordpress.com/?p=58</guid>
		<description><![CDATA[I&#8217;m pleased to announce the 0.1.1 release of the MythStatusScreenlet. This release now is &#8220;theme-able&#8221;. I know Screenlets are theme-able already, but the standard theme support really just supports changing the background and other externally loaded graphics (png and svg). UPDATE: It appears I am running an old version of screenlets (0.0.14) and versions 0.1.2 [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=netwolfuk.wordpress.com&blog=16414&post=58&subd=netwolfuk&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>I&#8217;m pleased to announce the 0.1.1 release of the <a title="MythStatusScreenlet" href="http://netwolfuk.wordpress.com/mythstatusscreenlet/">MythStatusScreenlet</a>. This release now is &#8220;theme-able&#8221;. I know <a href="http://www.screenlets.org">Screenlets</a> are theme-able already, <span style="text-decoration:line-through;">but the standard theme support really just supports changing the background and other externally loaded graphics (png and svg)</span>. UPDATE: It appears I am running an old version of screenlets (0.0.14) and versions 0.1.2 and above have a lot more theme support.</p>
<p>In MythStatusScreenlet 0.1.1, I&#8217;ve extended (subclassed) the Screenlets <a title="Screenlets IniReader documentation" href="http://screenlets.sourcearchive.com/documentation/0.0.12/classlib_1_1utils_1_1IniReader.html">utils.ini_reader</a> to load extra options for the theme. These options control the layout and style of all the elements of the MythStatusScreenlet. As a proof of concept, I&#8217;ve quickly built a few other themes including &#8220;mythbuntu&#8221; and &#8220;glass&#8221;. I&#8217;ve renamed the default mepo theme to mepo-transparent, and created a new one for mepo that has a black background. This is because of a comment on the download page saying that a user sometimes found it hard to see the screenlet when backgrounds were changed.</p>
<p>Additionally, there is now support for GTK popups using the Screenlets Notifier class. The MythStatusScreenlet will popup a Notifier window when MythTV starts or finishes a recording.</p>
<p>I&#8217;ve tried to add mouseover tooltips too. However, I&#8217;ve found it to be quite unreliable, so it&#8217;s turned off by default.</p>
<p>I recently built a new <a href="http://www.mythtv.org/">MythTV</a> machine. I installed <a title="mythbuntu.org" href="http://www.mythbuntu.org/">mythbuntu</a> 8.04 on it, which installed MythTv 0.21  Since then, my myth box no longer presents the Temperature information. I suspect a few other people might have the same problem (based on a comment on the gnome-look site), so I&#8217;ve fixed the code to only try and display the Temperature information if it is present. However, this means that I can&#8217;t easily test the Temperature display when building the themes. Please post a comment if you have this working, or have problems with it. Does anyone know if Temperature info is no longer presented in Myth 0.21, or is it a MythBuntu thing?</p>
<p>As usual, downloads are at <a title="Download the MythStatusScreenlet from gnome-look.org" href="http://gnome-look.org/content/show.php/MythStatusScreenlet?content=76511">gnome-look</a>.</p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/netwolfuk.wordpress.com/58/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/netwolfuk.wordpress.com/58/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/netwolfuk.wordpress.com/58/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/netwolfuk.wordpress.com/58/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/netwolfuk.wordpress.com/58/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/netwolfuk.wordpress.com/58/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/netwolfuk.wordpress.com/58/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/netwolfuk.wordpress.com/58/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/netwolfuk.wordpress.com/58/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/netwolfuk.wordpress.com/58/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=netwolfuk.wordpress.com&blog=16414&post=58&subd=netwolfuk&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://netwolfuk.wordpress.com/2009/01/15/mythstatusscreenlet-011-released/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/c2845c0bcbd17725c71083db7a46a7d4?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">netwolfuk</media:title>
		</media:content>
	</item>
		<item>
		<title>PHP and MySQL in Tomcat with Quercus</title>
		<link>http://netwolfuk.wordpress.com/2008/09/03/php-and-mysql-in-tomcat-with-quercus/</link>
		<comments>http://netwolfuk.wordpress.com/2008/09/03/php-and-mysql-in-tomcat-with-quercus/#comments</comments>
		<pubDate>Wed, 03 Sep 2008 12:25:50 +0000</pubDate>
		<dc:creator>netwolfuk</dc:creator>
				<category><![CDATA[web]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[Quercus]]></category>
		<category><![CDATA[Tomcat]]></category>

		<guid isPermaLink="false">http://netwolfuk.wordpress.com/?p=22</guid>
		<description><![CDATA[I was recently shown Quercus which is the PHP 5 engine implemented in pure Java and hence, can run in a servlet engine like Tomcat. Caucho suggest running it in Resin but for work reasons, I needed to get it running in Tomcat.
It was very easy to get PHP working, but the MySQL integration took [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=netwolfuk.wordpress.com&blog=16414&post=22&subd=netwolfuk&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>I was recently shown <a href="http://quercus.caucho.com/">Quercus</a> which is the PHP 5 engine implemented in pure Java and hence, can run in a servlet engine like Tomcat. <a href="http://www.caucho.com/">Caucho</a> suggest running it in <a href="http://caucho.com/resin-3.0/">Resin</a> but for work reasons, I needed to get it running in Tomcat.</p>
<p>It was very easy to get PHP working, but the MySQL integration took a bit more figuring out. All the info I could find on the web assumed you knew all about DBs in Tomcat and didn&#8217;t seem to spell it out.</p>
<p>So here is what I did to get it running in Tomcat 6.0</p>
<h3>Add the required jars to tomcat&#8217;s lib directory</h3>
<ol>
<li>mysql-connector-java-5.1.5-bin.jar (from mysql&#8217;s download page)</li>
<li>quercus.jar (in the quercus zip from caucho)</li>
<li>resin-util.jar (in the quercus zip from caucho)</li>
<li>script-10.jar (in the quercus zip from caucho)</li>
</ol>
<h3>Add the database to tomcats context.xml file</h3>
<p><code>&lt;Context&gt;<br />
&lt;Resource name="jdbc/mydatabasehandle" auth="Container"<br />
type="javax.sql.DataSource"<br />
username="mysql_username"<br />
password="mysql_password"<br />
driverClassName="com.mysql.jdbc.Driver"<br />
maxActive="8"<br />
url="jdbc:mysql://mysqlservername:3306/mysql_actual_database_name?autoReconnect=true&amp;amp;useUnicode=true&amp;amp;characterEncoding=utf-8&amp;amp;mysqlEncoding=utf8"<br />
maxIdle="4"/&gt;<br />
&lt;/Context&gt;</code><br />
Note: the jdbc url is all one line (up to mysqlEncoding=utf8) but is wrapped by the blog layout.<br />
Note: Those really are <strong>&amp;amp;</strong> (ampersand A-M-P semicolon). They are passed into the JDBC driver, and it must then convert html chars into text.</p>
<h3>Add Quercus support to your web.xml</h3>
<p>The quercus zip has an example web.xml file. These pieces below are mostly based on that.<br />
<code>&lt;web-app&gt;<br />
&lt;servlet&gt;<br />
&lt;servlet-name&gt;Quercus Servlet&lt;/servlet-name&gt;<br />
&lt;servlet-class&gt;com.caucho.quercus.servlet.QuercusServlet&lt;/servlet-class&gt;<br />
&nbsp;<br />
&lt;!-- Tells Quercus to use the following JDBC database<br />
and to ignore the arguments of mysqli_connect(). --&gt;<br />
&lt;init-param&gt;<br />
&lt;param-name&gt;database&lt;/param-name&gt;<br />
&lt;param-value&gt;jdbc/mydatabasehandle&lt;/param-value&gt;<br />
&lt;/init-param&gt;<br />
&nbsp;<br />
&lt;servlet-mapping&gt;<br />
&lt;!-- tell tomcat about .php files --&gt;<br />
&lt;servlet-name&gt;Quercus Servlet&lt;/servlet-name&gt;<br />
&lt;url-pattern&gt;*.php&lt;/url-pattern&gt;<br />
&lt;/servlet-mapping&gt;<br />
&nbsp;<br />
&lt;!-- tell tomcat about my php file called "myscript" (no extension)<br />
so that URLs like /myscript/somepath will get "/somepath"<br />
in php's $_SERVER["PATH_INFO"] variable. --&gt;<br />
&nbsp;<br />
&lt;servlet-mapping&gt;<br />
&lt;servlet-name&gt;Quercus Servlet&lt;/servlet-name&gt;<br />
&lt;url-pattern&gt;/myscript/*&lt;/url-pattern&gt;<br />
&lt;/servlet-mapping&gt;<br />
&nbsp;<br />
&lt;/servlet&gt;<br />
&lt;/web-app&gt;</code></p>
<h3>Use mysql in your PHP code</h3>
<p><code>$dbh = mysqli_connect();<br />
if ($result = mysqli_query($dbh, $sql)){<br />
while ($row = mysqli_fetch_object($result)){<br />
print $row-&gt;fieldName;<br />
}<br />
}<br />
mysqli_close($dbh);</code></p>
<h3>Other useful bits and pieces</h3>
<ul>
<li>Note the use of the mysqli methods. I was not successful in getting the plain old mysql commands to work.</li>
<li>$request is the java request object, so you can do stuff like $request-&gt;getUserPrincipal() if you are doing authentication in Tomcat like I was.</li>
</ul>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/netwolfuk.wordpress.com/22/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/netwolfuk.wordpress.com/22/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/netwolfuk.wordpress.com/22/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/netwolfuk.wordpress.com/22/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/netwolfuk.wordpress.com/22/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/netwolfuk.wordpress.com/22/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/netwolfuk.wordpress.com/22/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/netwolfuk.wordpress.com/22/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/netwolfuk.wordpress.com/22/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/netwolfuk.wordpress.com/22/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/netwolfuk.wordpress.com/22/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/netwolfuk.wordpress.com/22/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=netwolfuk.wordpress.com&blog=16414&post=22&subd=netwolfuk&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://netwolfuk.wordpress.com/2008/09/03/php-and-mysql-in-tomcat-with-quercus/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/c2845c0bcbd17725c71083db7a46a7d4?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">netwolfuk</media:title>
		</media:content>
	</item>
		<item>
		<title>Firefox 3 and Compiz Fusion animations</title>
		<link>http://netwolfuk.wordpress.com/2008/06/18/firefox-3-and-compiz-fusion-animations/</link>
		<comments>http://netwolfuk.wordpress.com/2008/06/18/firefox-3-and-compiz-fusion-animations/#comments</comments>
		<pubDate>Wed, 18 Jun 2008 14:17:03 +0000</pubDate>
		<dc:creator>netwolfuk</dc:creator>
				<category><![CDATA[CompizFusion]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Linux Desktop]]></category>

		<guid isPermaLink="false">http://netwolfuk.wordpress.com/?p=16</guid>
		<description><![CDATA[I love Firefox 3, and have been running it on my Gutsy desktop since Beta 3. Firefox 3 now integrates into your desktop&#8217;s skin/theme really nicely, and the upshot of this is that on Linux with Compiz you get to utilise window animations within Firefox.
This sounds great, except that the AwesomeBar and search bar can [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=netwolfuk.wordpress.com&blog=16414&post=16&subd=netwolfuk&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>I love Firefox 3, and have been running it on my Gutsy desktop since Beta 3. Firefox 3 now integrates into your desktop&#8217;s skin/theme really nicely, and the upshot of this is that on Linux with Compiz you get to utilise window animations within Firefox.</p>
<p>This sounds great, except that the <a href="http://ed.agadak.net/2007/11/smartbar-to-awesomebar">AwesomeBar</a> and search bar can end up actually being more distracting than useful. The default Gutsy animations in Compiz Fusion (and possibly in Hardy too) are &#8220;Glide 2&#8243; for open and close animations. Firefox&#8217;s AwesomeBar and SearchBar animations use the &#8220;Utility&#8221; window type, so you can just remove Utility from &#8220;Glide 2&#8243; and add it to another effect. I chose Fade since it was there already, and just added it to the list. Here is a screenshot to better explain it.</p>
<p><a href="http://netwolfuk.files.wordpress.com/2008/06/screenshot-compizconfig-settings-manager.png"><img class="aligncenter size-full wp-image-17" src="http://netwolfuk.files.wordpress.com/2008/06/screenshot-compizconfig-settings-manager.png?w=510&#038;h=291" alt="CompizConfig Settings Manager - Animations" width="510" height="291" /></a></p>
<p>Since I did&#8217;t want the gliding for open or close I added it to Fade, and removed it from Glide 2 in both the Open and Close Animation tabs.</p>
<p>Or, if you want to disable the AwesomeBar completely and go back to the Firefox 2 style, you can apparently set &#8220;browser.urlbar.maxRichResults&#8221; to &#8220;-1&#8243; in Firefox&#8217;s about:config page. The comments in <a title="Don't think the Firefox 3 " href="http://www.downloadsquad.com/2008/06/17/dont-think-the-firefox-3-awesome-bar-is-awesome-heres-how-t/">this post</a> explain how to do that.</p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/netwolfuk.wordpress.com/16/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/netwolfuk.wordpress.com/16/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/netwolfuk.wordpress.com/16/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/netwolfuk.wordpress.com/16/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/netwolfuk.wordpress.com/16/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/netwolfuk.wordpress.com/16/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/netwolfuk.wordpress.com/16/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/netwolfuk.wordpress.com/16/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/netwolfuk.wordpress.com/16/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/netwolfuk.wordpress.com/16/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/netwolfuk.wordpress.com/16/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/netwolfuk.wordpress.com/16/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=netwolfuk.wordpress.com&blog=16414&post=16&subd=netwolfuk&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://netwolfuk.wordpress.com/2008/06/18/firefox-3-and-compiz-fusion-animations/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/c2845c0bcbd17725c71083db7a46a7d4?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">netwolfuk</media:title>
		</media:content>

		<media:content url="http://netwolfuk.files.wordpress.com/2008/06/screenshot-compizconfig-settings-manager.png" medium="image">
			<media:title type="html">CompizConfig Settings Manager - Animations</media:title>
		</media:content>
	</item>
		<item>
		<title>MythStatusScreenlet 0.0.3 released (Hardy support)</title>
		<link>http://netwolfuk.wordpress.com/2008/05/11/mythstatusscreenlet-003-released/</link>
		<comments>http://netwolfuk.wordpress.com/2008/05/11/mythstatusscreenlet-003-released/#comments</comments>
		<pubDate>Sun, 11 May 2008 16:09:48 +0000</pubDate>
		<dc:creator>netwolfuk</dc:creator>
				<category><![CDATA[Cairo]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Linux Desktop]]></category>
		<category><![CDATA[Screenlets]]></category>
		<category><![CDATA[mythtv]]></category>

		<guid isPermaLink="false">http://netwolfuk.wordpress.com/?p=15</guid>
		<description><![CDATA[Announcing the long awaited update to the  MythStatusScreenlet to support Ubuntu Hardy Heron.
After spending quite a lot of time trying to get ElementTree working, I gave up and just rewrote the XML parsing using simple regular expressions. I know it&#8217;s a hack, but at least I have something that should work in Hardy.
# RELEASE: [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=netwolfuk.wordpress.com&blog=16414&post=15&subd=netwolfuk&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>Announcing the long awaited update to the  <a href="http://netwolfuk.wordpress.com/mythstatusscreenlet/">MythStatusScreenlet</a> to support Ubuntu Hardy Heron.</p>
<p>After spending quite a lot of time trying to get ElementTree working, I gave up and just rewrote the XML parsing using simple regular expressions. I know it&#8217;s a hack, but at least I have something that should work in Hardy.</p>
<p># RELEASE: 0.0.3<br />
# &#8211; No longer uses xpath, so should now work in Hardy</p>
<p>You can download the latest file from <a href="http://gnome-look.org/content/show.php/MythStatusScreenlet?content=76511">gnome-look</a>. As usual, let me know if you it doesn&#8217;t work for you.</p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/netwolfuk.wordpress.com/15/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/netwolfuk.wordpress.com/15/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/netwolfuk.wordpress.com/15/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/netwolfuk.wordpress.com/15/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/netwolfuk.wordpress.com/15/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/netwolfuk.wordpress.com/15/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/netwolfuk.wordpress.com/15/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/netwolfuk.wordpress.com/15/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/netwolfuk.wordpress.com/15/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/netwolfuk.wordpress.com/15/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/netwolfuk.wordpress.com/15/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/netwolfuk.wordpress.com/15/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=netwolfuk.wordpress.com&blog=16414&post=15&subd=netwolfuk&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://netwolfuk.wordpress.com/2008/05/11/mythstatusscreenlet-003-released/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/c2845c0bcbd17725c71083db7a46a7d4?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">netwolfuk</media:title>
		</media:content>
	</item>
		<item>
		<title>MythStatusScreenlet 0.0.2 released (MythTV 0.21 support)</title>
		<link>http://netwolfuk.wordpress.com/2008/03/24/mythstatusscreenlet-002-released-mythtv-021-support/</link>
		<comments>http://netwolfuk.wordpress.com/2008/03/24/mythstatusscreenlet-002-released-mythtv-021-support/#comments</comments>
		<pubDate>Mon, 24 Mar 2008 13:47:37 +0000</pubDate>
		<dc:creator>netwolfuk</dc:creator>
				<category><![CDATA[Cairo]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Linux Desktop]]></category>
		<category><![CDATA[Screenlets]]></category>
		<category><![CDATA[mythtv]]></category>

		<guid isPermaLink="false">http://netwolfuk.wordpress.com/?p=14</guid>
		<description><![CDATA[I&#8217;ve released a new MythStatusScreenlet. The release notes are below.
# RELEASE: 0.0.2
# &#8211; Now supports MythTV 0.20 and 0.21 xml formats
# &#8211; Better handling when backend goes away/comes back
You can download the latest file from gnome-look.
       <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=netwolfuk.wordpress.com&blog=16414&post=14&subd=netwolfuk&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>I&#8217;ve released a new <a href="http://netwolfuk.wordpress.com/mythstatusscreenlet/" title="MythStatusScreenlet">MythStatusScreenlet</a>. The release notes are below.</p>
<p># RELEASE: 0.0.2<br />
# &#8211; Now supports MythTV 0.20 and 0.21 xml formats<br />
# &#8211; Better handling when backend goes away/comes back</p>
<p>You can download the latest file from <a href="http://gnome-look.org/content/show.php/MythStatusScreenlet?content=76511">gnome-look</a>.</p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/netwolfuk.wordpress.com/14/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/netwolfuk.wordpress.com/14/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/netwolfuk.wordpress.com/14/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/netwolfuk.wordpress.com/14/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/netwolfuk.wordpress.com/14/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/netwolfuk.wordpress.com/14/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/netwolfuk.wordpress.com/14/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/netwolfuk.wordpress.com/14/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/netwolfuk.wordpress.com/14/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/netwolfuk.wordpress.com/14/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/netwolfuk.wordpress.com/14/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/netwolfuk.wordpress.com/14/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=netwolfuk.wordpress.com&blog=16414&post=14&subd=netwolfuk&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://netwolfuk.wordpress.com/2008/03/24/mythstatusscreenlet-002-released-mythtv-021-support/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/c2845c0bcbd17725c71083db7a46a7d4?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">netwolfuk</media:title>
		</media:content>
	</item>
		<item>
		<title>The MythStatus Screenlet is now available</title>
		<link>http://netwolfuk.wordpress.com/2008/03/07/the-mythstatus-screenlet-is-now-available/</link>
		<comments>http://netwolfuk.wordpress.com/2008/03/07/the-mythstatus-screenlet-is-now-available/#comments</comments>
		<pubDate>Fri, 07 Mar 2008 23:26:47 +0000</pubDate>
		<dc:creator>netwolfuk</dc:creator>
				<category><![CDATA[Cairo]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Linux Desktop]]></category>
		<category><![CDATA[Python]]></category>
		<category><![CDATA[Screenlets]]></category>
		<category><![CDATA[mythtv]]></category>

		<guid isPermaLink="false">http://netwolfuk.wordpress.com/?p=13</guid>
		<description><![CDATA[As mentioned on the MythStatus screenlet page, I&#8217;ve tidied up some of the code and posted a tar on the Screenlets Website.
The MythStatus Screenlet polls the XML info page of MythTV’s backend (normally port 6544), and parses the XML information to display the status of your backend. It shows the next ten upcoming recordings, highlighting [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=netwolfuk.wordpress.com&blog=16414&post=13&subd=netwolfuk&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>As mentioned on the <a href="http://netwolfuk.wordpress.com/mythstatusscreenlet/">MythStatus screenlet</a> page, I&#8217;ve tidied up some of the code and posted a tar on the <a href="http://screenlets.org/index.php/MythStatus">Screenlets Website.</a></p>
<blockquote><p>The MythStatus Screenlet polls the XML info page of MythTV’s backend (normally port 6544), and parses the XML information to display the status of your backend. It shows the next ten upcoming recordings, highlighting in red, any that are currently recording.</p>
<p>It also shows Last Guide Update status, a disk space graph, Load Average and Temperature as provided by MythTV’s XML status page.</p></blockquote>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/netwolfuk.wordpress.com/13/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/netwolfuk.wordpress.com/13/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/netwolfuk.wordpress.com/13/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/netwolfuk.wordpress.com/13/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/netwolfuk.wordpress.com/13/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/netwolfuk.wordpress.com/13/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/netwolfuk.wordpress.com/13/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/netwolfuk.wordpress.com/13/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/netwolfuk.wordpress.com/13/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/netwolfuk.wordpress.com/13/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/netwolfuk.wordpress.com/13/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/netwolfuk.wordpress.com/13/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=netwolfuk.wordpress.com&blog=16414&post=13&subd=netwolfuk&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://netwolfuk.wordpress.com/2008/03/07/the-mythstatus-screenlet-is-now-available/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/c2845c0bcbd17725c71083db7a46a7d4?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">netwolfuk</media:title>
		</media:content>
	</item>
		<item>
		<title>Problems converting back to the RadioTimes grabber &#8211; solved</title>
		<link>http://netwolfuk.wordpress.com/2008/01/08/problems-converting-back-to-the-radiotimes-grabber-solved/</link>
		<comments>http://netwolfuk.wordpress.com/2008/01/08/problems-converting-back-to-the-radiotimes-grabber-solved/#comments</comments>
		<pubDate>Tue, 08 Jan 2008 11:35:20 +0000</pubDate>
		<dc:creator>netwolfuk</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[mythtv]]></category>
		<category><![CDATA[xmltv]]></category>

		<guid isPermaLink="false">http://netwolfuk.wordpress.com/2008/01/08/problems-converting-back-to-the-radiotimes-grabber-solved/</guid>
		<description><![CDATA[I used to use the excellent RadioTimes XML data with the XMLTV grabber to get my listings for MythTV. When the RadioTimes data was a little slow in coming over Christmas and New Year, I gave the EIT listings data a try.
The EIT data (pulling the programme listings from out of the DVB signal) mostly [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=netwolfuk.wordpress.com&blog=16414&post=12&subd=netwolfuk&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>I used to use the excellent <a href="http://www.radiotimes.com/">RadioTimes</a> XML data with the XMLTV grabber to get my listings for <a href="http://www.mythtv.org">MythTV</a>. When the RadioTimes data was a <a href="http://talk.radiotimes.com/thread.jspa?threadID=400000433">little slow in coming</a> over Christmas and New Year, I gave the <a href="http://www.mythtv.org/wiki/index.php/EIT">EIT listings data</a> a try.</p>
<p>The EIT data (pulling the programme listings from out of the DVB signal) mostly worked, but I think my little argos indoor aerial is not quite reliable enough. I kept getting<br />
<code>Started PESPacket, but !payloadStart()<br />
Error: offset&gt;181, pes length &amp; current can not be queried</code><br />
and then the backend would crash. I can only assume that my DVB stream is too full of errors. I hope to get a proper loft aerial sometime, but generally recordings are &#8220;good enough&#8221; (as long as it&#8217;s not too windy).</p>
<p>The EIT grabber had run long enough to get a weeks worth of data, so I thought I&#8217;d turn it off and wait for the RT site to come back online. A few days later the wonderful people at the RT had their side all sorted, and I was in a position to re-instate the RT grabber. However, when I went back into mythtv-setup, XMLTV was not listed as an option when setting up the source. The mythtv-setup app would just spit out errors saying <code> Failed to run tv_find_grabbers</code></p>
<p>Since I had it running in the past, I knew it worked, but I had upgraded Fedora and MythTV since I had set up Myth, so maybe that script is missing from my machine, and I had not noticed.</p>
<p>I started out by re-running <b><tt>tv_grab_uk_rt --configure</tt></b> as per <a href="http://www.mythtv.org/wiki/index.php/Mythfilldatabase#External_XMLTV">the Myth XMLTV page</a>, and that did what it was supposed to do. Then I ran a test <b><tt>tv_grab_uk_rt --config-file ~/.mythtv/Freeview.xmltv --output /tmp/freeview.xml</tt></b> and it pulled down the listings correctly and dumped them into the xml file. So I ran <b><tt>mythfilldatabase</tt></b> again, and it still did nothing much. Therefore, the xmltv grabber must need to be configured in the database somewhere.</p>
<p>I had a look in the database, and found the following line<br />
<code>mysql&gt; select * from videosource\G<br />
*************************** 1. row ***************************<br />
sourceid: 1<br />
name: Freeview<br />
xmltvgrabber: /bin/true<br />
userid:<br />
freqtable: default<br />
lineupid: NULL<br />
password: NULL<br />
useeit: 0<br />
1 row in set (0.00 sec)</code><br />
This looked promising, so I changed it to &#8216;/usr/bin/tv_grab_uk_rt&#8217; and ran mythfilldatabase. However, it would complain that I was calling the grabber wrongly and the error was something like &#8220;You may need to upgrade your xmltv grabber&#8221;.</p>
<p>Then I changed it to just &#8216;tv_grab_uk_rt&#8217; (because reading <a href="http://www.mail-archive.com/mythtv-dev@mythtv.org/msg09467.html">this post</a> hinted at the fact that it might be hardcoded to the name, not the path) and it all started working again. Yey!</p>
<p>Don&#8217;t forget to check that all the channels are configured with the XMLTV IDs in the channel table, by looking at the Channel Info page in MythWeb (mine had all disappeared as part of the EIT change), and that your source has a corresponding xmltv file in ~/.mythtv/&lt;<i>sourcename</i>&gt;.xmltv</p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/netwolfuk.wordpress.com/12/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/netwolfuk.wordpress.com/12/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/netwolfuk.wordpress.com/12/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/netwolfuk.wordpress.com/12/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/netwolfuk.wordpress.com/12/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/netwolfuk.wordpress.com/12/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/netwolfuk.wordpress.com/12/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/netwolfuk.wordpress.com/12/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/netwolfuk.wordpress.com/12/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/netwolfuk.wordpress.com/12/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/netwolfuk.wordpress.com/12/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/netwolfuk.wordpress.com/12/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=netwolfuk.wordpress.com&blog=16414&post=12&subd=netwolfuk&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://netwolfuk.wordpress.com/2008/01/08/problems-converting-back-to-the-radiotimes-grabber-solved/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/c2845c0bcbd17725c71083db7a46a7d4?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">netwolfuk</media:title>
		</media:content>
	</item>
	</channel>
</rss>