Posted in May 27, 2011 ¬ 05:31h.cpf_Comments Off
As with everything in Boost::Python, it might not always be obvious how to best extract certain types to C++ One thing to remember is that most (if not all) C++ types are supported by boost::python::extract So, to extract a std::string object from python, it’s best to use the extract function again: std::string tmp; tmp = [...]
Read the rest of this entry »
Posted in February 25, 2011 ¬ 09:16h.cpf_Comments Off
Intro I have made a script to convert a flash shape to svg (the easy way). I hope it converts all flash shapes, because the shape I needed it for only contained “moveTo“, “splineTo” and “lineTo” functions. Requirement This script requires a dump from swftools‘ swfdump: swfdump -D test.swf > test.dump The script # Copyright [...]
Read the rest of this entry »
Posted in December 14, 2010 ¬ 18:20h.cpf_Comments Off
When working with boost::python, it’s quickly noticeable the lack of documentation involved in integrating Python in a C++ application, however using boost::python is a lot easier then using the normal Python/C API so it’s recommended to whomever considers using Python in a C++ application. Tricky The downside of it is the lack of examples, and [...]
Read the rest of this entry »
Posted in February 10, 2010 ¬ 14:32h.cpf_
My internship: Global search @ ugent.be Lagging a bit behind, I’m going to describe my internship. In a nutshell, my internship is about search, a whole lot of search. Since the portal site of the university at Ghent (http://www.ugent.be) is moving to and running Plone as its main CMS and a whole lot of data [...]
Read the rest of this entry »
Posted in October 26, 2009 ¬ 04:57h.cpf_
Since I’m quite the python fan, and also indirectly a fan of bazaar, I’m really liking the bazaar explorer. Especially on windows. Since I wanted the same application on linux, tried to install the explorer. Somehow, somewhere something went wrong. Obviously not a good thing. After installing the bazaar explorer (first through downloading the tarball [...]
Read the rest of this entry »
Posted in September 8, 2009 ¬ 18:17h.cpf_Comments Off
This person has been very busy, and still little work seems to be done. In a nutshell, we’ve been busy getting the main website for pySM online. pySM is me and Tim‘s project into system management (There are some posts about it in this blog) However, soon after getting quite the lot of url’s and [...]
Read the rest of this entry »
Posted in August 29, 2009 ¬ 19:50h.cpf_Comments Off
Today all pysm sites (which used to be only trac) has been moved. The “old” url (www.pysm.be) has been moved to the server hosting codercpf.be (Yes, this site) We’ve changed the old only trac to seperated sites: Update! I put some url’s here last time, but those changed. For sake of having consistency, and not [...]
Read the rest of this entry »
Posted in June 8, 2009 ¬ 12:05h.cpf_Comments Off
Update: The site has removed the logo. Arch is victorious (linky) As it appears, there is someone (in particular a company named Ace International Tutoring Pty Ltd) as outragious as it might seem, it is true. As for the original article, it explains how the devs and official archlinux crew have come to the conclusion [...]
Read the rest of this entry »
Posted in May 22, 2009 ¬ 07:46h.cpf_Comments Off
So, since I’m a long and happy yeganesh user, but I recently moved to debian and didn’t want to have the haskell overhead in my system, I wrote my own little implementation in python. What is it? PyDmenu tries to clone the yeganesh behavior. However, it has its own ups and downs. Currently, the code [...]
Read the rest of this entry »
Posted in April 11, 2009 ¬ 12:41h.cpf_Comments Off
So, using sleekxmpp to send IQ set / get is quite simple, but requires some manual labor… This is what I came up with, it’s all quite arbitrary, and can be put in a function easily. But at least now I finally figured out how to send IQ stuff. Receiving some might prove harder… # [...]
Read the rest of this entry »