Thursday, July 31, 2014

Install Google Earth in Ubuntu 14.04 64bit

Install Google Earth (with the required 32bit dependencies) in Ubuntu 14.04 (or 13.10) 64bit:
  
sudo apt-get install libfontconfig1:i386 libx11-6:i386 libxrender1:i386 \
 libxext6:i386 libgl1-mesa-glx:i386 libglu1-mesa:i386 libglib2.0-0:i386 libsm6:i386 
 
cd /tmp && wget http://dl.google.com/dl/earth/client/current/google-earth-stable_current_i386.deb 
 
sudo dpkg -i google-earth-stable_current_i386.deb 
 
sudo apt-get install -f

How to install Adobe Reader on Ubuntu

1. Download the DEB package:

2. Install Gdebi to handle the DEB package. Press Ctrl+Alt+T on keyboard to open the terminal. When it opens, paste the command below and run:
sudo apt-get install gdebi

3. Now install the package via Gdebi. It’ll also install the dependencies.
cd ~/Downloads && sudo gdebi AdbeRdr9.5.5-1_i386linux_enu.deb

4. Adobe Reader is still missing libraries after installation. Run the command below to install them:
sudo apt-get install libgtk2.0-0:i386 libnss3-1d:i386 libnspr4-0d:i386 lib32nss-mdns* libxml2:i386 libxslt1.1:i386 libstdc++6:i386

Tuesday, July 29, 2014

Form FastQ to FastA

awk 'NR % 4 == 1 {print ">" $0 } NR % 4 == 2 {print $0}' my.fastq > my.fasta

awk 'BEGIN{P=1}{if(P==1||P==2){gsub(/^[@]/,">");print}; if(P==4)P=0; P++}' Head-80k-ChIA-PET.fastq > Head-80k-ChIA-PET.fasta

Sunday, July 27, 2014

Crises

The crises I am facing are real, they are serious and they are many, they can not be solved easily or in a short span of time, but I have never been more confident than today that I will solve them.

Saturday, July 26, 2014

宝宝最近辛苦了


今天宝宝忙了一整天,宝宝为了我能专心忙自己的事情,她做家务劳累到头晕,下午那么热的天气还帮我收拾房间,做饭。知道自己累的不行,躺在床上休息了好长时间才缓过来。昨天晚上宝宝为了给我做黑椒牛柳,一直忙到晚上10点多,周五的晚上啊,宝宝也是累的不行。宝宝本来身体虚弱,但是为了我能专心科研,专心申请绿卡,宝宝真的在全力以赴的支持我。
最近有太多值得我一辈子铭记的感动。
我到现在还记得我拔牙的那天晚上,天气非常非常热,宝宝回来就已经热的受不了了,但是把我送到空调卧室休息后,她自己盯着湿热的天气给我煮粥,直到我睡了一觉醒来,发现宝宝满头大汗的在炉子旁边,身上的衣服都汗湿了。
无论什么时候我都要记得,宝宝是我需要用一辈子好好疼爱,好好回报的女人。宝宝谢谢你,谢谢你为我付出这么多,我爱你。

Happiness

Happiness is someone to love, something to do, and something to hope for.

Friday, July 25, 2014

You Deserve Better

Cherish what you have now, and always remember, you deserve better.