<?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>Web Hosting</title>
	<atom:link href="http://www.omniweb.com/wordpress/?feed=rss2" rel="self" type="application/rss+xml" />
	<link>http://www.omniweb.com/wordpress</link>
	<description>Linux configurations and more</description>
	<lastBuildDate>Sat, 05 May 2012 14:58:27 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
		<item>
		<title>Connect WordPress to a second database</title>
		<link>http://www.omniweb.com/wordpress/?p=465</link>
		<comments>http://www.omniweb.com/wordpress/?p=465#comments</comments>
		<pubDate>Sat, 05 May 2012 14:55:46 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.omniweb.com/wordpress/?p=465</guid>
		<description><![CDATA[While building a wordpress site and needed to work with a separate existing database. Added a function in wp-includes/functions.php like this: function my_query($sql){ $db = @mysql_connect("my_DB_host", "DB_usr", "DB_pass"); mysql_select_db("my_other_database"); $result = mysql_query($sql) or die('Did not get required database result'); return &#8230; <a href="http://www.omniweb.com/wordpress/?p=465">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>While building a wordpress site and needed to work with a separate existing database.<br />
Added a function in wp-includes/functions.php like this:</p>
<p><code><br />
function my_query($sql){<br />
$db = @mysql_connect("my_DB_host", "DB_usr", "DB_pass");<br />
mysql_select_db("my_other_database");<br />
$result = mysql_query($sql) or die('Did not get required database result');<br />
return $result;<br />
mysql_close($db);<br />
}<br />
</code></p>
<p>Then wherever I need to connect to this database I can use the function like this:</p>
<p><code><br />
$sql = sprintf("SELECT blah FROM table");<br />
$result = my_query($sql);<br />
</code></p>
]]></content:encoded>
			<wfw:commentRss>http://www.omniweb.com/wordpress/?feed=rss2&#038;p=465</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Reboot Windows XP via Remote Desktop</title>
		<link>http://www.omniweb.com/wordpress/?p=461</link>
		<comments>http://www.omniweb.com/wordpress/?p=461#comments</comments>
		<pubDate>Tue, 24 Apr 2012 17:52:59 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.omniweb.com/wordpress/?p=461</guid>
		<description><![CDATA[I work on remote machines fairly often. Sometimes a software install will ask for a reboot. But when you click the &#8220;Start&#8221; button, the options aren&#8217;t there! Right click on the task bar at the bottom and go to task &#8230; <a href="http://www.omniweb.com/wordpress/?p=461">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>I work on remote machines fairly often.  Sometimes a software install will ask for a reboot.  But when you click the &#8220;Start&#8221; button, the options aren&#8217;t there!</p>
<p>Right click on the task bar at the bottom and go to task manager, look for the menu named &#8216;Shutdown&#8217; and choose &#8216;Restart&#8217;</p>
<p>that&#8217;s it!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.omniweb.com/wordpress/?feed=rss2&#038;p=461</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Convert MSSQL dates to MySQL</title>
		<link>http://www.omniweb.com/wordpress/?p=453</link>
		<comments>http://www.omniweb.com/wordpress/?p=453#comments</comments>
		<pubDate>Sat, 21 Apr 2012 03:31:37 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.omniweb.com/wordpress/?p=453</guid>
		<description><![CDATA[I&#8217;m moving a database from MSSQL to MySQL, I was cruising along with CSV files until I hit a table that has some date columns. They weren&#8217;t showing up right no matter what, until I found this post: http://abbyandwin.net/blog/2007/08/14/how-to-convert-mssql-date-format-to-mysql Here’s &#8230; <a href="http://www.omniweb.com/wordpress/?p=453">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>I&#8217;m moving a database from MSSQL to MySQL, I was cruising along with CSV files until I hit a table that has some date columns.  They weren&#8217;t showing up right no matter what, until I found this post:</p>
<p><a href="http://abbyandwin.net/blog/2007/08/14/how-to-convert-mssql-date-format-to-mysql">http://abbyandwin.net/blog/2007/08/14/how-to-convert-mssql-date-format-to-mysql</a></p>
<p>Here’s the query to run on MSSQL:</p>
<p>SELECT CONVERT(VARCHAR(40),[date_column_name],120) AS new_date_format FROM [table_name]</p>
<p>Thanks Abby &#038; Win!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.omniweb.com/wordpress/?feed=rss2&#038;p=453</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How Long does it take to copy VMs with VMWare vCenter Converter Standalone?</title>
		<link>http://www.omniweb.com/wordpress/?p=447</link>
		<comments>http://www.omniweb.com/wordpress/?p=447#comments</comments>
		<pubDate>Tue, 10 Apr 2012 17:58:24 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.omniweb.com/wordpress/?p=447</guid>
		<description><![CDATA[Still considering whether it will be worth purchasing vCenter software, for now I am getting by with the free tools supplied by VMWare. To clone a new VM from one ESXi host to another, I powered it down and used &#8230; <a href="http://www.omniweb.com/wordpress/?p=447">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Still considering whether it will be worth purchasing <a href="http://store.vmware.com/store/vmware/en_US/DisplayProductDetailsPage/productID.233867900">vCenter software</a>, for now I am getting by with the free tools supplied by VMWare.  To clone a new VM from one ESXi host to another, I powered it down and used <a href="http://www.vmware.com/products/converter">vCenter Converter</a> to do a VM to VM copy.<br />
The VM I&#8217;m copying was about 350GB. When I launched the Task, the Estimated time was 1 hour.  After the progress achieved 1%, the estimated time jumped up to 1 day, 18 hours.  It remained there as progress reached 2% about an hour later.  I came back the next morning about 15 hours later, and the conversion was completed successfully.  Very glad it didn&#8217;t take more than 1 day or I would&#8217;ve had to stop the process and find another way.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.omniweb.com/wordpress/?feed=rss2&#038;p=447</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Moving Repository: cvs checkout: Codepage transformation not supported by server.  Results may not be correct</title>
		<link>http://www.omniweb.com/wordpress/?p=440</link>
		<comments>http://www.omniweb.com/wordpress/?p=440#comments</comments>
		<pubDate>Mon, 09 Apr 2012 18:47:59 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.omniweb.com/wordpress/?p=440</guid>
		<description><![CDATA[We have a CVS repository on linux and Tortoise CVS users on windows. Sometimes we need to move our repository and users start seeing the subject error. Wasted time looking into it, has to do with UTF-8 stuff going from &#8230; <a href="http://www.omniweb.com/wordpress/?p=440">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>We have a CVS repository on linux and Tortoise CVS users on windows.  Sometimes we need to move our repository and users start seeing the subject error.  Wasted time looking into it, has to do with UTF-8 stuff going from linux to windows&#8230;   Apparently it can be safely ignored in the modern versions of Tortoise CVS, don&#8217;t waste your time with it!</p>
<p>Another issue with the CVS move is changing all the CVS Root files to reflect the new hostname; <a href="http://www.solarorange.com/docs/cvs/repositorymove.html" title="how to move CVS repository">this blog</a> post has the right answers.  Created the changeroot.sh file and updated our newly located branches to know where they belong.<br />
<code><br />
First off we need to change the CVS Root for the working copy. Here’s the script that will do the job:</p>
<p>#!/bin/bash<br />
# Test whether we got an argument for the new CVS Root value - exit if not<br />
# 	-z <somestring> is a bash conditional experssion that returns true<br />
# 	if the <somestring> has a zero length<br />
if [ -z "$1" ]; then<br />
  echo "</p>
<p>You must supply a new value for CVSRoot<br />
usage: $0 <newcvsrootvalue></p>
<p>Examples:<br />
	To change to an external repository accessed via ssh:<br />
	./changerepository.sh :ext:crb@webdevcvs:/Users/Shared/cvsrep</p>
<p>	To change to a local repository:<br />
	./changerepository.sh /Users/Shared/cvsrep<br />
"<br />
  exit<br />
fi<br />
# if we were passed a new CVS Root value on the command line, assign it to<br />
# the newRoot variable<br />
newRoot=$1<br />
# walk the current directory (find . ) and if the path matches */CVS/Root,<br />
# slap the new CVS Root into the files found<br />
find . -path "*/CVS/Root" | while read f; do<br />
  echo $newRoot > $f<br />
done</p>
<p>To run this script and change the root, copy and paste the code into your favourite text editor, save it as changeroot.sh in the root directory of your working copy and chmod it to be executable. You can then run it using</p>
<p>./changeroot.sh [newcvsrootvalue]<br />
Where [newcvsrootvalue] is the name of your new CVS Root, for example:</p>
<p>./changeroot.sh :ext:me@newrepository.net:/usr/local/cvsrep<br />
If its just the host name of your repository that has changed, you’re done<br />
</code></p>
<p>thank you solarorange <img src='http://www.omniweb.com/wordpress/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://www.omniweb.com/wordpress/?feed=rss2&#038;p=440</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How To Install HandBrake Command Line Version on Ubuntu Server 10</title>
		<link>http://www.omniweb.com/wordpress/?p=436</link>
		<comments>http://www.omniweb.com/wordpress/?p=436#comments</comments>
		<pubDate>Sat, 07 Apr 2012 17:54:59 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.omniweb.com/wordpress/?p=436</guid>
		<description><![CDATA[Handbrake is a great tool for encoding video. Best of all it is open source and free. If you are running Ubuntu server, here are the steps to install it quickly and painlessly! $ sudo su # apt-get install python-software-properties &#8230; <a href="http://www.omniweb.com/wordpress/?p=436">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p><a href="http://handbrake.fr/">Handbrake</a> is a great tool for encoding video.  Best of all it is open source and free.  If you are running Ubuntu server, here are the steps to install it quickly and painlessly!</p>
<p>$ sudo su<br />
# apt-get install python-software-properties<br />
 (hit Y to continue)<br />
# add-apt-repository ppa:stebbins/handbrake-releases<br />
# apt-get update<br />
# apt-get install handbrake-cli<br />
# HandBrakeCLI -u<br />
HandBrake 0.9.6 (2012030100) &#8211; Linux x86_64 &#8211; http://handbrake.fr<br />
Your version of HandBrake is up to date.</p>
<p>Find your encode settings then start encoding, woohoo!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.omniweb.com/wordpress/?feed=rss2&#038;p=436</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Format USB on Ubuntu Server</title>
		<link>http://www.omniweb.com/wordpress/?p=434</link>
		<comments>http://www.omniweb.com/wordpress/?p=434#comments</comments>
		<pubDate>Mon, 02 Apr 2012 17:05:38 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.omniweb.com/wordpress/?p=434</guid>
		<description><![CDATA[I have a brand new USB drive and I want to backup some contents on my server. I hooked up the drive and type &#8220;mount -t ext3 /mnt/usb /dev/sdc1&#8243; but the drive is not formatted so this gave me an &#8230; <a href="http://www.omniweb.com/wordpress/?p=434">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>I have a brand new USB drive and I want to backup some contents on my server.  I hooked up the drive and type &#8220;mount -t ext3 /mnt/usb /dev/sdc1&#8243; but the drive is not formatted so this gave me an error.</p>
<p>The steps to format the new USB from Ubuntu server command line are as follows:<br />
type &#8220;dmesg&#8221; to find / make sure  you have the correct drive letter (in my case, sdc)<br />
type &#8220;fdisk /dev/sdc&#8221; (this returns a menu listing)<br />
type &#8220;n&#8221; for new<br />
type &#8220;1&#8243; for partition number and use the defaults for start and end points.<br />
Then type &#8220;w&#8221; to save the changes.<br />
now to format the new partition, type &#8220;mkfs -t ext3 /dev/sdc1&#8243;<br />
then the mount command works.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.omniweb.com/wordpress/?feed=rss2&#038;p=434</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Can&#8217;t locate File/Pid.pm in @INC</title>
		<link>http://www.omniweb.com/wordpress/?p=432</link>
		<comments>http://www.omniweb.com/wordpress/?p=432#comments</comments>
		<pubDate>Tue, 06 Mar 2012 18:53:52 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.omniweb.com/wordpress/?p=432</guid>
		<description><![CDATA[Sometimes when I move a script onto a new server, i see the subject error. File::Pid is a handy little perl toolkit for keeping track of your own pid. Every time I see the error I scramble around trying to &#8230; <a href="http://www.omniweb.com/wordpress/?p=432">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Sometimes when I move a script onto a new server, i see the subject error.<br />
File::Pid is a handy little perl toolkit for keeping track of your own pid.<br />
Every time I see the error I scramble around trying to find the fix.  So here it is:<br />
perl -MCPAN -e shell<br />
> install File::Pid</p>
]]></content:encoded>
			<wfw:commentRss>http://www.omniweb.com/wordpress/?feed=rss2&#038;p=432</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>OpenSSL Signing my own certificates Error Solved</title>
		<link>http://www.omniweb.com/wordpress/?p=427</link>
		<comments>http://www.omniweb.com/wordpress/?p=427#comments</comments>
		<pubDate>Fri, 02 Mar 2012 05:27:05 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.omniweb.com/wordpress/?p=427</guid>
		<description><![CDATA[this is on CentOS: sudo openssl ca -in /opt/openssl/testCA/server/requests/testWEB.CSR -cert /opt/openssl/testCA/CA/testCA.CRT -keyfile /opt/openssl/testCA/CA/testCA.KEY -out /opt/openssl/testCA/server/certificates/testWEB.CRT Using configuration from /etc/openssl.cnf I am unable to access the /etc/openssl/testCA/certs directory I tried creating the folders and files it wanted, what a mistake. I &#8230; <a href="http://www.omniweb.com/wordpress/?p=427">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>this is on CentOS:<br />
<code>sudo openssl ca -in /opt/openssl/testCA/server/requests/testWEB.CSR -cert /opt/openssl/testCA/CA/testCA.CRT -keyfile /opt/openssl/testCA/CA/testCA.KEY -out /opt/openssl/testCA/server/certificates/testWEB.CRT<br />
Using configuration from /etc/openssl.cnf<br />
I am unable to access the /etc/openssl/testCA/certs directory</code></p>
<p>I tried creating the folders and files it wanted, what a mistake.<br />
I finally found the proper thing to do is to find the install folder, such as /usr/share/src/openssl-1.0.0z<br />
then copy the contents of apps/demoCA into wherever openssl is looking, eg for the example above,<br />
<code>cp -a /usr/share/src/openssl-1.0.0z/apps/demoCA/* /etc/openssl/testCA/certs/</code></p>
]]></content:encoded>
			<wfw:commentRss>http://www.omniweb.com/wordpress/?feed=rss2&#038;p=427</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Trouble with PDF::API2 paragraph function</title>
		<link>http://www.omniweb.com/wordpress/?p=424</link>
		<comments>http://www.omniweb.com/wordpress/?p=424#comments</comments>
		<pubDate>Thu, 16 Feb 2012 18:52:14 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.omniweb.com/wordpress/?p=424</guid>
		<description><![CDATA[We have some ancient code for printing documents that relied on the PDF::API2 module. When we upgraded our systems, this module has some different behavior and our program was throwing errors. First, I commented out the &#8220;pdf->page->text->compress&#8221; function calls and &#8230; <a href="http://www.omniweb.com/wordpress/?p=424">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>We have some ancient code for printing documents that relied on the PDF::API2 module.  When we upgraded our systems, this module has some different behavior and our program was throwing errors.<br />
First, I commented out the &#8220;pdf->page->text->compress&#8221; function calls and that helped.  But some text was not showing up.  Turns out the &#8220;text->paragraph&#8221; function totally changed.  Thankfully google <a href="http://osdir.com/ml/lang.perl.modules.pdfapi2/2005-02/msg00037.html">led me to this page</a> where I found the proper way to update my paragraph calls:</p>
<p>OLD<br />
<code>$text->paragraph("Hello, just a test."x10, -x => 300, -y => 600, -h => 600, -w => 200);</code></p>
<p>NEW<br />
<code>$text->translate( 300, 600 );<br />
$overflow = $text->paragraph( "Hello, just a test. "x10, 200, 600 );</code></p>
<p>Scary note at the bottom, but applying the change above worked for me!<br />
<code>DEVELOPER METHOD means:<br />
1. This method may not do anything useful.<br />
2. This method may erase your hard disk(s).<br />
3. This method may erase the hard disks on any machine your machine is connected to.<br />
4. This method is subjected to change *without* notice.</code></p>
]]></content:encoded>
			<wfw:commentRss>http://www.omniweb.com/wordpress/?feed=rss2&#038;p=424</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

