When applications are running in production, they become black boxes that need to be traced and monitored. One of the simplest, yet main, ways to do so is logging. Logging allows us - at the time we develop our software - to instruct the program to emit information while the system is running that will be useful for us and our sysadmins.
| import pymel.core as pm | |
| ''' | |
| Here are some examples of how to use the pin_to_surface.py script. | |
| ''' | |
| # make a nurbsPlane | |
| oNurbs = pm.nurbsPlane(n='nurbsPlane1') | |
| # You can specify the nurbsSurface by string, PyNode transform or PyNode shape. |
| import pymel.core as pymel | |
| transform1 = pymel.createNode('transform', name='fk_control') | |
| transform2 = pymel.createNode('transform', name='ik_control') | |
| transform3 = pymel.createNode('transform', name='blender') | |
| transform3.addAttr('ikFkSwitch', keyable=True, min=0, max=1) | |
| for node in transform1, transform2: | |
| node.addAttr('ikFkSwitch', usedAsProxy=True, keyable=True, min=0, max=1) | |
| transform3.ikFkSwitch.connect(node.ikFkSwitch) |
this has been rewritten yet again as most workarounds aren't required anymore since wine 3+
example video of the final result: https://www.youtube.com/watch?v=zkqzQoeOGfU
with touchscreen: https://www.youtube.com/watch?v=GcIrlorWmaQ
performance is indistinguishable from windows. there might be a very slight ~25ms sound latency which is easily compensated with +25 local offset
tested on
My objective is to have some production files ignored on specific branches. Git doesn't allow to do it.
My solution is to make a general .gitignore file and add .gitignore.branch_name files for the branches I want to add specific file exclusion.
I'll use post-checkout hook to copy those .gitignore.branch_name in place of .git/info/exclude each time I go to the branch with git checkout branch_name.
Rename a git tag old to new:
git tag new old
git tag -d old
git push origin :refs/tags/old
git push --tags
The colon in the push command removes the tag from the remote repository. If you don't do this, git will create the old tag on your machine when you pull.
| from PyQt4 import QtGui, QtCore, uic | |
| def p(x): | |
| print x | |
| class MainWindow(QtGui.QMainWindow): | |
| def __init__(self): | |
| QtGui.QWidget.__init__(self) | |
| uic.loadUi('redirect.ui', self) |
| ######################################################################## | |
| # $HeadURL $ | |
| # File: TypedList.py | |
| # Author: Krzysztof.Ciba@NOSPAMgmail.com | |
| # Date: 2012/07/19 08:21:16 | |
| ######################################################################## | |
| """ :mod: TypedList | |
| ======================= | |
| .. module: TypedList | |
| :synopsis: typed list |
