Freitag, 5. August 2016

[QDBUS] Create tabs in yakuake and pidgin, not dolphin

QDBus is an easier way to interact with DBus then using dbus-send. There is also a GUI qdbusviewer that might help finding and executing stuff. But qdbus and grep seem to be a bit better at that for me.

Executing qdbus will show all services that you can talk to via dbus. Given a servicename it will print possible paths and sub-paths. And when a path is also appended then it will print out methods and signals which can be called or registered to. The output will include the names and types of parameters and the return-type.

Samstag, 27. Februar 2016

Donnerstag, 31. Dezember 2015

[Python] From Threads to ThreadPool to Gevent

A system test I wrote does many requests on a local server. The responses take from some to many seconds to arrive. IO-bound. I thought I should use threads for each request. All requests could start at the same time and when the results are in they could be evaluated. 
It worked. Lots of threads were created, did their work and died.
To many threads - one would say.
A threadpool should be a better way...

Donnerstag, 10. Dezember 2015


Tried to debug my code by inserting this line:
 import ipdb; ipdb.set_trace()
Got an error like this:
/usr/local/lib/python2.7/dist-packages/pkg_resources/ AttributeError

 E           AttributeError: _dep_map

Freitag, 20. November 2015

[PHP+GDB] Debugging in PHP Part 2

I found a little thing called Pyclewn which is "A Vim front-end to the gdb and pdb debuggers." With a good configured Vim it is for me much easier and nicer to debug then with plain gdb.

Donnerstag, 19. November 2015

[PHP+GDB] Debugging in PHP

Writing a server in Python that does SOAP and WSDL a simple PHP-client should be able to do requests. The WSDL is selfmade-generated in version 1.1. The analyzer on is telling me that everything is OK. In fact I already have 3 clients in Python running, using SOAPpy, suds (jurko-edition) and twisted.web.soap (which is using SOAPpy). 

And 2 in PHP, one using pear SOAP and the other using the internal PHP SOAP.

Samstag, 31. Januar 2015

More Mice Stuff

My good old Logitech MouseMan Dual Optical got some problems. Pushing buttons yields in no-click, single-click or double-click. It is a typical long time use wearout.