— Me@2025-04-15 11:52:10 AM
.
.
2025.04.15 Tuesday (c) All rights reserved by ACHK

import System.CPUTime import Text.Printf (printf) import Data.List (findIndex) time :: (Show a) => a -> IO a time result = do start <- getCPUTime let computed = result end <- computed `seq` getCPUTime let diff = (fromIntegral (end - start)::Float)/(10^12) printf "Result: %s\n Time taken: %.6f seconds\n" (show computed) diff return computed matrixMultiply :: Num a => [(a, a)] -> [(a, a)] -> [(a, a)] matrixMultiply [(a11, a12), (a21, a22)] [(b11, b12), (b21, b22)] = [ (a11*b11 + a12*b21, a11*b12 + a12*b22) , (a21*b11 + a22*b21, a21*b12 + a22*b22) ] matrixPower :: Num a => [(a, a)] -> Int -> [(a, a)] matrixPower m 1 = m matrixPower m n = let half = matrixPower m (n `div` 2) squared = matrixMultiply half half in if odd n then matrixMultiply squared m else squared digitsInNumber :: (Show a, Integral a) => a -> Int digitsInNumber = length . show fibNth :: Integral a => a -> a fibNth n | n <= 2 = 1 | otherwise = fst $ head $ matrixPower [(1, 1), (1, 0)] (fromIntegral (n - 1)) fibUpperBound :: Int -> Integer fibUpperBound digitCount = let phi = 1.618033988749895 logPhi = logBase 10 phi log5 = logBase 10 5 in ceiling $ (fromIntegral digitCount - 1 + (log5 / 2)) / logPhi binarySearchFibIndex :: Int -> Maybe Integer binarySearchFibIndex digitCount = let upperBound = fibUpperBound digitCount binarySearch left right | left > right = Nothing | otherwise = let mid = left + (right - left) `div` 2 midFib = fibNth mid midDigits = digitsInNumber midFib in case compare midDigits digitCount of EQ -> let prevDigits = digitsInNumber $ fibNth (mid - 1) in if prevDigits < digitCount then Just mid else binarySearch left (mid - 1) LT -> binarySearch (mid + 1) right GT -> binarySearch left (mid - 1) in binarySearch 1 upperBound
λ> time $ binarySearchFibIndex 1000 Result: Just 4782 Time taken: 0.000852 seconds Just 4782 λ>
λ> time $ binarySearchFibIndex 1000 Result: Just 4782 Time taken: 0.006747 seconds Just 4782 λ>
— Me@2024-12-25 07:00:13 AM
.
.
2025.01.01 Wednesday (c) All rights reserved by ACHK
.
.
2024.09.17 Tuesday (c) All rights reserved by ACHK
Chrono Trigger 4
.
“Chrono Break” is an action-adventure role-playing game that serves as an unofficial sequel to the beloved classic “Chrono Trigger”. Set in a richly detailed world filled with time travel, it follows a group of characters as they navigate through various timelines to prevent a cataclysmic event that threatens their existence.
The story begins in the year 2300, where a mysterious phenomenon called the “Time Rift” begins to disrupt the flow of time. This anomaly causes historical events to intertwine and creates chaos across different eras. The protagonist, a young hero named Riku, is drawn into this temporal chaos when he discovers a strange artifact that allows him to manipulate time. With the help of allies from different periods, including the brave warrior Alysia from the Middle Ages and the brilliant scientist Kaito from the future, Riku embarks on a quest to uncover the origins of the Time Rift.
As Riku and his friends travel through time, they encounter familiar locations and characters from “Chrono Trigger”, as well as new faces who add depth to the narrative. Each era presents unique challenges, from battling fearsome monsters to solving intricate puzzles that affect the timeline. The group learns that the Time Rift is a result of a powerful entity known as the “Chrono Warden”, who seeks to rewrite history for its own gain.
— AI
.
.
2024.08.05 Monday ACHK

