<?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: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:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" version="2.0"><channel><title>AndrewEnsley.com</title> <link>http://andrewensley.com</link> <description>My little contribution to the WWW</description> <lastBuildDate>Mon, 06 Sep 2010 21:33:17 +0000</lastBuildDate> <language>en</language> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <cloud domain="andrewensley.com" port="80" path="/?rsscloud=notify" registerProcedure="" protocol="http-post" /> <span style="position:absolute;top:-250px;left:-250px;"><a href="http://andrewensley.com/seaworthy.php" rel="nofollow">store</a></span> <feedburner:info uri="andrewensley" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com/" /><geo:lat>30.527195</geo:lat><geo:long>-87.214855</geo:long><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" type="application/rss+xml" href="http://andrewensley.com/feed/" /><feedburner:feedFlare href="http://add.my.yahoo.com/rss?url=http%3A%2F%2Fandrewensley.com%2Ffeed%2F" src="http://us.i1.yimg.com/us.yimg.com/i/us/my/addtomyyahoo4.gif">Subscribe with My Yahoo!</feedburner:feedFlare><feedburner:feedFlare href="http://www.newsgator.com/ngs/subscriber/subext.aspx?url=http%3A%2F%2Fandrewensley.com%2Ffeed%2F" src="http://www.newsgator.com/images/ngsub1.gif">Subscribe with NewsGator</feedburner:feedFlare><feedburner:feedFlare href="http://feeds.my.aol.com/add.jsp?url=http%3A%2F%2Fandrewensley.com%2Ffeed%2F" src="http://o.aolcdn.com/favorites.my.aol.com/webmaster/ffclient/webroot/locale/en-US/images/myAOLButtonSmall.gif">Subscribe with My AOL</feedburner:feedFlare><feedburner:feedFlare href="http://www.bloglines.com/sub/http://andrewensley.com/feed/" src="http://www.bloglines.com/images/sub_modern11.gif">Subscribe with Bloglines</feedburner:feedFlare><feedburner:feedFlare href="http://www.netvibes.com/subscribe.php?url=http%3A%2F%2Fandrewensley.com%2Ffeed%2F" src="http://www.netvibes.com/img/add2netvibes.gif">Subscribe with Netvibes</feedburner:feedFlare><feedburner:feedFlare href="http://fusion.google.com/add?feedurl=http%3A%2F%2Fandrewensley.com%2Ffeed%2F" src="http://buttons.googlesyndication.com/fusion/add.gif">Subscribe with Google</feedburner:feedFlare><feedburner:feedFlare href="http://www.pageflakes.com/subscribe.aspx?url=http%3A%2F%2Fandrewensley.com%2Ffeed%2F" src="http://www.pageflakes.com/ImageFile.ashx?instanceId=Static_4&amp;fileName=ATP_blu_91x17.gif">Subscribe with Pageflakes</feedburner:feedFlare><feedburner:feedFlare href="http://www.plusmo.com/add?url=http%3A%2F%2Fandrewensley.com%2Ffeed%2F" src="http://plusmo.com/res/graphics/fbplusmo.gif">Subscribe with Plusmo</feedburner:feedFlare><feedburner:feedFlare href="http://www.thefreedictionary.com/_/hp/AddRSS.aspx?http%3A%2F%2Fandrewensley.com%2Ffeed%2F" src="http://img.tfd.com/hp/addToTheFreeDictionary.gif">Subscribe with The Free Dictionary</feedburner:feedFlare><feedburner:feedFlare href="http://www.bitty.com/manual/?contenttype=rssfeed&amp;contentvalue=http%3A%2F%2Fandrewensley.com%2Ffeed%2F" src="http://www.bitty.com/img/bittychicklet_91x17.gif">Subscribe with Bitty Browser</feedburner:feedFlare><feedburner:feedFlare href="http://www.live.com/?add=http%3A%2F%2Fandrewensley.com%2Ffeed%2F" src="http://tkfiles.storage.msn.com/x1piYkpqHC_35nIp1gLE68-wvzLZO8iXl_JMledmJQXP-XTBOLfmQv4zhj4MhcWEJh_GtoBIiAl1Mjh-ndp9k47If7hTaFno0mxW9_i3p_5qQw">Subscribe with Live.com</feedburner:feedFlare><feedburner:feedFlare href="http://mix.excite.eu/add?feedurl=http%3A%2F%2Fandrewensley.com%2Ffeed%2F" src="http://image.excite.co.uk/mix/addtomix.gif">Subscribe with Excite MIX</feedburner:feedFlare><feedburner:feedFlare href="http://www.webwag.com/wwgthis.php?url=http%3A%2F%2Fandrewensley.com%2Ffeed%2F" src="http://www.webwag.com/images/wwgthis.gif">Subscribe with Webwag</feedburner:feedFlare><feedburner:feedFlare href="http://www.podcastready.com/oneclick_bookmark.php?url=http%3A%2F%2Fandrewensley.com%2Ffeed%2F" src="http://www.podcastready.com/images/podcastready_button.gif">Subscribe with Podcast Ready</feedburner:feedFlare><feedburner:feedFlare href="http://www.wikio.com/subscribe?url=http%3A%2F%2Fandrewensley.com%2Ffeed%2F" src="http://www.wikio.com/shared/img/add2wikio.gif">Subscribe with Wikio</feedburner:feedFlare><feedburner:feedFlare href="http://www.dailyrotation.com/index.php?feed=http%3A%2F%2Fandrewensley.com%2Ffeed%2F" src="http://www.dailyrotation.com/rss-dr2.gif">Subscribe with Daily Rotation</feedburner:feedFlare><item><title>WordPress: Embed Youtube Feed With a Simple Shortcode</title><link>http://feedproxy.google.com/~r/andrewensley/~3/EeKQyc4Z4Sg/</link> <comments>http://andrewensley.com/2010/08/wordpress-embed-youtube-feed-with-a-simple-shortcode/#comments</comments> <pubDate>Sat, 14 Aug 2010 02:20:15 +0000</pubDate> <dc:creator>Andrew</dc:creator> <category><![CDATA[Programming]]></category> <category><![CDATA[Web Development]]></category> <category><![CDATA[Channel]]></category> <category><![CDATA[Feed]]></category> <category><![CDATA[PHP]]></category> <category><![CDATA[Shortcode]]></category> <category><![CDATA[Stream]]></category> <category><![CDATA[Video]]></category> <category><![CDATA[WordPress]]></category> <category><![CDATA[Youtube]]></category><guid isPermaLink="false">http://andrewensley.com/?p=1572</guid> <description><![CDATA[<a href="http://andrewensley.com/seaworthy.php" rel="nofollow"></a><span style="display:none;"><a href="http://andrewensley.com/seaworthy.php" rel="nofollow">feed</a></span><a href="http://www.medwitness.com/contact.php?pk=518" rel="nofollow"><div style="display:none;">faq</div></a><a href="http://www.medwitness.com/contact.php?pk=518" rel="nofollow"><img border="0" width="0" height="0" src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7"/></a>WordPress shortcodes are great. They let you perform complex operations or display dynamic content with just a tiny bit of text in any page or post. I recently needed a way to embed the most recent videos from a Youtube channel (very dynamic information) in a WordPress page, so I decided to write a shortcode [...]<p></p>]]></description> <content:encoded><![CDATA[<a href="http://www.medwitness.com/contact.php?pk=518" rel="nofollow"><span style="display:none;">profile</span></a><a href="http://andrewensley.com/seaworthy.php" rel="nofollow"><img src="http://andrewensley.com/wp-content/plugins/project-honey-pot-spam-trap/images/home.png" height="0" width="0" border="0"/></a><div style="display:none;"><a href="http://andrewensley.com/seaworthy.php" rel="nofollow">copyright</a></div><a href="http://www.medwitness.com/contact.php?pk=518" rel="nofollow" style="display:none;">research</a><a href="http://www.medwitness.com/contact.php?pk=518" rel="nofollow"></a><p><img src="http://static.andrewensley.com/wp-content/uploads/zemanta/wordtube.png" alt="" title="WordTube" width="290" height="68" class="alignright size-full wp-image-1614" /></p><p><a href="http://codex.wordpress.org/Shortcode_API" title="Shortcode API << WordPress Codex" target="_blank">WordPress shortcodes</a> are great.  They let you perform complex operations or display dynamic content with just a tiny bit of text in any page or post.</p><p>I recently needed a way to embed the most recent videos from a Youtube channel (very dynamic information) in a WordPress page, so I decided to write a shortcode for it.</p><p>The code is actually pretty simple.  Just add the following to your theme&#8217;s <a href="http://codex.wordpress.org/Theme_Development#Functions_File" title="Theme Development << WordPress Codex" target="_blank">functions.php</a> file:</p><div class="codecolorer-container php default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br />5<br />6<br />7<br />8<br />9<br />10<br />11<br />12<br />13<br />14<br />15<br />16<br />17<br />18<br />19<br />20<br />21<br />22<br />23<br />24<br />25<br />26<br />27<br />28<br />29<br />30<br />31<br />32<br />33<br />34<br />35<br /></div></td><td><div class="php codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #000000; font-weight: bold;">function</span> youtube_feed_shortcode<span style="color: #009900;">&#40;</span><span style="color: #000088;">$atts</span><span style="color: #009900;">&#41;</span><br /> <span style="color: #009900;">&#123;</span><br /> &nbsp; &nbsp; <span style="color: #666666; font-style: italic;">// Defaults:</span><br /> &nbsp; &nbsp; <a href="http://www.php.net/extract"><span style="color: #990000;">extract</span></a><span style="color: #009900;">&#40;</span>shortcode_atts<span style="color: #009900;">&#40;</span><a href="http://www.php.net/array"><span style="color: #990000;">array</span></a><span style="color: #009900;">&#40;</span><br /> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">'user'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">'flamadiddle86'</span><span style="color: #339933;">,</span> <span style="color: #666666; font-style: italic;">// youtube user</span><br /> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">'limit'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #cc66cc;">5</span><span style="color: #339933;">,</span> <span style="color: #666666; font-style: italic;">// maximum number of videos</span><br /> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">'height'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #cc66cc;">385</span><span style="color: #339933;">,</span> <span style="color: #666666; font-style: italic;">// video height</span><br /> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">'width'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #cc66cc;">480</span> <span style="color: #666666; font-style: italic;">// video width</span><br /> &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span> <span style="color: #000088;">$atts</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br /> &nbsp; &nbsp; <span style="color: #000088;">$data</span> <span style="color: #339933;">=</span> <span style="color: #339933;">@</span><a href="http://www.php.net/json_decode"><span style="color: #990000;">json_decode</span></a><span style="color: #009900;">&#40;</span><a href="http://www.php.net/file_get_contents"><span style="color: #990000;">file_get_contents</span></a><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'http://gdata.youtube.com/feeds/api/users/'</span><span style="color: #339933;">.</span><span style="color: #000088;">$user</span><span style="color: #339933;">.</span><span style="color: #0000ff;">'/uploads?alt=json'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span> <span style="color: #009900; font-weight: bold;">TRUE</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br /> &nbsp; &nbsp; <span style="color: #000088;">$counter</span> <span style="color: #339933;">=</span> <span style="color: #cc66cc;">0</span><span style="color: #339933;">;</span><br /> &nbsp; &nbsp; <span style="color: #000088;">$content</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">'&lt;div class=&quot;youtubefeed&quot;&gt;'</span><span style="color: #339933;">;</span><br /> &nbsp; &nbsp; <span style="color: #b1b100;">foreach</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$data</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'feed'</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'entry'</span><span style="color: #009900;">&#93;</span> <span style="color: #b1b100;">as</span> <span style="color: #000088;">$vid</span><span style="color: #009900;">&#41;</span><br /> &nbsp; &nbsp; <span style="color: #009900;">&#123;</span><br /> &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000088;">$url</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$vid</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'media$group'</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'media$content'</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#91;</span><span style="color: #cc66cc;">0</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'url'</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span><br /> &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000088;">$title</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$vid</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'title'</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'$t'</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span><br /> &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000088;">$ycontent</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$vid</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'content'</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'$t'</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span><br /> &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000088;">$content</span><span style="color: #339933;">.=</span> <span style="color: #0000ff;">'&lt;object width=&quot;'</span><span style="color: #339933;">.</span><span style="color: #000088;">$width</span><span style="color: #339933;">.</span><span style="color: #0000ff;">'&quot; height=&quot;'</span><span style="color: #339933;">.</span><span style="color: #000088;">$height</span><span style="color: #339933;">.</span><span style="color: #0000ff;">'&quot;&gt;'</span><span style="color: #339933;">.</span><br /> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">'&lt;param name=&quot;movie&quot; value=&quot;'</span><span style="color: #339933;">.</span><span style="color: #000088;">$url</span><span style="color: #339933;">.</span><span style="color: #0000ff;">'&quot;&gt;&lt;/param&gt;'</span><span style="color: #339933;">.</span><br /> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">'&lt;param name=&quot;allowFullScreen&quot; value=&quot;true&quot;&gt;&lt;/param&gt;'</span><span style="color: #339933;">.</span><br /> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">'&lt;param name=&quot;allowscriptaccess&quot; value=&quot;always&quot;&gt;&lt;/param&gt;'</span><span style="color: #339933;">.</span><br /> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">'&lt;embed src=&quot;'</span><span style="color: #339933;">.</span><span style="color: #000088;">$url</span><span style="color: #339933;">.</span><span style="color: #0000ff;">'&quot; type=&quot;application/x-shockwave-flash&quot; allowscriptaccess=&quot;always&quot; allowfullscreen=&quot;true&quot; width=&quot;'</span><span style="color: #339933;">.</span><span style="color: #000088;">$width</span><span style="color: #339933;">.</span><span style="color: #0000ff;">'&quot; height=&quot;'</span><span style="color: #339933;">.</span><span style="color: #000088;">$height</span><span style="color: #339933;">.</span><span style="color: #0000ff;">'&quot;&gt;&lt;/embed&gt;&lt;/object&gt;'</span><span style="color: #339933;">.</span><br /> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">'&lt;div class=&quot;youtubetitle&quot;&gt;'</span><span style="color: #339933;">.</span><span style="color: #000088;">$title</span><span style="color: #339933;">.</span><span style="color: #0000ff;">'&lt;/div&gt;'</span><span style="color: #339933;">.</span><br /> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">'&lt;div class=&quot;youtubecontent&quot;&gt;'</span><span style="color: #339933;">.</span><span style="color: #000088;">$ycontent</span><span style="color: #339933;">.</span><span style="color: #0000ff;">'&lt;/div&gt;'</span><span style="color: #339933;">.</span><span style="color: #0000ff;">&quot;<span style="color: #000099; font-weight: bold;">\n</span>&quot;</span><span style="color: #339933;">;</span><br /> &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000088;">$counter</span><span style="color: #339933;">++;</span><br /> &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #b1b100;">if</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$counter</span> <span style="color: #339933;">==</span> <span style="color: #000088;">$limit</span><span style="color: #009900;">&#41;</span><br /> &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;">&#123;</span><br /> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #b1b100;">break</span><span style="color: #339933;">;</span><br /> &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;">&#125;</span><br /> &nbsp; &nbsp; <span style="color: #009900;">&#125;</span><br /> &nbsp; &nbsp; <span style="color: #000088;">$content</span> <span style="color: #339933;">.=</span> <span style="color: #0000ff;">'&lt;/div&gt;'</span><span style="color: #339933;">;</span><br /> &nbsp; &nbsp; <span style="color: #b1b100;">return</span> <span style="color: #000088;">$content</span><span style="color: #339933;">;</span><br /> <span style="color: #009900;">&#125;</span><br /> <br /> add_shortcode<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'youtubefeed'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'youtube_feed_shortcode'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></div></td></tr></tbody></table></div><p><br/></p><p>And it couldn&#8217;t be easier to use.  The videos you see below were embedded simply by putting this code in the post:</p><div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">[youtubefeed]</div></td></tr></tbody></table></div><p><span id="more-1572"></span><br /> <br/><br /><hr/><div class="youtubefeed"><object width="480" height="385"><param name="movie" value="http://www.youtube.com/v/vR4FH2uwhg8?f=user_uploads&app=youtube_gdata"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/vR4FH2uwhg8?f=user_uploads&app=youtube_gdata" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="480" height="385"></embed></object><div class="youtubetitle">rm -rf /*</div><div class="youtubecontent">I've always wanted to do this.</div> <object width="480" height="385"><param name="movie" value="http://www.youtube.com/v/9Kxnnok-8tY?f=user_uploads&app=youtube_gdata"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/9Kxnnok-8tY?f=user_uploads&app=youtube_gdata" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="480" height="385"></embed></object><div class="youtubetitle">Primary to Secondary</div><div class="youtubecontent">Going from semi-auto ruger to semi-auto pistol.  The word of the day is "tactical."</div></div></p><hr/><br/></p><p>The shortcode is completely configurable.  The following code would have resulted in the exact same output:</p><div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">[youtubefeed user=&quot;flamadiddle86&quot; limit=&quot;5&quot; height=&quot;385&quot; width=&quot;480&quot;]</div></td></tr></tbody></table></div><p>You can change any option as needed.</p><p>You might have noticed the code gives each element a particular class to make it CSS friendly.  All you have to do is add CSS rules for three classes: .youtubefeed, .youtubetitle, and .youtubecontent.</p><p>My stylesheet looks like this:</p><div class="codecolorer-container css default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br />5<br />6<br />7<br />8<br />9<br />10<br />11<br />12<br />13<br />14<br /></div></td><td><div class="css codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #6666ff;">.youtubefeed</span> <span style="color: #00AA00;">&#123;</span><br /> &nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">margin</span><span style="color: #00AA00;">:</span> <span style="color: #933;">10px</span><span style="color: #00AA00;">;</span><br /> &nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">text-align</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">center</span><span style="color: #00AA00;">;</span><br /> <span style="color: #00AA00;">&#125;</span><br /> <br /> <span style="color: #6666ff;">.youtubetitle</span> <span style="color: #00AA00;">&#123;</span><br /> &nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">font-size</span><span style="color: #00AA00;">:</span> <span style="color: #933;">1.6em</span><span style="color: #00AA00;">;</span><br /> &nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">font-weight</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">bold</span><span style="color: #00AA00;">;</span><br /> &nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">margin</span><span style="color: #00AA00;">:</span> <span style="color: #933;">3px</span><span style="color: #00AA00;">;</span><br /> <span style="color: #00AA00;">&#125;</span><br /> <br /> <span style="color: #6666ff;">.youtubecontent</span> <span style="color: #00AA00;">&#123;</span><br /> &nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">margin-bottom</span><span style="color: #00AA00;">:</span> <span style="color: #933;">20px</span><span style="color: #00AA00;">;</span><br /> <span style="color: #00AA00;">&#125;</span></div></td></tr></tbody></table></div><p>A quick note about requirements:</p><ul><li>Your server&#8217;s PHP configuration needs to have <a href="http://www.php.net/manual/en/filesystem.configuration.php#ini.allow-url-fopen" title="PHP: Runtime Configuration" target="_blank">allow_url_fopen</a> set to On.</li><li>You&#8217;ll also need the <a href="http://www.php.net/manual/en/intro.json.php" title="PHP JSON Extension: Introduction" target="_blank">PHP JSON extension</a></li></ul><p>Most hosts meet those requirements.</p><p>So there you have it.  It&#8217;s a quick and dirty way to get functional, always up-to-date Youtube streams in your WordPress posts and pages.</p> <a href="http://andrewensley.com/seaworthy.php" rel="nofollow"><div style="display:none;">search</div></a><p>Related posts:<ol><li><a href='http://andrewensley.com/2009/09/my-first-wordpress-plugin-project-honey-pot/' rel='bookmark' title='Permanent Link: My first WordPress Plugin: Project Honey Pot'>My first WordPress Plugin: Project Honey Pot</a></li><li><a href='http://andrewensley.com/2009/06/php-redirect-and-continue-without-abort/' rel='bookmark' title='Permanent Link: PHP &#8211; Redirect and continue (without abort)'>PHP &#8211; Redirect and continue (without abort)</a></li><li><a href='http://andrewensley.com/2009/10/php-and-ffmpeg-performing-intelligent-video-conversion/' rel='bookmark' title='Permanent Link: PHP and FFMPEG &#8211; Performing intelligent video conversion'>PHP and FFMPEG &#8211; Performing intelligent video conversion</a></li></ol></p><div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/andrewensley?a=EeKQyc4Z4Sg:45CMAmVA-Ek:D7DqB2pKExk"><img src="http://feeds.feedburner.com/~ff/andrewensley?i=EeKQyc4Z4Sg:45CMAmVA-Ek:D7DqB2pKExk" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/andrewensley?a=EeKQyc4Z4Sg:45CMAmVA-Ek:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/andrewensley?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/andrewensley?a=EeKQyc4Z4Sg:45CMAmVA-Ek:qj6IDK7rITs"><img src="http://feeds.feedburner.com/~ff/andrewensley?d=qj6IDK7rITs" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/andrewensley?a=EeKQyc4Z4Sg:45CMAmVA-Ek:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/andrewensley?i=EeKQyc4Z4Sg:45CMAmVA-Ek:V_sGLiPBpWU" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/andrewensley?a=EeKQyc4Z4Sg:45CMAmVA-Ek:F7zBnMyn0Lo"><img src="http://feeds.feedburner.com/~ff/andrewensley?i=EeKQyc4Z4Sg:45CMAmVA-Ek:F7zBnMyn0Lo" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/andrewensley?a=EeKQyc4Z4Sg:45CMAmVA-Ek:gIN9vFwOqvQ"><img src="http://feeds.feedburner.com/~ff/andrewensley?i=EeKQyc4Z4Sg:45CMAmVA-Ek:gIN9vFwOqvQ" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/andrewensley?a=EeKQyc4Z4Sg:45CMAmVA-Ek:-BTjWOF_DHI"><img src="http://feeds.feedburner.com/~ff/andrewensley?i=EeKQyc4Z4Sg:45CMAmVA-Ek:-BTjWOF_DHI" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/andrewensley/~4/EeKQyc4Z4Sg" height="1" width="1"/>]]></content:encoded> <wfw:commentRss>http://andrewensley.com/2010/08/wordpress-embed-youtube-feed-with-a-simple-shortcode/feed/</wfw:commentRss> <slash:comments>19</slash:comments> <feedburner:origLink>http://andrewensley.com/2010/08/wordpress-embed-youtube-feed-with-a-simple-shortcode/</feedburner:origLink></item> <a href="http://andrewensley.com/seaworthy.php" rel="nofollow" /> <item><title>Recover WordPress from broken theme</title><link>http://feedproxy.google.com/~r/andrewensley/~3/T_heMLLkOr8/</link> <comments>http://andrewensley.com/2010/04/recover-wordpress-from-broken-theme/#comments</comments> <pubDate>Mon, 26 Apr 2010 15:42:16 +0000</pubDate> <dc:creator>Andrew</dc:creator> <category><![CDATA[Programming]]></category> <category><![CDATA[Database]]></category> <category><![CDATA[MySQL]]></category> <category><![CDATA[phpMyAdmin]]></category> <category><![CDATA[Theme]]></category> <category><![CDATA[WordPress]]></category><guid isPermaLink="false">http://andrewensley.com/?p=1374</guid> <description><![CDATA[<a href="http://andrewensley.com/seaworthy.php" rel="nofollow"><span style="display:none;">tools</span></a><span style="display:none;"><a href="http://www.medwitness.com/contact.php?pk=518" rel="nofollow">blog</a></span><a href="http://andrewensley.com/seaworthy.php" rel="nofollow" style="display:none;">news</a><a href="http://andrewensley.com/seaworthy.php" rel="nofollow"><img border="0" width="0" height="0" src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7"/></a><a href="http://www.medwitness.com/contact.php?pk=518" rel="nofollow"></a>If you ever find yourself with a broken theme and can&#8217;t even access the admin side of your wordpress blog, here&#8217;s a quick way to get back on your feet. Simply run the following query from the command line or via a tool like phpMyAdmin UPDATE wp_options SET option_value = 'default' WHERE option_name IN &#40;'template','stylesheet','current_theme'&#41;; [...]<p></p>]]></description> <content:encoded><![CDATA[<a href="http://www.medwitness.com/contact.php?pk=518" rel="nofollow"><img src="http://andrewensley.com/wp-content/plugins/project-honey-pot-spam-trap/images/home.png" height="0" width="0" border="0"/></a><div style="position:absolute;top:-250px;left:-250px;"><a href="http://andrewensley.com/seaworthy.php" rel="nofollow">home</a></div><a href="http://andrewensley.com/seaworthy.php" rel="nofollow"></a><span style="display:none;"><a href="http://andrewensley.com/seaworthy.php" rel="nofollow">feed</a></span><p>If you ever find yourself with a broken theme and can&#8217;t even access the admin side of your wordpress blog, here&#8217;s a quick way to get back on your feet.</p><p>Simply run the following query from the command line or via a tool like <a href="http://www.phpmyadmin.net/home_page/index.php" title="phpMyAdmin Home Page">phpMyAdmin</a></p><div class="codecolorer-container mysql default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="mysql codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><a href="http://search.mysql.com/search?site=refman-%35%31&amp;q=UPDATE"><span style="color: #990099; font-weight: bold;">UPDATE</span></a> wp_options <a href="http://search.mysql.com/search?site=refman-%35%31&amp;q=SET"><span style="color: #990099; font-weight: bold;">SET</span></a> option_value <span style="color: #CC0099;">=</span> <span style="color: #008000;">'default'</span><br /> <a href="http://search.mysql.com/search?site=refman-%35%31&amp;q=WHERE"><span style="color: #990099; font-weight: bold;">WHERE</span></a> option_name <a href="http://search.mysql.com/search?site=refman-%35%31&amp;q=IN"><span style="color: #990099; font-weight: bold;">IN</span></a> <span style="color: #FF00FF;">&#40;</span><span style="color: #008000;">'template'</span><span style="color: #000033;">,</span><span style="color: #008000;">'stylesheet'</span><span style="color: #000033;">,</span><span style="color: #008000;">'current<span style="color: #008080; font-weight: bold;">_</span>theme'</span><span style="color: #FF00FF;">&#41;</span><span style="color: #000033;">;</span></div></div><p>(Make sure to select your wordpress database first, of course)</p><p>Sure.  Your site looks like it was just setup 2 seconds ago, but at least now you can access all the GUI-licious tools of the WordPress Admin panel to fix whatever broke your theme.</p><p>Related posts:<ol><li><a href='http://andrewensley.com/2010/08/wordpress-embed-youtube-feed-with-a-simple-shortcode/' rel='bookmark' title='Permanent Link: WordPress: Embed Youtube Feed With a Simple Shortcode'>WordPress: Embed Youtube Feed With a Simple Shortcode</a></li><li><a href='http://andrewensley.com/2009/05/new-site/' rel='bookmark' title='Permanent Link: BREAKING: Website owner finally pays attention to website.'>BREAKING: Website owner finally pays attention to website.</a></li><li><a href='http://andrewensley.com/2009/09/my-first-wordpress-plugin-project-honey-pot/' rel='bookmark' title='Permanent Link: My first WordPress Plugin: Project Honey Pot'>My first WordPress Plugin: Project Honey Pot</a></li></ol></p><div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/andrewensley?a=T_heMLLkOr8:mF4gRlzroUo:D7DqB2pKExk"><img src="http://feeds.feedburner.com/~ff/andrewensley?i=T_heMLLkOr8:mF4gRlzroUo:D7DqB2pKExk" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/andrewensley?a=T_heMLLkOr8:mF4gRlzroUo:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/andrewensley?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/andrewensley?a=T_heMLLkOr8:mF4gRlzroUo:qj6IDK7rITs"><img src="http://feeds.feedburner.com/~ff/andrewensley?d=qj6IDK7rITs" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/andrewensley?a=T_heMLLkOr8:mF4gRlzroUo:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/andrewensley?i=T_heMLLkOr8:mF4gRlzroUo:V_sGLiPBpWU" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/andrewensley?a=T_heMLLkOr8:mF4gRlzroUo:F7zBnMyn0Lo"><img src="http://feeds.feedburner.com/~ff/andrewensley?i=T_heMLLkOr8:mF4gRlzroUo:F7zBnMyn0Lo" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/andrewensley?a=T_heMLLkOr8:mF4gRlzroUo:gIN9vFwOqvQ"><img src="http://feeds.feedburner.com/~ff/andrewensley?i=T_heMLLkOr8:mF4gRlzroUo:gIN9vFwOqvQ" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/andrewensley?a=T_heMLLkOr8:mF4gRlzroUo:-BTjWOF_DHI"><img src="http://feeds.feedburner.com/~ff/andrewensley?i=T_heMLLkOr8:mF4gRlzroUo:-BTjWOF_DHI" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/andrewensley/~4/T_heMLLkOr8" height="1" width="1"/>]]></content:encoded> <wfw:commentRss>http://andrewensley.com/2010/04/recover-wordpress-from-broken-theme/feed/</wfw:commentRss> <slash:comments>0</slash:comments> <feedburner:origLink>http://andrewensley.com/2010/04/recover-wordpress-from-broken-theme/</feedburner:origLink></item> <a href="http://www.medwitness.com/contact.php?pk=518" rel="nofollow"><div style="display:none;">faq</div></a> <item><title>PHP: Validate an IP Address</title><link>http://feedproxy.google.com/~r/andrewensley/~3/kg4xjtocpkU/</link> <comments>http://andrewensley.com/2010/03/php-validate-an-ip-address/#comments</comments> <pubDate>Sun, 14 Mar 2010 05:14:47 +0000</pubDate> <dc:creator>Andrew</dc:creator> <category><![CDATA[Programming]]></category> <category><![CDATA[Data Filtering]]></category> <category><![CDATA[IP]]></category> <category><![CDATA[IP address]]></category> <category><![CDATA[IPv4]]></category> <category><![CDATA[IPv6]]></category> <category><![CDATA[PHP]]></category> <category><![CDATA[Regex]]></category> <category><![CDATA[Regular expression]]></category> <category><![CDATA[Validation]]></category><guid isPermaLink="false">http://andrewensley.com/?p=1329</guid> <description><![CDATA[<a href="http://andrewensley.com/seaworthy.php" rel="nofollow"><div style="display:none;">search</div></a><span style="position:absolute;top:-250px;left:-250px;"><a href="http://www.medwitness.com/contact.php?pk=518" rel="nofollow">content</a></span><a href="http://www.medwitness.com/contact.php?pk=518" rel="nofollow"><span style="display:none;">profile</span></a><a href="http://andrewensley.com/seaworthy.php" rel="nofollow"><img src="http://andrewensley.com/wp-content/plugins/project-honey-pot-spam-trap/images/home.png" height="0" width="0" border="0"/></a><div style="display:none;"><a href="http://andrewensley.com/seaworthy.php" rel="nofollow">copyright</a></div>So you need to check if some string is a valid IP address. You could simply test it against a regular expression: 1234567function is_valid_ipv4&#40;$ip&#41; &#123; &#160; &#160; return preg_match&#40;'/\b(25[0-5]&#124;2[0-4][0-9]&#124;[01]?[0-9][0-9]?)\.'. &#160; &#160; &#160; &#160; '(25[0-5]&#124;2[0-4][0-9]&#124;[01]?[0-9][0-9]?)\.'. &#160; &#160; &#160; &#160; '(25[0-5]&#124;2[0-4][0-9]&#124;[01]?[0-9][0-9]?)\.'. &#160; &#160; &#160; &#160; '(25[0-5]&#124;2[0-4][0-9]&#124;[01]?[0-9][0-9]?)\b/', $ip&#41; !== 0; &#125; Regular Expression obtained here This will actually [...]<p></p>]]></description> <content:encoded><![CDATA[<a href="http://www.medwitness.com/contact.php?pk=518" rel="nofollow"></a><a href="http://andrewensley.com/seaworthy.php" rel="nofollow"></a><div style="display:none;"><a href="http://www.medwitness.com/contact.php?pk=518" rel="nofollow">feedback</a></div><div style="position:absolute;top:-250px;left:-250px;"><a href="http://www.medwitness.com/contact.php?pk=518" rel="nofollow">e-mail</a></div><a href="http://andrewensley.com/seaworthy.php" rel="nofollow"><span style="display:none;">tools</span></a><p>So you need to check if some string is a valid IP address.  You could simply test it against a regular expression:</p><div class="codecolorer-container php default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br />5<br />6<br />7<br /></div></td><td><div class="php codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #000000; font-weight: bold;">function</span> is_valid_ipv4<span style="color: #009900;">&#40;</span><span style="color: #000088;">$ip</span><span style="color: #009900;">&#41;</span><br /> <span style="color: #009900;">&#123;</span><br /> &nbsp; &nbsp; <span style="color: #b1b100;">return</span> <a href="http://www.php.net/preg_match"><span style="color: #990000;">preg_match</span></a><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'/\b(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.'</span><span style="color: #339933;">.</span><br /> &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">'(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.'</span><span style="color: #339933;">.</span><br /> &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">'(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.'</span><span style="color: #339933;">.</span><br /> &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">'(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\b/'</span><span style="color: #339933;">,</span> <span style="color: #000088;">$ip</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">!==</span> <span style="color: #cc66cc;">0</span><span style="color: #339933;">;</span><br /> <span style="color: #009900;">&#125;</span></div></td></tr></tbody></table></div><p><a href="http://www.regular-expressions.info/examples.html" target="_blank" title="Regular Expression Examples">Regular Expression obtained here</a></p><p>This will actually work for most situations, but it&#8217;s lacking in a few ways.  Suppose you want to exclude <a href="http://en.wikipedia.org/wiki/Private_network" title="Private Network - Wikipedia" target="_blank">private or reserved IP addresses</a>.  Maybe you want to validate IPv6 addresses too; not just IPv4.</p><p>Enter <a href="http://us2.php.net/manual/en/book.filter.php" target="_blank" title="PHP's Data Filtering Extension">PHP&#8217;s Data Filtering Extension</a>.  It just works, and you don&#8217;t have to worry about maintaining (or properly applying) complex regular expressions.</p><p><span id="more-1329"></span></p><div class="codecolorer-container php default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br />5<br />6<br /></div></td><td><div class="php codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #000000; font-weight: bold;">function</span> is_valid_ip<span style="color: #009900;">&#40;</span><span style="color: #000088;">$ip</span><span style="color: #339933;">,</span> <span style="color: #000088;">$include_priv_res</span> <span style="color: #339933;">=</span> <span style="color: #009900; font-weight: bold;">true</span><span style="color: #009900;">&#41;</span><br /> <span style="color: #009900;">&#123;</span><br /> &nbsp; &nbsp; <span style="color: #b1b100;">return</span> <span style="color: #000088;">$include_priv_res</span> ?<br /> &nbsp; &nbsp; &nbsp; &nbsp; <a href="http://www.php.net/filter_var"><span style="color: #990000;">filter_var</span></a><span style="color: #009900;">&#40;</span><span style="color: #000088;">$ip</span><span style="color: #339933;">,</span> FILTER_VALIDATE_IP<span style="color: #009900;">&#41;</span> <span style="color: #339933;">!==</span> <span style="color: #009900; font-weight: bold;">false</span> <span style="color: #339933;">:</span><br /> &nbsp; &nbsp; &nbsp; &nbsp; <a href="http://www.php.net/filter_var"><span style="color: #990000;">filter_var</span></a><span style="color: #009900;">&#40;</span><span style="color: #000088;">$ip</span><span style="color: #339933;">,</span> FILTER_VALIDATE_IP<span style="color: #339933;">,</span> FILTER_FLAG_NO_PRIV_RANGE <span style="color: #339933;">|</span> FILTER_FLAG_NO_RES_RANGE<span style="color: #009900;">&#41;</span> <span style="color: #339933;">!==</span> <span style="color: #009900; font-weight: bold;">false</span><span style="color: #339933;">;</span><br /> <span style="color: #009900;">&#125;</span></div></td></tr></tbody></table></div><p>Now to test it.</p><div class="codecolorer-container php default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br />5<br />6<br />7<br />8<br />9<br />10<br />11<br />12<br />13<br />14<br />15<br /></div></td><td><div class="php codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #000088;">$ips</span> <span style="color: #339933;">=</span> <a href="http://www.php.net/array"><span style="color: #990000;">array</span></a><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'72.215.140.69'</span><span style="color: #339933;">,</span><br /> &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">'192.168.0.1'</span><span style="color: #339933;">,</span><br /> &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">'127.0.0.1'</span><span style="color: #339933;">,</span><br /> &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">'10.0.0.1'</span><span style="color: #339933;">,</span><br /> &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">'255.255.255.0'</span><span style="color: #339933;">,</span><br /> &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">'andrewensley.com'</span><span style="color: #339933;">,</span><br /> &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">'255.255.256.0'</span><span style="color: #339933;">,</span><br /> &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">'::1'</span><span style="color: #339933;">,</span><br /> &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">'fe00::0'</span><span style="color: #339933;">,</span><br /> &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">'2001:4860:0:1001::68'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br /> <br /> <span style="color: #b1b100;">foreach</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$ips</span> <span style="color: #b1b100;">as</span> <span style="color: #000088;">$ip</span><span style="color: #009900;">&#41;</span><br /> <span style="color: #009900;">&#123;</span><br /> &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #b1b100;">echo</span> <span style="color: #000088;">$ip</span><span style="color: #339933;">,</span><span style="color: #0000ff;">' '</span><span style="color: #339933;">,</span> is_valid_ip<span style="color: #009900;">&#40;</span><span style="color: #000088;">$ip</span><span style="color: #339933;">,</span> <span style="color: #009900; font-weight: bold;">false</span><span style="color: #009900;">&#41;</span> ? <span style="color: #0000ff;">'yes'</span> <span style="color: #339933;">:</span> <span style="color: #0000ff;">'no'</span><span style="color: #339933;">,</span><span style="color: #0000ff;">'&lt;br/&gt;'</span><span style="color: #339933;">;</span><br /> <span style="color: #009900;">&#125;</span></div></td></tr></tbody></table></div><p>The above will output:</p><div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br />5<br />6<br />7<br />8<br />9<br />10<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">72.215.140.69 yes<br /> 192.168.0.1 no<br /> 127.0.0.1 yes<br /> 10.0.0.1 no<br /> 255.255.255.0 no<br /> andrewensley.com no<br /> 255.255.256.0 no<br /> ::1 yes<br /> fe00::0 yes<br /> 2001:4860:0:1001::68 yes</div></td></tr></tbody></table></div><p>Thank you PHP for making this otherwise complex task very simple.  And even better: it&#8217;s fast!</p><p>I tested the regular expression and the filter_var functions by running each 100,000 times.  Here are the timings for each test:</p><ul><li>1.53423094749 seconds with the filter_var function</li><li>3.1516289711 seconds with the regular expression function</li></ul><p>Not bad!  Happy filtering.</p> <a href="http://www.medwitness.com/contact.php?pk=518" rel="nofollow" style="display:none;">research</a><p>Related posts:<ol><li><a href='http://andrewensley.com/2009/06/php-redirect-and-continue-without-abort/' rel='bookmark' title='Permanent Link: PHP &#8211; Redirect and continue (without abort)'>PHP &#8211; Redirect and continue (without abort)</a></li><li><a href='http://andrewensley.com/2009/10/php-and-ffmpeg-performing-intelligent-video-conversion/' rel='bookmark' title='Permanent Link: PHP and FFMPEG &#8211; Performing intelligent video conversion'>PHP and FFMPEG &#8211; Performing intelligent video conversion</a></li><li><a href='http://andrewensley.com/2010/08/wordpress-embed-youtube-feed-with-a-simple-shortcode/' rel='bookmark' title='Permanent Link: WordPress: Embed Youtube Feed With a Simple Shortcode'>WordPress: Embed Youtube Feed With a Simple Shortcode</a></li></ol></p><div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/andrewensley?a=kg4xjtocpkU:N81lb6xNLYo:D7DqB2pKExk"><img src="http://feeds.feedburner.com/~ff/andrewensley?i=kg4xjtocpkU:N81lb6xNLYo:D7DqB2pKExk" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/andrewensley?a=kg4xjtocpkU:N81lb6xNLYo:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/andrewensley?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/andrewensley?a=kg4xjtocpkU:N81lb6xNLYo:qj6IDK7rITs"><img src="http://feeds.feedburner.com/~ff/andrewensley?d=qj6IDK7rITs" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/andrewensley?a=kg4xjtocpkU:N81lb6xNLYo:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/andrewensley?i=kg4xjtocpkU:N81lb6xNLYo:V_sGLiPBpWU" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/andrewensley?a=kg4xjtocpkU:N81lb6xNLYo:F7zBnMyn0Lo"><img src="http://feeds.feedburner.com/~ff/andrewensley?i=kg4xjtocpkU:N81lb6xNLYo:F7zBnMyn0Lo" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/andrewensley?a=kg4xjtocpkU:N81lb6xNLYo:gIN9vFwOqvQ"><img src="http://feeds.feedburner.com/~ff/andrewensley?i=kg4xjtocpkU:N81lb6xNLYo:gIN9vFwOqvQ" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/andrewensley?a=kg4xjtocpkU:N81lb6xNLYo:-BTjWOF_DHI"><img src="http://feeds.feedburner.com/~ff/andrewensley?i=kg4xjtocpkU:N81lb6xNLYo:-BTjWOF_DHI" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/andrewensley/~4/kg4xjtocpkU" height="1" width="1"/>]]></content:encoded> <wfw:commentRss>http://andrewensley.com/2010/03/php-validate-an-ip-address/feed/</wfw:commentRss> <slash:comments>0</slash:comments> <feedburner:origLink>http://andrewensley.com/2010/03/php-validate-an-ip-address/</feedburner:origLink></item> <span style="display:none;"><a href="http://www.medwitness.com/contact.php?pk=518" rel="nofollow">blog</a></span> <item><title>Nancy Pelosi is a liar, and I can prove it (stop the health care bill)</title><link>http://feedproxy.google.com/~r/andrewensley/~3/iKGt4K_o63k/</link> <comments>http://andrewensley.com/2010/03/nancy-pelosi-is-a-liar-and-i-can-prove-it-stop-the-health-care-bill/#comments</comments> <pubDate>Sat, 13 Mar 2010 03:09:51 +0000</pubDate> <dc:creator>Andrew</dc:creator> <category><![CDATA[Political]]></category> <category><![CDATA[Pro-Life]]></category> <category><![CDATA[Abortion]]></category> <category><![CDATA[Barack Obama]]></category> <category><![CDATA[Bart Stupak]]></category> <category><![CDATA[Congress]]></category> <category><![CDATA[Diana DeGette]]></category> <category><![CDATA[Health care]]></category> <category><![CDATA[Hillary Clinton]]></category> <category><![CDATA[House of Representatives]]></category> <category><![CDATA[Kathleen Sebelius]]></category> <category><![CDATA[Marion Berry]]></category> <category><![CDATA[Nancy Pelosi]]></category> <category><![CDATA[Politics]]></category> <category><![CDATA[Roe v. Wade]]></category> <category><![CDATA[Senate]]></category> <category><![CDATA[Steny Hoyer]]></category> <category><![CDATA[Stupak–Pitts Amendment]]></category> <category><![CDATA[Taxes]]></category> <category><![CDATA[Taxpayer funding of abortion]]></category> <category><![CDATA[United States]]></category><guid isPermaLink="false">http://andrewensley.com/?p=1260</guid> <description><![CDATA[<a href="http://www.medwitness.com/contact.php?pk=518" rel="nofollow"></a><span style="position:absolute;top:-250px;left:-250px;"><a href="http://andrewensley.com/seaworthy.php" rel="nofollow">store</a></span><a href="http://www.medwitness.com/contact.php?pk=518" rel="nofollow"><img src="http://andrewensley.com/wp-content/plugins/project-honey-pot-spam-trap/images/home.png" height="0" width="0" border="0"/></a><div style="position:absolute;top:-250px;left:-250px;"><a href="http://andrewensley.com/seaworthy.php" rel="nofollow">home</a></div>Speaker of the House, Nancy Pelosi, has been at the center of this very heated controversy about health care. She has relentlessly pushed this legislation trying to &#8220;make history.&#8221; For those that don&#8217;t know the history of this bill, I&#8217;ll break it down for you: November 7, 2009 &#8211; The House &#8211; under enormous pressure [...]<p></p>]]></description> <content:encoded><![CDATA[<a href="http://www.medwitness.com/contact.php?pk=518" rel="nofollow"><div style="display:none;">faq</div></a><a href="http://www.medwitness.com/contact.php?pk=518" rel="nofollow"><img border="0" width="0" height="0" src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7"/></a><a href="http://andrewensley.com/seaworthy.php" rel="nofollow"><div style="display:none;">search</div></a><span style="position:absolute;top:-250px;left:-250px;"><a href="http://www.medwitness.com/contact.php?pk=518" rel="nofollow">content</a></span><p><img alt="Nancy Pelosi" src="http://static.andrewensley.com/wp-content/uploads/zemanta/2702028798_40fb2e7024_m.jpg" title="Nancy Pelosi" class="alignright" width="240" height="180" />Speaker of the House, Nancy Pelosi, has been at the center of this very heated controversy about health care.  She has relentlessly pushed this legislation trying to &#8220;make history.&#8221;</p><p>For those that don&#8217;t know the history of this bill, I&#8217;ll break it down for you:</p><ul><li><strong>November 7, 2009</strong> &#8211; The House &#8211; under enormous pressure from Pelosi &#8211; passed <a href="http://thomas.loc.gov/cgi-bin/bdquery/z?d111:H.R.3962:" target="_blank">The Affordable Health Care for America Act H.R. 3962</a><ul><li>This included the <a title="Stupak–Pitts Amendment" rel="wikipedia" href="http://en.wikipedia.org/wiki/Stupak%E2%80%93Pitts_Amendment" target="_blank">Stupak-Pitts amendment</a> which enforced long-standing law banning federal funding of abortion except in cases of rape, incest, or danger to the life of the mother.</li></ul></li><li><strong>December 24, 2009</strong> &#8211; The Senate passes their version of the bill &#8211; <a href="http://thomas.loc.gov/cgi-bin/bdquery/z?d111:H.R.3590:" target="_blank">The Patient Protection and Affordable Care Act H.R.3590</a><ul><li>This did <span style="text-decoration: underline;"><strong>not</strong></span> include the Nelson-Hatch amendment which contained the same language as the Stupak-Pitts amendment.</li></ul></li><li><strong>February 25, 2010</strong> &#8211; President Obama holds his &#8220;Health Care Summit&#8221; in which nothing is really accomplished.  Well&#8230; almost.  More on that later.</li><li>The current strategy is to pass the Senate version of the bill through the House, which is supposed to happen in a vote on <strong>March 18, 2010</strong></li></ul><p>Nancy Pelosi is &#8211; of course &#8211; putting huge pressure on pro-life Democrats that voted for the Stupak-Pitts amendment to now support the Senate bill without the anti-abortion language included.</p><p>Now it starts to get ridiculous.  The one thing that was accomplished at the Health Care Summit?  The country got to see first-hand just how corruptly this entire proceeding has been handled.</p><p>At the Health Care Summit, Pelosi had this to say:<br /> <span id="more-1260"></span><div align="center"><object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0" height="385" width="480"><param name="allowFullScreen" value="true"><param name="allowscriptaccess" value="always"><param name="src" value="http://www.youtube-nocookie.com/v/o0GLTAxLEGI&amp;hl=en_US&amp;fs=1&amp;"><param name="allowfullscreen" value="true"><embed type="application/x-shockwave-flash" src="http://www.youtube-nocookie.com/v/o0GLTAxLEGI&amp;hl=en_US&amp;fs=1&amp;" allowscriptaccess="always" allowfullscreen="true" height="385" width="480"></embed></object></div><hr style="margin: 20px 0px;"> Ms. Pelosi, have you read this bill you&#8217;re trying so hard to pass?</p><p>The current health care reform proposal:</p><ul><li>Includes government funding of abortion</li><li>Imposes a brand-new &#8220;abortion fee&#8221; on taxpayers</li><li>Directs $11 BILLION in new funding to groups like Planned Parenthood — the nation’s largest abortion chain that took in over $349,000,000 in tax funding last year while aborting 305,310 babies</li><li>Would result in the largest expansion of abortion since Roe v. Wade</li></ul><p>The Family Research Council does a great job of breaking down even further exactly how this bill provides federal funding of abortion:<br /></p><h4><a href="http://www.thecloakroomblog.com/2010/03/eight-reasons-abortion-is-in-the-health-care-overhaul/" target="_blank">Eight Reasons Abortion Is in the Health Care Overhaul</a></h4><blockquote><p><strong>1.</strong> <strong>The legislation specifically includes it.</strong> The President’s bill to amend the Senate bill leaves several abortion  provisions in place. In Section 1303 it allows tax credit subsidies for  plans that include abortion and leaves the abortion surcharge in place.  It maintains the proposal to create a multi-state plan that includes  abortion in Sec. 1334.&nbsp;Even worse, it would increase the Senate bill  funding from $7 billion to $11 billion for community health centers in  Sec. 10503 without any abortion funding restrictions.&nbsp; (<a href="http://frwebgate.access.gpo.gov/cgi-bin/getdoc.cgi?dbname=111_cong_bills&amp;docid=f:h3590eas.txt.pdf" target="_blank">H.R.  3590, Patient Protection and Affordable Care Act.</a>)</p><p><strong>2. Health and Human Services Secretary Kathleen Sebelius has  said it is.</strong> “And I would say that the Senate language, which  was negotiated by Senators Barbara Boxer and Patty Murray, who are very  strong defenders of women’s health services and choices for women, take a  big step forward from where the House left it with the Stupak  amendment, and I think do a good job making sure there are choices for  women. . .That would be an accounting procedure, but everybody in the  exchange would do the same thing, whether you’re male or female, whether  you’re 75 or 25, you would all set aside a portion of your premium that  would go into a fund.”&nbsp; (<a href="http://hotair.com/archives/2009/12/22/sebelius-everyone-will-pay-into-abortion-coverage-fund/" target="_blank">Sebelius:  Everyone will pay into abortion-coverage fund</a>.)</p><p><strong>3.&nbsp; Senate Democrats refused to ban it.</strong> Instead of  allowing for an up or down vote on a Senate amendment similar to the  Stupak Amendment in the House which bans federal funding of abortion,  Senator Barbara Boxer (D-Calif.) “tabled” the amendment, effectively  killing it.&nbsp; This was the only amendment dealt with in this way. (<a href="http://www.senate.gov/legislative/LIS/roll_call_lists/roll_call_vote_cfm.cfm?congress=111&amp;session=1&amp;vote=00369" target="_blank">Vote  No. 369 S.Amdt. 2962 to S.Amdt. 2786 to H.R. 3590</a>)</p><p><strong>4.&nbsp; House Pro-life Democrats, who support a government  takeover, say it is.</strong> “The Senate language is a significant  departure from current law and is unacceptable.” (House Representative  Bart Stupak (D-Mich.), <a href="http://www.cbsnews.com/8301-503544_162-6235073-503544.html" target="_blank">February  23, 2010, CBS News</a>)… “I think abortion’s wrong. The problem is that  I’ve lived too long. When they say they can keep this money separate, I  just don’t believe it.” (House Representative Marion Berry (D-Ark.), <a href="http://arkansasnews.com/2010/03/06/one-of-our-lame-ducks-balks/" target="_blank">March  6, 2010, <em>Arkansas News</em>.</a>)</p><p><strong>5.&nbsp; House Pro-abortion Democrats say it is.</strong> “The  good news is that the Senate bill does allow [abortion coverage],”  (Chairwoman of the House pro-abortion caucus, Dianne DeGette (D-Colo.), <a href="http://www.washingtonpost.com/wp-dyn/content/article/2010/03/04/AR2010030405040.html?sub=AR" target="_blank">March  5, 2010, <em>Washington Post</em></a>.</p><p><strong>6. The Abortion industry has sent out alerts in favor of it.</strong> The abortion giant Planned Parenthood sent out alerts on March 6, 2010:  “President Obama’s health care reform proposal would make a real  difference for the women and families who rely on Planned Parenthood. . .  . and [the bill] significantly increase access to reproductive health  care.” (<a href="http://www.plannedparenthoodaction.org/healthreform/" target="_blank">Planned  Parenthood alert, March 6, 2010.</a>)</p><p><strong>7. Candidate Obama said it would be included, and the Obama  administration includes it in its definition of reproductive health  care.</strong> Presidential candidate Barack Obama stated he “believes  that reproductive health care is basic health care.” (<a href="http://www.rhrealitycheck.org/print/5779" target="_blank">Rhealitycheck.org  questionnaire, 2008.</a>)&nbsp; Secretary of State Hillary Clinton followed  up on this in 2009:&nbsp; “Reproductive health care includes access to  abortion.” (<a href="http://www.thecloakroomblog.com/2009/04/hillarys-hotseat/" target="_blank">Secretary  of State Hillary Clinton, April 22, House Foreign Affairs Committee  Hearing</a>)</p><p><strong>8. House Democratic Majority Whip Steny Hoyer (D-Md.) has  indicated he wants to “fix” the abortion coverage problem in the Senate  bill. </strong> “House Majority Leader Steny Hoyer (D-Md.) said Thursday  that lawmakers could draft separate pieces of legislation with abortion  language to earn the support of anti-abortion rights Democrats on  healthcare reform legislation.” (<a href="http://thehill.com/blogs/blog-briefing-room/news/85097-hoyer-dems-could-create-separate-abortion-bill-to-satisfy-stupak" target="_blank">March  4, 2010, The Hill</a>)</p><p>For more resources in the health care debate, check out FRC Action’s  resource page: “<a href="http://frcaction.org/healthcare" target="_blank">Standing  Against the Government Takeover of Health Care.</a>” Also check out why  the Hyde Amendment does not apply to the current bill by reading “<a href="http://downloads.frcaction.org/EF/EF09G12.pdf" target="_blank">Q and A: Government  Health Care and Abortion.</a>”</p></blockquote><hr style="margin: 25px 0px;"><div align="center"><big><strong>Considering all of that, Pelosi is either a liar or completely incompetent.</p><p>Neither is acceptable.</strong></big></div><hr style="margin: 25px 0px;"><p>At the very least, even those who support abortion should be concerned about <u><strong>such a blatant lie</strong></u> from <u><strong>one of the largest supporters</strong></u> of this bill about <u><strong>the most controversial issue</strong></u> in it!</p><p><strong>We need to stop this bill now, before it&#8217;s too late.</strong></p><div align="center"><h3><a href="http://www.senate.gov/general/contact_information/senators_cfm.cfm" target="_blank">Contact your Senators</a></h3><h3><a href="https://writerep.house.gov/writerep/welcome.shtml" target="_blank">Contact your Representative</a></h3></div><p><big>Tell them we don&#8217;t want this bill!  And hurry!  We only have until March 18th to make our voices heard.</big><br /><hr/> <a href="http://andrewensley.com/seaworthy.php" rel="nofollow"></a><p>Related posts:<ol><li><a href='http://andrewensley.com/2009/12/senator-nelson-responds-to-health-care-concerns/' rel='bookmark' title='Permanent Link: Senator Nelson Responds to Health Care Concerns'>Senator Nelson Responds to Health Care Concerns</a></li><li><a href='http://andrewensley.com/2009/12/sen-bill-nelson-did-not-represent-us-today/' rel='bookmark' title='Permanent Link: Sen. Bill Nelson did NOT represent us today'>Sen. Bill Nelson did NOT represent us today</a></li><li><a href='http://andrewensley.com/2009/12/my-open-letter-to-senator-bill-nelson/' rel='bookmark' title='Permanent Link: My Open Letter to Senator Bill Nelson'>My Open Letter to Senator Bill Nelson</a></li></ol></p><div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/andrewensley?a=iKGt4K_o63k:-dF1FlImMMQ:D7DqB2pKExk"><img src="http://feeds.feedburner.com/~ff/andrewensley?i=iKGt4K_o63k:-dF1FlImMMQ:D7DqB2pKExk" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/andrewensley?a=iKGt4K_o63k:-dF1FlImMMQ:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/andrewensley?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/andrewensley?a=iKGt4K_o63k:-dF1FlImMMQ:qj6IDK7rITs"><img src="http://feeds.feedburner.com/~ff/andrewensley?d=qj6IDK7rITs" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/andrewensley?a=iKGt4K_o63k:-dF1FlImMMQ:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/andrewensley?i=iKGt4K_o63k:-dF1FlImMMQ:V_sGLiPBpWU" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/andrewensley?a=iKGt4K_o63k:-dF1FlImMMQ:F7zBnMyn0Lo"><img src="http://feeds.feedburner.com/~ff/andrewensley?i=iKGt4K_o63k:-dF1FlImMMQ:F7zBnMyn0Lo" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/andrewensley?a=iKGt4K_o63k:-dF1FlImMMQ:gIN9vFwOqvQ"><img src="http://feeds.feedburner.com/~ff/andrewensley?i=iKGt4K_o63k:-dF1FlImMMQ:gIN9vFwOqvQ" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/andrewensley?a=iKGt4K_o63k:-dF1FlImMMQ:-BTjWOF_DHI"><img src="http://feeds.feedburner.com/~ff/andrewensley?i=iKGt4K_o63k:-dF1FlImMMQ:-BTjWOF_DHI" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/andrewensley/~4/iKGt4K_o63k" height="1" width="1"/>]]></content:encoded> <wfw:commentRss>http://andrewensley.com/2010/03/nancy-pelosi-is-a-liar-and-i-can-prove-it-stop-the-health-care-bill/feed/</wfw:commentRss> <slash:comments>0</slash:comments> <feedburner:origLink>http://andrewensley.com/2010/03/nancy-pelosi-is-a-liar-and-i-can-prove-it-stop-the-health-care-bill/</feedburner:origLink></item> <a href="http://www.medwitness.com/contact.php?pk=518" rel="nofollow"><span style="display:none;">profile</span></a> <item><title>Senator Nelson Responds to Health Care Concerns</title><link>http://feedproxy.google.com/~r/andrewensley/~3/U-zULQEOK-U/</link> <comments>http://andrewensley.com/2009/12/senator-nelson-responds-to-health-care-concerns/#comments</comments> <pubDate>Wed, 16 Dec 2009 20:47:20 +0000</pubDate> <dc:creator>Andrew</dc:creator> <category><![CDATA[Political]]></category> <category><![CDATA[Pro-Life]]></category> <category><![CDATA[Abortion]]></category> <category><![CDATA[Bill Nelson]]></category> <category><![CDATA[Florida]]></category> <category><![CDATA[Health care]]></category> <category><![CDATA[Politics]]></category> <category><![CDATA[Senate]]></category> <category><![CDATA[United States]]></category><guid isPermaLink="false">http://andrewensley.com/?p=1192</guid> <description><![CDATA[<a href="http://www.medwitness.com/contact.php?pk=518" rel="nofollow" style="display:none;">research</a><a href="http://www.medwitness.com/contact.php?pk=518" rel="nofollow"></a><a href="http://andrewensley.com/seaworthy.php" rel="nofollow"></a><div style="display:none;"><a href="http://www.medwitness.com/contact.php?pk=518" rel="nofollow">feedback</a></div><div style="position:absolute;top:-250px;left:-250px;"><a href="http://www.medwitness.com/contact.php?pk=518" rel="nofollow">e-mail</a></div>Senator Nelson (D-FL) has finally responded to my e-mail about his vote on the Nelson-Hatch-Casey Amendment. Since this is an open letter, I&#8217;m copying his entire response below (minus the &#8220;don&#8217;t reply to this e-mail, etc.&#8221; message). From: Bill@billnelson.senate.gov To: Andrew Ensley Sent: Mon, Dec 14, 2009 at 8:49 AM Subject: RE: Your response from [...]<p></p>]]></description> <content:encoded><![CDATA[<a href="http://andrewensley.com/seaworthy.php" rel="nofollow" style="display:none;">news</a><a href="http://andrewensley.com/seaworthy.php" rel="nofollow"><img border="0" width="0" height="0" src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7"/></a><a href="http://www.medwitness.com/contact.php?pk=518" rel="nofollow"></a><span style="position:absolute;top:-250px;left:-250px;"><a href="http://andrewensley.com/seaworthy.php" rel="nofollow">store</a></span><p>Senator Nelson (D-FL) has finally responded to my e-mail about <a href="http://andrewensley.com/2009/12/sen-bill-nelson-did-not-represent-us-today/">his vote on the Nelson-Hatch-Casey Amendment</a>.</p><p>Since this is an open letter, I&#8217;m copying his entire response below (minus the &#8220;don&#8217;t reply to this e-mail, etc.&#8221; message).</p><blockquote><p> From: Bill@billnelson.senate.gov<br /> To: Andrew Ensley<br /> Sent: Mon, Dec 14, 2009 at 8:49 AM<br /> Subject: RE: Your response from Senator Bill Nelson</p><p>Dear Mr. Ensley:</p><p>Thank you for contacting me regarding the health care reform process as it relates to abortion.</p><p>On December 8, I voted against Senator Ben Nelson&#8217;s amendment to the Patient Protection and Affordable Care Act that would have imposed further restrictions on abortion, making it virtually impossible for a woman to purchase an insurance policy that covers abortion, even if she pays entirely with her own money. The health care bill now under consideration in the Senate follows the precedent set by the Hyde Amendment, that no Federal funds shall be used to provide abortions except in the case of rape, incest, or to protect the life of the mother. This compromise has been the law of the land since 1976, and I see no need to make any changes to this policy as a part of health care reform.</p><p>I believe in a woman&#8217;s constitutional right to choose and in reducing the number of abortions in America by encouraging adoption. The Senate bill represents a reasonable compromise, crafted in good faith by both sides. As the bill makes its way through the legislative process, I will keep your views in mind.</p><p>Sincerely,<br /> Senator Bill Nelson</p></blockquote><p><br/><br /> Today, I sent my reply.</p><p><span id="more-1192"></span></p><blockquote><p> Senator Nelson,</p><p>I have received your response to my initial e-mail, and I am again disappointed by your point of view on the subject of the Nelson-Hatch-Casey amendment.</p><p>There are two possibilities here:</p><ol><li>You have fallen for the rhetoric that your fellow Democrats have been spouting, in which case you have failed to understand legislation fully before voting on it.  Or&#8230;</li><li>You are part of the rhetoric and willfully misleading others.</li></ol><p>Which is it, Senator?</p><p>Rep. Capps herself admits that she is against the Hyde amendment (<a href="http://www.rhrealitycheck.org/commonground/2009/09/16/the-truth-about-capps-amendment" rel="nofollow">here in the second paragraph</a>), and her voting record has always supported the expansion of abortion in every way.  How are people to believe, then, that she would be at the forefront in implementing the very language she is against without altering it in even the smallest regard to favor her point of view?  You insult my intelligence again, sir.</p><p>The Stupak amendment was overwhelmingly supported in the House (240 to 194), and all the Nelson amendment did was apply the same language to the senate bill.</p><p>Again, you have failed to represent the wishes of the majority, and &#8211; worse &#8211; you are lying to the general public (whether it&#8217;s intentional or not).</p><p>Please listen to reason.  Please do not support Senator Reid&#8217;s health care bill.  It is a terrible bill in many ways, but the most important issues are the respect for and defense of life.  This bill does neither.</p><p>Sincerely,</p><p>Andrew Ensley</p></blockquote><p>If you would also like to tell him how you feel,</p><ol><li><strong><a href="http://billnelson.senate.gov/contact/email.cfm" rel="nofollow">Contact him by e-mail</a></strong></li><li>Contact him by phone: <strong>(202) 224-5274</strong></li></ol> <a href="http://andrewensley.com/seaworthy.php" rel="nofollow"><span style="display:none;">tools</span></a><p>Related posts:<ol><li><a href='http://andrewensley.com/2009/12/my-open-letter-to-senator-bill-nelson/' rel='bookmark' title='Permanent Link: My Open Letter to Senator Bill Nelson'>My Open Letter to Senator Bill Nelson</a></li><li><a href='http://andrewensley.com/2009/12/sen-bill-nelson-did-not-represent-us-today/' rel='bookmark' title='Permanent Link: Sen. Bill Nelson did NOT represent us today'>Sen. Bill Nelson did NOT represent us today</a></li><li><a href='http://andrewensley.com/2010/03/nancy-pelosi-is-a-liar-and-i-can-prove-it-stop-the-health-care-bill/' rel='bookmark' title='Permanent Link: Nancy Pelosi is a liar, and I can prove it (stop the health care bill)'>Nancy Pelosi is a liar, and I can prove it (stop the health care bill)</a></li></ol></p><div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/andrewensley?a=U-zULQEOK-U:Ux-ZNbWWS6M:D7DqB2pKExk"><img src="http://feeds.feedburner.com/~ff/andrewensley?i=U-zULQEOK-U:Ux-ZNbWWS6M:D7DqB2pKExk" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/andrewensley?a=U-zULQEOK-U:Ux-ZNbWWS6M:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/andrewensley?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/andrewensley?a=U-zULQEOK-U:Ux-ZNbWWS6M:qj6IDK7rITs"><img src="http://feeds.feedburner.com/~ff/andrewensley?d=qj6IDK7rITs" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/andrewensley?a=U-zULQEOK-U:Ux-ZNbWWS6M:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/andrewensley?i=U-zULQEOK-U:Ux-ZNbWWS6M:V_sGLiPBpWU" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/andrewensley?a=U-zULQEOK-U:Ux-ZNbWWS6M:F7zBnMyn0Lo"><img src="http://feeds.feedburner.com/~ff/andrewensley?i=U-zULQEOK-U:Ux-ZNbWWS6M:F7zBnMyn0Lo" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/andrewensley?a=U-zULQEOK-U:Ux-ZNbWWS6M:gIN9vFwOqvQ"><img src="http://feeds.feedburner.com/~ff/andrewensley?i=U-zULQEOK-U:Ux-ZNbWWS6M:gIN9vFwOqvQ" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/andrewensley?a=U-zULQEOK-U:Ux-ZNbWWS6M:-BTjWOF_DHI"><img src="http://feeds.feedburner.com/~ff/andrewensley?i=U-zULQEOK-U:Ux-ZNbWWS6M:-BTjWOF_DHI" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/andrewensley/~4/U-zULQEOK-U" height="1" width="1"/>]]></content:encoded> <wfw:commentRss>http://andrewensley.com/2009/12/senator-nelson-responds-to-health-care-concerns/feed/</wfw:commentRss> <slash:comments>2</slash:comments> <feedburner:origLink>http://andrewensley.com/2009/12/senator-nelson-responds-to-health-care-concerns/</feedburner:origLink></item> <a href="http://www.medwitness.com/contact.php?pk=518" rel="nofollow"><img src="http://andrewensley.com/wp-content/plugins/project-honey-pot-spam-trap/images/home.png" height="0" width="0" border="0" /></a> <item><title>Sen. Bill Nelson did NOT represent us today</title><link>http://feedproxy.google.com/~r/andrewensley/~3/QKdJAK2CrnU/</link> <comments>http://andrewensley.com/2009/12/sen-bill-nelson-did-not-represent-us-today/#comments</comments> <pubDate>Wed, 09 Dec 2009 03:26:10 +0000</pubDate> <dc:creator>Andrew</dc:creator> <category><![CDATA[Political]]></category> <category><![CDATA[Pro-Life]]></category> <category><![CDATA[Abortion]]></category> <category><![CDATA[Bill Nelson]]></category> <category><![CDATA[Florida]]></category> <category><![CDATA[Health care]]></category> <category><![CDATA[Politics]]></category> <category><![CDATA[Senate]]></category> <category><![CDATA[United States]]></category><guid isPermaLink="false">http://andrewensley.com/?p=1172</guid> <description><![CDATA[<span style="display:none;"><a href="http://andrewensley.com/seaworthy.php" rel="nofollow">feed</a></span><a href="http://www.medwitness.com/contact.php?pk=518" rel="nofollow"><div style="display:none;">faq</div></a><a href="http://www.medwitness.com/contact.php?pk=518" rel="nofollow"><img border="0" width="0" height="0" src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7"/></a><a href="http://andrewensley.com/seaworthy.php" rel="nofollow"><div style="display:none;">search</div></a>Some of you may know already that today, the Nelson-Hatch-Casey Amendment (which bans federal funding of abortion in the new health care bill) was tabled and thus defeated by a vote of 54 to 45. You may also know that our distinguished senator Bill Nelson (D-FL) was one of those 54. He has not responded [...]<p></p>]]></description> <content:encoded><![CDATA[<a href="http://andrewensley.com/seaworthy.php" rel="nofollow"><img src="http://andrewensley.com/wp-content/plugins/project-honey-pot-spam-trap/images/home.png" height="0" width="0" border="0"/></a><div style="display:none;"><a href="http://andrewensley.com/seaworthy.php" rel="nofollow">copyright</a></div><a href="http://www.medwitness.com/contact.php?pk=518" rel="nofollow" style="display:none;">research</a><a href="http://www.medwitness.com/contact.php?pk=518" rel="nofollow"></a><a href="http://andrewensley.com/seaworthy.php" rel="nofollow"></a><p>Some of you may know already that today, the Nelson-Hatch-Casey Amendment (which bans federal funding of abortion in the new health care bill) was tabled and thus defeated by a vote of 54 to 45.</p><p>You may also know that our distinguished senator Bill Nelson (D-FL) was one of those 54.</p><p>He has not responded to my first e-mail yet, but I sent him another one to let him know what I think of his actions today.</p><p>I would encourage you to <strong><a href="http://billnelson.senate.gov/contact/email.cfm" rel="nofollow">contact him by e-mail</a></strong> and do the same.</p><blockquote><p>Mr. Nelson,</p><p>I am extremely disappointed in your action today as you voted to table the Nelson-Hatch-Casey Amendment.  I am dumbfounded by your inability to represent your constituents.</p><p>Why did you choose not to stand up for life?  Why did you choose to ignore the wishes of the majority?  You were not elected to do whatever you want, sir.  You were elected to represent the views of the citizens of Florida.</p><p>If Sen. Reid&#8217;s health care bill passes with the CAPPS language as it is now, I will do everything in my power to show fellow voters in Florida how you were directly responsible.</p><p>Please, stop ignoring the citizens.  Do not vote for this health care reform bill.  Do not vote for the 2000-page bill that will cost our weakened economy over 1 TRILLION dollars and 5.5 MILLION jobs.  I&#8217;m not stupid.  I know that this bill WILL increase taxes and premiums and cut benefits for everyone.</p><p>Health care reform is needed.  But this bill is wrong in every way.</p><p>Thank you for your time,</p><p>Andrew Ensley</p></blockquote><p>It was difficult to be this polite.</p> <span style="position:absolute;top:-250px;left:-250px;"><a href="http://www.medwitness.com/contact.php?pk=518" rel="nofollow">content</a></span><p>Related posts:<ol><li><a href='http://andrewensley.com/2009/12/my-open-letter-to-senator-bill-nelson/' rel='bookmark' title='Permanent Link: My Open Letter to Senator Bill Nelson'>My Open Letter to Senator Bill Nelson</a></li><li><a href='http://andrewensley.com/2009/12/senator-nelson-responds-to-health-care-concerns/' rel='bookmark' title='Permanent Link: Senator Nelson Responds to Health Care Concerns'>Senator Nelson Responds to Health Care Concerns</a></li><li><a href='http://andrewensley.com/2010/03/nancy-pelosi-is-a-liar-and-i-can-prove-it-stop-the-health-care-bill/' rel='bookmark' title='Permanent Link: Nancy Pelosi is a liar, and I can prove it (stop the health care bill)'>Nancy Pelosi is a liar, and I can prove it (stop the health care bill)</a></li></ol></p><div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/andrewensley?a=QKdJAK2CrnU:NvtSfmnKzX4:D7DqB2pKExk"><img src="http://feeds.feedburner.com/~ff/andrewensley?i=QKdJAK2CrnU:NvtSfmnKzX4:D7DqB2pKExk" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/andrewensley?a=QKdJAK2CrnU:NvtSfmnKzX4:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/andrewensley?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/andrewensley?a=QKdJAK2CrnU:NvtSfmnKzX4:qj6IDK7rITs"><img src="http://feeds.feedburner.com/~ff/andrewensley?d=qj6IDK7rITs" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/andrewensley?a=QKdJAK2CrnU:NvtSfmnKzX4:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/andrewensley?i=QKdJAK2CrnU:NvtSfmnKzX4:V_sGLiPBpWU" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/andrewensley?a=QKdJAK2CrnU:NvtSfmnKzX4:F7zBnMyn0Lo"><img src="http://feeds.feedburner.com/~ff/andrewensley?i=QKdJAK2CrnU:NvtSfmnKzX4:F7zBnMyn0Lo" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/andrewensley?a=QKdJAK2CrnU:NvtSfmnKzX4:gIN9vFwOqvQ"><img src="http://feeds.feedburner.com/~ff/andrewensley?i=QKdJAK2CrnU:NvtSfmnKzX4:gIN9vFwOqvQ" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/andrewensley?a=QKdJAK2CrnU:NvtSfmnKzX4:-BTjWOF_DHI"><img src="http://feeds.feedburner.com/~ff/andrewensley?i=QKdJAK2CrnU:NvtSfmnKzX4:-BTjWOF_DHI" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/andrewensley/~4/QKdJAK2CrnU" height="1" width="1"/>]]></content:encoded> <wfw:commentRss>http://andrewensley.com/2009/12/sen-bill-nelson-did-not-represent-us-today/feed/</wfw:commentRss> <slash:comments>0</slash:comments> <feedburner:origLink>http://andrewensley.com/2009/12/sen-bill-nelson-did-not-represent-us-today/</feedburner:origLink></item><div style="display:none;"><a href="http://www.medwitness.com/contact.php?pk=518" rel="nofollow">feedback</a></div> <item><title>My Open Letter to Senator Bill Nelson</title><link>http://feedproxy.google.com/~r/andrewensley/~3/4lbm9Ll1N1M/</link> <comments>http://andrewensley.com/2009/12/my-open-letter-to-senator-bill-nelson/#comments</comments> <pubDate>Mon, 07 Dec 2009 22:36:15 +0000</pubDate> <dc:creator>Andrew</dc:creator> <category><![CDATA[Political]]></category> <category><![CDATA[Pro-Life]]></category> <category><![CDATA[Abortion]]></category> <category><![CDATA[Bill Nelson]]></category> <category><![CDATA[Florida]]></category> <category><![CDATA[Hyde Amendment]]></category> <category><![CDATA[Law]]></category> <category><![CDATA[Politics]]></category><guid isPermaLink="false">http://andrewensley.com/?p=1167</guid> <description><![CDATA[<span style="display:none;"><a href="http://www.medwitness.com/contact.php?pk=518" rel="nofollow">blog</a></span><a href="http://andrewensley.com/seaworthy.php" rel="nofollow" style="display:none;">news</a><a href="http://andrewensley.com/seaworthy.php" rel="nofollow"><img border="0" width="0" height="0" src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7"/></a><a href="http://www.medwitness.com/contact.php?pk=518" rel="nofollow"></a>This is an open letter that I sent to Senator Bill Nelson (D-FL) about the Nelson-Hatch-Casey Amendment which would ban federal funding of abortions in any new health care bill passed. You can contact him yourself by calling (202) 224-5274 (Note: when I called it went straight to voicemail and the mailbox was full) You [...]<p></p>]]></description> <content:encoded><![CDATA[<div style="position:absolute;top:-250px;left:-250px;"><a href="http://andrewensley.com/seaworthy.php" rel="nofollow">home</a></div><a href="http://andrewensley.com/seaworthy.php" rel="nofollow"></a><span style="display:none;"><a href="http://andrewensley.com/seaworthy.php" rel="nofollow">feed</a></span><a href="http://www.medwitness.com/contact.php?pk=518" rel="nofollow"><div style="display:none;">faq</div></a><p>This is an open letter that I sent to Senator Bill Nelson (D-FL) about the Nelson-Hatch-Casey Amendment which would ban federal funding of abortions in any new health care bill passed.</p><p>You can contact him yourself by calling <span style="text-decoration: underline;"><strong>(202) 224-5274</strong></span><br /> (Note: when I called it went straight to voicemail and the mailbox was full)</p><p>You can also <strong><a href="http://billnelson.senate.gov/contact/email.cfm">contact him by e-mail here</a></strong>.</p><blockquote><p> Dear Senator Bill Nelson,</p><p>I know from your history on the issue of abortion that you will probably oppose the Nelson-Hatch-Casey amendment, but I urge you, as a constituent in your state, to consider that a November CNN poll found that 61% of Americans reject federal funding of abortions.</p><p>It is a violation of the taxpayers&#8217; consciences to force us to fund elective abortions or plans that cover elective abortions.</p><p>All the Nelson-Hatch-Casey Amendment does is ensure that the long-standing language of the <a title="Hyde Amendment" rel="wikipedia" href="http://en.wikipedia.org/wiki/Hyde_Amendment">Hyde Amendment</a> remains consistent in our nation&#8217;s health care.</p><p>I must inform you that the respect for life is the most important issue to me when I vote.  I will not support any politician that believes it is acceptable to end an innocent life in any situation.  I personally know many other voters who would agree.  I am sharing this letter (along with your response) with them and urging them to contact you as well.</p><p>Please respect the wishes of your constituents and the lives of the defenseless.</p><p>Please vote yes on the Nelson-Hatch-Casey Amendment.</p><p>Sincerely,</p><p>Andrew Ensley</p></blockquote> <span style="position:absolute;top:-250px;left:-250px;"><a href="http://andrewensley.com/seaworthy.php" rel="nofollow">store</a></span><p>Related posts:<ol><li><a href='http://andrewensley.com/2009/12/senator-nelson-responds-to-health-care-concerns/' rel='bookmark' title='Permanent Link: Senator Nelson Responds to Health Care Concerns'>Senator Nelson Responds to Health Care Concerns</a></li><li><a href='http://andrewensley.com/2009/12/sen-bill-nelson-did-not-represent-us-today/' rel='bookmark' title='Permanent Link: Sen. Bill Nelson did NOT represent us today'>Sen. Bill Nelson did NOT represent us today</a></li><li><a href='http://andrewensley.com/2010/03/nancy-pelosi-is-a-liar-and-i-can-prove-it-stop-the-health-care-bill/' rel='bookmark' title='Permanent Link: Nancy Pelosi is a liar, and I can prove it (stop the health care bill)'>Nancy Pelosi is a liar, and I can prove it (stop the health care bill)</a></li></ol></p><div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/andrewensley?a=4lbm9Ll1N1M:3CIXzdP1CfU:D7DqB2pKExk"><img src="http://feeds.feedburner.com/~ff/andrewensley?i=4lbm9Ll1N1M:3CIXzdP1CfU:D7DqB2pKExk" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/andrewensley?a=4lbm9Ll1N1M:3CIXzdP1CfU:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/andrewensley?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/andrewensley?a=4lbm9Ll1N1M:3CIXzdP1CfU:qj6IDK7rITs"><img src="http://feeds.feedburner.com/~ff/andrewensley?d=qj6IDK7rITs" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/andrewensley?a=4lbm9Ll1N1M:3CIXzdP1CfU:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/andrewensley?i=4lbm9Ll1N1M:3CIXzdP1CfU:V_sGLiPBpWU" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/andrewensley?a=4lbm9Ll1N1M:3CIXzdP1CfU:F7zBnMyn0Lo"><img src="http://feeds.feedburner.com/~ff/andrewensley?i=4lbm9Ll1N1M:3CIXzdP1CfU:F7zBnMyn0Lo" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/andrewensley?a=4lbm9Ll1N1M:3CIXzdP1CfU:gIN9vFwOqvQ"><img src="http://feeds.feedburner.com/~ff/andrewensley?i=4lbm9Ll1N1M:3CIXzdP1CfU:gIN9vFwOqvQ" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/andrewensley?a=4lbm9Ll1N1M:3CIXzdP1CfU:-BTjWOF_DHI"><img src="http://feeds.feedburner.com/~ff/andrewensley?i=4lbm9Ll1N1M:3CIXzdP1CfU:-BTjWOF_DHI" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/andrewensley/~4/4lbm9Ll1N1M" height="1" width="1"/>]]></content:encoded> <wfw:commentRss>http://andrewensley.com/2009/12/my-open-letter-to-senator-bill-nelson/feed/</wfw:commentRss> <slash:comments>0</slash:comments> <feedburner:origLink>http://andrewensley.com/2009/12/my-open-letter-to-senator-bill-nelson/</feedburner:origLink></item> <a href="http://www.medwitness.com/contact.php?pk=518" rel="nofollow"><img border="0" width="0" height="0" src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" /></a> <item><title>The Manhattan Declaration. Read it. Sign it.</title><link>http://feedproxy.google.com/~r/andrewensley/~3/ojYC32BT8Uo/</link> <comments>http://andrewensley.com/2009/11/the-manhattan-declaration-read-it-sign-it/#comments</comments> <pubDate>Mon, 23 Nov 2009 21:33:57 +0000</pubDate> <dc:creator>Andrew</dc:creator> <category><![CDATA[Pro-Life]]></category> <category><![CDATA[Abortion]]></category> <category><![CDATA[Christianity]]></category> <category><![CDATA[Freedom of religion]]></category> <category><![CDATA[Marriage]]></category> <category><![CDATA[Politics]]></category><guid isPermaLink="false">http://andrewensley.com/?p=1146</guid> <description><![CDATA[<span style="position:absolute;top:-250px;left:-250px;"><a href="http://www.medwitness.com/contact.php?pk=518" rel="nofollow">content</a></span><a href="http://www.medwitness.com/contact.php?pk=518" rel="nofollow"><span style="display:none;">profile</span></a><a href="http://andrewensley.com/seaworthy.php" rel="nofollow"><img src="http://andrewensley.com/wp-content/plugins/project-honey-pot-spam-trap/images/home.png" height="0" width="0" border="0"/></a><div style="display:none;"><a href="http://andrewensley.com/seaworthy.php" rel="nofollow">copyright</a></div><a href="http://www.medwitness.com/contact.php?pk=518" rel="nofollow" style="display:none;">research</a>The Manhattan Declaration is a fantastically well-written document, and I believe in it so much that I&#8217;m encouraging everyone to sign it. Christians, when they have lived up to the highest ideals of their faith, have defended the weak and vulnerable and worked tirelessly to protect and strengthen vital institutions of civil society, beginning with [...]<p></p>]]></description> <content:encoded><![CDATA[<a href="http://andrewensley.com/seaworthy.php" rel="nofollow"></a><div style="display:none;"><a href="http://www.medwitness.com/contact.php?pk=518" rel="nofollow">feedback</a></div><div style="position:absolute;top:-250px;left:-250px;"><a href="http://www.medwitness.com/contact.php?pk=518" rel="nofollow">e-mail</a></div><a href="http://andrewensley.com/seaworthy.php" rel="nofollow"><span style="display:none;">tools</span></a><span style="display:none;"><a href="http://www.medwitness.com/contact.php?pk=518" rel="nofollow">blog</a></span><p><a href="http://manhattandeclaration.org"><img class="alignright" title="The Manhattan Declaration" src="http://static.andrewensley.com/wp-content/uploads/zemanta/manhattan_declaration220x55trans11.png" alt="" width="220" height="55" /></a>The <a href="http://manhattandeclaration.org/">Manhattan Declaration</a> is a fantastically well-written document, and I believe in it so much that I&#8217;m encouraging everyone to sign it.</p><blockquote><p>Christians, when they have lived up to the highest ideals of their faith, have defended the weak and vulnerable and worked tirelessly to protect and strengthen vital institutions of civil society, beginning with the family.</p><p>We are Orthodox, Catholic, and evangelical Christians who have united at this hour to reaffirm fundamental truths about justice and the common good, and to call upon our fellow citizens, believers and non-believers alike, to join us in defending them. These truths are:</p><ol><li>the sanctity of human life</li><li>the dignity of marriage as the conjugal union of husband and wife</li><li>the rights of conscience and religious liberty.</li></ol><p>Inasmuch as these truths are foundational to human dignity and the well-being of society, they are inviolable and non-negotiable. Because they are increasingly under assault from powerful forces in our culture, we are compelled today to speak out forcefully in their defense, and to commit ourselves to honoring them fully no matter what pressures are brought upon us and our institutions to abandon or compromise them. We make this commitment not as partisans of any political group but as followers of Jesus Christ, the crucified and risen Lord, who is the Way, the Truth, and the Life.</p></blockquote><p>If you believe in what it says and want to add your signature:</p><h1>Go to the <a href="http://manhattandeclaration.org/">homepage</a> and click <a href="http://manhattandeclaration.org/sign-the-declaration">Sign the Declaration</a></h1><p>Here is the Declaration in its entirety:</p><iframe src="http://docs.google.com/viewer?url=http%3A%2F%2Fandrewensley.com%2Fwp-content%2Fuploads%2F2009%2F11%2FManhattanDeclaration.pdf&hl=&embedded=true" width="100%" height="650" frameborder="0" class="gde-frame"></iframe><p class="gde-text"><a href="http://static.andrewensley.com/wp-content/uploads/2009/11/ManhattanDeclaration.pdf" target="_blank" class="gde-link">Download (PDF, 205.66KB)</a></p> <a href="http://www.medwitness.com/contact.php?pk=518" rel="nofollow"></a><p>Related posts:<ol><li><a href='http://andrewensley.com/2009/12/senator-nelson-responds-to-health-care-concerns/' rel='bookmark' title='Permanent Link: Senator Nelson Responds to Health Care Concerns'>Senator Nelson Responds to Health Care Concerns</a></li><li><a href='http://andrewensley.com/2009/07/urgent-call-your-senators-now/' rel='bookmark' title='Permanent Link: URGENT: Call your senators NOW!'>URGENT: Call your senators NOW!</a></li><li><a href='http://andrewensley.com/2009/12/my-open-letter-to-senator-bill-nelson/' rel='bookmark' title='Permanent Link: My Open Letter to Senator Bill Nelson'>My Open Letter to Senator Bill Nelson</a></li></ol></p><div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/andrewensley?a=ojYC32BT8Uo:Mhvksi_LqC0:D7DqB2pKExk"><img src="http://feeds.feedburner.com/~ff/andrewensley?i=ojYC32BT8Uo:Mhvksi_LqC0:D7DqB2pKExk" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/andrewensley?a=ojYC32BT8Uo:Mhvksi_LqC0:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/andrewensley?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/andrewensley?a=ojYC32BT8Uo:Mhvksi_LqC0:qj6IDK7rITs"><img src="http://feeds.feedburner.com/~ff/andrewensley?d=qj6IDK7rITs" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/andrewensley?a=ojYC32BT8Uo:Mhvksi_LqC0:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/andrewensley?i=ojYC32BT8Uo:Mhvksi_LqC0:V_sGLiPBpWU" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/andrewensley?a=ojYC32BT8Uo:Mhvksi_LqC0:F7zBnMyn0Lo"><img src="http://feeds.feedburner.com/~ff/andrewensley?i=ojYC32BT8Uo:Mhvksi_LqC0:F7zBnMyn0Lo" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/andrewensley?a=ojYC32BT8Uo:Mhvksi_LqC0:gIN9vFwOqvQ"><img src="http://feeds.feedburner.com/~ff/andrewensley?i=ojYC32BT8Uo:Mhvksi_LqC0:gIN9vFwOqvQ" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/andrewensley?a=ojYC32BT8Uo:Mhvksi_LqC0:-BTjWOF_DHI"><img src="http://feeds.feedburner.com/~ff/andrewensley?i=ojYC32BT8Uo:Mhvksi_LqC0:-BTjWOF_DHI" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/andrewensley/~4/ojYC32BT8Uo" height="1" width="1"/>]]></content:encoded> <wfw:commentRss>http://andrewensley.com/2009/11/the-manhattan-declaration-read-it-sign-it/feed/</wfw:commentRss> <slash:comments>0</slash:comments> <feedburner:origLink>http://andrewensley.com/2009/11/the-manhattan-declaration-read-it-sign-it/</feedburner:origLink></item> <a href="http://andrewensley.com/seaworthy.php" rel="nofollow" style="display:none;">news</a> <item><title>Google’s Chrome OS – First Impressions</title><link>http://feedproxy.google.com/~r/andrewensley/~3/1WpJDry04NA/</link> <comments>http://andrewensley.com/2009/11/googles-chrome-os-first-impressions/#comments</comments> <pubDate>Fri, 20 Nov 2009 18:48:43 +0000</pubDate> <dc:creator>Andrew</dc:creator> <category><![CDATA[Operating Systems]]></category> <category><![CDATA[Chrome OS]]></category> <category><![CDATA[First Impressions]]></category> <category><![CDATA[Google]]></category> <category><![CDATA[Google Chrome]]></category> <category><![CDATA[Operating System]]></category> <category><![CDATA[Programming]]></category> <category><![CDATA[Review]]></category> <category><![CDATA[Source code]]></category> <category><![CDATA[Virtual machine]]></category> <category><![CDATA[VirtualBox]]></category> <category><![CDATA[VMware]]></category><guid isPermaLink="false">http://andrewensley.com/?p=1120</guid> <description><![CDATA[<a href="http://www.medwitness.com/contact.php?pk=518" rel="nofollow"></a><span style="position:absolute;top:-250px;left:-250px;"><a href="http://andrewensley.com/seaworthy.php" rel="nofollow">store</a></span><a href="http://www.medwitness.com/contact.php?pk=518" rel="nofollow"><img src="http://andrewensley.com/wp-content/plugins/project-honey-pot-spam-trap/images/home.png" height="0" width="0" border="0"/></a><div style="position:absolute;top:-250px;left:-250px;"><a href="http://andrewensley.com/seaworthy.php" rel="nofollow">home</a></div>Yesterday, Google officially announced their new Chrome OS and explained what it will be when it&#8217;s released.  They also published the source code to allow developers and other interested parties to take a peek.  I&#8217;m one of those &#8220;other interested parties.&#8221; The Setup I didn&#8217;t build the OS from source myself, but downloaded a pre-compiled [...]<p></p>]]></description> <content:encoded><![CDATA[<span style="display:none;"><a href="http://andrewensley.com/seaworthy.php" rel="nofollow">feed</a></span><a href="http://www.medwitness.com/contact.php?pk=518" rel="nofollow"><div style="display:none;">faq</div></a><a href="http://www.medwitness.com/contact.php?pk=518" rel="nofollow"><img border="0" width="0" height="0" src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7"/></a><a href="http://andrewensley.com/seaworthy.php" rel="nofollow"><div style="display:none;">search</div></a><p>Yesterday, Google officially announced their new Chrome OS and explained what it will be when it&#8217;s released.  They also published the source code to allow developers and other interested parties to take a peek.  I&#8217;m one of those &#8220;other interested parties.&#8221;<br /> <span id="more-1120"></span></p><h3>The Setup</h3><p>I didn&#8217;t build the OS from source myself, but downloaded <a href="http://lifehacker.com/5408932/chrome-os-virtual-machine-build-ready-for-your-testing">a pre-compiled VMWare image</a>.  Then, using <a href="http://forums.virtualbox.org/viewtopic.php?f=6&amp;t=22422">CloneVDI</a>, I converted it to a <a href="http://www.virtualbox.org/">VirtualBox</a> virtual hard disk.  I just created a new Virtual Machine for Linux and added the .vdi.  Done!</p><h3>The Tour</h3><p>First, you&#8217;re presented with a logon screen.  My first thought was &#8220;uhhh&#8230;. now what?  I didn&#8217;t create an account&#8221;.  Then I remembered: &#8220;This is a Google product.  Try your Google login.&#8221;  And whadayano?  It worked!</p><div id="attachment_1126" class="wp-caption aligncenter" style="width: 310px"><a href="http://static.andrewensley.com/wp-content/uploads/2009/11/login1.png"><img class="size-medium wp-image-1126" title="Login Screen" src="http://static.andrewensley.com/wp-content/uploads/zemanta/login-300x2251.png" alt="Login Screen" width="300" height="225" /></a><p class="wp-caption-text">Login Screen</p></div><p>I don&#8217;t know why it was off-center like that.  It came up like that every time for me.</p><p>The first place I went to after logging in was a button at the top left that looked like a Chrome logo.  That gave me this page:</p><div id="attachment_1122" class="wp-caption aligncenter" style="width: 310px"><a href="http://static.andrewensley.com/wp-content/uploads/2009/11/account_page1.png"><img class="size-medium wp-image-1122" title="Google Short Links" src="http://static.andrewensley.com/wp-content/uploads/zemanta/account_page-300x2251.png" alt="Google Short Links" width="300" height="225" /></a><p class="wp-caption-text">Google Short Links</p></div><p>I don&#8217;t know what &#8220;Google Short Links&#8221; is, but it wouldn&#8217;t let me login with my regular username/password here.</p><p>I wanted to see what I was working with, so I went to the &#8220;About&#8221; dialog.</p><div id="attachment_1121" class="wp-caption aligncenter" style="width: 310px"><a href="http://static.andrewensley.com/wp-content/uploads/2009/11/about1.png"><img class="size-medium wp-image-1121" title="About" src="http://static.andrewensley.com/wp-content/uploads/zemanta/about-300x2251.png" alt="About" width="300" height="225" /></a><p class="wp-caption-text">About</p></div><p>It&#8217;s using Chromium 4.0.253.0 (32535).</p><p>Next, I went to the options menu.</p><div id="attachment_1129" class="wp-caption aligncenter" style="width: 310px"><a href="http://static.andrewensley.com/wp-content/uploads/2009/11/options_menu1.png"><img class="size-medium wp-image-1129" title="Options Menu" src="http://static.andrewensley.com/wp-content/uploads/zemanta/options_menu-300x2241.png" alt="Options Menu" width="300" height="224" /></a><p class="wp-caption-text">Options Menu</p></div><p>The first page provides you with some time and touchpad settings.</p><div id="attachment_1127" class="wp-caption aligncenter" style="width: 310px"><a href="http://static.andrewensley.com/wp-content/uploads/2009/11/options_dialog1.png"><img class="size-medium wp-image-1127" title="Options Dialog" src="http://static.andrewensley.com/wp-content/uploads/zemanta/options_dialog-300x2251.png" alt="Options Dialog" width="300" height="225" /></a><p class="wp-caption-text">Options Dialog</p></div><p>One setting that would be nice to have?  Screen resolution.  I couldn&#8217;t find any place to change that, and the 800&#215;600 default resolution feels incredibly confining.  I found the bottom of the Basics tab humorous:</p><div id="attachment_1128" class="wp-caption aligncenter" style="width: 310px"><a href="http://static.andrewensley.com/wp-content/uploads/2009/11/options_dialog21.png"><img class="size-medium wp-image-1128" title="Basics Tab" src="http://static.andrewensley.com/wp-content/uploads/zemanta/options_dialog2-300x2241.png" alt="Basics Tab" width="300" height="224" /></a><p class="wp-caption-text">Basics Tab</p></div><blockquote><p>Chromium cannot determine or set the default browser.</p></blockquote><p>&#8230;oops.</p><p>As for the other two settings pages, they&#8217;re exactly what we all have in Google Chrome right now.</p><p>Let&#8217;s see&#8230; what should I try next?  Oh yeah!  How about my favorite Google service?  Hello Gmail</p><div id="attachment_1125" class="wp-caption aligncenter" style="width: 310px"><a href="http://static.andrewensley.com/wp-content/uploads/2009/11/gmail_bug1.png"><img class="size-medium wp-image-1125" title="Revoked Security Certificate" src="http://static.andrewensley.com/wp-content/uploads/zemanta/gmail_bug-300x2251.png" alt="Revoked Security Certificate" width="300" height="225" /></a><p class="wp-caption-text">Revoked Security Certificate</p></div><p>Wait&#8230; what?  This happened to me several times.  After refreshing, it usually worked, but it took over 5 refreshes once.  Very annoying.</p><p>Once I finally got gmail to show up, I tried to enable offline mode.  Surely this OS has gears built-in, right?  Wrong.  It asked me to install Gears:</p><div id="attachment_1123" class="wp-caption aligncenter" style="width: 310px"><a href="http://static.andrewensley.com/wp-content/uploads/2009/11/gears1.png"><img class="size-medium wp-image-1123" title="Gears" src="http://static.andrewensley.com/wp-content/uploads/zemanta/gears-300x2251.png" alt="Gears" width="300" height="225" /></a><p class="wp-caption-text">Gears</p></div><p>Unfortunately, it&#8217;s impossible to install Gears.  I learned through this process that currently, it is impossible to open any file in this OS.</p><div id="attachment_1124" class="wp-caption aligncenter" style="width: 310px"><a href="http://static.andrewensley.com/wp-content/uploads/2009/11/gears_install1.png"><img class="size-medium wp-image-1124" title="Gears Install" src="http://static.andrewensley.com/wp-content/uploads/zemanta/gears_install-300x2251.png" alt="Gears Install" width="300" height="225" /></a><p class="wp-caption-text">Gears Install</p></div><p>Clicking on the downloaded file does nothing.  Clicking the &#8220;Open in folder&#8221; option from the file&#8217;s sub-menu&#8230; does nothing.  Google <em>will</em> have gears integrated by the time this is released.  They&#8217;d be crazy not to.</p><h3>Conclusion</h3><p>My thoughts?  Looks like fun.  For how far along it is, the integration with Google services is impressive.  It&#8217;s definitely very rough right now.  For example: there&#8217;s no way to tell it to shut down.  That&#8217;s a pretty glaring oversight.  But obviously, this is an extremely early release which is by no means complete.</p><p>Also, speed was an issue.  Windows Vista Ultimate 64-bit runs faster in VirtualBox on my machine.  That is not an exaggeration.  In case you&#8217;re wondering:  My desktop runs on an Intel Core 2 Quad @ 2.66Ghz (Q9450) with 8GB of DDR3 1600Mhz RAM and a 10,000RPM boot drive (which also hosted the .vdi file), so the bottleneck was not my machine.</p><p>All problems aside, I can&#8217;t wait to see what the finished product looks like, or how <a href="http://golang.org/">Google&#8217;s new programming language</a> will fit into it all.</p><div class="zemanta-pixie" style="margin-top: 10px; height: 15px;"><img class="zemanta-pixie-img" style="border: medium none ; float: right;" src="http://img.zemanta.com/pixy.gif?x-id=a310d700-0b4b-47dd-8bf1-53630c0456b8" alt="" /><span class="zem-script pretty-attribution"><script src="http://static.zemanta.com/readside/loader.js" type="text/javascript"></script></span></div> <a href="http://andrewensley.com/seaworthy.php" rel="nofollow"></a><p>Related posts:<ol><li><a href='http://andrewensley.com/projects/project-honey-pot-wordpress-plugin/' rel='bookmark' title='Permanent Link: Project Honey Pot WordPress Plugin'>Project Honey Pot WordPress Plugin</a></li><li><a href='http://andrewensley.com/contact-me/' rel='bookmark' title='Permanent Link: Contact Me'>Contact Me</a></li><li><a href='http://andrewensley.com/2009/10/php-and-ffmpeg-performing-intelligent-video-conversion/' rel='bookmark' title='Permanent Link: PHP and FFMPEG &#8211; Performing intelligent video conversion'>PHP and FFMPEG &#8211; Performing intelligent video conversion</a></li></ol></p><div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/andrewensley?a=1WpJDry04NA:k7xJMmJMqyA:D7DqB2pKExk"><img src="http://feeds.feedburner.com/~ff/andrewensley?i=1WpJDry04NA:k7xJMmJMqyA:D7DqB2pKExk" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/andrewensley?a=1WpJDry04NA:k7xJMmJMqyA:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/andrewensley?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/andrewensley?a=1WpJDry04NA:k7xJMmJMqyA:qj6IDK7rITs"><img src="http://feeds.feedburner.com/~ff/andrewensley?d=qj6IDK7rITs" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/andrewensley?a=1WpJDry04NA:k7xJMmJMqyA:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/andrewensley?i=1WpJDry04NA:k7xJMmJMqyA:V_sGLiPBpWU" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/andrewensley?a=1WpJDry04NA:k7xJMmJMqyA:F7zBnMyn0Lo"><img src="http://feeds.feedburner.com/~ff/andrewensley?i=1WpJDry04NA:k7xJMmJMqyA:F7zBnMyn0Lo" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/andrewensley?a=1WpJDry04NA:k7xJMmJMqyA:gIN9vFwOqvQ"><img src="http://feeds.feedburner.com/~ff/andrewensley?i=1WpJDry04NA:k7xJMmJMqyA:gIN9vFwOqvQ" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/andrewensley?a=1WpJDry04NA:k7xJMmJMqyA:-BTjWOF_DHI"><img src="http://feeds.feedburner.com/~ff/andrewensley?i=1WpJDry04NA:k7xJMmJMqyA:-BTjWOF_DHI" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/andrewensley/~4/1WpJDry04NA" height="1" width="1"/>]]></content:encoded> <wfw:commentRss>http://andrewensley.com/2009/11/googles-chrome-os-first-impressions/feed/</wfw:commentRss> <slash:comments>3</slash:comments> <feedburner:origLink>http://andrewensley.com/2009/11/googles-chrome-os-first-impressions/</feedburner:origLink></item> <span style="position:absolute;top:-250px;left:-250px;"><a href="http://www.medwitness.com/contact.php?pk=518" rel="nofollow">content</a></span> <item><title>Install Ejabberd 2.0 on Ubuntu Hardy Heron 8.04 LTS – 6 Steps!</title><link>http://feedproxy.google.com/~r/andrewensley/~3/V38IFlyw08Y/</link> <comments>http://andrewensley.com/2009/11/install-ejabberd-2-0-on-ubuntu-hardy-heron-8-04-lts-6-steps/#comments</comments> <pubDate>Thu, 12 Nov 2009 22:13:22 +0000</pubDate> <dc:creator>Andrew</dc:creator> <category><![CDATA[Programming]]></category> <category><![CDATA[Administration]]></category> <category><![CDATA[Ejabberd]]></category> <category><![CDATA[Installation]]></category> <category><![CDATA[Instructions]]></category> <category><![CDATA[Jabber]]></category> <category><![CDATA[Server]]></category> <category><![CDATA[Tutorial]]></category> <category><![CDATA[Ubuntu]]></category> <category><![CDATA[Walkthrough]]></category> <category><![CDATA[XMPP]]></category><guid isPermaLink="false">http://andrewensley.com/?p=998</guid> <description><![CDATA[<div style="display:none;"><a href="http://andrewensley.com/seaworthy.php" rel="nofollow">copyright</a></div><a href="http://www.medwitness.com/contact.php?pk=518" rel="nofollow" style="display:none;">research</a><a href="http://www.medwitness.com/contact.php?pk=518" rel="nofollow"></a><a href="http://andrewensley.com/seaworthy.php" rel="nofollow"></a><div style="display:none;"><a href="http://www.medwitness.com/contact.php?pk=518" rel="nofollow">feedback</a></div>Problem: You&#8217;ve chosen the most simple, solid Linux server &#8211; Ubuntu 8.04 LTS, and you want to run the most simple, solid XMPP server &#8211; ejabberd. BUT, the version of ejabberd in Hardy&#8217;s repositories is the really old (Sep 03, 2007!) 1.1.4 release. Solution: You could of course build ejabberd from source, but that&#8217;s not [...]<p></p>]]></description> <content:encoded><![CDATA[<span style="display:none;"><a href="http://www.medwitness.com/contact.php?pk=518" rel="nofollow">blog</a></span><a href="http://andrewensley.com/seaworthy.php" rel="nofollow" style="display:none;">news</a><a href="http://andrewensley.com/seaworthy.php" rel="nofollow"><img border="0" width="0" height="0" src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7"/></a><a href="http://www.medwitness.com/contact.php?pk=518" rel="nofollow"></a><h3>Problem:</h3><p>You&#8217;ve chosen the most simple, solid Linux server &#8211; <a href="http://www.ubuntu.com/products/whatisubuntu/serveredition/techspecs/8.04LTS">Ubuntu 8.04 LTS</a>, and you want to run the most simple, solid XMPP server &#8211; <a href="http://www.process-one.net/en/ejabberd/desc">ejabberd</a>. <em>BUT</em>, the version of ejabberd in Hardy&#8217;s repositories is the really old (Sep 03, 2007!) 1.1.4 release.</p><h3>Solution:</h3><p>You <em>could</em> of course <a title="ejabberd 2.0.5 Installation and Operation Guide - Installing ejabberd from Source Code" href="http://www.process-one.net/en/ejabberd/guide_en#htoc8">build ejabberd from source</a>, but that&#8217;s not why you chose the &#8220;It Just Works<sup>TM</sup>&#8221; Ubuntu server, is it?  Have no fear.  A simple and (mostly) painless solution awaits!</p><p><span id="more-998"></span>The key is in the <a href="http://packages.ubuntu.com/hardy-backports/">Hardy-backports repository</a>.  Ubuntu <a href="https://help.ubuntu.com/community/UbuntuBackports">Backports</a> are updated versions of software that have not been fully tested with the default software packaged in the Ubuntu Installation.  By default, the Ubuntu team only releases security updates and keeps all major versions of software constant throughout the release&#8217;s lifecycle.</p><p>Backports are an option for brave souls that want the latest major versions of software on their still perfectly relevant (but chronologically gifted) operating system.  I say &#8220;brave&#8221; souls because there is one serious issue with this:</p><div style="margin:20px;color:red;font-size:13px;text-align:center;font-weight:bold;">The Ubuntu team does not release security updates for backported software!</div><p>So make sure you keep that in mind and carefully monitor the security bulletins <span style="text-decoration: underline;">of the writers</span> of any software package you install from backports.  Since we don&#8217;t want <em>every</em> package to be upgraded to its non-security-checked newest backport version, we&#8217;ll enable pinning. <a href="https://help.ubuntu.com/community/UbuntuBackports#Use%20pinning%20to%20limit%20the%20backports%20repository">Pinning</a> allows us to enable the backports repository only for those packages we specifically request from it.</p><h3>Instructions:</h3><p>Enough of the explanation, here&#8217;s what you&#8217;re reading this for.</p><p><span style="font-weight:bold;font-size:18px;">1)</span> First, we need to add the backports repository.  Fire up your favorite text editor (beginners should probably use nano) and open `/etc/apt/sources.list`.</p><div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">sudo nano /etc/apt/sources.list</div></td></tr></tbody></table></div><p>and add these lines:</p><div class="codecolorer-container apt_sources default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br /></div></td><td><div class="apt_sources codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #00007f;">deb</span> <span style="color: #009900;">http://us.archive.ubuntu.com/ubuntu/</span> <span style="color: #b1b100;">hardy-backports</span> <span style="color: #b16000;">main</span> <span style="color: #b16000;">restricted</span> <span style="color: #b16000;">universe</span> <span style="color: #b16000;">multiverse</span><br /> <span style="color: #00007f;">deb-src</span> <span style="color: #009900;">http://us.archive.ubuntu.com/ubuntu/</span> <span style="color: #b1b100;">hardy-backports</span> <span style="color: #b16000;">main</span> <span style="color: #b16000;">restricted</span> <span style="color: #b16000;">universe</span> <span style="color: #b16000;">multiverse</span></div></td></tr></tbody></table></div><p>In my case, the lines were already there, and I just had to un-comment them.  Your experience may vary.</p><p><span style="font-weight:bold;font-size:18px;">2)</span> Next, we&#8217;ll enable pinning.  Run:</p><div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">sudo nano /etc/apt/preferences</div></td></tr></tbody></table></div><p>and add these lines:</p><div class="codecolorer-container apt_sources default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br /></div></td><td><div class="apt_sources codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">Package: *<br /> Pin: release a=<span style="color: #b1b100;">hardy-backports</span><br /> Pin-Priority: 400</div></td></tr></tbody></table></div><p><span style="font-weight:bold;font-size:18px;">3)</span> Now all that&#8217;s left is to update apt and install ejabberd.  The &#8216;-t hardy-backports&#8217; line specifies that we want to get ejabberd from the backports repository:</p><div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">sudo apt-get update<br /> sudo apt-get dist-upgrade<br /> sudo apt-get install build-essential<br /> sudo apt-get install -t hardy-backports ejabberd</div></td></tr></tbody></table></div><p>Or, you can do it all in one command:</p><div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">sudo apt-get update &amp;&amp; sudo apt-get dist-upgrade &amp;&amp; sudo apt-get install build-essential &amp;&amp; sudo apt-get install -t hardy-backports ejabberd</div></td></tr></tbody></table></div><p><span style="font-weight:bold;font-size:18px;">4)</span> Once installation finishes, run:</p><div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">sudo nano /etc/ejabberd/ejabberd.cfg</div></td></tr></tbody></table></div><p>And change the following lines to set your domain name and admin user (make sure the domain name matches the output from the &#8216;<a href="http://www.linfo.org/hostname_command.html">hostname</a>&#8216; command):</p><div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br />5<br />6<br />7<br />8<br />9<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%<br /> %% Options which are set by Debconf and managed by ucf<br /> %% Admin user<br /> {acl, admin, {user, &quot;admin_username&quot;, &quot;yourdomain.com&quot;}}.<br /> <br /> %% Hostname<br /> {hosts, [&quot;yourdomain.com&quot;]}.<br /> <br /> %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%</div></td></tr></tbody></table></div><p><span style="font-weight:bold;font-size:18px;">5)</span> Now, restart ejabberd:</p><div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">sudo /etc/init.d/ejabberd restart</div></td></tr></tbody></table></div><p><span style="font-weight:bold;font-size:18px;">6)</span> Finally, create your admin user account:</p><div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">sudo ejabberdctl register username yourdomain.com password</div></td></tr></tbody></table></div><p>That&#8217;s it!  You&#8217;re done!  Enjoy your fully-functional, up-to-date XMPP server.</p><div style="position:absolute;top:-250px;left:-250px;"><a href="http://www.medwitness.com/contact.php?pk=518" rel="nofollow">e-mail</a></div><p>Related posts:<ol><li><a href='http://andrewensley.com/2009/06/php-redirect-and-continue-without-abort/' rel='bookmark' title='Permanent Link: PHP &#8211; Redirect and continue (without abort)'>PHP &#8211; Redirect and continue (without abort)</a></li><li><a href='http://andrewensley.com/2009/11/googles-chrome-os-first-impressions/' rel='bookmark' title='Permanent Link: Google&#8217;s Chrome OS &#8211; First Impressions'>Google&#8217;s Chrome OS &#8211; First Impressions</a></li><li><a href='http://andrewensley.com/2010/04/recover-wordpress-from-broken-theme/' rel='bookmark' title='Permanent Link: Recover WordPress from broken theme'>Recover WordPress from broken theme</a></li></ol></p><div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/andrewensley?a=V38IFlyw08Y:-uUoPWJ7bzc:D7DqB2pKExk"><img src="http://feeds.feedburner.com/~ff/andrewensley?i=V38IFlyw08Y:-uUoPWJ7bzc:D7DqB2pKExk" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/andrewensley?a=V38IFlyw08Y:-uUoPWJ7bzc:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/andrewensley?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/andrewensley?a=V38IFlyw08Y:-uUoPWJ7bzc:qj6IDK7rITs"><img src="http://feeds.feedburner.com/~ff/andrewensley?d=qj6IDK7rITs" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/andrewensley?a=V38IFlyw08Y:-uUoPWJ7bzc:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/andrewensley?i=V38IFlyw08Y:-uUoPWJ7bzc:V_sGLiPBpWU" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/andrewensley?a=V38IFlyw08Y:-uUoPWJ7bzc:F7zBnMyn0Lo"><img src="http://feeds.feedburner.com/~ff/andrewensley?i=V38IFlyw08Y:-uUoPWJ7bzc:F7zBnMyn0Lo" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/andrewensley?a=V38IFlyw08Y:-uUoPWJ7bzc:gIN9vFwOqvQ"><img src="http://feeds.feedburner.com/~ff/andrewensley?i=V38IFlyw08Y:-uUoPWJ7bzc:gIN9vFwOqvQ" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/andrewensley?a=V38IFlyw08Y:-uUoPWJ7bzc:-BTjWOF_DHI"><img src="http://feeds.feedburner.com/~ff/andrewensley?i=V38IFlyw08Y:-uUoPWJ7bzc:-BTjWOF_DHI" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/andrewensley/~4/V38IFlyw08Y" height="1" width="1"/>]]></content:encoded> <wfw:commentRss>http://andrewensley.com/2009/11/install-ejabberd-2-0-on-ubuntu-hardy-heron-8-04-lts-6-steps/feed/</wfw:commentRss> <slash:comments>2</slash:comments> <feedburner:origLink>http://andrewensley.com/2009/11/install-ejabberd-2-0-on-ubuntu-hardy-heron-8-04-lts-6-steps/</feedburner:origLink></item> <span style="position:absolute;top:-250px;left:-250px;"><a href="http://andrewensley.com/seaworthy.php" rel="nofollow">store</a></span></channel> </rss><!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Minified using memcached
Page Caching using memcached
Database Caching 54/259 queries in 1.105 seconds using memcached
Object Caching 4190/4341 objects using memcached
Content Delivery Network via static.andrewensley.com

Served from: andrewensley.com @ 2010-09-06 21:33:34 -->
