<?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>h3x.no</title>
	<atom:link href="http://h3x.no/feed" rel="self" type="application/rss+xml" />
	<link>http://h3x.no</link>
	<description>Tor Henning Ueland`s thoughts about technology and other stuff</description>
	<lastBuildDate>Fri, 05 Mar 2010 15:21:18 +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>Howto: Increase disk space in a mdadm raid</title>
		<link>http://h3x.no/2010/03/02/howto-increase-disk-space-in-a-mdadm-raid</link>
		<comments>http://h3x.no/2010/03/02/howto-increase-disk-space-in-a-mdadm-raid#comments</comments>
		<pubDate>Tue, 02 Mar 2010 18:35:28 +0000</pubDate>
		<dc:creator>Tor Henning Ueland</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[mdadm]]></category>
		<category><![CDATA[raid]]></category>

		<guid isPermaLink="false">http://h3x.no/?p=288</guid>
		<description><![CDATA[I currently have a Ubuntu Linux server running two mdadm RAID`s. One of the RAID sets is set up using 6 x 500 GB SATA drives. Now i have purchased 6 x 1500 GB SATA drives that will replace the old disks, but the challenge is to increase the RAID and filesystem without loosing any [...]]]></description>
			<content:encoded><![CDATA[<p>I currently have a Ubuntu Linux server running two mdadm RAID`s. One of the RAID sets is set up using 6 x 500 GB SATA drives. Now i have purchased 6 x 1500 GB SATA drives that will replace the old disks, but the challenge is to increase the RAID and filesystem without loosing any data or having downtime. (Note: not having downtime is possible since i use a system that supports hot swapping of drives)</p>
<p>In summary, this can be achieved by doing the following:<br />
1) Replace all disks in the RAID (one by one)<br />
2) Grow the RAID<br />
3) Expand the filesystem</p>
<p>In this guide i will be working on <strong>/dev/md1</strong></p>
<p>Now, let`s get to work!</p>
<h2><span style="color: #000000;"><strong>Part one: Replace the disks</strong></span></h2>
<p>PS: If your system does not support hot swap, you have to turn of/restart your machine for each disk you are replacing.</p>
<p>Remove a disk in the RAID, then insert a new (bigger) drive.<br />
Check dmesg (or similiar) to get the name of the last drive.</p>
<blockquote><p>[14522870.380610] scsi 15:0:0:0: Direct-Access     ATA      WDC WD15EARS-00Z 80.0 PQ: 0 ANSI: 5<br />
[14522870.381589] sd 15:0:0:0: [<strong>sdm</strong>] 2930277168 512-byte hardware sectors: (1.50 TB/1.36 TiB)<br />
[14522870.381622] sd 15:0:0:0: [<strong>sdm</strong>] Write Protect is off<br />
[14522870.381626] sd 15:0:0:0: [<strong>sdm</strong>] Mode Sense: 00 3a 00 00<br />
[14522870.381673] sd 15:0:0:0: [<strong>sdm</strong>] Write cache: enabled, read cache: enabled, doesn&#8217;t support DPO or FUA<br />
[14522870.381845] sd 15:0:0:0: [<strong>sdm</strong>] 2930277168 512-byte hardware sectors: (1.50 TB/1.36 TiB)<br />
[14522870.381870] sd 15:0:0:0: [<strong>sdm</strong>] Write Protect is off<br />
[14522870.381875] sd 15:0:0:0: [<strong>sdm</strong>] Mode Sense: 00 3a 00 00<br />
[14522870.381918] sd 15:0:0:0: [<strong>sdm</strong>] Write cache: enabled, read cache: enabled, doesn&#8217;t support DPO or FUA<br />
[14522870.381926] <strong> sdm</strong>: unknown partition table<br />
[14522870.397752] sd 15:0:0:0: [<strong>sdm</strong>] Attached SCSI disk<br />
[14522870.397878] sd 15:0:0:0: Attached scsi generic sg9 type 0</p></blockquote>
<p>Now, tell mdadm to add your new drive to the RAID you removed a drive from by doing:</p>
<blockquote><p>mdadm &#8211;manage /dev/<strong>md1</strong> &#8211;add /dev/<strong>sdm</strong></p></blockquote>
<p>Mdadm will then start syncing data to your new drive, to get a ETA of when it`s done (and when you can replace the next drive) check the mdadm status.</p>
<blockquote><p><span style="color: #000000;">root@bais:/home/samba/raid1/test# cat /proc/mdstat<br />
Personalities : [linear] [multipath] [raid0] [raid1] [raid6] [raid5] [raid4] [raid10]<br />
md0 : active raid5 sdl[2] sdi[4] sdf[3] sde[1] sdd[0]<br />
5860553728 blocks level 5, 128k chunk, algorithm 2 [5/5] [UUUUU]</span></p>
<p><span style="color: #000000;">md1 : active raid5 sdm[6] sdg[1] sdk[5] sdj[7](F) sdh[2] sdc[3] sda[0]<br />
2441932480 blocks level 5, 64k chunk, algorithm 2 [6/5] [UUUU_U]<br />
<strong> [==&gt;..................]  recovery = 14.2% (69439012/488386496)<strong> finish=155.8min</strong> speed=44805K/sec</strong></span></p>
<p><span style="color: #000000;">unused devices:</span></p></blockquote>
<p>So after around 155 minutes  the drive is active. (And the next one can be replaced)</p>
<p>Repeat this process for each disk in the RAID.</p>
<p>When you have changed all disks, run the command &#8220;mdadm &#8211;manage /dev/md<strong>X</strong> &#8211;remove failed&#8221; to remove any devices listes as failed for the given RAID.</p>
<h2><strong><strong>Part two: Increase the space available for the RAID</strong></strong></h2>
<p>This is done by simply issuing the command:</p>
<blockquote><p>mdadm &#8211;grow /dev/md1 &#8211;size=max</p></blockquote>
<p>And the RAID size is increased, note that this has caused the RAID to start a resync (again):</p>
<blockquote><p>root@bais:~# cat /proc/mdstat<br />
Personalities : [linear] [multipath] [raid0] [raid1] [raid6] [raid5] [raid4] [raid10]<br />
md0 : active raid5 sdl[2] sdi[4] sdf[3] sde[1] sdd[0]<br />
5860553728 blocks level 5, 128k chunk, algorithm 2 [5/5] [UUUUU]</p>
<p>md1 : active raid5 sdc[0] sdj[3] sdh[5] sdg[2] sdn[1] sdm[4]<br />
7325692480 blocks level 5, 64k chunk, algorithm 2 [6/6] [UUUUUU]<br />
<strong>[======&gt;..............]  resync = 34.6% (508002752/1465138496) finish=247.0min speed=64561K/sec</strong></p></blockquote>
<p>PS: note that the resync speed has increased by around 20MB/s after all the drives was replaced <img src='http://h3x.no/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>You will now also notice that the RAID reports it`s new size:</p>
<blockquote><p>root@bais:~# mdadm &#8211;detail /dev/md1<br />
/dev/md1:<br />
Version : 00.90<br />
Creation Time : Sat Jun 13 01:55:27 2009<br />
Raid Level : raid5<br />
<strong>Array Size : 7325692480 (6986.32 GiB 7501.51 GB)</strong><br />
Used Dev Size : 1465138496 (1397.26 GiB 1500.30 GB)<br />
Raid Devices : 6<br />
Total Devices : 6<br />
Preferred Minor : 1<br />
Persistence : Superblock is persistent</p>
<p><strong>Update Time : Fri Mar  5 08:03:47 2010</strong><br />
State : active, resyncing<br />
Active Devices : 6<br />
Working Devices : 6<br />
Failed Devices : 0<br />
Spare Devices : 0</p>
<p>Layout : left-symmetric<br />
Chunk Size : 64K</p>
<p><strong>Rebuild Status : 35% complete</strong></p>
<p>UUID : ed415534:2925f54a:352a6ad4:582f9bd3 (local to host bais)<br />
Events : 0.247</p>
<p>Number   Major   Minor   RaidDevice State<br />
0       8       32        0      active sync   /dev/sdc<br />
1       8      208        1      active sync   /dev/sdn<br />
2       8       96        2      active sync   /dev/sdg<br />
3       8      144        3      active sync   /dev/sdj<br />
4       8      192        4      active sync   /dev/sdm<br />
5       8      112        5      active sync   /dev/sdh</p></blockquote>
<h2><strong><strong>Part three: resize file system<br />
</strong></strong></h2>
<p>Start off by unounting the file system in question and perform a file system check to make shure everything is a-ok</p>
<blockquote><p>root@bais:/home/torhenning# <strong>umount /home/samba/raid1</strong><br />
root@bais:/home/torhenning#<strong> fsck /dev/md1</strong><br />
fsck 1.41.4 (27-Jan-2009)<br />
e2fsck 1.41.4 (27-Jan-2009)<br />
/dev/md1 has gone 188 days without being checked, check forced.<br />
Pass 1: Checking inodes, blocks, and sizes</p></blockquote>
<p>Be warned: The fsck CAN take quite a time to finish.</p>
<p>When it`s complete, you are ready for the last step, which is to resize the filesystem:</p>
<blockquote><p>root@bais:/home/torhenning# <strong>resize2fs /dev/md1 6986G</strong><br />
resize2fs 1.41.4 (27-Jan-2009)<br />
Resizing the filesystem on /dev/md1 to 1831337984 (4k) blocks.</p></blockquote>
<p>And voila! Mount up the filesystem again and you are finished! <img src='http://h3x.no/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://h3x.no/2010/03/02/howto-increase-disk-space-in-a-mdadm-raid/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>List of people twittering from/about the Chile earthquake  / tsunami</title>
		<link>http://h3x.no/2010/02/27/list-of-people-twittering-fromabout-the-chile-earthquake-tsunami</link>
		<comments>http://h3x.no/2010/02/27/list-of-people-twittering-fromabout-the-chile-earthquake-tsunami#comments</comments>
		<pubDate>Sat, 27 Feb 2010 09:32:25 +0000</pubDate>
		<dc:creator>Tor Henning Ueland</dc:creator>
				<category><![CDATA[News]]></category>
		<category><![CDATA[chile]]></category>
		<category><![CDATA[earthquake]]></category>
		<category><![CDATA[tsunami]]></category>

		<guid isPermaLink="false">http://h3x.no/?p=195</guid>
		<description><![CDATA[Blog post last updated 11:02 GMT, 01.march 2010
Note: please comment if you miss anybody/anything here.
Twitter accounts updated within the last hour:
viav7 (retweeting distress messages amongst other)
jacinperez (Tweets in Spanish)
LisaTw (Tweeting about Chile)
kamla (Tweets about it)
ontobelli (Tweets in Spanish)
globovision (Tweets in Spanish)
ageofbrillig (Tweets about the possible tsunami)
crisiscamp (Tweets about it)
earcos (Tweets in Spanish)
marc_cooper (Tweets about it)
geographile [...]]]></description>
			<content:encoded><![CDATA[<p><strong>Blog post last updated 11:02 GMT, 01.march 2010</strong><br />
<em>Note: please comment if you miss anybody/anything here.</em></p>
<p><strong>Twitter accounts updated within the last hour:</strong><br />
<a href="http://twitter.com/viav7">viav7</a> (retweeting distress messages amongst other)<br />
<a href="http://twitter.com/jacinperez">jacinperez</a> (Tweets in Spanish)<br />
<a href="http://twitter.com/LisaTw">LisaTw</a> (Tweeting about Chile)<br />
<a href="http://twitter.com/kamla">kamla</a> (Tweets about it)<br />
<a href="http://twitter.com/ontobelli">ontobelli</a> (Tweets in Spanish)<br />
<a href="http://twitter.com/globovision">globovision</a> (Tweets in Spanish)<br />
<a href="http://twitter.com/ageofbrillig">ageofbrillig</a> (Tweets about the possible tsunami)<br />
<a href="http://twitter.com/crisiscamp">crisiscamp</a> (Tweets about it)<br />
<a href="http://twitter.com/earcos">earcos</a> (Tweets in Spanish)<br />
<a href="http://twitter.com/marc_cooper">marc_cooper</a> (Tweets about it)<br />
<a href="http://twitter.com/geographile">geographile</a> (retweet geography-related news)<br />
<a href="http://twitter.com/Dhaisy">Dhaisy</a> (Tweets about it)<br />
<a href="http://twitter.com/CarlosFoxTV">CarlosFoxTV</a> (A &#8220;news guy&#8221; tweeting about it)<br />
<a hef="http://twitter.com/marc_cooper">marc_cooper</a> (Tweets about)<br />
<a href="http://twitter.com/W7VOA">W7VOA</a> (Tweets about it)<br />
<a href="http://twitter.com/BreakingNews">BreakingNews</a> (Breaking news about it)<br />
<a href="http://twitter.com/AlBoeNEWS">AlBoeNEWS</a> (Tweets about it)<br />
<a href="http://twitter.com/1Vzlano">1Vzlano</a> (Writes from Venezuela)</p>
<p><strong>Twitter accounts updated within the last three hours:</strong><br />
<a href="http://twitter.com/cnn">CNN</a> (Tweets some news about Chile)<br />
<a href="http://twitter.com/marcoie">marcoie</a> (Are in Chile)<br />
<a href="http://twitter.com/Ciencia_y_Tecno">Ciencia_y_Tecno</a> (Tweets in Spanish)<br />
<a href="http://twitter.com/progone">progone</a> (Focuses on the tsunami)</p>
<p><strong>Twitter accounts updated later</strong><br />
<a href="http://twitter.com/RodrigoBNO">RodrigoBNO</a> (Journalist in Mexico)<br />
<a href="http://twitter.com/CNNChile">CNNChile</a> (CNN Chile)<br />
<a href="http://twitter.com/CarolinaMillan">CarolinaMillan</a> (Are in Chile, tweets in Spanish)<br />
<a href="http://twitter.com/quincy12">quincy12</a> (Are in Chile, tweets in Spanish)<br />
<a href="http://twitter.com/KiLotr">KiLotr</a> (Are in Chile, tweets in Spanish)<br />
<a href="http://twitter.com/kurenaiteam">kurenaiteam</a> (Are in Chile, tweets in Spanish)<br />
<a href="http://twitter.com/azadehCNN">azadehCNN</a> (CNN reporter tweeting about Chile)<br />
<a href="http://twitter.com/elliottyamin">elliottyamin</a> (Are be in Chile, also interviewed on CNN now)<br />
<del><a href="http://twitter.com/baywatchboy">baywatchboy</a> (Tweets about it)</del><br />
<a href="http://twitter.com/Sipote87">Sipote87</a> (Tweets about it)</p>
<p><strong>Other resources:</strong><br />
<a href="http://www.ustream.tv/channel/tv-de-chile">Live TV from Chile</a> (In Spanish)<br />
<a href="http://www.prh.noaa.gov/ptwc/messages/pacific/2010/">Tsunami warnings</a><br />
<a href="http://ontobelli.blogspot.com/2010/02/terremoto-en-chile.html">Images and info from Chile</a></p>
]]></content:encoded>
			<wfw:commentRss>http://h3x.no/2010/02/27/list-of-people-twittering-fromabout-the-chile-earthquake-tsunami/feed</wfw:commentRss>
		<slash:comments>18</slash:comments>
		</item>
		<item>
		<title>Arrow keys + Page up/down not working in Firefox</title>
		<link>http://h3x.no/2010/02/23/arrow-keys-page-updown-not-working-in-firefox</link>
		<comments>http://h3x.no/2010/02/23/arrow-keys-page-updown-not-working-in-firefox#comments</comments>
		<pubDate>Tue, 23 Feb 2010 20:21:19 +0000</pubDate>
		<dc:creator>Tor Henning Ueland</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[cat]]></category>
		<category><![CDATA[firefox]]></category>

		<guid isPermaLink="false">http://h3x.no/?p=192</guid>
		<description><![CDATA[So, my cat figured out it was time to sleep on my laptop, he also managed to put Firefix into Caret browsing mode.
If you want to get out of it again (and then get page up/down + arrow keys working again), simply press F7
]]></description>
			<content:encoded><![CDATA[<p>So, my cat figured out it was time to sleep on my laptop, he also managed to put Firefix into <a href="http://en.wikipedia.org/wiki/Caret_navigation">Caret browsing mode</a>.</p>
<p>If you want to get out of it again (and then get page up/down + arrow keys working again), <strong>simply press F7</strong></p>
]]></content:encoded>
			<wfw:commentRss>http://h3x.no/2010/02/23/arrow-keys-page-updown-not-working-in-firefox/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>A lesson in PHP stupidity</title>
		<link>http://h3x.no/2010/02/13/a-lesson-in-php-stupidity</link>
		<comments>http://h3x.no/2010/02/13/a-lesson-in-php-stupidity#comments</comments>
		<pubDate>Sat, 13 Feb 2010 12:16:50 +0000</pubDate>
		<dc:creator>Tor Henning Ueland</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[wtf]]></category>

		<guid isPermaLink="false">http://h3x.no/?p=182</guid>
		<description><![CDATA[1:  post_max_size &#62;= 2GB makes PHP overflow, resulting in a negative post_max_size:
&#8220;POST Content-Length of 0 bytes exceeds the limit of -2147483648 bytes&#8221;
2: defining post_max_size (etc) with MB instead of M causes PHP to only read the last character, in other words 10MB becomes 10 bytes . How hard can it be to either use the [...]]]></description>
			<content:encoded><![CDATA[<p>1:  post_max_size &gt;= 2GB makes PHP overflow, resulting in a negative post_max_size:<br />
&#8220;POST Content-Length of 0 bytes exceeds the limit of -2147483648 bytes&#8221;</p>
<p>2: defining post_max_size (etc) with MB instead of M causes PHP to only read the last character, in other words 10MB becomes 10 bytes . How hard can it be to either use the first character or even better, both?</p>
<p><em>(note 1: this can be avoided by actually reading the manual, but this  should have been handled better from PHP`s side IMO)</em></p>
<p><em>(Note 2: This experience come from the latest stable PHP version in SLES 10SP2, </em><em>hopefully this has been fixed in later releases.)</em></p>
]]></content:encoded>
			<wfw:commentRss>http://h3x.no/2010/02/13/a-lesson-in-php-stupidity/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Want Spotify invites?</title>
		<link>http://h3x.no/2010/01/21/want-spotify-invites</link>
		<comments>http://h3x.no/2010/01/21/want-spotify-invites#comments</comments>
		<pubDate>Thu, 21 Jan 2010 19:06:41 +0000</pubDate>
		<dc:creator>Tor Henning Ueland</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[invite]]></category>
		<category><![CDATA[spotify]]></category>

		<guid isPermaLink="false">http://h3x.no/?p=178</guid>
		<description><![CDATA[I have started getting a big bunch of Spotify invites, and i have decicded to give them all out!
So if you want an invite, you can get one here: http://h3x.no/spotify.php
(New invites will be added when needed, still got a small bunch left)
Btw: Got any problems, then please comment about it in this entry  
]]></description>
			<content:encoded><![CDATA[<p>I have started getting a big bunch of Spotify invites, and i have decicded to give them all out!</p>
<p>So if you want an invite, you can get one here: <a href="http://h3x.no/spotify.php">http://h3x.no/spotify.php</a></p>
<p>(New invites will be added when needed, still got a small bunch left)</p>
<p><strong>Btw:</strong> Got any problems, then please comment about it in this entry <img src='http://h3x.no/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://h3x.no/2010/01/21/want-spotify-invites/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>List of people twittering from/about Haiti and other useful links</title>
		<link>http://h3x.no/2010/01/13/list-of-people-twittering-fromabout-haiti-and-other-useful-links</link>
		<comments>http://h3x.no/2010/01/13/list-of-people-twittering-fromabout-haiti-and-other-useful-links#comments</comments>
		<pubDate>Wed, 13 Jan 2010 21:54:04 +0000</pubDate>
		<dc:creator>Tor Henning Ueland</dc:creator>
				<category><![CDATA[News]]></category>
		<category><![CDATA[haiti]]></category>
		<category><![CDATA[Twitter]]></category>

		<guid isPermaLink="false">http://h3x.no/?p=140</guid>
		<description><![CDATA[Blog post last updated19:57 GMT, 15.jan 2010
Twitter accounts updated within the last hour:
troylivesay &#8211; Troy Livesay, is in Port Au Prince, Haiti
Wyclef &#8211; Wyclef Jean
InternetHaiti &#8211; Multilink Haiti, Twitters from Haiti
marvinady &#8211; Marvin Rady Twittering about Haiti
redcrossmom - Appears to be twittering from Haiti
LisandroSuero &#8211; Lisandro Suero, publishes pictures from Haiti
andersoncooper &#8211; Anderson Cooper, CNN [...]]]></description>
			<content:encoded><![CDATA[<p><strong>Blog post last updated19:57 GMT, 15.jan 2010</strong></p>
<p><strong>Twitter accounts updated within the last hour:</strong><br />
<a href="http://twitter.com/troylivesay">troylivesay</a> &#8211; Troy Livesay, is in Port Au Prince, Haiti<br />
<a href="http://twitter.com/Wyclef">Wyclef</a> &#8211; Wyclef Jean<br />
<a href="http://twitter.com/InternetHaiti">InternetHaiti</a> &#8211; Multilink Haiti, Twitters from Haiti<br />
<a href="http://twitter.com/marvinady">marvinady</a> &#8211; Marvin Rady Twittering about Haiti<br />
<a href="http://twitter.com/redcrossmom">redcrossmom </a>- Appears to be twittering from Haiti<br />
<a href="http://twitter.com/LisandroSuero">LisandroSuero</a> &#8211; Lisandro Suero, publishes pictures from Haiti<br />
<a href="http://twitter.com/andersoncooper">andersoncooper</a> &#8211; Anderson Cooper, CNN Reporter in Haiti<br />
<a href="http://twitter.com/leecohen">Leecohen</a> &#8211; Lee Cohen Twitters from Haiti<br />
<a href="http://twitter.com/Alyssa_Milano">Alyssa_Milano</a> &#8211; Alyssa Milano, twitters about Haiti</p>
<p><strong>Twitter accounts updated within the last two hours:</strong></p>
<p>n/a</p>
<p><strong>Twitter accounts updated within the last 12 hours:</strong></p>
<p><a href="http://twitter.com/fredodupoux">fredodupoux</a> &#8211; Frederic Dupoux, active from Haiti<br />
<a href="http://twitter.com/RAMhaiti/">RAMhaiti</a> &#8211; Richard Morse, CNN Reporter in Haiti</p>
<p><strong>Twitter accounts updated > 12 hours:</strong></p>
<p><a href="http://twitter.com/IvanCNN">IvanCNN</a> &#8211; Ivan Watson, CNN Reporter in Haiti<br />
<a href="http://twitter.com/DanielleCNN">DanielleCNN</a> &#8211; Danielle Dellorto, CNN Reporter in Haiti<br />
<a href="http://twitter.com/jason_carroll">jason_carroll</a> &#8211; Jason Carroll, CNN Reporter in Haiti</p>
<p>You can also get live updates regarind Haiti on <a href="http://twitter.com/#search?q=Haiti">Twitter</a>.</p>
<p><strong>Want to donate to help Haiti? Then visit <a href="http://www.redcross.org/">Redcross.org</a>!</strong></p>
<p><strong>Have any Twitterers that miss in the list? Please post a comment with a link here.</strong></p>
]]></content:encoded>
			<wfw:commentRss>http://h3x.no/2010/01/13/list-of-people-twittering-fromabout-haiti-and-other-useful-links/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Locate duplicate files under Ubuntu (And some ranting)</title>
		<link>http://h3x.no/2009/11/21/locate-dublicate-files-under-ubuntu-and-some-ranting</link>
		<comments>http://h3x.no/2009/11/21/locate-dublicate-files-under-ubuntu-and-some-ranting#comments</comments>
		<pubDate>Sat, 21 Nov 2009 14:35:55 +0000</pubDate>
		<dc:creator>Tor Henning Ueland</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://www.h3x.no/?p=119</guid>
		<description><![CDATA[Edit: Post updated due to obvious user error  
Looking for a program to find dublicate files? Then fdupe saves the day!
root@bais:/home/samba/raid0# apt-cache search fdupe
fdupes &#8211; identifies duplicate files within given directories
By the way, how come the apt search gives to random results?
torhenning@bais:~$ sudo apt-cache search duplicate
&#8230;.
mirror &#8211; keeps FTP archives up-to-date
vlc &#8211; multimedia player [...]]]></description>
			<content:encoded><![CDATA[<p>Edit: Post updated due to obvious user error <img src='http://h3x.no/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>Looking for a program to find dublicate files? Then fdupe saves the day!</p>
<blockquote><p>root@bais:/home/samba/raid0# <strong>apt-cache search fdupe</strong><br />
fdupes &#8211; identifies duplicate files within given directories</p></blockquote>
<p>By the way, how come the apt search gives to random results?</p>
<blockquote><p>torhenning@bais:~$ sudo apt-cache search duplicate<br />
&#8230;.<br />
mirror &#8211; keeps FTP archives up-to-date<br />
vlc &#8211; multimedia player and streamer<br />
(and a lot of other irrelevant crap)</p></blockquote>
<p>Can`t exactly say that having to grep in a search results is a good &#8220;feature&#8221;..</p>
]]></content:encoded>
			<wfw:commentRss>http://h3x.no/2009/11/21/locate-dublicate-files-under-ubuntu-and-some-ranting/feed</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Locate hidden files on a given path</title>
		<link>http://h3x.no/2009/11/08/locate-hidden-files-on-a-given-path</link>
		<comments>http://h3x.no/2009/11/08/locate-hidden-files-on-a-given-path#comments</comments>
		<pubDate>Sun, 08 Nov 2009 00:53:45 +0000</pubDate>
		<dc:creator>Tor Henning Ueland</dc:creator>
				<category><![CDATA[Java]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[hiddenfinder]]></category>

		<guid isPermaLink="false">http://www.h3x.no/?p=116</guid>
		<description><![CDATA[I have created a simple java command line tool that prints out all hidden files/folders in a given directory. If you need it, you can find it here: http://h3x.no/apps/hiddenFinder/hiddenFinder_v1.zip
]]></description>
			<content:encoded><![CDATA[<p>I have created a simple java command line tool that prints out all hidden files/folders in a given directory. If you need it, you can find it here: <a href="http://h3x.no/apps/hiddenFinder/hiddenFinder_v1.zip">http://h3x.no/apps/hiddenFinder/hiddenFinder_v1.zip</a></p>
]]></content:encoded>
			<wfw:commentRss>http://h3x.no/2009/11/08/locate-hidden-files-on-a-given-path/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to get your mdadm RAID`s back after OS crash or a reinstall</title>
		<link>http://h3x.no/2009/08/28/how-to-get-your-mdadm-raids-back-after-os-crash-reinstall</link>
		<comments>http://h3x.no/2009/08/28/how-to-get-your-mdadm-raids-back-after-os-crash-reinstall#comments</comments>
		<pubDate>Fri, 28 Aug 2009 21:26:28 +0000</pubDate>
		<dc:creator>Tor Henning Ueland</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[crash]]></category>
		<category><![CDATA[mdadm]]></category>
		<category><![CDATA[raid]]></category>

		<guid isPermaLink="false">http://www.h3x.no/?p=108</guid>
		<description><![CDATA[If all your disks are connected, simply try a:
mdadm &#8211;assemble &#8211;scan
This should find and activate all your RAID systems  
]]></description>
			<content:encoded><![CDATA[<p>If all your disks are connected, simply try a:</p>
<p>mdadm &#8211;assemble &#8211;scan</p>
<p>This should find and activate all your RAID systems <img src='http://h3x.no/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://h3x.no/2009/08/28/how-to-get-your-mdadm-raids-back-after-os-crash-reinstall/feed</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Display clock each 10 minutes x times forward in PHP</title>
		<link>http://h3x.no/2009/08/16/display-clock-each-10-minutes-x-times-forward-in-php</link>
		<comments>http://h3x.no/2009/08/16/display-clock-each-10-minutes-x-times-forward-in-php#comments</comments>
		<pubDate>Sun, 16 Aug 2009 18:23:44 +0000</pubDate>
		<dc:creator>Tor Henning Ueland</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[date]]></category>
		<category><![CDATA[snippet]]></category>
		<category><![CDATA[time]]></category>

		<guid isPermaLink="false">http://www.h3x.no/?p=104</guid>
		<description><![CDATA[Here is a simple code PHP snippet to display the clock each 10 minutes x times in the format of:

php5 test.php
20:40
20:50
21:00
21:10
21:20
21:30
21:40
Etc.

&#60;?php

$j = 0;
for($i=0;$i&#60;10;$i+=1) {
        $j += (10*60);
        $hour = date("H", (time()+$j));
        $min  = [...]]]></description>
			<content:encoded><![CDATA[<p>Here is a simple code PHP snippet to display the clock each 10 minutes x times in the format of:</p>
<blockquote><p>
php5 test.php<br />
20:40<br />
20:50<br />
21:00<br />
21:10<br />
21:20<br />
21:30<br />
21:40</p></blockquote>
<p>Etc.</p>
<p><!-- Generator: GNU source-highlight 2.11.1<br />
by Lorenzo Bettini</p>
<p>http://www.lorenzobettini.it</p>
<p>http://www.gnu.org/software/src-highlite --></p>
<pre><tt><span style="color: #990000;">&lt;?php</span>

<span style="color: #009900;">$j</span> <span style="color: #990000;">=</span> <span style="color: #993399;">0</span><span style="color: #990000;">;</span>
<strong><span style="color: #0000ff;">for</span></strong><span style="color: #990000;">(</span><span style="color: #009900;">$i</span><span style="color: #990000;">=</span><span style="color: #993399;">0</span><span style="color: #990000;">;</span><span style="color: #009900;">$i</span><span style="color: #990000;">&lt;</span><span style="color: #993399;">10</span><span style="color: #990000;">;</span><span style="color: #009900;">$i</span><span style="color: #990000;">+=</span><span style="color: #993399;">1</span><span style="color: #990000;">)</span> <span style="color: #ff0000;">{</span>
        <span style="color: #009900;">$j</span> <span style="color: #990000;">+=</span> <span style="color: #990000;">(</span><span style="color: #993399;">10</span><span style="color: #990000;">*</span><span style="color: #993399;">60</span><span style="color: #990000;">);</span>
        <span style="color: #009900;">$hour</span> <span style="color: #990000;">=</span> <strong><span style="color: #000000;">date</span></strong><span style="color: #990000;">(</span><span style="color: #ff0000;">"H"</span><span style="color: #990000;">,</span> <span style="color: #990000;">(</span><strong><span style="color: #000000;">time</span></strong><span style="color: #990000;">()+</span><span style="color: #009900;">$j</span><span style="color: #990000;">));</span>
        <span style="color: #009900;">$min</span>  <span style="color: #990000;">=</span> <strong><span style="color: #000000;">ceil</span></strong><span style="color: #990000;">((</span><strong><span style="color: #000000;">date</span></strong><span style="color: #990000;">(</span><span style="color: #ff0000;">"i"</span><span style="color: #990000;">,</span> <span style="color: #990000;">(</span><strong><span style="color: #000000;">time</span></strong><span style="color: #990000;">()+</span><span style="color: #009900;">$j</span><span style="color: #990000;">))/</span><span style="color: #993399;">10</span><span style="color: #990000;">))*</span><span style="color: #993399;">10</span><span style="color: #990000;">;</span>
        <strong><span style="color: #0000ff;">if</span></strong><span style="color: #990000;">(</span><span style="color: #009900;">$min</span> <span style="color: #990000;">&gt;</span> <span style="color: #993399;">50</span><span style="color: #990000;">)</span> <span style="color: #ff0000;">{</span>
                <span style="color: #009900;">$min</span> <span style="color: #990000;">=</span> <span style="color: #ff0000;">"00"</span><span style="color: #990000;">;</span>
                <span style="color: #009900;">$hour</span><span style="color: #990000;">++;</span>
        <span style="color: #ff0000;">}</span>
        <strong><span style="color: #0000ff;">echo</span></strong> <span style="color: #009900;">$hour</span><span style="color: #990000;">.</span><span style="color: #ff0000;">":"</span><span style="color: #990000;">.</span><span style="color: #009900;">$min</span><span style="color: #990000;">.</span><span style="color: #ff0000;">"\n"</span><span style="color: #990000;">;</span>
<span style="color: #ff0000;">}</span>

<span style="color: #990000;">?&gt;</span>
</tt></pre>
]]></content:encoded>
			<wfw:commentRss>http://h3x.no/2009/08/16/display-clock-each-10-minutes-x-times-forward-in-php/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
