Since the project is using Cmake, the following commands could go inside an add_custom_target rule in CMakeLists.txt
I just received my Seeeduino Arch GPRS V2. The doc is as light as the price 🙂 So don't be afraid and open the Eagle file and the bottom of the product wiki page.
You need to have python2.7 installed.
cp /usr/lib/python2.7/dist-packages/rpdb2.py .
- Apply patch
--- /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)
- Start Winpdb using python2
- Start rpdb2 using python3
python3 /usr/lib/python3/dist-packages/rpdb2.py --debuggee myscript.py
- Attach the newly created debugger to Winpdb.
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:
- If you're using python-3, you need to use this file tornado.py. The latest release 1.2.1 (as of 30/04/2014) doesn't work with python-3, because
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
- In the subclass of the RequestHandler, be sure that the SUPPORTED_METHODS is defined as a tuple
SUPPORTED_METHODS=('GET') # WRONG SUPPORTED_METHODS=('GET',) # CORRECT
- If you add a decorator to your handler methodes, be sure to use functools.wraps or functools.update_wrapper to copy the docstring of the original method to the function returned by the decorator.
Attempt to rent online a movie with CanalPlay VOD
- Find a movie and decide to watch it.
- First failure because Linux is not a supported OS
- Booting Windows XP in a Virtual Machine (vmware)
- Scan of the computer configuration from the CanalPlay website
- Incompatible media player -> Request to update to Windows Media player 11
- 6 clics further on the Microsoft website, before the update can be downloaded, a genuine windows code must be entered.
- The code is given by a application to download and execute on the computer.
- Once the code entered, the download starts (25MB)
- Windows Media player 11 installation
- Goto step 4.
- CanalPlay plugin installation
- Restart the browser
- Goto step 4.
- Windows Media player 11 scan fails again.
- Reboot the computer (well, the VM)
- During reboot, some system updates are applied.
- The plugin still doesn't work with Firefox
- The scan finally works with IE
- Creating a CanalPlay account
- Wrong country: the movie is not available
- Creating a SSH Socks proxy to a server in France (Thanks OVH)
- Renting the movie in SD for 48h for 4€ (Yes, I really want to try)
- The payement is rejected because a foreign credit card is used.
- Shutting down the VM
- Creating a Purevid account
- Monthly subscripion for 4.5€
- Starting the movie in streaming from Linux with Firefox.
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.