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

<channel>
	<title>Life in 0 and 1</title>
	<atom:link href="http://lifein0and1.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://lifein0and1.com</link>
	<description>My IT notebook...</description>
	<pubDate>Fri, 26 Sep 2008 17:41:22 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6.2</generator>
	<language>en</language>
			<item>
		<title>iPhone Hacking - Custom Ringtone and SMS Notification</title>
		<link>http://lifein0and1.com/2008/09/09/iphone-hacking-custom-ringtone-and-sms-notification/</link>
		<comments>http://lifein0and1.com/2008/09/09/iphone-hacking-custom-ringtone-and-sms-notification/#comments</comments>
		<pubDate>Wed, 10 Sep 2008 00:26:01 +0000</pubDate>
		<dc:creator>Mr. IT Guy</dc:creator>
		
		<category><![CDATA[Howto]]></category>

		<category><![CDATA[IT in General]]></category>

		<category><![CDATA[Mac OSX]]></category>

		<category><![CDATA[Microsoft]]></category>

		<category><![CDATA[hacking]]></category>

		<category><![CDATA[iphone]]></category>

		<category><![CDATA[mac]]></category>

		<category><![CDATA[ringtone]]></category>

		<category><![CDATA[windows]]></category>

		<guid isPermaLink="false">http://lifein0and1.com/2008/02/19/iphone-hacking-custom-ringtone-and-sms-notification/</guid>
		<description><![CDATA[Following up on the earlier iPhone hacks is customizing the most common audio: ringtone and SMS notification. Apple has locked down custom ringtones and profit from them. The biggest problem is, their selection is scarce and sucks. Here&#8217;s a simple guide on how to upload the Ringtones:

Choose an MP3 file and trim it to 30 [...]]]></description>
			<content:encoded><![CDATA[<p>Following up on the earlier <a href="http://lifein0and1.com/tag/iphone/" class="st_tag internal_tag" rel="tag" title="Posts tagged with iphone">iPhone</a> hacks is customizing the most common audio: <a href="http://lifein0and1.com/tag/ringtone/" class="st_tag internal_tag" rel="tag" title="Posts tagged with ringtone">ringtone</a> and SMS notification. Apple has locked down custom ringtones and profit from them. The biggest problem is, their selection is scarce and sucks. Here&#8217;s a simple guide on how to upload the Ringtones:</p>
<ol>
<li>Choose an MP3 file and trim it to 30 seconds or less - I use Audacity (<a href="http://audacity.sourceforge.net/">download link</a>) to do it</li>
<li>Import that MP3 into iTunes</li>
<li>Goto iTunes -&gt; Preferences (for <a href="http://lifein0and1.com/tag/mac/" class="st_tag internal_tag" rel="tag" title="Posts tagged with mac">Mac</a>) or Edit -&gt; Preferences (for PC)</li>
<li>Navigate to Advanced -&gt; Importing tab and set the &#8220;Import Using:&#8221; to AAC</li>
<li>Find the trimmed MP3 file inside iTunes, right click and choose &#8220;Convert Selection to AAC&#8221;</li>
<li>Right click the AAC version of the file and choose &#8220;Get Info&#8221;</li>
<li>Note the path to the file as indicated by the &#8220;Where&#8221; section under the &#8220;Summary&#8221; tab</li>
<li>Navigate to the location of the file and copy it to desktop</li>
<li>Change the extension of the copied file to &#8220;.m4r&#8221;</li>
<li>Open the files in iTunes and it should be automatically inserted under Ringtones category, which then can be transferred to <a href="http://lifein0and1.com/tag/iphone/" class="st_tag internal_tag" rel="tag" title="Posts tagged with iphone">iPhone</a></li>
</ol>
<p>NOTE: I have tried to use &#8220;SoundConverter&#8221; and set the file type to be m4a. This actually doesn&#8217;t work. When I did it that way, the file will be uploaded but won&#8217;t be able to be played. It might have something to do with the file size generated by &#8220;SoundConverter&#8221; being too large.<span id="more-27"></span></p>
<p>SMS Notification is slightly more complicated than the Ringtones counterpart. SMS notification actually can&#8217;t be added, only modified. I also recommend shorter file for SMS notification. Here are the steps I take:</p>
<ol>
<li>Trim MP3 files using Audacity (usually SMS notification should be shorter, roughly 3-4 seconds should be good)</li>
<li>Import the MP3 file to iTunes</li>
<li>Change the iTunes import to AIFF (Follow the ringtones guide to change importing mode in iTunes)</li>
<li>Find the AIFF file and copy to desktop</li>
<li>Change the extension to &#8220;.caf&#8221;</li>
<li>SFTP to the <a href="http://lifein0and1.com/tag/iphone/" class="st_tag internal_tag" rel="tag" title="Posts tagged with iphone">iPhone</a> using Cyberduck (<a href="http://lifein0and1.com/tag/mac/" class="st_tag internal_tag" rel="tag" title="Posts tagged with mac">Mac</a>) or WinSCP (<a href="http://lifein0and1.com/tag/windows/" class="st_tag internal_tag" rel="tag" title="Posts tagged with windows">Windows</a>) or any other SFTP software</li>
<li>Navigate to the following directory: &#8220;/<a href="http://lifein0and1.com/tag/system/" class="st_tag internal_tag" rel="tag" title="Posts tagged with SYSTEM">System</a>/Library/Audio/UISounds&#8221;</li>
<li>Change one of the &#8220;sms-received&lt;x&gt;.caf&#8221; file to &#8220;sms-received_&lt;x&gt;.caf&#8221; where &lt;x&gt; is an integer from 1 to 6 that is least preferrable<br />
For example: Rename &#8220;sms-received6.caf&#8221; to &#8220;sms-received_6.caf&#8221; to replace the Electronic with custom sound</p>
<ol>File name mapping to notification name:<br />
<em>sms-received1.caf -&gt; Tri-tone<br />
sms-received2.caf -&gt; Chime.caf<br />
sms-received3.caf -&gt; Glass<br />
sms-received4.caf -&gt; Horn<br />
sms-received5.caf -&gt; Bell<br />
sms-received6.caf -&gt; Electronic</em></ol>
</li>
<li>Upload the file on the desktop using the old name of that was changed<br />
For example: if &#8220;sms-received_6.caf&#8221; is changed to &#8220;sms-received_6.caf&#8221;, upload the file using the name &#8220;sms-received6.caf&#8221;</li>
<li>Choose in <a href="http://lifein0and1.com/tag/iphone/" class="st_tag internal_tag" rel="tag" title="Posts tagged with iphone">iPhone</a> the replaced tone<br />
For example: if you replaced sms-received6.caf, then you should choose Electronic</li>
</ol>
<p><strong>UPDATE:</strong> <a href="http://lifein0and1.com/tag/ringtone/" class="st_tag internal_tag" rel="tag" title="Posts tagged with ringtone">Ringtone</a> should be set to 30 seconds. Another way to trim the music is to use iTunes&#8217; &#8217;start time&#8217; &amp; &#8217;stop time&#8217; field. This field is accessible by right clicking the song then choosing Get Info -&gt; Options. After performing that, you export the file as AAC then rename it.</p>
<p><strong>UPDATE:</strong> As one commenter mentioned, the SMS Notification hack only works on jailbroken <a href="http://lifein0and1.com/tag/iphone/" class="st_tag internal_tag" rel="tag" title="Posts tagged with iphone">iPhone</a></p>
]]></content:encoded>
			<wfw:commentRss>http://lifein0and1.com/2008/09/09/iphone-hacking-custom-ringtone-and-sms-notification/feed/</wfw:commentRss>
		</item>
		<item>
		<title>HOWTO: Fix Apple&#8217;s WebKit and JavaScriptCore Framework Error</title>
		<link>http://lifein0and1.com/2008/09/09/howto-fix-apples-webkit-and-javascriptcore-framework-error/</link>
		<comments>http://lifein0and1.com/2008/09/09/howto-fix-apples-webkit-and-javascriptcore-framework-error/#comments</comments>
		<pubDate>Tue, 09 Sep 2008 23:59:49 +0000</pubDate>
		<dc:creator>Mr. IT Guy</dc:creator>
		
		<category><![CDATA[IT in General]]></category>

		<category><![CDATA[Mac OSX]]></category>

		<category><![CDATA[Operating System]]></category>

		<category><![CDATA[Frameworks]]></category>

		<category><![CDATA[Howto]]></category>

		<category><![CDATA[JavaScriptCore]]></category>

		<category><![CDATA[webcore]]></category>

		<guid isPermaLink="false">http://lifein0and1.com/?p=41</guid>
		<description><![CDATA[The error message:

1
2
3
Symbol not found: __ZN3KJS11Interpreter4markEv
Referenced from: /System/Library/Frameworks/WebKit.framework/Versions/A/Frameworks/WebCore.framework/Versions/A/WebCore
Expected in: /System/Library/Frameworks/JavaScriptCore.framework/Versions/A/JavaScriptCore

The probable cause:
All fingers seems to point to the Safari and Security update. This happens mostly on Tiger system, but it happens on a brand new Macbook on the way being updated to the latest version after opening the box. 
Resolution:
This error is solved by replacing [...]]]></description>
			<content:encoded><![CDATA[<p>The error message:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
</pre></td><td class="code"><pre class="text text" style="font-family:monospace;">Symbol not found: __ZN3KJS11Interpreter4markEv
Referenced from: /System/Library/Frameworks/WebKit.framework/Versions/A/Frameworks/WebCore.framework/Versions/A/WebCore
Expected in: /System/Library/Frameworks/JavaScriptCore.framework/Versions/A/JavaScriptCore</pre></td></tr></table></div>

<p>The probable cause:<br />
All fingers seems to point to the Safari and <a href="http://lifein0and1.com/tag/security/" class="st_tag internal_tag" rel="tag" title="Posts tagged with security">Security</a> update. This happens mostly on Tiger <a href="http://lifein0and1.com/tag/system/" class="st_tag internal_tag" rel="tag" title="Posts tagged with SYSTEM">system</a>, but it happens on a brand new Macbook on the way being updated to the latest version after opening the box. </p>
<p>Resolution:<br />
This error is solved by replacing the Webkit.framework and <a href="http://lifein0and1.com/tag/javascriptcore/" class="st_tag internal_tag" rel="tag" title="Posts tagged with JavaScriptCore">JavaScriptCore</a>.framework; however there are not that many walkthrough on how to replace the <a href="http://lifein0and1.com/tag/frameworks/" class="st_tag internal_tag" rel="tag" title="Posts tagged with Frameworks">frameworks</a>. Here&#8217;s a guide on how to replace the framework:</p>
<ol>
<li>Download <a href="http://www.charlessoft.com/">Pacifist</a></li>
<li>Download <a href="http://www.apple.com/downloads/macosx/apple/macosx_updates/macosx1054comboupdate.html">Leopard 10.5.4 Combo Update</a> or <a href="http://www.apple.com/downloads/macosx/apple/macosx_updates/macosx10411comboupdateintel.html">Tiger 10.4.11 (Intel) Combo Update</a> or <a href="http://www.apple.com/downloads/macosx/apple/macosx_updates/macosx10411comboupdateppc.html">Tiger 10.4.11 (PPC) Combo Update</a><br />
<strong>NOTE:</strong> This method has only been tested and confirmed on the Leopard version. The tiger version is only an educated guess</li>
<li>Open pacifist (trial version is okay) and use it to open the <a href="http://lifein0and1.com/tag/package/" class="st_tag internal_tag" rel="tag" title="Posts tagged with package">package</a> (the .pkg file that is available after mounting the 10.5.4 combo update)</li>
<li>Navigate to find the <a href="http://lifein0and1.com/tag/system/" class="st_tag internal_tag" rel="tag" title="Posts tagged with SYSTEM">System</a>/Library/Framework both in the Pacifist and Finder</li>
<li>Drag and drop the Webkit.framework and <a href="http://lifein0and1.com/tag/javascriptcore/" class="st_tag internal_tag" rel="tag" title="Posts tagged with JavaScriptCore">JavaScriptCore</a>.framework from the Pacifist to the Finder (admin password will be asked, confirm file replacement as needed)</li>
<li>Restart your computer</li>
</ol>
]]></content:encoded>
			<wfw:commentRss>http://lifein0and1.com/2008/09/09/howto-fix-apples-webkit-and-javascriptcore-framework-error/feed/</wfw:commentRss>
		</item>
		<item>
		<title>SMTP Auth on Ubuntu with Postfix Problem</title>
		<link>http://lifein0and1.com/2008/09/09/smtp-auth-on-ubuntu-with-postfix-problem/</link>
		<comments>http://lifein0and1.com/2008/09/09/smtp-auth-on-ubuntu-with-postfix-problem/#comments</comments>
		<pubDate>Tue, 09 Sep 2008 23:57:50 +0000</pubDate>
		<dc:creator>Mr. IT Guy</dc:creator>
		
		<category><![CDATA[IT in General]]></category>

		<category><![CDATA[Linux]]></category>

		<category><![CDATA[email]]></category>

		<category><![CDATA[security]]></category>

		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://lifein0and1.com/?p=29</guid>
		<description><![CDATA[Problem: postfix/smtpd[12563]: warning: unknown[192.168.1.126]: SASL PLAIN authentication failed: authentication failure
Solution: Change the line that says

MECHANISMS=&#34;pam&#34;

 in /etc/default/saslauthd to

MECHANISMS=&#34;shadow&#34;

Problem: postfix/smtpd[16619]: warning: SASL authentication failure: Password verification failed
Solution: Change /etc/init.d/saslauthd line from

PIDFILE=$RUN_DIR/saslauthd.pid

 to

PIDFILE=&#34;/var/spool/postfix/var/run/${NAME}/saslauthd.pid&#34;

 and set ownership to group sasl then put ther user postfix in group sasl
]]></description>
			<content:encoded><![CDATA[<p><strong>Problem:</strong> postfix/smtpd[12563]: warning: unknown[192.168.1.126]: SASL PLAIN authentication failed: authentication failure<br />
<strong>Solution:</strong> Change the line that says</p>

<div class="wp_syntax"><div class="code"><pre class="bash bash" style="font-family:monospace;"><span style="color: #007800;">MECHANISMS</span>=<span style="color: #ff0000;">&quot;pam&quot;</span></pre></div></div>

<p> in /etc/default/saslauthd to</p>

<div class="wp_syntax"><div class="code"><pre class="bash bash" style="font-family:monospace;"><span style="color: #007800;">MECHANISMS</span>=<span style="color: #ff0000;">&quot;shadow&quot;</span></pre></div></div>

<p><strong>Problem:</strong> postfix/smtpd[16619]: warning: SASL authentication failure: Password verification failed<br />
<strong>Solution:</strong> Change /etc/init.d/saslauthd line from</p>

<div class="wp_syntax"><div class="code"><pre class="bash bash" style="font-family:monospace;"><span style="color: #007800;">PIDFILE</span>=<span style="color: #007800;">$RUN_DIR</span><span style="color: #000000; font-weight: bold;">/</span>saslauthd.pid</pre></div></div>

<p> to</p>

<div class="wp_syntax"><div class="code"><pre class="bash bash" style="font-family:monospace;"><span style="color: #007800;">PIDFILE</span>=<span style="color: #ff0000;">&quot;/var/spool/postfix/var/run/${NAME}/saslauthd.pid&quot;</span></pre></div></div>

<p> and set ownership to group sasl then put ther user postfix in group sasl</p>
]]></content:encoded>
			<wfw:commentRss>http://lifein0and1.com/2008/09/09/smtp-auth-on-ubuntu-with-postfix-problem/feed/</wfw:commentRss>
		</item>
		<item>
		<title>HOWTO: Fix Windows Vista - The trust relationship between this workstation and the primary domain failed</title>
		<link>http://lifein0and1.com/2008/09/09/howto-fix-windows-vista-the-trust-relationship-between-this-workstation-and-the-primary-domain-failed/</link>
		<comments>http://lifein0and1.com/2008/09/09/howto-fix-windows-vista-the-trust-relationship-between-this-workstation-and-the-primary-domain-failed/#comments</comments>
		<pubDate>Tue, 09 Sep 2008 22:02:25 +0000</pubDate>
		<dc:creator>Mr. IT Guy</dc:creator>
		
		<category><![CDATA[IT in General]]></category>

		<category><![CDATA[Microsoft]]></category>

		<category><![CDATA[Operating System]]></category>

		<category><![CDATA[domain]]></category>

		<category><![CDATA[Howto]]></category>

		<category><![CDATA[SYSTEM]]></category>

		<category><![CDATA[trust relationship]]></category>

		<category><![CDATA[Vista]]></category>

		<category><![CDATA[windows]]></category>

		<guid isPermaLink="false">http://lifein0and1.com/?p=47</guid>
		<description><![CDATA[For some unknown reason, one of my colleague gets this message everytime he&#8217;s trying to login: 
&#8220;The trust relationship between this workstation and the primary domain failed&#8221;
Instead of deleting his profile and recreating it as proposed by most people, I just try to rejoin it to the domain. It works! Step by Step instruction is [...]]]></description>
			<content:encoded><![CDATA[<p>For some unknown reason, one of my colleague gets this message everytime he&#8217;s trying to login: </p>
<blockquote><p>&#8220;The <a href="http://lifein0and1.com/tag/trust-relationship/" class="st_tag internal_tag" rel="tag" title="Posts tagged with trust relationship">trust relationship</a> between this workstation and the primary <a href="http://lifein0and1.com/tag/domain/" class="st_tag internal_tag" rel="tag" title="Posts tagged with domain">domain</a> failed&#8221;</p></blockquote>
<p>Instead of deleting his profile and recreating it as proposed by most people, I just try to rejoin it to the <a href="http://lifein0and1.com/tag/domain/" class="st_tag internal_tag" rel="tag" title="Posts tagged with domain">domain</a>. It works! Step by Step instruction is available after the jump. <span id="more-47"></span></p>
<p>I&#8217;m not very familiar with <a href="http://lifein0and1.com/tag/vista/" class="st_tag internal_tag" rel="tag" title="Posts tagged with Vista">Vista</a>&#8217;s layout, so it <em>may</em> be a little bit longer than what needs to be done. </p>
<ol>
<li>Click on the Start and right click on Computers</li>
<li>Go to Advance <a href="http://lifein0and1.com/tag/system/" class="st_tag internal_tag" rel="tag" title="Posts tagged with SYSTEM">System</a> Settings (on the bottom left)</li>
<li>Go to the Computer Name tab</li>
<li>Click on Network ID</li>
<li>Re-join to <a href="http://lifein0and1.com/tag/domain/" class="st_tag internal_tag" rel="tag" title="Posts tagged with domain">Domain</a> (it will ask you if you want to use the profile for the same computer and say yes)</li>
<li>Restart the computer</li>
</ol>
]]></content:encoded>
			<wfw:commentRss>http://lifein0and1.com/2008/09/09/howto-fix-windows-vista-the-trust-relationship-between-this-workstation-and-the-primary-domain-failed/feed/</wfw:commentRss>
		</item>
		<item>
		<title>HOWTO: Grab List of Installed Packages using dpkg</title>
		<link>http://lifein0and1.com/2008/07/23/howto-grab-list-of-installed-packages/</link>
		<comments>http://lifein0and1.com/2008/07/23/howto-grab-list-of-installed-packages/#comments</comments>
		<pubDate>Wed, 23 Jul 2008 17:25:30 +0000</pubDate>
		<dc:creator>Mr. IT Guy</dc:creator>
		
		<category><![CDATA[IT in General]]></category>

		<category><![CDATA[debian]]></category>

		<category><![CDATA[dpkg]]></category>

		<category><![CDATA[Howto]]></category>

		<category><![CDATA[Linux]]></category>

		<category><![CDATA[package]]></category>

		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://lifein0and1.com/?p=42</guid>
		<description><![CDATA[Grab the package by running:

dpkg --get-selections &#62; packages.installed

]]></description>
			<content:encoded><![CDATA[<p>Grab the <a href="http://lifein0and1.com/tag/package/" class="st_tag internal_tag" rel="tag" title="Posts tagged with package">package</a> by running:</p>

<div class="wp_syntax"><div class="code"><pre class="bash bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">dpkg</span> <span style="color: #660033;">--get-selections</span> <span style="color: #000000; font-weight: bold;">&gt;</span> packages.installed</pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://lifein0and1.com/2008/07/23/howto-grab-list-of-installed-packages/feed/</wfw:commentRss>
		</item>
		<item>
		<title>HOWTO: Log Apache to MySQL on Ubuntu 8.04 (Hardy Heron)</title>
		<link>http://lifein0and1.com/2008/07/03/log-apache-to-mysql-on-ubuntu-804-hardy-heron/</link>
		<comments>http://lifein0and1.com/2008/07/03/log-apache-to-mysql-on-ubuntu-804-hardy-heron/#comments</comments>
		<pubDate>Thu, 03 Jul 2008 18:12:42 +0000</pubDate>
		<dc:creator>Mr. IT Guy</dc:creator>
		
		<category><![CDATA[Howto]]></category>

		<category><![CDATA[Linux]]></category>

		<category><![CDATA[Operating System]]></category>

		<category><![CDATA[8.04]]></category>

		<category><![CDATA[database]]></category>

		<category><![CDATA[hardy heron]]></category>

		<category><![CDATA[SQL]]></category>

		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://lifein0and1.com/?p=40</guid>
		<description><![CDATA[Installing the Software
Run the following commands in terminal:

sudo apt-get update
sudo apt-get install libapache2-mod-log-sql-mysql libapache2-mod-log-sql libapache2-mod-log-sql-ssl

Create DB &#038; User
Run the following commands in MySQL:

CREATE DATABASE apachelogs;
GRANT INSERT,CREATE ON apachelogs.* 
  TO apachelogger@localhost 
  IDENTIFIED BY 'insert_passwd_here';
FLUSH PRIVILEGES;

Add Entry to apache2.conf
Add the following entry to apache2.conf before the VirtualHost settings (commonly before

Include /etc/apache2/sites-enabled/

):

LogSQLLoginInfo mysql://apachelogger:insert_passwd_here@localhost/apachelogs
LogSQLCreateTables on
LogSQLDBParam [...]]]></description>
			<content:encoded><![CDATA[<p><strong>Installing the Software</strong><br />
Run the following commands in terminal:</p>

<div class="wp_syntax"><div class="code"><pre class="bash bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">apt-get</span> update
<span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">apt-get</span> <span style="color: #c20cb9; font-weight: bold;">install</span> libapache2-mod-log-sql-mysql libapache2-mod-log-sql libapache2-mod-log-sql-ssl</pre></div></div>

<p><strong>Create DB &#038; User</strong><br />
Run the following commands in MySQL:</p>

<div class="wp_syntax"><div class="code"><pre class="sql sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">CREATE</span> <span style="color: #993333; font-weight: bold;">DATABASE</span> apachelogs;
<span style="color: #993333; font-weight: bold;">GRANT</span> <span style="color: #993333; font-weight: bold;">INSERT</span><span style="color: #66cc66;">,</span><span style="color: #993333; font-weight: bold;">CREATE</span> <span style="color: #993333; font-weight: bold;">ON</span> apachelogs<span style="color: #66cc66;">.*</span> 
  <span style="color: #993333; font-weight: bold;">TO</span> apachelogger@localhost 
  <span style="color: #993333; font-weight: bold;">IDENTIFIED</span> <span style="color: #993333; font-weight: bold;">BY</span> <span style="color: #ff0000;">'insert_passwd_here'</span>;
<span style="color: #993333; font-weight: bold;">FLUSH</span> PRIVILEGES;</pre></div></div>

<p><strong>Add Entry to apache2.conf</strong><br />
Add the following entry to apache2.conf before the VirtualHost settings (commonly before</p>

<div class="wp_syntax"><div class="code"><pre class="apache apache" style="font-family:monospace;"><span style="color: #00007f;">Include</span> /etc/apache2/sites-enabled/</pre></div></div>

<p>):</p>

<div class="wp_syntax"><div class="code"><pre class="apache apache" style="font-family:monospace;">LogSQLLoginInfo mysql://apachelogger:insert_passwd_here@localhost/apachelogs
LogSQLCreateTables <span style="color: #0000ff;">on</span>
LogSQLDBParam socketfile /var/run/mysqld/mysqld.sock
LogSQLTransferLogFormat AabfHhmRSsTUuvI</pre></div></div>

<p><strong>Modify Each Virtual Host</strong><br />
For each virtual host that you want to log to <a href="http://lifein0and1.com/tag/sql/" class="st_tag internal_tag" rel="tag" title="Posts tagged with SQL">SQL</a>, add the following line:</p>

<div class="wp_syntax"><div class="code"><pre class="apache apache" style="font-family:monospace;">LogSQLTransferLogTable this_site_com</pre></div></div>

<p> where access_log is replaced by any table name; to differentiate many different virtual host, you can use the name of each virtual host here by replacing each dot (&#8217;.') with underscore (&#8217;_')</p>
]]></content:encoded>
			<wfw:commentRss>http://lifein0and1.com/2008/07/03/log-apache-to-mysql-on-ubuntu-804-hardy-heron/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Forcing Windows to Change Priority &#038; Processor Affinity on Processes Ran by SYSTEM</title>
		<link>http://lifein0and1.com/2008/05/27/forcing-windows-to-change-priority-processor-affinity-on-processes-ran-by-system/</link>
		<comments>http://lifein0and1.com/2008/05/27/forcing-windows-to-change-priority-processor-affinity-on-processes-ran-by-system/#comments</comments>
		<pubDate>Tue, 27 May 2008 11:21:27 +0000</pubDate>
		<dc:creator>Mr. IT Guy</dc:creator>
		
		<category><![CDATA[Howto]]></category>

		<category><![CDATA[IT in General]]></category>

		<category><![CDATA[Microsoft]]></category>

		<category><![CDATA[Operating System]]></category>

		<category><![CDATA[affinity]]></category>

		<category><![CDATA[priority]]></category>

		<category><![CDATA[SYSTEM]]></category>

		<category><![CDATA[task manager]]></category>

		<category><![CDATA[taskmgr]]></category>

		<category><![CDATA[tools]]></category>

		<category><![CDATA[vmware]]></category>

		<category><![CDATA[windows]]></category>

		<guid isPermaLink="false">http://lifein0and1.com/?p=39</guid>
		<description><![CDATA[I encountered a problem when trying to change the process priority &#038; processor affinity for my VMWare. The problem is that this process is ran by SYSTEM instead of my username. In order to run &#8216;Task Manager&#8217; at elevated level, make sure all &#8216;Task Managers&#8217; are closed do the following:

Open a &#8216;Command Prompt&#8217; window by [...]]]></description>
			<content:encoded><![CDATA[<p>I encountered a problem when trying to change the process <a href="http://lifein0and1.com/tag/priority/" class="st_tag internal_tag" rel="tag" title="Posts tagged with priority">priority</a> &#038; processor <a href="http://lifein0and1.com/tag/affinity/" class="st_tag internal_tag" rel="tag" title="Posts tagged with affinity">affinity</a> for my <a href="http://lifein0and1.com/tag/vmware/" class="st_tag internal_tag" rel="tag" title="Posts tagged with vmware">VMWare</a>. The problem is that this process is ran by <a href="http://lifein0and1.com/tag/system/" class="st_tag internal_tag" rel="tag" title="Posts tagged with SYSTEM">SYSTEM</a> instead of my username. In order to run &#8216;<a href="http://lifein0and1.com/tag/task-manager/" class="st_tag internal_tag" rel="tag" title="Posts tagged with task manager">Task Manager</a>&#8217; at elevated level, make sure all &#8216;Task Managers&#8217; are closed do the following:</p>
<ol>
<li>Open a &#8216;Command Prompt&#8217; window by going to Start -> Run then type &#8216;cmd&#8217; then press enter</li>
<li>Type

<div class="wp_syntax"><div class="code"><pre class="winbatch winbatch" style="font-family:monospace;">ntsd <span style="color: #66cc66;">-</span>c qd taskmgr</pre></div></div>

<p> in the command prompt</li>
</ol>
<p>After that, a new &#8216;<a href="http://lifein0and1.com/tag/task-manager/" class="st_tag internal_tag" rel="tag" title="Posts tagged with task manager">Task Manager</a>&#8217; will popup and you should be able to modify the settings.</p>
]]></content:encoded>
			<wfw:commentRss>http://lifein0and1.com/2008/05/27/forcing-windows-to-change-priority-processor-affinity-on-processes-ran-by-system/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Fixed: DVD Video Only Runs at Fullscreen</title>
		<link>http://lifein0and1.com/2008/05/21/fixed-dvd-video-only-runs-at-fullscreen/</link>
		<comments>http://lifein0and1.com/2008/05/21/fixed-dvd-video-only-runs-at-fullscreen/#comments</comments>
		<pubDate>Thu, 22 May 2008 01:12:10 +0000</pubDate>
		<dc:creator>Mr. IT Guy</dc:creator>
		
		<category><![CDATA[Howto]]></category>

		<category><![CDATA[IT in General]]></category>

		<category><![CDATA[Linux]]></category>

		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://lifein0and1.com/?p=35</guid>
		<description><![CDATA[If you&#8217;re on Ubuntu 8.04 (Hardy Heron), the Multimedia Systems Selector is hidden. You will need to enable this first. 
Enabling Multimedia System Selector

Goto System -> Preferences -> Main Menu
Browse to System -> Preferences section
Check the box where it says &#8220;Multimedia System Selector&#8221;

Changing the Multimedia System Video Output

Goto System -> Preferences -> Multimedia System Selector
Goto [...]]]></description>
			<content:encoded><![CDATA[<p>If you&#8217;re on <a href="http://lifein0and1.com/tag/ubuntu/" class="st_tag internal_tag" rel="tag" title="Posts tagged with ubuntu">Ubuntu</a> <a href="http://lifein0and1.com/tag/804/" class="st_tag internal_tag" rel="tag" title="Posts tagged with 8.04">8.04</a> (<a href="http://lifein0and1.com/tag/hardy-heron/" class="st_tag internal_tag" rel="tag" title="Posts tagged with hardy heron">Hardy Heron</a>), the Multimedia Systems Selector is hidden. You will need to enable this first. </p>
<p><strong>Enabling Multimedia <a href="http://lifein0and1.com/tag/system/" class="st_tag internal_tag" rel="tag" title="Posts tagged with SYSTEM">System</a> Selector</strong></p>
<ol>
<li>Goto <a href="http://lifein0and1.com/tag/system/" class="st_tag internal_tag" rel="tag" title="Posts tagged with SYSTEM">System</a> -> Preferences -> Main Menu</li>
<li>Browse to <a href="http://lifein0and1.com/tag/system/" class="st_tag internal_tag" rel="tag" title="Posts tagged with SYSTEM">System</a> -> Preferences section</li>
<li>Check the box where it says &#8220;Multimedia <a href="http://lifein0and1.com/tag/system/" class="st_tag internal_tag" rel="tag" title="Posts tagged with SYSTEM">System</a> Selector&#8221;</li>
</ol>
<p><strong>Changing the Multimedia <a href="http://lifein0and1.com/tag/system/" class="st_tag internal_tag" rel="tag" title="Posts tagged with SYSTEM">System</a> Video Output</strong></p>
<ol>
<li>Goto <a href="http://lifein0and1.com/tag/system/" class="st_tag internal_tag" rel="tag" title="Posts tagged with SYSTEM">System</a> -> Preferences -> Multimedia <a href="http://lifein0and1.com/tag/system/" class="st_tag internal_tag" rel="tag" title="Posts tagged with SYSTEM">System</a> Selector</li>
<li>Goto Video Tab</li>
<li>Change the Default Output Plugin to &#8220;X Window <a href="http://lifein0and1.com/tag/system/" class="st_tag internal_tag" rel="tag" title="Posts tagged with SYSTEM">System</a> (No Xv)&#8221;</li>
<li>Click OK &#038; Restart Movie Player</li>
</ol>
<p><strong>Changing the VLC Setting</strong></p>
<ol>
<li>Goto Settings -> Preferences -> Video -> Output Modules</li>
<li>Check the box that says &#8220;Advanced options&#8221; at the lower right corner</li>
<li>Change the Video output module to &#8220;X11 video output&#8221;</li>
<li>Click Save</li>
</ol>
<p>UPDATE:<br />
<strong>Changing the Xine Setting</strong></p>
<ol>
<li>Right Click -> Settings -> Setup (or Alt+S)</li>
<li>Change &#8220;Configuration experience level&#8221; to &#8220;Expert&#8221;</li>
<li>Goto Video and change &#8220;Video driver to use&#8221; to &#8220;xshm&#8221;</li>
<li>Click Apply, Close then restart Xine</li>
</ol>
]]></content:encoded>
			<wfw:commentRss>http://lifein0and1.com/2008/05/21/fixed-dvd-video-only-runs-at-fullscreen/feed/</wfw:commentRss>
		</item>
		<item>
		<title>HOWTO: DVD Ripping in Ubuntu 8.04 (Hardy Heron)</title>
		<link>http://lifein0and1.com/2008/05/21/howto-dvd-ripping-in-ubuntu-804-hardy-heron/</link>
		<comments>http://lifein0and1.com/2008/05/21/howto-dvd-ripping-in-ubuntu-804-hardy-heron/#comments</comments>
		<pubDate>Wed, 21 May 2008 23:24:02 +0000</pubDate>
		<dc:creator>Mr. IT Guy</dc:creator>
		
		<category><![CDATA[Howto]]></category>

		<category><![CDATA[IT in General]]></category>

		<category><![CDATA[Linux]]></category>

		<category><![CDATA[Operating System]]></category>

		<category><![CDATA[8.04]]></category>

		<category><![CDATA[dvd]]></category>

		<category><![CDATA[hardy heron]]></category>

		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://lifein0and1.com/?p=38</guid>
		<description><![CDATA[This is completely illegal in the United States due to some copyright law. This site does not condone illegal activity; thus, if you’re in US, you’re on your own when you do the following.
Install the packages by running the command:

sudo apt-get install dvdrip subtitleripper ksubtitleripper gocr mplayer libdvdread3 debhelper fakeroot rar unrar libxine1 xine-ui

After the [...]]]></description>
			<content:encoded><![CDATA[<p>This is completely illegal in the United States due to some copyright law. This site does not condone illegal activity; thus, if you’re in US, you’re on your own when you do the following.</p>
<p>Install the packages by running the command:</p>

<div class="wp_syntax"><div class="code"><pre class="bash bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">apt-get</span> <span style="color: #c20cb9; font-weight: bold;">install</span> dvdrip subtitleripper ksubtitleripper <span style="color: #c20cb9; font-weight: bold;">gocr</span> <span style="color: #c20cb9; font-weight: bold;">mplayer</span> libdvdread3 debhelper fakeroot rar unrar libxine1 xine-ui</pre></div></div>

<p>After the <a href="http://lifein0and1.com/tag/package/" class="st_tag internal_tag" rel="tag" title="Posts tagged with package">package</a> is installed, run the following:</p>

<div class="wp_syntax"><div class="code"><pre class="bash bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>share<span style="color: #000000; font-weight: bold;">/</span>doc<span style="color: #000000; font-weight: bold;">/</span>libdvdread3<span style="color: #000000; font-weight: bold;">/</span>install-css.sh</pre></div></div>

<p><strong>NOTE:</strong> You don&#8217;t have to do this second part if you have already followed my previous guide on enabling <a href="http://lifein0and1.com/tag/dvd/" class="st_tag internal_tag" rel="tag" title="Posts tagged with dvd">DVD</a> playback on <a href="http://lifein0and1.com/tag/ubuntu/" class="st_tag internal_tag" rel="tag" title="Posts tagged with ubuntu">Ubuntu</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://lifein0and1.com/2008/05/21/howto-dvd-ripping-in-ubuntu-804-hardy-heron/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Fixed: Problems Installing VMWare Tools in Ubuntu 8.04 (Hardy Heron) Server as Guest in VMWare Server</title>
		<link>http://lifein0and1.com/2008/05/16/fixed-problems-vmware-tools-in-ubuntu-hardy-heron-server-as-guest/</link>
		<comments>http://lifein0and1.com/2008/05/16/fixed-problems-vmware-tools-in-ubuntu-hardy-heron-server-as-guest/#comments</comments>
		<pubDate>Fri, 16 May 2008 09:10:29 +0000</pubDate>
		<dc:creator>Mr. IT Guy</dc:creator>
		
		<category><![CDATA[IT in General]]></category>

		<category><![CDATA[8.04]]></category>

		<category><![CDATA[hardy heron]]></category>

		<category><![CDATA[Linux]]></category>

		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://lifein0and1.com/?p=36</guid>
		<description><![CDATA[I tried to install Ubuntu 8.04 (Hardy Heron) Server edition as a guest system in my VMWare Server and got into a problem installing the vmware tools. I mostly follow the instructions given here with some changes with regards to the lack of GUI (X11).

Install the Basic Build Tools



sudo apt-get install build-essential linux-headers-`uname -r`




sudo apt-get [...]]]></description>
			<content:encoded><![CDATA[<p>I tried to install <a href="http://lifein0and1.com/tag/ubuntu/" class="st_tag internal_tag" rel="tag" title="Posts tagged with ubuntu">Ubuntu</a> <a href="http://lifein0and1.com/tag/804/" class="st_tag internal_tag" rel="tag" title="Posts tagged with 8.04">8.04</a> (<a href="http://lifein0and1.com/tag/hardy-heron/" class="st_tag internal_tag" rel="tag" title="Posts tagged with hardy heron">Hardy Heron</a>) Server edition as a guest <a href="http://lifein0and1.com/tag/system/" class="st_tag internal_tag" rel="tag" title="Posts tagged with SYSTEM">system</a> in my <a href="http://lifein0and1.com/tag/vmware/" class="st_tag internal_tag" rel="tag" title="Posts tagged with vmware">VMWare</a> Server and got into a problem installing the <a href="http://lifein0and1.com/tag/vmware/" class="st_tag internal_tag" rel="tag" title="Posts tagged with vmware">vmware</a> <a href="http://lifein0and1.com/tag/tools/" class="st_tag internal_tag" rel="tag" title="Posts tagged with tools">tools</a>. I mostly follow the instructions given <a href="http://peterc.org/2008/62-how-to-install-vmware-tools-on-ubuntu-hardy-804-under-vmware-fusion.html">here</a> with some changes with regards to the lack of GUI (X11).<br />
<span id="more-36"></span><br />
<strong>Install the Basic Build <a href="http://lifein0and1.com/tag/tools/" class="st_tag internal_tag" rel="tag" title="Posts tagged with tools">Tools</a></strong></p>
<ol>
<li>

<div class="wp_syntax"><div class="code"><pre class="bash bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">apt-get</span> <span style="color: #c20cb9; font-weight: bold;">install</span> build-essential linux-headers-<span style="color: #000000; font-weight: bold;">`</span><span style="color: #c20cb9; font-weight: bold;">uname</span> -r<span style="color: #000000; font-weight: bold;">`</span></pre></div></div>

</li>
<li>

<div class="wp_syntax"><div class="code"><pre class="bash bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">apt-get</span> <span style="color: #c20cb9; font-weight: bold;">install</span> libproc-dev libdumbnet-dev</pre></div></div>

</li>
</ol>
<p><strong>Download Open VM <a href="http://lifein0and1.com/tag/tools/" class="st_tag internal_tag" rel="tag" title="Posts tagged with tools">tools</a> and Copy the <a href="http://lifein0and1.com/tag/vmware/" class="st_tag internal_tag" rel="tag" title="Posts tagged with vmware">VMWare</a> <a href="http://lifein0and1.com/tag/tools/" class="st_tag internal_tag" rel="tag" title="Posts tagged with tools">Tools</a></strong></p>
<ol>
<li>Click on Install <a href="http://lifein0and1.com/tag/vmware/" class="st_tag internal_tag" rel="tag" title="Posts tagged with vmware">VMWare</a> <a href="http://lifein0and1.com/tag/tools/" class="st_tag internal_tag" rel="tag" title="Posts tagged with tools">Tools</a></li>
<li>Force mount the <a href="http://lifein0and1.com/tag/tools/" class="st_tag internal_tag" rel="tag" title="Posts tagged with tools">tools</a> virtual CDROM by running

<div class="wp_syntax"><div class="code"><pre class="bash bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">mount</span> <span style="color: #000000; font-weight: bold;">/</span>dev<span style="color: #000000; font-weight: bold;">/</span>cdrom</pre></div></div>

</li>
<li>Make a folder in home directory and run as root using

<div class="wp_syntax"><div class="code"><pre class="bash bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #660033;">-s</span></pre></div></div>

</li>
<li>Assuming you created the folder &#8216;~/vmtools&#8217;</li>
<li>

<div class="wp_syntax"><div class="code"><pre class="bash bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">cd</span> ~<span style="color: #000000; font-weight: bold;">/</span>vmtools</pre></div></div>

</li>
<li>

<div class="wp_syntax"><div class="code"><pre class="bash bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">cp</span> <span style="color: #000000; font-weight: bold;">/</span>cdrom<span style="color: #000000; font-weight: bold;">/</span>VMwareTools-1.0.5-80187.tar.gz .</pre></div></div>

</li>
<li>

<div class="wp_syntax"><div class="code"><pre class="bash bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">wget</span> http:<span style="color: #000000; font-weight: bold;">//</span>mesh.dl.sourceforge.net<span style="color: #000000; font-weight: bold;">/</span>sourceforge<span style="color: #000000; font-weight: bold;">/</span>\
open-vm-tools<span style="color: #000000; font-weight: bold;">/</span>open-vm-tools-2008.04.14-87182.tar.gz</pre></div></div>

</li>
<li>

<div class="wp_syntax"><div class="code"><pre class="bash bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">tar</span> <span style="color: #660033;">-xzvf</span> open-vm-tools-2008.04.14-87182.tar.gz</pre></div></div>

</li>
<li>

<div class="wp_syntax"><div class="code"><pre class="bash bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">tar</span> <span style="color: #660033;">-xzvf</span> VMwareTools-1.0.5-80187.tar.gz</pre></div></div>

</li>
<li>

<div class="wp_syntax"><div class="code"><pre class="bash bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">cd</span> open-vm-tools-2008.04.14-<span style="color: #000000;">87182</span><span style="color: #000000; font-weight: bold;">/</span></pre></div></div>

</li>
<li>

<div class="wp_syntax"><div class="code"><pre class="bash bash" style="font-family:monospace;">.<span style="color: #000000; font-weight: bold;">/</span>configure <span style="color: #660033;">--without-x</span> <span style="color: #000000; font-weight: bold;">&amp;&amp;</span> <span style="color: #c20cb9; font-weight: bold;">make</span></pre></div></div>

</li>
<li>

<div class="wp_syntax"><div class="code"><pre class="bash bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">cd</span> modules<span style="color: #000000; font-weight: bold;">/</span>linux</pre></div></div>

</li>
<li>

<div class="wp_syntax"><div class="code"><pre class="bash bash" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">for</span> i <span style="color: #000000; font-weight: bold;">in</span> <span style="color: #000000; font-weight: bold;">*</span>; <span style="color: #000000; font-weight: bold;">do</span> <span style="color: #c20cb9; font-weight: bold;">mv</span> <span style="color: #800000;">${i}</span> <span style="color: #800000;">${i}</span>-only; <span style="color: #c20cb9; font-weight: bold;">tar</span> <span style="color: #660033;">-cf</span> <span style="color: #800000;">${i}</span>.tar <span style="color: #800000;">${i}</span>-only; <span style="color: #000000; font-weight: bold;">done</span></pre></div></div>

</li>
<li>

<div class="wp_syntax"><div class="code"><pre class="bash bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">cd</span> ..<span style="color: #000000; font-weight: bold;">/</span>..<span style="color: #000000; font-weight: bold;">/</span>..</pre></div></div>

</li>
<li>

<div class="wp_syntax"><div class="code"><pre class="bash bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">mv</span> <span style="color: #660033;">-f</span> open-vm-tools-2008.04.14-<span style="color: #000000;">87182</span><span style="color: #000000; font-weight: bold;">/</span>modules<span style="color: #000000; font-weight: bold;">/</span>linux<span style="color: #000000; font-weight: bold;">/*</span>.tar vmware-tools-distrib<span style="color: #000000; font-weight: bold;">/</span>lib<span style="color: #000000; font-weight: bold;">/</span>modules<span style="color: #000000; font-weight: bold;">/</span><span style="color: #7a0874; font-weight: bold;">source</span><span style="color: #000000; font-weight: bold;">/</span></pre></div></div>

</li>
<li>

<div class="wp_syntax"><div class="code"><pre class="bash bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">cd</span> vmware-tools-distrib<span style="color: #000000; font-weight: bold;">/</span></pre></div></div>

</li>
<li>

<div class="wp_syntax"><div class="code"><pre class="bash bash" style="font-family:monospace;">.<span style="color: #000000; font-weight: bold;">/</span>vmware-install.pl</pre></div></div>

<p>(If you didn&#8217;t run as root, you need to add sudo in front of the command)</li>
</ol>
<p><strong>Restart</strong><br />
Issue the command</p>

<div class="wp_syntax"><div class="code"><pre class="bash bash" style="font-family:monospace;">init <span style="color: #000000;">6</span></pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://lifein0and1.com/2008/05/16/fixed-problems-vmware-tools-in-ubuntu-hardy-heron-server-as-guest/feed/</wfw:commentRss>
		</item>
	</channel>
</rss>
