<?xml version="1.0" encoding="utf-8"?>
<rss xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title>This Is Not a Blog</title><link>http://peterhansen.ca/</link><description>This is Peter's technical blog.</description><atom:link href="http://peterhansen.ca/rss.xml" type="application/rss+xml" rel="self"></atom:link><lastBuildDate>Sat, 14 Sep 2013 23:42:30 GMT</lastBuildDate><generator>nikola</generator><docs>http://blogs.law.harvard.edu/tech/rss</docs><item><title>BlackBerry-Tart Preview</title><link>http://peterhansen.ca/blog/blackberry-tart-preview.html</link><description>&lt;div&gt;&lt;p&gt;As I mentioned in a
&lt;a class="reference external" href="https://twitter.com/BBPyProject/status/249237850195886080"&gt;couple of tweets&lt;/a&gt;
&lt;a class="reference external" href="https://twitter.com/BBPyProject/status/249243308646342657"&gt;earlier today&lt;/a&gt;
I've achieved some excellent initial success with a new approach.  The name's
just a silly pun... a "tart" is lighter-weight than a "pie", and BlackBerry-Tart
is (much) lighter-weight than BlackBerry-Py.&lt;/p&gt;
&lt;p&gt;The previous BlackBerry-Py stuff was focused on the
&lt;a class="reference external" href="http://peterhansen.ca/blog/pyside-on-the-playbook.html"&gt;PySide&lt;/a&gt; package and
using the
&lt;a class="reference external" href="http://peterhansen.ca/blog/bbx-python-direct-entry-point.html"&gt;Qnx/Python&lt;/a&gt;
entry point to launch the Python interpreter directly,
using wrapped Qt libraries for the GUI portions (and others) of the app.
This worked out quite well, especially on the PlayBook where we don't
have Cascades yet.  One downside was the size of the .bar files, at roughly
12MB minimum and maybe over 20MB with everything bundled.&lt;/p&gt;
&lt;p class="more"&gt;&lt;a href="http://peterhansen.ca/blog/blackberry-tart-preview.html"&gt;Read more…&lt;/a&gt;&lt;/p&gt;&lt;/div&gt;</description><category>Python</category><category>BB10</category><category>Tart</category><category>BBPyProject</category><guid>http://peterhansen.ca/blog/blackberry-tart-preview.html</guid><pubDate>Fri, 21 Sep 2012 19:14:00 GMT</pubDate></item><item><title>BlackBerry-Py Preview</title><link>http://peterhansen.ca/blog/blackberry-py-preview.html</link><description>&lt;div&gt;&lt;p&gt;Sometimes I write little because nothing's happening, other times because
so much is happening I can't stop to write about it!
Fortunately the last few weeks have been the second case.&lt;/p&gt;
&lt;p class="more"&gt;&lt;a href="http://peterhansen.ca/blog/blackberry-py-preview.html"&gt;Read more…&lt;/a&gt;&lt;/p&gt;&lt;/div&gt;</description><category>BB10</category><category>Python</category><category>Tart</category><category>Cascades</category><category>PySide</category><category>PlayBook</category><category>BBPyProject</category><guid>http://peterhansen.ca/blog/blackberry-py-preview.html</guid><pubDate>Sun, 17 Jun 2012 16:34:00 GMT</pubDate></item><item><title>PySide on the PlayBook</title><link>http://peterhansen.ca/blog/pyside-on-the-playbook.html</link><description>&lt;div&gt;&lt;p&gt;In my &lt;a class="reference external" href="http://peterhansen.ca/blog/bb10-python-command-line-interface.html"&gt;last post&lt;/a&gt; &lt;a class="footnote-reference" href="http://peterhansen.ca/blog/pyside-on-the-playbook.html#id4" id="id1"&gt;[1]&lt;/a&gt;
I talked about wanting to hook Python to the Qt port for the PlayBook.
Since then, after considering other approaches, I decided to take a closer look at
&lt;a class="reference external" href="http://www.pyside.org"&gt;PySide&lt;/a&gt; &lt;a class="footnote-reference" href="http://peterhansen.ca/blog/pyside-on-the-playbook.html#id5" id="id2"&gt;[2]&lt;/a&gt;.
My quick review of it concluded that I'd be duplicating key parts of its functionality
if I tried doing anything from scratch.&lt;/p&gt;
&lt;p&gt;With encouragement from the #BlackBerryDev IRC channel on &lt;a class="reference external" href="http://freenode.net/"&gt;Freenode&lt;/a&gt;,
&lt;a class="reference external" href="http://xitijpatel.com/"&gt;Xitij Ritesh Patel&lt;/a&gt; (who has been "BBX-Python's" biggest fan) and
I set up a &lt;a class="reference external" href="http://www.rackspace.com/cloud/cloud_hosting_products/servers/"&gt;Rackspace Cloud server&lt;/a&gt;
and got to work, sharing a single userid via
&lt;a class="reference external" href="https://help.ubuntu.com/community/Screen"&gt;screen&lt;/a&gt; for some remote
&lt;a class="reference external" href="http://en.wikipedia.org/wiki/Pair_programming"&gt;pair programming&lt;/a&gt;.&lt;/p&gt;
&lt;p class="more"&gt;&lt;a href="http://peterhansen.ca/blog/pyside-on-the-playbook.html"&gt;Read more…&lt;/a&gt;&lt;/p&gt;&lt;/div&gt;</description><category>BB10</category><category>Python</category><category>PySide</category><category>PlayBook</category><category>BBPyProject</category><guid>http://peterhansen.ca/blog/pyside-on-the-playbook.html</guid><pubDate>Thu, 24 May 2012 11:49:00 GMT</pubDate></item><item><title>BB10 Python: Command Line Interface</title><link>http://peterhansen.ca/blog/bb10-python-command-line-interface.html</link><description>&lt;div&gt;&lt;p&gt;Just a quick update since it's been months of silence (and waiting, mostly)
and things are starting to move again.&lt;/p&gt;
&lt;p&gt;Tonight I decided that it was time to take the QML "Hello World" code
I'd written a couple of weeks ago, and see what it would take
to hook that up to Python somehow.&lt;/p&gt;
&lt;p class="more"&gt;&lt;a href="http://peterhansen.ca/blog/bb10-python-command-line-interface.html"&gt;Read more…&lt;/a&gt;&lt;/p&gt;&lt;/div&gt;</description><category>BB10</category><category>Python</category><category>PlayBook</category><category>BBPyProject</category><guid>http://peterhansen.ca/blog/bb10-python-command-line-interface.html</guid><pubDate>Sat, 24 Mar 2012 00:58:00 GMT</pubDate></item><item><title>BBX Python: Self-contained Demo App</title><link>http://peterhansen.ca/blog/bbx-python-self-contained-demo-app.html</link><description>&lt;div&gt;&lt;p&gt;Earlier today I wrote about how it turns out that the Tablet OS (&lt;em&gt;2.0.0 beta or later&lt;/em&gt;) actually recognizes
Python as a &lt;a class="reference external" href="http://peterhansen.ca/blog/bbx-python-direct-entry-point.html"&gt;direct "entry point"&lt;/a&gt;
for apps, as it does for apps built using AIR or the Native SDK
(WebWorks apps use the AIR entry point at this time).&lt;/p&gt;
&lt;p&gt;With the original crude launcher, we'd developed a small set of
experiments and demonstration scripts, which you had to copy
over the network to "documents/scripts", with the
&lt;tt class="docutils literal"&gt;bbxrun.py&lt;/tt&gt; file sitting above to let you select which one to run.&lt;/p&gt;
&lt;p&gt;I've taken the whole mess and packaged it up using
the new approach, with a signed .bar file up so you can
try it out for yourself if you'd like.  (Download link is at the end of this post.)&lt;/p&gt;
&lt;p class="more"&gt;&lt;a href="http://peterhansen.ca/blog/bbx-python-self-contained-demo-app.html"&gt;Read more…&lt;/a&gt;&lt;/p&gt;&lt;/div&gt;</description><category>PlayBook</category><category>Python</category><category>BBPyProject</category><guid>http://peterhansen.ca/blog/bbx-python-self-contained-demo-app.html</guid><pubDate>Tue, 29 Nov 2011 18:12:00 GMT</pubDate></item><item><title>BBX Python: Direct Entry Point!</title><link>http://peterhansen.ca/blog/bbx-python-direct-entry-point.html</link><description>&lt;div&gt;&lt;p&gt;Okay, this is just too cool not to mention right away!&lt;/p&gt;
&lt;p&gt;Jeff Kehres from RIM has been following the progress on and off, and
pointed out today the existence of the &lt;em&gt;blackberry-pythonpackager&lt;/em&gt;
that's already included in the NDK tools.&lt;/p&gt;
&lt;p&gt;I therefore herewith present the classic tiny "hello, world" app
for the PlayBook, written in Python and with output going only to the
&lt;tt class="docutils literal"&gt;appdata/logs/log&lt;/tt&gt; file (to which stdout is redirected by default).&lt;/p&gt;
&lt;pre class="code python literal-block"&gt;
&lt;span class="k"&gt;print&lt;/span&gt; &lt;span class="s"&gt;"hello, world"&lt;/span&gt;
&lt;/pre&gt;
&lt;p class="more"&gt;&lt;a href="http://peterhansen.ca/blog/bbx-python-direct-entry-point.html"&gt;Read more…&lt;/a&gt;&lt;/p&gt;&lt;/div&gt;</description><category>PlayBook</category><category>Python</category><category>BBPyProject</category><guid>http://peterhansen.ca/blog/bbx-python-direct-entry-point.html</guid><pubDate>Tue, 29 Nov 2011 12:06:00 GMT</pubDate></item><item><title>BBX Python: FreeType2 Fonts</title><link>http://peterhansen.ca/blog/bbx-python-freetype2-fonts.html</link><description>&lt;div&gt;&lt;p&gt;This is definitely not ready for serious use, but I thought I'd share
a screenshot with the first text rendering support for
&lt;a class="reference external" href="http://microcode.ca/bbx-python/"&gt;BBX-Python&lt;/a&gt;.&lt;/p&gt;
&lt;img alt="/static/files/bbxpython_text.jpg" class="pbscreenshot" src="http://peterhansen.ca/static/files/bbxpython_text.jpg"&gt;&lt;p class="more"&gt;&lt;a href="http://peterhansen.ca/blog/bbx-python-freetype2-fonts.html"&gt;Read more…&lt;/a&gt;&lt;/p&gt;&lt;/div&gt;</description><category>PlayBook</category><category>Python</category><category>FreeType2</category><category>BBPyProject</category><guid>http://peterhansen.ca/blog/bbx-python-freetype2-fonts.html</guid><pubDate>Sun, 27 Nov 2011 00:05:00 GMT</pubDate></item><item><title>BBX Python: Quick Update #1</title><link>http://peterhansen.ca/blog/bbx-python-quick-update-1.html</link><description>&lt;div&gt;&lt;p&gt;Here are a few quick notes on what's happened with
&lt;a class="reference external" href="http://microcode.ca/bbx-python/"&gt;BBX-Python&lt;/a&gt; since the last update.&lt;/p&gt;
&lt;p class="more"&gt;&lt;a href="http://peterhansen.ca/blog/bbx-python-quick-update-1.html"&gt;Read more…&lt;/a&gt;&lt;/p&gt;&lt;/div&gt;</description><category>PlayBook</category><category>Python</category><category>BBPyProject</category><guid>http://peterhansen.ca/blog/bbx-python-quick-update-1.html</guid><pubDate>Thu, 24 Nov 2011 23:31:00 GMT</pubDate></item><item><title>BBX Python: Next Steps</title><link>http://peterhansen.ca/blog/bbx-python-next-steps.html</link><description>&lt;div&gt;&lt;p&gt;My
&lt;a class="reference external" href="http://peterhansen.ca/blog/bbx-python-proof-of-concept.html"&gt;recent&lt;/a&gt;
&lt;a class="reference external" href="http://peterhansen.ca/blog/bbx-python-progress-stage-two.html"&gt;posts&lt;/a&gt;
have talked about running &lt;a class="reference external" href="http://peterhansen.ca/blog/bbx-python-project-site.html"&gt;Python 3.2 on the PlayBook&lt;/a&gt;.
While all versions of the PlayBook OS have used Python internally &lt;a class="footnote-reference" href="http://peterhansen.ca/blog/bbx-python-next-steps.html#id6" id="id1"&gt;[1]&lt;/a&gt;, the
&lt;a class="reference external" href="https://bdsc.webapps.blackberry.com/android/beta/bbtablet20/register/"&gt;beta 2.0 OS&lt;/a&gt;
is the first to have a Python interpreter with read permissions set such that apps
can access it... for now, anyway.  (Unfortunately we have no guarantees that it will
remain accessible, but your input to RIM will help influence decisions about that.)&lt;/p&gt;
&lt;p&gt;This project is in an early stage, and could go any number of directions (perhaps
all at the same time).&lt;/p&gt;
&lt;p class="more"&gt;&lt;a href="http://peterhansen.ca/blog/bbx-python-next-steps.html"&gt;Read more…&lt;/a&gt;&lt;/p&gt;&lt;/div&gt;</description><category>PlayBook</category><category>Python</category><category>BBPyProject</category><guid>http://peterhansen.ca/blog/bbx-python-next-steps.html</guid><pubDate>Mon, 21 Nov 2011 08:42:00 GMT</pubDate></item><item><title>BBX Python: Project Site</title><link>http://peterhansen.ca/blog/bbx-python-project-site.html</link><description>&lt;div&gt;&lt;p&gt;In case you've been following the work on a native launcher for Python apps
on BBX (PlayBook), you'll be happy to I've just set up a
&lt;a class="reference external" href="http://microcode.ca/bbx-python/"&gt;BBX-Python project web page&lt;/a&gt;
with the code hosted the
&lt;a class="reference external" href="http://hg.microcode.ca/bbx-python/wiki/Home"&gt;bbx-python bitbucket repository&lt;/a&gt;.&lt;/p&gt;
&lt;p class="more"&gt;&lt;a href="http://peterhansen.ca/blog/bbx-python-project-site.html"&gt;Read more…&lt;/a&gt;&lt;/p&gt;&lt;/div&gt;</description><category>PlayBook</category><category>Python</category><category>BBPyProject</category><guid>http://peterhansen.ca/blog/bbx-python-project-site.html</guid><pubDate>Sat, 19 Nov 2011 18:19:00 GMT</pubDate></item></channel></rss>