Archive for June, 2008

PyQt4 Tutorial

Thursday, June 26th, 2008

PyQt4 is the wrapper for Trolltech’s Qt4 libraries. On the riverbank site you can find the sources and the windows binary; ubuntu seems to ship the binary on the official release, simply look for pyqt in synaptic.

Here is a good PyQt4 tutorial: zetcode

And here another good in Italian: un tutorial facile facile

Anybody knows about the binary on mac? I’ve found something on finkproject: anybody tested it?

Regards,
Rob.

Scripting Second Messenger

Friday, June 13th, 2008

I’m extending the Second Messenger by adding scripting capabilities.

I already have embedded a python engine in it and I’m working on a wrapper of the client object (I can’t give you all the power, sorry ;-).

I’m currently struggling with architectural issues and I hope to have a public version soon…

…maybe so soon that will have at first the ability to automatically answer to ScriptDialog messages. What for? Many camping chairs prompts the user with questions and possible answers: why not letting an automatic script to respond instead? ;-)

The next step could be to monitor group messages and automatically ban spamming people from your group.

Nice, huh?

Xmlrpclib with cookie aware transport

Friday, June 13th, 2008

Using Python made me fall in love with XmlRPC. The python xmlrpclib is great and I’m using this protocol with C# and PHP too.

The problem
Any call to an xmlrpc server is stateless, so that you are forced to send state information back and forth through additional parameters.

The solution
So that i dediced to write a transport object that keeps track of the session id cookies sent by the server.

Here’s the code:

(more…)


 
Roberto Rocco Angeloni is proudly powered by WordPress
Entries (RSS) and Comments (RSS).

Fatal error: Cannot access protected property ObjectMgr::$_verbose in /web/htdocs/www.roccoangeloni.it/home/wp/wp-content/themes/rra/include.php on line 22