<?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>Linux New Jersey</title>
	<atom:link href="http://linuxnj.com/feed" rel="self" type="application/rss+xml" />
	<link>http://linuxnj.com</link>
	<description>Faber's place for Open Source Consulting since 1998</description>
	<pubDate>Fri, 05 Sep 2008 14:50:54 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.5</generator>
	<language>en</language>
			<item>
		<title>More Samba fun OR &#8220;unable to find suitable server&#8221;</title>
		<link>http://linuxnj.com/system-administration/more-samba-fun-or-unable-to-find-suitable-server</link>
		<comments>http://linuxnj.com/system-administration/more-samba-fun-or-unable-to-find-suitable-server#comments</comments>
		<pubDate>Fri, 05 Sep 2008 14:50:54 +0000</pubDate>
		<dc:creator>faber</dc:creator>
		
		<category><![CDATA[Linux administration]]></category>

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

		<category><![CDATA[system administration]]></category>

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

		<category><![CDATA[net rpc]]></category>

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

		<guid isPermaLink="false">http://linuxnj.com/?p=37</guid>
		<description><![CDATA[For anyone following the saga, I&#8217;ve been trying to do a migration NT4 (yes, NT 4) to Samba running LDAP as a backend.  I&#8217;ve done migrations in the past and they have not been this painful.  Here&#8217;s the latest goodie:
As part of the migration, you ned to get the SID from the NT 4 PDC. [...]]]></description>
			<content:encoded><![CDATA[<p>For anyone following the saga, I&#8217;ve been trying to do a migration NT4 (yes, NT <em>4</em>) to Samba running LDAP as a backend.  I&#8217;ve done migrations in the past and they have not been this painful.  Here&#8217;s the latest goodie:</p>
<p>As part of the migration, you ned to get the SID from the NT 4 PDC. And as every piece of documentation that I&#8217;ve come across says, you do that with the following command:</p>
<p><code>net rpc getsid -S DOMAINNAME -U Administrator%password</code></p>
<p>and you should see something like this:</p>
<p><code>Storing SID S-1-5-21-123456789-123456789-123456789 for Domain DOMAINNAME in secrets.tdb</code></p>
<p>That&#8217;s what ALL the books and web pages and everything else I&#8217;ve come across said to do. I could swear it was working on Monday but Tuesday afternoon when I ran the code I got this: </p>
<p><code>Unable to find a suitable server</code>.</p>
<p>After fighting with this since Tuesday afternoon (it&#8217;s now Friday morning), digging out my old NT books, firing up <a href="http://www.wireshark.org/" onclick="javascript:pageTracker._trackPageview('/outbound/article/www.wireshark.org');">Wireshark</a> and digging into NetBIOS calls,  I have finally found the solution, dear friends, and I am here to tell you what that solution is so you don&#8217;t waste several days with this problem.</p>
<p>And that solution?  What is it, you ask?  </p>
<p>Give the command the IP Address of the PDC. IOW,</p>
<p><code>net rpc getsid -S DOMAINNAME -I 192.168.1.88 -U Administrator%password</code></p>
<p>Why do none of the docs say this?</p>
<p>Back to the migration&#8230;</p>

<!-- start wp-tags-to-technorati 0.9 -->

<p class='technorati-tags'>Technorati Tags: <a class='technorati-link' href='http://technorati.com/tag/migration' rel='tag' target='_blank'>migration</a>, <a class='technorati-link' href='http://technorati.com/tag/net+rpc' rel='tag' target='_blank'>net rpc</a>, <a class='technorati-link' href='http://technorati.com/tag/NT' rel='tag' target='_blank'>NT</a></p>

<!-- end wp-tags-to-technorati -->
]]></content:encoded>
			<wfw:commentRss>http://linuxnj.com/system-administration/more-samba-fun-or-unable-to-find-suitable-server/feed</wfw:commentRss>
		</item>
		<item>
		<title>Problems with Samba and vampiring an NT 4 DC</title>
		<link>http://linuxnj.com/system-administration/problems-with-samba-and-vamiring-an-nt-4-dc</link>
		<comments>http://linuxnj.com/system-administration/problems-with-samba-and-vamiring-an-nt-4-dc#comments</comments>
		<pubDate>Tue, 02 Sep 2008 22:16:10 +0000</pubDate>
		<dc:creator>faber</dc:creator>
		
		<category><![CDATA[Linux administration]]></category>

		<category><![CDATA[system administration]]></category>

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

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

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

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

		<guid isPermaLink="false">http://linuxnj.com/?p=36</guid>
		<description><![CDATA[I&#8217;m trying to migrate an NT 4 Enterprise Edition PDC to a Samba  3.0.23 BDC running on Suse 10.2.  According to everything I read, this should be easy, but it&#8217;s not working.
If I do
net rpc vampire -S WINNT -W MYDOMAIN -U Administrator
I get
[2008/09/02 17:59:07, 0] rpc_client/cli_pipe.c:cli_rpc_pipe_open_schannel(2673)
cli_rpc_pipe_open_schannel: failed to get schannel session key from [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;m trying to migrate an NT 4 Enterprise Edition PDC to a Samba  3.0.23 BDC running on Suse 10.2.  According to everything I read, this should be easy, but it&#8217;s not working.</p>
<p>If I do<br />
<code>net rpc vampire -S WINNT -W MYDOMAIN -U Administrator</code></p>
<p>I get<br />
<code>[2008/09/02 17:59:07, 0] rpc_client/cli_pipe.c:cli_rpc_pipe_open_schannel(2673)<br />
cli_rpc_pipe_open_schannel: failed to get schannel session key from server WINNT for domain MYDOMAIN.</code></p>
<p>[2008/09/02 17:59:07, 0] utils/net_rpc.c:run_rpc_command(151)<br />
Could not initialise schannel netlogon pipe. Error was NT_STATUS_INVALID_NETWORK_RESPONSE</p>
<p>If I set <code>server schannel = no</code> and <code>client schannel = no</code>, I get</p>
<p><code>Fetching DOMAIN database<br />
Failed to fetch domain database: NT_STATUS_INVALID_COMPUTER_NAME</code></p>
<p>And The Goog is of no help. <img src='http://linuxnj.com/wp-includes/images/smilies/icon_sad.gif' alt=':-(' class='wp-smiley' /> </p>
<p>I guess the next thing to try is a reinstall?</p>

<!-- start wp-tags-to-technorati 0.9 -->

<p class='technorati-tags'>Technorati Tags: <a class='technorati-link' href='http://technorati.com/tag/migration' rel='tag' target='_blank'>migration</a>, <a class='technorati-link' href='http://technorati.com/tag/NT' rel='tag' target='_blank'>NT</a>, <a class='technorati-link' href='http://technorati.com/tag/samba' rel='tag' target='_blank'>samba</a>, <a class='technorati-link' href='http://technorati.com/tag/vampire' rel='tag' target='_blank'>vampire</a></p>

<!-- end wp-tags-to-technorati -->
]]></content:encoded>
			<wfw:commentRss>http://linuxnj.com/system-administration/problems-with-samba-and-vamiring-an-nt-4-dc/feed</wfw:commentRss>
		</item>
		<item>
		<title>Solved:Mutt’s not seeing new emails!</title>
		<link>http://linuxnj.com/system-administration/solvedmutt%e2%80%99s-not-seeing-new-emails</link>
		<comments>http://linuxnj.com/system-administration/solvedmutt%e2%80%99s-not-seeing-new-emails#comments</comments>
		<pubDate>Fri, 08 Aug 2008 02:41:49 +0000</pubDate>
		<dc:creator>faber</dc:creator>
		
		<category><![CDATA[Linux administration]]></category>

		<category><![CDATA[system administration]]></category>

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

		<category><![CDATA[new emails]]></category>

		<guid isPermaLink="false">http://linuxnj.com/?p=34</guid>
		<description><![CDATA[How I fixed mutt to read new emails]]></description>
			<content:encoded><![CDATA[<p>For the past couple of weeks, mutt hasn&#8217;t been seeing any new emails coming in.  I have the regular setup: fetchmail handing off the emails to procmail and in my .muttrc I have several <code>mailboxes</code> configured.</p>
<p>After sending myself numerous emails and watching the [acm]times with the <code>stat</code> command, I found the problem: <a href="http://desktop.google.com/linux/" onclick="javascript:pageTracker._trackPageview('/outbound/article/desktop.google.com');">Google Desktop</a>!</p>
<p>Google Desktop was indexing my mailboxes as soon as they were being written to thereby changing the mtime and atime which is how mutt determines whether new email is waiting.</p>
<p>Solution: either turn off Google Desktop (a rather severe solution, if you ask me) or, better yet, tell GD to <em>not</em> index your mailboxes folder via the Preferences.</p>
<p>BTW, I&#8217;m under the impression that if you use maildir format, you won&#8217;t have this problem (I use mbox format).  I&#8217;ve yet to test this theory.</p>

<!-- start wp-tags-to-technorati 0.9 -->

<p class='technorati-tags'>Technorati Tags: <a class='technorati-link' href='http://technorati.com/tag/mutt' rel='tag' target='_blank'>mutt</a>, <a class='technorati-link' href='http://technorati.com/tag/new+emails' rel='tag' target='_blank'>new emails</a></p>

<!-- end wp-tags-to-technorati -->
]]></content:encoded>
			<wfw:commentRss>http://linuxnj.com/system-administration/solvedmutt%e2%80%99s-not-seeing-new-emails/feed</wfw:commentRss>
		</item>
		<item>
		<title>Troubleshooting a hard drive crash, part deux</title>
		<link>http://linuxnj.com/system-administration/troubleshooting-a-hard-drive-crash-part-deux</link>
		<comments>http://linuxnj.com/system-administration/troubleshooting-a-hard-drive-crash-part-deux#comments</comments>
		<pubDate>Tue, 29 Jul 2008 14:57:42 +0000</pubDate>
		<dc:creator>faber</dc:creator>
		
		<category><![CDATA[Linux administration]]></category>

		<category><![CDATA[system administration]]></category>

		<category><![CDATA[data recovery]]></category>

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

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

		<category><![CDATA[hard drive crash]]></category>

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

		<guid isPermaLink="false">http://linuxnj.com/?p=32</guid>
		<description><![CDATA[In an earlier post,  I gave you the the data needed to diagnose a hard drive failure and several symptoms of the failure.  In this post, we&#8217;ll go over my observations and fixes.
First problem
I mentioned that partitions 6 and 7 were complaining of errors.  Naturally, the way to fix these is to [...]]]></description>
			<content:encoded><![CDATA[<p>In <a href="http://linuxnj.com/system-administration/data-recovery-using-knoppix" >an earlier post</a>,  I gave you the the data needed to diagnose a hard drive failure and several symptoms of the failure.  In this post, we&#8217;ll go over my observations and fixes.</p>
<p><strong>First problem</strong></p>
<p>I mentioned that partitions 6 and 7 were complaining of errors.  Naturally, the way to fix these is to run a file system check on the partitions.  The relevant <code>fstab</code> entries tell us that the partitions have ext2 file systems on them, so running <code>fsck</code> is called for.</p>
<p>Oh, but wait, we don&#8217;t have the root password.   No problem, we boot into <a href="http://www.knoppix.com/" onclick="javascript:pageTracker._trackPageview('/outbound/article/www.knoppix.com');">KNOPPIX</a> and run <code>fsck</code> from there.</p>
<p>But what partitions do you run <code>fsck</code> <em>on</em>?  Note that <code>fdisk -l</code> reports the partitions on /dev/sdb but <code>fstab</code> reports partitions on /dev/sda!  They can&#8217;t both be right, can they?</p>
<p>Yes, they can.  While we only have one hard drive, which I verified by actually opening up the machine (remember, ALWAYS check your assumptions!), we have two different operating systems, each of which does things slightly differently. My guess is KNOPPIX saw the RAID controller as /dev/sda and the hard drive as /dev/sdb whereas the original operating system, Mandrake 10.1, was using the RAID drivers and saw the drive as sda.  So I knew it was safe to run <code>fsck</code>.</p>
<p><strong>Second problem</strong></p>
<p>This problem is trickier.  According to <code>fdisk -l</code>, we have a FAT file system smaller than 32 M, but the client tells us he has 45 GB of data stored on this partition.  So what gives?</p>
<p>Look <em>very</em> closely at the output of <code>fdisk</code>.  You&#8217;ll notice three things:</p>
<ol>
<li>partition 8 is only one block long,</li>
<li>there is no partition 9, and,</li>
<li>there is a three block gap between the end of partition 7 and the beginning of partition 8</li>
</ol>
<p>Item one tells you the partition table is corrupt; it doesn&#8217;t make any sense to have a partition that&#8217;s one block long.</p>
<p>Item two <em>may</em> indicate that someone removed the partition but forgot to take it out of <code>fstab</code> and while that would cause major problems on booting, it wouldn&#8217;t stop us from booting.  Besides, the clients didn&#8217;t have the technical know-how to do that.</p>
<p>Item three, while technically is allowed (meaning there&#8217;s nothing stopping you from doing it), it&#8217;s just a Bad Thing.</p>
<p>So, how to fix it?  If we knew how big partition 8 or 9 was, we could calculate how big the other partition was, but we don&#8217;t have that info.  We know from <code>fstab</code> that partition 9 was the /tmp directory and since the /tmp directory doesn&#8217;t <em>have to be</em> on a separate partition (although it is Good Practice), we can ignore it.  So I made an executive decision and reset partition 8 to be the rest of the drive.</p>
<p><strong>Now we have a new problem</strong></p>
<p>With the new partition 8 now spanning the old 8 and 9 partitions, we are going to have problems with the filesystem on the new partition, namely, the superblock is corrupt and the files from the old partition 9 won&#8217;t &#8220;fit&#8221; into the new filesystem. Since old partition 9 was originally mounted on /tmp, I don&#8217;t care what happens to that data, so we&#8217;re left with the superblocks problem.</p>
<p>Running <code>fsck</code> complained that no superblock could be found.  The canned response to that is &#8220;use a backup superblock&#8221;. The trick is to find one.  The easiest way is to use the <code>testdisk</code> utility that is part of KNOPPIX.  <code>testdisk</code> found backup superblocks at 32768, 98304, and 163840.  So running <code>fsck -b 32768 -B 4096</code> fixed the filesystem!</p>
<p>N.B.: Notice that the first superblock was found at the 32768/4096 - 1 = 7th backup position.  It looked like the backup superblocks at positions 1, 3, and 5 were corrupted (yes, we&#8217;re using spares superblocks).  Fortunately, I decided to use <code>testdrive</code> instead of trying each backup superblock in turn until I found one.</p>
<p>At this point, I rebooted the machine and&#8230;</p>
<p><strong>It boots!</strong></p>
<p>Well, sorta&#8217;.  The system complained that <code>/var/run</code> didn&#8217;t exist.  I have no idea why it didn&#8217;t exist, but it was easy enough to fix.  Reboot and the system came up, except for  <a href="http://www.webmin.com" onclick="javascript:pageTracker._trackPageview('/outbound/article/www.webmin.com');">Webmin</a>.  After checking the proper directories and config files which, naturally, had not changed, I did a <code>strace -f -o strace.out /sbin/service webmin start</code> to discover that webmin couldn&#8217;t write to <code>/var/run/webmin</code>.  Another easy fix and a reboot.</p>
<p>Finally, the system booted and was running normally!</p>

<!-- start wp-tags-to-technorati 0.9 -->

<p class='technorati-tags'>Technorati Tags: <a class='technorati-link' href='http://technorati.com/tag/data+recovery' rel='tag' target='_blank'>data recovery</a>, <a class='technorati-link' href='http://technorati.com/tag/fdisk' rel='tag' target='_blank'>fdisk</a>, <a class='technorati-link' href='http://technorati.com/tag/fstab' rel='tag' target='_blank'>fstab</a>, <a class='technorati-link' href='http://technorati.com/tag/hard+drive+crash' rel='tag' target='_blank'>hard drive crash</a>, <a class='technorati-link' href='http://technorati.com/tag/Knoppix' rel='tag' target='_blank'>Knoppix</a></p>

<!-- end wp-tags-to-technorati -->
]]></content:encoded>
			<wfw:commentRss>http://linuxnj.com/system-administration/troubleshooting-a-hard-drive-crash-part-deux/feed</wfw:commentRss>
		</item>
		<item>
		<title>Troubleshooting a hard drive crash</title>
		<link>http://linuxnj.com/system-administration/data-recovery-using-knoppix</link>
		<comments>http://linuxnj.com/system-administration/data-recovery-using-knoppix#comments</comments>
		<pubDate>Tue, 29 Jul 2008 01:58:30 +0000</pubDate>
		<dc:creator>faber</dc:creator>
		
		<category><![CDATA[Linux administration]]></category>

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

		<category><![CDATA[system administration]]></category>

		<category><![CDATA[data recovery]]></category>

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

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

		<category><![CDATA[hard drive crash]]></category>

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

		<category><![CDATA[lost files]]></category>

		<guid isPermaLink="false">http://linuxnj.com/?p=31</guid>
		<description><![CDATA[I got a call today from a new client, M.  Four years or so ago, M&#8217;s company bought a Linux-based file server from a local company that is now defunct.  Some time ago, the mirrored drive went bad and the system kept running as Linux systems are wont to do.  Unfortunately, the [...]]]></description>
			<content:encoded><![CDATA[<p>I got a call today from a new client, M.  Four years or so ago, M&#8217;s company bought a Linux-based file server from a local company that is now defunct.  Some time ago, the mirrored drive went bad and the system kept running as Linux systems are wont to do.  Unfortunately, the now-defunct company didn&#8217;t set up the machine for the standard practice of emailing periodic announcements of hardware status. </p>
<p>Sometime last week, the last drive died.  M did the usual things to bring it back, but eventually took it to a <a href="http://www.datarecoverynj.com" target="_blank" onclick="javascript:pageTracker._trackPageview('/outbound/article/www.datarecoverynj.com');">data recovery company</a> that was able to clone the drive.  When M got the drive back to the office and put it in the machine, he got errors about &#8220;no superblock found on /dev/sda8&#8243;.  He called me first thing this morning.</p>
<p>I won&#8217;t go into all of the gory details about diagnosing the problem; I&#8217;ll just give you the meat of the problem: when the system booted, the following were found:</p>
<ul>
<li>partitions sda6 and sda7 had errors</li>
<li>partitions sda8 and sda9 complained of no superblock</li>
<li>booting into Knoppix and running fdisk showed the following (block count omitted):</li>
<pre>Device    Boot      Start         End       System
/dev/sdb1   *           1         318       Linux
/dev/sdb2             319       19929       Linux
/dev/sdb5             319         445       W95 Ext'd (LBA)
/dev/sdb6             446        1719       Linux
/dev/sdb7            1720        3631       Linux
/dev/sdb8            3634        3635       FAT 16 &lt; 32M</pre>
<li> and /mnt/sdb1/etc/fstab showed the following:
<pre>/dev/sda1        /
/dev/sda8        /home
/dev/sda9        /tmp
/dev/sda6        /usr
/dev/sda7        /var
/dev/sda5        swap</pre>
</li>
<li> despite copious documentation, no one knew the root password. </li>
</ul>
<p>From this data, you should be able to figure out what is wrong with the system.</p>
<p>Can you tell me how to fix it? <img src='http://linuxnj.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' />  I&#8217;ll tell you how I fixed it in a later post.</p>

<!-- start wp-tags-to-technorati 0.9 -->

<p class='technorati-tags'>Technorati Tags: <a class='technorati-link' href='http://technorati.com/tag/data+recovery' rel='tag' target='_blank'>data recovery</a>, <a class='technorati-link' href='http://technorati.com/tag/fdisk' rel='tag' target='_blank'>fdisk</a>, <a class='technorati-link' href='http://technorati.com/tag/fstab' rel='tag' target='_blank'>fstab</a>, <a class='technorati-link' href='http://technorati.com/tag/hard+drive+crash' rel='tag' target='_blank'>hard drive crash</a>, <a class='technorati-link' href='http://technorati.com/tag/Knoppix' rel='tag' target='_blank'>Knoppix</a>, <a class='technorati-link' href='http://technorati.com/tag/lost+files' rel='tag' target='_blank'>lost files</a></p>

<!-- end wp-tags-to-technorati -->
]]></content:encoded>
			<wfw:commentRss>http://linuxnj.com/system-administration/data-recovery-using-knoppix/feed</wfw:commentRss>
		</item>
		<item>
		<title>My Android Application Is Alive!!!!</title>
		<link>http://linuxnj.com/system-integration/its-alive</link>
		<comments>http://linuxnj.com/system-integration/its-alive#comments</comments>
		<pubDate>Sun, 06 Jul 2008 14:05:38 +0000</pubDate>
		<dc:creator>faber</dc:creator>
		
		<category><![CDATA[hacking]]></category>

		<category><![CDATA[system integration]]></category>

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

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

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

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

		<guid isPermaLink="false">http://linuxnj.com/?p=29</guid>
		<description><![CDATA[I&#8217;ve got my first Android application written!  It&#8217;s a lame little todo list, but it&#8217;s MY lame little todo list!  And the best part is, I was able to backport it to userspace version mc3 and my lame little app is running on the Nokia n810!
Yes!  It&#8217;s ALIVE!!!!!!!!!!!!!!
Now to get maps and [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve got my first Android application written!  It&#8217;s a lame little todo list, but it&#8217;s MY lame little todo list! <img src='http://linuxnj.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> And the best part is, I was able to backport it to userspace version mc3 and my lame little app is running on the Nokia n810!</p>
<p>Yes!  It&#8217;s ALIVE!!!!!!!!!!!!!!</p>
<p>Now to get maps and GPS working&#8230;</p>

<!-- start wp-tags-to-technorati 0.9 -->

<p class='technorati-tags'>Technorati Tags: <a class='technorati-link' href='http://technorati.com/tag/android' rel='tag' target='_blank'>android</a>, <a class='technorati-link' href='http://technorati.com/tag/Eclipse' rel='tag' target='_blank'>Eclipse</a>, <a class='technorati-link' href='http://technorati.com/tag/n810' rel='tag' target='_blank'>n810</a>, <a class='technorati-link' href='http://technorati.com/tag/nokia' rel='tag' target='_blank'>nokia</a></p>

<!-- end wp-tags-to-technorati -->
]]></content:encoded>
			<wfw:commentRss>http://linuxnj.com/system-integration/its-alive/feed</wfw:commentRss>
		</item>
		<item>
		<title>Hacking Android fun</title>
		<link>http://linuxnj.com/computer-programming/hacking-android-fun</link>
		<comments>http://linuxnj.com/computer-programming/hacking-android-fun#comments</comments>
		<pubDate>Sat, 05 Jul 2008 13:34:58 +0000</pubDate>
		<dc:creator>faber</dc:creator>
		
		<category><![CDATA[computer programming]]></category>

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

		<category><![CDATA[system integration]]></category>

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

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

		<guid isPermaLink="false">http://linuxnj.com/?p=28</guid>
		<description><![CDATA[This holiday weekend, I&#8217;m spending my time just hacking Google&#8217;s Android.  I&#8217;m writing a location-based todo list (yes, a unique idea, I know). The purpose of the exercise is to learn how to write Android code in Eclipse.
So far, it is a fun experience.  I&#8217;m only one day into a three-day personal hackathon [...]]]></description>
			<content:encoded><![CDATA[<p>This holiday weekend, I&#8217;m spending my time just hacking <a href="http://www.eclipse.org/" onclick="javascript:pageTracker._trackPageview('/outbound/article/www.eclipse.org');">Google&#8217;s Android</a>.  I&#8217;m writing a location-based todo list (yes, <a href="http://en.wikipedia.org/wiki/Getting_Things_Done" onclick="javascript:pageTracker._trackPageview('/outbound/article/en.wikipedia.org');">a unique idea</a>, I know). The purpose of the exercise is to learn how to write Android code in Eclipse.</p>
<p>So far, it is a fun experience.  I&#8217;m only one day into a three-day personal hackathon but I&#8217;ve got something working already.  I need to add a little more database code, write the GPS stuff and then put it on the n810.  I&#8217;ll let you know how much progress I make today.</p>
<p>One thing I&#8217;ve noticed though: Although <a href="http://www.eclipse.org/" onclick="javascript:pageTracker._trackPageview('/outbound/article/www.eclipse.org');">Eclipse is a pretty cool IDE</a> and Android seems like a good framework, I can&#8217;t help feeling like I&#8217;ve done this before. The design patterns are defintely the same ones I used 25 years ago.  Sure, the IDE was Turbo C and the framework wasn&#8217;t object-oriented but it still feels the same.</p>
<p>And since a car analogy is always an appropriate metaphor for a technical topic, I&#8217;ll repharse the above to ask &#8220;Why does it feel like I&#8217;m driving an &#8216;85 Camaro with spinning LED rims?&#8221;</p>
<p>Anyway, back to the hack&#8230;</p>

<!-- start wp-tags-to-technorati 0.9 -->

<p class='technorati-tags'>Technorati Tags: <a class='technorati-link' href='http://technorati.com/tag/android' rel='tag' target='_blank'>android</a>, <a class='technorati-link' href='http://technorati.com/tag/computer+programming' rel='tag' target='_blank'>computer programming</a>, <a class='technorati-link' href='http://technorati.com/tag/Eclipse' rel='tag' target='_blank'>Eclipse</a></p>

<!-- end wp-tags-to-technorati -->
]]></content:encoded>
			<wfw:commentRss>http://linuxnj.com/computer-programming/hacking-android-fun/feed</wfw:commentRss>
		</item>
		<item>
		<title>symfony and Open Flash Charts</title>
		<link>http://linuxnj.com/computer-programming/symfony-and-mwopenflashcharts</link>
		<comments>http://linuxnj.com/computer-programming/symfony-and-mwopenflashcharts#comments</comments>
		<pubDate>Sat, 28 Jun 2008 14:38:05 +0000</pubDate>
		<dc:creator>faber</dc:creator>
		
		<category><![CDATA[computer programming]]></category>

		<category><![CDATA[good programming practices]]></category>

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

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

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

		<category><![CDATA[Open Flash Charts]]></category>

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

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

		<guid isPermaLink="false">http://linuxnj.com/?p=22</guid>
		<description><![CDATA[I&#8217;ve been playing with symfony for a project I&#8217;m working on called Intelligence Exchange.  So far, it&#8217;s been pretty cool, even if the learning curve is a bit steep.
As a sub-project, I want to write a cool-looking dashboard to monitor database activity.  After looking around a while, I stumbled upon OpenFlashCharts.  It [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve been playing with <a href="http://www.symfony-project.org/" onclick="javascript:pageTracker._trackPageview('/outbound/article/www.symfony-project.org');">symfony</a> for a project I&#8217;m working on called <a href="https://intelligence-tools.com/exchange/" onclick="javascript:pageTracker._trackPageview('/outbound/article/intelligence-tools.com');">Intelligence Exchange</a>.  So far, it&#8217;s been pretty cool, even if the learning curve is a bit steep.</p>
<p>As a sub-project, I want to write a cool-looking dashboard to monitor database activity.  After looking around a while, I stumbled upon <a href="http://teethgrinder.co.uk/open-flash-chart/" onclick="javascript:pageTracker._trackPageview('/outbound/article/teethgrinder.co.uk');">OpenFlashCharts</a>.  It looks good, it&#8217;s free and, best of all, it&#8217;s Free. I&#8217;m really looking forward to digging through its code RSN since I&#8217;ve been wanting to learn Flash. There&#8217;s even a <a href="http://trac.symfony-project.com/wiki/mwOpenFlashChartPlugin" onclick="javascript:pageTracker._trackPageview('/outbound/article/trac.symfony-project.com');">symfony plugin</a> for OpenFlashCharts!  What more could one ask for?</p>
<p>Better frakkin&#8217; documentation, that&#8217;s what!  On the plugin download page, the example they give doesn&#8217;t work (on a properly configured system anyway).</p>
<p>If you look at the example given, the code snippet at the bottom of the page for the view template is this:</p>
<p><code><br />
&lt;? use_helper("OpenFlashChart"); ?><br />
...<br />
...<br />
...<br />
&lt;?= open_flash_chart( 300, 300, 'example/chartData'); ?><br />
</code></p>
<p>Well, on my Macbook running php5, that <code>&lt;?=</code> thingie does nothing. Why?  Because &#8220;short open tags&#8221; (SOT), as they are known, are A Bad Thing and no one should be using them in this day and age.  Hell, the general consensus <strong>back in the year 2000</strong> was not to use them! Why they&#8217;re still being allowed eight years later is another bitch I&#8217;ve got with the designers of PHP!</p>
<p>The above isn&#8217;t quite true.  Even with the short open tags, the code was *still being executed*.  My system is configured NOT to use the SOT.  To me, &lt;sarcasm>and I may be a bit naive here &lt;/sarcasm>, if something is configured not to work, I expect it <em>not to work!</em> but I was able to sprinkle <code>echo</code> commands throughout the Helper code and see the results!  IOW, the code was still being executed!  WTF?!</p>
<p>To make the above example work, change the above line to read like this:</p>
<p><code><br />
&lt;?php echo open_flash_chart( 300, 300, 'example/chartData'); ?><br />
</code></p>
<p><strong>now</strong> the example pie chart shows up!</p>

<!-- start wp-tags-to-technorati 0.9 -->

<p class='technorati-tags'>Technorati Tags: <a class='technorati-link' href='http://technorati.com/tag/charting' rel='tag' target='_blank'>charting</a>, <a class='technorati-link' href='http://technorati.com/tag/charts' rel='tag' target='_blank'>charts</a>, <a class='technorati-link' href='http://technorati.com/tag/flash' rel='tag' target='_blank'>flash</a>, <a class='technorati-link' href='http://technorati.com/tag/Open+Flash+Charts' rel='tag' target='_blank'>Open Flash Charts</a>, <a class='technorati-link' href='http://technorati.com/tag/OpenFlashCharts' rel='tag' target='_blank'>OpenFlashCharts</a>, <a class='technorati-link' href='http://technorati.com/tag/symfony' rel='tag' target='_blank'>symfony</a></p>

<!-- end wp-tags-to-technorati -->
]]></content:encoded>
			<wfw:commentRss>http://linuxnj.com/computer-programming/symfony-and-mwopenflashcharts/feed</wfw:commentRss>
		</item>
		<item>
		<title>More Android Fun with the Nokia n810</title>
		<link>http://linuxnj.com/hacking/more-android-fun-with-the-nokia-n810</link>
		<comments>http://linuxnj.com/hacking/more-android-fun-with-the-nokia-n810#comments</comments>
		<pubDate>Tue, 24 Jun 2008 02:25:10 +0000</pubDate>
		<dc:creator>faber</dc:creator>
		
		<category><![CDATA[hacking]]></category>

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

		<category><![CDATA[nokia 810]]></category>

		<guid isPermaLink="false">http://linuxnj.com/?p=25</guid>
		<description><![CDATA[Well, I got the touchscreen working, thanks to the android_touchscreen_neov2.diff patch.
This tutorial  is pretty good for getting Android running on the 810.  If you go with the &#8220;Doing it the hard way (from source)&#8221; method, you&#8217;ll find there are a three problems with it:

I forget what the first problem is.  
The second [...]]]></description>
			<content:encoded><![CDATA[<p>Well, I got the touchscreen working, thanks to the <a href="http://code.google.com/p/android-on-n8xx/downloads/list" target="_blank" onclick="javascript:pageTracker._trackPageview('/outbound/article/code.google.com');">android_touchscreen_neov2.diff</a> patch.</p>
<p><a href="http://www.alextreme.org/drupal//?q=android_on_n810" target="_blank" onclick="javascript:pageTracker._trackPageview('/outbound/article/www.alextreme.org');">This tutorial </a> is pretty good for getting Android running on the 810.  If you go with the &#8220;Doing it the hard way (from source)&#8221; method, you&#8217;ll find there are a three problems with it:</p>
<ol>
<li>I forget what the first problem is. <img src='http://linuxnj.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </li>
<li>The second problem is in the step 7 &#8220;Download (and build!) busybox&#8221;.  After you do &#8216;make menuconfig&#8217; you need to configure busybox to create a <em>statically linked</em> binary.  The default configuration (using shared libraries) <strong>does not work</strong>. To make a statically linked binary, go to &#8220;Busybox Settings&#8221; -&gt; &#8220;Build Options&#8221; and select &#8220;Build BusyBox as a static binary (no shared libs)&#8221;.  If you don&#8217;t do this, you will get the error &#8220;not found&#8221; when you try to tar the system files in step 11.</li>
<li>There&#8217;s something flaky wrt the file system directions.  Following his steps caused the cylon eye to repeat forever.  Using his &#8220;binary&#8221; in the first section worked perfectly.  I&#8217;ll let you know when I track the down the problem (unless <em>I</em> am the problem, of course :-).</li>
</ol>
<p>One thing I noticed is I have Wifi capabilities in Android when there aren&#8217;t supposed to be any Wifi drivers since the existing ones are proprietary.  A colleague of mine noticed the same thing, but he got Wifi only after properly configuring OS2008 before booting into Android.</p>
<p>So, I&#8217;m beginning to wonder: is Android an OS and an application stack, or &#8220;just&#8221; an application stack?  I&#8217;ve got to do some more research on this but probably not this week;  I&#8217;ve got paying clients that need attending to.</p>
<p>So, until then, as the <a href="http://www.bitchinkitchen.tv/" target="_blank" onclick="javascript:pageTracker._trackPageview('/outbound/article/www.bitchinkitchen.tv');">captivating Nadia G.</a> used to say&#8230;</p>
<p>Alla prossima!</p>

<!-- start wp-tags-to-technorati 0.9 -->

<p class='technorati-tags'>Technorati Tags: <a class='technorati-link' href='http://technorati.com/tag/android' rel='tag' target='_blank'>android</a>, <a class='technorati-link' href='http://technorati.com/tag/nokia+810' rel='tag' target='_blank'>nokia 810</a></p>

<!-- end wp-tags-to-technorati -->
]]></content:encoded>
			<wfw:commentRss>http://linuxnj.com/hacking/more-android-fun-with-the-nokia-n810/feed</wfw:commentRss>
		</item>
		<item>
		<title>Hacking the Android</title>
		<link>http://linuxnj.com/computer-programming/hacking-the-android</link>
		<comments>http://linuxnj.com/computer-programming/hacking-the-android#comments</comments>
		<pubDate>Mon, 23 Jun 2008 14:30:38 +0000</pubDate>
		<dc:creator>faber</dc:creator>
		
		<category><![CDATA[computer programming]]></category>

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

		<category><![CDATA[system integration]]></category>

		<category><![CDATA[kernel compiling]]></category>

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

		<guid isPermaLink="false">http://linuxnj.com/?p=24</guid>
		<description><![CDATA[Well, I finally got to play with Google&#8217;s Android this weekend.  I &#8220;installed&#8221; a version of it on a Nokia n810.  I say &#8220;installed&#8221; because the procedure was simply (?!) flashing a new kernel and running a script from the micro-SD card. I&#8217;ve got to look into the code some more, build a [...]]]></description>
			<content:encoded><![CDATA[<p>Well, I finally got to play with Google&#8217;s <a href="http://code.google.com/android/" onclick="javascript:pageTracker._trackPageview('/outbound/article/code.google.com');">Android</a> this weekend.  I &#8220;installed&#8221; a version of it on a <a href="http://en.wikipedia.org/wiki/Nokia_N810" onclick="javascript:pageTracker._trackPageview('/outbound/article/en.wikipedia.org');">Nokia n810</a>.  I say &#8220;installed&#8221; because the procedure was simply (?!) flashing a new kernel and running a script from the micro-SD card. I&#8217;ve got to look into the code some more, build a custom kernel, boot into init, and all that Good Stuff.  Then I have to read up on the SDK and start hacking away.</p>
<p>The Nokia n810 is a nice little machine.  My only complaint is the default font size in the browser is too small.  Imagine taking all of the content you see in your browser window on your desktop and then shrinking it down to a screen that fits easily in your palm.  Yeah, it&#8217;s a little hard to read.</p>
<p>The whole process took me back to Ye Olde Days of Linux (ca. 1995) when compiling kernels was <em>de riguer</em>, and you had to search all over the place for patches, and the instructions weren&#8217;t always <em>quite</em> right.  </p>
<p>It looks like I may be playing with this alot more in the near future!  Keep your fingers crossed!</p>

<!-- start wp-tags-to-technorati 0.9 -->

<p class='technorati-tags'>Technorati Tags: <a class='technorati-link' href='http://technorati.com/tag/kernel+compiling' rel='tag' target='_blank'>kernel compiling</a>, <a class='technorati-link' href='http://technorati.com/tag/nokia' rel='tag' target='_blank'>nokia</a></p>

<!-- end wp-tags-to-technorati -->
]]></content:encoded>
			<wfw:commentRss>http://linuxnj.com/computer-programming/hacking-the-android/feed</wfw:commentRss>
		</item>
	</channel>
</rss>
