I bought a MCU123 USBee AX Pro clone on dx.com which is very similar to a Saleae Logic.
To use it with the Saleae software, the VID/PID need to be reprogrammed.
I bought a MCU123 USBee AX Pro clone on dx.com which is very similar to a Saleae Logic.
To use it with the Saleae software, the VID/PID need to be reprogrammed.
You need to have python2.7 installed.
cd /usr/lib/python3/dist-packages/
cp /usr/lib/python2.7/dist-packages/rpdb2.py .
--- /usr/lib/python2.7/dist-packages/rpdb2.py 2010-08-17 22:12:52.000000000 +0300 +++ rpdb2.py 2014-05-14 10:37:29.559752856 +0300 @@ -7280,7 +7280,7 @@ Set rpdb2 to wrap all signal handlers. """ for key, value in list(vars(signal).items()): - if not key.startswith('SIG') or key in ['SIG_IGN', 'SIG_DFL', 'SIGRTMIN', 'SIGRTMAX']: + if not key.startswith('SIG') or key in ['SIG_IGN', 'SIG_DFL', 'SIGRTMIN', 'SIGRTMAX', 'SIG_BLOCK', 'SIG_BLOCK', 'SIG_UNBLOCK', 'SIG_SETMASK']: continue handler = signal.getsignal(value)
python3 /usr/lib/python3/dist-packages/rpdb2.py --debuggee myscript.py
I've developed a small RESTful service with Tornado and I wanted to generated doc for the exposed API. Lucky me, someone already thought about it and created the sphinxcontrib.autohttp.tornado addon for Sphinx.
The next few tips will help getting the work done:
methods = inspect.getmembers(handler, predicate=inspect.ismethod) # returns an empty array with python-3
The predicate needs to be changed to include ismethod or isfunction
SUPPORTED_METHODS=('GET') # WRONG SUPPORTED_METHODS=('GET',) # CORRECT
GPX tracks (total: 8.5 Km):
This is my conf to stream my Linux desktop screen in my apartment using VLC.
In 2009, I bought a Iolair MB24W, one of those with a MVA display. Except the time when I had to reset the screen to restore the EDID (Press M, +, - until the blue led blinks 3 times), the screen works fine ... until recently.
The screen switches on but stays white. No picture at all, not even the OSD menu.
There is funny little usb gadget called the Blync identified by VID: 0x1130, PID: 0x0001.
It's a glowing RGB cube, but it has two defects for me:
Let's fix it.
Code
#!/bin/sh function prettycheck { local TPUT='tput' local RED='1' local GREEN='2' local BLUE='4' #man 5 terminfo [ ! -f $(which $TPUT) ] && TPUT=true cmd="$@" echo "$> $cmd" $TPUT cuf $((`$TPUT cols` - 8)) # move the end-of-line minus 8 cols $TPUT cuu 1 # move on line up msgerr=$($cmd 2>&1 1> /dev/null) if [ "$?" -ne 0 ]; then $TPUT setaf $RED # change front color echo "[FAILED]" $TPUT setaf $BLUE # change front color echo "$msgerr" else $TPUT setaf $GREEN # change front color echo "[ OK ]" fi $TPUT reset }