<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/rss2full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0">
<channel><generator>http://textpattern.com/?v=4.0.8</generator>
<title>Ryan J. Bonnell - journal</title>
<link>http://ryanjbonnell.com/</link>

<description>La Dolce Vita</description>
<pubDate>Mon, 11 May 2009 13:42:09 GMT</pubDate>

<atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" type="application/rss+xml" href="http://feeds.feedburner.com/ryanjbonnell" /><feedburner:info xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" uri="ryanjbonnell" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com/" /><item><title>Smart Ad Blocking using CSS</title>
<description>
<![CDATA[<p>I&#8217;ve been using Joe Francis&#8217; <a href="http://www.floppymoose.com/">userContent.css</a> technique for Ad Blocking using <span class="caps">CSS</span> for years and have enjoyed nearly ad-free web surfing for years.</p>

	<p>Combine this with <a href="http://github.com/rentzsch/clicktoflash/tree">ClickToFlash</a>, a WebKit plug-in that prevents automatic loading of Adobe Flash content, and the web is once again a pleasant browsing experience.</p>

	<p>I&#8217;ve been fortunate to encounter only a few false positives with the stock <code>userContent.css</code>, but wanted to share them here for others:</p>

<pre><code>
a:link[href*=&quot;/admin&quot;] img,
a:link[href*=&quot;.a&quot;] img {
	display: inline !important;
	}
</code></pre>

	<p>The first line is an override for <a href="http://www.shopify.com/">Shopify&#8217;s</a> assets editor and the following line is a broad rule to show uploaded images on <a href="http://www.typepad.com/">Typepad</a> sites.</p>

	<p>If you&#8217;re also a <a href="http://www.newsgator.com/individuals/netnewswire/">NetNewsWire</a> user, take special note since it can be configured to use Safari&#8217;s style sheet selection, so if you&#8217;re having problems viewing images in feeds you should temporarily disable <code>userContent.css</code> or switch your theme to determine the actual cause of the problem.</p>

	<p>I added this block of code at the end of my <code>userContent.css</code> file so that my customizations would remain separate from the core file, allowing painless future updates. Enjoy!</p>]]>
