<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Dean Vaughan &#187; Random</title>
	<atom:link href="http://thevedic.net/wordpress/category/random/feed/" rel="self" type="application/rss+xml" />
	<link>http://thevedic.net/wordpress</link>
	<description>Lobster Madness</description>
	<lastBuildDate>Fri, 20 Aug 2010 14:03:09 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>C# Detecting and removing the Read Only bit</title>
		<link>http://thevedic.net/wordpress/2010/08/20/c-detecting-and-removing-the-read-only-bit/</link>
		<comments>http://thevedic.net/wordpress/2010/08/20/c-detecting-and-removing-the-read-only-bit/#comments</comments>
		<pubDate>Fri, 20 Aug 2010 14:03:09 +0000</pubDate>
		<dc:creator>Deano</dc:creator>
				<category><![CDATA[Random]]></category>

		<guid isPermaLink="false">http://thevedic.net/wordpress/?p=1035</guid>
		<description><![CDATA[Seems like trying to move a read only file throws an exception on some computers and not on others. I'm not sure why it only happens on some, I couldn't see a common OS or .net version. The function below will remove the read only bit from a file. &#160; private void prep_file&#40;string file&#41; &#123; [...]]]></description>
			<content:encoded><![CDATA[<p>Seems like trying to move a read only file throws an exception on some computers and not on others. I'm not sure why it only happens on some, I couldn't see a common OS or .net version. The function below will remove the read only bit from a file.</p>
<p><code></p>
<pre class="csharp">&nbsp;
<span style="color: #0600FF;">private</span> <span style="color: #0600FF;">void</span> prep_file<span style="color: #000000;">&#40;</span><span style="color: #FF0000;">string</span> file<span style="color: #000000;">&#41;</span>
<span style="color: #000000;">&#123;</span>
  <span style="color: #0600FF;">if</span> <span style="color: #000000;">&#40;</span><span style="color: #000000;">&#40;</span>File.<span style="color: #0000FF;">GetAttributes</span><span style="color: #000000;">&#40;</span>file<span style="color: #000000;">&#41;</span> &amp; FileAttributes.<span style="color: #0600FF;">ReadOnly</span><span style="color: #000000;">&#41;</span> == FileAttributes.<span style="color: #0600FF;">ReadOnly</span><span style="color: #000000;">&#41;</span>
  <span style="color: #000000;">&#123;</span>
    File.<span style="color: #0000FF;">SetAttributes</span><span style="color: #000000;">&#40;</span>file, FileAttributes.<span style="color: #0000FF;">Normal</span><span style="color: #000000;">&#41;</span>;
  <span style="color: #000000;">&#125;</span>
<span style="color: #000000;">&#125;</span>
&nbsp;</pre>
<p></code></p>
<p>Here's the exception I was getting that led me to this:</p>
<p>System.UnauthorizedAccessException: Access to the path 'C:\sxr\dictation_duck\temp\08_20_10_09_28_33_00013889.voc' is denied.<br />
   at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)<br />
   at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy)</p>
]]></content:encoded>
			<wfw:commentRss>http://thevedic.net/wordpress/2010/08/20/c-detecting-and-removing-the-read-only-bit/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>C# List all drives and search by drive label</title>
		<link>http://thevedic.net/wordpress/2010/08/05/c-list-all-drives-and-search-by-drive-label/</link>
		<comments>http://thevedic.net/wordpress/2010/08/05/c-list-all-drives-and-search-by-drive-label/#comments</comments>
		<pubDate>Thu, 05 Aug 2010 13:31:40 +0000</pubDate>
		<dc:creator>Deano</dc:creator>
				<category><![CDATA[Random]]></category>

		<guid isPermaLink="false">http://thevedic.net/wordpress/?p=449</guid>
		<description><![CDATA[At a certain place I go to every day we have people who dictate into hand held recorders. These recorders plug into a PC via USB and show as a removable drive. The dictations are then on this drive in MP3 format. When you plug them in they usually keep the same drive letter. You [...]]]></description>
			<content:encoded><![CDATA[<p>At a certain place I go to every day we have people who dictate into hand held recorders. These recorders plug into a PC via USB and show as a removable drive. The dictations are then on this drive in MP3 format.</p>
<p>When you plug them in they usually keep the same drive letter. You can also mount them onto a directory and they'll sometimes keep that. Usually and sometimes means it'll work fine for months and then up and change for no reason.</p>
<p>Since Windows doesn't cooperate, I needed an easy way to find the recorders. The solution I came up with was to give them all a standard drive label and then use the code below with some additions to do what I needed to do to get the dictations off of them.</p>
<p><a href=/wordpress/wp-content/uploads/2010/07/DriveLabelDemo.zip>Download Visual Studio 2008 Sample Project</a></p>
<p><code></p>
<pre class="csharp">&nbsp;
<span style="color: #0600FF;">using</span> <span style="color: #000000;">System</span>;
<span style="color: #0600FF;">using</span> <span style="color: #000000;">System</span>.<span style="color: #0000FF;">Collections</span>.<span style="color: #0000FF;">Generic</span>;
<span style="color: #0600FF;">using</span> <span style="color: #000000;">System</span>.<span style="color: #0000FF;">ComponentModel</span>;
<span style="color: #0600FF;">using</span> <span style="color: #000000;">System</span>.<span style="color: #0000FF;">Data</span>;
<span style="color: #0600FF;">using</span> <span style="color: #000000;">System</span>.<span style="color: #0000FF;">Drawing</span>;
<span style="color: #0600FF;">using</span> <span style="color: #000000;">System</span>.<span style="color: #0000FF;">Linq</span>;
<span style="color: #0600FF;">using</span> <span style="color: #000000;">System</span>.<span style="color: #0000FF;">Text</span>;
<span style="color: #0600FF;">using</span> <span style="color: #000000;">System</span>.<span style="color: #0000FF;">Windows</span>.<span style="color: #0000FF;">Forms</span>;
<span style="color: #0600FF;">using</span> <span style="color: #000000;">System</span>.<span style="color: #0000FF;">IO</span>;
&nbsp;
<span style="color: #0600FF;">namespace</span> DriveLabelDemo
<span style="color: #000000;">&#123;</span>
    <span style="color: #0600FF;">public</span> partial <span style="color: #FF0000;">class</span> Form1 : Form
    <span style="color: #000000;">&#123;</span>
        <span style="color: #0600FF;">public</span> Form1<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>
        <span style="color: #000000;">&#123;</span>
            InitializeComponent<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>;
        <span style="color: #000000;">&#125;</span>
&nbsp;
        <span style="color: #0600FF;">private</span> <span style="color: #0600FF;">void</span> logger<span style="color: #000000;">&#40;</span><span style="color: #FF0000;">string</span> message<span style="color: #000000;">&#41;</span>
        <span style="color: #000000;">&#123;</span>
            DateTime time = DateTime.<span style="color: #0000FF;">Now</span>;
            <span style="color: #FF0000;">string</span> format = <span style="color: #808080;">&quot;yyyy-MM-dd HH:mm:ss&quot;</span>;
            logbox.<span style="color: #0000FF;">Text</span> = logbox.<span style="color: #0000FF;">Text</span> + time.<span style="color: #0000FF;">ToString</span><span style="color: #000000;">&#40;</span>format<span style="color: #000000;">&#41;</span> + <span style="color: #808080;">&quot;: &quot;</span> + message + <span style="color: #808080;">&quot;<span style="color: #008080; font-weight: bold;">\r</span><span style="color: #008080; font-weight: bold;">\n</span>&quot;</span>;
            <span style="color: #0600FF;">this</span>.<span style="color: #0000FF;">logbox</span>.<span style="color: #0000FF;">SelectionStart</span> = logbox.<span style="color: #0000FF;">Text</span>.<span style="color: #0000FF;">Length</span>;
            <span style="color: #0600FF;">this</span>.<span style="color: #0000FF;">logbox</span>.<span style="color: #0000FF;">ScrollToCaret</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>;
        <span style="color: #000000;">&#125;</span>
&nbsp;
        <span style="color: #0600FF;">private</span> <span style="color: #0600FF;">void</span> button1_Click<span style="color: #000000;">&#40;</span><span style="color: #FF0000;">object</span> sender, EventArgs e<span style="color: #000000;">&#41;</span>
        <span style="color: #000000;">&#123;</span>
            logger<span style="color: #000000;">&#40;</span><span style="color: #808080;">&quot;Searching!&quot;</span><span style="color: #000000;">&#41;</span>;
            <span style="color: #008080; font-style: italic;">// CHECK THE LIST OF DRIVES FOR ONE LABELED RECORDER</span>
            DriveInfo<span style="color: #000000;">&#91;</span><span style="color: #000000;">&#93;</span> drives = DriveInfo.<span style="color: #0000FF;">GetDrives</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>;
            <span style="color: #0600FF;">foreach</span> <span style="color: #000000;">&#40;</span>DriveInfo drive <span style="color: #0600FF;">in</span> drives<span style="color: #000000;">&#41;</span>
            <span style="color: #000000;">&#123;</span>
                <span style="color: #FF0000;">string</span> label = drive.<span style="color: #0000FF;">IsReady</span> ? drive.<span style="color: #0000FF;">VolumeLabel</span> : <span style="color: #0600FF;">null</span>;
&nbsp;
                <span style="color: #FF0000;">string</span> to_show = drive.<span style="color: #0000FF;">Name</span> + <span style="color: #808080;">&quot; - &quot;</span> + label;
&nbsp;
                <span style="color: #0600FF;">if</span> <span style="color: #000000;">&#40;</span>label == textBox1.<span style="color: #0000FF;">Text</span><span style="color: #000000;">&#41;</span>
                <span style="color: #000000;">&#123;</span>
                    to_show += <span style="color: #808080;">&quot; &lt;- MATCH&quot;</span>;
                <span style="color: #000000;">&#125;</span>
&nbsp;
                logger<span style="color: #000000;">&#40;</span>to_show<span style="color: #000000;">&#41;</span>;
            <span style="color: #000000;">&#125;</span>
            logger<span style="color: #000000;">&#40;</span><span style="color: #808080;">&quot;==================&quot;</span><span style="color: #000000;">&#41;</span>;
        <span style="color: #000000;">&#125;</span>
    <span style="color: #000000;">&#125;</span>
<span style="color: #000000;">&#125;</span>
&nbsp;</pre>
<p></code></p>
]]></content:encoded>
			<wfw:commentRss>http://thevedic.net/wordpress/2010/08/05/c-list-all-drives-and-search-by-drive-label/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>XBMC Keymap for a Diamond RC118N MCE Remote</title>
		<link>http://thevedic.net/wordpress/2010/05/05/xbmc-keymap-for-a-diamond-rc118n-mce-remote/</link>
		<comments>http://thevedic.net/wordpress/2010/05/05/xbmc-keymap-for-a-diamond-rc118n-mce-remote/#comments</comments>
		<pubDate>Thu, 06 May 2010 02:47:42 +0000</pubDate>
		<dc:creator>Deano</dc:creator>
				<category><![CDATA[Random]]></category>

		<guid isPermaLink="false">http://thevedic.net/wordpress/?p=310</guid>
		<description><![CDATA[The Diamond RC118N is not a good remote to choose. I messed with this for a while without much luck. Most of the buttons work out of the box. The power buttons, those in the first row (Pictures, Radio, ect), the Back button and the row under mute (Rec TV, Guide, ect) do not work. [...]]]></description>
			<content:encoded><![CDATA[<p>The Diamond RC118N is not a good remote to choose. I messed with this for a while without much luck. Most of the buttons work out of the box. The power buttons, those in the first row (Pictures, Radio, ect), the Back button and the row under mute (Rec TV, Guide, ect) do not work. There is no menu button. The pause button doesn't work, but you can get around that by pressing the play button.</p>
<p>This config below will get your ParentDir function working via the 'Back' button and the ContextMenu via * or #.</p>
<p>This needs to go into the global keyboard section of keymap.xml:</p>
<p>&lt;code&gt;<br />
&lt;key id="61606"&gt;ParentDir&lt;/key&gt;<br />
&lt;key id="61600"&gt;ContextMenu&lt;/key&gt;<br />
&lt;/code&gt;</p>
]]></content:encoded>
			<wfw:commentRss>http://thevedic.net/wordpress/2010/05/05/xbmc-keymap-for-a-diamond-rc118n-mce-remote/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Excel Tip of the Day!</title>
		<link>http://thevedic.net/wordpress/2010/03/16/excel-tip-of-the-day/</link>
		<comments>http://thevedic.net/wordpress/2010/03/16/excel-tip-of-the-day/#comments</comments>
		<pubDate>Tue, 16 Mar 2010 15:02:10 +0000</pubDate>
		<dc:creator>Deano</dc:creator>
				<category><![CDATA[Random]]></category>

		<guid isPermaLink="false">http://thevedic.net/wordpress/?p=308</guid>
		<description><![CDATA[You can put an ' (apostrophe) in front of the + or -, like this '- or '+. The ' is Excel's comment character. The ' will not be displayed. The + or - will be.]]></description>
			<content:encoded><![CDATA[<p>If you need to put a + (plus, positive) or - (minus, negative) sign in an Excel field, Excel tries to start building a formula. This is cool if you actually want to make a formula, not so much when all you want is the + or -.</p>
<p>You can put an ' (apostrophe) in front of the + or -, like this '- or '+. The ' is Excel's comment character. The ' will not be displayed. The + or - will be.</p>
]]></content:encoded>
			<wfw:commentRss>http://thevedic.net/wordpress/2010/03/16/excel-tip-of-the-day/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>PHP: Create a HTML drop down/select box from a database</title>
		<link>http://thevedic.net/wordpress/2010/01/28/php-create-a-html-drop-downselect-box-from-a-database/</link>
		<comments>http://thevedic.net/wordpress/2010/01/28/php-create-a-html-drop-downselect-box-from-a-database/#comments</comments>
		<pubDate>Thu, 28 Jan 2010 16:22:52 +0000</pubDate>
		<dc:creator>Deano</dc:creator>
				<category><![CDATA[Random]]></category>

		<guid isPermaLink="false">http://thevedic.net/wordpress/?p=289</guid>
		<description><![CDATA[Here is a function I use all of the time. It takes the contents of a mySQL table and creates an HTML select box (I call them drop downs) from it. &#160; # $table: The mySQL table to use. # $column: The column in $table to display # $name: The HTML name of the drop [...]]]></description>
			<content:encoded><![CDATA[<p>Here is a function I use all of the time. It takes the contents of a mySQL table and creates an HTML select box (I call them drop downs) from it.</p>
<p><code></p>
<pre class="php">&nbsp;
<span style="color: #808080; font-style: italic;"># $table: The mySQL table to use.</span>
<span style="color: #808080; font-style: italic;"># $column: The column in $table to display</span>
<span style="color: #808080; font-style: italic;"># $name: The HTML name of the drop down</span>
<span style="color: #808080; font-style: italic;"># $selected: The value that the drop down defaults to.</span>
<span style="color: #808080; font-style: italic;"># $show_any: If you have a row in the table where the $column equals</span>
                    00_Any it will be displayed.
<span style="color: #808080; font-style: italic;">#                  This is useful for having an Any or All value.</span>
<span style="color: #808080; font-style: italic;"># $distinct: Only show DISTINCT() $column</span>
<span style="color: #000000; font-weight: bold;">function</span> dropdown_db<span style="color: #66cc66;">&#40;</span><span style="color: #0000ff;">$table</span>, <span style="color: #0000ff;">$column</span>, <span style="color: #0000ff;">$name</span>, <span style="color: #0000ff;">$selected</span>,
                              <span style="color: #0000ff;">$show_any</span> = <span style="color: #cc66cc;">1</span>, <span style="color: #0000ff;">$distinct</span> = <span style="color: #cc66cc;">0</span><span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">&#123;</span> 
&nbsp;
  <span style="color: #0000ff;">$dropdown</span> = <span style="color: #ff0000;">&quot;
&lt;select id=<span style="color: #000099; font-weight: bold;">\&quot;</span>$name<span style="color: #000099; font-weight: bold;">\&quot;</span> name=<span style="color: #000099; font-weight: bold;">\&quot;</span>$name<span style="color: #000099; font-weight: bold;">\&quot;</span>&gt;<span style="color: #000099; font-weight: bold;">\n</span>&quot;</span>; 
&nbsp;
  <span style="color: #0000ff;">$any_sql</span> = <span style="color: #ff0000;">''</span>;
  <span style="color: #b1b100;">if</span><span style="color: #66cc66;">&#40;</span>!<span style="color: #0000ff;">$show_any</span><span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">&#123;</span>
    <span style="color: #0000ff;">$any_sql</span> = <span style="color: #ff0000;">&quot; WHERE $column &lt;&gt; '00_Any' &quot;</span>;
  <span style="color: #66cc66;">&#125;</span> 
&nbsp;
  <span style="color: #0000ff;">$select</span> = <span style="color: #0000ff;">$column</span>;
  <span style="color: #b1b100;">if</span><span style="color: #66cc66;">&#40;</span><span style="color: #0000ff;">$distinct</span><span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">&#123;</span>
    <span style="color: #0000ff;">$select</span> = <span style="color: #ff0000;">&quot;DISTINCT($column)&quot;</span>;
  <span style="color: #66cc66;">&#125;</span> 
&nbsp;
  <span style="color: #0000ff;">$from_db</span> = <span style="color: #ff0000;">&quot;SELECT $select FROM $table $any_sql ORDER by $column&quot;</span>;
  <span style="color: #0000ff;">$from_db2</span> = <a href="http://www.php.net/mysql_query"><span style="color: #000066;">mysql_query</span></a><span style="color: #66cc66;">&#40;</span><span style="color: #0000ff;">$from_db</span><span style="color: #66cc66;">&#41;</span> ;
  <span style="color: #b1b100;">while</span><span style="color: #66cc66;">&#40;</span><span style="color: #0000ff;">$from_db3</span>=<a href="http://www.php.net/mysql_fetch_array"><span style="color: #000066;">mysql_fetch_array</span></a><span style="color: #66cc66;">&#40;</span><span style="color: #0000ff;">$from_db2</span>, MYSQL_ASSOC<span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">&#123;</span> 
&nbsp;
    <span style="color: #0000ff;">$value</span> = <span style="color: #0000ff;">$from_db3</span><span style="color: #66cc66;">&#91;</span><span style="color: #ff0000;">&quot;$column&quot;</span><span style="color: #66cc66;">&#93;</span>; 
&nbsp;
    <span style="color: #0000ff;">$pretty_db</span> = <span style="color: #0000ff;">$value</span>;
    <span style="color: #0000ff;">$pretty_db</span> = <a href="http://www.php.net/str_replace"><span style="color: #000066;">str_replace</span></a><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">'00_'</span>, <span style="color: #ff0000;">''</span>, <span style="color: #0000ff;">$pretty_db</span><span style="color: #66cc66;">&#41;</span>;
    <span style="color: #0000ff;">$pretty_db</span> = <a href="http://www.php.net/str_replace"><span style="color: #000066;">str_replace</span></a><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">'_'</span>, <span style="color: #ff0000;">' '</span>, <span style="color: #0000ff;">$pretty_db</span><span style="color: #66cc66;">&#41;</span>; 
&nbsp;
    <span style="color: #0000ff;">$SELECTED</span> = <span style="color: #ff0000;">''</span>;
    <span style="color: #b1b100;">if</span><span style="color: #66cc66;">&#40;</span><span style="color: #0000ff;">$value</span> == <span style="color: #0000ff;">$selected</span><span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">&#123;</span>
        <span style="color: #0000ff;">$SELECTED</span> = <span style="color: #ff0000;">' SELECTED'</span>;
    <span style="color: #66cc66;">&#125;</span> 
&nbsp;
    <span style="color: #0000ff;">$dropdown</span> .= <span style="color: #ff0000;">&quot;
&lt;option value=<span style="color: #000099; font-weight: bold;">\&quot;</span>$value<span style="color: #000099; font-weight: bold;">\&quot;</span>$SELECTED&gt;$pretty_db&lt;/option&gt;
&nbsp;
<span style="color: #000099; font-weight: bold;">\n</span>&quot;</span>;
  <span style="color: #66cc66;">&#125;</span> 
&nbsp;
  <span style="color: #0000ff;">$dropdown</span> .= <span style="color: #ff0000;">&quot;&lt;/select&gt;
&nbsp;
<span style="color: #000099; font-weight: bold;">\n</span>&quot;</span>; 
&nbsp;
  <span style="color: #b1b100;">return</span><span style="color: #66cc66;">&#40;</span><span style="color: #0000ff;">$dropdown</span><span style="color: #66cc66;">&#41;</span>;
<span style="color: #66cc66;">&#125;</span>
&nbsp;</pre>
<p></code></p>
]]></content:encoded>
			<wfw:commentRss>http://thevedic.net/wordpress/2010/01/28/php-create-a-html-drop-downselect-box-from-a-database/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>OpenSwan to Cisco 7XXX Config</title>
		<link>http://thevedic.net/wordpress/2009/11/13/openswan-to-cisco-7xxx-config/</link>
		<comments>http://thevedic.net/wordpress/2009/11/13/openswan-to-cisco-7xxx-config/#comments</comments>
		<pubDate>Fri, 13 Nov 2009 16:37:12 +0000</pubDate>
		<dc:creator>Deano</dc:creator>
				<category><![CDATA[Random]]></category>

		<guid isPermaLink="false">http://thevedic.net/wordpress/?p=256</guid>
		<description><![CDATA[Oh hey, there! What's up? This was a week long project that should have been twenty minutes at most. I hate VPNs.  Call me odd, but I think the protocols should have the encryption built in.  If you need it use it, if not, don't. net-to-net.conf: conn net-to-net type= tunnel authby= secret left= MY PUBLIC [...]]]></description>
			<content:encoded><![CDATA[<p>Oh hey, there! What's up? This was a week long project that should have been twenty minutes at most.</p>
<p>I hate VPNs.  Call me odd, but I think the protocols should have the encryption built in.  If you need it use it, if not, don't.</p>
<p>net-to-net.conf:</p>
<pre>
conn net-to-net
        type=           tunnel
        authby=         secret
        left=           MY PUBLIC IP
        leftnexthop=    MY DEFAULT GATEWAY
        leftsubnet=     MY PUBLIC IP/32
        right=          REMOTE PUBLIC IP
        rightsubnet=    REMOTE PRIVATE IP/32
        keyexchange=    ike
        pfs=            no
        auto=           start
        ike=3des-md5-modp1024,3des-md5-modp1536
        esp=3des-md5
</pre>
<p>net-to-net.secrets:</p>
<pre>
MY PUBLIC IP REMOTE PUBLIC IP: PSK "password"
</pre>
]]></content:encoded>
			<wfw:commentRss>http://thevedic.net/wordpress/2009/11/13/openswan-to-cisco-7xxx-config/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>PHP Image/Ad Rotator</title>
		<link>http://thevedic.net/wordpress/2009/02/07/php-imagead-rotator/</link>
		<comments>http://thevedic.net/wordpress/2009/02/07/php-imagead-rotator/#comments</comments>
		<pubDate>Sat, 07 Feb 2009 16:49:45 +0000</pubDate>
		<dc:creator>Deano</dc:creator>
				<category><![CDATA[Random]]></category>

		<guid isPermaLink="false">http://thevedic.net/wordpress/?p=117</guid>
		<description><![CDATA[Simply reads a directory of images and rotates through them randomly. What makes it cool is the script is called from and HTML IMG tag. Neato. Download Source! Once downloaded, open the file and change $ad_dir to the path (not url) of your images. Then upload it to your web host. Call the script from [...]]]></description>
			<content:encoded><![CDATA[<p>Simply reads a directory of images and rotates through them randomly. What makes it cool is the script is called from and HTML IMG tag. Neato.</p>
<p style="text-align: center;"><img class="aligncenter" title="Example!" src="/wordpress/wp-content/uploads/2009/02/ad_rotator.php" alt=""/></p>
<p><a title="Image Rotator Source" href="/wordpress/wp-content/uploads/2009/02/ad_rotator.phps"><strong>Download Source!</strong></a></p>
<p>Once downloaded, open the file and change $ad_dir to the path (not url) of your images. Then upload it to your web host. Call the script from an IMG tag: &lt;img src=ad_rotator.php&gt;</p>
]]></content:encoded>
			<wfw:commentRss>http://thevedic.net/wordpress/2009/02/07/php-imagead-rotator/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>PlayOn &#8211; XBMC</title>
		<link>http://thevedic.net/wordpress/2009/01/07/playon-xbmc/</link>
		<comments>http://thevedic.net/wordpress/2009/01/07/playon-xbmc/#comments</comments>
		<pubDate>Wed, 07 Jan 2009 18:28:11 +0000</pubDate>
		<dc:creator>Deano</dc:creator>
				<category><![CDATA[Random]]></category>

		<guid isPermaLink="false">http://thevedic.net/wordpress/?p=105</guid>
		<description><![CDATA[I've been trying out the beta of PlayOn on my Xbox for the last few weeks. I like it. PlayOn is a UPnP server that you install on your PC. It scrapes RSS feeds and then performs some magic so you can watch videos from those feeds on DLNA capable devices. So far it supports [...]]]></description>
			<content:encoded><![CDATA[<p>I've been trying out the beta of <a href="http://www.themediamall.com/playon">PlayOn</a> on my Xbox for the last few weeks. I like it.</p>
<p>PlayOn is a UPnP server that you install on your PC. It scrapes RSS feeds and then performs some magic so you can watch videos from those feeds on DLNA capable devices. So far it supports YouTube, Netflix, CBS, CNN, ESPN and Hulu.</p>
<p>It works well on my Xbox running XBMC. It's really nice to watch videos from those sites on my TV, so nice that I paid the $30 for the registered version of PlayOn.</p>
<p>It is a beta, and the only problem I have found is a strange one. My first attempt to play a video never works, the second one always does. This means I click play, wait five seconds for it to fail, then click play again. It's hardly even annoying.</p>
]]></content:encoded>
			<wfw:commentRss>http://thevedic.net/wordpress/2009/01/07/playon-xbmc/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Operation Silent Xbox</title>
		<link>http://thevedic.net/wordpress/2008/12/02/operation-silent-xbox/</link>
		<comments>http://thevedic.net/wordpress/2008/12/02/operation-silent-xbox/#comments</comments>
		<pubDate>Tue, 02 Dec 2008 15:34:18 +0000</pubDate>
		<dc:creator>Deano</dc:creator>
				<category><![CDATA[Random]]></category>

		<guid isPermaLink="false">http://thevedic.net/wordpress/?p=68</guid>
		<description><![CDATA[I use a soft modded Xbox with XBMC as a home theatre PC. I do not have cable TV or satellite,  my DVD player isn't even plugged in. XBMC is the only way I watch TV or movies. I really like this setup. It is easy to use and I have never had a problem [...]]]></description>
			<content:encoded><![CDATA[<p>I use a soft modded Xbox with <a href="http://xbmc.org/">XBMC</a> as a home theatre PC. I do not have cable TV or satellite,  my DVD player isn't even plugged in. XBMC is the only way I watch TV or movies.</p>
<p>I really like this setup. It is easy to use and I have never had a problem with it besides one; my Xbox is loud. It is not any louder than a normal Xbox and in PC terms it is pretty quiet. After years of working around computers hard drive whines and fans annoy the piss out of me. Where as a normal person would never hear it, I can. Normally I can tune it out, but sometimes, like when I pause a show, I can hear it.</p>
<p>This is what it sounds like:</p>
<p><a href="http://thevedic.net/wordpress/2008/12/02/operation-silent-xbox/"><em>Click here to view the embedded video.</em></a></p>
<p>It is slowly driving me insane.</p>
<p>I tried out a <a href="/wordpress/2008/11/13/popcorn-hour-a-110/">Popcorn Hour A-110</a> and it did not have any where near the features or polish XBMC has. It was quiet though. I've also tried MythTV it was a pain in the ass to setup and use. Also the PC needed to run it wasn't any better noise wise than the Xbox.</p>
<p>Now my plan is to make the Xbox silent by purchasing a new hard drive and fan.</p>
<p>HD: Seagate Barracude 7200 80GB ($52 shipped)<br />
Fan: Noctua NF-R8 Ultra Silent 80mm ($21 shipped)</p>
<p>Both of these come recommended as being very quiet.</p>
<p>Here is where this story gets sad.</p>
<p>The fan couldn't push enough air and my Xbox was getting too hot. Back to the old fan. Thing is, even spun up, the original fan isn't very loud. XBMC keeps it at around %20 max spin anyway. It's silent.</p>
<p>The new hard drive was just as loud as the old one. From experimenting a bit the hard drive is by far the loudest component in the Xbox. The only other noise makers are the DVD drive, the case fan, and the GPU fan. I never use the DVD drive. The GPU and case fans are pretty much silent.</p>
<p>What recourse does that leave me with? Not much really, I can purchase an SSD hard drive which will be silent as the night is dark, but they cost about $250 for 80GB. That's more than I paid for the Xbox, new hds, and fan put together. I'm not willing to do that.</p>
<p>My other option is to build an HTPC from scratch and use XBMC Linux. Again, relatively high cost would be factor in this too.</p>
<p>What I ended up doing was pushing the Xbox as far back into my entertainment center as possible. A couple inches of wood and a TV make for ok sound proofing.</p>
<p>Good times.</p>
]]></content:encoded>
			<wfw:commentRss>http://thevedic.net/wordpress/2008/12/02/operation-silent-xbox/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Popcorn Hour A-110</title>
		<link>http://thevedic.net/wordpress/2008/11/13/popcorn-hour-a-110/</link>
		<comments>http://thevedic.net/wordpress/2008/11/13/popcorn-hour-a-110/#comments</comments>
		<pubDate>Thu, 13 Nov 2008 21:01:15 +0000</pubDate>
		<dc:creator>Deano</dc:creator>
				<category><![CDATA[Me]]></category>
		<category><![CDATA[Random]]></category>

		<guid isPermaLink="false">http://thevedic.net/wordpress/?p=67</guid>
		<description><![CDATA[I received my Popcorn Hour the other day and so far I am not happy with it. I have an Xbox with XBMC that I had been using every day. I bought the Popcorn Hour for a couple of reasons, HD, quietness, and I'm worried about my four year old Xbox having a heart attack [...]]]></description>
			<content:encoded><![CDATA[<p>I received my <a href="http://www.popcornhour.com/">Popcorn Hour</a> the other day and so far I am not happy with it.</p>
<p>I have an Xbox with XBMC that I had been using every day. I bought the Popcorn Hour for a couple of reasons, HD, quietness, and I'm worried about my four year old Xbox having a heart attack in the middle of a movie.</p>
<p>It was my hope that the Popcorn hour would work at least as well as the Xbox and solve those problems. The Popcorn works exactly as advertised, no complaints there. I can plug it into my network and watch videos off of a SMB share.</p>
<p>I really think my problems are more, 'It is not XMBC', rather than the Popcorn Hour being flawed.</p>
<p>What I like:</p>
<p>* The case looks a lot nicer than an Xbox.<br />
* It's silent. This is wonderful.<br />
* Watching TV on an Xbox makes you feel like a huge nerd, not so much on the Popcorn.</p>
<p>My problems:</p>
<p>* The interface is slow. There is a second or two pause between pages when scrolling through a directory listing. XMBC can scroll through the same list in a blur. This slowness annoys the hell out of me, I don't see any reason why it should be slow either. Cache the directory listing, and then scroll the cached copy, dang.</p>
<p>* I have a lot of music videos that I like to queue into a random play list and play while I work around the house. Popcorn can't seem to do this.</p>
<p>* No FLV file support, this one is my fault for not paying attention to the supported formats list, but it still bugs me.</p>
<p>* Whenever a video loads, my TV displays a bright blue 'NO INPUT' screen for about four seconds before the video starts. This is annoying any time, and blinds you late at night.</p>
<p>As my opinion stands now I wouldn't recommend the Popcorn Hour to anyone. At first I was going to say it would be nice for someone who isn't computer savvy, but anyone capable of having a collection of ripped videos and such to warrant a Popcorn Hour is probably smart enough to figure out XBMC.</p>
<p><strong>Update 11/15/08:</strong></p>
<p>Some goony goon goon suggested I set the PH to use one video mode instead of auto. That fixed my TV blue screening.</p>
<p>I still hate the PH and I am sending it back.</p>
<p>My Xbox will never play HD, so for that I'm going to wait until XBMC Linux matures and then I'll build an HTPC. In the mean time, so begins Operation Silent Xbox.</p>
]]></content:encoded>
			<wfw:commentRss>http://thevedic.net/wordpress/2008/11/13/popcorn-hour-a-110/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
