Blog Archive

Wednesday, December 25, 2019

Qi Lu, A role model. 5 Hour sleep

You're an inspiration, have you ever heard of Qi Lu? He is a quiet legend in Silicon Valley that also grew up in a rural village in China. He spent years working at a dock, saving up money hoping one day to work in America. He believed the one thing God made sure everyone was equal in, was the time people have in a day. He experimented with his body and realized he only needed 5 hours of sleep per day to feel awake. He spent the day time working and at night researching and writing computer science papers (this went on for years). One day by pure luck, he was able to sit in on a lecture given by a Carnegie Mellon professor who was giving a lecture on a CS topic. Lu was participating and asking very complex questions which intrigued the professor. After the talk the professor asked if Lu had done any research work and if he could show him. WIth a big smile Lu said wait one moment and brought back (I think it was 5) his research papers. The professor gave him an offer to study in America, on a full ride paid by the professor himself. This man ended up becoming a Microsoft executive, COO of Baidu (Google of China) and is now the head of Y combinator. I read this story in the book the Third Door. One of his quotes paraphrased: "Luck is like a bus, it comes and go's, the only way your going to get on is to be prepared and have your ticket"



Ref:

https://leetcode.com/discuss/career/458113/my-inspirational-journey-to-study-in-the-us-and-then-summer-intern-at-google

Friday, December 20, 2019

[solution] how to mount external hard drive after reinstalling Ubuntu system

Note, your external hard drives are still there, you only need to mount them properly.
For example, in my case, I have two external hard drives, one has 4T space and antoher have 2T space. I want to name them as 4T and 2Tssd, respectively.
Here is how:

#step1: check the disk information, pay attention to the external drive:
sudo fdisk -l
#Your screen display lots of information, and you should find something like:
...
Disk /dev/sda: 3.7 TiB, 4000787030016 bytes, 7814037168 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disklabel type: gpt
Disk identifier: 6047D23B-339C-4AE5-90C5-C0DD7F75FE22

Device     Start        End    Sectors  Size Type
/dev/sda1   2048 7814035455 7814033408  3.7T Linux filesystem


Disk /dev/sdb: 1.9 TiB, 2048408248320 bytes, 4000797360 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0x93a92f38

Device     Boot Start        End    Sectors  Size Id Type
/dev/sdb1        2048 4000797359 4000795312  1.9T 83 Linux

#step2, prepare mounting poing
sudo mkdir -p /media/2Tssd
sudo mkdir -p /media/4T

#step3: mount
sudo mount /dev/sdb1 /media/2Tssd
sudo mount /dev/sda1 /media/4T