<?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>Cain Manor</title> <atom:link href="http://cainmanor.com/feed/" rel="self" type="application/rss+xml" /><link>http://cainmanor.com</link> <description>Your Guide To All Things Cain™</description> <lastBuildDate>Thu, 17 May 2012 19:43:34 +0000</lastBuildDate> <language>en</language> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <generator>http://wordpress.org/?v=3.3.2</generator> <item><title>Why my iPad 3 has Verizon LTE</title><link>http://cainmanor.com/tech/why-my-ipad-3-has-verizon-lte/</link> <comments>http://cainmanor.com/tech/why-my-ipad-3-has-verizon-lte/#comments</comments> <pubDate>Fri, 27 Apr 2012 17:20:28 +0000</pubDate> <dc:creator>Greg Cain</dc:creator> <category><![CDATA[Online]]></category> <category><![CDATA[Tech]]></category> <category><![CDATA[Work]]></category><guid
isPermaLink="false">http://cainmanor.com/?p=1263</guid> <description><![CDATA[I was thinking back to an earlier post, about AT&#38;T&#8217;s 3G coverage. This time around, I finally had a choice to go with Verizon. It&#8217;s LTE, which is a better technology (and AT&#38;T&#8217;s LTE is probably similar, but there isn&#8217;t LTE in Seattle for AT&#38;T.)  Here&#8217;s the results for my new Verizon LTE iPad (ignore [...]]]></description> <content:encoded><![CDATA[<p>I was thinking back to an earlier <a
title="Why my iPad doesn’t have 3G" href="http://cainmanor.com/interesting/why-my-ipad-doesnt-have-3g/">post</a>, about AT&amp;T&#8217;s 3G coverage. This time around, I finally had a choice to go with Verizon. It&#8217;s LTE, which is a better technology (and AT&amp;T&#8217;s LTE is probably similar, but there isn&#8217;t LTE in Seattle for AT&amp;T.)  Here&#8217;s the results for my new Verizon LTE iPad (ignore where it says iPhone. I&#8217;m using the same app on both the iPhone and iPad, but it&#8217;s not a universal app.)</p><div
id="attachment_1264" class="wp-caption alignnone" style="width: 310px"><a
href="http://photos.cainmanor.com/2012/04/SpeedTestResults-LTE.png" rel="lightbox[1263]"><img
class="size-full wp-image-1264 " title="SpeedTestResults - LTE" src="http://photos.cainmanor.com/2012/04/SpeedTestResults-LTE.png" alt="" width="300" height="135" /></a><p
class="wp-caption-text">Verizon LTE</p></div><p>For comparison, I went back and tested my iPhone again, now with a new 4G icon. The last time I did this, just about two years ago, I was about half a mile away from where I&#8217;m at now. Two years, and half a mile closer to Seattle, and I get this.</p><p><span
id="more-1263"></span></p><div
id="attachment_1265" class="wp-caption alignnone" style="width: 310px"><a
href="http://photos.cainmanor.com/2012/04/SpeedTestResults-ATT-4G.png" rel="lightbox[1263]"><img
class="size-full wp-image-1265 " title="SpeedTestResults - AT&amp;T 4G" src="http://photos.cainmanor.com/2012/04/SpeedTestResults-ATT-4G.png" alt="" width="300" height="135" /></a><p
class="wp-caption-text">AT&amp;T 4G</p></div><p>This is much better, but I&#8217;m in so close to Downtown Seattle that I was looking at Pike Place Market from the window of my office. For those not familiar, this is about as close to the heart of Seattle as you can be.</p><p>Now that the iPad has the same connectivity as I do at home, it&#8217;s a true take anywhere device. As an IT guy, I&#8217;m glad to be able to work anywhere (even though the iPad isn&#8217;t officially supported.)  I don&#8217;t think AT&amp;T is quite there yet, but I expect my new Verizon LTE iPhone 5 will be.</p> ]]></content:encoded> <wfw:commentRss>http://cainmanor.com/tech/why-my-ipad-3-has-verizon-lte/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>Push SSH public keys to multiple host</title><link>http://cainmanor.com/tech/push-ssh-public-keys-to-mulitple-host/</link> <comments>http://cainmanor.com/tech/push-ssh-public-keys-to-mulitple-host/#comments</comments> <pubDate>Tue, 02 Aug 2011 18:27:52 +0000</pubDate> <dc:creator>Greg Cain</dc:creator> <category><![CDATA[OS-X]]></category> <category><![CDATA[Tech]]></category> <category><![CDATA[UNIX]]></category> <category><![CDATA[Work]]></category><guid
isPermaLink="false">http://cainmanor.com/?p=1251</guid> <description><![CDATA[I&#8217;m starting a new job where I need to have my SSH keys pushed to hundreds of Red Hat servers. The special sauce is a command called ssh-copy-id. However, using this command requires you answering a (yes/no) question, then shortly thereafter enter your password. Painful. Here&#8217;s how push your keys without the pain. The first [...]]]></description> <content:encoded><![CDATA[<p>I&#8217;m starting a new job where I need to have my SSH keys pushed to hundreds of Red Hat servers. The special sauce is a command called ssh-copy-id.  However, using this command requires you answering a (yes/no) question, then shortly thereafter enter your password.  Painful. Here&#8217;s how push your keys without the pain.<br
/> <span
id="more-1251"></span><br
/> The first problem is having to answer (yes/no) for each server.  Normally you see this&#8230;</p><div
class="wp_syntax"><div
class="code"><pre class="bash" style="font-family:monospace;">The authenticity of host <span style="color: #ff0000;">'myfirsthost.work.cainmanor.com (10.256.33.106)'</span> can<span style="color: #ff0000;">'t be established.
RSA key fingerprint is fc:40:7c:de:b8:ac:a2:f5:d4:11:d0:0e:b2:77:8a:63.
Are you sure you want to continue connecting (yes/no)? yes</span></pre></div></div><p>To stop this prompt, we need to edit your ~/.ssh/config file.  Add these two lines</p><div
class="wp_syntax"><div
class="code"><pre class="bash" style="font-family:monospace;">StrictHostKeyChecking no
<span style="color: #007800;">UserKnownHostsFile</span>=<span style="color: #000000; font-weight: bold;">/</span>dev<span style="color: #000000; font-weight: bold;">/</span>null</pre></div></div><p>Setting your UserKnownHostsFile should only be a temporary fix.  After you&#8217;ve pushed your keys, you should comment out both of those settings.</p><p>Your password is the next problem.  We can solve that with sshpass.  sshpass takes your password and passes it on when ssh ask for it.  There are three ways to do it, all of them insecure.  Read the man page and decide which of those you want to use.  For my purposes I just put it on the command line &#8211; I&#8217;m on my personal machine with no other users, and only I know the passwords to the box.  Don&#8217;t do this on a shared server.</p><p>Here is an example of how to push your public key one.  Try it on a new server to make sure you get the results you expect.</p><div
class="wp_syntax"><div
class="code"><pre class="bash" style="font-family:monospace;">sshpass <span style="color: #660033;">-p</span> <span style="color: #ff0000;">'MY_PASSWORD'</span> ssh-copy-id gregc<span style="color: #000000; font-weight: bold;">@</span>new_host_with_no_keys</pre></div></div><p>Now that we&#8217;ve got the prompts turned off, we&#8217;ll wrap a script around this.  How you get the list of appropriate hostnames or IP&#8217;s is your business.</p><div
class="wp_syntax"><div
class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">for</span> X <span style="color: #000000; font-weight: bold;">in</span> <span style="color: #000000; font-weight: bold;">`</span><span style="color: #c20cb9; font-weight: bold;">cat</span> my_host_that_need_keys<span style="color: #000000; font-weight: bold;">`</span>
<span style="color: #000000; font-weight: bold;">do</span>
sshpass <span style="color: #660033;">-p</span> <span style="color: #ff0000;">'MY_PASSWORD'</span> ssh-copy-id gregc<span style="color: #000000; font-weight: bold;">@</span><span style="color: #800000;">${X}</span>
<span style="color: #000000; font-weight: bold;">done</span></pre></div></div><p>Happy Computing!!</p> ]]></content:encoded> <wfw:commentRss>http://cainmanor.com/tech/push-ssh-public-keys-to-mulitple-host/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>Installing APC (Alternative PHP Cache) on CentOS 5.6</title><link>http://cainmanor.com/tech/installing-apc-alternative-php-cache-on-centos-5-6/</link> <comments>http://cainmanor.com/tech/installing-apc-alternative-php-cache-on-centos-5-6/#comments</comments> <pubDate>Tue, 12 Jul 2011 02:12:04 +0000</pubDate> <dc:creator>Greg Cain</dc:creator> <category><![CDATA[Online]]></category> <category><![CDATA[Tech]]></category> <category><![CDATA[UNIX]]></category><guid
isPermaLink="false">http://cainmanor.com/?p=1248</guid> <description><![CDATA[There were more than a few instructions on how to do this. They were all wrong, at least for my default install of CentOS 5.6. In a nutshell, here is how I was able to do it: cd /tmp yum install pcre-devel wget http://pecl.php.net/get/APC-3.1.9.tgz tar -xvf APC-3.1.9.tgz cd APC-3.1.9 phpize whereis php-config ./configure –enable-apc –enable-apc-mmap [...]]]></description> <content:encoded><![CDATA[<p>There were more than a few instructions on how to do this.  They were all wrong, at least for my default install of CentOS 5.6.</p><p>In a nutshell, here is how I was able to do it:<br
/> <span
id="more-1248"></span></p><div
class="wp_syntax"><div
class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">cd</span> <span style="color: #000000; font-weight: bold;">/</span>tmp
yum <span style="color: #c20cb9; font-weight: bold;">install</span> pcre-devel
<span style="color: #c20cb9; font-weight: bold;">wget</span> http:<span style="color: #000000; font-weight: bold;">//</span>pecl.php.net<span style="color: #000000; font-weight: bold;">/</span>get<span style="color: #000000; font-weight: bold;">/</span>APC-3.1.9.tgz
<span style="color: #c20cb9; font-weight: bold;">tar</span> <span style="color: #660033;">-xvf</span> APC-3.1.9.tgz
<span style="color: #7a0874; font-weight: bold;">cd</span> APC-3.1.9
phpize
<span style="color: #c20cb9; font-weight: bold;">whereis</span> php-config
.<span style="color: #000000; font-weight: bold;">/</span>configure –enable-apc –enable-apc-mmap –with-apxs –with-php <span style="color: #007800;">config</span>=<span style="color: #000000; font-weight: bold;">/</span>path<span style="color: #000000; font-weight: bold;">/</span>to<span style="color: #000000; font-weight: bold;">/</span>php-config
<span style="color: #c20cb9; font-weight: bold;">make</span>
<span style="color: #c20cb9; font-weight: bold;">make</span> <span style="color: #c20cb9; font-weight: bold;">install</span>
<span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;extension=apc.so&quot;</span> <span style="color: #000000; font-weight: bold;">&gt;&gt;</span> <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>php.d<span style="color: #000000; font-weight: bold;">/</span>apc.ini
<span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;apc.slam_defense=0&quot;</span> <span style="color: #000000; font-weight: bold;">&gt;&gt;</span> <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>php.d<span style="color: #000000; font-weight: bold;">/</span>apc.ini
<span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;apc.write_lock=1&quot;</span> <span style="color: #000000; font-weight: bold;">&gt;&gt;</span> <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>php.d<span style="color: #000000; font-weight: bold;">/</span>apc.ini
service httpd restart</pre></div></div><p>I also make these changes to my httpd.conf file</p><div
class="wp_syntax"><div
class="code"><pre class="bash" style="font-family:monospace;">Timeout <span style="color: #000000;">40</span>
KeepAlive On
MaxKeepAliveRequests <span style="color: #000000;">200</span>
KeepAliveTimeout <span style="color: #000000;">2</span></pre></div></div>]]></content:encoded> <wfw:commentRss>http://cainmanor.com/tech/installing-apc-alternative-php-cache-on-centos-5-6/feed/</wfw:commentRss> <slash:comments>2</slash:comments> </item> <item><title>The Sopranos vs. The Wire</title><link>http://cainmanor.com/personal/the-sopranos-vs-the-wire/</link> <comments>http://cainmanor.com/personal/the-sopranos-vs-the-wire/#comments</comments> <pubDate>Fri, 01 Jul 2011 17:20:22 +0000</pubDate> <dc:creator>Greg Cain</dc:creator> <category><![CDATA[Personal]]></category><guid
isPermaLink="false">http://cainmanor.com/?p=1242</guid> <description><![CDATA[Previous to watching The Wire, I&#8217;d seen the entire Sopranos series 2.5 &#8211; 3 times. I&#8217;d heard a lot of people talking about The Wire being as good or better than The Sopranos, so I thought the best way to figure it out was to watch The Wire. Having seen the entire series, I&#8217;m going [...]]]></description> <content:encoded><![CDATA[<p>Previous to watching The Wire, I&#8217;d seen the entire Sopranos series 2.5 &#8211; 3 times. I&#8217;d heard a lot of people talking about The Wire being as good or better than The Sopranos, so I thought the best way to figure it out was to watch The Wire.</p><p>Having seen the entire series, I&#8217;m going to give the nod to The Sopranos as the better series. Here are my reasons (Spoiler alerts galore)&#8230;<br
/> <span
id="more-1242"></span><br
/> - I found the situations more plausible in Sopranos. In the Wire there were two instances where the body count went through the roof. The first was when the Far Eastern immigrants were found dead, and the other was when Marlo started piling up the bodies. I lost count of the number of bodies they found when they started going house to house (~20?  ~30), but I imagine that there would be more of an uproar. Granted, I&#8217;m a liberal living in Seattle, so maybe I&#8217;m wrong on that, but I stand by it. Also, when the Fat Cop (Landsman?) let Bubbles go, saying he&#8217;d suffered enough &#8211; that seemed highly unlikely. That guy was a jerk to everybody he came across, and that was the only instance he showed any humanity. The story arc of Omar bothered me a bit too. He was a very calm, calculated man, and I don&#8217;t believe he&#8217;d let him emotions get the better of him to the point of being killed by a child. Most of the other characters I would have believed, but not Omar, our modern day Achilles.</p><p>Speaking of implausible situations, I don&#8217;t see how Omar Little would survive ripping off drug dealers. Every slinger with a gun would be out after him, and I don&#8217;t see it working out that well for him.</p><p>In the Sopranos, there were very few instances of such implausibility. There was the scene with the Russian guy that got away and was completely forgotten, but I didn&#8217;t find that to be over the top. Maybe the scene were the Stripper was beaten to death, but only maybe.</p><p>- There were more stronger seasons of The Sopranos than there were of The Wire, and I think the last episode of The Sopranos was particularly strong. From conversations with many people, I may be the only person particularly fond of the ending of The Sopranos, but I did think it was brilliant. Season One of The Sopranos was fantastic too &#8211; much better than first season of The Wire (which was also very good &#8211; just not as good.)</p><p>- There were better, stronger (as in more developed) characters in The Sopranos. Tony and Carmela were very well developed, as were more minor characters, such as Dr. Melfi, Christopher and Adriana. There were some strong characters in The Wire, specifically Omar and Bubble. I really like the Omar character, especially how his character was exceedingly badass macho but also openly gay. I don&#8217;t watch much TV, but I don&#8217;t recall a character such as his on TV.  Bubbles was also a very well done character. I didn&#8217;t particularly enjoy the McNulty character.  It seemed like he was all over the board &#8211; sober sometimes, drunk others, but without any sort of back story to flesh out these changes.   I found the Marlo character to be a bit underdeveloped (where did he come from, why wasn&#8217;t he stopped earlier by other drug dealers), but I did find him to be a terrifying character &#8211; the most out of either show.  A true psychopath (witness the scene with the Security Guard, who ended up dead later.)  The Sopranos had several characters that were hard core, starting with Tony Sopranos (the scene were he ended Christophers life&#8230;), but also his mother and sister, Little Ralphie, etc.</p><p>- I think people were more able to get behind The Wire because of three things. There was a clear theme every season (Newspapers, Schools, etc.), all of which were &#8220;pressing social issues.&#8221; And since each season was so clearly delineated, there was a more clearly defined story arc. If you were to come into season four, you could be up to speed and enjoy the season on it&#8217;s own, and then there was a clear payoff at the end of each season. I felt like The Sopranos didn&#8217;t have as much of a demarcation from season to season, and that it benefited from a longer continual viewing. Lastly, there tended to be the innocents in each season &#8211; teachers! reporters! kids! blue collar workers! &#8211; that made it easy to root for. The Sopranos didn&#8217;t tend to have sympathetic characters &#8211; maybe a few, but only a few.</p><p>That&#8217;s why I think The Sopranos was a better TV than The Wire.</p> ]]></content:encoded> <wfw:commentRss>http://cainmanor.com/personal/the-sopranos-vs-the-wire/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>Max out your Dropbox referrals using Google Adwords</title><link>http://cainmanor.com/tech/max-out-your-dropbox-referrals-using-google-adwords/</link> <comments>http://cainmanor.com/tech/max-out-your-dropbox-referrals-using-google-adwords/#comments</comments> <pubDate>Mon, 24 Jan 2011 21:37:07 +0000</pubDate> <dc:creator>Greg Cain</dc:creator> <category><![CDATA[Online]]></category> <category><![CDATA[Tech]]></category><guid
isPermaLink="false">http://cainmanor.com/?p=1220</guid> <description><![CDATA[I love Dropbox. It&#8217;s a giant USB drive you can use from anywhere, it&#8217;s a great way to keep backups, it&#8217;s a great way to share files and it&#8217;s free. After spending two hours and 15 minutes on the latest Dropbox promotion for 1 GB of extra space ( I was the 343rd finisher, which [...]]]></description> <content:encoded><![CDATA[<p>I love Dropbox.</p><p>It&#8217;s a giant USB drive you can use from anywhere, it&#8217;s a great way to keep backups, it&#8217;s a great way to share files and it&#8217;s free. After spending two hours and 15 minutes on the latest Dropbox <a
href="https://www.dropbox.com/dropquest2011">promotion</a> for 1 GB of extra space ( I was the 343rd finisher, which was about 15 minutes behind the winner), I thought there has to be a better way.  There is &#8211; Google Adwords.</p><p>Here&#8217;s how to max out your Dropbox referrals using Google Adwords.</p><p><span
id="more-1220"></span></p><ol><li>Get a coupon for free Google Adwords credit.  Google for &#8220;google adwords promotional code.&#8221;  Under search tools, set your search to the last month or the last week. It might take a few searches, but eventually you&#8217;ll find it. Whatever you do, DO NOT PAY FOR A PROMOTIONAL CODE.  Finding the code was the hardest part, but eventually you&#8217;ll find one.</li><li>Once you have the voucher (it may take a few days), create your <a
href="http://adwords.google.com/">Google Adwords account</a>.</li><li>Create your Ad Campaign.  I created one Campaign, with two different Ad Groups.  The most important step is to make sure you use your referral link (found <a
title="Your Dropbox Referral Link" href="https://www.dropbox.com/referrals" target="_blank">here</a>) instead of just putting in dropbox.com.  That&#8217;s where the magic happens.  When someone clicks on the dropbox.com link, they are clicking on on your referral link, which sends them to the dropbox signup page.<br
/><table
border="0" cellspacing="0" cellpadding="0" width="100%"><tbody><tr><td
width="50%"><a
href="http://photos.cainmanor.com/2011/01/Adword-First.png" rel="lightbox[1220]"><img
class="alignleft size-full wp-image-1223" title="Adword - First" src="http://photos.cainmanor.com/2011/01/Adword-First.png" alt="" width="177" height="78" /></a>The first, using just the keyword of &#8220;Dropbox&#8221;, was quite a bit more expensive and had a lower return. The CPC (Cost Per Click) of $.24, with 124 clicks out of 11,500 impressions (which means it was served on 11,500 pages, and clicked 124 times.)  Not all of the clicks resulted in people actually signing up.</td><td
width="50%"><a
href="http://photos.cainmanor.com/2011/01/Adword-Second.png" rel="lightbox[1220]"><img
class="alignright size-full wp-image-1224" title="Adword - Second" src="http://photos.cainmanor.com/2011/01/Adword-Second.png" alt="" width="218" height="81" /></a>The second ad was using the keyword of &#8220;Get Dropbox&#8221;, which had a CPC of $.13, but I got 64 clicks out of 1,418 impressions.   The total cost for this ad was between 1/3rd and 1/4 the cost of the first ad.</td></tr></tbody></table></li><li>Now all you need to do is sit back and watch the referrals roll in.  Not all clicks go on to sign up, and not everybody that signs up installs the software, which is a necessary step in the process.  Of the 188 clicks, 35 joined Dropbox, and 30 installed the software.  If you were starting from zero, you&#8217;d need 32 people to sign up in order to get the complete 8GB.</li></ol><p>There were a couple of things I would do differently. I set up a relatively low budget for the ads per day, which means they will only run a few times per day (for instance, if you have a $5 a day budget, and your ad is estimated to cost $.25 per click, it will only get, at max, 20 clicks a day.) The time those ads run will be spread out over the course of the day. It&#8217;s not bad, but there really wasn&#8217;t any reason to not just use your estimated budget at once. Be careful to not go over your budget, because those cost come out of your pocket.</p> ]]></content:encoded> <wfw:commentRss>http://cainmanor.com/tech/max-out-your-dropbox-referrals-using-google-adwords/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> </channel> </rss>
<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Minified using disk: basic
Page Caching using disk: enhanced
Database Caching using disk: basic
Object Caching 390/403 objects using disk: basic

Served from: cainmanor.com @ 2012-05-19 12:35:05 -->
