Friday, September 23, 2016

Change the language in Emacs when using ispell spellcheck


The following command proposes a list of installed dictionaries to use:

M-x ispell-change-dictionary
 
Usually, M-x isp-c-d expands to the above also.
 
Src: http://stackoverflow.com/questions/218512/how-can-i-change-the-language-in-emacs-when-using-ispell

 
 

Friday, September 9, 2016

inkscape latex math font

When a quick and simplistic latex-style formula is needed in Inkscape, the "Latin Modern Roman" font may be used. Latest versions of Inkscape incorporate buttons to create subscripts and supersripts when editing text.

Thursday, September 1, 2016

pyplot tex / latex interpreter

### setup use of TEX for labels ###
plt.rc('text', usetex=True)
plt.rc('font', family='serif')

### define label ###
s="\textbf{Bold}"
s= s.encode('string-escape')

ax.set_ylabel(s)

Monday, July 4, 2016

CUDA constant memory

http://stackoverflow.com/questions/22364926/cuda-invalid-device-symbol-error


http://stackoverflow.com/questions/19621380/cuda-how-to-access-constant-memory-in-device-kernel-when-the-constant-memory-is




Thursday, June 30, 2016

SVN list recently added files

example:

svn log -r{2016-06-06}:{2016-06-30} --verbose | grep '   A'

Src:http://stackoverflow.com/questions/27275375/how-to-retrieve-files-in-subversion-svn-recently-added-to-the-repository

Monday, March 14, 2016

bibtex medphys missing book title

For now medphys.bst is bugged. If a book title is missing, remove the "year" field from .bib and append it to the "publisher" field

Tuesday, February 23, 2016

bash kill process by name

pkill -f csp_build.py
 
src: http://stackoverflow.com/questions/3510673/find-and-kill-a-process-in-one-line-using-bash-and-regex