Monday, June 20, 2011
7th Erlangen International High-End-Computing Symposium
Please note the upcoming 7th EIHECS on this weeks Friday 24th of June .
Tuesday, June 14, 2011
GIT: Getting information about tags
To show the tags you made and the comments or tag messages:
git tag -l -n1
Monday, April 18, 2011
NVIDIA CUDA disable/enable ECC
Show ECC config
Enable ECC on GPU 0:
Disable ECC on GPU 0:
You need a reboot to get settings active
nvidia-smi -r
Enable ECC on GPU 0:
nvidia-smi -g 0 -e 1
Disable ECC on GPU 0:
nvidia-smi -g 0 -e 0
You need a reboot to get settings active
Thursday, April 7, 2011
EMACS: Whitespaces
Motivation:
Each and every editor handles whitespaces tabs etc. differently. The first step to get everyting out to the open is so show whitespaces and tabs the way the editor sees them. For me it's emacs and the following lines in your ~/.emacs should give you a good view of whitespaces.
Look at this documentation for all references
Please be patient and drop me a comment if there are any errors or misunderstandings. I'm really no emacs pro!!!
Each and every editor handles whitespaces tabs etc. differently. The first step to get everyting out to the open is so show whitespaces and tabs the way the editor sees them. For me it's emacs and the following lines in your ~/.emacs should give you a good view of whitespaces.
Look at this documentation for all references
Please be patient and drop me a comment if there are any errors or misunderstandings. I'm really no emacs pro!!!
(require 'whitespace)
(global-whitespace-mode t)
Monday, March 28, 2011
GIT: Remote branches
Show remote branches:
git remote show origin
Wednesday, March 16, 2011
GIT: Pushing a new repository to a git server the first time
Scenario:
You created some local repository and worked on that for a while. Now you want to have it on a server so that others can collaborate.
We want to keep the full history so we want to push the current repository to the server. In order to do this at least for the master branch you have to edit the config file at:
It probably looks like the following:
The easiest way to get everything right is to check out the empty repository from the server via
Finally you see that you have to add something like:
To the existing config.
Now issue a git push origin master and the master will be pushed.
If you know whether that works with branches as well or how to get that working, please drop me a comment!?
There are other ways to just give the repository as a argument at the
You created some local repository and worked on that for a while. Now you want to have it on a server so that others can collaborate.
We want to keep the full history so we want to push the current repository to the server. In order to do this at least for the master branch you have to edit the config file at:
/.git/config
It probably looks like the following:
[core]
repositoryformatversion = 0
filemode = true
bare = false
logallrefupdates = true
The easiest way to get everything right is to check out the empty repository from the server via
git clone
and diff the two config files.Finally you see that you have to add something like:
[remote "origin"]
fetch = +refs/heads/*:refs/remotes/origin/*
url = user@yourgitserver.com:MyNewProject
[branch "master"]
remote = origin
merge = refs/heads/master
To the existing config.
Now issue a git push origin master and the master will be pushed.
If you know whether that works with branches as well or how to get that working, please drop me a comment!?
There are other ways to just give the repository as a argument at the
git push
command but I like to keep my old directories.
Wednesday, January 26, 2011
GIT: Merging changes of a branch back to master
You branched out for development and now it is time to get the improvements back to the master branch.
This is achieve by
To be sure to not mess up anything, I prefer to clone my repository first and do the merge there.
So best is if you commit all changes in master and dev branch. Do a couple of pushs and pulls so everything is in sync and then clone your repository to a new location.
You can directly clone the branch you want to merge then proceed to 2. otherwise do a
You have to resolve any conflicts in any files by removing the spiky brackets in the file and of course take a close look what caused the conflict and fix it.
Then add the file via
Do this for every file.
This is achieve by
git merge
while on the master branch.To be sure to not mess up anything, I prefer to clone my repository first and do the merge there.
So best is if you commit all changes in master and dev branch. Do a couple of pushs and pulls so everything is in sync and then clone your repository to a new location.
You can directly clone the branch you want to merge then proceed to 2. otherwise do a
git checkout branchname
git checkout master
git merge branchname
You have to resolve any conflicts in any files by removing the spiky brackets in the file and of course take a close look what caused the conflict and fix it.
Then add the file via
git add
and commit it via git commit
.Do this for every file.
Thursday, January 20, 2011
CVS: Get new directories of the server
If you want to update your CVS working copy to get new directories from the server, a simple
Try
cvs up
does not get these directories.Try
cvs up -d
Saturday, January 15, 2011
Friday, January 14, 2011
GIT: Creating a local Repository
Till now all my posts concerned repositories already created. But how to create your own git rep in the first place?
Simply execute:
and the new-rep-dir is a git repository
Hint by TZ:
Simply execute:
mkdir new-rep-dir
cd new-rep-dir
git init-db
and the new-rep-dir is a git repository
Hint by TZ:
git init
is the alias for git init-db
Subscribe to:
Posts (Atom)