<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="wordpress/2.3.1" -->
<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/"
	>

<channel>
	<title>Brian Radford</title>
	<link>http://radfordbw.squidpower.com</link>
	<description>Just another Squidpower.com weblog</description>
	<pubDate>Mon, 11 Jan 2010 15:54:01 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.3.1</generator>
	<language>en</language>
			<item>
		<title>Windows 7 shows Live Messenger twice in the Taskbar</title>
		<link>http://radfordbw.squidpower.com/2010/01/11/windows-7-shows-live-messenger-twice-in-the-taskbar/</link>
		<comments>http://radfordbw.squidpower.com/2010/01/11/windows-7-shows-live-messenger-twice-in-the-taskbar/#comments</comments>
		<pubDate>Mon, 11 Jan 2010 15:53:06 +0000</pubDate>
		<dc:creator>Brian Radford</dc:creator>
		
		<category><![CDATA[Operating System]]></category>

		<category><![CDATA[Windows 7]]></category>

		<guid isPermaLink="false">http://radfordbw.squidpower.com/2010/01/11/windows-7-shows-live-messenger-twice-in-the-taskbar/</guid>
		<description><![CDATA[Windows Live Messengers shows up as two separate items in the Windows 7 taskbar.  In order to fix this, if it annoys you like it does me, follow the steps below:

Open the Start Menu
Look for Windows Live Messenger 
Do not left click, instead Right Click on the icon 
Select Properties
Look for Compatibility Tab
There is [...]]]></description>
			<content:encoded><![CDATA[<p>Windows Live Messengers shows up as two separate items in the Windows 7 taskbar.  In order to fix this, if it annoys you like it does me, follow the steps below:</p>
<ol>
<li>Open the Start Menu</li>
<li>Look for Windows Live Messenger </li>
<li>Do not left click, instead Right Click on the icon </li>
<li>Select Properties</li>
<li>Look for Compatibility Tab</li>
<li>There is a drop down list of operating systems you can choose to which the application was compatible (or in the mode you wish it to run)</li>
<li>Select either Windows XP SP3 or Vista </li>
<li>Click Apply</li>
<li>Click OK</li>
<li>Restart the application (in this case Microsoft Live Messenger)</li>
<li>Should only show one now.</li>
</ol>
<p>That is it.  I can&#8217;t explain why this is yet, but at least you can free up some of your taskbar again. <img src='http://radfordbw.squidpower.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /></p>
]]></content:encoded>
			<wfw:commentRss>http://radfordbw.squidpower.com/2010/01/11/windows-7-shows-live-messenger-twice-in-the-taskbar/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Convert Xen OSS (Hypervisor) to XenServer</title>
		<link>http://radfordbw.squidpower.com/2009/10/16/convert-xen-oss-hypervisor-to-xenserver/</link>
		<comments>http://radfordbw.squidpower.com/2009/10/16/convert-xen-oss-hypervisor-to-xenserver/#comments</comments>
		<pubDate>Fri, 16 Oct 2009 22:32:17 +0000</pubDate>
		<dc:creator>Brian Radford</dc:creator>
		
		<category><![CDATA[Virtualization]]></category>

		<guid isPermaLink="false">http://radfordbw.squidpower.com/2009/10/16/convert-xen-oss-hypervisor-to-xenserver/</guid>
		<description><![CDATA[To import a linux guest from the Xen Opensource (hypervisor) to XenServer 
1.  Create a new VM in XenServer, and make sure the virtual disk is at least the size of the disk you will import.
2.  Get UUID from virtual disk images
xe vdi-list params=all
3.  Import the raw disk image file into the [...]]]></description>
			<content:encoded><![CDATA[<p>To import a linux guest from the Xen Opensource (hypervisor) to XenServer </p>
<p>1.  Create a new VM in XenServer, and make sure the virtual disk is at least the size of the disk you will import.</p>
<p>2.  Get UUID from virtual disk images<br />
<code>xe vdi-list params=all</code></p>
<p>3.  Import the raw disk image file into the virtual disk image<br />
<code>xe vdi-import filename="raw_image.img" uuid="UUID"</code></p>
<p>4.  Boot the VM.  <em>Note:  You may need boot the VM off a valid bootable ISO image first so that the drive&#8217;s location path is set.</em></p>
<p><strong>To convert from a VMware guest to XenServer</strong><br />
To import a VMware linux guest first convert the vmdk to img and use the &#8220;Other install media&#8221; Template in XenServer.</p>
<p><code>qemu-img convert -f vmdk vmdk_image.vmdk -O raw raw_image.img</code></p>
]]></content:encoded>
			<wfw:commentRss>http://radfordbw.squidpower.com/2009/10/16/convert-xen-oss-hypervisor-to-xenserver/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Ensure Saving Changes to Data before Closing Browser</title>
		<link>http://radfordbw.squidpower.com/2009/08/03/ensure-saving-changes-to-data-before-closing-browser/</link>
		<comments>http://radfordbw.squidpower.com/2009/08/03/ensure-saving-changes-to-data-before-closing-browser/#comments</comments>
		<pubDate>Mon, 03 Aug 2009 15:20:34 +0000</pubDate>
		<dc:creator>Brian Radford</dc:creator>
		
		<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://radfordbw.squidpower.com/2009/08/03/ensure-saving-changes-to-data-before-closing-browser/</guid>
		<description><![CDATA[In the past as we have moved more applications to the browser, there are some users who still struggle with the change from a desktop application to the browser.   One main change is that the browser applications don&#8217;t always prompt for saving data as the user closes the browser or navigates away from [...]]]></description>
			<content:encoded><![CDATA[<p>In the past as we have moved more applications to the browser, there are some users who still struggle with the change from a desktop application to the browser.   One main change is that the browser applications don&#8217;t always prompt for saving data as the user closes the browser or navigates away from the page.  Changes are made, and the changes are lost as they navigate away from the page without saving.  How do you ensure that changes to the data are saved before the user navigates away or closes the browser?</p>
<p>The javascript <strong>window.onbeforeunload</strong> event can help with this.</p>
<p><code>window.onbeforeunload = <em>some_function</em></code></p>
<p>Your code can be as simple as the above, but I would recommend a few additions, e.g. checking to see if the user has made any changes before you throw up a confirmation prompt.  It is always annoying to make no changes, but still be prompted to save before navigating away.  In order to track if changes have been made, here is a simple javascript tracking example.  Of course, your pages may be much more complicated, but this will illustrate one approach.</p>
<p><code><br />
  var values = new Array('', '', '', '', '', '');<br />
  var needToConfirm = true;</p>
<p>  window.onbeforeunload = confirmExit;<br />
  function confirmExit()<br />
  {<br />
    if (needToConfirm)<br />
    {<br />
      // check to see if any changes to the data entry fields have been made<br />
      for (var i = 0; i &lt; values.length; i++)<br />
      {<br />
        var elem = document.getElementById(ids[i]);<br />
        if (elem)<br />
          if ((elem.type == 'checkbox' || elem.type == 'radio')<br />
                  &amp;&amp; values[i] != elem.checked)<br />
            return "You have attempted to leave this page.  If you have made any changes to the fields without clicking the Save button, your changes will be lost.  Are you sure you want to exit this page?";<br />
          else if (!(elem.type == 'checkbox' || elem.type == 'radio') &amp;&amp;<br />
                  elem.value != values[i])<br />
            return "You have attempted to leave this page.  If you have made any changes to the fields without clicking the Save button, your changes will be lost.  Are you sure you want to exit this page?";<br />
      }</p>
<p>      // no changes - return nothing<br />
    }<br />
  }<br />
</code></p>
<p>Enjoy this bit of code, but be careful not to over use it.  It can be annoying. <img src='http://radfordbw.squidpower.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /></p>
]]></content:encoded>
			<wfw:commentRss>http://radfordbw.squidpower.com/2009/08/03/ensure-saving-changes-to-data-before-closing-browser/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Backing up your Blog</title>
		<link>http://radfordbw.squidpower.com/2008/12/15/backing-up-your-blog/</link>
		<comments>http://radfordbw.squidpower.com/2008/12/15/backing-up-your-blog/#comments</comments>
		<pubDate>Mon, 15 Dec 2008 19:12:26 +0000</pubDate>
		<dc:creator>Brian Radford</dc:creator>
		
		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://radfordbw.squidpower.com/2008/12/15/backing-up-your-blog/</guid>
		<description><![CDATA[If you want to check out a quick and easy way to back up your blog, check out http://www.bloggled.com/
There are several options including a FREE one.  It is easy to setup and get started.  Check it out!
]]></description>
			<content:encoded><![CDATA[<p>If you want to check out a quick and easy way to back up your blog, check out http://www.bloggled.com/</p>
<p>There are several options including a FREE one.  It is easy to setup and get started.  Check it out!</p>
]]></content:encoded>
			<wfw:commentRss>http://radfordbw.squidpower.com/2008/12/15/backing-up-your-blog/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Oracle SQL - IN parameter with variable number of arguments</title>
		<link>http://radfordbw.squidpower.com/2008/08/12/oracle-sql-in-parameter-with-variable-number-of-arguments/</link>
		<comments>http://radfordbw.squidpower.com/2008/08/12/oracle-sql-in-parameter-with-variable-number-of-arguments/#comments</comments>
		<pubDate>Tue, 12 Aug 2008 18:19:53 +0000</pubDate>
		<dc:creator>Brian Radford</dc:creator>
		
		<category><![CDATA[Oracle]]></category>

		<guid isPermaLink="false">http://radfordbw.squidpower.com/2008/08/12/oracle-sql-in-parameter-with-variable-number-of-arguments/</guid>
		<description><![CDATA[JDBC prepared statements are ideal for backend optimization.  The resulting SQL does not need to be re-optimized if you are using a parameterized SQL statement.  Single parameters or even parameters by name with a single value are quite simple an easy, and you can find examples all over the internet.  But if [...]]]></description>
			<content:encoded><![CDATA[<p>JDBC prepared statements are ideal for backend optimization.  The resulting SQL does not need to be re-optimized if you are using a parameterized SQL statement.  Single parameters or even parameters by name with a single value are quite simple an easy, and you can find examples all over the internet.  But if you would like to pass in an array into a parameter, it may be difficult to find examples.  </p>
<p>This is an example of how to do this with an Oracle SQL statement.</p>
<p>First, you will need to create a custom data type in Oracle.</p>
<blockquote><p>
CREATE TYPE t_collection IS TABLE OF NUMBER;
</p></blockquote>
<p>Then in you jdbc client, you will need to use the OraclePreparedStatement class, and some of the other Oracle provided classes.</p>
<blockquote><p>
import oracle.jdbc.OracleConnection;<br />
import oracle.jdbc.driver.OraclePreparedStatement;<br />
import oracle.sql.ARRAY;<br />
import oracle.sql.ArrayDescriptor;
</p></blockquote>
<p>Define your SQL statement.</p>
<blockquote><p>
select itemid, prompt from responses where itemid in (select value(v) from table(:item) v)
</p></blockquote>
<p>Notice:  The (select value(v) from table(:item) v ) is using a nested table, thus the table().  We will pass in the :item as the  t_collection type that we created which will be treated as a table.</p>
<p>Now in your method call you would:</p>
<blockquote><p>
                  // change from a jboss connection to an oracle connection<br />
                  con = (OracleConnection)((WrappedConnection)getConnection()).getUnderlyingConnection();</p>
<p>                  // create a statement, apply the filters as parameters, add the item parameter, and execute<br />
                  statement = (OraclePreparedStatement)con.prepareStatement(RESPONSES);<br />
                  statement = applyFilter(statement, filter);</p>
<p>                  String[] items = itemid.split(&#8221;,&#8221;);<br />
                  ArrayDescriptor desc = ArrayDescriptor.createDescriptor(&#8221;T_COLLECTION&#8221;, con);<br />
                  ARRAY sarray = new ARRAY(desc, con, items);<br />
                  statement.setARRAYAtName(&#8221;item&#8221;, sarray);<br />
                  rs = statement.executeQuery();
</p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://radfordbw.squidpower.com/2008/08/12/oracle-sql-in-parameter-with-variable-number-of-arguments/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Custom File Filters for Eclipse Explorer</title>
		<link>http://radfordbw.squidpower.com/2008/07/09/custom-file-filters-for-eclipse-explorer/</link>
		<comments>http://radfordbw.squidpower.com/2008/07/09/custom-file-filters-for-eclipse-explorer/#comments</comments>
		<pubDate>Wed, 09 Jul 2008 21:17:16 +0000</pubDate>
		<dc:creator>Brian Radford</dc:creator>
		
		<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://radfordbw.squidpower.com/2008/07/09/custom-file-filters-for-eclipse-explorer/</guid>
		<description><![CDATA[Note:  Custom File Filters for Flex Builder Stand-alone&#8217;s Flex Navigator
While using Eclipse or Flex Builder, there are times when you want to ignore certain folders in the Eclipse Project Explorer or the Flex Navigator.  If you click on the properties for this window then you can apply certain filters. But there are times [...]]]></description>
			<content:encoded><![CDATA[<p><em>Note:  Custom File Filters for Flex Builder Stand-alone&#8217;s Flex Navigator</em></p>
<p>While using Eclipse or Flex Builder, there are times when you want to ignore certain folders in the <strong>Eclipse Project Explorer</strong> or the <strong>Flex Navigator</strong>.  If you click on the properties for this window then you can apply certain filters. But there are times when you want to add more filters to this list.  Here are the steps to do this.  (Creating custom filters for eclipse project explorer or custom filters for the Flex Navigator)</p>
<p>Customizing the list of filters isn&#8217;t a easy as you would hope (e.g. just clicking add), but it isn&#8217;t as difficult as you think if you&#8217;re comfortable with editing text files ;). There may be other ways, but this is what I did to tell Flex Builder to ignore my build directories that I had named target: </p>
<p>1.  Locate the directory of the Eclipse plugin being used for editing. This is usually something like eclipse/plugins/[plugin name]_[version].<br />
Some examples are:  </p>
<blockquote><p>
Flex Builder 3 default installation:<br />
Adobe\Flex Builder 3\plugins\com.adobe.flexbuilder.standalone_3.0.194161</p>
<p>my Aptana plugin directory:<br />
eclipse/plugins/com.aptana.ide.scripting_0.2.9.16696
</p></blockquote>
<p>2.  Once you find the plugin directory, open the plugin.xml file in a text editor. </p>
<p>3.  Find the extension element whose point attribute has a value of org.eclipse.ui.ide.resourceFilters. </p>
<blockquote><p>
   &lt;extension<br />
         point=&#8221;org.eclipse.ui.ide.resourceFilters&#8221;&gt;
</p></blockquote>
<p>4.  Copy one of the existing filter elements that already exist and create one that contains the needed file pattern. For my example:</p>
<blockquote><p>
      &lt;filter<br />
            pattern=&#8221;target&#8221;<br />
            selected=&#8221;true&#8221;/&gt;<br />
&lt;/extension&gt;
</p></blockquote>
<p>5.  Restart Eclipse using the -clean switch. </p>
<p>If your file didn&#8217;t include a resourceFilters section, you can insert one similar to the one that follows:</p>
<blockquote><p>
&lt;extension point=&#8221;org.eclipse.ui.ide.resourceFilters&#8221;&gt;<br />
   &lt;filter selected=&#8221;false&#8221; pattern=&#8221;.svn&#8221;&gt;&lt;filter&gt;<br />
   &lt;filter selected=&#8221;false&#8221; pattern=&#8221;.project&#8221;&gt;&lt;filter&gt;</p>
</blockquote>
<p>After restarting Eclipse with the -clean switch, the custom file patterns appeared in the Filters list and I was able to hide any patterns.</p>
]]></content:encoded>
			<wfw:commentRss>http://radfordbw.squidpower.com/2008/07/09/custom-file-filters-for-eclipse-explorer/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Posted MS Project file to Project Web Access but it is not showing</title>
		<link>http://radfordbw.squidpower.com/2008/02/12/posted-ms-project-file-to-project-web-access-but-it-is-not-showing/</link>
		<comments>http://radfordbw.squidpower.com/2008/02/12/posted-ms-project-file-to-project-web-access-but-it-is-not-showing/#comments</comments>
		<pubDate>Tue, 12 Feb 2008 23:15:08 +0000</pubDate>
		<dc:creator>Brian Radford</dc:creator>
		
		<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://radfordbw.squidpower.com/2008/02/12/posted-ms-project-file-to-project-web-access-but-it-is-not-showing/</guid>
		<description><![CDATA[I recently began using Project Web Access in order to attempt some high level project planning and resource management.  For those who do not know what this is, it is a web access module that extends Microsoft Sharepoint and allows for access to Microsoft Project files via the web.  You create the project [...]]]></description>
			<content:encoded><![CDATA[<p>I recently began using Project Web Access in order to attempt some high level project planning and resource management.  For those who do not know what this is, it is a web access module that extends Microsoft Sharepoint and allows for access to Microsoft Project files via the web.  You create the project files with the desktop client and publish them to the sharepoint site for Project.</p>
<p>As I saved the project, the progress bar showed saved, but 0% complete.  It never moved off 0% complete, and when I closed MS Project and re-opened it, I was not allowed to open the saved project file.  It would not list on the server, and it was not published.</p>
<p>After some looking around, I found it in Server Settings -&gt; Manage Queue , and I saw that the jobs were hung.  I didn&#8217;t want to lose my work, and so I didn&#8217;t know what to do.  I was able to restore it by restarting the Jobs Queue with the following commands from the command-line on the server:</p>
<blockquote><p>
net stop ProjectQueueService</p>
<p>net start ProjectQueueService
</p></blockquote>
<p>This restarted the queue and my jobs started up again and completed.  I didn&#8217;t lose any work.. Yeah!!</p>
]]></content:encoded>
			<wfw:commentRss>http://radfordbw.squidpower.com/2008/02/12/posted-ms-project-file-to-project-web-access-but-it-is-not-showing/feed/</wfw:commentRss>
		</item>
		<item>
		<title>JBoss fails to start because of a port conflict</title>
		<link>http://radfordbw.squidpower.com/2007/08/10/jboss-fails-to-start-because-of-a-port-conflict/</link>
		<comments>http://radfordbw.squidpower.com/2007/08/10/jboss-fails-to-start-because-of-a-port-conflict/#comments</comments>
		<pubDate>Fri, 10 Aug 2007 18:14:54 +0000</pubDate>
		<dc:creator>Brian Radford</dc:creator>
		
		<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://radfordbw.squidpower.com/2007/08/10/jboss-fails-to-start-because-of-a-port-conflict/</guid>
		<description><![CDATA[Sometimes when you try to start JBoss you might see a port conflict.  Many times this is caused by MSN Messenger or other applications that randomly use the same ports that JBoss attempts to bind and use.
An example of this is when JBoss attempts to bind port 1098 you might see:

java.rmi.server.ExportException: Port already in [...]]]></description>
			<content:encoded><![CDATA[<p>Sometimes when you try to start JBoss you might see a port conflict.  Many times this is caused by MSN Messenger or other applications that randomly use the same ports that JBoss attempts to bind and use.</p>
<p>An example of this is when JBoss attempts to bind port 1098 you might see:</p>
<blockquote><p>
java.rmi.server.ExportException: Port already in use: 1098; nested exception is:<br />
java.net.BindException: Address already in use: JVM_Bind
</p></blockquote>
<p>If you are not sure which application is causing this conflict you can do the following:<br />
1.  From a command-line type</p>
<blockquote><p>
netstat -a -n -o
</p></blockquote>
<p>This will give you the Process ID for the application that is causing the conflict.  You will need to scan through the output to find the line that shows the port in question, in the case above it was port 1098.</p>
<p>You then can go into the Task Manager to find the process.  If you are not already showing the PID as a column on your Processes tab, then you can go to View-&gt;Select Columns and then check PID (Process Identifier) to add the column.  You should be able to locate the same PID and shutdown that process to start JBoss.</p>
]]></content:encoded>
			<wfw:commentRss>http://radfordbw.squidpower.com/2007/08/10/jboss-fails-to-start-because-of-a-port-conflict/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Exporting mysql table to a csv file</title>
		<link>http://radfordbw.squidpower.com/2007/05/21/exporting-mysql-table-to-a-csv-file/</link>
		<comments>http://radfordbw.squidpower.com/2007/05/21/exporting-mysql-table-to-a-csv-file/#comments</comments>
		<pubDate>Mon, 21 May 2007 20:16:16 +0000</pubDate>
		<dc:creator>Brian Radford</dc:creator>
		
		<category><![CDATA[mysql]]></category>

		<guid isPermaLink="false">http://radfordbw.squidpower.com/2007/05/21/exporting-mysql-table-to-a-csv-file/</guid>
		<description><![CDATA[If you would like to dump the contents of a mysql table into a csv file here is the syntax:

mysqldump --tab=&#60;directory_for_dump&#62; --fields-enclosed-by='"' --fields-terminated-by=','  &#60;database_name&#62; &#60;table_name&#62;

obviously,replacing anything inside the  with what it describes.
]]></description>
			<content:encoded><![CDATA[<p>If you would like to dump the contents of a mysql table into a csv file here is the syntax:</p>
<p><code><br />
mysqldump --tab=&lt;directory_for_dump&gt; --fields-enclosed-by='"' --fields-terminated-by=','  &lt;database_name&gt; &lt;table_name&gt;<br />
</code></p>
<p>obviously,replacing anything inside the  with what it describes.</p>
]]></content:encoded>
			<wfw:commentRss>http://radfordbw.squidpower.com/2007/05/21/exporting-mysql-table-to-a-csv-file/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Make Eclipse ignore .svn directories</title>
		<link>http://radfordbw.squidpower.com/2007/04/12/make-eclipse-ignore-svn-directories/</link>
		<comments>http://radfordbw.squidpower.com/2007/04/12/make-eclipse-ignore-svn-directories/#comments</comments>
		<pubDate>Thu, 12 Apr 2007 14:29:02 +0000</pubDate>
		<dc:creator>Brian Radford</dc:creator>
		
		<category><![CDATA[Subversion]]></category>

		<guid isPermaLink="false">http://radfordbw.squidpower.com/2007/04/12/make-eclipse-ignore-svn-directories/</guid>
		<description><![CDATA[Window -&#62; Preferences&#8230;, Java -&#62; Compiler -&#62; Building. Under &#8220;Output folder&#8221; add &#8220;, .svn/&#8221; to &#8220;Filtered Resources&#8221; (so that you get &#8220;*.launch, .svn/&#8221;).
If you don&#8217;t do this, Eclipse will copy all the .svn directories to the target directory and complain about duplicate resources as the contents of src/main/java and src/main/resources end up at the same [...]]]></description>
			<content:encoded><![CDATA[<p>Window -&gt; Preferences&#8230;, Java -&gt; Compiler -&gt; Building. Under &#8220;Output folder&#8221; add &#8220;, .svn/&#8221; to &#8220;Filtered Resources&#8221; (so that you get &#8220;*.launch, .svn/&#8221;).</p>
<p>If you don&#8217;t do this, Eclipse will copy all the .svn directories to the target directory and complain about duplicate resources as the contents of src/main/java and src/main/resources end up at the same place in the target directory.</p>
]]></content:encoded>
			<wfw:commentRss>http://radfordbw.squidpower.com/2007/04/12/make-eclipse-ignore-svn-directories/feed/</wfw:commentRss>
		</item>
	</channel>
</rss>
