From: http://gimpbook.com/tips.html
Eliminate a solid background behind text or a simple figure:
For instance, if you have a solid white background with antialiased text on it,
and you want to keep the text but change the background to transparent:
The Color to Alpha plug-in (in the Colors menu) will usually do a nice job, much better than Select by Color. If you need to touch up small areas, try drawing with the Paintbrush tool, with the foreground color set to the background color you want to erase and the tool's Mode set to Color Erase. (Make sure you've enabled alpha on the layer.)
This tool is under the "Color" menu -> Color to Alpha
Saturday, March 19, 2011
Thursday, March 10, 2011
svn: Can't move '.svn/tmp/entries' to '.svn/entries': Operation not permitted sshfs
Are you getting this error message on svn checkout with sshfs?
svn: Can't move '.svn/tmp/entries' to '.svn/entries': Operation not permitted sshfs
# Add the -o workaround=rename option fixes the problem
sshfs -o workaround=rename user@server:/dir ~/mnt/dir
See:
http://stackoverflow.com/questions/3016368/after-mounting-using-sshfs-i-cannot-commit-my-changes-using-subversion
svn: Can't move '.svn/tmp/entries' to '.svn/entries': Operation not permitted sshfs
# Add the -o workaround=rename option fixes the problem
sshfs -o workaround=rename user@server:/dir ~/mnt/dir
See:
http://stackoverflow.com/questions/3016368/after-mounting-using-sshfs-i-cannot-commit-my-changes-using-subversion
Wednesday, January 26, 2011
Wednesday, October 20, 2010
LaTeX and git
Hi,
Some of you may remember our discussion at dinner about using git/SVN with LaTeX documents. One of the problems that was mentioned was line-based diff - whenever the formatting of the paragraph changes all of the lines are marked as modified, even if the content did not change.
* git diff --color-words
I found very nice solution to the problem: in git diff you can use the option --color-words which performs word-based diff and highlights the changes in colors.
* gitattributes
You can also put the following line into your .gitattributes file:
*.tex diff=tex
which treats some tags (likes \section{}) as separate words even if there is no whitespace in between.
I am almost converted to git - thanks for opening my eyes ;)
Cheers,
Bartek
Some of you may remember our discussion at dinner about using git/SVN with LaTeX documents. One of the problems that was mentioned was line-based diff - whenever the formatting of the paragraph changes all of the lines are marked as modified, even if the content did not change.
* git diff --color-words
I found very nice solution to the problem: in git diff you can use the option --color-words which performs word-based diff and highlights the changes in colors.
* gitattributes
You can also put the following line into your .gitattributes file:
*.tex diff=tex
which treats some tags (likes \section{}) as separate words even if there is no whitespace in between.
I am almost converted to git - thanks for opening my eyes ;)
Cheers,
Bartek
Wednesday, October 6, 2010
PyAS - nuggets
PyAS - Nuggets
Ipython cpaste magic func to paste in code.
cython -a -> annotated html with colours for how long things take ... click to expand
Ipython cpaste magic func to paste in code.
cython -a -> annotated html with colours for how long things take ... click to expand
Tuesday, October 5, 2010
Git & github getting started
Global setup:
Download and install Git
git config --global user.name "Your Name"
git config --global user.email eilif@gmx.de
Next steps:
mkdir test
cd test
git init
touch README
git add README
git commit -m 'first commit'
git remote add origin git@github.com:markovg/test.git
git push origin master
Existing Git Repo?
cd existing_git_repo
git remote add origin git@github.com:markovg/test.git
git push origin master
Importing a Subversion Repo?
Click here
When you're done:
Continue
Download and install Git
git config --global user.name "Your Name"
git config --global user.email eilif@gmx.de
Next steps:
mkdir test
cd test
git init
touch README
git add README
git commit -m 'first commit'
git remote add origin git@github.com:markovg/test.git
git push origin master
Existing Git Repo?
cd existing_git_repo
git remote add origin git@github.com:markovg/test.git
git push origin master
Importing a Subversion Repo?
Click here
When you're done:
Continue
Friday, October 1, 2010
Emacs tricks: cua-mode
cua-mode:
You cut some code from a website and it has a few columns of junk at the front, enter cua-mode
M-x cua-mode
Set marker, C-RET enters column mode. Select the block, C-x to cut.
You cut some code from a website and it has a few columns of junk at the front, enter cua-mode
M-x cua-mode
Set marker, C-RET enters column mode. Select the block, C-x to cut.
Subscribe to:
Posts (Atom)