<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
<?xml-stylesheet type="text/css" href="http://hawking.nonlogic.org/styles/feed.css"?>
<title type="html">python</title>
<link rel="alternate" type="text/html" href="http://hawking.nonlogic.org" />
<link rel="self" type="application/atom+xml" href="http://hawking.nonlogic.org/archives/python/index-atom.xml" />
<updated>2008-06-30T22:43:18+03:00</updated>
<author>
<name>hawking</name>
<uri>http://hawking.nonlogic.org</uri>
</author>
<id>http://hawking.nonlogic.org/</id>
<generator uri="http://nanoblogger.sourceforge.net" version="3.3">NanoBlogger</generator>
<entry>
<title type="html">paludis-utils</title>
<author>
<name>hawking</name>
</author>
<link rel="alternate" type="text/html" href="http://hawking.nonlogic.org/archives/2008/06/26/paludis-utils/" />
<id>http://hawking.nonlogic.org/archives/2008/06/26/paludis-utils/</id>
<published>2008-06-26T18:00:57+03:00</published>
<updated>2008-06-26T18:00:57+03:00</updated>
<category term="paludis" />
<category term="english" />
<category term="gentoo" />
<category term="python" />
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<![CDATA[<a href="http://github.com/hawking/paludis-utils/tree/master">paludis-utils</a>
is a paludis replacement for
<a href="http://packages.gentoo.org/package/app-portage/portage-utils">portage-utils</a>.
It uses paludis <a href="http://paludis.pioto.org//api/python/">python bindings</a>.
Currently there are four applets available:
<pre>
alip@trippin&gt; p
Usage: p &lt;applet&gt; &lt;args&gt;
Invoke a paludis-utils applet

Currently defined applets:
p &lt;applet&gt; &lt;args&gt;    : Virtual applet
patom [options] &lt;pkgname&gt;  : Split atom strings
pfile [options] &lt;filename&gt; : List packages owning files
plist [options] &lt;pkgname&gt;  : List contents of packages matching requirements
psize [options] &lt;pkgname&gt;  : Calculate size of installed packages
</pre>

Contributions are welcome :-)]]>
</div>
</content>
</entry>
<entry>
<title type="html">Latest news from Gentoo/Python</title>
<author>
<name>hawking</name>
</author>
<link rel="alternate" type="text/html" href="http://hawking.nonlogic.org/archives/2008/04/19/latest_news_from_gentoopython/" />
<id>http://hawking.nonlogic.org/archives/2008/04/19/latest_news_from_gentoopython/</id>
<published>2008-04-19T02:01:28+03:00</published>
<updated>2008-04-19T02:01:28+03:00</updated>
<category term="english" />
<category term="gentoo" />
<category term="python" />
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<![CDATA[I've done some major work under dev-lang/python today. I've backported many
patches from upstream. Here is a list of issues fixed:<br />
<ul>
        <li> <b>Buffer overflow in zlib extension</b>, <a
                href="http://www.cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2008-1721">CVE-2008-1721</a>.
                <br />Gentoo bug: <a
                        href="https://bugs.gentoo.org/show_bug.cgi?id=217221">217221</a>
                <br />Upstream bug: <a
                        href="http://bugs.python.org/issue2586">2586</a>
                <br />Upstream fix: <a
                        href="http://svn.python.org/view?rev=62235&view=rev">r62235</a>
                <br />Fixed Gentoo/Python versions: <strong>2.3.6-r5</strong>, <strong>2.4.4-r10</strong>, <strong>2.5.2-r1</strong>
        <li> <b>PyString_FromStringAndSize() unsafe</b>
                <br />Upstream bug: <a
                        href="http://bugs.python.org/issue2587">2587</a>
                <br />Upstream fix: <a
                        href="http://svn.python.org/view?rev=62262&view=rev">r62262</a>
                <br />Fixed Gentoo/Python versions: <strong>2.3.6-r5</strong>, <strong>2.4.4-r10</strong>, <strong>2.5.2-r1</strong>
        <li> <b>distutils doesn't respect CXXFLAGS</b>
                <br />Gentoo bug: <a
                        href="https://bugs.gentoo.org/show_bug.cgi?id=145206">145206</a>
                <br />Fixed Gentoo/Python versions: <strong>2.4.4-r10</strong>, <strong>2.5.2-r1</strong>
                <br />Thanks to <em>Mark Peloquin</em> for the patch.
        <li> <b>Thread unsafe file objects</b>
                <br />Upstream bugs: <a
                        href="http://bugs.python.org/issue595601">595601</a>,
                        <a href="http://bugs.python.org/issue815646">815646</a>
                <br />Upstream fix: <a
                        href="http://svn.python.org/view?rev=62195&view=rev">r62195</a>
                <br />Fixed Gentoo/Python versions: <strong>2.5.2-r1</strong>
        <li> <b>a bunch of infinite C recursions</b>
                <br />Upstream bug: <a
                        href="http://bugs.python.org/issue1202533">1202533</a>
                <br />Upstream fix: <a
                        href="http://svn.python.org/view?rev=58032&view=rev">r58032</a>
                <br />Fixed Gentoo/Python versions: <strong>2.5.2-r1</strong>
</ul>

<p>
I've also added <em>wininst</em> USE flag fixing bug <a
        href="https://bugs.gentoo.org/show_bug.cgi?id=198021">198021</a> and
converted <em>nothreads</em> and <em>nocxx</em> USE flags to <em>threads</em>
and <em>cxx</em> adding USE defaults. The only issue left is internal build of libffi - bug <a
        href="https://bugs.gentoo.org/show_bug.cgi?id=209673">209673</a> - which
should wait until some issues about libffi is clarified.
</p>
<p>
If you're using a python extension written in C++ like wxpython, reemerge it
to make use of your CXXFLAGS.
</p>
<p>
This is all for now. Have a nice weekend :-)
</p>]]>
</div>
</content>
</entry>
<entry>
<title type="html">python developers guide 2</title>
<author>
<name>hawking</name>
</author>
<link rel="alternate" type="text/html" href="http://hawking.nonlogic.org/archives/2007/07/11/python_developers_guide_2/" />
<id>http://hawking.nonlogic.org/archives/2007/07/11/python_developers_guide_2/</id>
<published>2007-07-11T05:07:47+03:00</published>
<updated>2007-07-11T05:07:47+03:00</updated>
<category term="english" />
<category term="gentoo" />
<category term="python" />
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<![CDATA[As I said before I've been working on python developers guide. I added some
useful information about usual problems like byte-compiling of .py files,
handling of use_setuptools and _requires and committed the new version.
<br /><br />
Thanks nightmorph for correcting my crappy grammar and guide-xml ;)]]>
</div>
</content>
</entry>
<entry>
<title type="html">python developers guide</title>
<author>
<name>hawking</name>
</author>
<link rel="alternate" type="text/html" href="http://hawking.nonlogic.org/archives/2007/06/30/python_developers_guide/" />
<id>http://hawking.nonlogic.org/archives/2007/06/30/python_developers_guide/</id>
<published>2007-06-30T21:10:29+03:00</published>
<updated>2007-06-30T21:10:29+03:00</updated>
<category term="english" />
<category term="gentoo" />
<category term="python" />
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<![CDATA[<p><a href="http://www.gentoo.org/proj/en/Python/developersguide.xml">Gentoo Python Developers Guide</a>
is rather superficial thus I decided to improve it which can be helpful for
everyone writing ebuilds for python packages. The initial version is 
<a href="http://dev.gentoo.org/~hawking/python/developersguide.xml">here</a>.
It's far from perfect now but well it's a start :).]]>
</div>
</content>
</entry>
<entry>
<title type="html">pyfics initial release</title>
<author>
<name>hawking</name>
</author>
<link rel="alternate" type="text/html" href="http://hawking.nonlogic.org/archives/2006/12/20/pyfics_initial_release/" />
<id>http://hawking.nonlogic.org/archives/2006/12/20/pyfics_initial_release/</id>
<published>2006-12-20T18:48:49+03:00</published>
<updated>2006-12-20T18:48:49+03:00</updated>
<category term="english" />
<category term="python" />
<category term="chess" />
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<![CDATA[<p>Today I released pyfics-0.01_alpha. pyfics is a python library to communicate
to FICS, which hopefully will make it easy to write bots and interfaces with
python. It's the initial release and still needs some work. The project page
is <a href="http://pyfics.sourceforge.net/">here</a>.</p>]]>
</div>
</content>
</entry>
<entry>
<title type="html">clamav procmail filter</title>
<author>
<name>hawking</name>
</author>
<link rel="alternate" type="text/html" href="http://hawking.nonlogic.org/archives/2006/09/16/clamav_procmail_filter/" />
<id>http://hawking.nonlogic.org/archives/2006/09/16/clamav_procmail_filter/</id>
<published>2006-09-16T22:13:06+03:00</published>
<updated>2006-09-16T22:13:06+03:00</updated>
<category term="english" />
<category term="python" />
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<![CDATA[<p>I wrote a simple filter for procmail to scan mails with clamav.By default
clamd has a socket file under <strong>/var/run/clamav/clamd.sock</strong> and
this filter connects to it and gets the mail scanned.It adds a X-CLAMAV header
to the e-mail to inform the reader. <a
href="stuff/python/clamdfilter.py">Here</a> is the script.</p>]]>
</div>
</content>
</entry>
<entry>
<title type="html">randomize me, randomize me my friend...</title>
<author>
<name>hawking</name>
</author>
<link rel="alternate" type="text/html" href="http://hawking.nonlogic.org/archives/2006/09/09/randomize_me_randomize_me_my_friend/" />
<id>http://hawking.nonlogic.org/archives/2006/09/09/randomize_me_randomize_me_my_friend/</id>
<published>2006-09-09T20:40:26+03:00</published>
<updated>2006-09-09T20:40:26+03:00</updated>
<category term="english" />
<category term="python" />
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<![CDATA[<p>Life sucks python is the only way out...
<a href="http://hawking.nonlogic.org//stuff/python/random.py">Here</a> is
another script I wrote today. It gets random numbers,bytes,sequences from
<a href="http://random.org/">random.org</a>.
</p>]]>
</div>
</content>
</entry>
<entry>
<title type="html">nopaste.py</title>
<author>
<name>hawking</name>
</author>
<link rel="alternate" type="text/html" href="http://hawking.nonlogic.org/archives/2006/08/31/nopaste_py/" />
<id>http://hawking.nonlogic.org/archives/2006/08/31/nopaste_py/</id>
<published>2006-08-31T01:58:26+03:00</published>
<updated>2006-08-31T01:58:26+03:00</updated>
<category term="english" />
<category term="gentoo" />
<category term="python" />
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<![CDATA[<p>Today I rewrote <a
href="http://packages.gentoo.org/package/app-text/nopaste">app-text/nopaste</a>
with python. It's a simple command line interface to rafb.net/paste. I just don't
want to install ruby just for that small script. In addition to that python is a
more appropriate language than ruby. ;)</p>
<p>Simple usage:</p>
<pre>
hawking@localhost ~/python/nopaste $ ./nopaste.py -h
nopaste script for rafb.net/paste
usage : nopaste.py [options]
Options:
    -h,--help        You're looking at it
    -l,--language    Set language ( defaults to 'Plain Text')
    -n,--nick        nickname
    -d,--desc        description
    -v,--verbose     verbose mode
    -c,--nocolor     supress coloring of output
    -x               Nopaste from X selection instead of stdin
                     (using xclip or xcut)
</pre>
<p>You can specify a http proxy by setting <em>http_proxy</em> environment variable.</p>
<pre>
hawking@localhost ~/python/nopaste $ export http_proxy=http://127.0.0.1:8118
hawking@localhost ~/python/nopaste $ cat test.py | ./nopaste.py -l Python -n
hawking -d "a nice python script" -v
Verbose mode
Language :   Python
Nick     :   hawking
Description :   a nice python script
Setting headers
Encoding parameters
Sending the request
Reading...
http://www.rafb.net/paste/results/rzH00g32.html
hawking@localhost ~/python/nopaste $
</pre>
<p>You can get the script <a href="stuff/python/nopaste.py">here</a>.</p>]]>
</div>
</content>
</entry>
</feed>
