<?xml version="1.0" encoding="ISO-8859-1"?>
<rss version="2.0">
	<channel>
		<title>Bollogs</title>
		<link>http://www.portly.net/sphpblog/index.php</link>
		<description><![CDATA[All content covered by the &#039;BuyMeAPintIfYouUseThisStuff&#039; licence (c) 2007 portly.net All Rights Reversed]]></description>
		<copyright>Copyright 2012, No Author</copyright>
		<managingEditor>No Author</managingEditor>
		<language>en-US</language>
		<generator>SPHPBLOG 0.5.1</generator>
		<item>
			<title>CUPS 1.4.3 and printing that just won;t work</title>
			<link>http://www.portly.net/sphpblog/index.php?entry=entry111102-105819</link>
			<description><![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 ]]></description>
			<category></category>
			<guid isPermaLink="true">http://www.portly.net/sphpblog/index.php?entry=entry111102-105819</guid>
			<author>No Author</author>
			<pubDate>Wed, 02 Nov 2011 15:58:19 GMT</pubDate>
			<comments>http://www.portly.net/sphpblog/comments.php?y=11&amp;m=11&amp;entry=entry111102-105819</comments>
		</item>
		<item>
			<title>VBox install for CENToS</title>
			<link>http://www.portly.net/sphpblog/index.php?entry=entry110613-094040</link>
			<description><![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]]></description>
			<category></category>
			<guid isPermaLink="true">http://www.portly.net/sphpblog/index.php?entry=entry110613-094040</guid>
			<author>No Author</author>
			<pubDate>Mon, 13 Jun 2011 14:40:40 GMT</pubDate>
			<comments>http://www.portly.net/sphpblog/comments.php?y=11&amp;m=06&amp;entry=entry110613-094040</comments>
		</item>
		<item>
			<title>Jailbreaking and Apple TV 2</title>
			<link>http://www.portly.net/sphpblog/index.php?entry=entry110425-144417</link>
			<description><![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 />]]></description>
			<category></category>
			<guid isPermaLink="true">http://www.portly.net/sphpblog/index.php?entry=entry110425-144417</guid>
			<author>No Author</author>
			<pubDate>Mon, 25 Apr 2011 19:44:17 GMT</pubDate>
			<comments>http://www.portly.net/sphpblog/comments.php?y=11&amp;m=04&amp;entry=entry110425-144417</comments>
		</item>
		<item>
			<title>Generate Java classes from XSDs usign Maven</title>
			<link>http://www.portly.net/sphpblog/index.php?entry=entry110221-042536</link>
			<description><![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.]]></description>
			<category></category>
			<guid isPermaLink="true">http://www.portly.net/sphpblog/index.php?entry=entry110221-042536</guid>
			<author>No Author</author>
			<pubDate>Mon, 21 Feb 2011 10:25:36 GMT</pubDate>
			<comments>http://www.portly.net/sphpblog/comments.php?y=11&amp;m=02&amp;entry=entry110221-042536</comments>
		</item>
		<item>
			<title>Forgotten password for archiva</title>
			<link>http://www.portly.net/sphpblog/index.php?entry=entry100921-003116</link>
			<description><![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]]></description>
			<category></category>
			<guid isPermaLink="true">http://www.portly.net/sphpblog/index.php?entry=entry100921-003116</guid>
			<author>No Author</author>
			<pubDate>Mon, 20 Sep 2010 22:31:16 GMT</pubDate>
			<comments>http://www.portly.net/sphpblog/comments.php?y=10&amp;m=09&amp;entry=entry100921-003116</comments>
		</item>
		<item>
			<title>DHCP fails to work for eth0 on Ubuntu 10.04</title>
			<link>http://www.portly.net/sphpblog/index.php?entry=entry100730-231057</link>
			<description><![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>]]></description>
			<category></category>
			<guid isPermaLink="true">http://www.portly.net/sphpblog/index.php?entry=entry100730-231057</guid>
			<author>No Author</author>
			<pubDate>Fri, 30 Jul 2010 20:10:57 GMT</pubDate>
			<comments>http://www.portly.net/sphpblog/comments.php?y=10&amp;m=07&amp;entry=entry100730-231057</comments>
		</item>
		<item>
			<title>JODE decompiler for Eclipse in Ubuntu</title>
			<link>http://www.portly.net/sphpblog/index.php?entry=entry100624-115827</link>
			<description><![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 !]]></description>
			<category></category>
			<guid isPermaLink="true">http://www.portly.net/sphpblog/index.php?entry=entry100624-115827</guid>
			<author>No Author</author>
			<pubDate>Thu, 24 Jun 2010 08:58:27 GMT</pubDate>
			<comments>http://www.portly.net/sphpblog/comments.php?y=10&amp;m=06&amp;entry=entry100624-115827</comments>
		</item>
		<item>
			<title>Virtual Box and mounted drives</title>
			<link>http://www.portly.net/sphpblog/index.php?entry=entry100514-154811</link>
			<description><![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.]]></description>
			<category></category>
			<guid isPermaLink="true">http://www.portly.net/sphpblog/index.php?entry=entry100514-154811</guid>
			<author>No Author</author>
			<pubDate>Fri, 14 May 2010 12:48:11 GMT</pubDate>
			<comments>http://www.portly.net/sphpblog/comments.php?y=10&amp;m=05&amp;entry=entry100514-154811</comments>
		</item>
		<item>
			<title>Cancel an apt-get installation</title>
			<link>http://www.portly.net/sphpblog/index.php?entry=entry100512-153753</link>
			<description><![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]]></description>
			<category></category>
			<guid isPermaLink="true">http://www.portly.net/sphpblog/index.php?entry=entry100512-153753</guid>
			<author>No Author</author>
			<pubDate>Wed, 12 May 2010 12:37:53 GMT</pubDate>
			<comments>http://www.portly.net/sphpblog/comments.php?y=10&amp;m=05&amp;entry=entry100512-153753</comments>
		</item>
		<item>
			<title>Maven - some stuff I learnt</title>
			<link>http://www.portly.net/sphpblog/index.php?entry=entry100108-143442</link>
			<description><![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 />]]></description>
			<category></category>
			<guid isPermaLink="true">http://www.portly.net/sphpblog/index.php?entry=entry100108-143442</guid>
			<author>No Author</author>
			<pubDate>Fri, 08 Jan 2010 12:34:42 GMT</pubDate>
			<comments>http://www.portly.net/sphpblog/comments.php?y=10&amp;m=01&amp;entry=entry100108-143442</comments>
		</item>
		<item>
			<title>Synergy - share a mouse and keyboard across machines</title>
			<link>http://www.portly.net/sphpblog/index.php?entry=entry091027-075734</link>
			<description><![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 !]]></description>
			<category></category>
			<guid isPermaLink="true">http://www.portly.net/sphpblog/index.php?entry=entry091027-075734</guid>
			<author>No Author</author>
			<pubDate>Tue, 27 Oct 2009 12:57:34 GMT</pubDate>
			<comments>http://www.portly.net/sphpblog/comments.php?y=09&amp;m=10&amp;entry=entry091027-075734</comments>
		</item>
		<item>
			<title>ReadyNAS and shares in Windows</title>
			<link>http://www.portly.net/sphpblog/index.php?entry=entry091004-054616</link>
			<description><![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.]]></description>
			<category></category>
			<guid isPermaLink="true">http://www.portly.net/sphpblog/index.php?entry=entry091004-054616</guid>
			<author>No Author</author>
			<pubDate>Sun, 04 Oct 2009 10:46:16 GMT</pubDate>
			<comments>http://www.portly.net/sphpblog/comments.php?y=09&amp;m=10&amp;entry=entry091004-054616</comments>
		</item>
		<item>
			<title>Cheeky script to create a SVN repository</title>
			<link>http://www.portly.net/sphpblog/index.php?entry=entry090913-045702</link>
			<description><![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 />]]></description>
			<category></category>
			<guid isPermaLink="true">http://www.portly.net/sphpblog/index.php?entry=entry090913-045702</guid>
			<author>No Author</author>
			<pubDate>Sun, 13 Sep 2009 09:57:02 GMT</pubDate>
			<comments>http://www.portly.net/sphpblog/comments.php?y=09&amp;m=09&amp;entry=entry090913-045702</comments>
		</item>
		<item>
			<title>Setting up subversion for access </title>
			<link>http://www.portly.net/sphpblog/index.php?entry=entry090314-160313</link>
			<description><![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>]]></description>
			<category></category>
			<guid isPermaLink="true">http://www.portly.net/sphpblog/index.php?entry=entry090314-160313</guid>
			<author>No Author</author>
			<pubDate>Sat, 14 Mar 2009 21:03:13 GMT</pubDate>
			<comments>http://www.portly.net/sphpblog/comments.php?y=09&amp;m=03&amp;entry=entry090314-160313</comments>
		</item>
		<item>
			<title>Find in unix</title>
			<link>http://www.portly.net/sphpblog/index.php?entry=entry081010-044644</link>
			<description><![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 />]]></description>
			<category></category>
			<guid isPermaLink="true">http://www.portly.net/sphpblog/index.php?entry=entry081010-044644</guid>
			<author>No Author</author>
			<pubDate>Fri, 10 Oct 2008 09:46:44 GMT</pubDate>
			<comments>http://www.portly.net/sphpblog/comments.php?y=08&amp;m=10&amp;entry=entry081010-044644</comments>
		</item>
		<item>
			<title>Dumping a SQL Server table to SQL statements</title>
			<link>http://www.portly.net/sphpblog/index.php?entry=entry080923-035442</link>
			<description><![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 !]]></description>
			<category></category>
			<guid isPermaLink="true">http://www.portly.net/sphpblog/index.php?entry=entry080923-035442</guid>
			<author>No Author</author>
			<pubDate>Tue, 23 Sep 2008 08:54:42 GMT</pubDate>
			<comments>http://www.portly.net/sphpblog/comments.php?y=08&amp;m=09&amp;entry=entry080923-035442</comments>
		</item>
		<item>
			<title>Unknown Source shows up instead of line numbers in a Java stack trace</title>
			<link>http://www.portly.net/sphpblog/index.php?entry=entry080912-044059</link>
			<description><![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>]]></description>
			<category></category>
			<guid isPermaLink="true">http://www.portly.net/sphpblog/index.php?entry=entry080912-044059</guid>
			<author>No Author</author>
			<pubDate>Fri, 12 Sep 2008 09:40:59 GMT</pubDate>
			<comments>http://www.portly.net/sphpblog/comments.php?y=08&amp;m=09&amp;entry=entry080912-044059</comments>
		</item>
		<item>
			<title>Find out your user details in PHP</title>
			<link>http://www.portly.net/sphpblog/index.php?entry=entry080813-030334</link>
			<description><![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 />]]></description>
			<category></category>
			<guid isPermaLink="true">http://www.portly.net/sphpblog/index.php?entry=entry080813-030334</guid>
			<author>No Author</author>
			<pubDate>Wed, 13 Aug 2008 08:03:34 GMT</pubDate>
			<comments>http://www.portly.net/sphpblog/comments.php?y=08&amp;m=08&amp;entry=entry080813-030334</comments>
		</item>
		<item>
			<title>Smarty, Unix permissions, pain, woe, grief</title>
			<link>http://www.portly.net/sphpblog/index.php?entry=entry080707-155456</link>
			<description><![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 :-(]]></description>
			<category></category>
			<guid isPermaLink="true">http://www.portly.net/sphpblog/index.php?entry=entry080707-155456</guid>
			<author>No Author</author>
			<pubDate>Mon, 07 Jul 2008 20:54:56 GMT</pubDate>
			<comments>http://www.portly.net/sphpblog/comments.php?y=08&amp;m=07&amp;entry=entry080707-155456</comments>
		</item>
		<item>
			<title>MDI MS-DOS</title>
			<link>http://www.portly.net/sphpblog/index.php?entry=entry080605-073636</link>
			<description><![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 />]]></description>
			<category></category>
			<guid isPermaLink="true">http://www.portly.net/sphpblog/index.php?entry=entry080605-073636</guid>
			<author>No Author</author>
			<pubDate>Thu, 05 Jun 2008 12:36:36 GMT</pubDate>
			<comments>http://www.portly.net/sphpblog/comments.php?y=08&amp;m=06&amp;entry=entry080605-073636</comments>
		</item>
		<item>
			<title>XMing and plink</title>
			<link>http://www.portly.net/sphpblog/index.php?entry=entry080514-050548</link>
			<description><![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 />]]></description>
			<category></category>
			<guid isPermaLink="true">http://www.portly.net/sphpblog/index.php?entry=entry080514-050548</guid>
			<author>No Author</author>
			<pubDate>Wed, 14 May 2008 10:05:48 GMT</pubDate>
			<comments>http://www.portly.net/sphpblog/comments.php?y=08&amp;m=05&amp;entry=entry080514-050548</comments>
		</item>
		<item>
			<title>Eclipse says &#039;The type java.lang.Object cannot be resolved&#039;</title>
			<link>http://www.portly.net/sphpblog/index.php?entry=entry080401-082933</link>
			<description><![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]]></description>
			<category></category>
			<guid isPermaLink="true">http://www.portly.net/sphpblog/index.php?entry=entry080401-082933</guid>
			<author>No Author</author>
			<pubDate>Tue, 01 Apr 2008 13:29:33 GMT</pubDate>
			<comments>http://www.portly.net/sphpblog/comments.php?y=08&amp;m=04&amp;entry=entry080401-082933</comments>
		</item>
		<item>
			<title>LAMPP/XAMPP and phpMyAdmin errors</title>
			<link>http://www.portly.net/sphpblog/index.php?entry=entry080317-051808</link>
			<description><![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 !]]></description>
			<category></category>
			<guid isPermaLink="true">http://www.portly.net/sphpblog/index.php?entry=entry080317-051808</guid>
			<author>No Author</author>
			<pubDate>Mon, 17 Mar 2008 10:18:08 GMT</pubDate>
			<comments>http://www.portly.net/sphpblog/comments.php?y=08&amp;m=03&amp;entry=entry080317-051808</comments>
		</item>
		<item>
			<title>Foreign Keys in MYSQL</title>
			<link>http://www.portly.net/sphpblog/index.php?entry=entry080212-054015</link>
			<description><![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.]]></description>
			<category></category>
			<guid isPermaLink="true">http://www.portly.net/sphpblog/index.php?entry=entry080212-054015</guid>
			<author>No Author</author>
			<pubDate>Tue, 12 Feb 2008 11:40:15 GMT</pubDate>
			<comments>http://www.portly.net/sphpblog/comments.php?y=08&amp;m=02&amp;entry=entry080212-054015</comments>
		</item>
		<item>
			<title>Turning off the beep on a Dell Latitude 620</title>
			<link>http://www.portly.net/sphpblog/index.php?entry=entry080204-143309</link>
			<description><![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]]></description>
			<category></category>
			<guid isPermaLink="true">http://www.portly.net/sphpblog/index.php?entry=entry080204-143309</guid>
			<author>No Author</author>
			<pubDate>Mon, 04 Feb 2008 20:33:09 GMT</pubDate>
			<comments>http://www.portly.net/sphpblog/comments.php?y=08&amp;m=02&amp;entry=entry080204-143309</comments>
		</item>
		<item>
			<title>Command prompts from Explorer in Windows</title>
			<link>http://www.portly.net/sphpblog/index.php?entry=entry080204-074633</link>
			<description><![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>]]></description>
			<category></category>
			<guid isPermaLink="true">http://www.portly.net/sphpblog/index.php?entry=entry080204-074633</guid>
			<author>No Author</author>
			<pubDate>Mon, 04 Feb 2008 13:46:33 GMT</pubDate>
			<comments>http://www.portly.net/sphpblog/comments.php?y=08&amp;m=02&amp;entry=entry080204-074633</comments>
		</item>
		<item>
			<title>SQLServer and the 10061 message</title>
			<link>http://www.portly.net/sphpblog/index.php?entry=entry080201-165615</link>
			<description><![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 !!!]]></description>
			<category></category>
			<guid isPermaLink="true">http://www.portly.net/sphpblog/index.php?entry=entry080201-165615</guid>
			<author>No Author</author>
			<pubDate>Fri, 01 Feb 2008 22:56:15 GMT</pubDate>
			<comments>http://www.portly.net/sphpblog/comments.php?y=08&amp;m=02&amp;entry=entry080201-165615</comments>
		</item>
		<item>
			<title>Remote debugging of Tomcat using Eclipse</title>
			<link>http://www.portly.net/sphpblog/index.php?entry=entry080131-114627</link>
			<description><![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.]]></description>
			<category></category>
			<guid isPermaLink="true">http://www.portly.net/sphpblog/index.php?entry=entry080131-114627</guid>
			<author>No Author</author>
			<pubDate>Thu, 31 Jan 2008 17:46:27 GMT</pubDate>
			<comments>http://www.portly.net/sphpblog/comments.php?y=08&amp;m=01&amp;entry=entry080131-114627</comments>
		</item>
		<item>
			<title>Parsing a DateTime into a Timestamp in Java</title>
			<link>http://www.portly.net/sphpblog/index.php?entry=entry080130-044214</link>
			<description><![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>]]></description>
			<category></category>
			<guid isPermaLink="true">http://www.portly.net/sphpblog/index.php?entry=entry080130-044214</guid>
			<author>No Author</author>
			<pubDate>Wed, 30 Jan 2008 10:42:14 GMT</pubDate>
			<comments>http://www.portly.net/sphpblog/comments.php?y=08&amp;m=01&amp;entry=entry080130-044214</comments>
		</item>
		<item>
			<title>Web safe colour picker</title>
			<link>http://www.portly.net/sphpblog/index.php?entry=entry071121-073817</link>
			<description><![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.]]></description>
			<category></category>
			<guid isPermaLink="true">http://www.portly.net/sphpblog/index.php?entry=entry071121-073817</guid>
			<author>No Author</author>
			<pubDate>Wed, 21 Nov 2007 13:38:17 GMT</pubDate>
			<comments>http://www.portly.net/sphpblog/comments.php?y=07&amp;m=11&amp;entry=entry071121-073817</comments>
		</item>
	</channel>
</rss>

