Search This Blog

Concurrent set in java

There is no ConcurrentHashSet class in java but you can get a concurrent set from a ConcurrentHashMap using the following method:
Set set = Collections.newSetFromMap(new ConcurrentHashMap());

See also

Git: Remove a file from the repository without deleting it from the local filesystem

git rm --cached MyClass.java

See also

Remove file completely from git repository

To remove file dir/secret.txt:
git filter-branch --force --index-filter 'git rm --cached --ignore-unmatch dir/secret.txt'  --prune-empty --tag-name-filter cat -- --all

See also

install pydicom and pynetdicom on ubuntu linux

sudo aptitude install mercurial
hg clone https://code.google.com/p/pydicom/
cd pydicom/source/; sudo python setup.py install
It will be installed into /usr/local/lib/python2.7/dist-packages/pydicom-1.0.0a-py2.7.egg

To install pynetdicom:
hg clone https://code.google.com/p/pynetdicom/
cd pynetdicom/source/; sudo python setup.py install
It will be installed into /usr/local/lib/python2.7/dist-packages/netdicom