Gangmax Blog

自由之思想,独立之精神

Java SynchronousQueue

| Comments

Synchronous queues are similar to rendezvous channels used in CSP and Ada. They are well suited for handoff designs, in which an object running in one thread must sync up with an object running in another thread in order to hand it some information, event, or task. –From Java offical document here

Importing Existing Repo Into Git

| Comments

The requirement is to importing an existing Git repository into another target git server. The solution comes from here.

1
2
3
4
5
6
7
# 1. In the target git server, create the repo from web UI, record the
# repo URL.
# 2. In your local git repo, run the following command to add the new
# remote target repo URL.
git remote add gitlab url-to-gitlab-repo
# 3. Push the code in the local master branch to the target remote git repo.
git push gitlab master

Nix

| Comments

Nix is a powerful package manager for Linux and other Unix systems that makes package management reliable and reproducible. I install Nix to use boot.