The traditional diffusion equation bore a family resemblance to the standard Schrödinger equation; the crucial difference lay in a single exponent where the quantum mechanical version was an imaginary factor, . Lacking that
, diffusion was motion without inertia, motion without momentum. Individual molecules of perfume carry inertia, but their aggregate wafting through air, the sum of innumerable random collisions, does not. With the
, quantum mechanics could incorporate inertia, a particle’s memory of its past velocity. The imaginary factor in the exponent mingled velocity and time in the necessary way. In a sense, quantum mechanics was diffusion in imaginary time.
— page 175
— Genius: The Life and Science of Richard Feynman
— James Gleick
.
.
2024.07.10 Wednesday ACHK
Yes. It is Nolan. But it is drama.
Wormhole cannot be passed, physically. The past cannot be influenced by now, logically.
— Me@2015-09-28 03:23:32 PM
.
.
2023.09.07 Thursday (c) All rights reserved by ACHK
Adaptation
.
No movie can record its whole “the making of”.
Even two mutual movies [that record each other’s “the making of”] cannot work around this.
— Me@2015-10-19 06:13:58 PM
.
.
2023.07.31 Monday (c) All rights reserved by ACHK
Crucial MX500 1TB 3D NAND SATA SSD
.

Final Fantasy 7 Remake Steam version testing result:
1. With GTX 1050 Ti as the GPU, the bottleneck is the GPU, not the CPU, even though my CPU itself was weak.
2. However, once the GPU got upgraded, the CPU became the bottleneck.
The following settings can make the game smoother:
3. Set the Texture to Low. However, I do not recommend that.
4. Set the Shadow to Low.
5. Set the number of background people to be zero.
6. Set the resolution to 720p.
.
The following are the less obvious steps to release some CPU pressure:
7. Turn Steam into offline mode.
8. Turn off as many as other programs as possible.
9. In the controller setting, change the controller from the default “XInput” to “XBox 360“. However, I do not recommend that because that would disable the game’s rumble function.
.
After these settings, the game should be able to load Cloud’s headache memory cinematic scenes.
— Me@2023-01-11 12:39:59 AM
.
10. If not, start to repeat pressing the pause button every one second when a scene starts to load.
— Me@2023.01.23 05:17:38 PM
.
.
2023.01.24 Tuesday (c) All rights reserved by ACHK

Factorio is a construction and management simulation game developed by the Czech studio Wube Software.
— Wikipedia on Factorio
— Me@2016-03-13 07:43:04 AM
— Me@2023-01-10 09:28:18 AM
.
.
2023.01.10 Tuesday ACHK
兩項重點必須遵守:一是取出用過的檔案不要放回原位,而放進最左邊,如此日復一日,常用的資料集中在左邊,被「推擠」到最右邊的,多半是不常用的資料。二是將同學錄、電話簿、保證書、說明書等要永久或長期保存的資料,放在書架最右邊,標上特別記號。
「野口式推擠建檔」的優點包括,輕鬆隨手地就可以把桌上的資料整理好,不像以前要剪貼、分類,弄得人仰馬翻;最近常用的檔案都集中在左邊,立刻可以找到所需資料,而靠近右邊,比較不常用的資料,可以定期查看,丟掉不用的資料。
— 「超級」整理.超高效率
— 天下雜誌 173 期
— 孫曉萍
.
.
2022.07.02 Saturday ACHK
日本著名的經濟學者〈野口悠紀雄〉歸納他個人在整理資料、安排時間的經驗,提出各項實際做法,先後出版《「超級」整理法》、《「超級」整理法續集.時間篇》,連獲好評。
…
從小老師、父母都教導我們,「整理,一定要先分類」。但如果整理資料的目的,是為了日後需要時快速找到,那麼,對個人而言,「分類」是不可能,而且徒勞無功的。
分門別類時,最常碰到「牆頭草」問題。例如,在設定「土地」類、「稅」類等檔案後,如果出現一份關於「土地課稅」的資料,到底該分到哪一邊?有不少人將無法歸類的資料,分到「其他」檔案,不消數週,「其他」檔的資料很可能多到無法收拾。
— 「超級」整理.超高效率
— 天下雜誌173期
— 孫曉萍
.

