Sunday, July 24, 2016

Git & GitHub

git command

  • git clone [github link] [(optional)folder name]
  • git log
  • git log —stat
  • git diff first_id secod_id
  • git checkout
  • q
  • git config —global color.ui auto
    Atom as Git commit editor
    git config --global core.editor "atom --wait"

    make a repository

  • git init
  • git status
  • git add add new work to the staging area, a bridge b/w working directory and repository
  • git add . add all work
  • git commit will open a text editor, write, save and close editor.
  • git commit -m "message no need to open text editor
  • git diff (empty)
  • git diff --staged
  • git reset --hard
  • git branch
  • git branch easy-mode
  • git checkout easy-mode

    GitHub

  • git remote
  • git remote add origin url.git set the url as your remote reference
  • git remote -v stands for verbose
  • git push origin master sync to remote by master branch
  • git pull origin mastersync local by master branch
  • git config --global credential.helper osxkeychain password once for all
    -git pull=git fetch+git merge
  • pull request is actually merge request

CSAIL, the future is here


CSAIL stands for computing science and artificial intelligence laboratory. https://www.csail.mit.edu/
I knew it yesterday from Sisy Chen. http://www.cw.com.tw/subchannel.action?idSubChannel=382 I was shocked by her insight and her interview with the genius guy in MIT. And I knew nothing about them. I will spent some time to learn what exactly they are doing and update my blog.
I will learn these people:
Think out of the box.

Wednesday, July 13, 2016

Is GcMAF an alternative treatment for cancer?

One of my best friends has cancer and he went to German for alternative treatment which is not yet approved by FDA. I am quite interested in it and tried to understand why it was banned.

A google search of “Goleic” returns very confusing results. Then I learned that Goleic is a product sold by Immuno Biotech, a company located at a small island Guernsey to England. 2015-2-25, Immuno Biotech CEO David Noakes announced that Goleic, licensed as a vitamin supplement in Germany, was allowed into Guernsey. The price is very expensive, 8 doses for 450 Euros.

The wikipedia of GcMAF gave me a better understanding. The scientific foundation of this treatment was first published by a Philadelphia research group led by Nobuto Yamamoto on “Cancer Immunol Immunother” (a low-impact journal) in 2008 July. The title of the paper is Immunotherapy of metastatic colorectal cancer with vitamin D-binding protein-derived macrophage-activating factor, GcMAF. However, this paper and his other two papers were retracted because Inconsistencies and questionable reliability of the publication found by Anticancer Fund

Following are trustworthy critics:
CancerResearchUK:“Cancer cured for good?” – Gc-MAF and the miracle cure
Scholarly Open Access: Would You Take a Cancer Cure Proven Effective in a Predatory Journal?
BBC: Unlicensed blood drug GcMAF still for sale
the Health Archive: The end of GcMAF

How do different kinds of white blood cell fight cancer? Good cop, bad cop: the immune system and breast cancer spread

https://site.douban.com/192208/widget/notes/11462657/note/302297270/
就目前医学手段而言,什么是早期发现癌症的最佳途径?

纪小龙医生 : 1 人体有500-600左右的癌症种类,分布全身每个角落,每一个癌都有各自的不同特征,所以,至今没有一个“万能”的发现早期癌的方法,只能针对人体常见的排在前面的10个癌采取相应的早期发现的办法,比如,胃癌只能用胃镜检查,肺癌只能用CT检查等。 2 最佳预防是定期体检。

吃什么东西可以预防癌症呢?

方舟子 : 经常有人说吃某种东西(例如吃大蒜)能预防癌症,但是这些都只是初步的研究,不要轻信。要预防癌症,更重要的是不吃什么,避免摄入含强致癌物的食物,例如避免发霉食品,少吃油炸、烧烤、腌制食品。

I never trust traditional Chinese medical which is full of rumor. But sadly, today I found similar rumor happens in American:
http://www.getholistichealth.com/

Thursday, July 7, 2016

Notes on Steve Jobs

Jobs has been a symbol in our era. His products have revolutionized human's life styles. I plan to read his biography.

