利用 Google Trending 搜尋趨勢: https://trends.google.com/trending?geo=TW 取得最近的搜尋趨勢.
上面的連結是取得台灣地區的搜尋趨勢, 而其他地方的如下:
若要取得這個內容, 有沒有 API工具可以利用呢? 看起來 Google 目前沒有這個公開的 API可供利用, 不過這家公司提供了這個服務:
其中的 Google Trends API 可以提供這個結果:
利用 Google Trending 搜尋趨勢: https://trends.google.com/trending?geo=TW 取得最近的搜尋趨勢.
上面的連結是取得台灣地區的搜尋趨勢, 而其他地方的如下:
若要取得這個內容, 有沒有 API工具可以利用呢? 看起來 Google 目前沒有這個公開的 API可供利用, 不過這家公司提供了這個服務:
其中的 Google Trends API 可以提供這個結果:
Yahoo 電商的通知信如下:
親愛的用戶您好:
感謝您對我們的信任與支持,謹在此通知您,自即日起,香港商雅虎資訊股份有限公司台灣分公司所提供之Yahoo Taiwan電子商務服務係隸屬於統一集團旗下之服務。
本公司已針對Yahoo Taiwan電子商務服務條款(請點選參閱全文)及Yahoo Taiwan電子商務隱私權保護政策(請點選參閱全文)進行更新,當您繼續使用本公司電子商務服務,即表示您同意並接受更新後之「Yahoo Taiwan電子商務服務條款」及「Yahoo Taiwan電子商務隱私權保護政策」。
如有任何問題,請洽詢本公司客服:https://tw.help.yahoo.com/kb/SLN36801.html
香港商雅虎資訊股份有限公司台灣分公司
經理人:Peter Nac Wong (黃吉樂)
看起來已被統一集團併購完成了. 根據服務條款中的內容, 包含以下服務:
Yahoo購物中心、Yahoo購物中心商店、Yahoo中古車及Yahoo拍賣等在內的電子商務服務
請參閱相關新聞:
之前介紹了使用 Cloudflare worker來進行客戶端 IP調查的小程式(https://diary.tw/archives/2182), 最近新增一些功能上來.
{
"geoplugin_request":"12.34.56.78",
"geoplugin_status":200,
"geoplugin_delay":"1ms",
"geoplugin_credit":"Some of the returned data includes GeoLite2 data created by MaxMind, available from <a href='https:\/\/www.maxmind.com'>https:\/\/www.maxmind.com<\/a>.",
"geoplugin_city":"New Taipei City",
"geoplugin_region":"New Taipei City",
"geoplugin_regionCode":"NWT",
"geoplugin_regionName":"New Taipei City",
"geoplugin_areaCode":"",
"geoplugin_dmaCode":"",
"geoplugin_countryCode":"TW",
"geoplugin_countryName":"Taiwan",
"geoplugin_inEU":0,
"geoplugin_euVATrate":false,
"geoplugin_continentCode":"AS",
"geoplugin_continentName":"Asia",
"geoplugin_latitude":"24.9466",
"geoplugin_longitude":"121.586",
"geoplugin_locationAccuracyRadius":"20",
"geoplugin_timezone":"Asia\/Taipei",
"geoplugin_currencyCode":"TWD",
"geoplugin_currencySymbol":"NT$",
"geoplugin_currencySymbol_UTF8":"NT$",
"geoplugin_currencyConverter":32.0408
}
請大家多加利用 IP查找小功具: https://ip.diary.tw
[2026/5/30 10:36]
由於原來的 ip geolocation service 已變成只有付費方案了如下:
{
"geoplugin_status":403,
"geoplugin_message": "geoPlugin API is no longer available for free use. To continue access, please upgrade to a paid plan",
"geoplugin_url": "https://www.geoplugin.com/subscription"
}
所以改用仍有 free tier 的另一個服務: https://ipgeolocation.io/, 免費就有一定的使用量可供應用, API 也簡單, 只需要註冊帳戶, 就可以拿 API Token 去訪問取得資訊, API 使用方式請參考:
https://ipgeolocation.io/documentation/ip-location-api.html
調整一下程式碼, 之後訪問 https://ip.diary.tw/?data=geo 時, 就可以拿到對應的回傳結果如下:
{
"ip": "12.34.56.78",
"location": {
"continent_code": "AS",
"continent_name": "Asia",
"country_code2": "TW",
"country_code3": "TWN",
"country_name": "Taiwan",
"country_name_official": "Republic of China",
"country_capital": "Taipei",
"state_prov": "New Taipei City",
"state_code": "TW-NWT",
"district": "Banqiao District",
"city": "New Taipei City",
"zipcode": "231",
"latitude": "24.97828",
"longitude": "121.53948",
"is_eu": false,
"country_flag": "https://ipgeolocation.io/static/flags/tw_64.png",
"geoname_id": "11697228",
"country_emoji": "🇹🇼"
},
"country_metadata": {
"calling_code": "+886",
"tld": ".tw",
"languages": [
"zh-TW",
"zh",
"nan",
"hak"
]
},
"currency": {
"code": "TWD",
"name": "New Taiwan Dollar",
"symbol": "NT$"
},
"asn": {
"as_number": "AS38841",
"organization": "kbro CO. Ltd.",
"country": "TW"
},
"time_zone": {
"name": "Asia/Taipei",
"offset": 8,
"offset_with_dst": 8,
"current_time": "2026-05-30 10:34:55.910+0800",
"current_time_unix": 1780108495.91,
"current_tz_abbreviation": "CST",
"current_tz_full_name": "Taipei Standard Time",
"standard_tz_abbreviation": "CST",
"standard_tz_full_name": "Taipei Standard Time",
"is_dst": false,
"dst_savings": 0,
"dst_exists": false,
"dst_tz_abbreviation": "",
"dst_tz_full_name": "",
"dst_start": {},
"dst_end": {}
}
}
資訊更多元更豐富了, 歡迎多加利用.
AI運算需要大量的電力.
先來看一下相關新聞:
https://finance.ettoday.net/news/2794524
人工智慧(AI)用電可觀,台電董事長曾文生今天表示,未來AI生活型態對台灣用電影響主要在製造端,包含GPU、CoWoS、伺服器生產;為減緩輸電瓶頸,目前桃園以北地區已不再核供5MW以上資料中心,他呼籲高科技產業到「支持電源開發的縣市發展」。
無論哪個國家, 都在持續努力跟上這波算力需求大戰, 不過基礎設施很重要, 算力其實是基於各式上游基礎而來, 如 GPU, Server, 機房, 網路, 土地, 電力等.
電力應用除了在直接算力上發生外, 另一個相當大的耗用在降溫, 也就是散熱空調, 當然大家也都在努力做更好的設計來改善這個散熱所需要的電力問題. 這個議題可以參考 PUE (Power usage effectiveness – https://zh.wikipedia.org/zh-tw/%E9%9B%BB%E8%83%BD%E4%BD%BF%E7%94%A8%E6%95%88%E7%8E%87)
另外有關於輸電問題, 長程輸電, 也會有對應的電力損耗, 請參考: https://zh.wikipedia.org/zh-tw/%E8%BC%B8%E9%9B%BB%E7%B3%BB%E7%B5%B1#%E6%90%8D%E8%80%97
要能兼顧國力、經濟發展AI算力, 又要能有效率, 降低損耗, 這都是很重要的課題.
不過話說回來, 生意的本質在成本效益的轉換, 若有企業出得起, 設置在哪會是什麼問題嗎?
繼續閱讀:
最近的AI工具熱潮, 大家跟上了嗎?
先列出幾個常用的AI工具:
再來利用這幾個AI工具自己來比較, 題目如下:
請比較以下幾個 AI 工具:
Perplexity 回答如下:
Perplexity AI
ChatGPT
Gemini (Google AI)
Claude (Anthropic)
GitHub Copilot (Microsoft)
總的來說,這些 AI 工具都具有強大的自然語言理解和生成能力,在問答、寫作、程式開發等方面有不同的特點和優勢。選擇時可以根據具體需求和使用場景進行選擇。
(可以參考原始回答: https://www.perplexity.ai/search/qing-bi-jiao-yi-xia-ji-ge-ai-g-wu.ArzfNSWu69ieeKD3tAQ#0)
題目為:
a, b ∈N, a+b+ab=62, 求 a+b =?
解:
a + b + ab = a(b+1) + b = 62
a(b+1) + b + 1 = 63
(a+1)(b+1)=63
∵a, b ∈N, 因式分解 63 為 9 x 7 或 21 x 3
於是 (a+1)(b+1)=9×7 或 (a+1)(b+1)=21×3
∴a+1=9, b+1=7 或 a+1=21, b+1=3
得 a+b=14 或 a+b=22 (ie. (a,b)=(8,6),(6,8),(20,2)(2,20))
可能是某次更新後, 在 iTerm2下的 Trackpad兩指上下滑動時, 發現只會出現指令的前後則內容, 而無法控制畫面內容的上下滾動.
查了一下資料, 有這篇: https://superuser.com/questions/1753719/how-do-i-get-mouse-scroll-in-less-to-work-in-iterm2-like-it-does-in-terminal
不過我原本的 Scroll wheel sends arrow keys when in alternate screen mode設定就是 Yes了, 而且從字義上來看反而應該要選 No才對, 調整後, 果然一切正常了, 太好了.

如何選到這個選項? 左上角的 [iTerm2] [Settings] [Advanced] 捲到 Mouse 這個區塊, 就可以找到這個設定囉.
根據 AWS的官方資料 – https://docs.aws.amazon.com/dlami/latest/devguide/gpu.html, 得到共有以下幾種 EC2中使用 GPU: P3, P4, P5, G3, G4, G5, G6, G5g, 其中 G5g 是 ARM-Based CPU, 而 GPU又有以下幾種: Tesla V100, Tesla A100, Tesla H100, Tesla M60, T4, A10G, L4.
根據上面的內容, 整理一下相關的價格與 GPU數量, GPU記憶體等資料, 彙整成一個方便使用的查找表:
請參考: https://sample.diary.tw/aws-gpu/
大家可以多加利用, 查找使用上適合的價格與規格資料.
利用 “公開資訊觀測站財務報告附註揭露之員工福利(薪資)資訊” – https://mops.twse.com.tw/mops/web/t100sb14 的資料, 配合 FooTable 功能 (FooTable 可以參考這篇文章: https://diary.tw/archives/2140), 實作了一個查詢由 107年至 112年的上市公司則務報告附註揭露之員工福利(薪資)資料查詢功能.
請參考: https://sample.diary.tw/salary/
這份資料集是由 107年開始至 112年, 所以 107年沒有前一年的資料, 有需要查詢參考研究的朋友, 請多多利用.
[2024/7/11 23:12] 彙整各年資料
利用 lookerstudio (formerly datastudio) 來進行彙整, 製作互動報表方式來呈現, 請參考: https://diary.tw/s/twsalaries
透過這個報表, 可以很快的查詢一些有趣的資料, 例如台積電在107~112年的員工人數與平均薪資, 你只需要將公司名稱設定為”台積電”, 再依年度排序出結果, 即可得到如下的報表:

這樣是不是十分方便呢? 大家也可以試試查找自己想要的資料.
工具連結: https://sample.diary.tw/urlshare/
在分享連結給朋友時, 往往會因為有過多的追蹤碼(Tracking Code)像是 utm_*, 或是 facebook 的 fbclid 等, 很長以外, 也不想將追蹤碼被分享, 這個時候, 往往就需要手動將 URL上的對應參數給移除後再分享出去.
利用 Javascript 中的 URL物件與 searchParams 可以方便與快速地移除這些小東西, 程式碼主要用到了 searchParams 中的 delete 即可, 例如: