<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
    <title>Megalinux</title>
    <link rel="alternate" type="text/html" href="http://www.megalinux.net/" />
    <link rel="self" type="application/atom+xml" href="http://www.megalinux.net/atom.xml" />
    <id>tag:www.megalinux.net,2007-11-04://1</id>
    <updated>2008-01-28T07:03:18Z</updated>
    <subtitle>Technical Resources for Sysadmins &amp; Gadget Geeks</subtitle>
    <generator uri="http://www.sixapart.com/movabletype/">Movable Type Publishing Platform 4.01</generator>

<entry>
    <title>Coldfusion 8, Apache on OS X Leopard</title>
    <link rel="alternate" type="text/html" href="http://www.megalinux.net/2008/01/entry-basename.html" />
    <id>tag:www.megalinux.net,2008://1.250</id>

    <published>2008-01-27T20:33:20Z</published>
    <updated>2008-01-28T07:03:18Z</updated>

    <summary> How-to on installing Coldfusion on OS X Leopard, with Apache:http://www.scottpinkston.org/blog/index.cfm/2007/10/29/ColdFusion-8-on-Leopard-with-Apache--an-answer-for-the-rest-of-us apache, OS X...</summary>
    <author>
        <name>Ram Prasad</name>
        <uri>http://www.megalinux.net</uri>
    </author>
    
        <category term="Apache" scheme="http://www.sixapart.com/ns/types#category" />
    
        <category term="OS X" scheme="http://www.sixapart.com/ns/types#category" />
    
    
    <content type="html" xml:lang="en" xml:base="http://www.megalinux.net/">
        <![CDATA[<blockquote>
  <p>How-to on installing Coldfusion on OS X Leopard, with Apache:</p><a href="http://www.scottpinkston.org/blog/index.cfm/2007/10/29/ColdFusion-8-on-Leopard-with-Apache--an-answer-for-the-rest-of-us">http://www.scottpinkston.org/blog/index.cfm/2007/10/29/ColdFusion-8-on-Leopard-with-Apache--an-answer-for-the-rest-of-us</a>
</blockquote>
<blockquote>
  <br />
</blockquote>

<div class="posttagsblock"><a href="http://technorati.com/tag/apache" rel="tag">apache</a>, <a href="http://technorati.com/tag/OS%20X" rel="tag">OS X</a></div>]]>
        
    </content>
</entry>

<entry>
    <title>kernel: cdrom: open failed</title>
    <link rel="alternate" type="text/html" href="http://www.megalinux.net/2007/12/entry-basename.html" />
    <id>tag:www.megalinux.net,2007://1.223</id>

    <published>2007-12-27T16:30:56Z</published>
    <updated>2007-12-27T16:31:03Z</updated>

    <summary>Issue: &quot;kernel: cdrom: open failed&quot; errors noticed in /var/log/messages Solution: Edit /etc/hal/hald.conf and change /haldconfig/storage_media_check to false....</summary>
    <author>
        <name>Ram Prasad</name>
        <uri>http://www.megalinux.net</uri>
    </author>
    
        <category term="Fedora Core" scheme="http://www.sixapart.com/ns/types#category" />
    
        <category term="General" scheme="http://www.sixapart.com/ns/types#category" />
    
        <category term="Maintenance" scheme="http://www.sixapart.com/ns/types#category" />
    
        <category term="RedHat Linux" scheme="http://www.sixapart.com/ns/types#category" />
    
    <category term="cdrom" label="CDROM" scheme="http://www.sixapart.com/ns/types#tag" />
    <category term="ejectcdrom" label="Eject CDROM" scheme="http://www.sixapart.com/ns/types#tag" />
    
    <content type="html" xml:lang="en" xml:base="http://www.megalinux.net/">
        <![CDATA[<p><strong>Issue:</strong></p>
<p>"kernel: cdrom: open failed" errors noticed in /var/log/messages</p>
<p><span style="font-weight: bold;">Solution:</span><br /></p>
<p>Edit /etc/hal/hald.conf and change /haldconfig/storage_media_check to false.</p>
]]>
        
    </content>
</entry>

<entry>
    <title>Installing PHP with Oracle support</title>
    <link rel="alternate" type="text/html" href="http://www.megalinux.net/2007/12/entry-basename.html" />
    <id>tag:www.megalinux.net,2007://1.221</id>

    <published>2007-12-06T19:16:56Z</published>
    <updated>2007-12-06T21:26:37Z</updated>

    <summary> Oracle 10g Instant Client (free download available) is the easiest way for PHP to connect to a remote Oracle database, requiring installation of only three libraries. The Instant Client libraries used by PHP access Oracle&apos;s current API, called OCI8....</summary>
    <author>
        <name>Ram Prasad</name>
        <uri>http://www.megalinux.net</uri>
    </author>
    
    
    <content type="html" xml:lang="en" xml:base="http://www.megalinux.net/">
        <![CDATA[<p>
<span class="bodycopy">Oracle 10<em>g</em> Instant Client (<a href="http://www.oracle.com/technology/tech/oci/instantclient/instantclient.html" class="bodylink">free download</a> available) is
the easiest way for PHP to connect to a remote Oracle database, requiring
installation of only three libraries.</span>
    </p>

    <p>

      <span class="bodycopy">The Instant Client libraries used by PHP
access Oracle's current API, called OCI8. (This C interface takes its
name from being first introduced in Oracle8.)
PHP <a href="http://www.php.net/manual/en/ref.oci8.php" class="bodylink">Oracle 8
Functions</a> can call Oracle 8.1.7, 9.x, or 10.x directly, or optional
abstraction classes like <a href="http://pear.php.net/package/MDB2" class="bodylink">PEAR MDB2</a> and <a href="http://adodb.sourceforge.net/" class="bodylink">ADOdb</a> can be used for
convenience. <br /></span></p><p>Download the instantclient-basic and instantclient-devel packages from the download page:</p><p>1. http://download.oracle.com/otn/linux/instantclient/11106/oracle-instantclient-basiclite-11.1.0.1-1.i386.rpm</p><p>2.&nbsp; http://download.oracle.com/otn/linux/instantclient/11106/oracle-instantclient-devel-11.1.0.1-1.i386.rpm</p><p>Install the RPMs and use the following to compile and install PHP</p><br />
<quote>./configure --with-apxs2=/usr/local/apache/bin/apxs --with-mysql --with-zlib --with-gd --prefix=/usr/local/php5 --with-gd --with-curl --enable-sockets --with-mysqli --with-jpeg --with-zlib --with-png --with-gd --with-curl=/usr/local/curl7&nbsp; --with-oci8=instantclient,/usr/lib/oracle/11.1.0.1/client/lib/
<br />make<br />make install</quote><br /><br /><span class="bodycopy"></span>]]>
        
    </content>
</entry>

<entry>
    <title>Deleting files with special characters</title>
    <link rel="alternate" type="text/html" href="http://www.megalinux.net/2007/11/entry-basename.html" />
    <id>tag:www.megalinux.net,2007://1.98</id>

    <published>2007-11-09T20:01:00Z</published>
    <updated>2007-11-09T20:04:05Z</updated>

    <summary>You can delete a file with strange characters (especially hidden characters) by it&apos;s inode number. To find the inode number of a file, list the directory with the -i option: ram# ls -i 2064227 test 2064227 is the inode number...</summary>
    <author>
        <name>Ram Prasad</name>
        <uri>http://www.megalinux.net</uri>
    </author>
    
    
    <content type="html" xml:lang="en" xml:base="http://www.megalinux.net/">
        <![CDATA[<p>You can delete a file with strange characters (especially hidden characters) by it's inode number.</p>

<p>To find the inode number of a file, list the directory with the -i option:<br />
<pre><br />
ram# ls -i <br />
2064227 test<br />
</pre><br />
2064227 is the inode number of the file 'test'.  </p>

<p>Use the find command to delete the file by it's inode number:<br />
<pre><br />
find . -inum 2064227 -exec rm {} \; <br />
</pre></p>]]>
        
    </content>
</entry>

