<?xml version="1.0" encoding="ISO-8859-1"?>
<feed version="0.3" xmlns="http://purl.org/atom/ns#" xml:lang="en-US">
	<title>Bollogs</title>
	<link rel="alternate" type="text/html" href="http://www.portly.net/sphpblog/index.php" />
	<modified>2012-02-06T01:00:02Z</modified>
	<author>
		<name>No Author</name>
	</author>
	<copyright>Copyright 2012, No Author</copyright>
	<generator url="http://www.sourceforge.net/projects/sphpblog" version="0.5.1">SPHPBLOG</generator>
	<entry>
		<title>CUPS 1.4.3 and printing that just won;t work</title>
		<link rel="alternate" type="text/html" href="http://www.portly.net/sphpblog/index.php?entry=entry111102-105819" />
		<content type="text/html" mode="escaped"><![CDATA[Had a problem today where I was trying to print from an Ubuntu machine with CUPS running locally and it just sat there in a &#039;Pending&#039; state.<br /><br />Eventually I tried to use the &#039;Resume Printer&#039; action in the Printers section of <a href="http://localhost:631" target="_blank" >http://localhost:631</a>, but &#039;twas to no avail, principally because I had to log in .. and I wasn&#039;t in the group !<br /><br />Adding myself to the group &#039;lpadmin&#039; allowed me to resume, and all is well.<br /><br />Apparently, CUPS gets the ache if there&#039;s an error (like the printer not being switched on) and this activity may need to be repeated regularly ... boo ]]></content>
		<id>http://www.portly.net/sphpblog/index.php?entry=entry111102-105819</id>
		<issued>2011-11-02T00:00:00Z</issued>
		<modified>2011-11-02T00:00:00Z</modified>
	</entry>
	<entry>
		<title>VBox install for CENToS</title>
		<link rel="alternate" type="text/html" href="http://www.portly.net/sphpblog/index.php?entry=entry110613-094040" />
		<content type="text/html" mode="escaped"><![CDATA[<a href="http://www.if-not-true-then-false.com/2010/install-virtualbox-with-yum-on-fedora-centos-red-hat-rhel/" target="_blank" >These </a>instructions helped a lot with resolving the KERN_DIR issue]]></content>
		<id>http://www.portly.net/sphpblog/index.php?entry=entry110613-094040</id>
		<issued>2011-06-13T00:00:00Z</issued>
		<modified>2011-06-13T00:00:00Z</modified>
	</entry>
	<entry>
		<title>Jailbreaking and Apple TV 2</title>
		<link rel="alternate" type="text/html" href="http://www.portly.net/sphpblog/index.php?entry=entry110425-144417" />
		<content type="text/html" mode="escaped"><![CDATA[I never thought I&#039;d say it, but I love the Apple TV 2. I only really love it when it&#039;s dirty; when it&#039;s jailbroken and free to be used properly.<br /><br />Here&#039;s how I JB&#039;ed mine, using Windows;-<br /><br />Ensure you have iTunes updated and ready <b>BEFORE</b> you start this<br /><br />Plug your Apple TV in a couple of times via  nice micro-USB cable to make sure the drivers are all loaded and ready<br /><br />Download Seas0nPass from <a href="http://support.firecore.com/entries/387605" target="_blank" >here</a><br /><br /><br />Run seasonpass, and follow the instructions ... it can take a long while to download the IPSW and build it<br /><br />When instructed, plug the Apple TV 2 in, and put it into DFU mode<br /><br />Try and load the IPSW you created<br /><br />If you get a 21 error, it&#039;s because you didn&#039;t have the ATV in DFU mode<br /><br />If you get 1600, 1601 or 1602 errors try a new cable<br /><br />If you still get them, try this;-<br /><br />Download sn0wbreeze 2.6 from <a href="http://ih8sn0w.com/index.php/welcome.snow" target="_blank" >here</a> <br /><br />Start it up, and instead of creating a new IPSW, just drop in the one that SeasonPass created (which will be in the Documents folder of your drive)<br /><br />Let it run iReb<br /><br />Then plug in the ATV and do the shift+restore option to pull in that IPSW once again <br /><br />It seemed to me that the iReb action just did enough to get me over those 16xx errors; no idea why !<br /><br />You&#039;re in !!!<br /><br /><br /><br />]]></content>
		<id>http://www.portly.net/sphpblog/index.php?entry=entry110425-144417</id>
		<issued>2011-04-25T00:00:00Z</issued>
		<modified>2011-04-25T00:00:00Z</modified>
	</entry>
	<entry>
		<title>Generate Java classes from XSDs usign Maven</title>
		<link rel="alternate" type="text/html" href="http://www.portly.net/sphpblog/index.php?entry=entry110221-042536" />
		<content type="text/html" mode="escaped"><![CDATA[Use this little snippet of configuration in a POM to get a task to use a XJC task within your Maven config<br /><br /><pre><br /><br />&lt;plugin&gt;<br />	&lt;groupId&gt;org.codehaus.mojo&lt;/groupId&gt;<br />	&lt;artifactId&gt;jaxb2-maven-plugin&lt;/artifactId&gt;<br />	&lt;version&gt;1.3&lt;/version&gt;<br />	 &lt;executions&gt;<br />                 &lt;execution&gt;<br />                     &lt;goals&gt;<br />                         &lt;goal&gt;xjc&lt;/goal&gt;<br />                     &lt;/goals&gt;<br />                 &lt;/execution&gt;<br />            &lt;/executions&gt;<br />            &lt;configuration&gt;<br />                 &lt;packageName&gt;com.fatwire.rest.aviva.beans&lt;/packageName&gt; <br />                 &lt;outputDirectory&gt;${basedir}/src/main/jaxb&lt;/outputDirectory&gt;<br />                 &lt;schemaDirectory&gt;${basedir}/src/main/resources&lt;/schemaDirectory&gt;<br />            &lt;/configuration&gt;<br />&lt;/plugin&gt;<br />			<br /></pre><br /><br />I&#039;m using a whole new <code>jaxb</code> directory to store the generated files, just for safety.]]></content>
		<id>http://www.portly.net/sphpblog/index.php?entry=entry110221-042536</id>
		<issued>2011-02-21T00:00:00Z</issued>
		<modified>2011-02-21T00:00:00Z</modified>
	</entry>
	<entry>
		<title>Forgotten password for archiva</title>
		<link rel="alternate" type="text/html" href="http://www.portly.net/sphpblog/index.php?entry=entry100921-003116" />
		<content type="text/html" mode="escaped"><![CDATA[If you have forgotten the password for your archiva install, try this route;-<br /><br />- Log in to archiva as the &#039;guest&#039; user (blank password) and change the password to something else<br />- Shut down archiva<br />- Install SQuirreL and ensure you opt to have the Derby Embedded driver installed<br />- Start SQuirreL and configure the Derby Embedded driver<br /><br />The Derby Embedded driver needs to have the following properties set;<br /><br />- User name is &#039;sa&#039;, but password is blank<br />- On the Extra Classpath tab, add derby.jar<br />- the JDBC URL is in the form jdbc:derby:/&lt;PATH TO YOUR&gt;/archiva/database<br /><br />Once it is configured, test it and then log in (after creating an alias)<br /><br />When connected, locate the &#039;SA&#039; schema and expand it to find the &#039;JDOUSER&#039; table. <br /><br />Open the table and click on the &#039;Content&#039; tab that appears. There may be many rows but you need to find the column for the Guest user&#039;s password and copy the contents into the same column on the admin row<br /><br />Restart archiva<br /><br />Log in, bob&#039;s your wotsit]]></content>
		<id>http://www.portly.net/sphpblog/index.php?entry=entry100921-003116</id>
		<issued>2010-09-20T00:00:00Z</issued>
		<modified>2010-09-20T00:00:00Z</modified>
	</entry>
	<entry>
		<title>DHCP fails to work for eth0 on Ubuntu 10.04</title>
		<link rel="alternate" type="text/html" href="http://www.portly.net/sphpblog/index.php?entry=entry100730-231057" />
		<content type="text/html" mode="escaped"><![CDATA[(FYI: Using a Dell Latitude E6400 with Ubuntu 10.04, patched to latest release (July 2010) with network manager doing the work for me)<br /><br />Very strange problem, around not being able to get an IP address for a wired connection in the house (although wireless was fine).<br /><br />Ran, dhclient and got this<br /><code><br />Internet Systems Consortium DHCP Client V3.1.3<br />Copyright 2004-2009 Internet Systems Consortium.<br />All rights reserved.<br />For info, please visit <a href="https://www.isc.org/software/dhcp/" target="_blank" >https://www.isc.org/software/dhcp/</a><br /><br />Listening on LPF/eth0/00:26:b9:a7:60:76<br />Sending on   LPF/eth0/00:26:b9:a7:60:76<br />Sending on   Socket/fallback<br />DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 5<br />DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 7<br />DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 15<br />DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 13<br />DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 21<br />No DHCPOFFERS received.<br />No working leases in persistent database - sleeping.<br /></code><br /><br />so I logged into the router and discovered that although I had allocated a fixed IP address to my machine, the NAS I also have on the network (which does not have a fixed IP address), had stolen the address, which obviously caused the problems for my machine.<br /><br />I deleted the old leases and took out the fixed allocation and then restarted network manager using <br /><br /><code><br />&gt; sudo restart network-manager<br /></code><br /><br />and all was well !<br /><br /><code><br />&gt; sudo dhclient eth0<br /><br />There is already a pid file /var/run/dhclient.pid with pid 2863<br />killed old client process, removed PID file<br />Internet Systems Consortium DHCP Client V3.1.3<br />Copyright 2004-2009 Internet Systems Consortium.<br />All rights reserved.<br />For info, please visit <a href="https://www.isc.org/software/dhcp/" target="_blank" >https://www.isc.org/software/dhcp/</a><br /><br />Listening on LPF/eth0/00:26:b9:a7:60:76<br />Sending on   LPF/eth0/00:26:b9:a7:60:76<br />Sending on   Socket/fallback<br />DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 8<br />DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 12<br />DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 9<br />DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 9<br />DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 15<br />DHCPOFFER of 192.168.1.69 from 192.168.1.254<br />DHCPREQUEST of 192.168.1.69 on eth0 to 255.255.255.255 port 67<br />DHCPACK of 192.168.1.69 from 192.168.1.254<br />bound to 192.168.1.69 -- renewal in 33105 seconds.<br /></code>]]></content>
		<id>http://www.portly.net/sphpblog/index.php?entry=entry100730-231057</id>
		<issued>2010-07-30T00:00:00Z</issued>
		<modified>2010-07-30T00:00:00Z</modified>
	</entry>
	<entry>
		<title>JODE decompiler for Eclipse in Ubuntu</title>
		<link rel="alternate" type="text/html" href="http://www.portly.net/sphpblog/index.php?entry=entry100624-115827" />
		<content type="text/html" mode="escaped"><![CDATA[Great article <a href="http://ubuntuforums.org/showthread.php?t=932691" target="_blank" >here</a> about setting up JODE for use within Eclipse.<br /><br />I can&#039;t live without a Java decompiler !]]></content>
		<id>http://www.portly.net/sphpblog/index.php?entry=entry100624-115827</id>
		<issued>2010-06-24T00:00:00Z</issued>
		<modified>2010-06-24T00:00:00Z</modified>
	</entry>
	<entry>
		<title>Virtual Box and mounted drives</title>
		<link rel="alternate" type="text/html" href="http://www.portly.net/sphpblog/index.php?entry=entry100514-154811" />
		<content type="text/html" mode="escaped"><![CDATA[Having problems mounting a drive in VBox ? If it used to work and no longer does, try re-installing the Guest additions.<br /><br /><a href="http://www.codeweblog.com/ubuntu-shared-folder-problem/" target="_blank" >This</a> article explains a little more, but to summarize, check that you have the vboxvfs available by typing<br /><br /><code>lsmod | grep vbox</code><br /><br />also, consider using modprobe to bring it back if it went away ... <br /><br /><code>sudo modprobe vboxvfs load</code><br /><br />Reinstalling Guest additions also fixed the problem I was having with the Host key needing to be pressed even when I have enabled the option to make it seamless.]]></content>
		<id>http://www.portly.net/sphpblog/index.php?entry=entry100514-154811</id>
		<issued>2010-05-14T00:00:00Z</issued>
		<modified>2010-05-14T00:00:00Z</modified>
	</entry>
	<entry>
		<title>Cancel an apt-get installation</title>
		<link rel="alternate" type="text/html" href="http://www.portly.net/sphpblog/index.php?entry=entry100512-153753" />
		<content type="text/html" mode="escaped"><![CDATA[run<br /><br /><code>sudo nautilus /var/cache/apt/archives/partial</code><br /><br />then remove all files in that directory, but not the directory itself.<br /><br />Then restart the apt-get operation]]></content>
		<id>http://www.portly.net/sphpblog/index.php?entry=entry100512-153753</id>
		<issued>2010-05-12T00:00:00Z</issued>
		<modified>2010-05-12T00:00:00Z</modified>
	</entry>
	<entry>
		<title>Maven - some stuff I learnt</title>
		<link rel="alternate" type="text/html" href="http://www.portly.net/sphpblog/index.php?entry=entry100108-143442" />
		<content type="text/html" mode="escaped"><![CDATA[How to set up your settings.xml so that it uses your local Archiva repository as first port of call ... <a href="http://www.avajava.com/tutorials/lessons/how-do-i-use-archiva-as-a-mirror-of-the-maven-central-repository.html" target="_blank" >here</a><br /><br />If you want to use Maven in your build.xml, you need to do the following;-<br />- Add the maven-ant-tasks .. get them from <a href="http://maven.apache.org/ant-tasks/index.html" target="_blank" >here</a><br /><br />- Add the following namespace to the <code>&lt;project&gt;</code> tag like this ... <br /><code>&lt;project name=&quot;projname&quot; default=&quot;init&quot; basedir=&quot;.&quot; xmlns:artifact=&quot;antlib:org.apache.maven.artifact.ant&quot;&gt;</code><br /><br />- Think about copying the required libs into a local lib directory prior to compilation like this ... <br /><code><br />&lt;target name=&quot;resolve&quot; depends=&#039;init&#039; description=&quot;--&gt; retrieve dependencies with maven&quot;&gt;<br />	&lt;!-- Resolve dependencies using local settings.xml --&gt;<br />	&lt;artifact:dependencies filesetId=&quot;dependency.fileset&quot; settingsFile=&quot;./settings.xml&quot;&gt;<br />		&lt;pom file=&quot;pom.xml&quot; /&gt;<br />	&lt;/artifact:dependencies&gt;<br /><br />	&lt;!-- Copy all dependencies to the correct location. --&gt;<br />	&lt;copy todir=&quot;${lib}&quot;&gt;<br />		&lt;fileset refid=&quot;dependency.fileset&quot; /&gt;<br />		&lt;!-- This mapper strips off all leading directory information --&gt;<br />		&lt;mapper type=&quot;flatten&quot; /&gt;<br />	&lt;/copy&gt;<br />&lt;/target&gt;<br /></code><br />... note the use of the <code>settingsFile</code> attribute for using a local settings.xml<br />]]></content>
		<id>http://www.portly.net/sphpblog/index.php?entry=entry100108-143442</id>
		<issued>2010-01-08T00:00:00Z</issued>
		<modified>2010-01-08T00:00:00Z</modified>
	</entry>
	<entry>
		<title>Synergy - share a mouse and keyboard across machines</title>
		<link rel="alternate" type="text/html" href="http://www.portly.net/sphpblog/index.php?entry=entry091027-075734" />
		<content type="text/html" mode="escaped"><![CDATA[This is awesome - Synergy <a href="http://synergy2.sourceforge.net/" >here</a><br /><br />and the Ubuntu client <a href="http://code.google.com/p/quicksynergy/" target="_blank" >here</a>, although using<br /><br /><code>apt-get install quicksynergy</code> <br /><br />gives you the binary, rather than having to compile it all<br /><br />You can download a binary setup for Windows from the SF site<br /><br />Set the windows machine as the client and connect the keyboard and mouse to the Linux box. <br /><br />There&#039;s also a DMG for Apple machines as well<br /><br />Works a treat !]]></content>
		<id>http://www.portly.net/sphpblog/index.php?entry=entry091027-075734</id>
		<issued>2009-10-27T00:00:00Z</issued>
		<modified>2009-10-27T00:00:00Z</modified>
	</entry>
	<entry>
		<title>ReadyNAS and shares in Windows</title>
		<link rel="alternate" type="text/html" href="http://www.portly.net/sphpblog/index.php?entry=entry091004-054616" />
		<content type="text/html" mode="escaped"><![CDATA[Using the NoSMBDisconnect addon <a href="http://www.readynas.com/download/addons/4.1/NoSMBDisconnect_0.2.bin" target="_blank" >from here</a> seems to have helped with disconnection issues I had with Windows.<br /><br />Previously I was getting a lot of  &quot;The specified network name is no longer avaliable&quot; messages, which is a little frustrating.]]></content>
		<id>http://www.portly.net/sphpblog/index.php?entry=entry091004-054616</id>
		<issued>2009-10-04T00:00:00Z</issued>
		<modified>2009-10-04T00:00:00Z</modified>
	</entry>
	<entry>
		<title>Cheeky script to create a SVN repository</title>
		<link rel="alternate" type="text/html" href="http://www.portly.net/sphpblog/index.php?entry=entry090913-045702" />
		<content type="text/html" mode="escaped"><![CDATA[$SVN_ROOT=/svn_location<br />$MY_SVN_USER=svnuser<br /><br />mkdir $SVN_ROOT/$1<br />mkdir /tmp/$1<br />mkdir /tmp/$1/branches<br />mkdir /tmp/$1/tags<br />mkdir /tmp/$1/trunk<br />svnadmin create $SVN_ROOT/$1<br />svn import /tmp/$1 file://$SVN_ROOT/$1 -m &quot;initial import for $1&quot; <br />rm -rf /tmp/$1<br /><br />sudo chown -R $MY_SVN_USER:$MY_SVN_USER $SVN_ROOT/$1<br />sudo chmod 2770 -R $SVN_ROOT/$1<br /><br />]]></content>
		<id>http://www.portly.net/sphpblog/index.php?entry=entry090913-045702</id>
		<issued>2009-09-13T00:00:00Z</issued>
		<modified>2009-09-13T00:00:00Z</modified>
	</entry>
	<entry>
		<title>Setting up subversion for access </title>
		<link rel="alternate" type="text/html" href="http://www.portly.net/sphpblog/index.php?entry=entry090314-160313" />
		<content type="text/html" mode="escaped"><![CDATA[Found <a href="http://svn.haxx.se/dev/archive-2004-03/0253.shtml" target="_blank" >this</a> document (in an email thread) quite useful ... <br /><br />and this one about users and passwords <a href="http://scorreiait.wordpress.com/2009/06/11/svnssh/" target="_blank" >http://scorreiait.wordpress.com/2009/06/11/svnssh/</a>]]></content>
		<id>http://www.portly.net/sphpblog/index.php?entry=entry090314-160313</id>
		<issued>2009-03-14T00:00:00Z</issued>
		<modified>2009-03-14T00:00:00Z</modified>
	</entry>
	<entry>
		<title>Find in unix</title>
		<link rel="alternate" type="text/html" href="http://www.portly.net/sphpblog/index.php?entry=entry081010-044644" />
		<content type="text/html" mode="escaped"><![CDATA[Still haven&#039;t found what you&#039;re looking for ?<br /><br />Try this<br /><br /><a href="http://www.athabascau.ca/html/depts/compserv/webunit/HOWTO/find.htm" target="_blank" >Useful find sequences for Unix</a><br /><br />]]></content>
		<id>http://www.portly.net/sphpblog/index.php?entry=entry081010-044644</id>
		<issued>2008-10-10T00:00:00Z</issued>
		<modified>2008-10-10T00:00:00Z</modified>
	</entry>
	<entry>
		<title>Dumping a SQL Server table to SQL statements</title>
		<link rel="alternate" type="text/html" href="http://www.portly.net/sphpblog/index.php?entry=entry080923-035442" />
		<content type="text/html" mode="escaped"><![CDATA[This useful utility will extract the contents of tables in SQL Server and dump them to a file ... I&#039;ve found it useful when I&#039;ve been wanting to dump a subset of data from one environment to another ...<br /><br /><a href="http://www.microsoft.com/downloads/details.aspx?FamilyId=56E5B1C5-BF17-42E0-A410-371A838E570A&amp;displaylang=en" target="_blank" >MS Database Publishing Wizard</a><br /><br />Kudos to <a href="http://www.simonholywell.com/article/sql-server-2005-dump-to-sql-statements.html" target="_blank" >this blog entry</a> for pointing me in the right direction !]]></content>
		<id>http://www.portly.net/sphpblog/index.php?entry=entry080923-035442</id>
		<issued>2008-09-23T00:00:00Z</issued>
		<modified>2008-09-23T00:00:00Z</modified>
	</entry>
	<entry>
		<title>Unknown Source shows up instead of line numbers in a Java stack trace</title>
		<link rel="alternate" type="text/html" href="http://www.portly.net/sphpblog/index.php?entry=entry080912-044059" />
		<content type="text/html" mode="escaped"><![CDATA[If you get a stack trace in a piece of code that is difficult to debug through Eclipse (or simialr) and you rely on the stack trace to tell you where an exception is occuring, you may sometimes see <code>(Unknown Source)</code> instead of a line number ... never fear, to get the line numbers to appear, make sure you switch the debugging information on for a class when it is compiled. i.e. don&#039;t specify the &#039;<code>-g:none</code>&#039; flag when compiling, or, in Ant, make sure you set the following attribute for the <code>javac</code> task;<br /><br /><code>&lt;javac srcdir=&quot;${src}&quot; destdir=&quot;${build}&quot; debug=&quot;true&quot;&gt;</code>]]></content>
		<id>http://www.portly.net/sphpblog/index.php?entry=entry080912-044059</id>
		<issued>2008-09-12T00:00:00Z</issued>
		<modified>2008-09-12T00:00:00Z</modified>
	</entry>
	<entry>
		<title>Find out your user details in PHP</title>
		<link rel="alternate" type="text/html" href="http://www.portly.net/sphpblog/index.php?entry=entry080813-030334" />
		<content type="text/html" mode="escaped"><![CDATA[Use these lines to fidn out various information about your process in a PHP file;<br /><code><br />echo &#039;Id: &#039; . getmyuid() . &#039;&lt;br /&gt;&#039;;<br />echo &#039;Gid: &#039; . getmygid() . &#039;&lt;br /&gt;&#039;;<br />echo nl2br(print_r(stat(&#039;index.php&#039;), true));<br /></code><br /><br />often comes in handy when you&#039;re writing to a file in a Unix environment and it just won&#039;t work !<br />]]></content>
		<id>http://www.portly.net/sphpblog/index.php?entry=entry080813-030334</id>
		<issued>2008-08-13T00:00:00Z</issued>
		<modified>2008-08-13T00:00:00Z</modified>
	</entry>
	<entry>
		<title>Smarty, Unix permissions, pain, woe, grief</title>
		<link rel="alternate" type="text/html" href="http://www.portly.net/sphpblog/index.php?entry=entry080707-155456" />
		<content type="text/html" mode="escaped"><![CDATA[As it says ...<br /><br />had a custom function in Smarty called &#039;currency&#039;<br /><br />the owner of the directory was &#039;fred&#039;, the group was &#039;fred&#039;. Cushty.<br /><br />Kept getting this message;<br /><br /><code>Fatal error: Smarty error: [in school_search.tpl line 100]: [plugin] unknown tag - &#039;currency&#039; (core.load_plugins.php, line 118) in /opt/lampp/lao/libs/Smarty.class.php on line 1095</code><br /><br />Turns out the group and other permissions have to be set to &#039;r&#039; as well ...<br /><br />obvious to a Unix guru ! Less obvious to a pleb like me :-(]]></content>
		<id>http://www.portly.net/sphpblog/index.php?entry=entry080707-155456</id>
		<issued>2008-07-07T00:00:00Z</issued>
		<modified>2008-07-07T00:00:00Z</modified>
	</entry>
	<entry>
		<title>MDI MS-DOS</title>
		<link rel="alternate" type="text/html" href="http://www.portly.net/sphpblog/index.php?entry=entry080605-073636" />
		<content type="text/html" mode="escaped"><![CDATA[Some tools I have encountered lately that are a bit special ...<br /><br /><a href="http://www.quanetic.com/regex.php" target="_blank" >online regular expression checker</a><br /><br /><a href="http://www.activestate.com/Products/komodo_ide/komodo_edit.mhtml" target="_blank" >komodo open source IDE - source/text editor</a><br /><br /><a href="http://sourceforge.net/projects/console/" target="_blank" >console2 - an MDI MS-DOS console</a><br /><br /><a href="http://www.foxitsoftware.com/pdf/rd_intro.php" target="_blank" >foxit - PDF reader - 1000 x better than the adobe effort !</a><br /><br />]]></content>
		<id>http://www.portly.net/sphpblog/index.php?entry=entry080605-073636</id>
		<issued>2008-06-05T00:00:00Z</issued>
		<modified>2008-06-05T00:00:00Z</modified>
	</entry>
	<entry>
		<title>XMing and plink</title>
		<link rel="alternate" type="text/html" href="http://www.portly.net/sphpblog/index.php?entry=entry080514-050548" />
		<content type="text/html" mode="escaped"><![CDATA[Useful X Server <a href="http://www.straightrunning.com/XmingNotes/" target="_blank" >here</a> for Windows. Called Xming.<br /><br />X Servers and the like are a mystery to me; all I know is that if I start the XMing server in Windows, then add it&#039;s program directory to my path, then go to a command prompt and type<br /><br /><code><strong>plink.exe -pw my_secret_password -ssh -X username@machine_ip_or_name xcalc</strong></code><br /><br />then I can get an xcalc application running on my desktop<br /><br />Now that&#039;s progress for you !<br />]]></content>
		<id>http://www.portly.net/sphpblog/index.php?entry=entry080514-050548</id>
		<issued>2008-05-14T00:00:00Z</issued>
		<modified>2008-05-14T00:00:00Z</modified>
	</entry>
	<entry>
		<title>Eclipse says &#039;The type java.lang.Object cannot be resolved&#039;</title>
		<link rel="alternate" type="text/html" href="http://www.portly.net/sphpblog/index.php?entry=entry080401-082933" />
		<content type="text/html" mode="escaped"><![CDATA[I created a new project in Eclipse today and added a class.<br /><br />The <code>package<code> statement had been underlined in red and gave me the <b>The type java.lang.Object cannot be resolved</b> error message .... turns out I needed to add a JRE to my project ... d&#039;oh !<br /><br />see <a href="http://redgloo.sse.rdg.ac.uk/java/weblog/1255.html" target="_blank" >here</a> for more info]]></content>
		<id>http://www.portly.net/sphpblog/index.php?entry=entry080401-082933</id>
		<issued>2008-04-01T00:00:00Z</issued>
		<modified>2008-04-01T00:00:00Z</modified>
	</entry>
	<entry>
		<title>LAMPP/XAMPP and phpMyAdmin errors</title>
		<link rel="alternate" type="text/html" href="http://www.portly.net/sphpblog/index.php?entry=entry080317-051808" />
		<content type="text/html" mode="escaped"><![CDATA[Just installed <a href="&#039;http://www.apachefriends.org/en/xampp.html&#039;" target="_blank" >XAMPP</a> and got a problem when I went to click on the phpMyAdmin link in the menu<br /><br /><code>&quot;please check errors given in your PHP and/or webserver log file and configure your PHP installation properly.&quot;</code> <br /><br />turns out it&#039;s related to php not having access to the nominated directory (<code>/tmp</code>) where it likes to store its session information.<br /><br />The resolution;<br /><br /><code>prompt&gt; chmod 777 /tmp</code><br /><br />simple !]]></content>
		<id>http://www.portly.net/sphpblog/index.php?entry=entry080317-051808</id>
		<issued>2008-03-17T00:00:00Z</issued>
		<modified>2008-03-17T00:00:00Z</modified>
	</entry>
	<entry>
		<title>Foreign Keys in MYSQL</title>
		<link rel="alternate" type="text/html" href="http://www.portly.net/sphpblog/index.php?entry=entry080212-054015" />
		<content type="text/html" mode="escaped"><![CDATA[I&#039;ve been doing some work in my spare time on a PHP/MySQL site. <br />I decided to be all proper and use foreign keys to make everything nice.<br /><br />I set up a script and ran it and it kept failing with this;<br /><code><b><br />ERROR 1005 (HY000) at line 88: Can&#039;t create table &#039;.\database_name\table_name.frm&#039; (errno: 150)</b></code><br /><br />the script said this<br /><br /><code>,FOREIGN KEY (status_ID) REFERENCES Status(status_ID) ON DELETE NO ACTION ON UPDATE NO ACTION</code><br /><br />ans both the status_ID in the table I was creating, and the status ID in the table I was referencing were <code>INT NOT NULL</code>, so I could not work out why it was happening ... until I realised that the key I was referencing was in fact <code>INT <b>UNSIGNED</b> NOT NULL</code> ... <br /><br />... and therein lies the difference ! Unsigned versus signed ... of course, if I had applied the &#039;make sure the columns are of EXACTLY the same datatype&#039; rule, then this would never happen.<br /><br />Smack on the wrist.]]></content>
		<id>http://www.portly.net/sphpblog/index.php?entry=entry080212-054015</id>
		<issued>2008-02-12T00:00:00Z</issued>
		<modified>2008-02-12T00:00:00Z</modified>
	</entry>
	<entry>
		<title>Turning off the beep on a Dell Latitude 620</title>
		<link rel="alternate" type="text/html" href="http://www.portly.net/sphpblog/index.php?entry=entry080204-143309" />
		<content type="text/html" mode="escaped"><![CDATA[If you&#039;ve got a Dell Latitude 620 and that bloody annoying beep that occurs in a console window is cheesing you off, then hope is at hand ;<br /><br />Turning off the beep on a Dell Latitude D620<br /><br />1. Right-click on &quot;My Computer&quot;, then click &quot;Manage&quot;<br />2. Click on &quot;Device Manager&quot;<br />3. Click on &quot;View &gt; Show hidden Devices&quot;<br />4. Click on &quot;Non-Plug and Play Drivers&quot;. Then right-click on &quot;Beep&quot; and choose &quot;disable&quot;.<br />5. Restart<br /><br /><br />hoorah for <a href="www.tjrobinson.net/blog/post/Turning-off-the-beep-on-a-Dell-Latitude-D620.aspx" target="_blank" > this man </a>and his blog]]></content>
		<id>http://www.portly.net/sphpblog/index.php?entry=entry080204-143309</id>
		<issued>2008-02-04T00:00:00Z</issued>
		<modified>2008-02-04T00:00:00Z</modified>
	</entry>
	<entry>
		<title>Command prompts from Explorer in Windows</title>
		<link rel="alternate" type="text/html" href="http://www.portly.net/sphpblog/index.php?entry=entry080204-074633" />
		<content type="text/html" mode="escaped"><![CDATA[Oooh, this is &#039;andy &#039;arry .... <a href="http://www.petri.co.il/add_command_prompt_here_shortcut_to_windows_explorer.htm" target="_blank" >http://www.petri.co.il/add_command_prom ... plorer.htm</a>]]></content>
		<id>http://www.portly.net/sphpblog/index.php?entry=entry080204-074633</id>
		<issued>2008-02-04T00:00:00Z</issued>
		<modified>2008-02-04T00:00:00Z</modified>
	</entry>
	<entry>
		<title>SQLServer and the 10061 message</title>
		<link rel="alternate" type="text/html" href="http://www.portly.net/sphpblog/index.php?entry=entry080201-165615" />
		<content type="text/html" mode="escaped"><![CDATA[Every time I install SQLServer Express Edition 2005 I get a problem with the TCP/IP connectivity ..solution is in here <a href="http://blogs.msdn.com/sql_protocols/archive/2007/07/19/tcp-provider-no-connection-could-be-made-because-the-target-machine-actively-refused-it.aspx" target="_blank" >http://blogs.msdn.com/sql_protocols/arc ... ed-it.aspx</a><br /><br />you need to set a value for the TCP port in the IPAll section of the <b>enabled</b> TCP/IP connection option.<br /><br />You can turn that on by starting the &#039;SQL Server Configuration Manager&#039;, selecting and expanding the SQL Server 2005 Network Connections tree and then selecting protocols for SQL Express ... phew !!!]]></content>
		<id>http://www.portly.net/sphpblog/index.php?entry=entry080201-165615</id>
		<issued>2008-02-01T00:00:00Z</issued>
		<modified>2008-02-01T00:00:00Z</modified>
	</entry>
	<entry>
		<title>Remote debugging of Tomcat using Eclipse</title>
		<link rel="alternate" type="text/html" href="http://www.portly.net/sphpblog/index.php?entry=entry080131-114627" />
		<content type="text/html" mode="escaped"><![CDATA[This is fairly easy, proving you know what to set up and where;<br /><br />First, amend the Tomcat startup such that it will make use of JDPA. I edited my startup.bat file and put these three lines at the top, just below the rem statements<br /><code><br />rem  *** Remove these for non-debug version<br />SET JPDA_TRANSPORT=dt_socket<br />SET JPDA_ADDRESS=8000<br />SET JPDA_SUSPEND=n <br /></code><br /><br />then, at the bottom of that file, I amended the start command to teh following<br /><br /><code><br />call &quot;%EXECUTABLE%&quot; <strong>jpda</strong> start %CMD_LINE_ARGS%<br /></code><br /><br />where the jpda is a new addition. Of course, you could define that as an Env var and just set or unset it at the top.<br /><br />Next, you need to configure a Remote Debug session with your project in Eclipse, like so ...<br /><br /><img src="images/debug.jpg" width="480" height="357" border="0" alt="" /><br /><br />pressing <b>Debug</b> starts the session.]]></content>
		<id>http://www.portly.net/sphpblog/index.php?entry=entry080131-114627</id>
		<issued>2008-01-31T00:00:00Z</issued>
		<modified>2008-01-31T00:00:00Z</modified>
	</entry>
	<entry>
		<title>Parsing a DateTime into a Timestamp in Java</title>
		<link rel="alternate" type="text/html" href="http://www.portly.net/sphpblog/index.php?entry=entry080130-044214" />
		<content type="text/html" mode="escaped"><![CDATA[I needed to parse a datetime value, with or without the time portion, into a <code>java.sql.Timestamp</code> object. <br />Initially, you need to populate a <code>java.util.Date</code> object.<br /><code><br /><pre><br />boolean wasDateOnly = false;<br />Date dt = null;<br />SimpleDateFormat formatter[] = new SimpleDateFormat[]{<br />	new SimpleDateFormat(&quot;yyyy/mm/dd HH:mm:ss.SSS&quot;),<br />	new SimpleDateFormat(&quot;yyyy/mm/dd HH:mm:ss&quot;),<br />	new SimpleDateFormat(&quot;yyyy/mm/dd HH:mm&quot;),<br />	new SimpleDateFormat(&quot;yyyy/mm/dd&quot;)<br />	}; <br /><br />for (int counter = 0; dt == null &amp;&amp; counter &lt; formatter.length; counter++) { <br />	try {<br />		dt = formatter[counter].parse((String) value);<br />		if (counter == formatter.length - 1)<br />			wasDateOnly = true;<br />	} catch (ParseException e) {<br />	}<br />}<br /><br />if (dt != null) {<br />	... do stuff with the dt object here ... like stuffing into a Calendar ...<br />}<br /></pre><br /></code>]]></content>
		<id>http://www.portly.net/sphpblog/index.php?entry=entry080130-044214</id>
		<issued>2008-01-30T00:00:00Z</issued>
		<modified>2008-01-30T00:00:00Z</modified>
	</entry>
	<entry>
		<title>Web safe colour picker</title>
		<link rel="alternate" type="text/html" href="http://www.portly.net/sphpblog/index.php?entry=entry071121-073817" />
		<content type="text/html" mode="escaped"><![CDATA[Take a look <a href="http://www.mywebsite.force9.co.uk/web-colors/color-pickers.htm" target="_blank" >here</a>  <br />grrr ... note spelling of colour on that page.]]></content>
		<id>http://www.portly.net/sphpblog/index.php?entry=entry071121-073817</id>
		<issued>2007-11-21T00:00:00Z</issued>
		<modified>2007-11-21T00:00:00Z</modified>
	</entry>
</feed>

