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

<channel>
	<title>nick poore</title>
	<atom:link href="http://www.npoore.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.npoore.com</link>
	<description>Notes of a Software Engineer</description>
	<lastBuildDate>Tue, 28 Apr 2009 02:32:28 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Forget your WebSphere password</title>
		<link>http://www.npoore.com/2009/04/27/forget-your-websphere-password/</link>
		<comments>http://www.npoore.com/2009/04/27/forget-your-websphere-password/#comments</comments>
		<pubDate>Tue, 28 Apr 2009 02:32:28 +0000</pubDate>
		<dc:creator>npoore</dc:creator>
				<category><![CDATA[IBM]]></category>
		<category><![CDATA[Web development]]></category>
		<category><![CDATA[password]]></category>
		<category><![CDATA[WebSphere]]></category>

		<guid isPermaLink="false">http://www.npoore.com/?p=53</guid>
		<description><![CDATA[Call it hacking if you want but here is an example where it may be useful when it comes to WebSphere.  WebSphere uses a XOR-encrypted password system that isn&#8217;t really meant for rock hard security but more for not storing plain text passwords in configuration files.  In my average workday I could easily be using [...]]]></description>
			<content:encoded><![CDATA[<p>Call it hacking if you want but here is an example where it may be useful when it comes to WebSphere.  WebSphere uses a XOR-encrypted password system that isn&#8217;t really meant for rock hard security but more for not storing plain text passwords in configuration files.  In my average workday I could easily be using 5 different WebSphere servers for test/development in 4 different hosting environments.  So to decrypt the XOR-encrypted password use these commands.</p>
<p><strong>WebSphere 5.x</strong><br />
&gt; cd $WAS_INSTALL_DIR/lib<br />
&gt; ../java/bin/java -cp securityimpl.jar:iwsorb.jar com.ibm.ws.security.util.PasswordDecoder {xor}LDo8LTor<br />
decoded password == &#8220;secret&#8221;, encoded password == &#8220;{xor}LDo8LTor&#8221;</p>
<p><strong>WebSphere 6.0.x  (this also works with 6.1.x)</strong></p>
<p>&gt; cd $WAS_INSTALL_DIR/lib<br />
&gt; ../java/bin/java -cp securityimpl.jar:iwsorb.jar::ras.jar:wsexception.jar:bootstrap.jar:emf.jar:ffdc.jar com.ibm.ws.security.util.PasswordEncoder {xor}LDo8LTor<br />
decoded password == &#8220;secret&#8221;, encoded password == &#8220;{xor}LDo8LTor&#8221;</p>
<p>Here are some other WebSphere 6.1.x commands I found but haven&#8217;t tested.</p>
<p>C:\IBM\WAS61\AppServer\bin\ProfileManagement\plugins\com.ibm.websphere.v61_6.1.200&gt;C:\IBM\WAS61\AppServer\java\bin\java -cp ws_runtime.jar com.ibm.ws.security.util.PasswordDecoder {xor}LDo8LTor<br />
encoded password == &#8220;{xor}LDo8LTor&#8221;, decoded password == &#8220;secret&#8221;</p>
<p>To encrypt</p>
<p><strong>WebSphere 5.x</strong></p>
<p>&gt; cd $WAS_INSTALL_DIR/lib<br />
&gt; ../java/bin/java -cp securityimpl.jar:iwsorb.jar com.ibm.ws.security.util.PasswordEncoder secret<br />
decoded password == &#8220;secret&#8221;, encoded password == &#8220;{xor}LDo8LTor&#8221;</p>
<p><strong>WebSphere 6.0.x</strong></p>
<p>&gt; cd $WAS_INSTALL_DIR/lib<br />
&gt; ../java/bin/java -cp securityimpl.jar:iwsorb.jar::ras.jar:wsexception.jar:bootstrap.jar:emf.jar:ffdc.jar com.ibm.ws.security.util.PasswordEncoder secret<br />
decoded password == &#8220;secret&#8221;, encoded password == &#8220;{xor}LDo8LTor&#8221;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.npoore.com/2009/04/27/forget-your-websphere-password/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Fixing your usb drive</title>
		<link>http://www.npoore.com/2009/04/02/fixing-your-usb-drive/</link>
		<comments>http://www.npoore.com/2009/04/02/fixing-your-usb-drive/#comments</comments>
		<pubDate>Fri, 03 Apr 2009 02:47:18 +0000</pubDate>
		<dc:creator>npoore</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[usb]]></category>

		<guid isPermaLink="false">http://www.npoore.com/?p=45</guid>
		<description><![CDATA[I have updated my Apple TV by using the patchstick on my usb flash drive.  Now I need to use my usb drive to do a linux boot so I can do a network install of RedHat AS 4.  I plugged in my usb drive to a SUSE 9 box I have and checked to [...]]]></description>
			<content:encoded><![CDATA[<p>I have updated my <a href="http://www.apple.com/appletv/">Apple TV</a> by using the <a href="http://code.google.com/p/atvusb-creator/">patchstick</a> on my usb flash drive.  Now I need to use my usb drive to do a linux boot so I can do a network install of RedHat AS 4.  I plugged in my usb drive to a SUSE 9 box I have and checked to see if it could see the device connected.</p>
<p>mikey:~ # view /proc/bus/usb/devices</p>
<p>T:  Bus=04 Lev=01 Prnt=01 Port=02 Cnt=01 Dev#=  2 Spd=480 MxCh= 0<br />
D:  Ver= 2.00 Cls=00(&gt;ifc ) Sub=00 Prot=00 MxPS=64 #Cfgs=  1<br />
P:  Vendor=14af ProdID=af01 Rev=11.00<br />
S:  Manufacturer=SAMSUNG<br />
S:  Product=SAMSUNG SUM-2G<br />
S:  SerialNumber=0190107060001334<br />
C:* #Ifs= 1 Cfg#= 1 Atr=80 MxPwr=100mA<br />
I:  If#= 0 Alt= 0 #EPs= 2 Cls=08(stor.) Sub=06 Prot=50 Driver=usb-storage<br />
E:  Ad=81(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms<br />
E:  Ad=02(O) Atr=02(Bulk) MxPS= 512 Ivl=31875us</p>
<p>My machine sees the device but if I try and mount it.</p>
<p>mikey:~ # mkdir /mnt/usb<br />
mikey:~ # mount -t vfat /dev/sda1 /mnt/usb/<br />
mount: /dev/sda1 is not a valid block device</p>
<p>Now lets see what fdisk says.</p>
<p>mikey:~ # fdisk -l</p>
<p>Disk /dev/hda: 80.0 GB, 80032038912 bytes<br />
255 heads, 63 sectors/track, 9730 cylinders<br />
Units = cylinders of 16065 * 512 = 8225280 bytes</p>
<p>Device Boot      Start         End      Blocks   Id  System<br />
/dev/hda1               1         131     1052226   82  Linux swap<br />
/dev/hda2             132        9729    77095935   83  Linux</p>
<p>Disk /dev/sda: 2030 MB, 2030043136 bytes<br />
255 heads, 63 sectors/track, 246 cylinders<br />
Units = cylinders of 16065 * 512 = 8225280 bytes</p>
<p>Device Boot      Start         End      Blocks   Id  System<br />
/dev/sda1               1         247     1982463+  ee  EFI GPT<br />
<strong>Partition 1 has different physical/logical beginnings (non-Linux?):</strong><br />
phys=(1023, 254, 63) logical=(0, 0, 2)<br />
Partition 1 has different physical/logical endings:<br />
phys=(1023, 254, 63) logical=(246, 205, 23)<br />
The problem is the first (non-Linux?) physical partition.  To fix it I need to delete the partitions and recreate them.  Now I know my device isn&#8217;t mounted but just to make sure.</p>
<p>mikey:~ # umount /dev/sda1<br />
umount: /dev/sda1: not mounted</p>
<p>mikey:~ # fdisk /dev/sda</p>
<p>Command (m for help): d<br />
Selected partition 1</p>
<p>Command (m for help): n<br />
Command action<br />
e   extended<br />
p   primary partition (1-4)<br />
p<br />
Partition number (1-4): 1<br />
First cylinder (1-246, default 1): 1<br />
Last cylinder or +size or +sizeM or +sizeK (1-246, default 246): +750M</p>
<p>Command (m for help): a<br />
Partition number (1-4): 1</p>
<p>Command (m for help): t<br />
Selected partition 1<br />
Hex code (type L to list codes): 6<br />
Changed system type of partition 1 to 6 (FAT16)</p>
<p>Command (m for help): n<br />
Command action<br />
e   extended<br />
p   primary partition (1-4)<br />
p<br />
Partition number (1-4): 2<br />
First cylinder (93-246, default 93):<br />
Using default value 93<br />
Last cylinder or +size or +sizeM or +sizeK (93-246, default 246):<br />
Using default value 246</p>
<p>Command (m for help): w<br />
The partition table has been altered!</p>
<p>Calling ioctl() to re-read partition table.</p>
<p>WARNING: If you have created or modified any DOS 6.x<br />
partitions, please see the fdisk manual page for additional<br />
information.<br />
Syncing disks.<br />
mikey:~ # mkfs.vfat -F 16 -n rhboot /dev/sda1<br />
mkfs.vfat 2.10 (22 Sep 2003)</p>
<p>mikey:~ # mkfs.ext2 -b 4096 -L casper -rw /dev/sdb2<br />
mke2fs 1.38 (30-Jun-2005)<br />
Filesystem label=casper<br />
OS type: Linux<br />
Block size=4096 (log=2)<br />
Fragment size=4096 (log=2)<br />
154880 inodes, 309251 blocks<br />
15462 blocks (5.00%) reserved for the super user<br />
First data block=0<br />
10 block groups<br />
32768 blocks per group, 32768 fragments per group<br />
15488 inodes per group<br />
Superblock backups stored on blocks:<br />
32768, 65536, 98304, 131072, 163840, 196608, 229376, 262144, 294912</p>
<p>Writing inode tables: done<br />
Writing superblocks and filesystem accounting information: done</p>
<p>This filesystem will be automatically checked every 32 mounts or<br />
180 days, whichever comes first.  Use tune2fs -c or -i to override.</p>
<p>mikey:~ # mount /dev/sda1 /mnt/usb/</p>
<p>mikey:~ # dd if=/root/diskboot.img of=/dev/sda1<br />
12288+0 records in<br />
12288+0 records out</p>
<p>mikey:~ # fdisk /dev/sda</p>
<p>Command (m for help): p</p>
<p>Disk /dev/sda: 2030 MB, 2030043136 bytes<br />
255 heads, 63 sectors/track, 246 cylinders<br />
Units = cylinders of 16065 * 512 = 8225280 bytes</p>
<p>Device Boot      Start         End      Blocks   Id  System<br />
/dev/sda1   *           1          92      738958+   6  FAT16<br />
/dev/sda2              93         246     1237005   83  Linux</p>
<p>Now windows and Linux can read/write to my flash drive.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.npoore.com/2009/04/02/fixing-your-usb-drive/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Some frameworks to check out</title>
		<link>http://www.npoore.com/2009/03/16/some-frameworks-to-check-out/</link>
		<comments>http://www.npoore.com/2009/03/16/some-frameworks-to-check-out/#comments</comments>
		<pubDate>Mon, 16 Mar 2009 19:46:40 +0000</pubDate>
		<dc:creator>npoore</dc:creator>
				<category><![CDATA[Web development]]></category>
		<category><![CDATA[django]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[python]]></category>
		<category><![CDATA[zend]]></category>

		<guid isPermaLink="false">http://www.npoore.com/?p=37</guid>
		<description><![CDATA[I have been playing around with a couple of different frameworks lately.  One is PHP based and one is Python based.  Zend Framework makes it easy to quickly develop PHP applications.  It supports many common needs for common applications, authentication, DB connection, URL management, access control lists, and many 3rd party apps.  Django  is a [...]]]></description>
			<content:encoded><![CDATA[<p>I have been playing around with a couple of different frameworks lately.  One is <a href="http://php.net/">PHP</a> based and one is <a href="http://www.python.org/">Python</a> based.  <a href="http://framework.zend.com/">Zend</a> Framework makes it easy to quickly develop PHP applications.  It supports many common needs for common applications, authentication, DB connection, URL management, access control lists, and many 3rd party apps.  <a href="http://www.djangoproject.com/">Django</a>  is a high-level Python framework that helps with rapid and clean web application development.  </p>
<p>Here is a good example of Django being used. </p>
<ul>
<li><a href="http://code.google.com/p/google-app-engine-django/">google-app-engine-django</a><a href="http://code.google.com/p/google-app-engine-django/"><br />
</a></li>
<li><a href="http://code.google.com/p/jaikuengine/">jaikuengine</a></li>
</ul>
<p>I haven&#8217;t had much time to mess with Django yet but hope to get to soon.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.npoore.com/2009/03/16/some-frameworks-to-check-out/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>SDK for your car</title>
		<link>http://www.npoore.com/2009/03/13/sdk-for-your-car/</link>
		<comments>http://www.npoore.com/2009/03/13/sdk-for-your-car/#comments</comments>
		<pubDate>Fri, 13 Mar 2009 13:42:55 +0000</pubDate>
		<dc:creator>npoore</dc:creator>
				<category><![CDATA[bmw]]></category>
		<category><![CDATA[navigation]]></category>
		<category><![CDATA[sdk]]></category>

		<guid isPermaLink="false">http://www.npoore.com/?p=13</guid>
		<description><![CDATA[I want a SDK for my car.  My car has a dual screen display in the dash that splits between 2 functions I want to see. (GPS, radio, cellphone, and settings).   I typically keep it split on GPS and radio.  I want ways to interface to the cars computer with some other external device [...]]]></description>
			<content:encoded><![CDATA[<p>I want a SDK for my car.  My car has a dual screen display in the dash that splits between 2 functions I want to see. (GPS, radio, cellphone, and settings).   I typically keep it split on GPS and radio.  I want ways to interface to the cars computer with some other external device most likely through bluetooth.  Examples might be address book in my cellphone to the car addressbook for the GPS or down loading car data to be saved like the trip computer on my phone.  That way when I email the bmw service guy he knows what the problems are with my car or he knows when a scheduled maintenance is coming up.  Most important I would like my iPod to play video on one of the screens. </p>
<p>Someone out there hacking the BMW iDrive systems?  I have seen some small things on forums like changing the boot logo.</p>
<p><a href="http://www.x5world.com/navigation-system/11539-editing-splash-screen-v26-09a-beta-14.html">http://www.x5world.com/navigation-system/11539-editing-splash-screen-v26-09a-beta-14.html</a></p>
<p><img class="alignnone size-full wp-image-35" title="BMW Splash Screen" src="http://www.npoore.com/wp-content/uploads/2009/03/img_2556.jpg" alt="BMW Splash Screen" width="568" height="426" /></p>
]]></content:encoded>
			<wfw:commentRss>http://www.npoore.com/2009/03/13/sdk-for-your-car/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Boxee on my Apple TV</title>
		<link>http://www.npoore.com/2009/01/25/boxee-on-my-apple-tv/</link>
		<comments>http://www.npoore.com/2009/01/25/boxee-on-my-apple-tv/#comments</comments>
		<pubDate>Sun, 25 Jan 2009 15:50:34 +0000</pubDate>
		<dc:creator>npoore</dc:creator>
				<category><![CDATA[Apple]]></category>
		<category><![CDATA[Boxee]]></category>
		<category><![CDATA[2.3]]></category>
		<category><![CDATA[appletv]]></category>
		<category><![CDATA[patchstick]]></category>

		<guid isPermaLink="false">http://www.npoore.com/?p=22</guid>
		<description><![CDATA[I finally decided to try out Boxee on my Apple TV and I will have to say I am very pleased.  What is nice is how easy it was to get it installed.  I didn&#8217;t have to take apart my Apple TV to get the software on there I just had to load the software [...]]]></description>
			<content:encoded><![CDATA[<p>I finally decided to try out <a href="http://boxee.tv" target="_blank">Boxee</a> on my <a href="http://store.apple.com/us/browse/home/shop_ipod/family/apple_tv" target="_blank">Apple TV</a> and I will have to say I am very pleased.  What is nice is how easy it was to get it installed.  I didn&#8217;t have to take apart my Apple TV to get the software on there I just had to load the software with the <a href="http://code.google.com/p/atvusb-creator/" target="_blank">patchstick</a> then restart.</p>
<p>First thing I did updated my Apple TV to the latest update which was 2.3.  Then I created the patchstick on my 2gb Samsung flash drive (I picked that up when I was in Korea last year).  I did find a forum of a list of flash drives to use or not use.  They say you should use better quality flash drives.  I am not really sure why I guess maybe because the Apple TV boots off of the flash drive and the i/o reads need to have fast response times?  Regardless many folks in the forum said that they were able to get the patchstick to work on the usb drives that were on the fail list so not sure what to really believe.  Regardless mine worked fine.</p>
<p>Here is a video that shows you how to create a patchstick.</p>
<p><object width="480" height="295" data="http://blip.tv/play/AdbLfI3_dQ" type="application/x-shockwave-flash"><param name="src" value="http://blip.tv/play/AdbLfI3_dQ" /><param name="allowfullscreen" value="true" /></object></p>
<p>I used atvusb-creator-1.0.b10 to create my patchstick.  After that was complete I followed the instructions from this video to get it on my Apple TV.</p>
<p><object width="520" height="414" data="http://blip.tv/play/AdGwbI3_dQ" type="application/x-shockwave-flash"><param name="src" value="http://blip.tv/play/AdGwbI3_dQ" /><param name="allowfullscreen" value="true" /></object></p>
<p>So after I let my Apple TV boot off of my patchstick then restarted I went and installed the latest code from Boxee.   The one thing that wasn&#8217;t mentioned in the last video was that if you are running on Apple TV 2.3 you need to install the Launcher 2.3 software.  You will see that on the same screen when you go and install Boxee.  After I did that it all worked just fine.  There are the usual bugs were if you try and quit Boxee my Apple TV might freeze or something so I just restarted it.  Usual problems you might see during an alpha software base.  Hulu streams seemed a little choppy but CBS stream was great.  I haven&#8217;t had a chance to try anything else yet.  ABC streams are on the Mac OSX version of Boxee and will be on the Apple TV version soon.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.npoore.com/2009/01/25/boxee-on-my-apple-tv/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Problem with Rational Application Developer and ClearCase Plugin</title>
		<link>http://www.npoore.com/2009/01/18/problem-with-rational-application-developer-and-clearcase-plugin/</link>
		<comments>http://www.npoore.com/2009/01/18/problem-with-rational-application-developer-and-clearcase-plugin/#comments</comments>
		<pubDate>Mon, 19 Jan 2009 00:23:19 +0000</pubDate>
		<dc:creator>npoore</dc:creator>
				<category><![CDATA[IBM]]></category>
		<category><![CDATA[ClearCase]]></category>
		<category><![CDATA[java]]></category>
		<category><![CDATA[RAD]]></category>
		<category><![CDATA[Rational]]></category>

		<guid isPermaLink="false">http://www.npoore.com/?p=3</guid>
		<description><![CDATA[The Problem: Java project will not compile in Rational Application Developer due to a Internal error &#8211; the selected file is a system file that cannot be modified.  It will be hidden.
All software has bugs in it but some can drive you crazy and create extra frustration and lose more of your valuable time.  After [...]]]></description>
			<content:encoded><![CDATA[<p><strong>The Problem:</strong> Java project will not compile in Rational Application Developer due to a Internal error &#8211; the selected file is a system file that cannot be modified.  It will be hidden.</p>
<p>All software has bugs in it but some can drive you crazy and create extra frustration and lose more of your valuable time.  After moving all my source code into a new project in RAD I imported all my projects and added them to ClearCase.   Next I tried to compile them getting a 3 similar errors.  (Note:  First lesson read the error carefully.  Often while rushing through something to get it complete I don&#8217;t read the full error which would save me time.)  Anyway when trying to compile I kept on getting this error.</p>
<p><strong>The project was not built due to &#8220;Internal error &#8211; the selected file is a system file that cannot be modified. It will be hidden.&#8221;. Fix the problem, then try refreshing this project and building it since it may be inconsistent.</strong></p>
<p>After about 30 mins of frustration and almost ready to shutdown for the night I found a little file in the directory where the java class files were suppose to be named <em>copyarea.db</em> which was put there by ClearCase.  ClearCase makes this file ReadOnly thus not allowing RAD to delete it when it tries to compile my java code.</p>
<p><strong>The Fix</strong>: Simple delete the file and refresh the project.</p>
<p><strong>The Reason This Happened:</strong> I am not 100% certain but when I dumped all my code into the new project in RAD, ClearCase wanted to add all the code to the source repository so I let it the problem was it selected all the files which included the compiled class files.  Since I didn&#8217;t want or need those files in ClearCase I chose to remove them from the repository by deleting the classes directory but it left the copyarea.db file in the parent directory.  I am no expert on ClearCase but I couldn&#8217;t find a real easy way to remove the class files from the ClearCase server so I deleted the files through the ClearCase prospective view in RAD.  This unloaded the files from ClearCase but also deletes the files on the local filesystem.  If anyone knows a better way to remove them from ClearCase without deleting the files on the local system let me know.  Of course like always I made a copy of the files before deleting so I could restore them.</p>
<p><strong>Suggestion:</strong> At least name the file that RAD is having problems deleting then I can go straight to the file the error never mentions the name of the file or the directory.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.npoore.com/2009/01/18/problem-with-rational-application-developer-and-clearcase-plugin/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>
