搜尋此網誌

2023年9月27日星期三

演算法

演算法是計算機科學非常重要的基礎科目。簡單來說,演算法就是用電腦算數學的學問,可以說是數學科目。

想要解決現實生活當中的各種問題,計算機科學家就把現實問題對應到數學問題,然後設計公式、把公式寫成程式,讓電腦執行程式計算答案 ── 這些公式就叫做演算法。

web.ntnu.edu.tw

Algorithm is a procedure for solving a mathematical problem in a finite number of steps that frequently involves repetition of an operation

broadly : a step-by-step procedure for solving a problem or accomplishing some end

The current term of choice for a problem-solving procedure, algorithm, is commonly used nowadays for the set of rules a machine (and especially a computer) follows to achieve a particular goal.

www.merriam-webster.com

Aimer – Atemonaku


When I was alone, there were countless stars at night.

If I close my eyes, stars are right there now.

I kept walking aimlessly. I kept walking even when I was tired.

I just want to stay praying forever.

ひとりきりだった夜も 数えきれない星々

今もずっと 目を瞑ってみればすぐそこに

あてもなく歩き続けた 疲れても歩き続けた

僕はずっと 祈りの中にいたいだけ


Full of scratches and mud

Stretch out your unreachable hand

Fragments of dreams and hopes that I want to grasp

Right now

傷だらけ 泥だらけ

届かない手を伸ばして

つかみたい夢や希望のかけら

今すぐ


Smile, smile, you don't have to be strong.

As long as she still has a kind smile, it is fine.

It's like blowing away all the thick cloud.

Your unique smile becomes strong.

Important words are now dancing in the sky.

笑っていて 笑っていて 強くなくていいんだよ

優しいままの その笑顔が 笑顔があればいいよ

曇り空も全部吹き飛ばすような

君だけの笑顔が 力に 強さになるんだ

大切な言葉が今 空を舞ってゆく


Protecting someone and having courage to fight for her.

There's more than just a particular shape and weight.

She believed in the warmth of our small fingers.

I just want to gently touch your heart.

だれかを守ることも たたかうための勇気も

形だって 重さだって ひとつじゃなくて

小さな指を繋いでた その温もりを信じてた

僕はそっと 心に触れていたいだけ


She stumbled and wandered.

Looking for a new path

The colorful fragments you want to discover.

Where is it?

つまずいて さまよって

新しい道探して

見つけたい色とりどりのかけら

どこかで


It's okay to smile, laugh, and stop.

The pain will go away after the tears dry.

It's like wrapping my frozen hands and melting them.

Genuine kindness becomes a bond and courage.

There's a voice echoing in our tied hearts.

笑っていて 笑っていて 立ち止まっていいんだよ

痛みは乾いた涙が 涙がつれて行くよ

凍えた手を包んで溶かすような

真っ直ぐな優しさが 絆に 勇気になるんだ

結んだ心にほら 声が響いてる


Smile, smile, you don't have to be strong.

All you need is to maintain a gentle smile.

Even if I fail, I don't feel pitiful.

When you get up, I am always right here to accompany with you.

It's like blowing away all the dense cloud.

Your unique smile becomes strong.

笑っていて 笑っていて 強くなくていいんだよ

優しいままの その笑顔が 笑顔があればいいよ

挫けたって 情けなくなんかないよ

立ち上がった時は いつでもいつでも そばにいるよ

曇り空も全部吹き飛ばすような

君だけの笑顔が 力に 強さになるんだ


There's a voice echoing in our tied hearts.

Important words are now dancing in the sky.

結んだ心にほら 声が響いてる

大切な言葉が今 空を舞ってゆく

2023年9月20日星期三

鴉片貿易不是中英雙方的專利

約翰 ‧ 福貝斯 (John Murray Forbes) 來到廣州後,住進他舅舅普金斯洋行 (Perkins & Company) 所在的房子,即所謂的瑞典商館,與渣甸洋行隔了五間門面 (雖有瑞典之名,裡面住的全是美國人)。一如其他大部分商行,普金斯洋行以雙面人示人︰在廣州公開進行的檯面上貿易,以茶葉、生絲、棉花等合法商品為買賣品,在伶仃島進行的檯面下貿易,以鴉片為買賣品。

