Posted
almost 13 years
ago
by
mandel
Following the small work I’m doing to get better at golang here is another piece of work I have done to add a golang binding to one of the C libraries I’m depending on. The following allows to use the libaccounts-glib library from go: 1 2 3 4 5 6 7 8 9 10 11 [...]
|
Posted
almost 13 years
ago
by
mandel
I have been playing a little with golang lately and I have decided to do a small desktop application to try an practice more. Because I wanted to integrate with the gnome-online-accounts API I had to do a small go interface for the API. I leave it here in the wild to see if people [...]
|
Posted
about 13 years
ago
by
mandel
I really hate my voice when I hear myself in videos etc.. but well, it happens to must of us. Here is the small rant ralsina and I had about multi-platform programming with python:
|
Posted
about 13 years
ago
by
mandel
Oh boy I’m getting good with these things… The following is an example of an interesting behavior you will find with python if you use \\?\ path = 'C:\\Users\\Mandel\\COM1' with open(path, 'w') as fd: fd.write('hello') [Errno 2] Not such file or
|
Posted
about 13 years
ago
by
mandel
The following behaviour completely got me out of place: >>> byte_string = b'Test' >>> byte_string[0] == b'T' False >>> byte_string[0] in b'T' True >>> byte_string[0] 84 >>> b'T' b'T' Turns out this is
|
Posted
about 13 years
ago
by
mandel
So yet again I have been confronted with broken tests in Ubuntu One. As I have already mentioned before I have spent a significant amount of time ensuring that the tests of Ubuntu One (which use twisted a lot) are deterministic and we do not leave a dirty reactor in the way. In order to [...]
|
Posted
over 13 years
ago
by
mandel
The last few days I have taken a considerable time to remove all the errors from the Ubuntu One tests on Windows. The tests were leaving tcp connections in the twisted reactor that on some Windows systems will result on a DirtyReactorError which is a PITA. Due to a refactor the pattern I described here [...]
|
Posted
over 13 years
ago
by
mandel
Due to a small project I’m developing at the moment I had to access the Mac OS X keyring over python. There is some code of seen around but was not very ‘clean’. The following is my attempt to access the Mac OS X Keyring via python using ctypes, I hope it helps someone out [...]
|
Posted
over 13 years
ago
by
mandel
In my last post I was trying to explain why you should not be using exec_ from PyQt when using PyQt with its twisted tractor. Because I’m not a big fun of levaing comments open, glyph sent me a very interesting email abut the matter, after asking him for permission here is our conversation which [...]
|
Posted
over 13 years
ago
by
mandel
On Windows Ubuntu One uses the twisted reactor to run the Qt UI. The main reason for this is that the IPC protocol that is used was written in twisted. This has been giving us a number of head aches like the one we experienced today. The following code simply shows a dialog that will [...]
|