<?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>easyhacks.com</title>
	<atom:link href="http://www.easyhacks.com/wpx/?feed=rss2" rel="self" type="application/rss+xml" />
	<link>http://www.easyhacks.com/wpx</link>
	<description>Voided warranty? Liberated is a so much nicer word...</description>
	<lastBuildDate>Wed, 20 Oct 2010 06:29:06 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Biltema webcam diagnostics</title>
		<link>http://www.easyhacks.com/wpx/?p=69</link>
		<comments>http://www.easyhacks.com/wpx/?p=69#comments</comments>
		<pubDate>Fri, 27 Aug 2010 07:53:04 +0000</pubDate>
		<dc:creator>kittyhacker</dc:creator>
				<category><![CDATA[electronics]]></category>
		<category><![CDATA[linux]]></category>

		<guid isPermaLink="false">http://www.easyhacks.com/wpx/?p=69</guid>
		<description><![CDATA[Here are some diagnostics and logfiles for my Biltema webcam &#8211; it obviously doesn&#8217;t look like the photo when you get it from Biltema, this one has been warranty liberated and slightly modified.. I&#8217;m using Ubuntu 10.04 and Cheese as a webcam application. When it&#8217;s connected by USB, this is the dmesg output: usb 7-2: [...]]]></description>
			<content:encoded><![CDATA[<p>Here are some diagnostics and logfiles for my Biltema webcam &#8211; it  obviously doesn&#8217;t look like the photo when you get it from Biltema, this  one has been warranty liberated and slightly modified.. I&#8217;m using Ubuntu 10.04 and Cheese as a webcam application.</p>
<p><a href="http://www.easyhacks.com/wpx/wp-content/DSC03516.jpg"><img class="size-medium wp-image-70 alignright" title="Biltema webcam" src="http://www.easyhacks.com/wpx/wp-content/DSC03516-200x300.jpg" alt="" width="200" height="300" /></a><br />
<span id="more-69"></span></p>
<p>When it&#8217;s connected by USB, this is the dmesg output:</p>
<pre>usb 7-2: new full speed USB device using uhci_hcd and address 3
usb 7-2: configuration #1 chosen from 1 choice
Linux video capture interface: v2.00
gspca: main v2.7.0 registered
gspca: probing 0ac8:0302
zc3xx: probe sif 0x0000
zc3xx: probe sensor -&gt; 000a
zc3xx: Find Sensor PB0330. Chip revision 0
gspca: probe ok
usbcore: registered new interface driver zc3xx
zc3xx: registered
usbcore: registered new interface driver snd-usb-audio
</pre>
<p>Apparently important part of lsmod after insert:</p>
<pre>snd_usb_audio          92747  1
snd_usb_lib            19193  1 snd_usb_audio
gspca_zc3xx            49253  0
gspca_main             25031  1 gspca_zc3xx
videodev               40518  1 gspca_main
</pre>
<p>And finally &#8211; part of a lsusb listing:</p>
<pre>Bus 007 Device 003: ID 0ac8:0302 Z-Star Microelectronics Corp. ZC0302 Webcam
Device Descriptor:
  bLength                18
  bDescriptorType         1
  bcdUSB               1.10
  bDeviceClass            0 (Defined at Interface level)
  bDeviceSubClass         0
  bDeviceProtocol         0
  bMaxPacketSize0         8
  idVendor           0x0ac8 Z-Star Microelectronics Corp.
  idProduct          0x0302 ZC0302 Webcam
  bcdDevice            1.00
  iManufacturer           1
  iProduct                2
  iSerial                 0
  bNumConfigurations      1
</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.easyhacks.com/wpx/?feed=rss2&#038;p=69</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Manual System Restore fixed &#8220;hopeless&#8221; XP</title>
		<link>http://www.easyhacks.com/wpx/?p=54</link>
		<comments>http://www.easyhacks.com/wpx/?p=54#comments</comments>
		<pubDate>Tue, 25 Nov 2008 10:48:53 +0000</pubDate>
		<dc:creator>kittyhacker</dc:creator>
				<category><![CDATA[windows]]></category>
		<category><![CDATA[recovery]]></category>
		<category><![CDATA[xp]]></category>

		<guid isPermaLink="false">http://www.easyhacks.com/wpx/?p=54</guid>
		<description><![CDATA[A really interesting laptop fell in my hands the other day, it miserably failed to start XP properly &#8211; neither normal boot or safe mode worked. Normal boot crashed to a BSOD (blue screen of death) and stated: &#8220;Stop: c0000218 {Registry File Failure} The registry Cannot Load The Hive (File): \SystemRoot\System32\Config\Software Error&#8221; Safe mode just [...]]]></description>
			<content:encoded><![CDATA[<p>A really interesting laptop fell in my hands the other day, it miserably failed to start XP properly &#8211; neither normal boot or safe mode worked. Normal boot crashed to a BSOD (blue screen of death) and stated:<br />
&#8220;Stop: c0000218 {Registry File Failure} The registry Cannot Load The Hive (File): \SystemRoot\System32\Config\Software Error&#8221;</p>
<p>Safe mode just hung at loading mup.sys. Recovery console didn&#8217;t work, cause it wouldn&#8217;t accept empty as an administrator password (hey &#8211; it&#8217;s not my laptop, I actually do use a password on my admin account) and booting the XP install cd to do a repair installation was also useless &#8211; the installation procedure didn&#8217;t even find the older XP installation. Google, Microsoft and random nerds over the net suggested only one thing: Reinstallation.<br />
<span id="more-54"></span></p>
<p>My favorite hd-testing program came back with some hints &#8211; broken clusters. &#8220;Boot in Windows to fix&#8221; &#8211; thank you very much for that tip. Gah.<br />
So, no safe mode, no scandisk, no repair installation, no recovery console &#8211; what&#8217;s left? System restore?<br />
But system restore isn&#8217;t really an option &#8211; you need to boot into XP to do that one, right? Turned out Not!</p>
<p>The files that system restore keeps saving apparently ends up in c:\System volume information\_rp[something]\snapshots &#8211; underneath there are some interesting files &#8211; &#8220;_REGISTRY_MACHINE_SOFTWARE&#8221; for instance. These are apparently the same files that are hidden in c:\windows\system32\config &#8211; and replacing those files could restore the messed up registry!</p>
<p>So, up with a Ubuntu livecd, boot up and mount the trashed harddrive (needed to run ntfsfix first though) &#8211; and using a terminal window copying the files was a few minutes work. I suppose making a backup copy of them first sounds like a good idea.<br />
So I copied &#8220;SECURITY&#8221;, &#8220;SAM&#8221;, &#8220;SOFTWARE&#8221; and &#8220;SYSTEM&#8221; from the latest folder under snapshots and replaced those in \config\ and rebooted.</p>
<p>What do you know &#8211; it actually worked!<br />
After a repair c boot and reboot, I was able to login and everything seems to work just perfect! <img src='http://www.easyhacks.com/wpx/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
<p>Update:<br />
A complete scandisk later showed that the software registry file that XP complained about was located exactly on the one broken cluster on the harddrive. So that&#8217;s why XP went into panic &#8211; one sign that this harddrive (a Hitachi btw) has had it&#8217;s happy days for sure.<br />
Would a complete scandisk have solved everything without booting Ubuntu, copying here and there, etc? Who knows.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.easyhacks.com/wpx/?feed=rss2&#038;p=54</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Rescue of my Ubuntu PPC partition</title>
		<link>http://www.easyhacks.com/wpx/?p=43</link>
		<comments>http://www.easyhacks.com/wpx/?p=43#comments</comments>
		<pubDate>Thu, 11 Sep 2008 07:29:07 +0000</pubDate>
		<dc:creator>kittyhacker</dc:creator>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[partition]]></category>
		<category><![CDATA[recovery]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://www.easyhacks.com/wpx/?p=43</guid>
		<description><![CDATA[Managed to do something incredibly silly (not to unusual) &#8211; got a warning that my /dev/sdf2 was unmountable due to some fsck error &#8211; recommended course of action was manually fsck.ext3 testing. Fsck testing is something always shrouded in dark magic &#8211; &#8220;may cause massive data loss&#8221;, always seems far more dangerous than text messaging [...]]]></description>
			<content:encoded><![CDATA[<p>Managed to do something incredibly silly (not to unusual) &#8211; got a warning that my /dev/sdf2 was unmountable due to some fsck error &#8211; recommended course of action was manually fsck.ext3 testing.<br />
Fsck testing is something always shrouded in dark magic &#8211; &#8220;may cause massive data loss&#8221;, always seems far more dangerous than text messaging on my mobile while driving intoxicated through rush hour traffic.</p>
<p>Anyway &#8211; I ran fdisk (I was slightly drunk) to find out which partition was messing around and was told that something was confused about the partition table &#8211; do a write to correct fdisk so cunnigly tricked me.<br />
Fdisk and &#8220;w&#8221; caused an empy partition table to be written to /dev/sdf &#8211; thank you oh so very much.<br />
500gb of precious, precious internet material (no pr0n, promise, promise) all gone into binary heaven.</p>
<p><span id="more-43"></span></p>
<p>Anyway &#8211; to the Ubuntu forums, and found my way to <a href="http://www.cgsecurity.org/wiki/TestDisk" onclick="pageTracker._trackPageview('/outgoing/www.cgsecurity.org/wiki/TestDisk?referer=');">Testdisk</a> &#8211; which is really a nifty program, only it does not like to recover Apple/Mac partitions&#8230; Since this drive was earlier used as the main storage drive in my Ubuntu PPC Server  it had a Apple/Mac partition table.<br />
Testdisk found the partition really quickly, even showed me those precious, precious files (again, no pr0n) but to recover? Oh no, oh no &#8211; &#8220;Function write_part_mac not implemented&#8221; &#8211; and tells me to use &#8220;pdisk&#8221; instead. Pdisk is apparently a Mac program &#8211; nicey, nicey&#8230;.</p>
<p>Now, panic was not really seeping in (ok, yes it was) since I&#8217;ve done something similar before &#8211; I lost power to a computer and the partition table was all gone and that time I managed to repair it with some DOS partition program. That was a Windows machine though. This is a Apple partition in a non-Apple computer. And the G4 Mac I used before is somewhere else and certainly without Mac OS&#8230;</p>
<p>But Testdisk gave me some clues &#8211; the partition started at 64 and ended at 976768063 and I should be able to enter those in something else except that &#8220;pdisk&#8221; thingy&#8230;</p>
<p>So at my disposal is &#8220;cfdisk&#8221;, &#8220;fdisk&#8221;, &#8220;parted&#8221;, &#8220;gparted&#8221;, and some others &#8211; which one is the magic application to use? Cfdisk and Fdisk didn&#8217;t seem to have any way of making a Mac partition, but parted did!<br />
Starting parted (on the right drive, not without arguments &#8211; that will end up Bad[tm], especially with a few beers down the throat) there&#8217;s the command &#8220;mklabel&#8221; &#8211; it will create a partition table type and accepts &#8220;mac&#8221; as a type.</p>
<p>Next step is creating the partition &#8211; it started at 64 and ended at that other number &#8211; only parted seems to be asking me for kilobytes, megabytes? The first partion goes from 0 to 32kb? Hmmm..<br />
Enter &#8220;units&#8221; command &#8211; and with &#8220;s&#8221; for sectors things gets very much understandable &#8211; the first area (I suppose the label or partition table) starts at 0 and ends at 63. My partition started at 64 according to Testdisk! Interesting!<br />
Mkpart in parted fills in the final blank &#8211; a new partition starting at 64, ending at that big number, type ext3 and then, like magic &#8211; my partition is mountable!</p>
<p>Fsck.ext3 still tells med there are some errors to fix, but for now Life has returned! And all my pr0n as well!</p>
<p>Thank you Testdisk authors, thank you, thank you, thank you!<br />
(but do implement write_part_mac, ok?)</p>
]]></content:encoded>
			<wfw:commentRss>http://www.easyhacks.com/wpx/?feed=rss2&#038;p=43</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>Webcam on a servo</title>
		<link>http://www.easyhacks.com/wpx/?p=18</link>
		<comments>http://www.easyhacks.com/wpx/?p=18#comments</comments>
		<pubDate>Wed, 30 Jul 2008 08:18:07 +0000</pubDate>
		<dc:creator>kittyhacker</dc:creator>
				<category><![CDATA[electronics]]></category>
		<category><![CDATA[electronics hacks]]></category>

		<guid isPermaLink="false">http://www.easyhacks.com/wpx/?p=18</guid>
		<description><![CDATA[Just a little write-up from the old page, lest I forget&#8230;. Components: One Parallax USB Servo controller One Parallax standard servo A DLink DES1005D ethernet switch motherboard+casing One dirt cheap Trust WB-3250P webcam One dirt cheap Biltema Webcam (The new webcam (not the one above &#8211; that one the cats killed)appears as: idVendor 0x0ac8 (Z-Star [...]]]></description>
			<content:encoded><![CDATA[<p>Just a little write-up from the old page, lest I forget&#8230;.</p>
<table border="0" cellspacing="0" cellpadding="0" width="100%">
<tbody>
<tr>
<td>
<p><div id="attachment_19" class="wp-caption alignright" style="width: 250px"><a href="http://www.easyhacks.com/wpx/wp-content/uploads/p8280155-300w.jpg"><img class="size-medium wp-image-19" title="p8280155-300w" src="http://www.easyhacks.com/wpx/wp-content/uploads/p8280155-300w.jpg" alt="Opened up" width="240" height="180" /></a><p class="wp-caption-text">Opened up</p></div></td>
<td>
<p><div id="attachment_20" class="wp-caption alignleft" style="width: 250px"><a href="http://www.easyhacks.com/wpx/wp-content/uploads/p8280153-300w.jpg"><img class="size-medium wp-image-20" title="p8280153-300w" src="http://www.easyhacks.com/wpx/wp-content/uploads/p8280153-300w.jpg" alt="Mounted on top" width="240" height="180" /></a><p class="wp-caption-text">Mounted on top</p></div></td>
</tr>
</tbody>
</table>
<p><span id="more-18"></span><strong>Components:</strong><span style="font-size: x-small; font-family: Arial;"><br />
One Parallax USB Servo controller<br />
One Parallax standard servo</span><span style="font-size: x-small; font-family: Arial;"> A DLink DES1005D ethernet switch motherboard+casing<br />
<span style="text-decoration: line-through;">One dirt cheap Trust WB-3250P webcam<br />
</span>One dirt cheap Biltema Webcam<br />
(</span><span style="font-size: x-small; font-family: Arial;">The new webcam <strong>(not the one above &#8211; that one the cats killed)</strong>appears as: idVendor 0x0ac8 (Z-Star Microelectronics Group), idProduct 0&#215;0302 (ZC0302 Webcam) and worked 							pretty much out-of-the-box in Linux (with gspca and stuff installed though) &#8211; a possible Windows driver might be <a href="http://www.vimicro.com/english/product/pc003.htm" onclick="pageTracker._trackPageview('/outgoing/www.vimicro.com/english/product/pc003.htm?referer=');">here</a> )</span></p>
<p><strong>Project aims:</strong><span style="font-size: x-small; font-family: Arial;"><br />
Motiondetection, for monitoring the backyard<br />
To be controlled by a Python script from work!</span><span style="font-size: x-small; font-family: Arial;"><br />
</span></p>
<p><strong>Files:</strong><br />
<em>Just some testing and learning stuff &#8211; might help someone..</em><br />
<a href="../../projects/1/PSC.py.gz">PSC &#8211; Adam3&#8242;s superb controller class</a><br />
<a href="../../projects/1/pygame.joystick.py.gz">Small python pygame testing thingy</a><br />
<a href="../../projects/1/servo2.py.gz">Servocontroll by gamepad!</a></p>
<p><strong>Resources:</strong><br />
<a href="http://forums.gentoo.org/viewtopic-t-537031-highlight-gamepad.html2" onclick="pageTracker._trackPageview('/outgoing/forums.gentoo.org/viewtopic-t-537031-highlight-gamepad.html2?referer=');">This thread helped me get the Saitek 2900 working in Linux &#8211; thanks!</a><br />
<a href="http://www.linuxjournal.com/article/7403" onclick="pageTracker._trackPageview('/outgoing/www.linuxjournal.com/article/7403?referer=');">Article &#8211; How I Feed My Cats with Linux</a><br />
<a href="http://pyserial.sourceforge.net/" onclick="pageTracker._trackPageview('/outgoing/pyserial.sourceforge.net/?referer=');">PySerial &#8211; To do serial stuff with Python</a><br />
<a href="http://gpwiki.org/index.php/Python:Pygame_basics" onclick="pageTracker._trackPageview('/outgoing/gpwiki.org/index.php/Python_Pygame_basics?referer=');">PYgame &#8211; this might help me get remote steering working&#8230;</a><br />
<a href="http://rene.f0o.com/mywiki/PythonGameProgramming" onclick="pageTracker._trackPageview('/outgoing/rene.f0o.com/mywiki/PythonGameProgramming?referer=');">PYgame &#8211; some more&#8230;</a><br />
<a href="http://adamthree.com/index.php?page=files" onclick="pageTracker._trackPageview('/outgoing/adamthree.com/index.php?page=files&amp;referer=');"><strong>Invaluable</strong> &#8211; a class to control Parallax servo with Python!</a><br />
<a href="http://www.parallax.com/detail.asp?product_id=28023" onclick="pageTracker._trackPageview('/outgoing/www.parallax.com/detail.asp?product_id=28023&amp;referer=');">The Parallax specs and instructions for my servo controller</a><br />
<a href="http://www.robotshop.se/catalog/" onclick="pageTracker._trackPageview('/outgoing/www.robotshop.se/catalog/?referer=');">Robotshop.se &#8211; a great place to buy stuff!</a><br />
<a href="http://www.thesentrygun.com/" onclick="pageTracker._trackPageview('/outgoing/www.thesentrygun.com/?referer=');">The Sentry Gun &#8211; some inspiration/aspiration came from here, of course</a><br />
<a href="http://www.lavrsen.dk/twiki/bin/view/Motion/WebHome" onclick="pageTracker._trackPageview('/outgoing/www.lavrsen.dk/twiki/bin/view/Motion/WebHome?referer=');">Motion &#8211; motiondetection for Linux (when I get a better webcam)</a><br />
<a href="http://www.exploits.org/v4l/" onclick="pageTracker._trackPageview('/outgoing/www.exploits.org/v4l/?referer=');">Lots of links about Linux video devices</a><br />
<a href="http://www.codeproject.com/cs/media/Motion_Detection.asp" onclick="pageTracker._trackPageview('/outgoing/www.codeproject.com/cs/media/Motion_Detection.asp?referer=');">Really interesting theory/software for motion detection</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.easyhacks.com/wpx/?feed=rss2&#038;p=18</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Music</title>
		<link>http://www.easyhacks.com/wpx/?p=9</link>
		<comments>http://www.easyhacks.com/wpx/?p=9#comments</comments>
		<pubDate>Sat, 12 Jul 2008 17:16:52 +0000</pubDate>
		<dc:creator>kittyhacker</dc:creator>
				<category><![CDATA[music]]></category>

		<guid isPermaLink="false">http://www.easyhacks.com/wpx/?p=9</guid>
		<description><![CDATA[Music is good for you. Emilie Autumn is good for you.]]></description>
			<content:encoded><![CDATA[<p>Music is good for you. Emilie Autumn is good for you.<br />
<a href="http://www.emilieautumn.com/dead.html" target="_blank" onclick="pageTracker._trackPageview('/outgoing/www.emilieautumn.com/dead.html?referer=');"><img border="0" src="http://emilieautumn.com/MS/MSBanner3.gif" width="400" height="160"></a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.easyhacks.com/wpx/?feed=rss2&#038;p=9</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Bash for you and me</title>
		<link>http://www.easyhacks.com/wpx/?p=8</link>
		<comments>http://www.easyhacks.com/wpx/?p=8#comments</comments>
		<pubDate>Sat, 12 Jul 2008 16:59:31 +0000</pubDate>
		<dc:creator>kittyhacker</dc:creator>
				<category><![CDATA[scripts]]></category>
		<category><![CDATA[bash]]></category>
		<category><![CDATA[linux]]></category>

		<guid isPermaLink="false">http://www.easyhacks.com/wpx/?p=8</guid>
		<description><![CDATA[check every file in a directory if it&#8217;s not actuallly a jpg, if so rename it to the same name.jpg for fil in $(file * &#124; grep JPEG &#124; awk &#8216;{print $1}&#8217; &#124; sed s/://); do mv $fil $fil.jpg; done; simple wget loop &#8211; nice for leeching stuff.. for ((i=1;i&#60;100;i++)); do wget www.archive.net/$i -r -l2; [...]]]></description>
			<content:encoded><![CDATA[<p>check every file in a directory if it&#8217;s not actuallly a jpg, if so rename it to the same name.jpg</p>
<table border="0">
<tbody>
<tr>
<td bgcolor="#ffcc66">for fil in $(file * | grep JPEG | awk &#8216;{print $1}&#8217; | sed s/://); do mv $fil $fil.jpg; done;</td>
</tr>
</tbody>
</table>
<p>simple wget loop &#8211; nice for leeching stuff..</p>
<table border="0">
<tbody>
<tr>
<td bgcolor="#ffcc66">for ((i=1;i&lt;100;i++)); do wget www.archive.net/$i -r -l2; done;</td>
</tr>
</tbody>
</table>
<p>ping a server to find out if the internetconnection is still around<br />
(takes an ip as argument,should be placed a file I suppose)</p>
<table border="0">
<tbody>
<tr>
<td bgcolor="#ffcc66">#!/bin/bash<br />
ping -c 2 $1 1&gt;/dev/null<br />
if [ "$?" = 1 ]<br />
then<br />
echo &#8220;`date` : Network down&#8221; &gt;&gt;/home/kitty/ping-log<br />
else<br />
echo &#8220;`date` : Network is still up&#8221; &gt;&gt;/home/kitty/ping-log<br />
fi</td>
</tr>
</tbody>
</table>
<p>batch rename of files &#8211; this example replaces spaces with &#8220;-&#8221;.  Can be used to replace other stuff in filenames</p>
<table border="0">
<tbody>
<tr>
<td bgcolor="#ffcc66">for filnamn in *; do mv &#8220;$filnamn&#8221; &#8220;`echo $filnamn|sed -e &#8216;s/\ /-/&#8217;`&#8221;; done</td>
</tr>
</tbody>
</table>
<table border="0">
<tbody>
<tr>
<td bgcolor="#ffcc66"></td>
</tr>
</tbody>
</table>
]]></content:encoded>
			<wfw:commentRss>http://www.easyhacks.com/wpx/?feed=rss2&#038;p=8</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

