<?xml version="1.0" encoding="utf-8" ?>

<rss version="2.0" 
   xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
   xmlns:admin="http://webns.net/mvcb/"
   xmlns:dc="http://purl.org/dc/elements/1.1/"
   xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
   xmlns:wfw="http://wellformedweb.org/CommentAPI/"
   xmlns:content="http://purl.org/rss/1.0/modules/content/"
   xmlns:creativeCommons="http://backend.userland.com/creativeCommonsRssModule">
<channel>
    <title>code-complete - Redhat Linux</title>
    <link>http://www.code-complete.com/code/</link>
    <description>est.1998 :: v. 8.0 </description>
    <dc:language>en</dc:language>
    <generator>Serendipity 1.4.1 - http://www.s9y.org/</generator>
    <pubDate>Wed, 09 Jul 2008 19:23:30 GMT</pubDate>

    <image>
        <url>http://www.code-complete.com/code/templates/default/img/s9y_banner_small.png</url>
        <title>RSS: code-complete - Redhat Linux - est.1998 :: v. 8.0 </title>
        <link>http://www.code-complete.com/code/</link>
        <width>100</width>
        <height>21</height>
    </image>

<item>
    <title>Fedora 9 and samsung harddrives:  Install fails</title>
    <link>http://www.code-complete.com/code/index.php?/archives/50-Fedora-9-and-samsung-harddrives-Install-fails.html</link>
            <category>Redhat Linux</category>
    
    <comments>http://www.code-complete.com/code/index.php?/archives/50-Fedora-9-and-samsung-harddrives-Install-fails.html#comments</comments>
    <wfw:comment>http://www.code-complete.com/code/wfwcomment.php?cid=50</wfw:comment>

    <slash:comments>0</slash:comments>
    <wfw:commentRss>http://www.code-complete.com/code/rss.php?version=2.0&amp;type=comments&amp;cid=50</wfw:commentRss>
    

    <author>nospam@example.com (thaddeus)</author>
    <content:encoded>
    Just a quick note to warn folks of a bug in anaconda, the installer in fedora 9.  Machines that sport a Samsung hardrive should &lt;strong&gt;not&lt;/strong&gt; attempt to move to f9 from f8 as the installer will throw an error like this:&lt;br /&gt;
&lt;code&gt;&lt;br /&gt;
Invalid Object Path &lt;br /&gt;
&#039;/org/freedesktop/hal/devices/storage=model_SAMSUNG_HD160JJ/&#039; ends with &#039;/&#039; and is not just &#039;/&#039;&lt;br /&gt;
&lt;/code&gt;&lt;br /&gt;
&lt;br /&gt;
This is because the harddrive&#039;s identifier contains the &#039;/&#039; character, and HAL gets confused.  This happens whether you are trying to install from DVD or via the preupgrade process.&lt;br /&gt;
&lt;br /&gt;
This is a known bug:  &lt;a href=&quot;http://fedoraproject.org/wiki/Bugs/F9Common#Some_Samsung_hard_disks_crash_the_installer&quot; &gt;here.&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
I have verified that you can install on this hardware using the Live CD.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
 
    </content:encoded>

    <pubDate>Wed, 09 Jul 2008 13:23:30 -0600</pubDate>
    <guid isPermaLink="false">http://www.code-complete.com/code/index.php?/archives/50-guid.html</guid>
    <creativeCommons:license>http://creativecommons.org/licenses/by/3.0/</creativeCommons:license>
</item>
<item>
    <title>Upgrading to Fedora 9 From 8 Using preupgrade</title>
    <link>http://www.code-complete.com/code/index.php?/archives/49-Upgrading-to-Fedora-9-From-8-Using-preupgrade.html</link>
            <category>Redhat Linux</category>
    
    <comments>http://www.code-complete.com/code/index.php?/archives/49-Upgrading-to-Fedora-9-From-8-Using-preupgrade.html#comments</comments>
    <wfw:comment>http://www.code-complete.com/code/wfwcomment.php?cid=49</wfw:comment>

    <slash:comments>4</slash:comments>
    <wfw:commentRss>http://www.code-complete.com/code/rss.php?version=2.0&amp;type=comments&amp;cid=49</wfw:commentRss>
    

    <author>nospam@example.com (thaddeus)</author>
    <content:encoded>
    Since F9 has been out for a bit, I decided to upgrade my Lenovo y410 lappy yesterday.  Following are suggestions to make the process a little smoother for anyone else who upgrades.&lt;br /&gt;
&lt;br /&gt;
First of all, there are a few different ways to upgrade.  It can be done via yum exclusively, from the dvd, or by using the new preupgrade program.  I chose the latter, but I did have an F9 install DVD handy, and I&#039;m glad I did - you&#039;ll find out why in a bit.  So, on to it.&lt;br /&gt;
&lt;br /&gt;
#1.  make sure you&#039;re on a reliable high-speed network and run the preupgrade program following all the prompts.  this will download a core set of F9 rpms into a /var/yum/cache/upgrade directory.&lt;br /&gt;
&lt;br /&gt;
#2 after that completes, it asks you to reboot.  once again, make sure you are on a reliable high-speed network because there&#039;s more to be downloaded.  if the installer can&#039;t recognize your NIC and network connection, you may need to try a USB NIC.  Once I got the installer online it downloaded something then began installing the fc9 packages into my system.&lt;br /&gt;
&lt;br /&gt;
#3 I had over 1400 rpm packages that got upgraded to get to the new OS - that took about 2 hours.  Once that was complete I got a creen that said &quot;finishing the upgrade process, this may take a little while.&quot;  Indeed it did:  45 Mins later I was ready to reboot.&lt;br /&gt;
&lt;br /&gt;
#4 on reboot the system loaded up the 2.6.24.7-92 kernel and all the modules loaded except cups, which failed.  Also, the gnome GUI was a little strange and some other minor issues were there, but overall, the system was working.&lt;br /&gt;
&lt;br /&gt;
#5 time to get updates.  The familiar add/remove programs link was no longer present in the Applications menu (that program has been deprecated) so I used yumex to see what was out there.  Well, it turns out the upgrade process did not update my yum repositories, which were still pointed at fedora 8 for updates from fedora as well as livna.  To fix this, you need to edit the yum repo config files under /etc/yum.repo.d  I just edited my fedora.repo file and livna.repo file changing out refs to f8 to f9 and set the gpgcheck flag to 0.&lt;br /&gt;
&lt;br /&gt;
#6 running yumex again showed a lot of legitimate updates.  I decided to update the kernel packages first including development and headers becuase I could not recompile the vbox kernel module with what the upgrade had installed.&lt;br /&gt;
&lt;br /&gt;
#7 Once the updaes were installed, I rebooted.  Shit!  The machine got as far as black screen with GRUB _ and a blinking cursor.  Glad I had the DVD becuase I needed to boot from dvd, go into rescue mode and fix the boot loader which had gotten screwed by the kernel update.  Once you are in a command shell the following commands worked to fix grub:&lt;br /&gt;
&lt;code&gt;&lt;br /&gt;
#chroot /mnt/sysimage&lt;br /&gt;
#grub-install /dev/sda&lt;br /&gt;
&lt;/code&gt;&lt;br /&gt;
&lt;br /&gt;
#8 reboot and all was good.&lt;br /&gt;
&lt;br /&gt;
#9 still some funky things going on with the GUI so overnight I installed all the updates for f9 from the updates repository and today everything is working like a champ.&lt;br /&gt;
&lt;br /&gt;
 
    </content:encoded>

    <pubDate>Thu, 12 Jun 2008 12:05:22 -0600</pubDate>
    <guid isPermaLink="false">http://www.code-complete.com/code/index.php?/archives/49-guid.html</guid>
    <creativeCommons:license>http://creativecommons.org/licenses/by/3.0/</creativeCommons:license>
</item>
<item>
    <title>Fedora 9 - Released Today</title>
    <link>http://www.code-complete.com/code/index.php?/archives/48-Fedora-9-Released-Today.html</link>
            <category>Redhat Linux</category>
    
    <comments>http://www.code-complete.com/code/index.php?/archives/48-Fedora-9-Released-Today.html#comments</comments>
    <wfw:comment>http://www.code-complete.com/code/wfwcomment.php?cid=48</wfw:comment>

    <slash:comments>0</slash:comments>
    <wfw:commentRss>http://www.code-complete.com/code/rss.php?version=2.0&amp;type=comments&amp;cid=48</wfw:commentRss>
    

    <author>nospam@example.com (thaddeus)</author>
    <content:encoded>
    &lt;script id=&quot;fedora-banner&quot; type=&quot;text/javascript&quot; src=&quot;http://fedoraproject.org/static/js/release-counter-ext.js?lang=en&quot;&gt;&lt;/script&gt;&lt;br /&gt;
&lt;a href=&quot;http://fedoraproject.org/get-fedora&quot;&gt;Get Some Here&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
 
    </content:encoded>

    <pubDate>Wed, 14 May 2008 11:46:25 -0600</pubDate>
    <guid isPermaLink="false">http://www.code-complete.com/code/index.php?/archives/48-guid.html</guid>
    <creativeCommons:license>http://creativecommons.org/licenses/by/3.0/</creativeCommons:license>
</item>
<item>
    <title>using update-alternatives to add additional java versions to /etc/alternatives</title>
    <link>http://www.code-complete.com/code/index.php?/archives/46-using-update-alternatives-to-add-additional-java-versions-to-etcalternatives.html</link>
            <category>Java</category>
            <category>Redhat Linux</category>
    
    <comments>http://www.code-complete.com/code/index.php?/archives/46-using-update-alternatives-to-add-additional-java-versions-to-etcalternatives.html#comments</comments>
    <wfw:comment>http://www.code-complete.com/code/wfwcomment.php?cid=46</wfw:comment>

    <slash:comments>1</slash:comments>
    <wfw:commentRss>http://www.code-complete.com/code/rss.php?version=2.0&amp;type=comments&amp;cid=46</wfw:commentRss>
    

    <author>nospam@example.com (thaddeus)</author>
    <content:encoded>
    After realizing I need to use Sun&#039;s JVM globally in order to get Flex Builder A3 working under my Fedora 8 install I decided to investigate further how to get it to be an option in the system-switch-java applet.  That applet is tuned in to the update-alternatives command.  by running the following commands as root, the system was able to switch between the 3 different JVMs I&#039;ve got installed:&lt;br /&gt;
&lt;font size=&quot;-1&quot;&gt;&lt;br /&gt;
&lt;pre&gt;&lt;br /&gt;
# update-alternatives --install &quot;/usr/bin/java&quot; &quot;java&quot; &lt;br /&gt;
&quot;/usr/java/default/bin/java&quot; 3&lt;br /&gt;
# update-alternatives --install &quot;/usr/bin/javac&quot; &quot;javac&quot; &lt;br /&gt;
&quot;/usr/java/default/bin/javac&quot; 3&lt;br /&gt;
# update-alternatives --install &quot;/usr/bin/javaws&quot; &quot;javaws&quot; &lt;br /&gt;
&quot;/usr/java/default/bin/javaws&quot; 3&lt;br /&gt;
&lt;/pre&gt;&lt;br /&gt;
&lt;/font&gt;&lt;br /&gt;
Now I can change JVMs globally using update-alternatives --config java command!&lt;br /&gt;
&lt;br /&gt;
 
    </content:encoded>

    <pubDate>Fri, 02 May 2008 13:38:45 -0600</pubDate>
    <guid isPermaLink="false">http://www.code-complete.com/code/index.php?/archives/46-guid.html</guid>
    <creativeCommons:license>http://creativecommons.org/licenses/by/3.0/</creativeCommons:license>
</item>
<item>
    <title>Peripheral Compatibility - Another reason I prefer Fedora to Vista</title>
    <link>http://www.code-complete.com/code/index.php?/archives/44-Peripheral-Compatibility-Another-reason-I-prefer-Fedora-to-Vista.html</link>
            <category>Redhat Linux</category>
            <category>Vista</category>
    
    <comments>http://www.code-complete.com/code/index.php?/archives/44-Peripheral-Compatibility-Another-reason-I-prefer-Fedora-to-Vista.html#comments</comments>
    <wfw:comment>http://www.code-complete.com/code/wfwcomment.php?cid=44</wfw:comment>

    <slash:comments>1</slash:comments>
    <wfw:commentRss>http://www.code-complete.com/code/rss.php?version=2.0&amp;type=comments&amp;cid=44</wfw:commentRss>
    

    <author>nospam@example.com (thaddeus)</author>
    <content:encoded>
    My 6-year-old son has this digital camera that we got him when he was 5.  He wasn&#039;t that into it, but recently has shown interest.  It&#039;s a disney Pix &quot;toy&quot; camera that comes with specialized software from digitalblue that you need to install if you want to get the pictures off.  When I first got the camera, I just plugged the camera&#039;s USB cable into my XP machine to see if it would come up in the file system.  No luck, I had to install the software, then it worked.  &lt;br /&gt;
&lt;br /&gt;
&lt;!-- s9ymdb:29 --&gt;&lt;img width=&#039;175&#039; height=&#039;175&#039; style=&quot;float: left; border: 0px; padding-left: 5px; padding-right: 5px;&quot; src=&quot;http://www.code-complete.com/code/uploads/dispix.jpg&quot; alt=&quot;&quot; /&gt;&lt;br /&gt;
&lt;br /&gt;
After &quot;upgrading&quot; to vista, it no longer worked even after uninstalling/reinstalling the drivers.  This morning, he asked me to get pictures off the camera.  I told him it wasn&#039;t likely because of the new computer.  I was shocked when I plugged the USB cable into my Lenovo Y410 fedora 8 machine and a dialog box popped up asking me if I wanted to import pictures!&lt;br /&gt;
&lt;br /&gt;
Freaking awesome!  Cheers to the Fedora community!&lt;br /&gt;
&lt;br /&gt;
 
    </content:encoded>

    <pubDate>Fri, 25 Apr 2008 12:15:59 -0600</pubDate>
    <guid isPermaLink="false">http://www.code-complete.com/code/index.php?/archives/44-guid.html</guid>
    <creativeCommons:license>http://creativecommons.org/licenses/by/3.0/</creativeCommons:license>
</item>
<item>
    <title>Amazon ec2 tools - choosing the right JVM</title>
    <link>http://www.code-complete.com/code/index.php?/archives/42-Amazon-ec2-tools-choosing-the-right-JVM.html</link>
            <category>Redhat Linux</category>
    
    <comments>http://www.code-complete.com/code/index.php?/archives/42-Amazon-ec2-tools-choosing-the-right-JVM.html#comments</comments>
    <wfw:comment>http://www.code-complete.com/code/wfwcomment.php?cid=42</wfw:comment>

    <slash:comments>1</slash:comments>
    <wfw:commentRss>http://www.code-complete.com/code/rss.php?version=2.0&amp;type=comments&amp;cid=42</wfw:commentRss>
    

    <author>nospam@example.com (thaddeus)</author>
    <content:encoded>
    I have just gotten around to using the amazon ec2 tools to manage my amazon machine images from my linux laptop.  I mentioned before that I am rolling with fedora 8 on a new laptop, and it&#039;s been sweet.  But there are gotchas here and there and I ran into one today with the ec2 tools.&lt;br /&gt;
&lt;br /&gt;
Turns out that fedora 8 comes with 2 JVMs:  GCJ 1.5.0  and IcedTea 1.7.0 - those are installed via yum or selected during the install process.  I have no problems with any java-based GUI apps that I have installed like Oxygen and dbvisualizer, but when running the ec2-describe-images command, I got the following error:&lt;br /&gt;
&lt;br /&gt;
&lt;code&gt;&lt;br /&gt;
Exception in thread &quot;main&quot; java.lang.NoClassDefFoundError: &lt;br /&gt;
org.codehaus.xfire.aegis.type.xml.SourceType&lt;br /&gt;
at java.lang.Class.initializeClass(libgcj.so.8rh)&lt;br /&gt;
&lt;br /&gt;
etc....&lt;br /&gt;
&lt;/code&gt;&lt;br /&gt;
 &lt;br /&gt;
I had my JAVA_HOME set to what redhat and fedora lilke:  /usr/lib/jvm/java, which is really a sym link pointing into the /etc/alternatives library of sym links.  It&#039;s actually a great way to switch globally between JVMs, because you can use the system-switch-java applet to quicky change your JVM if you have multiple versions installed.  So I did and switched from 1.7 over to GNU 1.5  and tried again.  Same exception was thrown.&lt;br /&gt;
&lt;br /&gt;
It turns out the the ec2 tools really only work with Sun&#039;s JVM, which I downloaded and installed via the RPM from sun.com.  After installing, uninstalling, reinstalling a few times I determined that for whatever reason the 1.6 JVM from Sun was never going to appear as an option within the system-switch-java applet.  So I changed my JAVA_HOME variable from /usr/lib/jvm/java to /usr/java/default, which is what Sun likes.&lt;br /&gt;
&lt;br /&gt;
Now the ec2 command line tools work great!&lt;br /&gt;
&lt;br /&gt;
 
    </content:encoded>

    <pubDate>Tue, 01 Apr 2008 15:43:00 -0600</pubDate>
    <guid isPermaLink="false">http://www.code-complete.com/code/index.php?/archives/42-guid.html</guid>
    <creativeCommons:license>http://creativecommons.org/licenses/by/3.0/</creativeCommons:license>
