一半君的总结纸

听话只听一半君

Category Archives: 好文人肉备份

Parallelism in one line – A Better Model for Day to Day Threading Tasks

人肉备份自Chris in Building Things on the Internet

Python has a terrible rep when it comes to its parallel processing capabilities. Ignoring the standard arguments about its threads and the GIL (which are mostly valid), the real problem I see with parallelism in Python isn’t a technical one, but a pedagogical one. The common tutorials surrounding Threading and Multiprocessing in Python, while generally excellent, are pretty “heavy.” They start in the intense stuff, and stop before they get to the really good, day-to-day useful parts.

阅读余下文章

Advertisements

一行 Python 实现并行化 — 日常多线程操作的新思路

人肉备份自左手键盘,右手书 搬运未获授权

春节坐在回家的火车上百无聊赖,偶然看到 Parallelism in one line 这篇在 Hacker News 和 reddit 上都评论过百的文章,顺手译出,enjoy:-)

http://www.zhangzhibo.net/2014/02/01/parallelism-in-one-line/

Python 在程序并行化方面多少有些声名狼藉。撇开技术上的问题,例如线程的实现和 GIL1,我觉得错误的教学指导才是主要问题。常见的经典 Python 多线程、多进程教程多显得偏“重”。而且往往隔靴搔痒,没有深入探讨日常工作中最有用的内容。
阅读余下文章

Python多进程模块Multiprocessing介绍

人肉备份自Cloga的互联网笔记
12 January 2014

Multiprocessing是Python的 一个标准库,通过这个库,可以实现并行编程,更有效的利用多核CPU。由于Python的GIL的限制,默认情况下Python无法有效利用多核。通过Multiproc essing,可以创建多个子线程,从而更加有效的利用多核。这篇文件会介绍一下使用Multiprocessing的线程池(Pool)实现简单的并行编程。

Multiprocessing类提供了Pool对象,通过进程池对象来管理和创建多个进程的worker,并收集这些Worker返回的结果。

阅读余下文章

Synology 第三方套件來源

大家可以參考一下..非官方的…
但是不保證其安全性及穩定性….

阅读余下文章

Making Eclipse Soar

http://christianakesson.com

Here is a guide to set up and get Eclipse, PyMel, PyQt4 & Python to work together. When complete, you will have a sweet IDE setup, switch between running everything 32bit and 64bit native AND the ability to compile your own 64 and 32 bit native applications. I am writing this assuming Windows 7 64 bit. I would recommend sorting all the downloads into a 32 and a 64 folder to easier keep track of everything.

阅读余下文章

Using Eclipse as a Maya IDE

www.creativecrash.com

This is an updated tutorial – December 2011.

阅读余下文章

How can I have Wing send Python or mel code to Maya?

http://mayamel.tiddlyspot.com

Note: Wing can interact with Maya in three different ways. This is one of the three. See an overview here on the whole system: Interaction between Wing and Maya

阅读余下文章

Interaction between Wing and Maya

 http://mayamel.tiddlyspot.com

Wing has the ability to interact with Maya in four different ways. Each has it’s own setup, independent from another. For clarity, here they are listed below:

阅读余下文章

Remote Python debugging in Wing

Note: Wing can interact with Maya in three different ways. This is one of the three. See an overview here on the whole system: Interaction between Wing and Maya

阅读余下文章

Wing/Maya Remote Debug Setup

There are some great posts and pages explaining how to setup Wing IDE to remotely debug a Maya session. Eric Pavey first posted how to do this at his WarpCat Blog along with how to send commands back and forth to Maya from Wing.

阅读余下文章