Feeds:
Posts
Comments

Archive for the ‘Python’ Category

A few days ago, Daniel Greenfeld wrote a blog post on the “Tools we used to write Two Scoops of Django“. Mentioning the words “tools” and “Django” in a single phrase is sure to get my attention, and the post did not disappoint. What fascinated me most, however, was not the “tools” part nor the “Django” part. The story is a good example to explain which difficulties show up in the process of creating and managing good content – even when it is “just” the writing of a book and its publication in multiple formats.

If you read the story, you will notice that

  • the authors started using familiar tools, like Python’s reStructuredText and Google Documents;
  • they then noticed that those tools did not measure up to their requirements, and had to switch again and again – until they ended up with LaTeX, allowing them to clearly structure the content and only then apply the formatting and layout for a paper version;
  • e-book formats are a world on their own, and it’s a complex world with many pitfalls;
  • technical content is never finished, so it requires forethought and planning to keep up with reality during the lifetime of your document.

All this about a relatively simple thing as a book, and by that I mean no disrespect to the authors. But assembling and maintaining say a website with hundreds of pages will be even harder, since such an endeavour add factors such as user management, target audiences, multiple authors, possibly multiple languages, categorization of pages, an editorial policy, and more – and that’s not mentioning a series of technical aspects. Enterprise content management ups the ante again, sometimes by several factors. So, yes, Content Management can be hard, very hard, to do right.

* * *

And what about the book, you ask? Well, if I’m ever going to do anything serious with Django I’ll need a copy of “Two Scoops of Django“. The sample chapter was a bit over my head, since I’m an absolute Django beginner, but the patterns and tips seemed logical and well explained. The writing is clear and sensible. The only thing I did not like is the fact that code samples are sometimes being split over two pages. That should not happen except when the code is longer than what fits on a single page, and even then I would prefer the code to be rewritten and packaged in smaller blocks. But all in all, this looks like a worthwhile book.

Read Full Post »

A month ago, I mentioned the appeal by the Python Software Foundation to help them defend the name “Python”. The good news is that both sides came to an amicable agreement: PO Box Hosting Limited (trading as Veber) will rebrand its services later under a yet to be determined name.

In the words of the Chairman of the PSF: “To Veber’s credit, they were willing to recognize the Python brand without protracted negotiations. We are grateful for Veber’s support and we wish them luck in their business“. I agree: it’s good to see that a dispute like this can be resolved amicably in just a few weeks, without having to go to court.

Read Full Post »

It’s all here: “Python trademark at risk in Europe: We need your help!“. I have no materials to submit, but I can tell you that my first mention of Python (actually, it was JPython) on this very blog dates back to November 2000

Read Full Post »

WikiNotes is a wiki-based note-sharing platform created to facilitate student collaboration (beware: the site can be slow!). Basically it’s a system that allows students (and others ;-) to publish course notes, questions from examinations, study notes, etc. The current version of WikiNotes is based on the classic MediaWiki-software that also powers the WikiPedia. But a small team of student developers is rewriting the system from scratch. A beta version can be explored at http://beta.wikinotes.ca/ – and its source code is published under the GPLv3 on GitHub.

Why do I mention this project? First of all: I am a Wiki fan ;-)

Secondly, it’s a good example of what a Wiki can be used for: the creation of a public body of knowledge that is fed and maintained by anyone who wants to help. Of course, not all courses are equally well documented, but since a Wiki can be edited anytime that might change rapidly (or never ;-). Not everyone was (is) convinced of the value of such an initiative – users of WikiNotes should be aware of possible copyright issues, to name the most frequently mentioned counter-argument –  but I have found several pleas for a more nuanced approach that can benefit both the students and the University. Check out this editorial from the McGill Tribune for suggestions on how to govern the WikiNotes site.

Thirdly, the new version is being written in Python and created on top of the Django framework. I find it stimulating to see the progress in the development of this application, from a developers prespective.

Last but not least, this Wiki started out as a student initiative – there are clearly smart students at McGill!

At the same time, this project illustrates an essential aspect of any content management project. Before choosing any CMS, or writing your own, you have to analyse your requirements. You have to know what you will be dealing with: what type of “content” (text, image, video, …) about which subjects will you be handling; what metadata do you need for each content type; who is going to handle that content, and what will they be doing exactly; who is the target audience for the content, and what are their expectations; etc. Without clear answers to these and more questions you will never be able to set up a suitable CMS, let alone claim a succesful implementation.

PS. This is why I fear that the brand new Brussels Wiki (‘Wikibru, the wiki of the City of Brussels‘) will be a failure: a wiki needs more justification than the possibility “for people to add something to the site”…

Read Full Post »

Can a $35 computer persuade kids to put down their smartphones and try their hands at programming?” That’s the question Simson Garfinkel wants to answer in his review of the Raspberry Pi. So this is not a technical review, with benchmarks and comparisons with similar hardware. Basically, it’s just about a father who wants to know whether a small but complete computer can keep his kids interested and get them tinkering with software (and possibly with  the hardware as well). His conclusion: the current software version needs an upgrade to be truly compelling for such a young audience.