</item>
<item>
    <title>Final Tweaks to Fedora 8 on Lenovo Y410 Laptop</title>
    <link>http://www.code-complete.com/code/index.php?/archives/40-Final-Tweaks-to-Fedora-8-on-Lenovo-Y410-Laptop.html</link>
            <category>Redhat Linux</category>
            <category>Vista</category>
    
    <comments>http://www.code-complete.com/code/index.php?/archives/40-Final-Tweaks-to-Fedora-8-on-Lenovo-Y410-Laptop.html#comments</comments>
    <wfw:comment>http://www.code-complete.com/code/wfwcomment.php?cid=40</wfw:comment>

    <slash:comments>2</slash:comments>
    <wfw:commentRss>http://www.code-complete.com/code/rss.php?version=2.0&amp;type=comments&amp;cid=40</wfw:commentRss>
    

    <author>nospam@example.com (thaddeus)</author>
    <content:encoded>
    I have to admit that over the past couple of weeks transitioning to linux as my primary OS more than once I though to myself that for sure I&#039;d be back on windows soon.  I&#039;ve been admining/using redhat distros since 1995, but always in a server environment.  But as I get more and more comfortable with my configuration, I&#039;m looking back less and less.  At this point &lt;strong&gt;nearly&lt;/strong&gt; everything is working with 2 exceptions:  &lt;br /&gt;
1.) when plugging headphones in, sound still comes out the speakers&lt;br /&gt;
2.) I have been unable to get the PCCard reader to work (the machine does play well with MMC, MS, MSPro, SD, SDPro and xD cards, however.)&lt;br /&gt;
&lt;br /&gt;
I have also found the following bits to be useful:  While getting the webcam to work is outlined below, I found that most apps out there still would not work with the webcam.  This is because most of the apps like camstream and gyachi work with Video4Linux and I needed to to use V4L2 with the built in webcam.  The solution for this is to roll with Kopete for web camming and IMing.  Works great!&lt;br /&gt;
&lt;br /&gt;
I also had some issues getting an external VGA monitors set up and working correctly with spanning desktops.  It wouldn&#039;t be quite so complicated if I didn&#039;t have different screen resolutions between my home monitor and work monitor.  Basically, one needs to add some information to the /etc/X11/xorg.conf file that specifies you would like a virtual desktop.  The video section in my config file looks like this:&lt;br /&gt;
&lt;code&gt;&lt;br /&gt;
Section &quot;Device&quot;&lt;br /&gt;
	Identifier  &quot;Videocard0&quot;&lt;br /&gt;
	Driver      &quot;intel&quot;&lt;br /&gt;
	Option      &quot;monitor-lvds&quot; &quot;lvds&quot;&lt;br /&gt;
	Option      &quot;monitor-vga&quot; &quot;vga&quot;&lt;br /&gt;
EndSection&lt;br /&gt;
&lt;br /&gt;
Section &quot;Monitor&quot;&lt;br /&gt;
	Identifier   &quot;lvds&quot;&lt;br /&gt;
	Option       &quot;LeftOf&quot; &quot;vga&quot;&lt;br /&gt;
	VendorName   &quot;Monitor Vendor&quot;&lt;br /&gt;
	ModelName    &quot;LCD Panel 1680x1050&quot;&lt;br /&gt;
	HorizSync    31.5 - 65.5&lt;br /&gt;
	VertRefresh  56.0 - 65.0&lt;br /&gt;
	Option	    &quot;dpms&quot;&lt;br /&gt;
EndSection&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Section &quot;Monitor&quot;&lt;br /&gt;
	Identifier   &quot;vga&quot;&lt;br /&gt;
	Option       &quot;RightOf&quot; &quot;lvds&quot; &lt;br /&gt;
	VendorName   &quot;Monitor Vendor&quot;&lt;br /&gt;
	ModelName    &quot;LCD Panel 1680x1050&quot;&lt;br /&gt;
	HorizSync    31.5 - 65.5&lt;br /&gt;
	VertRefresh  56.0 - 65.0&lt;br /&gt;
	Option	    &quot;dpms&quot;&lt;br /&gt;
EndSection&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Section &quot;Screen&quot;&lt;br /&gt;
	Identifier &quot;Screen0&quot;&lt;br /&gt;
	Device     &quot;Videocard0&quot;&lt;br /&gt;
	Monitor    &quot;lvds&quot;&lt;br /&gt;
	DefaultDepth     24&lt;br /&gt;
	SubSection &quot;Display&quot;&lt;br /&gt;
		Viewport   0 0&lt;br /&gt;
		Depth     24&lt;br /&gt;
		Virtual   2880 900&lt;br /&gt;
	EndSubSection&lt;br /&gt;
EndSection&lt;br /&gt;
&lt;/code&gt;&lt;br /&gt;
&lt;br /&gt;
With this configuration, I can now use the xandr command to set up the different monitors.  when leaving work I turn off the VGA by calling xrandr --output VGA --off from a quick launch icon, then when I plug in at home i do the same using  xrandr --output VGA --auto --right-of LVDS  and everything&#039;s great.&lt;br /&gt;
&lt;br /&gt;
There is also a KDE applet called KRandRTray that will let you dynamically change screen resolutions.&lt;br /&gt;
&lt;br /&gt;
Finally, because we use Office 2k7 native formats in the office because of the enhanced features I had to figure out what to do.  Wine wasn&#039;t going to cut it, though I did get Fireworks and textpad running under wine.  So I installed VirtualBox, created a VM and gave it 1.5 GB RAM (The box has 3GB) and 32MB Video memory.  I was able to cleanly install Vista Home Premium from the recovery CD that came with the machine with no problems whatsoever.  I spun up the virtual PC, installed the VirtBox client extensions along with OfficeUlimate 2k7 and TurboTax and Quicken.  Everything works flawlessly!&lt;br /&gt;
&lt;br /&gt;
 
    </content:encoded>

    <pubDate>Tue, 26 Feb 2008 16:16:45 -0700</pubDate>
    <guid isPermaLink="false">http://www.code-complete.com/code/index.php?/archives/40-guid.html</guid>
    <creativeCommons:license>http://creativecommons.org/licenses/by/3.0/</creativeCommons:license>
</item>
<item>
    <title>usb video working under fedora 8 on lenovo Y410</title>
    <link>http://www.code-complete.com/code/index.php?/archives/39-usb-video-working-under-fedora-8-on-lenovo-Y410.html</link>
            <category>Redhat Linux</category>
    
    <comments>http://www.code-complete.com/code/index.php?/archives/39-usb-video-working-under-fedora-8-on-lenovo-Y410.html#comments</comments>
    <wfw:comment>http://www.code-complete.com/code/wfwcomment.php?cid=39</wfw:comment>

    <slash:comments>0</slash:comments>
    <wfw:commentRss>http://www.code-complete.com/code/rss.php?version=2.0&amp;type=comments&amp;cid=39</wfw:commentRss>
    

    <author>nospam@example.com (thaddeus)</author>
    <content:encoded>
    Last piece of the configuration puzzle solved.  To get the built in webcam, which has the following characteristics:&lt;br /&gt;
&lt;code&gt;&lt;br /&gt;
Bus 002 Device 005: ID 04f2:b008 Chicony Electronics Co., Ltd &lt;br /&gt;
Device Descriptor:&lt;br /&gt;
  bLength                18&lt;br /&gt;
  bDescriptorType         1&lt;br /&gt;
  bcdUSB               2.00&lt;br /&gt;
  bDeviceClass          239 Miscellaneous Device&lt;br /&gt;
  bDeviceSubClass         2 ?&lt;br /&gt;
  bDeviceProtocol         1 Interface Association&lt;br /&gt;
  bMaxPacketSize0        64&lt;br /&gt;
  idVendor           0x04f2 Chicony Electronics Co., Ltd&lt;br /&gt;
  idProduct          0xb008 &lt;br /&gt;
  bcdDevice            3.25&lt;br /&gt;
  iManufacturer           2 Sonix Technology Co., Ltd.&lt;br /&gt;
  iProduct                1 USB 2.0 Camera&lt;br /&gt;
  iSerial                 3 SN0001&lt;br /&gt;
  bNumConfigurations      1&lt;br /&gt;
&lt;/code&gt;&lt;br /&gt;
&lt;br /&gt;
one needs to modprobe the video for linux driver (v4l2-common), which came with the fedora install and modprobe uvcvideo, which is the usb video driver available here:&lt;br /&gt;
&lt;code&gt;&lt;br /&gt;
svn checkout svn://svn.berlios.de/linux-uvc/linux-uvc/trunk&lt;br /&gt;
&lt;/code&gt;&lt;br /&gt;
&lt;br /&gt;
Once I modprobed these 2 drivers i was able to get video from the cam by running gstreamer-properties, selecting the video tab and under default input selecting the Video for Linux 2 Plugin, USB 2.0 Camera device and then selecting test.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
 
    </content:encoded>

    <pubDate>Fri, 15 Feb 2008 12:36:03 -0700</pubDate>
    <guid isPermaLink="false">http://www.code-complete.com/code/index.php?/archives/39-guid.html</guid>
    <creativeCommons:license>http://creativecommons.org/licenses/by/3.0/</creativeCommons:license>