史蒂芬 ‧ 普拉特《帝國暮色》

Double-boiled soup

 【經濟日報】青紅蘿蔔豬骨湯都致肥?營養師解構湯水陷阱

煲湯過程中,水溶性維他命B及C、氨基酸及短鏈脂肪酸會溶於湯,令湯水有味道。飲湯可以補身,但只是飲湯不吃湯渣,原來攝取的營養極少。湯料內的碳水化合物、纖維及肉類的蛋白質,結構較大,難溶於湯水,大部分營養仍鎖於湯渣,若只飲湯等於浪費營養。

食湯渣亦要注意,例如豬骨湯內的紅蘿蔔、粟米或中藥材,吸收了骨髓的脂肪,多吃可能致肥。用骨類材料煲湯,即使撇走湯面的油脂,仍有許多油份存在湯中,同樣容易致肥。

許多人以為用大骨熬湯可令鈣質融入湯水,其實能溶於湯水的鈣質很少,反而骨頭內的脂肪會溶入湯水。

長時間烹調的老火湯,則會使肉類中嘌呤溶於湯水,再被轉化為尿酸積聚體內,痛風症等患者宜少飲。

2023年9月17日星期日

Plastic Decomposition

聚丙烯是一種難以回收的塑料,在悉尼大學研究人員領導的一項新實驗中,兩種真菌菌株成功地生物降解了聚丙烯。

聚丙烯是一種常見的塑料,用於包裝、玩具、家具和時尚等多種產品,約佔世界塑料廢物的 28%,但其中只有 1% 被回收利用。

Polypropylene, a hard to recycle plastic, has successfully been biodegraded by two strains of fungi in a new experiment led by researchers at the University of Sydney.

It's a common plastic used for a wide variety of products from packaging and toys to furnishing and fashion, it accounts for roughly 28 percent of the world's plastic waste, but only 1 percent of it is recycled.

2023年9月12日星期二

被細屏吞沒的下一代

腦神經科學家證實,電子成癮正在「重新連結」人類大腦,降低注意力並使睡眠質量下降。 事實上,當成年人從現實世界中轉移到文本和推文中時,他們可以看到發生在自己身上的同樣事情。 「分心育兒」一詞的發明是為了描述那些幾乎無法再專注於自己的孩子的父母,當然還達不到每天強制戒掉幾個小時電子設備的程度。當學校本身越來越多地使用筆電和 iPad 作為學習工具時,家長有何能耐呢? 小小的屏幕彷彿吞噬了整個世界。

Neuroscientists confirmed that electronic addiction was "rewiring" the human brain, depleting attention span and degrading the quality of sleep. In fact, as they withdrew from the physical world into their texts and their tweets, adults could see the same things happening to themselves. The term "distracted parenting" was invented to describe the parent who could barely focus on his or her children anymore, certainly not to the degree required to enforce a few hours of abstinence from devices a day. And what good could a parent do when the schools themselves increasingly use laptops and iPads as instruments of learning? The small screens seems to have swallowed the world.

Natural Causes by Barbara Ehrenreich

DSLR Beginner

18-55mm f/3.5-5.6 means that the lens has a lens speed of f/3.5 at the 18mm focal length, but a lens speed of f/5.6 at the 55mm focal length.

EF-S 18-55mm f/3.5-5.6 IS II is a standard zoom offering a 28.8-88mm equivalent focal length range.

Lens speed refers to the amount of light that travels through the lens while the shutter is open. This is controlled by the size of aperture. The faster a lens, the larger the maximum aperture in the diaphragm and the more light will hit the sensor at the same shutter speed.

Focal length is the distance between the point of convergence of your lens and the sensor or film recording the image. The focal length of your film or digital camera lens dictates how much of the scene your camera will be able to capture.

Lens focal length tells us the angle of view—how much of the scene will be captured—and the magnification—how large individual elements will be. The longer the focal length, the narrower the angle of view and the higher the magnification, and vice versa.

Depth of field is the distance between the closest and farthest objects in a photo that appears acceptably sharp. Large apertures, which correlate to small f-stop numbers, produce a very shallow depth of field, and vice versa. Another important factor affecting depth of field is the distance between the camera and the subject. The shorter that distance, the smaller the depth of field.