“That’s been one of my mantras — focus and simplicity. Simple can be harder than complex; you have to work hard to get your thinking clean to make it simple.”
Tip: Create focus blocks of time. This way, you can focus on the work that matters most and block out all other distractions.

“Your time is limited, don’t waste it living someone else’s life. Don’t be trapped by dogma, which is living the result of other people’s thinking. Don’t let the noise of other opinions drown your inner voice. And most important, have the courage to follow your heart and intuition, they somehow already know what you truly want to become. Everything else is secondary.”

Cal Newport, professor of Computer Science at Georgetown University, explains that to build a career that you are satisfied with, you must first answer the question “What way of working and living will nurture my passion?

Tip: Answering Newport’s question is an important step, but what’s more important is to not fixate on regrets.


“I’m as proud of many of the things we haven’t done as the things we have done. Innovation is saying no to a thousand things.”
Tip: Say “no” and say it often. If what is being asked of you does not align itself with your goals, then it will become a distraction from the work that needs to get done.

My favorite things in life don’t cost any money. It’s really clear that the most precious resource we all have is time.”

We don’t get a chance to do that many things, and everyone should be really excellent. Because this is our life. Life is brief, and then you die, you know? So this is what we’ve chosen to do with our life.”
Tip: Ask yourself, “When it comes time for me to die, what will I regret not doing?” That is what matters most — so go and do it.

Wednesday, July 6, 2016

Notes on Yihui.name

I am trying to compare Markdown and Latex in my last post, and happened to find this guy, Yihui. He is an early pioneer in R and a founder of  online community on statistics http://cos.name.

Here are some interesting excerpts:
要说经验嘛,
  • 一是要知道自己爱干啥,不然干啥都累
  • 二是从兴趣中做出一点成果,否则跟人说话苍白无力;
  • 三呢,有自己独立的想法,不要为了出国而出国,人到哪里都是这山望着那山高,外国不一定有想象的那么好,先想清楚要做什么,再想什么地方适合自己(比如我觉得数学伤脑子我就不想去数学气氛太浓的学校

build website by https://jekyllrb.com

混开源社区就有这问题,人总是有种印象,啊你开源免费那你就该无偿帮我忙。哎凭啥呢?有些人混着混着就把自己混进去了,激情万丈,家破人亡。蟒蛇神教千秋万载一统江湖还是一桶浆糊?窃以为还是破帽遮颜靠谱一点。

Best Markdown Editor and Solution

Update on 2017-1-18

After 6 months, I stick to the little software Typora. The best features are immediate feedback, autosave and elegant. To render markdown in blogspot, just copy the source mode and convert it by an Chrome Extension “Markdown here“, which supports MathJax. Everything is nicely done.
By the way, the windows version of typora seems very unstable. Once it died half way and everything I wrote was lost.
In case you are in a public computer, then https://stackedit.io is the best choice.

Equations in Markdown

try $3n+\sum_2^n{\pi}$ to see whether it supports MathJax.

convert equation to LaTex code

However, remember LaTeX Math Symbols will help you type equation faster.

Write equation in Github Markdown

Sadly, Github flavored Markdown doesn’t support MathJax. The solution is to use some websites to convert it into image, and insert it using ![]() syntax. Such websites include:
how to use: convert-> download -> copy and paste

Write equations in gmail

A chrome extention “Tex for Gmail“ do the job. write equation by the above link and paste.
Note: simple equation is good, complex equation is terrible

MarkDown vs LaTex

MarkDown->html -> scrolling in one page
LaTex->PDF -> printing multiple pages
Let’s rock:
All roads lead to Rome, some people die at the starting line instead of on the roads.

Tuesday, July 5, 2016

broken window theory, technology timeline, qcloud

Broken window theory:
Not fixing problem is an indication that it's OK to have poor quality. So don't bother to look for the culprit, just fix it.  Be an example of the standards you want to reach, and praise those who follow the example.

Adoption Chart

qcloud conference:  http://www.qcloud.com/event/tcc2016/live