</item>
<item>
    <title>Fedora 8 on Lenovo Y410 - The Gotchas</title>
    <link>http://www.code-complete.com/code/index.php?/archives/38-Fedora-8-on-Lenovo-Y410-The-Gotchas.html</link>
            <category>Redhat Linux</category>
    
    <comments>http://www.code-complete.com/code/index.php?/archives/38-Fedora-8-on-Lenovo-Y410-The-Gotchas.html#comments</comments>
    <wfw:comment>http://www.code-complete.com/code/wfwcomment.php?cid=38</wfw:comment>

    <slash:comments>0</slash:comments>
    <wfw:commentRss>http://www.code-complete.com/code/rss.php?version=2.0&amp;type=comments&amp;cid=38</wfw:commentRss>
    

    <author>nospam@example.com (thaddeus)</author>
    <content:encoded>
    So in my quest to be vista free in 08, I mentioned that I got a new laptop.  So far I have installed Fedora 8.  It didn&#039;t work out so well becuase I couldn&#039;t get wireless working (more on that later) and I had no sound.  Looking for a quick fix to these problems, I decided to give another distro a quick try to see if it would work out of the box.  I installed ubuntu 7.10 and while I was installing it noticed my Function F5 key.  this key activates/deactivates wireless on the laptop.  Too bad I didn&#039;t notice this before when I was focusing energy on the wireless on/off switch on the front of the machine.&lt;br /&gt;
&lt;br /&gt;
So Ubuntu came up and wireless was all good, but still no sound.  I looked around for info on drivers for my sound card, which is the 82801H ICH8 HD Audio Controller.  There&#039;s a lot of info in the ubuntu forums regarding this card, and many, many suggestions on how to get it running.  After trying all of them without success, I decided to go back to what I knew best, and that&#039;s Fedora.&lt;br /&gt;
&lt;br /&gt;
So I reinstalled fedora from dvd - the wireless working this time out of the box since I had it turned on.  But still no sound.  After verifying the correct driver was being used (snd-hda-intel.ko), I updated the alsa-utils package to &gt;=1.0.15, which from my ubuntu research I understood could support my card.  The I added the following lines in /etc/modprobe.conf:&lt;br /&gt;
&lt;code&gt;&lt;br /&gt;
alias snd-card-0 snd-hda-intel&lt;br /&gt;
options snd-card-0 index=0&lt;br /&gt;
options snd-hda-intel index=0 &lt;b&gt;model=fujitsu&lt;/B&gt;&lt;br /&gt;
&lt;/code&gt;&lt;br /&gt;
&lt;br /&gt;
Reboot and run system-config-soundcard and audio was working.  So I downloaded and installed frog, which provides quick and easy installs of multimedia codecs.  After running the ncurses program it updates some package repositories, then says that &quot;it is strongly recommended you allow fedora frog to update your installation now.&quot;  mmkay, guess that&#039;ll do.  My updater was telling me there were a couple hundred updates available so I figured I&#039;d let frog do the updates.  Very Bad Choice.&lt;br /&gt;
&lt;br /&gt;
Because earlier I was looking for some software using the Add/Remove Software app I had checked the development repository so Frog updated everything on my Fedora 8 to the Fedora 9 alpha versions, INCLUDING my kernel.  I was a bit concerned when I saw what was happening, but even more bunched up when I went to reboot and the kernel could not mount the LargeVolume001 or whatever.&lt;br /&gt;
&lt;br /&gt;
Completed a reinstall and selected NO for frog updates.&lt;br /&gt;
&lt;br /&gt;
Next up, I&#039;m installing virtualbox and windowsXP - or I might try the vista cd that came with the laptop... 
    </content:encoded>

    <pubDate>Thu, 14 Feb 2008 14:17:40 -0700</pubDate>
    <guid isPermaLink="false">http://www.code-complete.com/code/index.php?/archives/38-guid.html</guid>
    <creativeCommons:license>http://creativecommons.org/licenses/by/3.0/</creativeCommons:license>
</item>
<item>
    <title>Nearly done with Vista, and with SP 1 so close..</title>
    <link>http://www.code-complete.com/code/index.php?/archives/37-Nearly-done-with-Vista,-and-with-SP-1-so-close...html</link>
            <category>Redhat Linux</category>
            <category>Tools of the Trade</category>
            <category>Vista</category>
    
    <comments>http://www.code-complete.com/code/index.php?/archives/37-Nearly-done-with-Vista,-and-with-SP-1-so-close...html#comments</comments>
    <wfw:comment>http://www.code-complete.com/code/wfwcomment.php?cid=37</wfw:comment>

    <slash:comments>2</slash:comments>
    <wfw:commentRss>http://www.code-complete.com/code/rss.php?version=2.0&amp;type=comments&amp;cid=37</wfw:commentRss>
    

    <author>nospam@example.com (thaddeus)</author>
    <content:encoded>
    After Using Vista as my primary OS for just over a year I can say without a doubt that it has hindered my productivity and caused more heartache that any other OS I&#039;ve ever used. I am running the 32-bit version of Vista Ultimate on a gateway laptop with Turion64 Processor and 2.5 gigs of RAM.  The Vista I&#039;m working with is the result of and upgrade install from XP Media Center 2005, which may be part of the problem, and it was probably stupid to do the upgrade rather than a clean install, but I was lazy and didn&#039;t want to have to reinstall all my progs.&lt;br /&gt;
&lt;br /&gt;
I am going to enumerate all the problems:&lt;br /&gt;
&lt;br /&gt;
&lt;ul&gt;&lt;br /&gt;
&lt;li&gt;Slower launching all programs&lt;/li&gt;&lt;br /&gt;
&lt;li&gt;Initially, I could no longer use a cisco VPN client because their vista-compatible client was not vista upgrade compatible&lt;/li&gt;&lt;br /&gt;
&lt;li&gt;Now can use the cisco vpn client, but when it&#039;s installed on the system it breaks my wireless so I have to uninstall it after I use it to get wireless working&lt;/li&gt;&lt;br /&gt;
&lt;li&gt;Have to run many progs as admin for them to function - packet sniffers, SQL Server Manager, lots...&lt;/li&gt;&lt;br /&gt;
&lt;li&gt;Annoying UAC pop ups require more clicks to get things done (ended up disabling User Account Control)&lt;/li&gt;&lt;br /&gt;
&lt;li&gt;Cannot move files &gt; 3GB to local machine over the network....  WTF?!?&lt;/li&gt;&lt;br /&gt;
&lt;li&gt;Moving files over the network is much slower than xp/linux/macOS (even after turning off Vista -TCP Auto Tuning)&lt;/li&gt;&lt;br /&gt;
&lt;li&gt;All MS product short cuts in quick launch and recent programs on the start menu stopped working&lt;/li&gt;&lt;br /&gt;
&lt;li&gt;My volume control mixer in the status bar area periodically disappears&lt;/li&gt;&lt;br /&gt;
&lt;li&gt;Intermittent crashes of windows explorer at least one or two times a week&lt;/li&gt;&lt;br /&gt;
&lt;li&gt;Outlook often hangs/crashes even with all mailbox maintenance performed&lt;/li&gt;&lt;br /&gt;
&lt;li&gt;TortoiseSVN status cache crashes daily&lt;/li&gt;&lt;br /&gt;
&lt;li&gt;Windows gets my monitors confused when switching between my home and work configuration about 50% of the time&lt;/li&gt;&lt;br /&gt;
&lt;li&gt;Acrobat reader 7 posts application warning before starting regarding compatibility issues&lt;/li&gt;&lt;br /&gt;
&lt;/ul&gt;&lt;br /&gt;
&lt;br /&gt;
The list could probably go on, but just those issues have made me want to move on.  So yesterday I bought a Lenovo 3000 Y410 dual core 2G RAM laptop (which will come loaded with Vista Home Premium)  and a 250GB laptop sata drive both on fire sale from compusa.  I will be pulling the OEM drive, dropping in the 250GB drive and loading up Fedora 8.  This will become my primary work computer, and I&#039;m going to see if I can get away with not running windows at all, but I think I&#039;m probably going to have to run XP under VMware because we use a lot of features from Office 2007 and I do use Visual Studio to create dtsx packages pretty often.  Then there&#039;s Mapforce and Motorola phone tools and probably a bunch of other stuff. Oh and I&#039;ll have to somehow get 10 years worth of emails into mbox format somehow.  That&#039;ll be ugly.&lt;br /&gt;
&lt;br /&gt;
Well, I&#039;ve almost talked myself out of it - maybe SP1 will solve all my problems.  Ohh the pain.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
 
    </content:encoded>

    <pubDate>Wed, 06 Feb 2008 12:00:14 -0700</pubDate>
    <guid isPermaLink="false">http://www.code-complete.com/code/index.php?/archives/37-guid.html</guid>
    <creativeCommons:license>http://creativecommons.org/licenses/by/3.0/</creativeCommons:license>