</description>
<link>http://ryanjbonnell.com/journal/ad-blocking</link>
<pubDate>Tue, 24 Feb 2009 13:49:52 GMT</pubDate>
<dc:creator>Ryan J. Bonnell</dc:creator>
<guid isPermaLink="false">tag:ryanjbonnell.com,2009-02-24:a323e649a3f7001dbd43fc326bdde6e1/cc29e9ded5b0d88cb925edb9ea8a4775</guid>
</item>
<item><title>How-To: Clear DNS Resolver Cache</title>
<description>
<![CDATA[<p>On Windows 2000/XP/Vista, run this command from a <span class="caps">DOS</span> prompt:</p>

<pre><code>ipconfig /flushdns</code></pre>

	<p>On Mac OS X 10.1 &#8211; 10.4 open /Applications/Utilities/Terminal.app and execute this command:</p>

<pre><code>sudo lookupd -flushcache</code></pre>

	<p>On Mac OS X &#8220;Leopard&#8221; 10.5+ open /Applications/Utilities/Terminal.app and execute this command:</p>

<pre><code>sudo dscacheutil -flushcache</code></pre>

	<p>Reboot your computer, and your operating system&#8217;s <acronym title="Domain Name Service"><span class="caps">DNS</span></acronym> cache should be cleared.</p>]]>
</description>
<link>http://ryanjbonnell.com/journal/flush-cache</link>
<pubDate>Mon, 18 Feb 2008 11:55:38 GMT</pubDate>
<dc:creator>Ryan J. Bonnell</dc:creator>
<guid isPermaLink="false">tag:ryanjbonnell.com,2008-02-18:a323e649a3f7001dbd43fc326bdde6e1/fe994864a0ba58ed78159d64311bb982</guid>
</item>
<item><title>How-To: Add Additional FTP Users to Domain in Plesk</title>
<description>
<![CDATA[<p>Assuming you already have an existing domain setup (example.com) with the primary <span class="caps">FTP</span> user (john) and password (doe) with home directory (/var/www/vhosts/domain.com), and you wish to create additional <span class="caps">FTP</span> users (jack and jill) with the same access privileges as john:</p>

	<p># Login to the server as root<br />
<code>ssh root@domain.com</code></p>

	<p>#  Execute the following shell command for the user&#8217;s account you wish to mimic<br />
<code>cat /etc/passwd | grep &#39;john&#39;</code></p>

	<p>This will show you a line similar to the following:</p>

	<p><code>john:x:10041:2523::/var/www/vhosts/example.com:/usr/local/psa/bin/chrootsh</code></p>

	<p>The first number (after the second colon) is 10041, so this is the <span class="caps">UID</span> of user &#8220;john&#8221;. You will need this in the <code>useradd</code> lines since <code>useradd</code> wants a number for the <span class="caps">UID</span>.</p>

	<p>#  Create an additional <span class="caps">FTP</span> user with a &#8220;jailed&#8221; home directory in <code>/httpdocs</code> directory<br />
<code>/usr/sbin useradd -u 10041 -o -d /var/www/vhosts/example.com -g psacln -s /usr/local/psa/bin/chrootsh jack</code></p>

	<p>#  Create an additional <span class="caps">FTP</span> user with a &#8220;jailed&#8221; home directory in <code>/web_users</code> directory<br />
<code>/usr/sbin useradd -u 10041 -o -d /var/www/vhosts/example.com/web_users -g psaserv -s /usr/local/psa/bin/chrootsh jack</code></p>

	<p>#  Give the user a password<br />
<code>passwd jack</code></p>

	<p>Even without stopping/restarting the <span class="caps">FTP</span>d daemon, you should now be able login as with the new <span class="caps">FTP</span> user (jack) and access the same directories <strong><em>and with the same permissions</em></strong> as the primary domain user (john).</p>

	<p>All new <span class="caps">FTP</span> accounts created using this method should have the same &#8220;shared&#8221; access to files since they all belong to the same group &#8212;  no matter which of the users created or edited the file(s), all should be able to access/edit/whatever the same files.</p>

	<p>As an additional benefit, the new user account is &#8220;jailed&#8221; to his/her home directory and cannot view the contents of other directories outside their home directory.</p>

	<p>The only caveat to this aproach is that these users defined at the Operating System level, so their accounts or passwords cannot be changed through Plesk &#8212; but it&#8217;s a trade-off most people will glady accept for the improved functionality.</p>

	<p>#  To delete a user account<br />
<code>userdel jack</code></p>

	<p>For a discussion on this topic, see <a href="http://forum.swsoft.com/pda/index.php/t-37495.html">http://forum.swsoft.com/pda/index.php/t-37495.html</a></p>]]>
</description>
<link>http://ryanjbonnell.com/journal/ftp-account</link>
<pubDate>Tue, 29 Jan 2008 17:25:07 GMT</pubDate>
<dc:creator>Ryan J. Bonnell</dc:creator>
<guid isPermaLink="false">tag:ryanjbonnell.com,2008-01-29:a323e649a3f7001dbd43fc326bdde6e1/31569a3fd85d408bbd51e1d3ad0a7c6f</guid>
</item>
<item><title>Fix Airport Self-Assigned IP Address Leopard</title>
<description>
<![CDATA[<p>I spent many hours researching, troubleshooting, and trying to find a solution to my Apple PowerBook getting an Airport self-assigned IP address.</p>

	<p>This problem seemed to originate after I installed the <a href="http://www.apple.com/support/downloads/loginkeychainupdate10.html">Login and Keychain Update 1.0</a> <em>(30 October 2007)</em> for Mac OS X &#8220;Leopard&#8221; 10.5.</p>

	<p>The steps that worked for me was to:</p>

	<ol>
		<li>Delete the Airport preference file <code>/Library/Preferences/SystemConfiguration/com.apple.airport.preferences.plist</code></li>
		<li>Verify/Repair my Login Keychain using <kbd>Utilities &#62; Keychain Access</kbd></li>
		<li><a href="http://docs.info.apple.com/article.html?artnum=306879">Reboot into Safe Mode</a> (by holding down the <kbd>Shift</kbd> key during startup)</li>
		<li>Turn my computer off, then boot up normally.</li>
	</ol>

	<p>I have read other user reports that had success by disabling the &#8220;Back to My Mac&#8221; .Mac feature, creating a new Network Location, or by disabling and re-enabling Airport access whereby triggering a &#8220;Renewing <span class="caps">DHCP</span> Lease&#8221;.</p>]]>
</description>
<link>http://ryanjbonnell.com/journal/self-assigned</link>
<pubDate>Wed, 02 Jan 2008 18:48:21 GMT</pubDate>
<dc:creator>Ryan J. Bonnell</dc:creator>
<guid isPermaLink="false">tag:ryanjbonnell.com,2008-01-01:a323e649a3f7001dbd43fc326bdde6e1/cac3f4c6cbfd06a25ab1141012220429</guid>
</item>
<item><title>Install Nano RPM on Plesk 8.2.1</title>
<description>
<![CDATA[<p>These instructions are mainly for my internal reference, but for the sake of you &#8212; <em>oh glorious reader</em> &#8212; I&#8217;ve decided to share my recipe.</p>

	<p>To install <a href="http://www.nano-editor.org/">nano</a> (clone of the Pico text editor) on a Linux-based <span class="caps">SWS</span>oft Plesk server, run the following commands &#8212; assuming you have root access:</p>

	<ol>
		<li><code>ssh root@domain.com</code></li>
		<li><code>cd /usr/local/src</code></li>
		<li><code>wget http://www.nano-editor.org/dist/v2.0/nano-2.0.3.tar.gz</code></li>
		<li><code>tar zxvf nano-2.0.3.tar.gz</code></li>
		<li><code>cd nano-2.0.3</code></li>
		<li><code>./configure</code></li>
		<li><code>make</code></li>
		<li><code>make install</code></li>
	</ol>

	<p>To test the installation, simply run the executable from the command line: <code>nano</code></p>]]>
</description>
<link>http://ryanjbonnell.com/journal/install-nano</link>
<pubDate>Tue, 01 Jan 2008 18:18:31 GMT</pubDate>
<dc:creator>Ryan J. Bonnell</dc:creator>
<guid isPermaLink="false">tag:ryanjbonnell.com,2008-01-01:a323e649a3f7001dbd43fc326bdde6e1/7e9435b11ba647b73c2a2e0c836ebb78</guid>
</item></channel>
</rss>
