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

[Python+IPDB]

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/__init__.py:2707: 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 wsdl-analyzer.com 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. 

[Review/Critic] UDock X - 13,3" LapDock

The UDock X - 13.3" LapDock is a combination of touch display, keyboard, touch-pad and battery. It can be used as an extension of vari...