<?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/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>Mroddball&#039;s Ramblings</title>
	<atom:link href="http://mroddball.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://mroddball.wordpress.com</link>
	<description>Gentoo, php and probably some other things</description>
	<lastBuildDate>Sat, 19 Jun 2010 20:39:32 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='mroddball.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://0.gravatar.com/blavatar/cc19bc270b7a52f344756bd8f006a819?s=96&#038;d=http%3A%2F%2Fs2.wp.com%2Fi%2Fbuttonw-com.png</url>
		<title>Mroddball&#039;s Ramblings</title>
		<link>http://mroddball.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://mroddball.wordpress.com/osd.xml" title="Mroddball&#039;s Ramblings" />
	<atom:link rel='hub' href='http://mroddball.wordpress.com/?pushpress=hub'/>
		<item>
		<title>Web storage: lighttpd &amp; mod_webdav</title>
		<link>http://mroddball.wordpress.com/2010/06/19/web-storage-lighttpd-mod_webdav/</link>
		<comments>http://mroddball.wordpress.com/2010/06/19/web-storage-lighttpd-mod_webdav/#comments</comments>
		<pubDate>Sat, 19 Jun 2010 20:37:17 +0000</pubDate>
		<dc:creator>mroddball</dc:creator>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[webdav]]></category>

		<guid isPermaLink="false">http://mroddball.wordpress.com/?p=84</guid>
		<description><![CDATA[Today I found wonderful way of sharing files between home and office, and all this without the need of installing anything on my XP box. Just compile lighttpd with mod_webdav and then put few lines in your configuration like so: auth.backend = "htpasswd" auth.backend.htpasswd.userfile = "/etc/passwords" $HTTP["host"] =~ "my.dynamic.ip.domain" { auth.require = ( "" =&#62; [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=mroddball.wordpress.com&amp;blog=9709604&amp;post=84&amp;subd=mroddball&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Today I found wonderful way of sharing files between home and office, and all this without the need of installing anything on my XP box. Just compile lighttpd with mod_webdav and then put few lines in your configuration like so:</p>
<pre>
auth.backend = "htpasswd"
auth.backend.htpasswd.userfile = "/etc/passwords"
$HTTP["host"] =~ "my.dynamic.ip.domain" {
 auth.require = ( "" =&gt;
     (   "method"  =&gt; "basic",
         "realm"   =&gt; "webdav share",
         "require" =&gt; "user=webdav-user"
     )
    )
    #you don't have to show your files to anyone!
    dir-listing.activate = "disable"

    server.document-root = "webdata/dav/"
    webdav.activate = "enable"
    webdav.is-readonly = "disable"
    webdav.sqlite-db-name = "/var/run/lighttpd/lighttpd.webdav_lock.db"
}
</pre>
<p>Just to clarify, I had to assign folder to a new domain because for some reason Windows XP won&#8217;t use folder provided with URL. I had tried http://my.domain/dav but it still wanted to access http://my.domain/ according to log file. I also created this <a href="http://www.yggenyk.dk/wiki/How_to_fix_WebDAV_problems_with_Vista_and_XP_SP2_client">key</a> in registry, but dunno if it&#8217;s necessary.<br />
To mount it in windows just go to My computer, map network drive, use bottom link called &#8216;Sing up for online&#8230;.&#8217;, next, next, type in your address and that&#8217;s it!<br />
The beautiful this is, you don&#8217;t need to use port 80 or 443, it works on all of them. Also this is perfect if you&#8217;re behind some complex firewall, just run it on some popular port 465, 993, 443, 3389 and it should work.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/mroddball.wordpress.com/84/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/mroddball.wordpress.com/84/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/mroddball.wordpress.com/84/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/mroddball.wordpress.com/84/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/mroddball.wordpress.com/84/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/mroddball.wordpress.com/84/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/mroddball.wordpress.com/84/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/mroddball.wordpress.com/84/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/mroddball.wordpress.com/84/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/mroddball.wordpress.com/84/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/mroddball.wordpress.com/84/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/mroddball.wordpress.com/84/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/mroddball.wordpress.com/84/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/mroddball.wordpress.com/84/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=mroddball.wordpress.com&amp;blog=9709604&amp;post=84&amp;subd=mroddball&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://mroddball.wordpress.com/2010/06/19/web-storage-lighttpd-mod_webdav/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/ca1d9af8744e37f5436586aa5d56f548?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">mroddball</media:title>
		</media:content>
	</item>
		<item>
		<title>Exchange 2008 OWA and plain text messages</title>
		<link>http://mroddball.wordpress.com/2010/04/14/exchange-2008-owa-and-plain-text-messages/</link>
		<comments>http://mroddball.wordpress.com/2010/04/14/exchange-2008-owa-and-plain-text-messages/#comments</comments>
		<pubDate>Wed, 14 Apr 2010 17:36:17 +0000</pubDate>
		<dc:creator>mroddball</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[exchange]]></category>
		<category><![CDATA[outlook web access]]></category>
		<category><![CDATA[owa]]></category>

		<guid isPermaLink="false">http://mroddball.wordpress.com/?p=82</guid>
		<description><![CDATA[We had quite busy morning today searching for the source of this problem. Every mail going outside our domain was converted to plain text instead of staying in HTML. It turns out that like everything else in world this too could be solved with console, even if it was windows power shell. The value that [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=mroddball.wordpress.com&amp;blog=9709604&amp;post=82&amp;subd=mroddball&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>We had quite busy morning today searching for the source of this problem. Every mail going outside our domain was converted to plain text instead of staying in HTML. It turns out that like everything else in world this too could be solved with console, even if it was windows power shell. The value that had to be changed was <em>ContentType</em>. Simply typing: Set-RemoteDomain –Identity:Default -ContentType:MimeHTMLText solved our problem. If you have some other domains in Organisation Configuration -&gt; Hub Transport, then issue command for every one of them. That&#8217;s it <img src='http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>BTW: This <a href="http://www.articlesbase.com/software-articles/force-exchange-2007-to-send-as-plain-text-format-on-a-per-email-and-domain-basis-1912487.html">article</a> was source of solution, even if author was doing quite the opposite <img src='http://s0.wp.com/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> </p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/mroddball.wordpress.com/82/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/mroddball.wordpress.com/82/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/mroddball.wordpress.com/82/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/mroddball.wordpress.com/82/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/mroddball.wordpress.com/82/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/mroddball.wordpress.com/82/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/mroddball.wordpress.com/82/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/mroddball.wordpress.com/82/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/mroddball.wordpress.com/82/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/mroddball.wordpress.com/82/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/mroddball.wordpress.com/82/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/mroddball.wordpress.com/82/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/mroddball.wordpress.com/82/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/mroddball.wordpress.com/82/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=mroddball.wordpress.com&amp;blog=9709604&amp;post=82&amp;subd=mroddball&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://mroddball.wordpress.com/2010/04/14/exchange-2008-owa-and-plain-text-messages/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/ca1d9af8744e37f5436586aa5d56f548?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">mroddball</media:title>
		</media:content>
	</item>
		<item>
		<title>VMware tools on ESX debian guest</title>
		<link>http://mroddball.wordpress.com/2010/03/23/vmware-tools-on-esx-debian-guest/</link>
		<comments>http://mroddball.wordpress.com/2010/03/23/vmware-tools-on-esx-debian-guest/#comments</comments>
		<pubDate>Tue, 23 Mar 2010 21:05:28 +0000</pubDate>
		<dc:creator>mroddball</dc:creator>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[debian]]></category>
		<category><![CDATA[esx]]></category>
		<category><![CDATA[vmware]]></category>

		<guid isPermaLink="false">http://mroddball.wordpress.com/?p=76</guid>
		<description><![CDATA[Recently I realized that VMware tools shipped with ESX don&#8217;t always install without a glitch. After creating lenny guest, VMware told me that kernel isn&#8217;t compatible with it&#8217;s modules, so it will have to compile them from source, great, do it! Quick apt-get install binutils etc. and ./vmware-install. It didn&#8217;t go as well as I [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=mroddball.wordpress.com&amp;blog=9709604&amp;post=76&amp;subd=mroddball&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Recently I realized that VMware tools shipped with ESX don&#8217;t always install without a glitch. After creating lenny guest, VMware told me that kernel isn&#8217;t compatible with it&#8217;s modules, so it will have to compile them from source, great, do it! Quick apt-get install binutils etc. and ./vmware-install. It didn&#8217;t go as well as I hoped. Then I thought, hell, these ESX servers are pretty popular, there must be something in contrib repository, it can&#8217;t be so hard to do it. It turns out that VMware released &#8221;open source&#8221; version of their modules, packages are called open-vm-source and open-vm-tools. First you have to install source, then using m-a tool &#8216;prepare&#8217;, &#8216;build&#8217; and install it. Don&#8217;t worry about gcc, kernel headers etc, &#8216;prepare&#8217; installs and configures it all for you. Just sit back and after 3 minutes everything will be up and running <img src='http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/mroddball.wordpress.com/76/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/mroddball.wordpress.com/76/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/mroddball.wordpress.com/76/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/mroddball.wordpress.com/76/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/mroddball.wordpress.com/76/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/mroddball.wordpress.com/76/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/mroddball.wordpress.com/76/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/mroddball.wordpress.com/76/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/mroddball.wordpress.com/76/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/mroddball.wordpress.com/76/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/mroddball.wordpress.com/76/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/mroddball.wordpress.com/76/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/mroddball.wordpress.com/76/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/mroddball.wordpress.com/76/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=mroddball.wordpress.com&amp;blog=9709604&amp;post=76&amp;subd=mroddball&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://mroddball.wordpress.com/2010/03/23/vmware-tools-on-esx-debian-guest/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/ca1d9af8744e37f5436586aa5d56f548?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">mroddball</media:title>
		</media:content>
	</item>
		<item>
		<title>Cisco sip phone takes long time to dial ?</title>
		<link>http://mroddball.wordpress.com/2010/02/07/cisco-sip-phone-takes-long-time-to-dial/</link>
		<comments>http://mroddball.wordpress.com/2010/02/07/cisco-sip-phone-takes-long-time-to-dial/#comments</comments>
		<pubDate>Sun, 07 Feb 2010 20:37:09 +0000</pubDate>
		<dc:creator>mroddball</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[cisco]]></category>
		<category><![CDATA[sip]]></category>

		<guid isPermaLink="false">http://mroddball.wordpress.com/?p=71</guid>
		<description><![CDATA[Last week I&#8217;ve been trying to set up my Cisco 7961g with Asterisk. It took me some time to figure out that I need to turn off Nat option to get it working, but nonetheless, it was able to connect. Well, you could think that was it, end of story, but no. After typing number [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=mroddball.wordpress.com&amp;blog=9709604&amp;post=71&amp;subd=mroddball&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Last week I&#8217;ve been trying to set up my Cisco 7961g with Asterisk. It took me some time to figure out that I need to turn off Nat option to get it working, but nonetheless, it was able to connect. Well, you could think that was it, end of story, but no. After typing number and pressing dial it was waiting about five seconds before it started doing something. Well, if you haven&#8217;t done it before, let me tell you. These phones need configuration file, which they take from tftp server. Because they are quite complex and long I didn&#8217;t look into them too much, just took it from some site and there you go, it works. Google didn&#8217;t give me any answers, so I had to dig into it myself. It&#8217;s quite complicated when your phone takes about two minutes to reboot and read new configuration file, so blind guessing was no option. After few, obviously wrong, attempts to fix it, I decided to check out <strong>dialTemplate</strong> parameter. It points to file holding &#8230; well, I don&#8217;t remember exactly what, but after defining some examples like &#8220;6..&#8221; and dialing 678 it started ringing almost immediately. So there you go, if that&#8217;s the problem you have, create file and point to it in your SEPmac.cnf.xml.<br />
If you are trying to upgrade your phone, and you encounter problems, try upgrading it to slightly lower version, and then the newest one. If you haven&#8217;t tried it, let me give you another advice, always download *.cop files from Cisco, they contain almost everything you need to flash your phone. Good luck!</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/mroddball.wordpress.com/71/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/mroddball.wordpress.com/71/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/mroddball.wordpress.com/71/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/mroddball.wordpress.com/71/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/mroddball.wordpress.com/71/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/mroddball.wordpress.com/71/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/mroddball.wordpress.com/71/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/mroddball.wordpress.com/71/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/mroddball.wordpress.com/71/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/mroddball.wordpress.com/71/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/mroddball.wordpress.com/71/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/mroddball.wordpress.com/71/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/mroddball.wordpress.com/71/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/mroddball.wordpress.com/71/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=mroddball.wordpress.com&amp;blog=9709604&amp;post=71&amp;subd=mroddball&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://mroddball.wordpress.com/2010/02/07/cisco-sip-phone-takes-long-time-to-dial/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/ca1d9af8744e37f5436586aa5d56f548?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">mroddball</media:title>
		</media:content>
	</item>
		<item>
		<title>How to burn CloneCD dual layer images under linux</title>
		<link>http://mroddball.wordpress.com/2009/12/12/how-to-burn-clonecd-dual-layer-images-under-linux/</link>
		<comments>http://mroddball.wordpress.com/2009/12/12/how-to-burn-clonecd-dual-layer-images-under-linux/#comments</comments>
		<pubDate>Fri, 11 Dec 2009 22:01:02 +0000</pubDate>
		<dc:creator>mroddball</dc:creator>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[clonecd]]></category>

		<guid isPermaLink="false">http://mroddball.wordpress.com/?p=65</guid>
		<description><![CDATA[Ever wondered how to do that ? And what the hell to do with this .dvd file ? If you look into it, there is something about LayerBreak, all you have to do is use growisofs with ﻿﻿-use-the-force-luke=break: option, so LayerBreak=1234567 in clonecd&#8217;s .dvd equals ﻿﻿-use-the-force-luke=break:1234567 in growisofs. I personally use growisofs -speed=2.4 -use-the-force-luke=dao -use-the-force-luke=break:xxxxx [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=mroddball.wordpress.com&amp;blog=9709604&amp;post=65&amp;subd=mroddball&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Ever wondered how to do that ? And what the hell to do with this .dvd file ? If you look into it, there is something about <strong>LayerBreak</strong>, all you have to do is use growisofs with ﻿﻿-use-the-force-luke=break: option, so LayerBreak=1234567 in clonecd&#8217;s .dvd equals ﻿﻿-use-the-force-luke=break:1234567 in growisofs. I personally use<br />
 <code>growisofs -speed=2.4 -use-the-force-luke=dao -use-the-force-luke=break:xxxxx -Z /dev/dvd=image.iso</code><br />
 <strong>Remeber</strong> to put &#8216;=&#8217; between dvd device and iso image, if you don&#8217;t, it will burn iso file, not it&#8217;s contents.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/mroddball.wordpress.com/65/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/mroddball.wordpress.com/65/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/mroddball.wordpress.com/65/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/mroddball.wordpress.com/65/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/mroddball.wordpress.com/65/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/mroddball.wordpress.com/65/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/mroddball.wordpress.com/65/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/mroddball.wordpress.com/65/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/mroddball.wordpress.com/65/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/mroddball.wordpress.com/65/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/mroddball.wordpress.com/65/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/mroddball.wordpress.com/65/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/mroddball.wordpress.com/65/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/mroddball.wordpress.com/65/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=mroddball.wordpress.com&amp;blog=9709604&amp;post=65&amp;subd=mroddball&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://mroddball.wordpress.com/2009/12/12/how-to-burn-clonecd-dual-layer-images-under-linux/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/ca1d9af8744e37f5436586aa5d56f548?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">mroddball</media:title>
		</media:content>
	</item>
		<item>
		<title>Perl equivalent of setuid in C</title>
		<link>http://mroddball.wordpress.com/2009/12/04/perl-equivalent-of-setuid-in-c/</link>
		<comments>http://mroddball.wordpress.com/2009/12/04/perl-equivalent-of-setuid-in-c/#comments</comments>
		<pubDate>Fri, 04 Dec 2009 19:49:40 +0000</pubDate>
		<dc:creator>mroddball</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[perl]]></category>

		<guid isPermaLink="false">http://mroddball.wordpress.com/?p=59</guid>
		<description><![CDATA[Last week I had to write small server in perl that would replace set of scripts with similar functionality. After some tests it was time to put it on main server, so I wrote init.d script and realised that it would run with root privileges. It couldn&#8217;t do any damage, but I couldn&#8217;t leave it like that. [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=mroddball.wordpress.com&amp;blog=9709604&amp;post=59&amp;subd=mroddball&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Last week I had to write small server in perl that would replace set of scripts with similar functionality. After some tests it was time to put it on main server, so I wrote init.d script and realised that it would run with root privileges. It couldn&#8217;t do any damage, but I couldn&#8217;t leave it like that. Well, how hard can it be, was what I thought, after all there was something like setuid in C. After couple of hours on google I came to sad conclusion &#8211; there is no such <em>function</em> in perl, so I perused through cpan to find module that would provide me with this feature and there it was - <a href="http://search.cpan.org/~mschilli/App-Daemon-0.08/Daemon.pm">App-Daemon</a>.  Great, but then I thoung, wait, how is it able to do this &#8230;. Daemon.pm is small, let&#8217;s find function that is responsible for this. I couldn&#8217;t believe it was so simple, the only thing to do was:<br />
<code><br />
my ($name,$passwd,$uid) = getpwnam($as_user);<br />
$&gt; = $uid<br />
</code></p>
<p>If only I had paid more attention while going through Google results I think I would have found it sooner.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/mroddball.wordpress.com/59/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/mroddball.wordpress.com/59/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/mroddball.wordpress.com/59/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/mroddball.wordpress.com/59/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/mroddball.wordpress.com/59/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/mroddball.wordpress.com/59/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/mroddball.wordpress.com/59/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/mroddball.wordpress.com/59/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/mroddball.wordpress.com/59/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/mroddball.wordpress.com/59/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/mroddball.wordpress.com/59/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/mroddball.wordpress.com/59/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/mroddball.wordpress.com/59/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/mroddball.wordpress.com/59/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=mroddball.wordpress.com&amp;blog=9709604&amp;post=59&amp;subd=mroddball&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://mroddball.wordpress.com/2009/12/04/perl-equivalent-of-setuid-in-c/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/ca1d9af8744e37f5436586aa5d56f548?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">mroddball</media:title>
		</media:content>
	</item>
		<item>
		<title>Boot linux with PXE and pendrive</title>
		<link>http://mroddball.wordpress.com/2009/10/22/boot-linux-with-pxe-and-pendrive/</link>
		<comments>http://mroddball.wordpress.com/2009/10/22/boot-linux-with-pxe-and-pendrive/#comments</comments>
		<pubDate>Thu, 22 Oct 2009 20:32:25 +0000</pubDate>
		<dc:creator>mroddball</dc:creator>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[debian]]></category>
		<category><![CDATA[pxe]]></category>

		<guid isPermaLink="false">http://mroddball.wordpress.com/?p=35</guid>
		<description><![CDATA[I&#8217;ve been into computers for some time now and although nowadays old hardware is considered of no use, I still keep couple of my previous machines.  Oldest one has AMD&#8217;s K5 processor which runs at 75 Mhz, 64 MB of memory,  and two PCI cards &#8211; USB and ethernet. Well, it may be not impressive, but what [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=mroddball.wordpress.com&amp;blog=9709604&amp;post=35&amp;subd=mroddball&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve been into computers for some time now and although nowadays old hardware is considered of no use, I still keep couple of my previous machines.  Oldest one has AMD&#8217;s K5 processor which runs at 75 Mhz, 64 MB of memory,  and two PCI cards &#8211; USB and ethernet. Well, it may be not impressive, but what I really like about it it&#8217;s that CPU only needs heat sink (which is really small, not like some Thermaltake copper towers), also I replaced fan in PSU so that there was hardly any noise coming from case. The only problem was hard disk. Racket coming from spinning platters was unbearable and let be honest, almost all hard disk suffer from this problem. They are often the noisiest part of PC. So that got me thinking, how can I still use that old piece of junk and make it quiet. Answer came almost immediately &#8211; pendrive. Idea wasn&#8217;t bad but there was little problem, there was no way to make it boot from usb. Another idea &#8211; buy a CompactFlash card and device to emulate it as hdd, but I didn&#8217;t want to waste money, even if it wasn&#8217;t much. I was in dead end, there wasn&#8217;t a single thing I could think about that would help me.</p>
<p>After several months I came across something called PXE. It let&#8217;s you boot computer using ethernet card, dhcp and tftp server.  It isn&#8217;t as easy as normal hdd or floppy booting, but still it&#8217;s fairly straightforward. Almost all network cards support PXE booting, but to be on safe side you better check before proceeding.</p>
<p><strong>DHCP Server</strong></p>
<p>Next thing was to set up dhcp and tftp. First tutorial I found mentioned using <a href="https://www.isc.org/software/dhcp" target="_blank">ISC dhcp</a> server which I had no experience with. I decided to go in different direction, so after getting some courage (in form of two beers), I dig into <a href="http://www.thekelleys.org.uk/dnsmasq/" target="_blank">dnsmasq</a> documentation, which I was using for a long time. I turned out that not only it was capable of providing PXE booting but also had build in tftp server, lucky! Here are the lines that you have to add to <em>dnsmasq.conf</em> (don&#8217;t forget to set dhcp-range too)<br />
<code><br />
dhcp-boot=pxelinux.0<br />
enable-tftp<br />
tftp-root=/var/lib/tftpboot</code></p>
<p>You can put tftp-root wherever you like, I don&#8217;t even remember why I decided to put it there. Next thing to do is to get pxelinux.0 &#8230;.. to tell you the truth I don&#8217;t remember where I found mine, but it turns out that there is one in <a href="http://packages.debian.org/lenny/syslinux-common" target="_blank">syslinux-common</a> package in debian, just click on <em>&#8220;all&#8221;</em> link in table and unpack it with p7zip. After placing pxelinux.0 in tftp it&#8217;s time to create some configuration.</p>
<p><code>cd /var/lib/tftpboot/<br />
mkdir pxelinux.cfg<br />
cd pxelinux.cfg</code></p>
<p>In that directory create <em>default</em> file using your favourite editor, and put this in it:</p>
<p><code>default huge<br />
timeout 1000<br />
label huge<br />
kernel bzImg-slack-13<br />
append ro root=/dev/sda1 slowusb rootdelay=15 rootwait</code></p>
<p>If you ever used lilo you can probably tell that it&#8217;s quite similar to lilo.conf. Kernel file defined in fourth line must be placed in tftp root directory. Last line tells kernel where to find root device and what options to use. I had to add <em>rootdelay</em> and <em>rootwait</em> because when it comes to detecting usb devices at boot time it can be quite tricky. On that particular hardware it takes about 5 to 10 seconds to fully detect my pendrive, and if you think that kernel will just politely wait for it, prepare to be surprised.</p>
<p><strong>System</strong></p>
<p>OK, after about 580 words it&#8217;s time to prepare that pendrive. There are couple of methods of installing linux on them, but I didn&#8217;t really look into any of them, and decided to try one of debian tools called debootstrap. It let&#8217;s you install debian in any directory you like in two steps</p>
<p><code>mkdir /mydebstr<br />
debootstrap lenny /mydebstr http://ftp.us.debian.org/debian</code></p>
<p>It may take some time, but it&#8217;s the easiest way I&#8217;ve ever seen of installing linux. After it&#8217;s done you have to move it to your pendrive, I don&#8217;t know if just moving it will work so I always use tar.<br />
<code><br />
mkfs.ext3 /dev/sda1<br />
mkdir /mnt/pxestick<br />
mount /dev/sda1 /mnt/pxestick<br />
cd /mydebstr<br />
tar -cf - . | tar -xf - -C /mnt/pxestick<br />
cd /<br />
umount /mnt/pxestick<br />
rm -r /mnt/pxestick</code></p>
<p><strong>Kernel</strong></p>
<p>Almost everything is ready, but we still need a kernel, and not just any kernel. The one we need must have build in usb, ext3, usb storage, and preferably networking support and drivers for your card but it isn&#8217;t necessary. Unfortunately most distributions provide small kernel with only a few things build in, and leave rest as modules, then at installation they create initrd with necessary modules and everything is OK. One distribution however offers so called huge kernel &#8211; <a href="http://www.slackware.com" target="_blank">slackware</a>. Just visit one of <a href="http://www.slackware.com/getslack/" target="_blank">mirrors</a> and get it from slackware-current/kernels/huge.s/ directory. Just put it in tftp root directory and name it accordingly to <em>default</em> configuration file (mine was called bzImg-slack-13).</p>
<p><strong>Final steps</strong></p>
<p>There are two things left, first, debootstrap doesn&#8217;t install udev, so you have to do it yourself. I just put it on pendrive in form of .deb file and then used <em>dpkg -i</em>. It isn&#8217;t necessary but &#8230;. well, quite useful. Second thing &#8211; it&#8217;s probable that your ethernet card won&#8217;t be in slackware kernel, but fear not. In slackware-current/slackware/a/ there is something called kernel-modules. Just unpack it to / on pendrive also download System.map.gz from kernel directory that I mentioned earlier and place it in /boot directory. After booting you can <em>modprobe</em> your card&#8217;s module or make it so that&#8217;s done automatically. Slackware uses something called XZ to compress files, which was new to me. There are xz-tools in both portage and in debian repositories and if I remember correctly they replace previous lzma tools you might have had on system. Recent version of p7zip may also have support for that format.</p>
<p><strong>It works &#8230; ?</strong></p>
<p>Now if you didn&#8217;t make any mistakes you should be able to successfully boot PC with that pendrive and dnsmasq. I think I didn&#8217;t miss anything vital too, but if you spot something, don&#8217;t forget to mention it in form of a comment or something. I may have mentioned that it&#8217;s <em>fairly easy</em> to do this, but it turned out to be quite a long post, and you can&#8217;t really call something easy when it takes so many words to describe. <span style="background-color:#ffffff;">Well, maybe so, but if you take the essence, it will be only a few copy/paste while some files are downloading, then put it on pendrive and that&#8217;s all.</span></p>
<p>If you think this is cool then there is even more, you don&#8217;t even need a pendrive to boot system, there is something called CONFIG_ROOT_NFS. You can get kernel from PXE and use system directly from nfs share on network, and it doesn&#8217;t end there, how about booting whole bunch of computers this way ? It has all sorts of benefits, you don&#8217;t have to worry about updating software on each of them because everyone uses the same files, and because of that backup is easy too. But that you have to check yourself.</p>
<p>Enjoy!</p>
<p>BTW, I forgot to mention this but AMD K5 needs about 10 W to run, pendrive, usb and network card almost nothing too, so it&#8217;s power consumption is about 10 times less than any normal computer (Some AMD Phenoms need 125 W&#8230;)</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/mroddball.wordpress.com/35/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/mroddball.wordpress.com/35/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/mroddball.wordpress.com/35/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/mroddball.wordpress.com/35/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/mroddball.wordpress.com/35/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/mroddball.wordpress.com/35/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/mroddball.wordpress.com/35/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/mroddball.wordpress.com/35/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/mroddball.wordpress.com/35/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/mroddball.wordpress.com/35/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/mroddball.wordpress.com/35/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/mroddball.wordpress.com/35/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/mroddball.wordpress.com/35/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/mroddball.wordpress.com/35/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=mroddball.wordpress.com&amp;blog=9709604&amp;post=35&amp;subd=mroddball&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://mroddball.wordpress.com/2009/10/22/boot-linux-with-pxe-and-pendrive/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/ca1d9af8744e37f5436586aa5d56f548?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">mroddball</media:title>
		</media:content>
	</item>
		<item>
		<title>Upload images to imageshack from command line</title>
		<link>http://mroddball.wordpress.com/2009/10/13/upload-images-to-imageshack-from-command-line/</link>
		<comments>http://mroddball.wordpress.com/2009/10/13/upload-images-to-imageshack-from-command-line/#comments</comments>
		<pubDate>Tue, 13 Oct 2009 18:31:25 +0000</pubDate>
		<dc:creator>mroddball</dc:creator>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[imageshack]]></category>

		<guid isPermaLink="false">http://mroddball.wordpress.com/?p=28</guid>
		<description><![CDATA[Yet again I had to upload some photos, but having so many of them I thought imageshack would be better and cheaper option than to host them on my site. The only problem was, how to upload that many files without using zip file option, which (afaik) has a limit, or uploading each photo separately. After [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=mroddball.wordpress.com&amp;blog=9709604&amp;post=28&amp;subd=mroddball&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Yet again I had to upload some photos, but having so many of them I thought imageshack would be better and cheaper option than to host them on my site. The only problem was, how to upload that many files without using zip file option, which (afaik) has a limit, or uploading each photo separately. After some time I found python/perl/php scripts that used curl, but those scripts were imo way too long and sometimes overcomplicated. I looked up output of some curl lines and put one of them in bash script.</p>
<p><code>curl -H Expect: -F fileupload="@$1" -F xml=yes -# "http://www.imageshack.us/index.php"</code></p>
<p>Output of this command is pure XML, you should really check it out. The script is here <a title="Pastebin" href="http://pastebin.com/f46bd93ab" target="_blank">pastebin</a>. Easiest way of using it is just to <code>./up2imgshack picture.jpg</code>, but since I had many files the line for me was</p>
<p><code>find . -iname "*.jpg" -exec ./up2imgshack {} \;</code></p>
<p>Enjoy!</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/mroddball.wordpress.com/28/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/mroddball.wordpress.com/28/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/mroddball.wordpress.com/28/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/mroddball.wordpress.com/28/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/mroddball.wordpress.com/28/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/mroddball.wordpress.com/28/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/mroddball.wordpress.com/28/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/mroddball.wordpress.com/28/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/mroddball.wordpress.com/28/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/mroddball.wordpress.com/28/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/mroddball.wordpress.com/28/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/mroddball.wordpress.com/28/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/mroddball.wordpress.com/28/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/mroddball.wordpress.com/28/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=mroddball.wordpress.com&amp;blog=9709604&amp;post=28&amp;subd=mroddball&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://mroddball.wordpress.com/2009/10/13/upload-images-to-imageshack-from-command-line/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/ca1d9af8744e37f5436586aa5d56f548?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">mroddball</media:title>
		</media:content>
	</item>
		<item>
		<title>Fix java in opera on amd64</title>
		<link>http://mroddball.wordpress.com/2009/10/09/fix-java-in-opera-on-amd64/</link>
		<comments>http://mroddball.wordpress.com/2009/10/09/fix-java-in-opera-on-amd64/#comments</comments>
		<pubDate>Fri, 09 Oct 2009 20:05:46 +0000</pubDate>
		<dc:creator>mroddball</dc:creator>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[gentoo]]></category>
		<category><![CDATA[java]]></category>

		<guid isPermaLink="false">http://mroddball.wordpress.com/?p=24</guid>
		<description><![CDATA[Haven&#8217;t really used java recently, but after some time I forgot what symbolic link I created to get it to work in opera. After some googling I removed old 1.6.0.13 link and created new 1.6.0.15 ln -s /opt/sun-jdk-1.6.0.15/jre/lib/amd64/server/libjvm.so /opt/sun-jdk-1.6.0.15/jre/lib/amd64/ If you happen to have some other version just change paths, enjoy!<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=mroddball.wordpress.com&amp;blog=9709604&amp;post=24&amp;subd=mroddball&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Haven&#8217;t really used java recently, but after some time I forgot what symbolic link I created to get it to work in opera. After some googling I removed old 1.6.0.13 link and created new 1.6.0.15</p>
<p><code>ln -s /opt/sun-jdk-1.6.0.15/jre/lib/amd64/server/libjvm.so /opt/sun-jdk-1.6.0.15/jre/lib/amd64/</code></p>
<p>If you happen to have some other version just change paths, enjoy!</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/mroddball.wordpress.com/24/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/mroddball.wordpress.com/24/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/mroddball.wordpress.com/24/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/mroddball.wordpress.com/24/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/mroddball.wordpress.com/24/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/mroddball.wordpress.com/24/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/mroddball.wordpress.com/24/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/mroddball.wordpress.com/24/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/mroddball.wordpress.com/24/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/mroddball.wordpress.com/24/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/mroddball.wordpress.com/24/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/mroddball.wordpress.com/24/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/mroddball.wordpress.com/24/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/mroddball.wordpress.com/24/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=mroddball.wordpress.com&amp;blog=9709604&amp;post=24&amp;subd=mroddball&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://mroddball.wordpress.com/2009/10/09/fix-java-in-opera-on-amd64/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/ca1d9af8744e37f5436586aa5d56f548?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">mroddball</media:title>
		</media:content>
	</item>
		<item>
		<title>Quick way to create gallery with PHP and imagemagick</title>
		<link>http://mroddball.wordpress.com/2009/09/29/quick-way-to-create-gallery-with-php-and-imagemagick/</link>
		<comments>http://mroddball.wordpress.com/2009/09/29/quick-way-to-create-gallery-with-php-and-imagemagick/#comments</comments>
		<pubDate>Tue, 29 Sep 2009 20:32:34 +0000</pubDate>
		<dc:creator>mroddball</dc:creator>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[imagemagick]]></category>
		<category><![CDATA[php]]></category>

		<guid isPermaLink="false">http://mroddball.wordpress.com/?p=10</guid>
		<description><![CDATA[Last week I had to upload some photos for my family, but it&#8217;s rather ugly just to have apache&#8217;s &#8220;Index of&#8221; page when people are used to have nice thumbnails. After a couple of minutes I&#8217;ve come up with this: pastebin. Just put it in .php file, upload photos in the same folder and type [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=mroddball.wordpress.com&amp;blog=9709604&amp;post=10&amp;subd=mroddball&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Last week I had to upload some photos for my family, but it&#8217;s rather ugly just to have apache&#8217;s &#8220;Index of&#8221; page when people are used to have nice thumbnails. After a couple of minutes I&#8217;ve come up with this: <a href="http://pastebin.com/f497476d4">pastebin</a>. Just put it in .php file, upload photos in the same folder and type this commands:</p>
<p><code>mkdir thumb</code><br />
<code>find . -maxdepth 1 -iname "*.jpg" -exec convert {} -resize 10% -quality 75 thumb/{} \;</code></p>
<p>Depending on how big your photos are, you will have to play a little with -resize option, but safest way is to define static like -resize 250&#215;188, and if you think some of the pictures won&#8217;t look good don&#8217;t worry. Imagemagick checks if ratio will be the same after conversion, and in case that it wouldn&#8217;t  be, height takes precedence.  Imagemagick can be used directly from php, but it could take some time to generate all thumbnails and some hosting companies set <em>max_execution_time </em>to lower than minute (default is 30 seconds).</p>
<p><span style="background-color:#ffffff;">Enjoy!</span></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/mroddball.wordpress.com/10/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/mroddball.wordpress.com/10/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/mroddball.wordpress.com/10/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/mroddball.wordpress.com/10/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/mroddball.wordpress.com/10/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/mroddball.wordpress.com/10/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/mroddball.wordpress.com/10/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/mroddball.wordpress.com/10/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/mroddball.wordpress.com/10/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/mroddball.wordpress.com/10/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/mroddball.wordpress.com/10/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/mroddball.wordpress.com/10/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/mroddball.wordpress.com/10/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/mroddball.wordpress.com/10/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=mroddball.wordpress.com&amp;blog=9709604&amp;post=10&amp;subd=mroddball&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://mroddball.wordpress.com/2009/09/29/quick-way-to-create-gallery-with-php-and-imagemagick/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/ca1d9af8744e37f5436586aa5d56f548?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">mroddball</media:title>
		</media:content>
	</item>
	</channel>
</rss>
