Screenshot of the week 2022/09/30
This week I start building my roguelike cultivation action game. I think it would be a long journey.
This week I start building my roguelike cultivation action game. I think it would be a long journey.
1 | gpg --cipher-algo AES256 \ |
1 | gpg --no-symkey-cache \ |
If directly using gpg -c XXX and gpg -d XXX the gpg-agent will prompt the password asking dialog.
See GPG manual:
1 | If this command is used with --batch, --pinentry-mode has been set to loopback, and one of |
So just set it with --batch and --pinentry-mode loopback, then can use the --passphrase.
--no-symkey-cache to disable symmetric key cached and --cipher-algo to set algorithm.
This week I collected my invoice data from Taiwan government API, use the same PWA framework. Good to see the environment is built! :)
In the past week, I created a Pomodoro app! Built with next.js and Flask, custom components mimic iOS. Can save to home to launch as web app. It’s happy to build a self-used app! I can now collect my data for analysis!
These days I’m building several next.js apps and want to share some libraries. In the beginning plain js file without compile just work well. But when it comes to jsx component element with sass component-level module, next.js start to fail.
After several tries, I found a solution:
yarn link to link shared librarynext-transpile-module to transpile libraryYesterday, I met a friend who is incapable of reading Chinese fluently. When he reads, each word is bumping with random wrong orders, so he must pause at each word to understand the meaning. When watching Netflix, it’s impossible for him to read the subtitle, so he has to watch with Chinese dubbing. That is so-called Dyslexia, which affects 3 ~ 7% of the population, and up to 20% have some degree of this disability.
Yesterday I finally took the JLPT N4 exam. It takes me about 100+ hours to study and prepare for this exam this year. I once tried to learn Japanese in my 100 days challenge last year but failed, so this year I set the JLPT N4 as my annual goal.
I don’t have Japanese basic, every time I restart my Japanese study program I almost re-learn the 50 sounds Hiragana and Katakana. Online resource has less systematic, so this time I start with 大家學標準日本語, 3 volumes from easy to hard.
一開始計算蛋白質量的時候,會純粹只看蛋白質多寡
比如說雞胸肉一塊 20g,蛋一顆 7g 之類的
但是這樣其實忽略了蛋白質本身的含量比例
比如說牛肉要吃到 20g 蛋白質,那獲取的脂肪也會要很多
同樣 10g 蛋白質,300ml 無糖豆漿和牛奶都可以,不過無糖豆漿熱量少了一半
蛋白質的熱量佔總食物熱量,這個比例是很重要的!!!
不知道為什麼這個觀念比較少在網路上看到。
附上我自己整理 一些常吃食物的紀錄營養表,有按照蛋白質含量排序。
最近覺得時間過好快,一天一天,一週一週,一年一年好像就過去了
這個速度下去好像一下子就要中年、老了、死亡了
想做的事情還好多,已經嘗試的也很多;但想做的事情是做不完的,做了一件事又會想做更多的事
那些想做卻一直覺得「先做完XXX再來做OOO吧!」的念頭可能一放就會過了好久
有些事情就不做了吧,很多事可能就不會做完的,很多看到一半的書也沒關係
把時間花在喜歡的人上做喜歡的事
享受現在
記得以前看《涼宮春日的憂鬱》裡面,涼宮覺得世界很無聊想要有外星人、未來人和超能力者來到這個世界。這幾年加密貨幣逐漸普及,交易流通更多,也有更多傳統業者支援加密貨幣付款,就好像開了一個大門歡迎這些人的到來。
加密貨幣是基於密碼學的,如果未來人或外星人有相較於現在人類稍微高一點的科技能力的話,那麼只要一接上比特幣或以太幣的網路,透過更強大的運算力,應該很容易可以瞬間挖到那個幣。現在比特幣和以太幣這些 PoW (Proof of Work) 的網路,都是靠工作量證明,目前是靠電腦的運算能力證明工作量,幾十年前人類可以靠著比現在智慧型手機還要低很多的計算量就可以上月球,現在的一隻手機回到過去,如果接上過去的網路的話,應該就可以很容易壓制過去的計算量。
但是為了不能讓運算被懷疑,瞬間壓制的運算也只能讓他在統計顯著性非常低落的情況下不太頻繁的挖到幣,比如說只有低於 0.1% 的交易是未來人,不然現世的人族就會發現現在他們挖的幣怎麼不是彼此所擁有,就會開始懷疑這套系統,就有機會暴露了未來人的身份。
以太幣這幾年在推動的 PoS (Proof of stake) 因為不是靠運算量,而是靠持有貨幣的節點去驗證,相對於未來人可能就沒有那麼友善。不過如果在這幾年內已經累積足夠量的當代貨幣的話,那在從 PoW 轉入 PoS 之後,就還是可以延續這個優勢。
一開始純粹基於區塊鏈的去中心化是不需要驗證身份的,但是後來怕洗錢和不法金流,所以中心化的交易所很多都會進行身份的驗證,這對於未來人是不利的。不過後來又有相對應的解方,也就是對立於 Cefi 的 Defi,讓很多交易都可以發生在去中心化的脈絡下。
某些程度上來說,不法交易者和未來人、外星人是站在同一個陣線上的。
不過如果再更早年之前,這些勢力已經有進入到傳統的體系裡面,那麼可能就跟一些特務組織一樣,可以輕鬆獲得多重身份了。
上面提到的未來人好像都是同一陣營的,如果未來人本身也有不同陣營的話,在某些時間點已經入侵的某些陣營的勢力,也可能會想要降低其他勢力入侵的可能性。另外,容不容易入侵的程度也會影響到未來人犯罪的可能,如果未來的法律有規定一些回到過去的標準,如果有些回溯是禁止的,那可能就會有犯罪的個體回到過去,那他可能就需要透過個人設備在這個網路中獲取加密貨幣。