Archive for the 'Python' Category

06/05 Python 1.1.0 for Nokia

I haven’t had the time to play with Nokia’s Python in a while – which is too bad, since it is very nice – but here’s a new incentive: Via Matt Croydon, Nokia has released a new version of Python for Series 60, dubbed PreAlpha 1.1.0.

The new Python for Series 60 -modules added in this release are:

  • sysinfo
  • camera
  • contacts
  • zipfile

The following application user interface framework -modules have been added in this release:

  • screen attributes
  • color, font and style attributes
  • direct-screen drawing

Haven’t found the drawing part yet, and the camera module won’t import, but the rest checked out ok already.

05/26 Feel the love

[22:46] –> laszlo (~laszlo@xxxxxxxxxxxx.com.jp) has joined #issho
[22:48] .sino 蝴
[22:48]
[22:48]
==> Pinyin: hú (hu2), tiē (tie1)
[22:49]
==> On-yomi: こ (ko)
[22:49]
==> Kun-yomi:
[22:49]
==> Sino-Korean: 후
[22:49]
==> Jyutping: wu
[22:49]
==> Han Viêt: hồ
[22:49] .sino 蝶
[22:49]
[22:49]
==> Pinyin: dié (die2)
[22:49]
==> On-yomi: ちょう (chō)
[22:49]
==> Kun-yomi: ちょうちょう
[22:49]
==> Sino-Korean: 접
[22:49]
==> Jyutping: dip
[22:49]
==> Han Viêt: điệp
[23:08] < -- laszlo has quit ("Leaving")

I mean, Da Man came online, at #issho, just to ask Yaspyb, my IRC bot, about two Chinese characters? Damn, I am pround!

04/15 eprints

I have implemented a partial framework for browsing and querying eprints web sites. From an IRC channel… :-)

This is part of my ongoing IRC bot project, Yaspyb (Yet Another PYthon Bot). I stumbled upon Cogprints, and managed to build rapidly a minimal framework allowing me to browse top- and second-level categories, search title lists for keywords, and even send the full-text (when available) as a text file (via pdftotext, sometimes first via epstopdf, since some articles are in .ps).

Then I realized that as an open-source project, there had to be more users of eprints. Indeed there’s a bunch out there. I picked a couple of them, and lo and behold, after some tweaking, I can search, from IRC a bunch of web sites, for academic publications. Yaspyb builds a couple of small indexes at startup, so that it knows where to find the top-level and secondary subjects. Most of the data gathered from user queries are cached, so the impact of the web sites is low – unlike a certain experiment of mine involving viêtnamese and chinese characters, ahem…

Of course, browsing for journals in an IRC channel is not the most convenient way, but my bot is a very convenient platform to integrate web-scraping/indexing/encoding-conversion code, and I suppose I could rewrite many of its functions into a desktop application – and a faster one too! I love Python, but fast it isn’t…