Windows has a concept in the NTFS filesystem that is quite similar to symlinks in Linux/Unix. Interestingly, these things have exotic names like reparse points and junctions. So for someone who is familiar with Linux/Unix terminology, the following mapping applies roughly:
- Symbolic link == reparse point
In Linux/Unix, created with the command:
ln -s [target] [linkname]
In Windows (I think 7+), created with the command:
mklink [target] [linkname]
be aware though that for directories, you need to call the /D parameter in Windows.
- Hard link == junction
In Linux/Unix created with the command:
ln [target] [linkname]
In Windows, created with the command:
mklink /J [target] [linkname]
again, don’t forget the /D for directories.
Let’s say you have a global module variable in your cython script:
cdef public bint myVal = True
Such a variable is hidden in C space, so you cannot access it directly from python space.
If you want to be able to change this value from another python script, you can just make a wrapper function around it, e.g.:
cpdef set_myval(bint val):
myVal = val
Now you can access the variable in the cython module.
e.g. pip install git+https://github.com/uqfoundation/dill.git@master
Checked this with official git-bash 2.6.2 and ConEmuPack.151015.
Add a new tasks as follows (click on the pictures if you can’t read them):
Replace c:\app\git with the directory you installed git-bash into.
If you want to be able to properly use copy or deepcopy in cython (without getting a segfault), you have to implement the pickle protocol for the class you want to (deep)copy.
If you insert a picture, you can easily google how to crop it in Word 2007, but if you insert an object, like a Powerpoint slide into Word, it’s not so easy to google. I hope this post will change that.
The answer is simple, but not necessarily easy to find. Right click on the inserted object, click Format and then go to the Picture tab. In the top of this tab you will see the Crop from panel. Here you can fill in your crop values.
This happens usually when you have an IDE (like Eclipse, PyCharm) or a text editor with git integration (Emacs, Atom, Sublime) holding on to the files you want to unlink.
To solve it, close the IDE/editor and redo your git gc or git gui compression command.
Add an environment variable as follows:
ATOM_NODE_URL = http://gh-contractor-zcbenz.s3.amazonaws.com/atom-shell/dist
If you want to download a file directly non-interactively from github (for example in a script), you get some HTML page showing the file with line numbers etc. So if you want to download the file raw, you just modify the URL, as follows:
If you want to get https://github.com/<my>/<repo>/<file>
You use as URL: https://github.com/<my>/<repo>/raw/<file>
And if you want to download this file from a certain branch on the repo, you use: https://github.com/<my>/<repo>/raw/<branch>/<file>
- <my> is the user or organization name on github
- <repo> is the repository name
- <branch> is a branch on the repository
- <file> is the file you want to download
You can easily set ant variables from the command line by using the -D parameter, e.g.:
- February 2017
- November 2015
- October 2015
- September 2015
- February 2015
- November 2014
- October 2014
- July 2013
- April 2013
- November 2012
- October 2012
- June 2012
- May 2012
- April 2012
- March 2012
- February 2012
- January 2012
- December 2011
- September 2011
- August 2011
- June 2011
- May 2011
- April 2011
- March 2011
- February 2011
- January 2011
- December 2010
- July 2010
- June 2010
- May 2010
- April 2010
- March 2010
- January 2010
- December 2009
- November 2009
- September 2009
- July 2009
- June 2009
- May 2009
- April 2009
- March 2009
- February 2009
- January 2009
- December 2008