</item>
<item>
    <title>Crontab or CGI Script to Check on CFMX and Restart if it's Hung</title>
    <link>http://www.code-complete.com/code/index.php?/archives/32-Crontab-or-CGI-Script-to-Check-on-CFMX-and-Restart-if-its-Hung.html</link>
            <category>Coldfusion Server</category>
            <category>Redhat Linux</category>
    
    <comments>http://www.code-complete.com/code/index.php?/archives/32-Crontab-or-CGI-Script-to-Check-on-CFMX-and-Restart-if-its-Hung.html#comments</comments>
    <wfw:comment>http://www.code-complete.com/code/wfwcomment.php?cid=32</wfw:comment>

    <slash:comments>0</slash:comments>
    <wfw:commentRss>http://www.code-complete.com/code/rss.php?version=2.0&amp;type=comments&amp;cid=32</wfw:commentRss>
    

    <author>nospam@example.com (thaddeus)</author>
    <content:encoded>
    Here is a perl script that can be called via command line in a crontab file or via http post.  It takes one paramter, which is host=www.foo.com.  This is follow up posting to my earlier code post for &lt;a href=&quot;http://www.code-complete.com/code/index.php?/archives/2-Restarting-CFMX-via-http-remotely-and-automated.html&quot;  title=&quot;remote&quot;&gt;checking and restarting cfmx remotely&lt;/a&gt;, which was more focused on a windows enviro.  The following script is primarily geared toward use in a n*x environment running on the localhost, though it could easily be modified to run on a single host and be invoked to check on and restart multiple servers.&lt;br /&gt;
