昨天,今天,明天,每天的每天,你是否都多懂得一点点...

星期二, 八月 20, 2013

加拿大签证怎么还没到呀。。。

网签一天就下来了

可是护照寄过去后就没消息了。。。

估计我没在收件人那栏写上 EAPP 有影响。。。。急死我了。。。

--
Feng

星期三, 八月 14, 2013

Vim clang_complete for object c

It's easier than I expected.

You don't need to download clang

You only need clang_complete plugin

then set

let g:clang_library_path="/Developer/usr/clang-ide/lib/"

in vim

the clang library has been installed by xcode.

hit ctrl+x ctrl+u to force auto complete

--
Feng

星期六, 八月 10, 2013

IntelliJ IDEA 注册机算的号居然通用MAC WINDOWS

今天想试下 intelliJ

于是下了个来看看

用了WINDOWS的注册机, 注册了WINDOWS版

然后下载了MAC 版, 用同一个注册机注册的号居然可以用...

看来注册码不关联机子, 可关联名字.

但后来发现同一个注册码只能在同一台机子上使用. 看来 intelliJ 的服务器还是知道谁在用的.

然后便用同样的名字, 又生成一个注册码, 工作.

--
Feng

星期五, 八月 02, 2013

How to undo an amend commit

git reflog is useful

# Move the current head so that it's pointing at the old commit # Leave the index intact for redoing the commit git reset --soft HEAD@{1} # commit the current tree using the commit details of the previous # HEAD commit. (Note that HEAD@{1} is pointing somewhere different from the # previous command. It's now pointing at the erroneously amended commit.) git commit -C HEAD@{1}

ref: http://stackoverflow.com/questions/1459150/how-to-undo-git-commit-amend-done-instead-of-git-commit

--
Feng

找回 git amend 误删的文件

因为 checkout master 的时候没耐心, cancel 了

第二天来看的时候, 看到一堆checkout 到一半的文件, 于是reset了一些。 看到三个被删除的文件 。 以为是之前删除了没有 commit, 于是 amend 了。

之后才发现, 这三个文件不是我忘了commit的。 耐是因为 master branch 没有这三个文件,在 checkout master 的时候被删的。。。。

惊。。。 惊得我一身冷汗。。。。

因为在LOG 里面看不到我之前的 commit 了。。。。不知道怎么找回来, 搜索了许久。。。终于找到如下此文
git reflog

可以显示出

...
86e3649 HEAD@{7}: commit (amend): Add Amount keypad Gui
7a0dc86 HEAD@{8}: commit: Add Amount keypad Gui
...

那个 7a0d...就是我要的commit了。

git checkout 7a0dc86

回来了。。。耶!!!!

--
Feng

其它博客地址

此博客的同步博客地址: http://fengnz.wordpress.com
这里进入我的MSN SPACE.