<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments for Tech Scribblings</title>
	<atom:link href="http://tech.pedersen-live.com/comments/feed/" rel="self" type="application/rss+xml" />
	<link>http://tech.pedersen-live.com</link>
	<description></description>
	<lastBuildDate>Mon, 09 Jan 2012 16:42:56 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.5</generator>
	<item>
		<title>Comment on Trusting All Certificates In Jython by Brandon</title>
		<link>http://tech.pedersen-live.com/2010/10/trusting-all-certificates-in-jython/comment-page-1/#comment-17</link>
		<dc:creator>Brandon</dc:creator>
		<pubDate>Mon, 09 Jan 2012 16:42:56 +0000</pubDate>
		<guid isPermaLink="false">http://tech.pedersen-live.com/?p=69#comment-17</guid>
		<description>Strange, I don&#039;t know what is going on there. Using Jython 2.5.2 and Java 1.6:

&lt;code&gt;xxx@xxx:~$ jython
Jython 2.5.2 (Release_2_5_2:7206, Mar 2 2011, 23:12:06) 
[Java HotSpot(TM) 64-Bit Server VM (Sun Microsystems Inc.)] on java1.6.0_26
Type &quot;help&quot;, &quot;copyright&quot;, &quot;credits&quot; or &quot;license&quot; for more information.
&gt;&gt;&gt; from javax.net.ssl import SSLContext
&gt;&gt;&gt; SSLContext.getDefault()
javax.net.ssl.SSLContext@21b38cdc
&gt;&gt;&gt; &lt;/code&gt;</description>
		<content:encoded><![CDATA[<p>Strange, I don&#8217;t know what is going on there. Using Jython 2.5.2 and Java 1.6:</p>
<p><code>xxx@xxx:~$ jython<br />
Jython 2.5.2 (Release_2_5_2:7206, Mar 2 2011, 23:12:06)<br />
[Java HotSpot(TM) 64-Bit Server VM (Sun Microsystems Inc.)] on java1.6.0_26<br />
Type "help", "copyright", "credits" or "license" for more information.<br />
&gt;&gt;&gt; from javax.net.ssl import SSLContext<br />
&gt;&gt;&gt; SSLContext.getDefault()<br />
javax.net.ssl.SSLContext@21b38cdc<br />
&gt;&gt;&gt; </code></p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Trusting All Certificates In Jython by ked</title>
		<link>http://tech.pedersen-live.com/2010/10/trusting-all-certificates-in-jython/comment-page-1/#comment-16</link>
		<dc:creator>ked</dc:creator>
		<pubDate>Mon, 09 Jan 2012 09:53:11 +0000</pubDate>
		<guid isPermaLink="false">http://tech.pedersen-live.com/?p=69#comment-16</guid>
		<description>I&#039;d like to use your code but when I try to use SSLContext.getDefault(), I get an AttributeError : type object &#039;javax.net.ssl.SSLContext&#039; has no attribute &#039;getDefault&#039;. Do you know how to deal with this ?

(I use Jython 2.5.2)</description>
		<content:encoded><![CDATA[<p>I&#8217;d like to use your code but when I try to use SSLContext.getDefault(), I get an AttributeError : type object &#8216;javax.net.ssl.SSLContext&#8217; has no attribute &#8216;getDefault&#8217;. Do you know how to deal with this ?</p>
<p>(I use Jython 2.5.2)</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Trusting All Certificates In Jython by Terence Honles</title>
		<link>http://tech.pedersen-live.com/2010/10/trusting-all-certificates-in-jython/comment-page-1/#comment-14</link>
		<dc:creator>Terence Honles</dc:creator>
		<pubDate>Wed, 08 Jun 2011 23:51:06 +0000</pubDate>
		<guid isPermaLink="false">http://tech.pedersen-live.com/?p=69#comment-14</guid>
		<description>Thanks for the jython version, like you I didn&#039;t really want to have a java file sitting around just because I had to.

I would recommend making your decorator conditionally wrap the function it is decorating rather than unconditionally:
def trust_all_certs(f):
 try: from javax.net.ssl import SSLContext
 except ImportError: return f

 def w(*args, **kargs):
   ...stuff in the &quot;if &#039;java&#039; in sys.platform&quot; block...

In addition *I* would personally use the try except ImportError rather than using the &quot;if &#039;java&#039; in sys.platform&quot; because if it&#039;s able to import the modules I would assume it is the correct platform (and I feel it&#039;s more pythonic)</description>
		<content:encoded><![CDATA[<p>Thanks for the jython version, like you I didn&#8217;t really want to have a java file sitting around just because I had to.</p>
<p>I would recommend making your decorator conditionally wrap the function it is decorating rather than unconditionally:<br />
def trust_all_certs(f):<br />
 try: from javax.net.ssl import SSLContext<br />
 except ImportError: return f</p>
<p> def w(*args, **kargs):<br />
   &#8230;stuff in the &#8220;if &#8216;java&#8217; in sys.platform&#8221; block&#8230;</p>
<p>In addition *I* would personally use the try except ImportError rather than using the &#8220;if &#8216;java&#8217; in sys.platform&#8221; because if it&#8217;s able to import the modules I would assume it is the correct platform (and I feel it&#8217;s more pythonic)</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Trusting All Certificates In Jython by Alan Kennedy</title>
		<link>http://tech.pedersen-live.com/2010/10/trusting-all-certificates-in-jython/comment-page-1/#comment-10</link>
		<dc:creator>Alan Kennedy</dc:creator>
		<pubDate>Fri, 08 Oct 2010 20:59:42 +0000</pubDate>
		<guid isPermaLink="false">http://tech.pedersen-live.com/?p=69#comment-10</guid>
		<description>Hi Brandon,

If you don&#039;t mind, I&#039;ll just include a link to my original article about this, in case there any problems with the jython.

http://jython.xhaus.com/installing-an-all-trusting-security-provider-on-java-and-jython/

All the best,

Alan.</description>
		<content:encoded><![CDATA[<p>Hi Brandon,</p>
<p>If you don&#8217;t mind, I&#8217;ll just include a link to my original article about this, in case there any problems with the jython.</p>
<p><a href="http://jython.xhaus.com/installing-an-all-trusting-security-provider-on-java-and-jython/" rel="nofollow">http://jython.xhaus.com/installing-an-all-trusting-security-provider-on-java-and-jython/</a></p>
<p>All the best,</p>
<p>Alan.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Numpad not working in Ubuntu by Fernando P. García</title>
		<link>http://tech.pedersen-live.com/2008/12/numpad-not-working-in-ubuntu/comment-page-1/#comment-8</link>
		<dc:creator>Fernando P. García</dc:creator>
		<pubDate>Tue, 15 Jun 2010 17:30:00 +0000</pubDate>
		<guid isPermaLink="false">http://tech.pedersen-live.com/?p=8#comment-8</guid>
		<description>Updated for Lucid Lynx: System -&gt; Preferences -&gt; Assistive Technologies, click on Keyboard Accessibility, select the Mouse Keys tab and disable the “Pointer can be controlled using the keypad” option</description>
		<content:encoded><![CDATA[<p>Updated for Lucid Lynx: System -&gt; Preferences -&gt; Assistive Technologies, click on Keyboard Accessibility, select the Mouse Keys tab and disable the “Pointer can be controlled using the keypad” option</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Akregator starts with error message &#8216;Unable to load storage backend plugin &#8220;metakit&#8221;. No feeds are archived&#8217; by Marcos Dione</title>
		<link>http://tech.pedersen-live.com/2009/03/akregator-starts-with-error-message-unable-to-load-storage-backend-plugin-metakit-no-feeds-are-archived/comment-page-1/#comment-7</link>
		<dc:creator>Marcos Dione</dc:creator>
		<pubDate>Tue, 02 Feb 2010 22:39:13 +0000</pubDate>
		<guid isPermaLink="false">http://tech.pedersen-live.com/?p=20#comment-7</guid>
		<description>that&#039;s kbuildsycoca4. I correct it just for the copy&amp;paste lazy bastards like me out there :)</description>
		<content:encoded><![CDATA[<p>that&#8217;s kbuildsycoca4. I correct it just for the copy&amp;paste lazy bastards like me out there <img src='http://tech.pedersen-live.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Akregator starts with error message &#8216;Unable to load storage backend plugin &#8220;metakit&#8221;. No feeds are archived&#8217; by erdos</title>
		<link>http://tech.pedersen-live.com/2009/03/akregator-starts-with-error-message-unable-to-load-storage-backend-plugin-metakit-no-feeds-are-archived/comment-page-1/#comment-6</link>
		<dc:creator>erdos</dc:creator>
		<pubDate>Sat, 17 Oct 2009 16:08:08 +0000</pubDate>
		<guid isPermaLink="false">http://tech.pedersen-live.com/?p=20#comment-6</guid>
		<description>Thanks. That worked.</description>
		<content:encoded><![CDATA[<p>Thanks. That worked.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Twitter Me This by Brandon</title>
		<link>http://tech.pedersen-live.com/2008/12/twitter-me-this/comment-page-1/#comment-2</link>
		<dc:creator>Brandon</dc:creator>
		<pubDate>Wed, 31 Dec 2008 01:01:33 +0000</pubDate>
		<guid isPermaLink="false">http://tech.pedersen-live.com/?p=10#comment-2</guid>
		<description>Looks like there were a ton of plugins for wordpress to display posts on Twitter, I am using just a widget for the sidebar called Twitter Widget Pro, it was free despite the Pro tagline...it works great but the dates are a little off, says I posted things like 40 years ago...guess I can say I was the very first Twitterer!</description>
		<content:encoded><![CDATA[<p>Looks like there were a ton of plugins for wordpress to display posts on Twitter, I am using just a widget for the sidebar called Twitter Widget Pro, it was free despite the Pro tagline&#8230;it works great but the dates are a little off, says I posted things like 40 years ago&#8230;guess I can say I was the very first Twitterer!</p>
]]></content:encoded>
	</item>
</channel>
</rss>