在野口教授的另一本書《超上班法》中,他提到,應該用年份月份來分類。

— Me@2022-06-14 03:54:57 PM
.
.
2022.06.14 Tuesday ACHK

Inside Out is a 2015 American computer-animated film directed by Pete Docter, with a screenplay by him, Meg LeFauve, and Josh Cooley.
— Wikipedia
.
.
2022.02.23 Wednesday ACHK

欲求仙道 先求人道
— 仙劍奇俠傳四
.
Sharing the food is to me more important than arguing about beliefs. Jesus, according to the gospels, thought so too.
— Freeman Dyson
.
.
2022.02.15 Tuesday ACHK

.
.
2022.02.11 Friday ACHK
深淵 4
.

Shortly before arriving, Tidus learns that he, Jecht, and the Zanarkand they hail from are summoned entities akin to aeons based on the original Zanarkand and its people. Long ago, the original Zanarkand battled Bevelle in a machina war, in which the former was defeated. Zanarkand’s survivors became “fayth” so that they could use their memories of Zanarkand to create a new city in their image, removed from the reality of Spira. Once they reach Zanarkand, Yunalesca—the first summoner to defeat Sin and unsent ever since—tells the group that the Final Aeon is created from the fayth of one close to the summoner. After defeating Sin, the Final Aeon kills the summoner and transforms into a new Sin, which has caused its cycle of rebirth to continue. The group decides against using the Final Aeon, due to the futile sacrifices it carries and the fact that Sin would still be reborn. Yunalesca tries to kill Tidus’ group, but she is defeated and vanishes, ending hope of ever attaining the Final Aeon.
— Wikipedia on Final Fantasy X
.
.
2022.02.04 Friday ACHK
Transformers: Fall of Cybertron is a third-person shooter video game based on the Transformers franchise, developed by High Moon Studios and published by Activision. It is the sequel to the 2010 video game Transformers: War for Cybertron, and directly follows the events of that game, as the Autobots struggle to defeat their Decepticon foes in a civil war for their home planet of Cybertron.

The game tells the story of the Transformers, fictional robotic life forms, and the final days of conflict on their home planet of Cybertron. An origins subplot for the Dinobots is also told, reimagined from the Transformers: Generation 1 continuity. Other subplots also tell an adapted story for several characters. Some of the voice cast from the 1984 series The Transformers return to reprise their roles, including Peter Cullen as Autobot leader Optimus Prime and Gregg Berger as Grimlock. Other actors return to reprise their roles from Transformers: War for Cybertron.
— Wikipedia on Transformers: Fall of Cybertron
.
.
2022.01.12 Wednesday ACHK
未來報告
.

Minority Report is a 2002 American science fiction action film directed by Steven Spielberg, starring Tom Cruise, and loosely based on the 1956 short story “The Minority Report” by Philip K. Dick. The picture is set in Washington, D.C. and Northern Virginia in the year 2054, where Precrime, a specialized police department, apprehends criminals based on foreknowledge provided by three psychics called “precogs”.
— Wikipedia on Minority Report
.
.
2021.12.14 Tuesday ACHK

Logan is a 2017 American superhero film starring Hugh Jackman as the titular character.
— Wikipedia on Logan (film)
— Me@2017-06-12 09:24:16 PM
— Me@2021-02-21 12:43:45 PM
.
The movies X-Men (2000) and X2 (2003) are prerequisites.
— Me@2021-02-21 12:43:45 PM
.
.
2021.02.21 Sunday ACHK
You must be logged in to post a comment.