<entry>
    <title>HP DV2610US &amp; Ubuntu Gutsy Gibbon (7.10)</title>
    <link rel="alternate" type="text/html" href="http://www.megalinux.net/2007/11/entry-basename.html" />
    <id>tag:www.megalinux.net,2007://1.97</id>

    <published>2007-11-05T02:36:20Z</published>
    <updated>2007-11-05T02:36:20Z</updated>

    <summary>GUI Installation DO NOT use the GUI installation method. It does not work. It will make you feel really bad for buying this laptop. Worry not. Use the text based installation. Once the installation is complete, it will come up...</summary>
    <author>
        <name>Ram Prasad</name>
        <uri>http://www.megalinux.net</uri>
    </author>
    
        <category term="General" scheme="http://www.sixapart.com/ns/types#category" />
    
        <category term="Maintenance" scheme="http://www.sixapart.com/ns/types#category" />
    
        <category term="Networking" scheme="http://www.sixapart.com/ns/types#category" />
    
    <category term="broadcom" label="Broadcom" scheme="http://www.sixapart.com/ns/types#tag" />
    <category term="dv2610" label="DV2610" scheme="http://www.sixapart.com/ns/types#tag" />
    <category term="hp" label="HP" scheme="http://www.sixapart.com/ns/types#tag" />
    <category term="ubuntu" label="Ubuntu" scheme="http://www.sixapart.com/ns/types#tag" />
    
    <content type="html" xml:lang="en" xml:base="http://www.megalinux.net/">
        <![CDATA[<p><strong>GUI Installation</strong></p>
<p>DO NOT use the GUI installation method. It does not work. It will make you feel really bad for buying this laptop. Worry not. Use the text based installation. Once the installation is complete, it will come up with the GUI with restricted resolution.</p>
<p>Make sure you are connected to the LAN (and of course, you should be connected to the net). (Wifi does not work at this point). It will prompt you to install/use the restricted drivers for nVidia. Say Yes ! It will install the drivers. Reboot. You should have a proper display/resolution now. (It will prompt you to install the "drivers" for broadcom wireless. Do not proceed. They don't work and you won't need them).</p>
<p><strong>Networking</strong></p>
<p>In order to use the Broadcom Wireless card in HP DV2610US (and I think it also works on the recent AMD/Nvidia based laptops), you need to do the following:</p>
<ol>
  <li>Disable the restricted drivers. You dont need them. The only way it all works is with ndiswrapper</li>

  <li>Install ndiswrapper (apt-get install ndiswrapper-common or ndiswrapper)</li>

  <li>Disable any Competing Drivers<br />
    Ubuntu has a kernel driver for this device that is called bcm43xx. In order to use ndiswrapper you must put the bcm43xx in the black list file.<br />
    <pre>
echo 'blacklist bcm43xx' | sudo tee -a /etc/modprobe.d/blacklist
</pre>

    <p>The blacklisted module will not be loaded on reboot from now on.</p>
  </li>

  <li>Download the "windows" driver from HP support
    <pre>
user@ubuntu:~ $ sudo wget ftp://ftp.hp.com/pub/softpaq/sp33001-33500/sp33008.exe
</pre>If the above driver does not work, try
    <pre>
wget ftp://ftp.compaq.com/pub/softpaq/sp34001-34500/sp34152.exe
</pre>
  </li>

  <li>Install Cabextract. Cabextract will be used to "extract" the windows drivers from the exe file.
    <pre>
user@ubuntu:~ $ sudo apt-get update
user@ubuntu:~ $ sudo apt-get install cabextract unzip
user@ubuntu:~ $ cabextract sp33008.exe
</pre>
  </li>

  <li>Install the drivers:
    <pre>
user@ubuntu:~$ sudo ndiswrapper -i bcmwl5.inf
</pre>You should notice something like this (and it is normal)
    <pre>
installing bcmwl5 ...
forcing parameter IBSSGMode from 0 to 2
forcing parameter IBSSGMode from 0 to 2
forcing parameter IBSSGMode from 0 to 2
forcing parameter IBSSGMode from 0 to 2
forcing parameter IBSSGMode from 0 to 2
forcing parameter IBSSGMode from 0 to 2
forcing parameter IBSSGMode from 0 to 2
forcing parameter IBSSGMode from 0 to 2
forcing parameter IBSSGMode from 0 to 2
forcing parameter IBSSGMode from 0 to 2
forcing parameter IBSSGMode from 0 to 2
forcing parameter IBSSGMode from 0 to 2
forcing parameter IBSSGMode from 0 to 2
forcing parameter IBSSGMode from 0 to 2
forcing parameter IBSSGMode from 0 to 2
forcing parameter IBSSGMode from 0 to 2
forcing parameter IBSSGMode from 0 to 2
forcing parameter IBSSGMode from 0 to 2
forcing parameter IBSSGMode from 0 to 2
forcing parameter IBSSGMode from 0 to 2
</pre>
  </li>

  <li>We can list the drivers, to make sure we have it installed properly<br />
    <pre>
user@ubuntu:~$ ndiswrapper -l
installed drivers:
bcmwl5          driver installed, hardware (14E4:4324) present (alternate driver: bcm43xx)
</pre>
  </li>

  <li>Bring up the driver:<br />
    <pre>
user@ubuntu:~$ sudo depmod -a
user@ubuntu:~$ sudo modprobe ndiswrapper
</pre>
  </li>

  <li>This should bring up the driver. Reboot. Once you are back in the GUI mode, you should see that Wifi is up and you are shown the nearby networks</li>
</ol><br />
]]>
        
    </content>
