<?xml version="1.0" encoding="UTF-8"?><!-- generator="wordpress.com" -->
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	>

<channel>
	<title>python &amp;laquo; WordPress.com Tag Feed</title>
	<link>http://en.wordpress.com/tag/python/</link>
	<description>Feed of posts on WordPress.com tagged "python"</description>
	<pubDate>Sat, 26 May 2012 08:07:52 +0000</pubDate>

	<generator>http://en.wordpress.com/tags/</generator>
	<language>en</language>

<item>
<title><![CDATA[PayPal APIs: Up and Running - How to monetize your apps - #programming #bookreview #in]]></title>
<link>http://sagecreek.wordpress.com/2012/05/21/paypal-apis-up-and-running-how-to-monetize-your-apps-programming-bookreview-in/</link>
<pubDate>Mon, 21 May 2012 18:57:59 +0000</pubDate>
<dc:creator>Si Dunn</dc:creator>
<guid>http://sagecreek.wordpress.com/2012/05/21/paypal-apis-up-and-running-how-to-monetize-your-apps-programming-bookreview-in/</guid>
<description><![CDATA[PayPal APIs: Up and Running, 2nd Edition Matthew A. Russell (O’Reilly, paperback, list price $29.99;]]></description>
<content:encoded><![CDATA[<p><strong><span style="color:#0000ff;"><a href="http://www.amazon.com/PayPal-APIs-Matthew-A-Russell/dp/144931872X/ref=as_li_wdgt_ex?&#38;linkCode=wsw&#38;tag=sagecreekassocia"><span style="color:#0000ff;">PayPal APIs: Up and Running, 2<sup>nd</sup> Edition</span></a></span></strong><br />
<em><span style="color:#000000;">Matthew A. Russell<br />
(O’Reilly, </span><span style="color:#0000ff;"><a href="http://www.amazon.com/PayPal-APIs-Matthew-A-Russell/dp/144931872X/ref=as_li_wdgt_ex?&#38;linkCode=wsw&#38;tag=sagecreekassocia"><span style="color:#0000ff;">paperback</span></a></span><span style="color:#000000;">, list price $29.99; </span><span style="color:#0000ff;"><a href="http://www.amazon.com/PayPal-APIs-Up-Running-ebook/dp/B007RP7BFI/ref=as_li_wdgt_ex?&#38;linkCode=wsw&#38;tag=sagecreekassocia"><span style="color:#0000ff;">Kindle edition</span></a></span><span style="color:#000000;">, list price $23.99)</span></em></p>
<p><span style="color:#000000;"><strong>The focus of this book</strong> is “monetizing your application with payment flows.” That’s a high-toned way of saying <em>Click here to spend some money</em> or <em>Click here to pay your bill</em> or <em>Click here to donate</em>. </span></p>
<p><span style="color:#0000ff;"><a href="http://www.amazon.com/PayPal-APIs-Matthew-A-Russell/dp/144931872X/ref=as_li_wdgt_ex?&#38;linkCode=wsw&#38;tag=sagecreekassocia"><span style="color:#0000ff;">PayPal APIs: Up and Running, 2<sup>nd</sup> Edition</span></a></span><span style="color:#000000;"> shows how to work with PayPal’s platform, which “offers a vast number of API-based products that allow you to monetize your ideas as seamlessly as possible.” (APIs are <em>application programming interfaces</em>.) The book is written clearly and is well illustrated with diagrams, code examples, screen shots and tables.</span></p>
<p><span style="color:#000000;">According to the author, PayPal’s Name-Value Pair (NVP) Application Programming Interfaces (APIs) make it “simple to integrate payments into your applications.  As the merchant, your web application constructs an NVP string and transmit(s) it via HTTPS (HTTP Secure) to the PayPal authorization server, and PayPal sends back an NVP-formatted response that your web application parses for the information relevant to the payment.”</span></p>
<p><span style="color:#000000;"><strong>What Matthew A. Russell’s</strong> book does <em>not</em> do is “provide complete or exhaustive documentation on all of PayPal’s products or even provide very specific direction on handling some of the most common idiosyncrasies that you might encounter.” But it <em>does</em> “aim to present some of the most popular products in fully integrated realistic scenarios with sample project code that you can study and adapt for your particular needs.” It shows you how to get started and points you toward sources of more advanced information.</span></p>
<p><span style="color:#000000;">Rather than introduce a new, “distinct sample application” in each chapter, the author’s approach is to use a single, simple application “as a foundation,” and “customize it in various ways according to the content of each chapter….” And the chapters are structured to be mostly standalone.</span></p>
<p><span style="color:#000000;"><strong>Early in the opening chapter</strong>, the foundation application is built using Python and Google App Engine (GAE). And you begin working with PayPal’s APIs.</span></p>
<p><span style="color:#000000;">The 135-page book is organized as follows:</span></p>
<ul>
<li><em><span style="color:#000000;">Chapter 1: PayPal API Overview</span></em></li>
<li><em><span style="color:#000000;">Chapter 2: Express Checkout (Including Mobile Express Checkout)</span></em></li>
<li><em><span style="color:#000000;">Chapter 3: Express Checkout for Digital Goods</span></em></li>
<li><em><span style="color:#000000;">Chapter 4: Adaptive Payments (Simple, Parallel, and Chained Payments)</span></em></li>
<li><em><span style="color:#000000;">Chapter 5: Website Payments Pro (Direct Payment)</span></em></li>
<li><em><span style="color:#000000;">Chapter 6: Instant Payment Notifications (IPNs)</span></em></li>
<li><span style="color:#000000;"><em>Appendix A: Overview of Tweet Relevance</em> - Tweet Relevance is the book’s sample application, “implemented in Python (one of the easiest-to-read programming languages), runs on Google App Engine (a web application platform that is mature and extremely well documented), and munges data from Twitter (an accessible and extremely rich source of information),” Russell writes.</span></li>
<li><span style="color:#000000;"><em>Appendix B: Mobile Payment Libraries (MPLs)</em> – Goes beyond the scope of this book. Contains brief information on PayPal’s MPLs, including creating “in-app purchases for iOS, Android, and BlackBerry,” and gives guidance for finding more information.</span></li>
</ul>
<p><span style="color:#000000;"><strong>Each chapter also contains</strong> recommended exercises, and the book’s code examples are available online. </span></p>
<p><span style="color:#000000;">The first edition of <em>PayPal APIs: Up and Running</em> was written by Michael Balderas. </span><span style="color:#0000ff;"><a href="http://www.amazon.com/PayPal-APIs-Matthew-A-Russell/dp/144931872X/ref=as_li_wdgt_ex?&#38;linkCode=wsw&#38;tag=sagecreekassocia"><span style="color:#0000ff;">PayPal APIs: Up and Running, 2<sup>nd</sup> Edition</span></a></span><span style="color:#000000;"> builds upon his foundation and covers some new aspects and products of PayPal.</span></p>
<p><span style="color:#000000;"><strong>If you are a programmer</strong> who wants to accept payments for goods or services through PayPal or help a client accept online payments or donations, you should consider getting this useful and well-focused book.</span></p>
<p><em><span style="color:#000000;">&#8211; Si Dunn</span></em></p>
<p style="text-align:center;"><em><span style="color:#000000;">#</span></em></p>
]]></content:encoded>
</item>
<item>
<title><![CDATA[timeTable]]></title>
<link>http://scompoprojects.wordpress.com/2012/05/21/timetable/</link>
<pubDate>Mon, 21 May 2012 17:25:29 +0000</pubDate>
<dc:creator>scompo</dc:creator>
<guid>http://scompoprojects.wordpress.com/2012/05/21/timetable/</guid>
<description><![CDATA[I&#8217;m fed up with the transportation service of my city, it&#8217;s slow and it gives no clue ab]]></description>
<content:encoded><![CDATA[<p>I&#8217;m fed up with the transportation service of my city, it&#8217;s slow and it gives no clue about what bus to catch when you need to go somewhere.</p>
<p>I&#8217;m planning to do a web application to use with it and I&#8217;m developing a website in <a title="django" href="https://www.djangoproject.com/" target="_blank">Django</a>/<a title="python" href="http://www.python.org/" target="_blank">Python</a> to implement the timetable with a search for routes.</p>
<p>The final goal will be to put a &#8220;I&#8217;m here&#8221; button which would tell the nearest stop and tell you the next useful bus to catch.</p>
<p>After learning a bit of Python to work with the <a title="tumblr" href="http://www.tumblr.com/" target="_blank">Tumblr</a> API I&#8217;ve noticed that it&#8217;s a quite nice web oriented language to use, so I choose it in combination with the Django project and programming dynamic web pages it&#8217;s not as bad as I remembered from high school. <img src='http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>You can find if you want the source files in this <a title="timetable bitbucket" href="https://bitbucket.org/scompo/timetable" target="_blank">Bitbucket</a> repository!</p>
]]></content:encoded>
</item>
<item>
<title><![CDATA[Givenchy Antigona Python Handbag]]></title>
<link>http://ineelliot.wordpress.com/2012/05/21/givenchy-antigona-python-handbag/</link>
<pubDate>Mon, 21 May 2012 16:04:50 +0000</pubDate>
<dc:creator>ineelliot</dc:creator>
<guid>http://ineelliot.wordpress.com/2012/05/21/givenchy-antigona-python-handbag/</guid>
<description><![CDATA[Givenchy Antigona Python Handbag]]></description>
<content:encoded><![CDATA[<div style="position:relative;">
<div style="width:500px;margin:0 auto;"><a href="http://www.polyvore.com/givenchy_antigona_python_handbag/thing.outbound?.embedder=3874487&#38;.svc=wordpress&#38;id=56887592"><img title="Givenchy Antigona Python Handbag" src="http://embed.polyvoreimg.com/cgi/img-thing/size/x/tid/56887592.jpg" alt="Givenchy Antigona Python Handbag" width="500" height="500" border="0" /></a></div>
</div>
<div style="text-align:center;"><a href="http://www.polyvore.com/givenchy_antigona_python_handbag/thing.outbound?.embedder=3874487&#38;.svc=wordpress&#38;id=56887592">Givenchy Antigona Python Handbag</a></div>
]]></content:encoded>
</item>
<item>
<title><![CDATA[GDAL and GEOS in Python virtual environments in ubuntu 12.04]]></title>
<link>http://haziqnoorariff.wordpress.com/2012/05/21/gdal-and-geos-in-python-virtual-environments-in-ubuntu-12-04/</link>
<pubDate>Mon, 21 May 2012 15:40:58 +0000</pubDate>
<dc:creator>Haziq Noor Ariff</dc:creator>
<guid>http://haziqnoorariff.wordpress.com/2012/05/21/gdal-and-geos-in-python-virtual-environments-in-ubuntu-12-04/</guid>
<description><![CDATA[Question: How to install and use GDAL and GEOS from virtual environments in ubuntu 12.04? I&#8217;ve]]></description>
<content:encoded><![CDATA[Question: How to install and use GDAL and GEOS from virtual environments in ubuntu 12.04? I&#8217;ve]]></content:encoded>
</item>
<item>
<title><![CDATA[Is that a python on your shoulder?]]></title>
<link>http://rupertapproves.wordpress.com/2012/05/21/is-that-a-python-on-your-shoulder/</link>
<pubDate>Mon, 21 May 2012 11:31:10 +0000</pubDate>
<dc:creator>Kate Kearney</dc:creator>
<guid>http://rupertapproves.wordpress.com/2012/05/21/is-that-a-python-on-your-shoulder/</guid>
<description><![CDATA[On Saturday we attended a fundraiser my mom and some of her &#8216;committee&#8217; members held at ]]></description>
<content:encoded><![CDATA[<p>On Saturday we attended a fundraiser my mom and some of her &#8216;committee&#8217; members held at &#8216;their&#8217; river. One of the activities of the day was a snake demo. I was asked to step up to the plate when the snake wrangler had run out of kids to use (and after watching a 4-year-old girl handle a huge tarantula I couldn&#8217;t really say no).</p>
<p>I got to play with this &#8216;little&#8217; cutie for a few minutes.</p>
<p>I think yellow is my colour.</p>
<p>&#160;</p>
<p><a href="http://rupertapproves.files.wordpress.com/2012/05/snake-2.jpg"><img class="alignnone size-full wp-image-254" title="" src="http://rupertapproves.files.wordpress.com/2012/05/snake-2.jpg" alt="" width="478" height="640" /></a></p>
<p>&#160;</p>
<p><a href="http://rupertapproves.files.wordpress.com/2012/05/snake.jpg"><img class="alignnone size-full wp-image-253" title="" src="http://rupertapproves.files.wordpress.com/2012/05/snake.jpg" alt="" width="640" height="478" /></a></p>
]]></content:encoded>
</item>
<item>
<title><![CDATA[The Singleton Pattern]]></title>
<link>http://abdulapopoola.wordpress.com/2012/05/21/the-singleton-pattern/</link>
<pubDate>Mon, 21 May 2012 03:58:16 +0000</pubDate>
<dc:creator>AbdulFattah Popoola</dc:creator>
<guid>http://abdulapopoola.wordpress.com/2012/05/21/the-singleton-pattern/</guid>
<description><![CDATA[I stumbled upon the singleton pattern while reading a PHP book and fell in love with its simplicity.]]></description>
<content:encoded><![CDATA[<div style="font-size:large;">
<p style="text-align:justify;" align="JUSTIFY"><span style="color:#000000;">I stumbled upon the singleton pattern while reading a PHP book and fell in love with its simplicity. I rushed to use it at every single opportunity I got (when you have a hammer, everything looks like a nail, right?) until I got tired of it; now I can&#8217;t really remember when I used it last. Why? Well, there has been no reason to. Singletons have been the topic of heated debates over time, some people even consider them to be an anti-pattern! But first, what is this pattern all about?</span></p>
<p style="text-align:justify;"><span style="color:#000000;">The Singleton pattern is a design pattern that ensures that only one object of a class exists. Singletons are best used when you need to have a single object control simultaneous access to shared resources by other objects. If this conditions are not met, you should consider another design.</span></p>
<h4 style="text-align:justify;">So how do I create a Singleton?</h4>
<p style="text-align:justify;"><span style="color:#000000;">Blosch in Effective Java listed these two ways: exposing a member variable and using a static factory.</span></p>
<h5 style="text-align:justify;"><span style="color:#000000;">Using a public member variable</span></h5>
<p style="text-align:justify;">public class Singleton {</p>
<p style="padding-left:30px;text-align:justify;">public static final Singleton instance = new Singleton()</p>
<p style="padding-left:30px;text-align:justify;">private Singleton() {…}</p>
<p style="padding-left:30px;text-align:justify;">//other code</p>
<p style="text-align:justify;">}</p>
<h5 style="text-align:justify;">Using a static Factory</h5>
<p style="text-align:justify;">public class Singleton{</p>
<p style="padding-left:30px;text-align:justify;">private static final Singleton instance = new Singleton()</p>
<p style="padding-left:30px;text-align:justify;">private Singleton() {…}</p>
<p style="padding-left:30px;text-align:justify;">public static Singleton getInstance(){</p>
<p style="padding-left:30px;text-align:justify;">if (instance == null)</p>
<p style="padding-left:60px;text-align:justify;">instance = new Singleton()</p>
<p style="padding-left:30px;text-align:justify;">return instance</p>
<p style="padding-left:30px;text-align:justify;">}</p>
<p style="padding-left:30px;text-align:justify;">//other code</p>
<p style="text-align:justify;">}</p>
<h4 style="text-align:justify;"><span style="color:#000000;">Why are Singletons used?</span></h4>
<p style="text-align:justify;"><span style="color:#000000;">A good application of Singletons is in logging; you&#8217;ll probably want to log all events from the various classes in your project to a single location. So it is best to use a singleton to write, synchronize writes and close the file. They can also be used to read static configuration files at startup and provide all other classes with initialization details.</span></p>
<p style="text-align:justify;"><span style="color:#000000;">Great! So why the fuss about Singletons? Well, Singletons (like all other misuses occurring in software engineering) are not the problem; people are. When used by people without a strong grasp of OO concepts, they can turn into humongous monstrosities that cause unnecessary restrictions and bring in global state. Worse still, they&#8217;ll be used when they is absolutely no need for them or what they were not designed to do.</span></p>
<p style="text-align:justify;"><span style="color:#000000;">Enough talk about ugly code&#8230; Here are some of the issues:</span></p>
<ul>
<li><span style="color:#000000;">Memory Management: How does garbage collection occur? Well no one knows that the single instance has not been used for a long loooong loooooooooooong time. And how do you know if some remote class has a reference to the single instance?</span></li>
</ul>
<ul>
<li><span style="color:#000000;">Singletons are hard to subclasss; it is pretty difficult to override the default initialization sequence.</span></li>
</ul>
<ul>
<li><span style="color:#000000;">Worse still, try handling multithreaded singletons.</span></li>
</ul>
<ul>
<li><span style="color:#000000;">It is difficult to test Singletons and they can cause code to become tightly coupled.</span></li>
</ul>
<p style="text-align:justify;"><span style="color:#000000;">So you might thinking Singletons are evil now; no not quite. Singletons pros include:</span></p>
<ul>
<li><span style="color:#000000;">Singletons can implement interfaces and inherit from other classes.</span></li>
</ul>
<ul>
<li><span style="color:#000000;">They can be lazy-loaded (most times they are); this is great for expensive resources.</span></li>
</ul>
<ul>
<li><span style="color:#000000;">They can be easily converted into factories.</span></li>
</ul>
<h4 style="text-align:justify;"><span style="color:#000000;">Should I use a Singleton?</span></h4>
<p style="text-align:justify;"><span style="color:#000000;">I have only one thing to say; Learn about it well enough else you&#8217;ll be using a hammer to drive in a pin!</span></p>
</div>
		<div id="geo-post-613" class="geo geo-post" style="display: none">
			<span class="latitude">6.466667</span>
			<span class="longitude">3.566667</span>
		</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[Halls Gap Zoo]]></title>
<link>http://preciousruthlesscaptures.wordpress.com/2012/05/21/halls-gap-zoo/</link>
<pubDate>Mon, 21 May 2012 02:49:34 +0000</pubDate>
<dc:creator>melanieylang</dc:creator>
<guid>http://preciousruthlesscaptures.wordpress.com/2012/05/21/halls-gap-zoo/</guid>
<description><![CDATA[My Good Man and I were in the Grampians for a wedding on the weekend. As the following morning was c]]></description>
<content:encoded><![CDATA[<p><a href="http://preciousruthlesscaptures.files.wordpress.com/2012/05/p5201401-vignette.jpg"><img title="OLYMPUS DIGITAL CAMERA" src="http://preciousruthlesscaptures.files.wordpress.com/2012/05/p5201401-vignette.jpg?w=1024&h=768" alt="" width="1024" height="768" /></a></p>
<p>My Good Man and I were in the Grampians for a wedding on the weekend. As the following morning was clear, after a leisurely cafe breakfast we decided to walk off the overindulgence at Halls Gap Zoo. (Visiting zoos is one of the few times we are content to walk together for longer than a few minutes &#8211; most of the time there&#8217;s a lot of &#8220;come for a walk?&#8221; and the reply, from him, &#8220;have fun!&#8221;)</p>
<p>According to <a href="http://en.wikipedia.org/wiki/Halls_Gap_Zoo" target="_blank">Wikipedia</a>, the zoo was opened in the 1980s as a wildlife park; indeed, I remember visiting it in the mid &#8217;80s with my mum and a friend from North Dakota. It&#8217;s just the kind of place overseas tourists love to visit, with lots of native wildlife to be seen up close. At that time, there was also a lot of deer, and we bought bags of food to give them. That would have been the highlight for me.</p>
<p>Yesterday we weren&#8217;t seduced by the promise of being able to feed the wildlife (the still-prolific deer tried to eat the map anyway), but we did enjoy ourselves, and it was a pleasant walk through the exhibits too.</p>
<p>At the doorway to the park stood the Peacock of Greeting, who stepped casually out of the way to let us pass. When we headed into the nocturnal house, I became quickly besotted with the Veiled Chameleon in the entrance, who was doing a super-slow-motion dance. Chameleons are several kinds of awesome: one &#8211; they&#8217;re so colourful; two &#8211; their eyes swivel around independently of each other; three &#8211; they catch their prey with a very long, sticky tongue; four &#8211; curly, whirly, tail; five &#8211; this one had a helmet. I&#8217;m sure there is yet more awesomeness to be discovered.</p>
<p><a href="http://preciousruthlesscaptures.files.wordpress.com/2012/05/p5201333.jpg"><img title="OLYMPUS DIGITAL CAMERA" src="http://preciousruthlesscaptures.files.wordpress.com/2012/05/p5201333.jpg?w=1024&h=768" alt="" width="1024" height="768" /></a></p>
<p>The Pygmy Marmosets were my favourite exhibit &#8211; they seemed to be as engaged in the act of looking at the amazing creature behind the glass as we were. They also looked disconcertingly intelligent, and as though a finger would be a welcome treat.</p>
<p><a href="http://preciousruthlesscaptures.files.wordpress.com/2012/05/p5201341-vignette-focal-bw.jpg"><img class="alignnone size-large wp-image-182" title="OLYMPUS DIGITAL CAMERA" src="http://preciousruthlesscaptures.files.wordpress.com/2012/05/p5201341-vignette-focal-bw.jpg?w=1024&h=768" alt="" width="1024" height="768" /></a></p>
<p>In the fossil house, the static displays were enhanced by the inclusion of reptile exhibits. The python, though its neck was outstretched, was quite immobile and I wasn&#8217;t even quite sure it was alive!</p>
<p><a href="http://preciousruthlesscaptures.files.wordpress.com/2012/05/p5201356.jpg"><img class="alignnone size-large wp-image-183" title="OLYMPUS DIGITAL CAMERA" src="http://preciousruthlesscaptures.files.wordpress.com/2012/05/p5201356.jpg?w=1024&h=768" alt="" width="1024" height="768" /></a></p>
<p>The walk through the open air exhibits took us into a roaming band of hungry deer, who trailed along behind as we saw wallabies, emus, a cassowary, bison, a hyper Phascogale, native quolls, Tasmanian devils, owls, corellas, parrots, Bush stone-curlews, a bustard, meerkats, red pandas, spider monkeys, antelope, Barbary sheep, and many more besides. It was well worth the visit.</p>
<p><a href="http://preciousruthlesscaptures.files.wordpress.com/2012/05/p5201380.jpg"><img class="alignnone size-large wp-image-184" title="OLYMPUS DIGITAL CAMERA" src="http://preciousruthlesscaptures.files.wordpress.com/2012/05/p5201380.jpg?w=1024&h=768" alt="" width="1024" height="768" /></a></p>
<p>&#160;</p>
<p><a href="http://preciousruthlesscaptures.files.wordpress.com/2012/05/p5201390-crop.jpg"><img class="alignnone size-large wp-image-185" title="OLYMPUS DIGITAL CAMERA" src="http://preciousruthlesscaptures.files.wordpress.com/2012/05/p5201390-crop.jpg?w=754&h=1024" alt="" width="754" height="1024" /></a></p>
]]></content:encoded>
</item>
<item>
<title><![CDATA[Surprise at Coffs Harbour]]></title>
<link>http://myworldmarkstory.com/2012/05/21/surprise-at-coffs-harbour/</link>
<pubDate>Sun, 20 May 2012 23:00:03 +0000</pubDate>
<dc:creator>worldmarksp</dc:creator>
<guid>http://myworldmarkstory.com/2012/05/21/surprise-at-coffs-harbour/</guid>
<description><![CDATA[My husband, Ross, sister-in-law, Beryl and I were travelling to Brisbane from Newcastle for our daug]]></description>
<content:encoded><![CDATA[<p><a href="http://worldmarksp.files.wordpress.com/2012/05/800px-diamond_python.jpg"><img class="alignright size-medium wp-image-1431" title="800px-Diamond_Python" src="http://worldmarksp.files.wordpress.com/2012/05/800px-diamond_python.jpg?w=300&h=169" alt="" width="300" height="169" /></a>My husband, Ross, sister-in-law, Beryl and I were travelling to Brisbane from Newcastle for our daughter&#8217;s wedding in September 2009. We decided to break the journey and stay at <a href="http://www.wyndhamvrap.com/resorts/terraces"><strong>Coffs Harbour Terraces</strong></a>. Parking is underneath the units and we carted most of our necessary items up to the unit. I discovered that I was missing something and went back down to retrieve it.</p>
<p>I came down the stairs and stepped into the car park but between me and the car was a large diamond python and I backed off quickly! Another visitor hit the concrete floor with his paper and the snake turned left and went between the cars and (I hoped) out into the garden. <!--more--></p>
<p>Carefully I retrieved the item from the boot, but when getting into the front of the car I jumped in instead of reaching in&#8230; retrieved what I wanted and quickly made my way back up the steps.</p>
<p>Of course, you can guess the reaction to my news about a 2 metre diamond python&#8230;..just like every big fish story! We left Coffs the next morning, stopped in Grafton for fuel and to clean the windscreen and went onto Casino where we spent and enjoyable hour and a half visiting relatives before resuming the journey up through Kyogle.</p>
<p>We had just passed through Wiangaree, heading uphill through a cutting when Ross said &#8220;I know where your snake is!&#8221;. I looked up to see the head of the snake coming down onto the bonnet of the car. We were unable to stop and had to continue over the hill and out of the cutting before pulling over.</p>
<p>&#8220;You stay in the car and I&#8217;ll try to find a stick to get the snake off&#8221;. Beryl and I looked at each other &#8211; there was no way known to man that we were getting out of that car! Luckily our friend had had enough of cars and happily descended &#8211; last seen heading for the wide open space of the adjacent paddock. Husband and sister-in-law agreed that I had not exaggerated the size of the python!</p>
<p><strong>Mavis</strong></p>
]]></content:encoded>
</item>
<item>
<title><![CDATA[Reading URLs from OS X clipboard with PyObjC]]></title>
<link>http://genbastechthoughts.wordpress.com/2012/05/20/reading-urls-from-os-x-clipboard-with-pyobjc/</link>
<pubDate>Sun, 20 May 2012 22:40:27 +0000</pubDate>
<dc:creator>Genba</dc:creator>
<guid>http://genbastechthoughts.wordpress.com/2012/05/20/reading-urls-from-os-x-clipboard-with-pyobjc/</guid>
<description><![CDATA[I&#8217;m definitely lazy. I don&#8217;t like making efforts bigger than needed, under any circumsta]]></description>
<content:encoded><![CDATA[<p>I&#8217;m definitely lazy. I don&#8217;t like making efforts bigger than needed, under any circumstances. And, when it comes to downloading a (quite big) bunch of files, I don&#8217;t like doing it manually. That&#8217;s why I&#8217;m currently using <a href="http://jdownloader.org/">jDownloader</a> on my iMac. However, it&#8217;s still got an issue: when I copy URLs from Safari, it instantly recognizes that URLs have been copied to the clipboard and adds them for download; but, when I copy HTML links from Safari whose text is just text (not an URL), this does not work anymore, and I then have to copy the links one by one, which really bothers me, because I&#8217;m lazy (and because I have to waste a lot of time for that).</p>
<p>So, the problem is that everything works fine when I copy something like</p>
<blockquote><p>http://example.com/</p></blockquote>
<p>or something like</p>
<blockquote><p><a href="http://example.com/">http://example.com/</a></p></blockquote>
<p>but it doesn&#8217;t work anymore when the link is like</p>
<blockquote><p><a href="http://example.com/">this is a link to an example domain</a></p></blockquote>
<p>And, since I&#8217;m lazy, I decided I had to write a program to copy a bunch of links at once, without all that hassle. The first idea that came to my mind was to write a Python script that used <a href="http://wwwsearch.sourceforge.net/mechanize/">mechanize</a> to copy to the clipboard all URLs in a web page, but that didn&#8217;t seem like the prettiest solution at that moment.</p>
<p>But then a second approach occurred to me: I could just copy the web page&#8217;s text to the clipboard and let a program read the richt text, HTML or whatever from the clipboard and find the URLs. Besides, that seemed to be an interesting program to write. I started considering RubyCocoa for that, but a deep knowledge of sorcery is needed to be able to use Xcode, and I&#8217;m not such a good sorcerer. After that, my tests with Qt weren&#8217;t successful, so I decided to go search on the internet for some recipes to access the OS X clipboard with Python.</p>
<p>After digging for a while, I found and article on <a href="http://www.macdrifter.com/2011/12/python-and-the-mac-clipboard/">Python and the Mac Clipboard</a> which pointed me in the right direction: use PyObjC to access the <a href="http://developer.apple.com/library/mac/#documentation/Cocoa/Reference/ApplicationKit/Classes/NSPasteboard_Class/Reference/Reference.html">NSPasteboard</a> class. After taking a look at the documentation and testing a bit, supported by Python&#8217;s built-in <code>dir()</code> and <code>help()</code> functions, I found that</p>
<ol>
<li>all of the items that are currently in the pasteboard are returned as an <code>NSArray</code> by <code>NSPasteboard.pasteboardItems</code> method,</li>
<li>the list of all <a href="http://en.wikipedia.org/wiki/Uniform_Type_Identifier">types</a> to which each pasteboard item can be converted is returned as an <code>NSArray</code> by the <code>NSPasteboardItem.types</code> method, and</li>
<li>all text copied from Safari can be accessed both as <code>com.apple.webarchive</code> with the <code>NSPasteboardItem.dataForType_</code> method, and as <code>public.rtf</code> with the <code>NSPasteboardItem.stringForType_</code> method.</li>
</ol>
<div>Given that we&#8217;re interested in getting the URLs from the richt text representation, the best approach was to use regular expressions to extract all hyperlinks from the RTF document representation of the web page clip copied, resulting in the following Python code:</div>
<p><pre class="brush: python;">
from AppKit import NSPasteboard

import re

pb = NSPasteboard.generalPasteboard()
pattern = re.compile(r'HYPERLINK &#34;(.+)&#34;')
for item in pb.pasteboardItems():
	if 'public.rtf' in item.types():
		matches = pattern.findall(item.stringForType_('public.rtf'))
		for url in matches:
			print url
</pre></p>
<p>You can then copy the output URLs manually to the clipboard, which would make jDownloader to recognize them, or you could also improve the script to add copying capabilities, so that the script would copy the output to the clipboard again.</p>
]]></content:encoded>
</item>
<item>
<title><![CDATA[How to create a class in Python]]></title>
<link>http://talesofgeek.wordpress.com/2012/05/20/how-to-create-a-class-in-python/</link>
<pubDate>Sun, 20 May 2012 21:43:18 +0000</pubDate>
<dc:creator>talesofgeek</dc:creator>
<guid>http://talesofgeek.wordpress.com/2012/05/20/how-to-create-a-class-in-python/</guid>
<description><![CDATA[I thought I&#8217;d make a post on how you create your very first class by using Python. This is jus]]></description>
<content:encoded><![CDATA[<p>I thought I&#8217;d make a post on how you create your very first class by using Python. This is just a beginner guide to get you started.</p>
<p>First off, I will introduce you to the superclass that every class you create in Python inherit methods from: <strong>Object</strong>. Object have a few built in methods that can be very valuable when you create your own class. I however will just focus on a few in this post, that I have used myself in a small assignment at the university.</p>
<p>To create a class, you start off with simply:</p>
<p><strong><em>class Classname():</em></strong> It&#8217;s not needed to add Object into the brackets, if nothing else is said the class will inherit Object. If you want you can do it, but it is not necessary.</p>
<p>After this we want to define the <em>__init__()</em> method. It does not return anything, __init__() is just resposible for initializing an instance (the object&#8217;s data attributes) of the class when it is created in memory.</p>
<p><a href="http://talesofgeek.files.wordpress.com/2012/05/init.png"><img class="alignleft size-medium wp-image-227" title="init" src="http://talesofgeek.files.wordpress.com/2012/05/init.png?w=300&h=103" alt="" width="300" height="103" /></a></p>
<p>Here you can see that I have created a class called Rectangle. Notice the <strong><em>(self)</em></strong> parameter. When a method in the class is executed it must know which object&#8217;s data attributes it should operate on. So the self parameter is a reference to the specific object the method is supposed to operate on.Since I want this class to handle input to calculate a rectangle&#8217;s area and circumreference the __init__() method also accepts arguments for height and width, which are assigned to the <em>self. __height</em> and<em> self. __width</em> attributes. Two underscores befrore the attribute name makes the attribute private, and can not be manipulated or changed by methods outside the class.</p>
<p>I wanted this class to be able to calculate the area and circumreference of a rectangle I need to define a few methods to make that possible.<a href="http://talesofgeek.files.wordpress.com/2012/05/methods.png"><img class="size-medium wp-image-232 alignright" title="methods" src="http://talesofgeek.files.wordpress.com/2012/05/methods.png?w=300&h=193" alt="" width="300" height="193" /></a> I&#8217;ve choosen to make methods to handle the height, width and also the calculations needed.</p>
<p>Starting off with <em>def getHeight(self)</em><strong><em>:</em> </strong>what happens here is that the value stored in the attribute self.__height is returned. The same goes for <em>def getWidth(self):</em>.</p>
<p>In <em>getArea(self):</em> and <em>getCircumreference(self):</em> more happens than in the above methods. Starting off with <em>area</em>, the method returns the sum of the value stored in the attributes self.__height multiplied with the value stored in self.__width.</p>
<p>In <em>getCircumreference(self):</em> we need to have the width multiplied by two and add that to the height multiplied by two. To make sure we get the correct calculation, we have to separate the calculation for 2 times the value of self.__height and the same calculation for self.__width and then add the two values together. Basically just what you could do normally when calculating math.</p>
<p><a href="http://talesofgeek.files.wordpress.com/2012/05/test1.png"><img class="alignleft size-medium wp-image-244" title="test" src="http://talesofgeek.files.wordpress.com/2012/05/test1.png?w=300&h=69" alt="" width="300" height="69" /></a>To see if my class works propperly I make a test program in another file and import the file with the class in it.  You define your main method and then create as many instances of the class you want. I have done two in this test. You add the height and width of the rectangles within the brackets, for example<em> </em><em>r1=rectangles.Rectangle (8,3)</em>. Then to use the methods within the class module you created, you use rectangles you created to call on the methods <em>r1.getCircumreference()</em>.</p>
]]></content:encoded>
</item>
<item>
<title><![CDATA[Nature's Wildlife]]></title>
<link>http://amorsphotos.wordpress.com/2012/05/20/natures-wildlife/</link>
<pubDate>Sun, 20 May 2012 20:35:58 +0000</pubDate>
<dc:creator>RC</dc:creator>
<guid>http://amorsphotos.wordpress.com/2012/05/20/natures-wildlife/</guid>
<description><![CDATA[Rainbow Parrot &nbsp; Glossy-eyed Python &nbsp; Iguana &nbsp; Iguana (close up) &nbsp; Shark]]></description>
<content:encoded><![CDATA[<div id="attachment_27" class="wp-caption alignnone" style="width: 1034px"><a href="http://amorsphotos.files.wordpress.com/2012/05/dsc01844.jpg"><img class="size-large wp-image-27" title="Rainbow Parrot" src="http://amorsphotos.files.wordpress.com/2012/05/dsc01844.jpg?w=1024&h=768" alt="" width="1024" height="768" /></a><p class="wp-caption-text">Rainbow Parrot</p></div>
<p>&#160;</p>
<div id="attachment_30" class="wp-caption alignnone" style="width: 1034px"><a href="http://amorsphotos.files.wordpress.com/2012/05/dsc01853.jpg"><img class="size-large wp-image-30" title="Python" src="http://amorsphotos.files.wordpress.com/2012/05/dsc01853.jpg?w=1024&h=768" alt="" width="1024" height="768" /></a><p class="wp-caption-text">Glossy-eyed Python</p></div>
<p>&#160;</p>
<div id="attachment_29" class="wp-caption alignnone" style="width: 1034px"><a href="http://amorsphotos.files.wordpress.com/2012/05/dsc01850.jpg"><img class="size-large wp-image-29" title="Iguana" src="http://amorsphotos.files.wordpress.com/2012/05/dsc01850.jpg?w=1024&h=768" alt="" width="1024" height="768" /></a><p class="wp-caption-text">Iguana</p></div>
<p>&#160;</p>
<div id="attachment_28" class="wp-caption alignnone" style="width: 1034px"><a href="http://amorsphotos.files.wordpress.com/2012/05/dsc01847.jpg"><img class="size-large wp-image-28" title="Iguana (close up)" src="http://amorsphotos.files.wordpress.com/2012/05/dsc01847.jpg?w=1024&h=768" alt="" width="1024" height="768" /></a><p class="wp-caption-text">Iguana (close up)</p></div>
<p>&#160;</p>
<div id="attachment_26" class="wp-caption alignnone" style="width: 1034px"><a href="http://amorsphotos.files.wordpress.com/2012/05/dsc01864.jpg"><img class="size-large wp-image-26" title="Shark" src="http://amorsphotos.files.wordpress.com/2012/05/dsc01864.jpg?w=1024&h=768" alt="" width="1024" height="768" /></a><p class="wp-caption-text">Shark</p></div>
]]></content:encoded>
</item>
<item>
<title><![CDATA[Google App Engine：ついに Search API が登場！]]></title>
<link>http://agilecat.wordpress.com/2012/05/21/google-app-engine%ef%bc%9a%e3%81%a4%e3%81%84%e3%81%ab-search-api-%e3%81%8c%e7%99%bb%e5%a0%b4%ef%bc%81/</link>
<pubDate>Sun, 20 May 2012 20:22:05 +0000</pubDate>
<dc:creator>Agile Cat</dc:creator>
<guid>http://agilecat.wordpress.com/2012/05/21/google-app-engine%ef%bc%9a%e3%81%a4%e3%81%84%e3%81%ab-search-api-%e3%81%8c%e7%99%bb%e5%a0%b4%ef%bc%81/</guid>
<description><![CDATA[Google App Engine Finally Debuts the Search API http://wp.me/pwo1E-4ex Romin Irani, May 10th, 2012 h]]></description>
<content:encoded><![CDATA[Google App Engine Finally Debuts the Search API http://wp.me/pwo1E-4ex Romin Irani, May 10th, 2012 h]]></content:encoded>
</item>
<item>
<title><![CDATA[Gmvault: gmail backup]]></title>
<link>http://kobak.wordpress.com/2012/05/20/gmvault-gmail-backup/</link>
<pubDate>Sun, 20 May 2012 18:29:54 +0000</pubDate>
<dc:creator>kobak</dc:creator>
<guid>http://kobak.wordpress.com/2012/05/20/gmvault-gmail-backup/</guid>
<description><![CDATA[Gmvault: gmail backup]]></description>
<content:encoded><![CDATA[<p><a href="http://gmvault.org/">Gmvault: gmail backup</a></p>
]]></content:encoded>
</item>
<item>
<title><![CDATA[Using Scons with LaTeX and Sweave]]></title>
<link>http://nblouveton.wordpress.com/2012/05/20/using-scons-with-latex-sweave/</link>
<pubDate>Sun, 20 May 2012 12:26:21 +0000</pubDate>
<dc:creator>nblouveton</dc:creator>
<guid>http://nblouveton.wordpress.com/2012/05/20/using-scons-with-latex-sweave/</guid>
<description><![CDATA[Maintaining a complex document written in LaTeX could be a tedious task, particularly when it comes ]]></description>
<content:encoded><![CDATA[<p>Maintaining a complex document written in LaTeX could be a tedious task, particularly when it comes to require frequent updates and enhancements. This task is even more boring when such modifications involve to run data processing/analysis scripts and to plot figures again and again.</p>
<p>Here, four possibilities I explored in order to fix this issue:</p>
<ul>
<li><strong>The painful way</strong>: you can modify relevant files, and run additional scripts before re-compiling your main tex document each time it is required.</li>
<li><strong>The dirty way</strong>: you write a shell script that takes care about re-building things. This script is likely to be not pretty smart: it would probably not handle properly dependencies, timestamps and cross-references.</li>
<li><strong>The old-school way</strong>: use (GNU)Make, write your own Makefile is not difficult. However Makefile syntax is awkward and writing a complicated one (which will manage dependencies and fire bunch of shell commands appropriately) is tedious too.</li>
<li><strong>The Pythonic way</strong>: use Scons, it is a modern (literally) Software CONStruction tool like Make but is based on the Python language and work very well with LaTeX documents.</li>
</ul>
<p>It provides some very interesting properties:</p>
<ul>
<li><strong>Scons include a built-in LaTeX mode</strong>: it cares for you about cross-references and dependencies of your master document. That is it detects automatically all files (text/pictures/bibfiles) included in your master tex document (and recursively in the sub-documents), verifies their current state and re-build them accordingly.</li>
<li>It allows for complete use of the python language and all its capabilities, if you want to add some piece of script directly in your Sconstruct file..</li>
<li>It allows for an easy handling of particular cases through user-defined Builders and dependency Scanners.</li>
</ul>
<p>To get to work, Scons only requires a very simple Sconstruct file in the project&#8217;s directory:</p>
<pre>import os

SRC = 'main.tex'
env = Environment(ENV=os.environ)

pdfOutput = env.PDF(SRC)</pre>
<p>Then the scons command will do the job. In this example we used the PDF Builder but Scons supports DVI() and PostScript() output as wel.</p>
<p>However, may be you want to add some features such as Rich Text Format output:</p>
<pre>...

rtfbuilder = Builder(action='latex2rtf $SOURCE',
suffix = '.rtf',
src_suffix = '.tex')

env = Environment(ENV=os.environ)

env.Append(BUILDERS = {'RTF' : rtfbuilder})

rtfOuptu = env.RTF(SRC)</pre>
<p>User-defined builders could be also helpful in joint use of LaTeX and the R language through Sweave. Let&#8217;s assume that we include in our master document a tex file that is remotely defined by a Sweave (.Rnw) file. In this case we surely want to add a Sweave builder.</p>
<pre>...
sweavebuild = Builder(action='./Sweaver.sh $SOURCE',
suffix = '.tex',
src_suffix = '.Rnw')

env = Environment(ENV=os.environ)

env.Append(BUILDERS = {'SWeave' : sweavebuild})

swvOutput = env.SWeave('remote_sweave_file.Rnw')
pdfOutput = env.PDF(SRC)</pre>
<p>The sweavebuild action parameter could be set either with the classic R CMD interface or with a Rscript in order to give some explicit parameters to Sweave (e.g., the script below use explicit &#8216;latin1&#8242; character encoding because implicit encoding does not work  with some old release of R):</p>
<pre>#! /usr/bin/env Rscript
args &#60;- commandArgs(TRUE)
Sweave(args[1], encoding='latin1')</pre>
]]></content:encoded>
</item>
<item>
<title><![CDATA[Time to reflect]]></title>
<link>http://engineersjourney.wordpress.com/2012/05/20/time-to-reflect/</link>
<pubDate>Sun, 20 May 2012 10:31:21 +0000</pubDate>
<dc:creator>tuturto</dc:creator>
<guid>http://engineersjourney.wordpress.com/2012/05/20/time-to-reflect/</guid>
<description><![CDATA[No, this is not about special effects and environmental mapping in 3D-graphics, but about the experi]]></description>
<content:encoded><![CDATA[<p>No, this is not about special effects and environmental mapping in 3D-graphics, but about the experience of writing the game so far. Reason I&#8217;m writing this is, that I hit 501 commits today and thought it might be a good time to look back.</p>
<p>pyherc is my pet project that I have been working in a form or another for years. It all started back in the 90s, when I wanted to program the greatest rpg-game ever. I was using Turbo Pascal back then and learned quite a bit about basics of object oriented programming, but never got the game even to run.</p>
<p>Next try was some years later when I started learning C/C++ and tried writing the game again. Success was about as good as with Turbo Pascal (so, I learned how objects work in C/C++ and how easy it is to get tangled to little details), but again I didn&#8217;t get a playable game.</p>
<p>Then came Java and I thought it would be useful language to learn (I also liked the amount of libraries available out there) and I started hacking the code together. This time I actually got runnable game, where you could walk around, pick up and eat bananas and kill some randomly wandering monsters. This was also the first time I was exposed to unit testing. I wrote some of those, but the approach was not very structured or disciplined. Despite of that, I quickly realised that writing unit tests was good way to catch bugs before you could even run the code in actual game. Eventually I gave up with the game though and abandoned it.</p>
<p>Latest try has been written with Python. So far the results have been much better than before. I have playable game (albeit very basic) with extensive test cases around it. I&#8217;m trying to maintain healthy pace (not coding too much, not abandoning the project completely), while learning and trying out new things (inversion of control, dependency injection, doctests and so on). The game isn&#8217;t anything particularly special, but I&#8217;m quite proud that I finally got this far. Lets see where next 500 commits will take me.</p>
]]></content:encoded>
</item>
<item>
<title><![CDATA[youtube_pl2vids.py]]></title>
<link>http://schoolsplay.wordpress.com/2012/05/20/youtube_pl2vids-py/</link>
<pubDate>Sun, 20 May 2012 09:07:50 +0000</pubDate>
<dc:creator>schoolsplay</dc:creator>
<guid>http://schoolsplay.wordpress.com/2012/05/20/youtube_pl2vids-py/</guid>
<description><![CDATA[Python script to download youtube vids import sys, os, random, time if len(sys.argv) &lt; 3: print ]]></description>
<content:encoded><![CDATA[<p>Python script to download youtube vids</p>
<p><pre class="brush: python;">

import sys, os, random, time

if len(sys.argv) &#60; 3:
    print &#34;Usage: youtube_pl2vids [playlist.html] [destination directory]&#34;
    sys.exit(1)

source = sys.argv[1]
dest = sys.argv[2]
urllines = []
f = open(os.path.join(dest, 'youtube.dl'), 'w')
for line in open(source, 'r').readlines():
    if '&#60;a href=&#34;/watch?v=' in line and 'class=&#34;tile-link-block video-tile&#34;' in line:
    url = &#34;http://www.youtube.com&#34; + line.split('&#38;amp')[0].split('&#60;a href=&#34;')[1]
    f.write(url + '\n')
    urllines.append(url)
f.close()
print urllines
# we assume youtube-dl is installed
for line in urllines:
    os.system('youtube-dl -t --max-quality 22 %s' % line)
    s = random.randint(1, 6)
    print &#34;sleeping %s secs&#34; % s
    time.sleep(s)
</pre></p>
]]></content:encoded>
</item>
<item>
<title><![CDATA[Python virtual environments in ubuntu 12.04]]></title>
<link>http://haziqnoorariff.wordpress.com/2012/05/20/python-virtual-environments-ubuntu-12-04/</link>
<pubDate>Sun, 20 May 2012 04:19:07 +0000</pubDate>
<dc:creator>Haziq Noor Ariff</dc:creator>
<guid>http://haziqnoorariff.wordpress.com/2012/05/20/python-virtual-environments-ubuntu-12-04/</guid>
<description><![CDATA[Question: How to install and manage different Python virtual environments using pythonbrew, virtuale]]></description>
<content:encoded><![CDATA[Question: How to install and manage different Python virtual environments using pythonbrew, virtuale]]></content:encoded>
</item>
<item>
<title><![CDATA[Google Python Class: Dictionary and Files]]></title>
<link>http://blog.eventhelix.com/2012/05/19/google-python-class-dictionary-and-files/</link>
<pubDate>Sun, 20 May 2012 02:42:06 +0000</pubDate>
<dc:creator>eventhelix</dc:creator>
<guid>http://blog.eventhelix.com/2012/05/19/google-python-class-dictionary-and-files/</guid>
<description><![CDATA[Python dictionary and file handling are covered here: Revise: Python dictionary and file handling tu]]></description>
<content:encoded><![CDATA[<p>Python dictionary and file handling are covered here:</p>
<span class='embed-youtube' style='text-align:center; display: block;'><iframe class='youtube-player' type='text/html' width='640' height='390' src='http://www.youtube.com/embed/haycL41dAhg?version=3&amp;rel=1&amp;fs=1&amp;showsearch=0&amp;showinfo=1&amp;iv_load_policy=1&amp;wmode=transparent' frameborder='0'></iframe></span>
<p>Revise:</p>
<p><strong><a href="http://code.google.com/edu/languages/google-python-class/dict-files.html">Python dictionary and file handling tutorial.</a></strong></p>
]]></content:encoded>
</item>
<item>
<title><![CDATA[Anschaffung Guess Damen Armbanduhr G2G Python W13089L1 Zu Verkaufen]]></title>
<link>http://ettabblog.wordpress.com/2012/05/22/anschaffung-guess-damen-armbanduhr-g2g-python-w13089l1-zu-verkaufen/</link>
<pubDate>Sat, 19 May 2012 23:57:46 +0000</pubDate>
<dc:creator>ettabblog</dc:creator>
<guid>http://ettabblog.wordpress.com/2012/05/22/anschaffung-guess-damen-armbanduhr-g2g-python-w13089l1-zu-verkaufen/</guid>
<description><![CDATA[Guess Damen Armbanduhr G2G Python W13089L1 Unverb. Preisempf: EUR 209,00 Preis: SEHEN PREIS! &lt;]]></description>
<content:encoded><![CDATA[<p><a href="http://www.amazon.de/Guess-Damen-Armbanduhr-Python-W13089L1/dp/B002RT8Y0U%3FSubscriptionId%3DAKIAJMYZ4A7DX4X4RQ3A%26tag%3Dde1w5-21%26linkCode%3Dxm2%26camp%3D2025%26creative%3D165953%26creativeASIN%3DB002RT8Y0U" rel="nofollow" title="Guess Damen Armbanduhr G2G Python W13089L1" target="_blank"><img style="float:left;margin:0 20px 10px 0;" src="http://ecx.images-amazon.com/images/I/41315WJdRLL._SL160_.jpg" alt="Guess Damen Armbanduhr G2G Python W13089L1" border="0"></a>
<p><strong>Guess Damen Armbanduhr G2G Python W13089L1</strong><br />
<strong>Unverb. Preisempf:</strong> <span style="text-decoration:line-through;">EUR 209,00</span><br />
<strong>Preis:</strong> <strong><a rel="nofollow" href="http://www.amazon.de/gp/offer-listing/B002RT8Y0U/?tag=de1w5-21" target="_blank">SEHEN PREIS!</a></strong></p>
<p style="text-align:right;"><strong><a rel="nofollow" href="http://www.amazon.de/Guess-Damen-Armbanduhr-Python-W13089L1/dp/B002RT8Y0U%3FSubscriptionId%3DAKIAJMYZ4A7DX4X4RQ3A%26tag%3Dde1w5-21%26linkCode%3Dxm2%26camp%3D2025%26creative%3D165953%26creativeASIN%3DB002RT8Y0U" target="_blank"><font color="#FF0000">&#60;&#60; MEHR INFOS</font></a></strong> <strong>&#124;</strong> <strong><a rel="nofollow" href="http://www.amazon.de/gp/offer-listing/B002RT8Y0U/?tag=de1w5-21" target="_blank"><font color="#FF0000">SEHEN PREIS &#62;&#62;</font></a></strong></p>
<p><!--more--><br />
<h3>Guess Damen Armbanduhr G2G Python W13089L1 Produktbeschreibungen</h3>
<p>Diese Halbspangenuhr von Guess ist mit Schlangenmuster verziert. Das Mineralglas ist kratzunempfindlich. &#8211; 2 Jahre Garantie&#8230; <strong><a rel="nofollow" href="http://www.amazon.de/Guess-Damen-Armbanduhr-Python-W13089L1/dp/B002RT8Y0U%3FSubscriptionId%3DAKIAJMYZ4A7DX4X4RQ3A%26tag%3Dde1w5-21%26linkCode%3Dxm2%26camp%3D2025%26creative%3D165953%26creativeASIN%3DB002RT8Y0U" target="_blank">Lesen Sie weiter &#62;&#62;</a></strong></p>
<h3>Guess Damen Armbanduhr G2G Python W13089L1 Produktmerkmale</h3>
<p>
<ul>
<li>Antrieb/Genauigkeit: Quarz</li>
<li>Armband-Farbe: braun</li>
<li>Display-Anzeige: Analog</li>
<li>Gehäuse Durchmesser ca. (mm): 30</li>
<li>Gehäuse-Material: Edelstahl</li>
</ul>
<h3>Guess Damen Armbanduhr G2G Python W13089L1 Kundenrezensionen</h3>
<p><strong><a rel="nofollow" href="http://www.amazon.de/product-reviews/B002RT8Y0U/ref=cm_cr_dp_all_helpful?tag=de1w5-21#&#38;ie=UTF8&#38;showViewpoints=1&#38;sortBy=bySubmissionDateDescending" target="_blank">Klicken um zu sehen Kundenrezensionen &#62;&#62;</a></strong></p>
<p style="text-align:right;"><strong><a rel="nofollow" href="http://www.amazon.de/Guess-Damen-Armbanduhr-Python-W13089L1/dp/B002RT8Y0U%3FSubscriptionId%3DAKIAJMYZ4A7DX4X4RQ3A%26tag%3Dde1w5-21%26linkCode%3Dxm2%26camp%3D2025%26creative%3D165953%26creativeASIN%3DB002RT8Y0U" target="_blank"><font color="#FF0000">&#60;&#60; MEHR INFOS</font></a></strong> <strong>&#124;</strong> <strong><a rel="nofollow" href="http://www.amazon.de/gp/offer-listing/B002RT8Y0U/?tag=de1w5-21" target="_blank"><font color="#FF0000">SEHEN PREIS &#62;&#62;</font></a></strong></p>
<h3>Choose Country</h3>
<p>The <strong>Guess Damen Armbanduhr G2G Python W13089L1</strong> possibly for sale in your local merchant&#8217;s site. Please choose your country below to get the  benefit of a shipping rates.</p>
<ul>
<li><a href="http://www.amazon.com/s/ref=nb_sb_noss?tag=uswp-20&#38;url=search-alias%3Daps&#38;field-keywords=Guess Damen Armbanduhr G2G Python W13089L1" rel="nofollow" target="_blank">United States (USA)</a></li>
<li><a href="http://www.amazon.ca/s/ref=nb_sb_noss?tag=cawp-20&#38;url=search-alias%3Daps&#38;field-keywords=Guess Damen Armbanduhr G2G Python W13089L1" rel="nofollow" target="_blank">Canada</a></li>
<li><a href="http://www.amazon.co.uk/s/ref=nb_sb_noss?tag=ukwp-21&#38;url=search-alias%3Daps&#38;field-keywords=Guess Damen Armbanduhr G2G Python W13089L1" rel="nofollow" target="_blank">United Kingdom (UK)</a></li>
<li><a href="http://www.amazon.de/s/ref=nb_sb_noss?tag=dewp-21&#38;__mk_de_DE=%C5M%C5Z%D5%D1&#38;url=search-alias%3Daps&#38;field-keywords=Guess Damen Armbanduhr G2G Python W13089L1" rel="nofollow" target="_blank">Deutschland (Germany)</a></li>
<li><a href="http://www.amazon.fr/s/ref=nb_sb_noss?tag=frwp-21&#38;__mk_fr_FR=%C5M%C5Z%D5%D1&#38;url=search-alias%3Daps&#38;field-keywords=Guess Damen Armbanduhr G2G Python W13089L1" rel="nofollow" target="_blank">France</a></li>
<li><a href="http://www.amazon.it/s/ref=nb_sb_noss?tag=itwp-21&#38;__mk_it_IT=%C5M%C5Z%D5%D1&#38;url=search-alias%3Daps&#38;field-keywords=Guess Damen Armbanduhr G2G Python W13089L1" rel="nofollow" target="_blank">Italia (Italy)</a></li>
<li><a href="http://www.amazon.es/s/ref=nb_sb_noss?tag=eswp-21&#38;__mk_es_ES=%C5M%C5Z%D5%D1&#38;url=search-alias%3Daps&#38;field-keywords=Guess Damen Armbanduhr G2G Python W13089L1" rel="nofollow" target="_blank">Espana (Spain)</a></li>
</ul>
<p>&#160;</p>
<p><em><strong>ETTAB Blog</strong> (ettabblog.wordpress.com) is a participant in the Amazon Services LLC and Amazon EU Associates Programmes designed to provide a means for sites to earn advertising fees by advertising and linking to amazon.com, amazon.ca, amazon.co.uk, amazon.de, amazon.fr, amazon.it and amazon.es. Certain content that appears on this website comes from Amazon Services LLC and/or Amazon EU. This content is provided &#8220;as is&#8221; and is subject to change or removal at any time.</em></p>
]]></content:encoded>
</item>
<item>
<title><![CDATA[Python imhead and hedit]]></title>
<link>http://penandpants.com/2012/05/19/python-imhead-and-hedit/</link>
<pubDate>Sat, 19 May 2012 23:08:01 +0000</pubDate>
<dc:creator>jiffyclub</dc:creator>
<guid>http://penandpants.com/2012/05/19/python-imhead-and-hedit/</guid>
<description><![CDATA[Working at STSCI I frequently deal with FITS files and while working on the new CALACS pipeline I of]]></description>
<content:encoded><![CDATA[<p>Working at STSCI I frequently deal with FITS files and while working on the <a href="http://www.stsci.edu/hst/acs/performance/calacs_cte/calacs_cte.html">new CALACS pipeline</a> I often needed to see and change header values to run CALACS under different regimes. This can be done with IRAF tasks <code>imhead</code> and <code>hedit</code> but I try to use IRAF as little as possible.</p>
<p><a href="http://packages.python.org/pyfits/">PyFITS</a> has convenience functions for working with FITS headers but as of version 3.0.7 it doesn&#8217;t come with any scripts that make them accessible from the command line. I expect that soon PyFITS and/or <a href="http://astropy.org">AstroPy</a> will have these scripts, but in the meantime here are the ones I use.<!--more--></p>
<h1><a href="https://gist.github.com/1394499">imhead</a></h1>
<p>This wraps <a href="http://packages.python.org/pyfits/api_docs/api_files.html#pyfits.convenience.getheader">pyfits.getheader</a> to print an image header to the terminal. There are options to specify an extension header or only certain keys to print. See the code here: <a href="https://gist.github.com/1394499">https://gist.github.com/1394499</a>.</p>
<h4>Examples</h4>
<p>Print an entire header:</p>
<pre>&#62; imhead jb1f98q1q_raw.fits</pre>
<p>Print an extension header:</p>
<pre>&#62; imhead -e 1 jb1f98q1q_raw.fits</pre>
<p>Print only certain keywords (case insensitive):</p>
<pre>&#62; imhead jb1f98q1q_raw.fits -k expstart -k expend</pre>
<p>My most common usage is to print the entire header but pipe the output to grep so I don&#8217;t have to remember the exact keyword names:</p>
<pre>&#62; imhead jb1f98q1q_flt.fits &#124; grep OBS
DATE-OBS= '2009-12-03' / UT date of start of observation (yyyy-mm-dd) 
TIME-OBS= '02:25:29' / UT time of start of observation (hh:mm:ss) 
OBSTYPE = 'IMAGING ' / observation type - imaging or spectroscopic 
OBSMODE = 'ACCUM ' / operating mode</pre>
<h1><a href="https://gist.github.com/1394486">hedit</a></h1>
<p>This wraps <a href="http://packages.python.org/pyfits/api_docs/api_files.html#pyfits.convenience.setval">pyfits.setval</a> to enable modification of headers from the command line. It supports modification of multiple files with one call, changing extension headers, and specifying the keyword type. See the code here: <a href="https://gist.github.com/1394486">https://gist.github.com/1394486</a></p>
<h4>Examples</h4>
<p>Modify a single file:</p>
<pre>&#62; hedit jb1f98q1q_raw.fits EXPSTART 58000 -i
jb1f98q1q_raw.fits[0]: EXPSTART -&#62; 58000</pre>
<p>Modify multiple files:</p>
<pre>&#62; hedit *.fits FLATCORR PERFORM</pre>
<p>Modify an extension header:</p>
<pre>&#62; hedit jb1f98q1q_raw.fits SOMEKEY SOMEVALUE --ext 1</pre>
<h1>Usage</h1>
<p>To use these yourself copy the code to a local file wherever you keep scripts and set them to executable. The files I linked above require Python 2.7 because they use the argparse module, but if you are using an older version of Python I&#8217;ve also written versions of these using optparse. Those versions are at <a href="https://gist.github.com/1401692">https://gist.github.com/1401692</a> (imhead) and <a href="https://gist.github.com/1401666">https://gist.github.com/1401666</a> (hedit). Enjoy!</p>
]]></content:encoded>
</item>
<item>
<title><![CDATA[How To Add a YouTube Video to Your Web Site]]></title>
<link>http://html5based.wordpress.com/2012/05/19/how-to-add-a-youtube-video-to-your-web-site/</link>
<pubDate>Sat, 19 May 2012 21:04:51 +0000</pubDate>
<dc:creator>tomnora</dc:creator>
<guid>http://html5based.wordpress.com/2012/05/19/how-to-add-a-youtube-video-to-your-web-site/</guid>
<description><![CDATA[How To Add a YouTube Video to Your Web Site.]]></description>
<content:encoded><![CDATA[<p><a href="http://www.htmlgoodies.com/tutorials/web_graphics/article.php/3480061/How-To-Add-a-YouTube-Video-to-Your-Web-Site.htm">How To Add a YouTube Video to Your Web Site</a>.</p>
]]></content:encoded>
</item>
<item>
<title><![CDATA[Day 2 - Going at a fast rate]]></title>
<link>http://400daysofcode.wordpress.com/2012/05/19/day-2-going-at-a-fast-rate/</link>
<pubDate>Sat, 19 May 2012 19:47:44 +0000</pubDate>
<dc:creator>Anjum Ahmed</dc:creator>
<guid>http://400daysofcode.wordpress.com/2012/05/19/day-2-going-at-a-fast-rate/</guid>
<description><![CDATA[I&#8217;m having a great start to Python, things are rather familure to C++ (Tuples = Array Tables).]]></description>
<content:encoded><![CDATA[<p>I&#8217;m having a great start to Python, things are rather familure to C++ (Tuples = Array Tables).  Hence, I&#8217;m essentially racing through all of the video tutorials (By thenewboston, it seems that everyone learned Python from him).  I think I will soon pick up skills that I havn&#8217;t learned from C++, the great thing about Python is that it is easy to pick up, and you can adapt your skills to other programming languages.</p>
<p>My younger brother came in to see what I&#8217;m doing, he expressed how he wants to learn Java so he can &#8216;make Minecraft mods.&#8217;  That&#8217;s all fine and all, but it made me realise that I should explain what I&#8217;m trying to acheive out of doing this.  I said I want to produce software in my first post, but what kind of software? All I can say is software that will make a positive impact on humanity.  You know, things like programming The Large Hadron Collider.  However, I want to be recognised for it aswell. Yesterday, Facebook was sold to the public at a market cap of 104 billion and it all started from Mark Zuckerberg creating a killer app.  Now, I don&#8217;t like Facebook however I don&#8217;t see it just as a social networking site I see it as a tool for businesses to publicise to specific audiences.  AKA, a marketing tool.  And THAT&#8217;S why it&#8217;s worth loads.  It engages people of specific interests, to consumerise or spread a message.  I want to become the next Mark Zuckerberg, except I want innovation &#8211; not marketing.</p>
<p>(Excluding the fact that Facebook is innovation IN marketing).</p>
<blockquote>
<p style="text-align:center;"><em>&#8220;Business is about two things: Marketing and innovation.&#8221;</em></p>
</blockquote>
]]></content:encoded>
</item>
<item>
<title><![CDATA[Jadii - Best Free Online PSD to HTML Converter]]></title>
<link>http://html5based.wordpress.com/2012/05/19/jadii-best-free-online-psd-to-html-converter/</link>
<pubDate>Sat, 19 May 2012 19:35:42 +0000</pubDate>
<dc:creator>tomnora</dc:creator>
<guid>http://html5based.wordpress.com/2012/05/19/jadii-best-free-online-psd-to-html-converter/</guid>
<description><![CDATA[Jadii &#8211; Best Free Online PSD to HTML Converter.]]></description>
<content:encoded><![CDATA[<p><a href="http://jadii.com/savefinish.php?id=1460727338">Jadii &#8211; Best Free Online PSD to HTML Converter</a>.</p>
]]></content:encoded>
</item>
<item>
<title><![CDATA[PythonVsPhp - PythonInfo Wiki]]></title>
<link>http://html5based.wordpress.com/2012/05/19/pythonvsphp-pythoninfo-wiki/</link>
<pubDate>Sat, 19 May 2012 19:24:14 +0000</pubDate>
<dc:creator>tomnora</dc:creator>
<guid>http://html5based.wordpress.com/2012/05/19/pythonvsphp-pythoninfo-wiki/</guid>
<description><![CDATA[PythonVsPhp &#8211; PythonInfo Wiki.]]></description>
<content:encoded><![CDATA[<p><a href="http://wiki.python.org/moin/PythonVsPhp">PythonVsPhp &#8211; PythonInfo Wiki</a>.</p>
]]></content:encoded>
</item>

</channel>
</rss>

