<?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>Everything Is Crap</title>
	<atom:link href="http://www.everythingiscrap.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.everythingiscrap.com</link>
	<description>Notes on the crap we&#039;ve been subjected to</description>
	<lastBuildDate>Mon, 06 Sep 2010 19:45:46 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>iPad first look</title>
		<link>http://www.everythingiscrap.com/2010/09/06/ipad-first-look/</link>
		<comments>http://www.everythingiscrap.com/2010/09/06/ipad-first-look/#comments</comments>
		<pubDate>Mon, 06 Sep 2010 19:44:36 +0000</pubDate>
		<dc:creator>kris</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://everythingiscrap.com/?p=621</guid>
		<description><![CDATA[Ok, first of all, this is not meant to be a full blown iPad review.  This is just a list of notes I made when I first got my iPad and tried it out.  FYI &#8211; I have never had an iPod or iPhone although I have played with them a bit.  I DO have [...]]]></description>
			<content:encoded><![CDATA[<div><a href="http://everythingiscrap.com/wp-content/uploads/2010/09/hardware05.png"><img class="alignleft size-full wp-image-622" title="iPad" src="http://everythingiscrap.com/wp-content/uploads/2010/09/hardware05.png" alt="" width="130" height="84" /></a>Ok, first of all, this is not meant to be a full blown iPad review.  This is just a list of notes I made when I first got my iPad and tried it out.  FYI &#8211; I have never had an iPod or iPhone although I have played with them a bit.  I DO have an Android phone (HTC Hero w/ 2.1) which I use daily.  So, as you might guess, my look at the iPad is skewed from the view of a person that knows and loves the Android OS.  I do work with Mac’s at work so I am very familiar with Apple and OSX.</div>
<div></div>
<div>So, here is what I’ve noticed so far:</div>
<div>
<ul>
<li>Plain, ugly, boring white box.  Doesn’t grab my attention.  Terrible white usb cord and power adapter.  Similar to what they use on macs which get dirty fast and then look bad.</li>
<li>Can’t do ANYTHING till you sync to iTunes.  Not cool.</li>
<li>Had to install iTunes (and Quicktime).  Not clear which download to pick.  One says "iTunes 9.2.1 for Windows XP, Vista or Windows 7.  Other says "iTunes 9.2.1 for Windows (64-bit)".  I have Win7 64 bit so both of these apply.  Unclear which one.  Should say "iTunes 9.2.1 for all 64bit versions of Windows". (does explain it below but should be no question).</li>
<li>Had someone else’s files on my desktop when I first started up iTunes so iTunes pulled in those files as music.  Deleted them on desktop and they didn't get removed from iTunes.  Couldn't find anyway to re-sync library.  Found out it made copies of those files into "Music" under my user.  Deleted them there and still would not disappear from iTunes library.  Finally deleted them from iTunes library inside iTunes but obviously didn't find them all because when I went to sync it had 20+ items that it said were in my library but not found on disk.  No way to say "remove them from library".  Not even sure where they are in library.  iTunes asked if it should sync my pics.  Looking at "library" and don't even see pics.  Not sure what it is going to sync &#8211; unclear. I know none of this is really about the iPad but the fact that you have to use the terrible iTunes software to get things on the iPad is the point.</li>
<li>Picked up the iPad &#8211; in my hand &#8211; this thing has a slippery back!?  Keeps sliding out of my hand.  Why is it not rubberized?  Have to have a too tight grip on it.  Hard to hold (especially one handed) because of this.  Looks nice but not very comfortable.</li>
<li>Turning it on &#8211; Apple logo at boot-up looks cracked.  Like it’s broken.  Strange.</li>
<li>The default background has weird lines in sky &#8211; looks like scratches.  Odd choice for a shiny new device.  Many of the other backgrounds are grainy (not nice sharp pictures).</li>
<li>I do like how snappy it is (wish my HTC Hero had a faster processor)</li>
<li>It is called a 16 gig model but in the iPad it says the capacity is 14GB.  Now I know why this is and that this is an industry problem with storage devices.  BUT &#8211; this is not a storage device and should represent the capacity the same on the box as in the OS.</li>
<li>iTunes requires a number in your password but the ipad keyboard shows no numbers without going to second page.  (and you have to put your password in a lot)</li>
<li>Calendar, contacts, notes, etc all are graphical and look like real life items.  But you go into iPod and default view is “Songs” which is boring list of songs like a spreadsheet.  “Albums” view is “ok” but it still wastes a lot of screen on word lists on the left.</li>
<li>Opened Safari for first time and is blank page &#8211; no homepage?  How boring/weird.  Can’t fine options to set homepage and then remembered all settings are in “Settings” app (very weird) but look in there and can’t find option for homepage.  Also noticed that not ALL apps have settings in Settings.  Google Maps has options on weird turned-up page corner at lower right.  Inconsistent way to find options for apps = very annoying.</li>
<li>Clicked on “Legal Notices&#8230;” in Maps and opened a webpage in Safari which is fine &#8211; but NO BACK BUTTON to take me back to where I was when I clicked that link!  Many times I’ve wanted to click the back button but there is none.</li>
<li>In App store, “New and Noteworthy” section has 4 little dots just like on home screens of iPad.  On iPad you “flip” between each screen (slide left and right) to change screens.  On app store the same little indicators are there but you can’t slide it left and right &#8211; you have to use the arrows.  Design from the same company should be consistent and have the same functionality.</li>
<li>I like the Marketplace better than the Android’s.  Easier to find what’s “good” right up front.  Also, better selection at this time (however this is changing fast!)</li>
<li>What!? &#8211; click on an app to install works fine BUT brings you out of app store to where it is putting it on home screen.  Of course NO BACK BUTTON so now you have to find the home screen that has the app icon to go back to where you where.  Should just start installing and leave you in app store to download more apps.  Don’t they want you to download more apps?</li>
<li>”TOP GROSSING iPad APPS” &#8211; what kind of category name is that???  Lets just stick to top selling&#8230;</li>
<li>Looking at an app for $5 and can’t seem to figure out if it is made for iPad or iPhone &#8211; all I can fine is “Compatible with iPad”.  Yeah, ALL apps are compatible with ipad &#8211; doesn’t mean that it will fill the screen properly.  Should be more clear.</li>
<li>Keyboard always shows uppercase letters?  Very strange.  Why not show the correct case so you know what you’re going to type?</li>
<li>iPad screen shape is weird so regular widescreen movies are very small (lots of wasted screen)</li>
<li>Keyboard changes based on what it thinks you might need but it is often wrong.  Example, in a login (username) box it gets rid of “.com” even though many of my login username is my email address.</li>
<li>It is hard to highlight text. Also, you can't place cursor where you want it.</li>
</ul>
<p>That’s it for now &#8211; I’m not sure I can take much more.  It amazes me that the reality distortion field (<a href="http://www.winsupersite.com/alt/apple_tablet.asp">Paul Thrrott talks about it a lot</a>) is so strong that people are willing to overlook the little things that make a device great.  The iPhone was an important device to make &#8211; it turned phone design up a notch and we have great choices now.  I’m hoping the iPad does the same thing.  I believe the tablet form factor will be important (<a href="http://www.slipperybrick.com/2008/01/star-trek-gadgets/">as proved by Star Trek</a>) but this is not selling me on it yet.  I’ll be interested to play with a Windows version and an Android (or Chrome OS) version when they’re out.  Currently, the Android OS is far superior in every way in my opinion.  iOS has got a long way to go to catch up.  But knowing Apple I’m pretty sure they’re not interested in that.</p>
</div>
]]></content:encoded>
			<wfw:commentRss>http://www.everythingiscrap.com/2010/09/06/ipad-first-look/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Setting up console session shadowing</title>
		<link>http://www.everythingiscrap.com/2010/07/30/setting-up-console-session-shadowing/</link>
		<comments>http://www.everythingiscrap.com/2010/07/30/setting-up-console-session-shadowing/#comments</comments>
		<pubDate>Fri, 30 Jul 2010 17:30:41 +0000</pubDate>
		<dc:creator>kris</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[remote desktop]]></category>
		<category><![CDATA[windows]]></category>

		<guid isPermaLink="false">http://everythingiscrap.com/?p=614</guid>
		<description><![CDATA[I recently learned a new trick (thanks Richard&#8230;) and this is how to set it up.  To remote to a computer and then control the console session just type: shadow 0 To initally set this up you have to do the following: Open the Group Policy snap-in (Gpedit.msc). In the left pane, under the Computer Configuration [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://everythingiscrap.com/wp-content/uploads/2010/07/Network-Remote-Desktop-icon.png"><img class="alignright size-thumbnail wp-image-617" title="Network-Remote-Desktop-icon" src="http://everythingiscrap.com/wp-content/uploads/2010/07/Network-Remote-Desktop-icon-150x150.png" alt="" width="150" height="150" /></a>I recently learned a new trick (<a href="http://puzzleflow.us/" target="_blank">thanks Richard&#8230;</a>) and this is how to set it up.  To remote to a computer and then control the console session just type:</p>
<blockquote><p>shadow 0</p></blockquote>
<p>To initally set this up you have to do the following:</p>
<blockquote>
<ol>
<li>Open the Group Policy snap-in (Gpedit.msc).</li>
<li>In the left pane, under the <strong>Computer Configuration</strong> branch, expand the<strong>Administrative Templates</strong> branch.</li>
<li>Expand the <strong>Windows Components</strong> branch.</li>
<li>Click the <strong>Terminal Services</strong> folder.</li>
<li>In the right pane, double-click <strong>Sets rules for remote control of Terminal Services user sessions</strong>.</li>
<li>On the <strong>Setting</strong> tab, click <strong>Enabled</strong>.</li>
<li>In the <strong>Options</strong> box, click <strong>Full Control with users' permission</strong>, and then click <strong>OK</strong>. (or pick the appropriate option)</li>
</ol>
</blockquote>
<p>(<a href="http://support.microsoft.com/kb/278845" target="_blank">from here</a>)</p>
]]></content:encoded>
			<wfw:commentRss>http://www.everythingiscrap.com/2010/07/30/setting-up-console-session-shadowing/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Remove a directory: rm -rf</title>
		<link>http://www.everythingiscrap.com/2010/07/28/remove-a-directory-rm-rf/</link>
		<comments>http://www.everythingiscrap.com/2010/07/28/remove-a-directory-rm-rf/#comments</comments>
		<pubDate>Wed, 28 Jul 2010 14:53:20 +0000</pubDate>
		<dc:creator>paul</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://www.everythingiscrap.com/?p=610</guid>
		<description><![CDATA[I've Googled this about 10 times now, maybe if I write it down I'll remember: rm -rf The -r means recursive, and the -f means force; which means it will ignore the fact that the directory is full.]]></description>
			<content:encoded><![CDATA[<p>I've Googled this about 10 times now, maybe if I write it down I'll remember:</p>
<p><code>rm -rf</code></p>
<p>The -r means recursive, and the -f means force; which means it will ignore the fact that the directory is full.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.everythingiscrap.com/2010/07/28/remove-a-directory-rm-rf/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Samba: Meh.</title>
		<link>http://www.everythingiscrap.com/2010/07/15/samba-meh/</link>
		<comments>http://www.everythingiscrap.com/2010/07/15/samba-meh/#comments</comments>
		<pubDate>Thu, 15 Jul 2010 14:24:23 +0000</pubDate>
		<dc:creator>paul</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[samba]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://www.everythingiscrap.com/?p=604</guid>
		<description><![CDATA[I'll start by saying Samba is not as easy as it should be, even when it's fully set up and working, but it gets the job done, and SFTP gets so tedious after a while. Here's what I had to do to get it working. First, install it: apt-get install samba Next, edit /etc/samba/smb.conf and [...]]]></description>
			<content:encoded><![CDATA[<p><img src="http://www.everythingiscrap.com/wp-content/uploads/2010/07/Samba.logo_.png" alt="" title="Samba Logo" width="400" height="206" class="size-full wp-image-605" /></p>
<p>I'll start by saying Samba is not as easy as it should be, even when it's fully set up and working, but it gets the job done, and SFTP gets so tedious after a while.</p>
<p>Here's what I had to do to get it working. First, install it:</p>
<p><code>apt-get install samba</code></p>
<p>Next, edit /etc/samba/smb.conf and add something like this:</p>
<p><code>[www]
comment = My Shared Stuff
path = /my/folder
browseable = yes
read only = no</code></p>
<p>(I added it at the bottom of the file so that I could find it quickly)</p>
<p>I reloaded samba at that point, but I'm not positive it's necessary:</p>
<p><code>service smbd reload</code></p>
<p>Then, and this is the part I had forgotten from setting it up last time, I added my user to the list of samba users:</p>
<p><code>smbpasswd -L -a username</code></p>
<p>Done. Now get back to work!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.everythingiscrap.com/2010/07/15/samba-meh/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>There&#039;s inheritance, and then there&#039;s inheritance</title>
		<link>http://www.everythingiscrap.com/2010/07/14/theres-inheritance-and-then-theres-inheritance/</link>
		<comments>http://www.everythingiscrap.com/2010/07/14/theres-inheritance-and-then-theres-inheritance/#comments</comments>
		<pubDate>Wed, 14 Jul 2010 20:09:50 +0000</pubDate>
		<dc:creator>paul</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[acl]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://www.everythingiscrap.com/?p=596</guid>
		<description><![CDATA[&#8230;no, not the money kind of inheritance. I'm talking about the ownership and permissions in Linux. Linux permissions are tricky for a Windows guy like me. When I copy a file to a directory on a server I expect the file to inherit the permission of the containing folder on the server. Period. Why? Because [...]]]></description>
			<content:encoded><![CDATA[<p><img src="http://www.everythingiscrap.com/wp-content/uploads/2010/07/wq-money-woman.jpg" alt="" title="Inheritance" width="400" height="384" class="alignnone size-full wp-image-597" /><br />
&#8230;no, not the <em>money</em>  kind of inheritance. I'm talking about the ownership and permissions in Linux. </p>
<p>Linux permissions are tricky for a Windows guy like me. When I copy a file to a directory on a server I expect the file to inherit the permission of the containing folder on the server. Period. Why? Because that's what NTFS does; that's how it works! Linux it's a bit more complex. </p>
<p>I don't understand it enough to explain it, but here are some of the links and notes on what I've learned so far.</p>
<p>I <a href="http://www.windowsitpro.com/article/interoperability/acl-on-unix.aspx">activated ACL</a> for the volume I was working on.</p>
<p><code>apt-get install acl</code></p>
<p>I had to edit /etc/fstab so that the / line read something like "/dev/sda1/ ext3acl,defaults,errors=remount-ro 0 1" then reboot.</p>
<p>This allowed me to <a href="http://www.vanemery.com/Linux/ACL/linux-acl.html">set permissions and default permissions for each folder using ACL</a>. Here's the command I used:</p>
<p><code>setfacl -R --set u::rwx,g::r-x,o::- /www/
setfacl -R -d --set u::rwx,g::r-x,o::- /www/

setfacl -R -m g::rwx /www/wordpress/wp-content/
setfacl -R -d -m g::rwx /www/wordpress/wp-content/</code></p>
<p>This pretty much took care of what permissions were allowed for each new object. But I wanted my new objects to have the <a href="http://www.linuxforums.org/articles/file-permissions_94.html">same group as the parent</a>, and I wanted it's <a href="http://www.gtkc.net/kb/entry/7/">subdirectories to inherit that group</a>:</p>
<p><code>chmod g+s /www/wordpress/
cd /www/wordpress/
find . -type d -exec chmod g+s {} \;</code></p>
<p>That's about as good as I could make it. It's not the Windows way, but it will do.</p>
<p>EDIT: Having thought about it some more, I'm thinking that I didn't need to activate ACL for my purposes. So I'll probably end up restoring a snapshot that I took before I started messing with ACL. Still, it was a learning experience.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.everythingiscrap.com/2010/07/14/theres-inheritance-and-then-theres-inheritance/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Hrmph, you mean GD wasn&#039;t installed?</title>
		<link>http://www.everythingiscrap.com/2010/07/09/hrmph-you-mean-gd-wasnt-installed/</link>
		<comments>http://www.everythingiscrap.com/2010/07/09/hrmph-you-mean-gd-wasnt-installed/#comments</comments>
		<pubDate>Fri, 09 Jul 2010 14:03:22 +0000</pubDate>
		<dc:creator>paul</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[ubuntu]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://www.everythingiscrap.com/?p=590</guid>
		<description><![CDATA[I couldn't embed thumbnail sizes on my new WordPress install on my new Ubuntu server; I could only embed the original size (which was 3072&#215;2048). The options to embed other sizes were just grayed out. It turns out that the default LAMP install doesn't include php-gd, the graphics library that creates thumbnails. Well&#8230; I guess [...]]]></description>
			<content:encoded><![CDATA[<p><img src="http://www.everythingiscrap.com/wp-content/uploads/2010/07/WordPress.jpg" alt="" title="WordPress" width="316" height="73" class="alignnone size-full wp-image-591" /></p>
<p>I couldn't embed thumbnail sizes on my new WordPress install on my new Ubuntu server; I could only embed the original size (which was 3072&#215;2048). The options to embed other sizes were just grayed out. It turns out that the default LAMP install doesn't include php-gd, the graphics library that creates thumbnails. Well&#8230; <a href="http://wordpress.org/support/topic/199390?replies=3">I guess that's easy enough to fix</a>:</p>
<blockquote><p>apt-get install php5-gd</p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://www.everythingiscrap.com/2010/07/09/hrmph-you-mean-gd-wasnt-installed/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>CSS is crap!</title>
		<link>http://www.everythingiscrap.com/2010/07/07/css-is-crap/</link>
		<comments>http://www.everythingiscrap.com/2010/07/07/css-is-crap/#comments</comments>
		<pubDate>Wed, 07 Jul 2010 13:49:15 +0000</pubDate>
		<dc:creator>paul</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[css]]></category>

		<guid isPermaLink="false">http://www.everythingiscrap.com/?p=583</guid>
		<description><![CDATA[&#8230;not that I want to go back to straight HTML, because that's crap, but CSS is crap too. After pulling my hair out for a bit and wondering why my styles weren't applying I found this helpful article on CSS specificity. Here's the good part: Element, Pseudo Element: d = 1 – (0,0,0,1) Class, Pseudo [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.everythingiscrap.com/wp-content/uploads/2010/07/t4_css_sucks2.jpg"><img src="http://www.everythingiscrap.com/wp-content/uploads/2010/07/t4_css_sucks2-150x150.jpg" alt="" title="t4_css_sucks2" width="150" height="150" class="alignnone size-thumbnail wp-image-585" /></a></p>
<p>&#8230;not that I want to go back to straight HTML, because that's crap, but CSS is crap too.</p>
<p>After pulling my hair out for a bit and wondering why my styles weren't applying I found this helpful <a href="http://www.vanseodesign.com/css/css-specificity-inheritance-cascaade/">article on CSS specificity</a>. Here's the good part:</p>
<blockquote><p>Element, Pseudo Element: d = 1 – (0,0,0,1)<br />
Class, Pseudo class, Attribute: c = 1 – (0,0,1,0)<br />
Id: b = 1 – (0,1,0,0)<br />
Inline Style: a = 1 – (1,0,0,0)</p></blockquote>
<p>(1,0,0,0) is the most specific, (0,0,0,1) is the least. When conflicts exist, the most specific wins. So, (0,0,1,0) always wins out over (0,0,0,15). Also if two are in conflict and have the same specificity, then the one declared last wins.</p>
<p>Good to note. Back to work!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.everythingiscrap.com/2010/07/07/css-is-crap/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>ProFTPd, Ubuntu, pfSense, and 3.5 hours</title>
		<link>http://www.everythingiscrap.com/2010/07/06/proftpd-ubuntu-pfsense-and-3-5-hours/</link>
		<comments>http://www.everythingiscrap.com/2010/07/06/proftpd-ubuntu-pfsense-and-3-5-hours/#comments</comments>
		<pubDate>Tue, 06 Jul 2010 19:56:01 +0000</pubDate>
		<dc:creator>paul</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[pfsense]]></category>
		<category><![CDATA[proftpd]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://www.everythingiscrap.com/?p=577</guid>
		<description><![CDATA[Given those four elements, ProFTPd, Ubuntu, pfSense, and 3.5 hours, I was able to get an FTP server working. There's a couple sticky points I'd like to note: To get FTP to work pfSense requires you to use CARP instead of Proxy ARP for your Virtual IP. That, and you have to enable (by un-checking) [...]]]></description>
			<content:encoded><![CDATA[<p>Given those four elements, ProFTPd, Ubuntu, pfSense, and 3.5 hours, I was able to get an FTP server working. There's a couple sticky points I'd like to note:</p>
<p>To get FTP to work pfSense <em>requires</em> you to use CARP instead of Proxy ARP for your Virtual IP. That, and you have to enable (by un-checking) the "userland FTP-Proxy application" on you WAN interface. After that you just need to add a NAT connection and rule and you should be good to go for pfSense.</p>
<p>ProFTPd is relatively simple to set up. Just install ProFTPd and walk through the configuration file in /etc/proftpd/proftpd.conf; it is quite well self-documented. </p>
<p>The whole reason for setting up the server was to give one guy access to his website, and since I have all the websites set up in one directory structure on that server (instead of putting the web sites in user directories) I had to grant that user access to his web directory. </p>
<p>So, first I changed the owner on the directory to that user (but left group ownership as www-data). </p>
<p><code>chown -R username /www/webdir</code></p>
<p>Then I added these lines to proftpd.conf:</p>
<p><code>DefaultRoot /www/webdir username
DefaultRoot ~</code></p>
<p>Works great.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.everythingiscrap.com/2010/07/06/proftpd-ubuntu-pfsense-and-3-5-hours/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>It&#039;s not &quot;stealing&quot; (my new, stolen code wrapping technique)</title>
		<link>http://www.everythingiscrap.com/2010/06/29/its-not-stealing/</link>
		<comments>http://www.everythingiscrap.com/2010/06/29/its-not-stealing/#comments</comments>
		<pubDate>Tue, 29 Jun 2010 19:15:16 +0000</pubDate>
		<dc:creator>paul</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[html]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://www.everythingiscrap.com/?p=553</guid>
		<description><![CDATA[I've heard it said that if you copy from only one source then it's called plagiarism, but if you copy from multiple sources then it's called research. Well, by researching Jeff Atwood's Coding Horror blog I found a great, simple way to frame code on Everything is Crap. First, the CSS: code { border:2px silver [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.codinghorror.com/blog/"><img src="http://www.everythingiscrap.com/wp-content/uploads/2010/06/I-3-Steve-McConnell.png" alt="" title="I 3 Steve McConnell" width="100" height="91" class="alignnone size-full wp-image-554" /></a><br />
I've heard it said that if you copy from only one source then it's called plagiarism, but if you copy from multiple sources then it's called research. Well, by researching <a href="http://www.codinghorror.com/">Jeff Atwood's Coding Horror blog</a> I found a great, simple way to frame code on Everything is Crap.</p>
<p>First, the CSS:<br />
<code>code {
  border:2px silver dotted;
  font-size:100%;
  line-height:100%;
  margin:0px auto 0px auto;
  max-height:450px;
  overflow:auto;
  padding:5px 5px 5px 5px;
  width:95%;
  display:block;
  font-family:monospace;
  white-space:pre;
}</code></p>
<p>Then the Plugins&#8230;</p>
<p><a href="http://w-shadow.com/blog/2007/12/13/raw-html-in-wordpress/">Raw HTML capability by Janis Elsts</a><br />
<a href="http://scott.sherrillmix.com/blog/blogger/wp_codeshield/">WP_CodeShield by Scott Sherrill-Mix</a></p>
<p>Wrap code section in&#8230;</p>
<p>&#91;RAW&#93;&lt;code&gt; &#8230; &lt;/code&gt;&#91;/RAW&#93; </p>
<p>&#8230;and you're in business.</p>
<p>P.S. Incidentally, Jeff Atwood is the spiritual inspiration for the motto and title of this site, Everything is Crap. Years ago he helped me realize that <a href="http://www.codinghorror.com/blog/2004/10/we-make-shitty-software-with-bugs.html">all the code I ever wrote is crap</a> and the best I can hope for is to make it less crappy as time goes by. Over time I've come to realize that most aspects of daily life are total crap as well, thus this blog was born.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.everythingiscrap.com/2010/06/29/its-not-stealing/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Weather Underground XML API</title>
		<link>http://www.everythingiscrap.com/2010/06/29/weather-underground-xml-api/</link>
		<comments>http://www.everythingiscrap.com/2010/06/29/weather-underground-xml-api/#comments</comments>
		<pubDate>Tue, 29 Jun 2010 18:00:18 +0000</pubDate>
		<dc:creator>paul</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[weather underground]]></category>
		<category><![CDATA[xml]]></category>

		<guid isPermaLink="false">http://www.everythingiscrap.com/?p=534</guid>
		<description><![CDATA[Weather Underground has a nice XML API to get at their data, and I recently used it to create a small weather page for my friend's new HTC Hero. This little page turned into a learning exercise for me on both the Weather Underground API and SimpleXMLElement in PHP. SimpleXMLElement: What a great way to [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://wiki.wunderground.com/index.php/API_-_XML"><img src="http://www.everythingiscrap.com/wp-content/uploads/2010/06/logo_130x80.png" alt="" title="Weather Underground" width="130" height="80" class="alignnone size-full wp-image-535" /></a></p>
<p>Weather Underground has a nice XML API to get at their data, and I recently used it to create a small weather page for my friend's new HTC Hero. This little page turned into a learning exercise for me on both the Weather Underground API and SimpleXMLElement in PHP.</p>
<p>SimpleXMLElement: What a great way to parse XML! I've been avoiding XML in my code up until now because it's so freaking clunky to implement. But with this I'm eager for the next chance to use XML. I can sum it up in two lines of code (long lines, bear with me):</p>
<p><code>$xml_current_cond = new SimpleXMLElement(file_get_contents(&quot;http://api.wunderground.com/auto/wui/geo/WXCurrentObXML/index.xml?query=80301&quot;));
echo $xml_current_cond-&gt;temp_f;<!--formatted--></code></p>
<p>So you see, I read the XML data into $xml_current_cond, and then I access the data through $xml_current_cont->[XML_TAG_NAMES]. It really couldn't be much simpler.</p>
<p>While I'm no fan of the <a href="http://en.wikipedia.org/wiki/Spaghetti_code">spaghetti code</a> that you get from writing PHP, I also realize that <a href="http://www.codinghorror.com/blog/2008/05/php-sucks-but-it-doesnt-matter.html">it doesn't matter</a>. Everyone writes PHP, and SimpleXMLElement is a good example of why they use PHP. </p>
]]></content:encoded>
			<wfw:commentRss>http://www.everythingiscrap.com/2010/06/29/weather-underground-xml-api/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