</entry>

<entry>
    <title>I just finished installing Movable Type 4.01!</title>
    <link rel="alternate" type="text/html" href="http://www.megalinux.net/2007/11/entry-basename.html" />
    <id>tag:sandbox.megalinux.net,2007://1.1</id>

    <published>2007-11-04T23:22:40Z</published>
    <updated>2007-11-05T01:03:49Z</updated>

    <summary><![CDATA[Welcome to my new blog powered by Movable Type, featuring New ThemesNew Commenting System (with Captcha)Better Ad serving through Google Adsenseand hopefully, new &amp; regular posts...]]></summary>
    <author>
        <name>Ram Prasad</name>
        <uri>http://www.megalinux.net</uri>
    </author>
    
    
    <content type="html" xml:lang="en" xml:base="http://www.megalinux.net/">
        <![CDATA[Welcome to my new blog powered by Movable Type, featuring <div><ul><li>New Themes</li><li>New Commenting System (with Captcha)</li><li>Better Ad serving through Google Adsense</li><li>and hopefully, new &amp; regular posts</li></ul></div>]]>
        
    </content>
</entry>

<entry>
    <title>Checking URL link status with Perl</title>
    <link rel="alternate" type="text/html" href="http://www.megalinux.net/2007/11/entry-basename.html" />
    <id>tag:sandbox.megalinux.net,2007://1.95</id>

    <published>2007-11-03T23:17:32Z</published>
    <updated>2007-11-04T23:28:33Z</updated>

    <summary>I had a file with lots of URLs but were not sure which ones where active or which links were broken. I used the following Perl script to check the status of the links. #!/usr/bin/perl -w ######################################### # link_check.pl -...</summary>
    <author>
        <name>Ram Prasad</name>
        <uri>http://www.megalinux.net</uri>
    </author>
    
        <category term="General" scheme="http://www.sixapart.com/ns/types#category" />
    
    
    <content type="html" xml:lang="en" xml:base="http://www.megalinux.net/">
        <![CDATA[<p>I had a file with lots of URLs but were not sure which ones where active or which links were broken. I used the following Perl script to check the status of the links.</p>
<pre>
#!/usr/bin/perl -w

#########################################
# link_check.pl - link check script     #
# Ram Prasad, 2007, ram_megalinux.net   #
#########################################

use strict;
use warnings;
#use File::Basename;
use LWP::UserAgent;

# toggle debug mode
my $DEBUG = 1;

my $browser = create_lwp_browser();

# do the work and check the remote pages
my ($working, $broken, $odd) = get_status_codes($browser);

#------------------------#
# subs, funcs and utils
#------------------------#

sub get_status_codes 
{
  my $browser = shift;
  my $file='urls.txt';
  open (INFO,$file);
  my @lines = <INFO>;
  close(INFO);  
  foreach my $p (@lines) 
  {
    chomp($p);
    my $response = $browser->get($p);
    warn "Working on ", $p, "...\n" if $DEBUG;
    print($p."|".$response->status_line."\n");
    }
}

#------------------------#
sub create_lwp_browser 
{
  # set any LWP settings here.  agent, proxies, follow redirects etc    
  my $browser = LWP::UserAgent->new;
  # get the proxy env variable from command line
  $browser->env_proxy; 
  # default time out per URL checked.
  $browser->timeout(30);
  $browser->agent('link_check.pl/1.0');
  return $browser;
}
              
#------------------------#
</pre>
<p>In the above example, "urls.txt" contains the list of all URLs.</p>]]>
        
    </content>