I was reading this review while sitting in my “office”, which also houses the remote display panel of our solar panel installation on the roof. That explains why I suddenly started thinking about using a Pi to monitor the energy production of our solar panels. The Pi has low power consumption (much less, I hope, that the old Pentium PC that lingers in a dark corner). It has a USB port to connect to the SMA Sunny Beam display. It runs Linux, and thus it should be able to gets the numbers every hour and drop them into a database, from which they can be read in a web app or web service. There’s a lot of talk about the Python programming language in the Pi community, and I have a Python script to read my Sunny Beam… When I write it down like this, it should be dead easy, right?

Read Full Post »

I should have found this sooner, but never mind, now it’s on my todo list: “pyvideo.org. Python related video indexed so you can find it“.

Read Full Post »

If you recognised the phrase I used as a title for this post, then that means that you are getting old… or that you are a reader of a Python blog called “Let’s discuss the matter further“. I mention this blog post not because I am/was a fan of the game in the 1980′s, but because Brandon Rhodes marvelously explains how a rewrite of an older program can throw a few surprises at you on one hand and teach you something new at the same time ;-)

Read Full Post »

Pedro Kroger has created a Python Quick Reference Card that looks quite interesting, at least when (note: when, not if) I start using Python for more than just a few very small hacks for Wikidpad or Trac

Read Full Post »

From the SitePoint tribune 555, in an interview with the founder and author of Twit Cleaner: “The initial version I wrote using 5 million text files & C#. I’d come from a pretty deep artificial intelligence/finance background, so C# was what I was used to. Then I moved to PHP – which got a public site up quickly, but was otherwise horrible. Now, finally, it’s all python, with a database backend…”

Twit Cleaner could be a useful tool (I don’t follow enough people for TC make a substantial difference to what I can do all by myself), regardless of the technology and development tools used, of course ;-)

Read Full Post »

It’s just another list of Python Web Frameworks, of course – but it’s recent enough to contain a few names that I hadn’t heard until now (not too surprising, since I’m not really following the Python universe on a daily basis). So at least that post will help me waste more time that I probably don’t have ;-)

I don’t have any significant experience with Django, other than a hour of mucking about with it while trying to grok Google App Engine development, so I will be reading the Linux Journal article “Introducing Three Python Web Frameworks” with interest as well. This years Pycon Atlanta also has lots of web framework related presentations… and I suppose there will be new videos on the subject in YouTube as well: my last search on that subject dates from last summer :-(

And if that isn’t enough, there’s always http://wiki.python.org/moin/WebFrameworks

I don’t think I need more updating than this!

Read Full Post »

I had planned to start reading up on Python (again!) this year, but somehow I never found the time to do so. With a smartphone in the pocket there are many more places to “pick up” a book, of course, so I’m happy to report that I  found an ‘epub’-version of the official Python Tutorial at Paolo Bernardi’s Weblog. It may not be perfect, but it looks good enough to me.

There are more Python ‘epub’s to be found in “marxy’s musings on technology” – with QR codes that work like a charm on my Android machine, using the ZXing-based Barcode Scanner. That will save space in the car when we pack for our holidays!

Read Full Post »

There’s no Java bashing in this story, just someone being practical: Java versus Python. And if you really must use Java for your web development, have a look at the comments of that story and read about Mojasef

Read Full Post »

Wiki Notebook

I have used WikidPad at work to take quick notes of all kinds of things: useful URLs both on our intranet and on the Internet, preliminary project documentation, todo’s, and more. So why not use it at home, on my Mac?

Well, there’s no reason not to – but things aren’t as simple as they could be: first, you have to make sure that you have the right environment installed (Python 2.6 and the corresponding wxPython library). There are quite a few pages on the Internet that tell you to download and install a *.dmg file for the Mac; however, there are currently no *.dmg files to be seen in the download library on SourceForge!

Luckily, downloading and unzipping a source distribution is sufficient – as long as you know how to start a Python script to launch the application (in short: start a Terminal session, cd to the WikidPad source directory, and type python WikidPad.py).

There’s probably a reason for not having a Mac distro of this nice application, but I haven’t found a good explanation so far. I did note that the home page of the application says “wiki notebook/outliner for windows“… Come on, guys, py2app is perfect if you want to “Create standalone Mac OS X applications with Python“, and it does the same for Windows, of course. So what are you waiting for?

Read Full Post »

It’s unfortunate that Python on my Nokia E63 has only reached version 2.2, now that the rest of the world is speaking 2.5/2.6 or even 3.x. As far as I can tell, version 1.4.5 of the more or less official PyS60 package contains Python 2.2.2.

The bright side: the existing Python implementation for S60 3rd Ed. is well integrated into the hardware of the Nokia phones, thanks to the efforts of Nokia itself. Building applicationsthat do something useful shouldn’t be too hard, and perhaps Jurgen Scheible’s Python for the Series 60 Tutorial can be of help. I haven’t read it through, so I won’t comment on its qualities, but at least it has the merit to exist – with lots of sample code, available on the website.

Read Full Post »

You can check out a number of PyCon 2010 sessions on blip.tv, if – like me – you had wanted to be there but couldn’t. And by the way: there are more interesting “shows” to see on blip.tv – I won’t forget that presentation from Nicholas Negroponte  on the OLPC project anytime soon

Read Full Post »

Older Posts »

Follow

Get every new post delivered to your Inbox.

Join 60 other followers