Thursday, November 6, 2025

How to enable R kernel in Ubuntu of WSL2

1. Activate WSL2

2. Install Ubuntu

3. sudo apt update

4. sudo apt install python3-venv

5. python3 -m venv ~/jupyter_env

6. source ~/jupyter_env/bin/activate

7. pip install jupyter

[8, install R

sudo apt install r-base-dev build-essential libcurl4-gnutls-dev libxml2-dev libssl-dev

[9. install IR

10. install.packages("tidyverse", "devtools", "IRkernel")

(watch for errors of missing dependencies. may have to redo sudo apt and R install.packages() a few times,

11. q()

12. jupyter lab

13. jupyter notebook


Friday, February 7, 2025

Today, I was cleaning up the space in Google photos, and found many videos and pics of my son when he was young. It reminded me of how energetic he was. He did a lot of sports and activities. I am afraid that we have made him uninterested in pursuing excellence of anything. How to motivate him? How to keep it sustained. Is it OK to do non-science? Sure. Anything at all. Business? OK. Let's think about this and put the plan in motion. I know it is never too late. It only gets a bit harder as time passes.

Monday, February 3, 2025

You don’t have to go fast, you just have to go!

We only have to keep going no matter how slow, how imperfect the results are, we will be surprised when we look back a year from now. 

Sunday, June 2, 2013

How to search at different location in Foursquare

1. At search box, tap "Current Location"


2. Type in location to search (province name, city name)


3. Tap on city, area, province name to select


4. Perform search as usual


How to use Foursquare and Maps on iOS for Navigation

0. Download Foursquare or update to the most recent version

1.  Start Foursquare


2. Search for destination, normally the name of the place will do. (For a place far from you, search outside current location by tapping on "Current Location", and changing name of city, area, or province.)


3. Choose the destination from search results. 


4. Tap on the map of the destination


5. Tap on "Get directions"


6. Choose route and tap Start


7. Follow turn-by-turn instructions


Sunday, February 5, 2012

happiness

其实幸福很简单:
1。 早上被闹钟吵醒,说明我还活着
2。 不得不从被窝里爬起来上班,说明没有失业
3。 收到一些短讯,吃饭喝茶聚聚,说明还有朋友想念你
4。 上司的话十分刺耳,说明老板在关注我
5。 衣服越来越紧,说明吃得还算不错
6。 很想休息但没批准,说明还有一定位置离不开你

其实1幸福2很3简单4:
1.其实 qí shí actually / that is not the case / in fact / really2.幸福 xìng fú blessed / happiness / happy3.很 hěn very / extremely4.简单 jiǎn dān simple / not complicated
1。 早上1被2闹钟3吵4醒5,说明6我7还8活着9
1.早上 zǎo shang early morning2.被 bèi by (marker for passive-voice sentences or clauses) / quilt / blanket / to cover / to wear3.闹钟 nào zhōng an alarm clock4.吵 chǎo to quarrel / to make a noise / noisy / to disturb by making a noise5.醒 xǐng to wake up / to be awake6.说明 shuō míng to explain / to illustrate / explanation / directions / caption7.我 wǒ I / me / myself8.还 hái also / in addition / more / still / else / still / yet / (not) yethuán (surname) / pay back / return9.活着 huó zhe alive
2。 不得不1从2被窝3里4爬5起来6上班7,说明8没有9失业10
1.不得不 bù dé bù have no choice or option but to / cannot but / have to / can't help it / can't avoid2.从 zòng second cousincōng lax / yielding / unhurriedcóng from / obey / observe / follow3.被窝 bèi wō warm inside space of quilts4.里 lǐ inside / internal / interiorlǐ Chinese mile / neighborhood / li, a Chinese unit of length = one-half kilometer / hometownlǐ village / within / inside5.爬 pá crawl / climb6.起来 qǐ lai beginning or continuing an action / upward movement / stand up7.上班 shàng bān to go to work / to be on duty / to start work / to go to the office8.说明 shuō míng to explain / to illustrate / explanation / directions / caption9.没有 méi yǒu haven't / hasn't / doesn't exist / to not have / to not be10.失业 shī yè unemployment
3。 收到1一些2短3讯4,吃饭5喝6茶7聚8聚9,说明10还有11朋友12想念13你14
1.收到 shōu dào receive2.一些 yī xiē some / a few / a little3.短 duǎn lack / short4.讯 xùn to question / to ask / to interrogate / rapid / speedy / fast / news / information5.吃饭 chī fàn to eat a meal6.喝 hè shout applausehē my goodness / to drink7.茶 chá tea / tea plant8.聚 jù form gathering / gatherjù yōu commit incest9.聚 jù form gathering / gatherjù yōu commit incest10.说明 shuō míng to explain / to illustrate / explanation / directions / caption11.还有 hái yǒu furthermore / in addition / still / also12.朋友 péng you friend13.想念 xiǎng niàn miss / remember with longing / long to see again14.你 nǐ you
4。 上司1的话2十分3刺耳4,说明5老板6在7关注8我9
1.上司 shàng si boss / superior2.的话 de huà if3.十分 shí fēn fully / completely / very4.刺耳 cì ěr irritating to the ear5.说明 shuō míng to explain / to illustrate / explanation / directions / caption6.老板 lǎo bǎn boss / business proprietor7.在 zài (located) at / in / exist8.关注 guān zhù follow (an issue) closely / to pay close attention to9.我 wǒ I / me / myself
5。 衣服1越来越2紧3,说明4吃5得6还7算8不错9
1.衣服 yī fu clothes2.越来越 yuè lái yuè more and more3.紧 jǐn tight / nervous / strict4.说明 shuō míng to explain / to illustrate / explanation / directions / caption5.吃 jí stammerchī eatchī eat / eradicate / destroy / receive6.得 děi to have to / must / ought to / to need tode a sentence particle used after a verb to show effect / degree or possibilitydé obtain / get / gain / proper / suitable / proud / contented / allow / permit / ready / finished7.还 hái also / in addition / more / still / else / still / yet / (not) yethuán (surname) / pay back / return8.算 suàn regard as / to figure / to calculate / to compute9.不错 bù cuò correct / right / not bad / pretty good
6。 很1想2休息3但4没5批准6,说明7还有8一定9位置10离不开11你12
1.很 hěn very / extremely2.想 xiǎng to think / to believe / to suppose / to wish / to want / to miss3.休息 xiū xi rest / to rest4.但 dàn but / yet / however / only / merely / still5.没 méi (negative prefix for verbs) / have not / notmò drowned / to end / to die / to inundate6.批准 pī zhǔn to approve / to ratify7.说明 shuō míng to explain / to illustrate / explanation / directions / caption8.还有 hái yǒu furthermore / in addition / still / also9.一定 yī dìng surely / certainly / necessarily / fixed / a certain (extent, etc.) / given / particular10.位置 wèi zhi position / place / seat11.离不开 lí bu kāi inseparable / inevitably linked to12.你 nǐ you