</entry>

<entry>
    <title>Free applications for HTC Touch</title>
    <link rel="alternate" type="text/html" href="http://www.megalinux.net/2007/08/entry-basename.html" />
    <id>tag:sandbox.megalinux.net,2007://1.94</id>

    <published>2007-08-27T10:28:39Z</published>
    <updated>2007-11-04T23:28:33Z</updated>

    <summary> Here are some excellent free (or nearly free) applications for HTC Touch. Some/Most of these application can also work with other PPC (Pocket PC) devices 1. PocketCM Keyboard: Do you wish you have iPhone-like keyboard on your HTC Touch...</summary>
    <author>
        <name>Ram Prasad</name>
        <uri>http://www.megalinux.net</uri>
    </author>
    
        <category term="HTC Touch" scheme="http://www.sixapart.com/ns/types#category" />
    
    
    <content type="html" xml:lang="en" xml:base="http://www.megalinux.net/">
        <![CDATA[<p>
Here are some excellent free (or nearly free) applications for HTC Touch. Some/Most of these application can also work with other PPC (Pocket PC) devices
</p><p>
1. <a href="http://www.pocketcm.com/keyboard.php">PocketCM Keyboard</a>: Do you wish you have iPhone-like keyboard on your HTC Touch ? Then look no further. This  application nearly replicates the keyboard on iPhone.
<br /><object width="425" height="350"><param name="movie" value="http://www.youtube.com/v/7t0Zhys5tWE"></param><param name="wmode" value="transparent"></param><embed src="http://www.youtube.com/v/7t0Zhys5tWE" type="application/x-shockwave-flash" wmode="transparent" width="425" height="350"></embed></object>
</p><p>
2.<a href="http://www.skype.com/intl/en/download/skype/mobile/downloading_high.html">Skype</a>: Of course. This is an everyday application that you cannot live without. Why tethered to the computer when you can have skype on your mobile (use wifi only. GPRS/Edge might not provide a good experience). Download the PocketPC edition.
</p><p>
3. <a href="http://www.ghisler.com/ce.htm">Total Commander</a>: Are you a power user ? Did you want a better file manager, registry editor, FTP client, network browser ? Total Commander is all these and more. It is easy to use and provides near-total control of your HTC touch/Pocket PC.
</p><p>
Will keep this list updated as and when I find new applications ...
</p>
<!-- technorati tags start --><p style="text-align:right;font-size:10px;">Technorati Tags: <a href="http://www.technorati.com/tag/HTC" rel="tag">HTC</a>, <a href="http://www.technorati.com/tag/Touch" rel="tag">Touch</a></p><!-- technorati tags end -->]]>
        
    </content>
</entry>

<entry>
    <title>HTC Touch - Unlock from Airtel</title>
    <link rel="alternate" type="text/html" href="http://www.megalinux.net/2007/08/entry-basename.html" />
    <id>tag:sandbox.megalinux.net,2007://1.93</id>

    <published>2007-08-26T05:04:15Z</published>
    <updated>2007-11-04T23:28:32Z</updated>

    <summary> I was surprised to find out that HTC Touch in India is locked to Airtel. The sales rep (Wavetel, Tambaram, Chennai) did not inform me that the phone is locked to Airtel for 2 years. Since I had to...</summary>
    <author>
        <name>Ram Prasad</name>
        <uri>http://www.megalinux.net</uri>
    </author>
    
        <category term="HTC Touch" scheme="http://www.sixapart.com/ns/types#category" />
    
    
    <content type="html" xml:lang="en" xml:base="http://www.megalinux.net/">
        <![CDATA[<p>
I was surprised to find out that HTC Touch in India is locked to Airtel. The sales rep (Wavetel, Tambaram, Chennai) did not inform me that the phone is locked to Airtel for 2 years. Since I had to travel abroad, I had no other choice but to unlock it.  I used the serivces of <a href="http://unlock-now.com/elf/">Unlock-Now</a> and I was able to unlock the phone for $20 approx. Try it out. It is worth the money. (for now, only unlock-now offers the lowest-cost solution)
</p>
<!-- technorati tags start --><p style="text-align:right;font-size:10px;">Technorati Tags: <a href="http://www.technorati.com/tag/Airtel" rel="tag">Airtel</a>, <a href="http://www.technorati.com/tag/HTC" rel="tag">HTC</a>, <a href="http://www.technorati.com/tag/India" rel="tag">India</a>, <a href="http://www.technorati.com/tag/Unlock" rel="tag">Unlock</a></p><!-- technorati tags end -->]]>
        
    </content>