&lt;br /&gt;
Here it is:&lt;br /&gt;
&lt;code&gt;&lt;br /&gt;
#!/usr/bin/perl&lt;br /&gt;
&lt;br /&gt;
#  SpireMedia, Inc.  Thaddeus Batt thad@spiremedia.com&lt;br /&gt;
#  Perl script for restarting coldfusion to be called on a scheduled&lt;br /&gt;
#  basis when frequent and unanticipated restarts of a cf server are required&lt;br /&gt;
#  &lt;br /&gt;
#  Please note that there are 2 ways to use this script&lt;br /&gt;
#  it can be set up as a cgi script that is involked by a web browser&lt;br /&gt;
#  or it can be run from a cron job directly (this is preferred)&lt;br /&gt;
#  &lt;strong&gt;if&lt;/strong&gt; the script is used in cgi mode, you will need to use&lt;br /&gt;
#  the telnet method of restarting cf which means you need to&lt;br /&gt;
#  enable telnet as well as allow root access via telnet, which&lt;br /&gt;
#  may be a security risk for which I take no responsibility&lt;br /&gt;
#  USE THIS CODE AT YOUR OWN RISK&lt;br /&gt;
#  Date: 10/23/2007&lt;br /&gt;
&lt;br /&gt;
#first lets flush the writes&lt;br /&gt;
$|=1;&lt;br /&gt;
&lt;br /&gt;
#bring in the modules we need&lt;br /&gt;
use Net::Telnet;&lt;br /&gt;
use English;&lt;br /&gt;
use HTTP::Headers;&lt;br /&gt;
use HTTP::Request;&lt;br /&gt;
use LWP::Simple;&lt;br /&gt;
use LWP::UserAgent;&lt;br /&gt;
use URI::Escape;&lt;br /&gt;
use File::Basename;&lt;br /&gt;
use POSIX;&lt;br /&gt;
&lt;br /&gt;
$host = &#039;http://&#039; . GetCgiParam(&#039;host&#039;);&lt;br /&gt;
&lt;br /&gt;
#you can use this to set up a default hostname&lt;br /&gt;
if (! $host) {&lt;br /&gt;
	$host=&#039;http://localhost&#039;;&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
$timeout = 30;&lt;br /&gt;
$reload = 1;&lt;br /&gt;
$url = &#039;/CFIDE/administrator/&#039;;&lt;br /&gt;
#if restart_on_err is set the function will restart cfmx services and log the error&lt;br /&gt;
$restart_on_err = 1;&lt;br /&gt;
#this needs to be set to a directory on the machine where you want the log files to live&lt;br /&gt;
$path2log = &#039;c:\\temp\\&#039;;&lt;br /&gt;
#this is just to see what&#039;s going on from command line&lt;br /&gt;
print $host.$url;&lt;br /&gt;
&lt;br /&gt;
#and here we go...&lt;br /&gt;
$alive = GetCFMXPageOrRestart(&amp;quot;$host$url&amp;quot;,&lt;br /&gt;
				    $timeout, $user, $pass, $reload);&lt;br /&gt;
&lt;br /&gt;
exit;&lt;br /&gt;
		&lt;br /&gt;
&lt;br /&gt;
sub GetPage {&lt;br /&gt;
    my ($url, $timeout, $user, $password, $reload) = @_;&lt;br /&gt;
    my $ua = new LWP::UserAgent;&lt;br /&gt;
    $ua-&amp;gt;use_alarm(1);&lt;br /&gt;
    $ua-&amp;gt;timeout($timeout) if ($timeout);&lt;br /&gt;
    my $headers = new HTTP::Headers;&lt;br /&gt;
    $headers-&amp;gt;authorization_basic($user, $password);&lt;br /&gt;
    $headers-&amp;gt;header(Pragma =&amp;gt; &#039;no-cache&#039;) if $reload;&lt;br /&gt;
    my $request = new HTTP::Request(&amp;quot;GET&amp;quot;, $url, $headers);&lt;br /&gt;
    my $response = $ua-&amp;gt;request($request, undef, undef);&lt;br /&gt;
&lt;br /&gt;
    ($response-&amp;gt;is_success,&lt;br /&gt;
     $response-&amp;gt;code,&lt;br /&gt;
     $response-&amp;gt;content,&lt;br /&gt;
     $response-&amp;gt;error_as_HTML);&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
sub GetCFMXPage {&lt;br /&gt;
    my $url = $_[0];&lt;br /&gt;
    my ($httpstatus, $httpcode, $httppage, $httperrorHTML) = GetPage(@_);&lt;br /&gt;
    if ($httppage =~ /TDS stream/) {&lt;br /&gt;
	open LOG,&amp;quot;&amp;gt;&amp;gt;widelog&amp;quot;;&lt;br /&gt;
	print LOG &amp;quot;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;\n$url\n&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;\n&amp;quot;;&lt;br /&gt;
	print LOG $httppage;&lt;br /&gt;
	close LOG;&lt;br /&gt;
	$httpstatus = 0;&lt;br /&gt;
    }&lt;br /&gt;
    ($httpstatus, $httpcode, $httppage, $httperrorHTML);&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
sub GetCFMXPageOrRestart {&lt;br /&gt;
     my ($httpstatus, $httpcode, $httppage, $httperrorHTML) = GetCFMXPage(@_);&lt;br /&gt;
    my $url = $_[0];&lt;br /&gt;
    if ( $restart_on_err ) {&lt;br /&gt;
	if ($httpcode != 200&lt;br /&gt;
	    || (!$httpstatus &amp;amp;&amp;amp; 200 == $httpcode) )  {&lt;br /&gt;
	    ($sec, $min, $hour, $mday, $mon, $year) = localtime;&lt;br /&gt;
	    $mon++;&lt;br /&gt;
	    my $fname = sprintf( &amp;quot;$path2log%2.2d%2.2d%2.2d-%2.2d%2.2d%2.2d.err&amp;quot;,&lt;br /&gt;
				$hour, $min, $sec, $year, $mon, $mday );&lt;br /&gt;
	    open(ERRFILE,&amp;quot;&amp;gt;$fname&amp;quot;);&lt;br /&gt;
	    print ERRFILE &amp;quot;GetCFMXPage failed at $hour:$min:$sec on $mon/$mday/$year\n&amp;quot;;&lt;br /&gt;
	    print ERRFILE &amp;quot;starttime=$starttime\n&amp;quot;;&lt;br /&gt;
	    print ERRFILE &amp;quot;reportcount=$reportcount\n&amp;quot;;&lt;br /&gt;
	    print ERRFILE &amp;quot;url=$url\n&amp;quot;;&lt;br /&gt;
	    print ERRFILE &amp;quot;httpstatus=$httpstatus\n&amp;quot;;&lt;br /&gt;
	    print ERRFILE &amp;quot;httpcode=$httpcode\n&amp;quot;;&lt;br /&gt;
	    print ERRFILE &amp;quot;httperrorHTML=$httperrorHTML\n&amp;quot;;&lt;br /&gt;
	    close(ERRFILE);&lt;br /&gt;
	    print &amp;quot;\nfile=$fname\n&amp;quot;;&lt;br /&gt;
	    RestartCFMX();&lt;br /&gt;
	    exit;&lt;br /&gt;
	    #die &amp;quot;Aborted: $fname\n&amp;quot;;&lt;br /&gt;
		}&lt;br /&gt;
    }&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
    &lt;br /&gt;
sub GetCgiParam {&lt;br /&gt;
    my ($paramname) = @_;&lt;br /&gt;
    my ($request_method, $query_string);&lt;br /&gt;
    if (! %cgiparams) {&lt;br /&gt;
        $request_method = $ENV{REQUEST_METHOD};&lt;br /&gt;
        if ($request_method eq &#039;GET&#039;) {&lt;br /&gt;
            $query_string = $ENV{QUERY_STRING};&lt;br /&gt;
        }&lt;br /&gt;
        elsif ($request_method eq &#039;POST&#039;) {&lt;br /&gt;
            read (STDIN, $query_string, $ENV{CONTENT_LENGTH});&lt;br /&gt;
        }&lt;br /&gt;
        elsif ($ARGV[0]) {&lt;br /&gt;
            $query_string = $ARGV[0];&lt;br /&gt;
        }&lt;br /&gt;
        else {&lt;br /&gt;
            die Usage();&lt;br /&gt;
        }&lt;br /&gt;
        foreach $pair (split /&amp;amp;/, $query_string) {&lt;br /&gt;
            my ($key, $value) = split /=/, $pair;&lt;br /&gt;
            $value =~ tr/+/ /;&lt;br /&gt;
            $value =~ s/%([\dA-Fa-f][\dA-Fa-f])/pack &#039;C&#039;, hex($1)/eg;&lt;br /&gt;
            $cgiparams{$key} = $value;&lt;br /&gt;
        }&lt;br /&gt;
    }&lt;br /&gt;
    $cgiparams{$paramname};&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
sub RestartCFMX	{&lt;br /&gt;
&lt;br /&gt;
#the following allow this script to run from cgi, note that you will&lt;br /&gt;
#be putting the root user password in here if you run it this way&lt;br /&gt;
#this is a security risk - if your webserver ever got it&#039;s&lt;br /&gt;
#mime-type mappings screwed up this pl could be served as plain text&lt;br /&gt;
#exposing your root pawword to anyone who can find it&lt;br /&gt;
#you should take security measures appropriate to your situation	&lt;br /&gt;
&lt;br /&gt;
# $telnet = new Net::Telnet ( Timeout=&amp;gt;30, Errmode=&amp;gt;&#039;die&#039;);&lt;br /&gt;
# $telnet-&amp;gt;open(&#039;$host&#039;);&lt;br /&gt;
# $telnet-&amp;gt;waitfor(&#039;/login: $/i&#039;);&lt;br /&gt;
# $telnet-&amp;gt;print(&#039;root&#039;);&lt;br /&gt;
# $telnet-&amp;gt;waitfor(&#039;/password: $/i&#039;);&lt;br /&gt;
# $telnet-&amp;gt;print(&#039;password&#039;);&lt;br /&gt;
# $telnet-&amp;gt;waitfor(&#039;/# $/i&#039;);&lt;br /&gt;
# $telnet-&amp;gt;print(&#039;/opt/coldfusionmx7/bin/coldfusion restart&#039;);&lt;br /&gt;
# $output = $telnet-&amp;gt;waitfor(&#039;/# $/i&#039;);&lt;br /&gt;
# print &amp;quot;Content-Type: text/html\n\n&amp;quot;;&lt;br /&gt;
# print $output;&lt;br /&gt;
&lt;br /&gt;
#this is safer code if you are able to run this script via&lt;br /&gt;
#the root user&#039;s crontab&lt;br /&gt;
@args_exe = (&amp;quot;/opt/coldfusionmx7/bin/coldfusion&amp;quot;,&amp;quot;restart&amp;quot;);&lt;br /&gt;
system(@args_exe) == 0&lt;br /&gt;
   or die &amp;quot;it didn&#039;t work:  @args_exe&amp;quot;;&lt;br /&gt;
&lt;br /&gt;
print &amp;lt;&amp;lt;HTMLDOC;&lt;br /&gt;
&amp;lt;body &amp;gt;&lt;br /&gt;
&amp;lt;h1&amp;gt;restarting services&amp;lt;/h1&amp;gt;&lt;br /&gt;
&amp;lt;PRE&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;&amp;lt;hr&amp;gt;&lt;br /&gt;
&amp;lt;/PRE&amp;gt;&amp;lt;HR&amp;gt;&lt;br /&gt;
&lt;br /&gt;
HTMLDOC&lt;br /&gt;
	&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
sub Usage {&lt;br /&gt;
    print &amp;lt;&amp;lt;USAGE;&lt;br /&gt;
checkandrestartcfmx.pl host=HOSTNAME&lt;br /&gt;
     host is hostname to be prepended to script URLs&lt;br /&gt;
     example:  localhost  or 216.87.22  or www.code-complete.com    &lt;br /&gt;
USAGE&lt;br /&gt;
}&lt;br /&gt;
    exit;&lt;br /&gt;
&lt;/code&gt; 
    </content:encoded>

    <pubDate>Fri, 02 Nov 2007 15:43:52 -0600</pubDate>
    <guid isPermaLink="false">http://www.code-complete.com/code/index.php?/archives/32-guid.html</guid>
    <creativeCommons:license>http://creativecommons.org/licenses/by/3.0/</creativeCommons:license>
</item>
<item>
    <title>To Hell With Gateway - They Should be Paying ME!</title>
    <link>http://www.code-complete.com/code/index.php?/archives/31-To-Hell-With-Gateway-They-Should-be-Paying-ME!.html</link>
            <category>Redhat Linux</category>
            <category>Vista</category>
    
    <comments>http://www.code-complete.com/code/index.php?/archives/31-To-Hell-With-Gateway-They-Should-be-Paying-ME!.html#comments</comments>
    <wfw:comment>http://www.code-complete.com/code/wfwcomment.php?cid=31</wfw:comment>

    <slash:comments>0</slash:comments>
    <wfw:commentRss>http://www.code-complete.com/code/rss.php?version=2.0&amp;type=comments&amp;cid=31</wfw:commentRss>
    

    <author>nospam@example.com (thaddeus)</author>
    <content:encoded>
    So my wifes XP gateway laptop set to run automatic updates received one last week, then blue screened.  Then wouldn&#039;t boot.&lt;br /&gt;
&lt;br /&gt;
So, I figure the drive has got some problems, let&#039;s pull the drive and hook it up to an external IDE &gt; USB to get some data off of it and try and run chkdsk on it from another machine.  Pull drive, hook up adapter, plug into USB port and.....  what?  No daa-dink sound!!?  No &quot;installing new hardware&quot; message???!  green light is on the adapter - check  drive is spinning  -  uhh, nope.  This is truly an Oh FUCK! moment as all my wife&#039;s business data is (was) on that drive.  I stuck it back in the laptop.&lt;br /&gt;
&lt;!-- s9ymdb:15 --&gt;&lt;img width=&#039;320&#039; height=&#039;240&#039; style=&quot;float: right; border: 0px; padding-left: 5px; padding-right: 5px;&quot; src=&quot;http://www.code-complete.com/code/uploads/10-18-07_1349.jpg&quot; alt=&quot;&quot; /&gt;  &lt;br /&gt;
&lt;br /&gt;
We went to Office Depot and bought a new HP laptop.  Thankfully, it booted up.  I installed office and all the other programs she needs to run her business and the machine ran fine all day.  That evening I instructed the machine to download and install all windows updates.  Next morning the machine was in chkdsk mode stuck at 1%.  Hard cycled the machine and skipped chkdsk. It turns out it got it&#039;s hard drive stuck in a cycle where the dirty bit was set on the C: drive and every time the machine booted up it wanted to run chkdsk.  Semi-normal, except that chkdsk would start and never get past 1%.  Well, I thought, &quot;That&#039;s sketchy, let&#039;s get a backup of your data.&quot;  Apparently windows backup will not run if the dirty bit is set.  Did you know that?  I sure didn&#039;t.  Returned the unit for an exchange and reinstalled all software, etc.  So far new unit works.&lt;br /&gt;
&lt;br /&gt;
So now the gateway part:  the machine is still under warranty, so I call up explain the problem and they brilliantly deduct that the hard drive has failed (yeah, thanks).  And volunteer to send out another.  I inquire as to what will be on that hard drive and they respond that it will come with XP on the C: partition and the gateway recovery crap on the d: partition just like the original drive.  &lt;br /&gt;
&lt;br /&gt;
So off I send the failed drive to a data recovery center, really assuming it would be on the simple side for pros like them to get the data off the disks - after all, there was physical damage to the drive and it never jammed and made those clicking noises, it just stopped spinning up.  Of course 4 days later I get this update:&lt;br /&gt;
&lt;code&gt;&lt;br /&gt;
&quot;The current status from the lab is that we are attempting to replace the damage parts inside the hard drive. This is expected to require a higher level clean-room recovery and if we continue, it looks like it will be on the mid-upper range of the recovery ($1600-$2100)&quot;&lt;br /&gt;
&lt;/code&gt;&lt;br /&gt;
Then 2 days after that:&lt;br /&gt;
&lt;code&gt;&lt;br /&gt;
&quot;The report from the lab is that they are still having trouble getting the drive to respond with standard recovery procedures and are expecting to move the drive onto another piece of equipment for higher level recoveries. We should have some more news within a few days.&quot;&lt;br /&gt;
&lt;/code&gt;&lt;br /&gt;
&lt;br /&gt;
Sweet.  Meanwhile, this morning the hard drive from gateway shows up.  I shove it into the laptop, happily expecting a fresh system.  WTF?!!?  The computer does not boot.  The computer does not even realize there&#039;s a hard drive attached to it.  First thought was they sent me a faulty drive.  Second thought was, they sent me an empty drive!  Emtpy as in not even initialized Empty.  Pulling the drive and attaching it to the usb adapter proved this theory to be right.  So using vista disk management tools I have initialized the disk, performed a quick format, and am currently running a deep scan (chkdsk /r /f k:)  Just make sure the sectors/clusters are all good.&lt;br /&gt;
&lt;br /&gt;
When that&#039;s done I&#039;ll be putting Fedora 7 on the laptop.  What the hell are thinking?  Here&#039;s what the enclosed note said about the drive:&lt;br /&gt;
&lt;code&gt;&lt;br /&gt;
&quot;Please find enclosed the replacement part that you requested along with easy to read installation instructions.&quot;&lt;br /&gt;
&lt;/code&gt;&lt;br /&gt;
&lt;br /&gt;
A.  There were no instructions.&lt;br /&gt;
B.  No regular consumer would know how to deal with a disk that wasn&#039;t even initialized.&lt;br /&gt;
C.  I suspect that if I were to call, they would send out another harddrive and I would be stuck in an infinite loop with gateway support.&lt;br /&gt;
&lt;br /&gt;
So Linux it is.  I guess some weeks are just bad computer weeks, and during those weeks, its good to be able to let your geek flag fly!&lt;br /&gt;
&lt;br /&gt;
Peace.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
 
    </content:encoded>

    <pubDate>Thu, 18 Oct 2007 10:07:13 -0600</pubDate>
    <guid isPermaLink="false">http://www.code-complete.com/code/index.php?/archives/31-guid.html</guid>
    <creativeCommons:license>http://creativecommons.org/licenses/by/3.0/</creativeCommons:license>
</item>
<item>
    <title>Adobe Livecycle Dataservices Deployed under Tomcat with Sun 64-bit JVM on Fedora 7</title>
    <link>http://www.code-complete.com/code/index.php?/archives/25-Adobe-Livecycle-Dataservices-Deployed-under-Tomcat-with-Sun-64-bit-JVM-on-Fedora-7.html</link>
            <category>Flex</category>
            <category>Livecycle</category>
            <category>Redhat Linux</category>
    
    <comments>http://www.code-complete.com/code/index.php?/archives/25-Adobe-Livecycle-Dataservices-Deployed-under-Tomcat-with-Sun-64-bit-JVM-on-Fedora-7.html#comments</comments>
    <wfw:comment>http://www.code-complete.com/code/wfwcomment.php?cid=25</wfw:comment>

    <slash:comments>0</slash:comments>
    <wfw:commentRss>http://www.code-complete.com/code/rss.php?version=2.0&amp;type=comments&amp;cid=25</wfw:commentRss>
    

    <author>nospam@example.com (thaddeus)</author>
    <content:encoded>
    As a follow up to my &lt;a href=&quot;http://www.code-complete.com/code/index.php?/archives/20-FC7-+-CFMX-8-+-Tomcat-+-64-bit-jvm-1.6-Sweetness.html&quot;&gt;earlier post&lt;/a&gt; about getting Coldfusion 8 to run natively in a 64-bit enviro, this post will describe the steps to deploy Adobe Livecycle data services in a 64-bit environment natively.&lt;br /&gt;
&lt;br /&gt;
First, the set up:  64-bit Fedora 7 + 64-bit Sun Java SE Runtime build 1.6.0_02-b05 + Tomcat 5.5.23 Release 9jpp.2.fc7&lt;br /&gt;
&lt;br /&gt;
Initially, I just ran the installer for LiveCycle selecting to deploy as a war.  It created the war files flex.war, flex-admin.war, and samples.war. I dropped those into the webapps directory and all the applications deployed automatically.  I pointed my browser at http://server.com:8080/flex/samples, which popped right up.  Then, when I clicked on the SQLAdmin sample app, kablooeee!&lt;br /&gt;
&lt;br /&gt;
The error that gets thrown is:&lt;br /&gt;
&lt;code&gt;&lt;br /&gt;
09/06 14:17:03 ERROR java.lang.RuntimeException: XPathFactory#newInstance() failed to create an XPathFactory for the default object model: http://java.sun.com/jaxp/xpath/dom with the XPathFactoryConfigurationException: javax.xml.xpath.XPathFactoryConfiguration&lt;br /&gt;
Exception: No XPathFctory implementation found for the object model: http://java.sun.com/jaxp/xpath/dom&lt;br /&gt;
&lt;/code&gt;&lt;br /&gt;
&lt;br /&gt;
I realized that this had something to do w/ the Xalan/Xerces java component, but I had installed both components from RPMs.  So I was conviced it was a classpath issue.  I knew the stuff i needed was on my machine, but the application wasn&#039;t finding it.  The following jars are what&#039;s needed for this to work:&lt;br /&gt;
&lt;code&gt;&lt;br /&gt;
xalan-j2-serializer.jar&lt;br /&gt;
xalan.jar&lt;br /&gt;
xercesImpl.jar&lt;br /&gt;
xml-apis.jar&lt;br /&gt;
xsltc.jar&lt;br /&gt;
&lt;/code&gt;&lt;br /&gt;
&lt;br /&gt;
So I ran the locate command for each of these jars and found many som in /usr/share/java/ and some under a xalan-j2-servlet/WEB-INF/lib directory.&lt;br /&gt;
&lt;br /&gt;
I dropped copies of all the jars into my tomcat5/share/lib/ directory and restarted tomcat and viola!&lt;br /&gt;
&lt;br /&gt;
Well, almost - now I was getting a different error:&lt;br /&gt;
&lt;code&gt;&lt;br /&gt;
09/07 11:48:53 ERROR java.lang.InternalError: An error occurred because there is no graphics environment available.  Please set the headless-server setting in the Flex configuration file to true.&lt;br /&gt;
&lt;/code&gt;&lt;br /&gt;
&lt;br /&gt;
But hey, that at least gave some direction on what needed to be changed, so I went ahead and changed the flex-config.xml files for all the applications to true and restarted tomcat.  No love.  Same error.  Upon further log inspection, I found that there was another related error thrown just as the FlexAssembler service was spinning up:&lt;br /&gt;
&lt;code&gt;&lt;br /&gt;
09/07 11:45:54 Information [main] - Starting FlexAssembler...&lt;br /&gt;
Xlib: connection to &quot;:1.0&quot; refused by server&lt;br /&gt;
Xlib: No protocol specified&lt;br /&gt;
&lt;br /&gt;
Exception in thread &quot;Thread-23&quot; java.lang.InternalError: Can&#039;t connect to X11 window server using &#039;:1.0&#039; as the value of the DISPLAY variable.&lt;br /&gt;
&lt;/code&gt;&lt;br /&gt;
&lt;br /&gt;
Okay, so because I was VNCed into the machine when starting up tomcat, the system appears to be disregarding the headless-server setting!  So, I logged out of vnc, sshed into the machine stopped and started tomcat while tailing the catalina.out log file.  Well, No errors on startup and when I went to the SQLAdmin sample app I saw this:&lt;br /&gt;
&lt;!-- s9ymdb:13 --&gt;&lt;img width=&#039;400&#039; height=&#039;171&#039; style=&quot;float: left; border: 0px; padding-left: 5px; padding-right: 5px;&quot; src=&quot;http://www.code-complete.com/code/uploads/FlexSQLAdmin.gif&quot; alt=&quot;&quot; /&gt;&lt;br /&gt;&lt;br /&gt;
&lt;br /&gt;
Adobe Livecycle successfully running.&lt;br /&gt;
&lt;br /&gt;
 
    </content:encoded>

    <pubDate>Fri, 07 Sep 2007 13:33:51 -0600</pubDate>
    <guid isPermaLink="false">http://www.code-complete.com/code/index.php?/archives/25-guid.html</guid>
    <creativeCommons:license>http://creativecommons.org/licenses/by/3.0/</creativeCommons:license>
</item>
<item>
    <title>FC7 + CFMX 8 + Tomcat + 64-bit jvm 1.6 = Sweetness</title>
    <link>http://www.code-complete.com/code/index.php?/archives/20-FC7-+-CFMX-8-+-Tomcat-+-64-bit-jvm-1.6-Sweetness.html</link>
            <category>Coldfusion Server</category>
            <category>Redhat Linux</category>
    
    <comments>http://www.code-complete.com/code/index.php?/archives/20-FC7-+-CFMX-8-+-Tomcat-+-64-bit-jvm-1.6-Sweetness.html#comments</comments>
    <wfw:comment>http://www.code-complete.com/code/wfwcomment.php?cid=20</wfw:comment>

    <slash:comments>4</slash:comments>
    <wfw:commentRss>http://www.code-complete.com/code/rss.php?version=2.0&amp;type=comments&amp;cid=20</wfw:commentRss>
    

    <author>nospam@example.com (thaddeus)</author>
    <content:encoded>
    Today (well, and yesterday) was primarily spent getting cfmx 8 installed on a 64-bit Fedora 7 box.  That normally should take about 10 minutes, but I didn&#039;t want the default install.  I wanted (as I have for some time) a native 64-bit instance of Coldfusion.  And now I have one.&lt;br /&gt;
&lt;br /&gt;
&lt;!-- s9ymdb:10 --&gt;&lt;img width=&#039;491&#039; height=&#039;523&#039; style=&quot;float: center; border: 0px; padding-left: 5px; padding-right: 5px;&quot; src=&quot;http://www.code-complete.com/code/uploads/cf_jvm.GIF&quot; alt=&quot;&quot; /&gt;&lt;br /&gt;
&lt;br /&gt;
Here is what I needed to do to get this installed, hopefully it can save you some time if you are trying to do the same.  The process will be similar on other 64-bit distros, and there are some gotchas for sure.&lt;br /&gt;
&lt;br /&gt;
With this machine, my preference is to install everything I possibly can via yum rather than download and compile source just to make application management easier.  So here&#039;s a list of the RPMs that were installed in support of the application (not all are needed):&lt;br /&gt;
&lt;br /&gt;
APR-1.2.8-7x86_64&lt;br /&gt;
APR-devel-1.2.8-7x86_64&lt;br /&gt;
APR-util-1.2.8-7x86_64&lt;br /&gt;
APR-util-devel-1.2.8-7x86_64&lt;br /&gt;
openssl-0.98b-12.fc7.x86_64&lt;br /&gt;
openssl-devel-0.98b-12.fc7.x86_64&lt;br /&gt;
http-2.2.4-1.fc7.x86_64&lt;br /&gt;
http-devel-2.2.4-1.fc7.x86_64&lt;br /&gt;
jakarta-commons-logging-1.0.4-6jpp.1.x86_64&lt;br /&gt;
mod_ssl-1:2.2.4-1.fc7.x86_64&lt;br /&gt;
tomcat5-5.5.23-9jpp.2.fc7.x86_64&lt;br /&gt;
tomcat5-jsp-2.0-api-5.5.23-9jpp.2.fc7.x86_64&lt;br /&gt;
tomcat5-servlet-2.4-api-5.5.23-9jpp.2.fc7.x86_64&lt;br /&gt;
and finally:&lt;br /&gt;
jdk-6u2-linux-amd64 (from Sun)&lt;br /&gt;
&lt;br /&gt;
The default JDK installed with the OS was the 32-bit 1.5 version and in fedora there are Sym links under /var/lib/alternatives - you will need to update these sym links to point to the 64-bit java components if you plan on using the default JAVA_HOME variable (/usr/lib/jvm/java) within the tomcat5.conf file.  Alternately, you can add the following lines into /etc/tomcat5/tomcat5.conf &lt;strong&gt;AND&lt;/strong&gt; /etc/sysconfig/tomcat5:&lt;br /&gt;
&lt;code&gt;&lt;br /&gt;
JAVA_HOME=&quot;/usr/java/jdk1.6.0_02&quot;&lt;br /&gt;
JRE_HOME=&quot;/usr/java/jdk1.6.0_02/jre&quot;&lt;br /&gt;
&lt;/code&gt;&lt;br /&gt;
&lt;br /&gt;
Now fire up tomcat using /etc/init.d/tomcat5 start and take a look at the catalina.out log under /usr/share/tomcat/logs/ and check the library path and/or the JRE_HOME being reported to ensure it&#039;s using the 64-bit jvm.&lt;br /&gt;
&lt;br /&gt;
Next run the Coldfusion-8-lin.bin installer and select the option for j2ee deploy as WAR and run the install.  This will create a cfusion.war and an rds.war package uner /opt/coldfusion8/.  Now move the cfusion.war file to tomcat&#039;s webapps directory (/usr/share/tomcat5/webapps) and then copy the rds.war to the webapps directory and rename it CFIDE.war.&lt;br /&gt;
&lt;br /&gt;
Tomcat should automatically deploy the cfusion.war file into a cfusion directory.  You need to go into cfusion/WEB-INF/cfusion/lib and rename the tools.jar to something else.  At this point, tomcat may crash or hang.  You should stop it: /etc/init.d/tomcat5 stop.  You might still be looking at the catalina.out file if you were using tail -f and you might notice the following line:&lt;br /&gt;
&lt;code&gt;&lt;br /&gt;
Error [ContainerBackgroundProcessor[StandardEngine[Catalina]] - Unable to initialize Security service: coldfusion.runtime.Encryptor$invalidParametersForEncryptionException:  An error occurred while trying to encrypt or decrypt you input striong:  5 trailing bytes.&lt;br /&gt;
&lt;/code&gt;&lt;br /&gt;
&lt;br /&gt;
So now you will need the Java Cryptography Extension (JCE) Unlinmited Strength Juristiction Policy Files 6, available from &lt;a href=&quot;http://java.sun.com/javase/downloads/index.jsp&quot; &gt;http://java.sun.com/javase/downloads/index.jsp&lt;/a&gt; at the bottom of the page.&lt;br /&gt;
&lt;br /&gt;
Backup and replace your US_export_policy.jar and local_policy.jar files from /usr/java/jdk1.6.0_02/jre/lib/security with the unlimited strength files.&lt;br /&gt;
&lt;br /&gt;
Start tomcat:  /etc/init.d/tomcat5 start&lt;br /&gt;
point your browser here:  http://localhost:8080/cfusion/CFIDE/administrator&lt;br /&gt;
and hopefully you&#039;ll see this:&lt;br /&gt;
&lt;!-- s9ymdb:11 --&gt;&lt;img width=&#039;110&#039; height=&#039;69&#039; style=&quot;float: center; border: 0px; padding-left: 5px; padding-right: 5px;&quot; src=&quot;http://www.code-complete.com/code/uploads/cfadmin.serendipityThumb.jpg&quot; alt=&quot;&quot; /&gt;&lt;br /&gt;
&lt;br /&gt;
Next up:  Getting the apache/tomcat connectors set up.&lt;br /&gt;
 
    </content:encoded>

    <pubDate>Wed, 15 Aug 2007 13:38:41 -0600</pubDate>
    <guid isPermaLink="false">http://www.code-complete.com/code/index.php?/archives/20-guid.html</guid>
    <creativeCommons:license>http://creativecommons.org/licenses/by/3.0/</creativeCommons:license>
</item>
<item>
    <title>Sys Admin Appreciation Day</title>
    <link>http://www.code-complete.com/code/index.php?/archives/18-Sys-Admin-Appreciation-Day.html</link>
            <category>Redhat Linux</category>
            <category>SQL Server 2k5</category>
            <category>Win2K3 Server</category>
            <category>Windows Server 2008</category>
    
    <comments>http://www.code-complete.com/code/index.php?/archives/18-Sys-Admin-Appreciation-Day.html#comments</comments>
    <wfw:comment>http://www.code-complete.com/code/wfwcomment.php?cid=18</wfw:comment>

    <slash:comments>0</slash:comments>
    <wfw:commentRss>http://www.code-complete.com/code/rss.php?version=2.0&amp;type=comments&amp;cid=18</wfw:commentRss>
    

    <author>nospam@example.com (thaddeus)</author>
    <content:encoded>
    &lt;strong&gt;July 27th, 2007 (Last Friday Of July)&lt;br /&gt;
8th Annual&lt;br /&gt;
System Administrator Appreciation Day&lt;/strong&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;em&gt;If you can read this, thank your sysadmin&lt;/em&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;a href=&quot;http://www.sysadminday.com/&quot;  title=&quot;sysadmins rejoice&quot;&gt;http://www.sysadminday.com/&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
 
    </content:encoded>

    <pubDate>Fri, 27 Jul 2007 10:59:14 -0600</pubDate>
    <guid isPermaLink="false">http://www.code-complete.com/code/index.php?/archives/18-guid.html</guid>
    <creativeCommons:license>http://creativecommons.org/licenses/by/3.0/</creativeCommons:license>
</item>

</channel>
</rss>