</entry>

<entry>
    <title>Wolfenstein Enemy Territory on Windows Vista</title>
    <link rel="alternate" type="text/html" href="http://www.megalinux.net/2007/08/entry-basename.html" />
    <id>tag:sandbox.megalinux.net,2007://1.92</id>

    <published>2007-08-18T08:27:06Z</published>
    <updated>2007-11-04T23:28:32Z</updated>

    <summary> I have a HP DV9207US running Windows Vista. The only game that I love and play is Wolfenstein Enemy Territory. But Vista could not play it (Nvidia GeForce 7600 GO). Windows Vista Performance and Windows Vista Reliability update packs...</summary>
    <author>
        <name>Ram Prasad</name>
        <uri>http://www.megalinux.net</uri>
    </author>
    
        <category term="Windows" scheme="http://www.sixapart.com/ns/types#category" />
    
    
    <content type="html" xml:lang="en" xml:base="http://www.megalinux.net/">
        <![CDATA[<p>
I have a HP DV9207US running Windows Vista. The only game that I love and play is Wolfenstein Enemy Territory. But Vista could not play it (Nvidia GeForce 7600 GO).
</p><p>
<a href="http://support.microsoft.com/?kbid=938979">Windows Vista Performance</a> and <a href="http://support.microsoft.com/?kbid=938194">Windows Vista Reliability</a> update packs  have solved this issue for me. I am able to run WET 2.55 on Windows Vista without any issues.
</p>
<!-- technorati tags start --><p style="text-align:right;font-size:10px;">Technorati Tags: <a href="http://www.technorati.com/tag/Wolfenstein" rel="tag">Wolfenstein</a>, <a href="http://www.technorati.com/tag/Vista" rel="tag">Vista</a>, <a href="http://www.technorati.com/tag/Windows" rel="tag">Windows</a></p><!-- technorati tags end -->]]>
        
    </content>
</entry>

<entry>
    <title>Changing local weather on HTC Touch home screen</title>
    <link rel="alternate" type="text/html" href="http://www.megalinux.net/2007/08/entry-basename.html" />
    <id>tag:sandbox.megalinux.net,2007://1.91</id>

    <published>2007-08-15T19:06:17Z</published>
    <updated>2007-11-04T23:28:32Z</updated>

    <summary>I bought a HTC touch today (Windows Mobile 6). I was sad to see that Chennai, (formerly Madras) was not listed in the cities for displaying weather. So, I hacked the registry to make the changes to the local weather...</summary>
    <author>
        <name>Ram Prasad</name>
        <uri>http://www.megalinux.net</uri>
    </author>
    
        <category term="HTC Touch" scheme="http://www.sixapart.com/ns/types#category" />
    
    <category term="chennai" label="Chennai" scheme="http://www.sixapart.com/ns/types#tag" />
    <category term="htctouch" label="HTC Touch" scheme="http://www.sixapart.com/ns/types#tag" />
    <category term="weather" label="Weather" scheme="http://www.sixapart.com/ns/types#tag" />
    
    <content type="html" xml:lang="en" xml:base="http://www.megalinux.net/">
        <![CDATA[<p>I bought a HTC touch today (Windows Mobile 6). I was sad to see that Chennai, (formerly Madras) was not listed in the cities for displaying weather. So, I hacked the registry to make the changes to the local weather display on the home screen. Here is the method:<br />
<ol><br />
	<li>Download a registry editor like <a href="http://www.breaksoft.com/Download/MRE/MobileRegistryEditor.zip">Mobile Registry Editor</a> which allows you to edit the registry from your PC using ActiveSync. </li><br />
	<li>Then go to:<br><br />
HKEY_LOCAL_MACHINE\Software\HTC\HTCHome\Weather\Settings</li><br />
	<li>Change the location to "Chennai, IN" and the loccode to "ASI|IN|IN031|MADRAS" </li><br />
</ol></p>]]>
        
    </content>
</entry>

<entry>
    <title>Warrick: Restoring website from internet caches</title>
    <link rel="alternate" type="text/html" href="http://www.megalinux.net/2007/06/entry-basename.html" />
    <id>tag:sandbox.megalinux.net,2007://1.90</id>

    <published>2007-06-25T20:21:30Z</published>
    <updated>2007-11-04T23:28:32Z</updated>

    <summary>Warrick is a command-line utility for reconstructing or recovering a website when a back-up is not available. Warrick will search the Internet Archive, Google, MSN, and Yahoo for stored pages and images and will save them to your filesystem. Warrick...</summary>
    <author>
        <name>Ram Prasad</name>
        <uri>http://www.megalinux.net</uri>
    </author>
    
        <category term="General" scheme="http://www.sixapart.com/ns/types#category" />
    
    
    <content type="html" xml:lang="en" xml:base="http://www.megalinux.net/">
        <![CDATA[<blockquote>Warrick is a command-line utility for reconstructing or recovering a website when a back-up is not available. Warrick will search the Internet Archive, Google, MSN, and Yahoo for stored pages and images and will save them to your filesystem. Warrick is most effective at finding cached content in search engines in the first several days after losing the website since the cached versions of pages tend to disappear once the search engine re-crawls your site and can no longer find the pages. Running Warrick multiple times over a period of several days or weeks can increase the number of recovered files because the caches fluctuate daily (especially Yahoo's). Internet Archive's repository is at least 6-12 months out of date, and therefore you will only find content from them if your website has been around at least that long. If they don't have your website archived, you might want to run Warrick again in 6-12 months.</blockquote>

<p><a href="http://www.cs.odu.edu/~fmccown/research/lazy/warrick.html">Warrick is available here</a></p>]]>
        
    </content>
</entry>

<entry>
    <title>Dynamic Virtualhosting (for subdomains) with apache</title>
    <link rel="alternate" type="text/html" href="http://www.megalinux.net/2007/06/entry-basename.html" />
    <id>tag:sandbox.megalinux.net,2007://1.89</id>

    <published>2007-06-19T18:12:50Z</published>
    <updated>2007-11-04T23:28:32Z</updated>

    <summary>Apache provides a very easy method to provide hosting for dynamically created sub-domains with &quot;VirtualScriptAlias&quot; and &quot;VirtualDocumentRoot&quot; syntaxes Lets say, we have mydomain.com, and you need to dynamically configure test.mydomain.com, monkey.mydomain.com etc. (and not required to manually configure apache or...</summary>
    <author>
        <name>Ram Prasad</name>
        <uri>http://www.megalinux.net</uri>
    </author>
    
        <category term="Apache" scheme="http://www.sixapart.com/ns/types#category" />
    
    
    <content type="html" xml:lang="en" xml:base="http://www.megalinux.net/">
        <![CDATA[<p>Apache provides a very easy method to provide hosting for dynamically created sub-domains with "VirtualScriptAlias" and "VirtualDocumentRoot" syntaxes</p>
<p>Lets say, we have mydomain.com, and you need to dynamically configure test.mydomain.com, monkey.mydomain.com etc. (and not required to manually configure apache or restart), then..</p>
<p>Step 1: Configure wild-card DNS, so that *.mydomain.com is a cname to mydomain.com</p>
<p>Step 2: Configure apache.&nbsp;Create a new&nbsp;virtualhost section for *.mydomain.com, like:<br /></p>
<blockquote>&lt;VirtualHost *&gt;<br /> ServerAlias *.mydomain.com<br /> CustomLog /www/www.logs/virtual.mydomain.com-access_log combined<br /> ErrorLog /www/www.logs/virtual.mydomain.com-error_log<br /> VirtualDocumentRoot /www/www.mydomain.com/virtualdomains/%0/docs<br /> VirtualScriptAlias&nbsp; /www/www.mydomain.com/virtualdomains/%0/cgi-bin/<br /> &lt;/VirtualHost&gt;</blockquote><p>Step 3: Restart apache to activate the new configuration</p>
<p>Step 4: Now, say you need test.mydomain.com, all that is required is to create /www/www.mydomain.com/virtualdomains/test.mydomain.com/docs and /www/www.mydomain.com/virtualdomains/test.mydomain.com/cgi-bin/</p>
<p>&nbsp;</p><!-- technorati tags start --><p style="text-align:right;font-size:10px;">Technorati Tags: <a href="http://www.technorati.com/tag/apache" rel="tag">apache</a>, <a href="http://www.technorati.com/tag/dynamic" rel="tag">dynamic</a>, <a href="http://www.technorati.com/tag/subdomain" rel="tag">subdomain</a>, <a href="http://www.technorati.com/tag/virtualhosting" rel="tag">virtualhosting</a></p><!-- technorati tags end -->]]>
        
    </content>
</entry>

<entry>
    <title>Tomcat UTF8 Characters</title>
    <link rel="alternate" type="text/html" href="http://www.megalinux.net/2007/06/entry-basename.html" />
    <id>tag:sandbox.megalinux.net,2007://1.88</id>

    <published>2007-06-07T20:32:59Z</published>
    <updated>2007-11-04T23:28:32Z</updated>

    <summary><![CDATA[If you have issues with tomcat not able to parse/display UTF characters, try adding URIEncoding="UTF-8" to your tomcat settings (server.xml). Example: &lt;Connector port="8080" maxThreads="150" minSpareThreads="25" maxSpareThreads="75" enableLookups="false" redirectPort="8443" acceptCount="100" debug="0" connectionTimeout="20000" disableUploadTimeout="true" URIEncoding="UTF-8"/&gt;...]]></summary>
    <author>
        <name>Ram Prasad</name>
        <uri>http://www.megalinux.net</uri>
    </author>
    
        <category term="Apache" scheme="http://www.sixapart.com/ns/types#category" />
    
    <category term="tomcat" label="tomcat" scheme="http://www.sixapart.com/ns/types#tag" />
    <category term="utf8" label="utf8" scheme="http://www.sixapart.com/ns/types#tag" />
    
    <content type="html" xml:lang="en" xml:base="http://www.megalinux.net/">
        <![CDATA[<p>If you have issues with tomcat not able to parse/display UTF characters, try adding URIEncoding="UTF-8" to your tomcat settings (server.xml). </p>

<p>Example:</p>

<blockquote>
&lt;Connector port="8080" maxThreads="150" minSpareThreads="25" maxSpareThreads="75" enableLookups="false" redirectPort="8443" acceptCount="100" debug="0" connectionTimeout="20000" disableUploadTimeout="true" URIEncoding="UTF-8"/&gt;
</blockquote>]]>
        
    </content>
</entry>

<entry>
    <title>T-Mobile Hotspot &amp; Parallels on OS X</title>
    <link rel="alternate" type="text/html" href="http://www.megalinux.net/2007/05/entry-basename.html" />
    <id>tag:sandbox.megalinux.net,2007://1.87</id>

    <published>2007-05-26T19:42:09Z</published>
    <updated>2007-11-04T23:28:32Z</updated>

    <summary> If you are using T-Mobile hotspot and would like to use the Guest OS also to get access to the net, do the following: Use host only networking with DHCP on the guest OS (Windows XP, in my case)....</summary>
    <author>
        <name>Ram Prasad</name>
        <uri>http://www.megalinux.net</uri>
    </author>
    
    
    <content type="html" xml:lang="en" xml:base="http://www.megalinux.net/">
        <![CDATA[<p>
If you are using T-Mobile hotspot and would like to use the Guest OS also to get access to the net, do the following:
</p><ol>
<li>Use host only networking with DHCP on the guest OS (Windows XP, in my case).</li>
<li>On the native OS (OS X), configure internet sharing of airport with en2 (this is the Parallels Host-Guest Adapter). You would now see that the connectivity on XP goes out and then is re-established. Now, XP would have connectivity to the net.</ol>
<!-- technorati tags start --><p style="text-align:right;font-size:10px;">Technorati Tags: <a href="http://www.technorati.com/tag/parallels" rel="tag">parallels</a>, <a href="http://www.technorati.com/tag/puppy" rel="tag">puppy</a>, <a href="http://www.technorati.com/tag/tmobile" rel="tag">tmobile</a></p><!-- technorati tags end -->]]>
        
    </content>
</entry>

</feed>
