<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:blogger='http://schemas.google.com/blogger/2008' xmlns:georss='http://www.georss.org/georss' xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-5273493908896097193</id><updated>2026-09-11T15:35:55.785+08:00</updated><category term="旅遊"/><category term="心情"/><category term="敗家"/><category term="程式"/><category term="日本"/><category term="攝影"/><category term="東京"/><category term="漫畫"/><category term="黑特"/><category term="JAVA"/><category term="KUSO"/><category term="電動"/><category term="分享"/><category term="籃球"/><category term="網路"/><category term="閱讀"/><category term="食記"/><category term="電腦"/><category term="公告"/><category term="android"/><category term="書籍"/><category term="熱血"/><category term="RoR"/><category term="日劇"/><category term="閃光"/><category term="結婚"/><category term="貓"/><category term="專案"/><category term="相機"/><category term="HTC"/><category term="Uniqlo"/><category term="遊戲"/><category term="Eclipse"/><category term="上海"/><category term="電影"/><category term="香港"/><category term="JBoss"/><category term="NBA Jersey"/><category term="SONY"/><category term="新宿"/><category term="球衣"/><category term="Apple"/><category term="上野"/><category term="台場"/><category term="日文"/><category term="鐮倉"/><category term="Docker"/><category term="NBA 2K10"/><category term="NIKE"/><category term="Vagrant"/><category term="WebService"/><category term="健康"/><category term="圓圓"/><category term="新竹"/><category term="新竹攻城獅"/><category term="橫濱"/><category term="AllJoyn"/><category term="INTELLIJ IDEA"/><category term="Jenkins"/><category term="MacBook Pro 13&quot;"/><category term="P2P"/><category term="QCOM"/><category term="Ruby"/><category term="Tattoo"/><category term="Tomcat"/><category term="eeepc"/><category term="iPod"/><category term="吉祥寺"/><category term="大阪"/><category term="懷舊"/><category term="折疊腳踏車"/><category term="料理"/><category term="櫻花"/><category term="高通"/><category term="Apple TV"/><category term="BOSS"/><category term="BenQ"/><category term="Car"/><category term="Continuous Delivery"/><category term="Facebook"/><category term="Google Sheets"/><category term="MAC"/><category term="MYSQL"/><category term="NBA"/><category term="NBA 2K11"/><category term="RxJava"/><category term="SOA"/><category term="Sasuke"/><category term="asus"/><category term="blogger"/><category term="diablo"/><category term="hypo"/><category term="五十音"/><category term="井之頭公園"/><category term="南韓"/><category term="台中"/><category term="奈良"/><category term="富士電視台"/><category term="廣告"/><category term="新竹街口攻城獅"/><category term="池袋"/><category term="沖繩"/><category term="理財"/><category term="生涯"/><category term="職場"/><category term="自由之丘"/><category term="證照"/><category term="逢甲"/><category term="鍵盤"/><category term="阿美橫丁"/><category term="1933老場坊"/><category term="ANA"/><category term="AQUA CITY"/><category term="ARNUVO"/><category term="AeroGear"/><category term="Amazon S3"/><category term="Android 4.0.3"/><category term="Android File Transfer"/><category term="Around 40"/><category term="Burn Rate"/><category term="C#"/><category term="CHANGE"/><category term="COSTCO"/><category term="CentOS"/><category term="ChaCha"/><category term="Chromecast"/><category term="Cloudflare"/><category term="Coolermaster CM690 II Plus"/><category term="Cube Hotel"/><category term="DECKS TOKYO BEACH"/><category term="ELK stack"/><category term="ESB"/><category term="EVO 3D"/><category term="Encode"/><category term="Encrypt"/><category term="Exception"/><category term="Freedom"/><category term="Fugle"/><category term="GCM"/><category term="GUI"/><category term="Galaxy Note"/><category term="Galaxy S2"/><category term="Git"/><category term="Goguon"/><category term="Google Document"/><category term="Google Drive"/><category term="Google TV"/><category term="Google 試算表"/><category term="Hash"/><category term="HornetQ"/><category term="Humanscale"/><category term="IG"/><category term="Incredible S"/><category term="Instagram"/><category term="J2EE"/><category term="JCCONF"/><category term="JMS"/><category term="JUnit"/><category term="K360"/><category term="KOBE"/><category term="LG"/><category term="LINE"/><category term="Last Friends"/><category term="LightRoom"/><category term="Lumia 800"/><category term="MEGA WEB"/><category term="MUSCLE PARK"/><category term="MacBook Pro 14&quot;"/><category term="Magic"/><category term="MultiBio"/><category term="NBA 2K12"/><category term="NBA 2K13"/><category term="NBA 2K14"/><category term="NBA 2K22"/><category term="NBA 2K9"/><category term="NDS"/><category term="Nisson"/><category term="Nokia"/><category term="OAuth2"/><category term="OBS"/><category term="OLにっぽん"/><category term="OS X 10.10"/><category term="Optimus me"/><category term="Optional"/><category term="P-League"/><category term="POI"/><category term="Palette Town"/><category term="Pixar"/><category term="Powerpoint"/><category term="Python"/><category term="Quartz"/><category term="RO濾水器"/><category term="RPC"/><category term="Radeon HD 6770"/><category term="Raider 4G"/><category term="Raspberry Pi"/><category term="Real"/><category term="Redmine"/><category term="Rookies"/><category term="RxPermissions"/><category term="S37-5500"/><category term="SL32-6500"/><category term="SOAP"/><category term="STAR TREK"/><category term="Samsung"/><category term="StartCraft"/><category term="Sunshine City"/><category term="Swing"/><category term="Switch"/><category term="SwitchYard"/><category term="TDD"/><category term="TODOIST"/><category term="Teambox"/><category term="Tiida"/><category term="Visual Studio"/><category term="WSDL"/><category term="Windows 工作排程器"/><category term="Xbox"/><category term="YouTube"/><category term="YouTuber"/><category term="ZE551ML"/><category term="Zenfone"/><category term="coursera"/><category term="crawler"/><category term="document"/><category term="elasticsearch"/><category term="google"/><category term="groovy"/><category term="i5 3470"/><category term="i9100"/><category term="iPad"/><category term="iterm2"/><category term="jekyll"/><category term="kibana"/><category term="legend"/><category term="logstash"/><category term="m1 max"/><category term="mail"/><category term="nexsus 4"/><category term="scrum"/><category term="sketch3"/><category term="spark"/><category term="ssh"/><category term="sshpass"/><category term="stream"/><category term="ticket"/><category term="vm"/><category term="zkemkeeper"/><category term="zoff"/><category term="一蘭拉麵"/><category term="七寶老街"/><category term="七里ケ濱"/><category term="下北澤"/><category term="世博"/><category term="世界之窗"/><category term="中村屋"/><category term="中環"/><category term="中華藝術宮"/><category term="中華街"/><category term="交車"/><category term="京都"/><category term="仙台"/><category term="元町商店街"/><category term="光麵"/><category term="六合夜市"/><category term="六義園"/><category term="動畫"/><category term="勝香園"/><category term="北埔"/><category term="千島之淵"/><category term="南京路步行街"/><category term="南寮"/><category term="博多一風堂"/><category term="台北富邦勇士"/><category term="台場一丁目商店街"/><category term="台新福爾摩沙夢想家"/><category term="吉野家"/><category term="埔里"/><category term="塗鴉"/><category term="增上寺"/><category term="大江戶溫泉物語"/><category term="大甲鎮瀾宮"/><category term="太平山"/><category term="太陽與海的教室"/><category term="家事"/><category term="富果"/><category term="實況"/><category term="實況主"/><category term="小石川後樂園"/><category term="小米電視"/><category term="少，但是更好"/><category term="尖沙咀"/><category term="尖沙嘴"/><category term="山下公園"/><category term="山口智充"/><category term="山頭火"/><category term="布列塔尼"/><category term="彩虹眷村"/><category term="微軟"/><category term="惠比壽"/><category term="成田空港"/><category term="技嘉 IF 133"/><category term="拍拍卡"/><category term="文字燒"/><category term="新天地"/><category term="新竹煙波大飯店"/><category term="旅行"/><category term="旗津"/><category term="時間管理"/><category term="月島"/><category term="東京大學"/><category term="東京巨蛋"/><category term="東京車站"/><category term="東京鐵塔"/><category term="東鄉神社"/><category term="桃園"/><category term="桃園領航猿"/><category term="椅子"/><category term="樂桃"/><category term="歌舞伎町"/><category term="永安漁港"/><category term="汐留"/><category term="海怡賓館"/><category term="淺草"/><category term="清淨農場"/><category term="港の見える丘公園"/><category term="澀谷"/><category term="火頭山"/><category term="烏來"/><category term="爛兄爛弟"/><category term="爬蟲"/><category term="玉山"/><category term="玩具"/><category term="球褲"/><category term="田子坊"/><category term="皇后廣場"/><category term="目黑川"/><category term="相機背帶"/><category term="石川商店街"/><category term="神戶"/><category term="秋葉原"/><category term="竹下通"/><category term="筆電"/><category term="築地"/><category term="紅包場"/><category term="紅磚倉庫"/><category term="綠色走廊"/><category term="羅技"/><category term="芝公園"/><category term="蓮香樓"/><category term="表參道"/><category term="複視"/><category term="試算表"/><category term="謝卡"/><category term="護具"/><category term="豆豆先生"/><category term="豫園"/><category term="買車"/><category term="貼圖"/><category term="資訊部秒回覆"/><category term="超級偶像"/><category term="都立大學"/><category term="酷媽"/><category term="金嗓"/><category term="銀座"/><category term="鏡頭"/><category term="鐮倉大佛"/><category term="鐮倉高校前"/><category term="鐵火井"/><category term="長谷寺"/><category term="開台"/><category term="靖國神社"/><category term="音樂"/><category term="颱風"/><category term="首爾"/><category term="高尾山"/><category term="高鐵"/><category term="高雄"/><category term="鶴岡八幡宮"/><category term="點點印"/><title type='text'>[ 小黑宅 ]</title><subtitle type='html'>沒有乳溝 沒有專業 沒有政黑 只有認真紀錄生活</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://tangblack.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5273493908896097193/posts/default?redirect=false'/><link rel='alternate' type='text/html' href='http://tangblack.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><link rel='next' type='application/atom+xml' href='http://www.blogger.com/feeds/5273493908896097193/posts/default?start-index=26&amp;max-results=25&amp;redirect=false'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>699</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-5273493908896097193.post-3885480173510007719</id><published>2025-08-01T15:04:00.003+08:00</published><updated>2025-08-01T16:36:25.470+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="複視"/><title type='text'>一個東西變兩個？ 複視要看哪一科？</title><summary type="text">
  年紀過了一個歲數，身體也免不得開始有些狀況，這個月的瓊斯盃買了一張場邊席的票，但當天我的雙眼看出去的畫面是下圖這樣，真的是白白浪費錢了...



  真的要說有什麼徵兆，應該是前陣子，每天一早寫待辦清單，眼睛就覺得有點對不上焦，以為是老花的關係就沒有放在心上。這個月去日本玩還帶上
    macbook，每晚回到飯店繼續精實，又是看股票、又是剪輯影片上片，假期回到台灣是凌晨，隔天就直接上班，當天起床左腦就開始頭痛，又接著公司體檢三天低渣飲食(總共頭痛了四天)，邊頭痛邊半夜起來拉肚子，想想應該都是讓自己太累的累積。
  
    健檢完過了幾天好日子，但每每從辦公椅起來的時候，視覺上就會有種說不出的怪，還以為散光變嚴重了，但只要過一段時間就會慢慢恢復，還一度懷疑是不是眼鏡的鏡片位置跑掉了，直到某天下班發現怎麼調整，看到的景象都還是上下疊影才意識到代誌大條了。
  
  
    </summary><link rel='replies' type='application/atom+xml' href='http://tangblack.blogspot.com/feeds/3885480173510007719/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/5273493908896097193/3885480173510007719?isPopup=true' title='2 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5273493908896097193/posts/default/3885480173510007719'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5273493908896097193/posts/default/3885480173510007719'/><link rel='alternate' type='text/html' href='http://tangblack.blogspot.com/2025/08/blog-post.html' title='一個東西變兩個？ 複視要看哪一科？'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5273493908896097193.post-7862956171987299957</id><published>2024-12-18T15:10:00.001+08:00</published><updated>2024-12-18T15:10:25.752+08:00</updated><title type='text'>小米65吋電視開箱(S Mini LED 2025 65型)</title><summary type="text">2021/2購入的第一台小米電視65&quot;掛點了，18999元看了快四年(2024/12)也值得了，發生的問題跟下面影片一樣，螢幕畫面跟聲音都正常，但播放影片就是有聲無影，不管是外接的第四台/Chromecast/遊戲機，還是系統內建的 YouTube 都一樣狀況。

小米電視有聲無影影片



然後四年過去，上網更新了一下電視價格以及技術現況，小米電視用這幾年習慣了也沒什麼大問題，就繼續鎖定小米電視這系列，原本想捏一下上75吋，不過電視底座大小已經超過電視櫃只好放棄，2024/12當下有的產品如下：





價格
螢幕更新頻率
對比
亮度
備註





A 2025 65型 4K
12,995
60Hz
-
-
價格考量，只看第四台


A Pro 2025 65型 QLED
15,995
60Hz
-
-
會看高畫質影片


S Mini LED 2025 65型
24,995
</summary><link rel='replies' type='application/atom+xml' href='http://tangblack.blogspot.com/feeds/7862956171987299957/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/5273493908896097193/7862956171987299957?isPopup=true' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5273493908896097193/posts/default/7862956171987299957'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5273493908896097193/posts/default/7862956171987299957'/><link rel='alternate' type='text/html' href='http://tangblack.blogspot.com/2024/12/65s-mini-led-2025-65.html' title='小米65吋電視開箱(S Mini LED 2025 65型)'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5273493908896097193.post-4096888717964025194</id><published>2024-05-23T09:21:00.003+08:00</published><updated>2024-05-23T09:21:24.927+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="IG"/><category scheme="http://www.blogger.com/atom/ns#" term="Instagram"/><title type='text'>Instagram(IG) 切換多個帳號、管理多個帳號、小帳</title><summary type="text">兩個人想要在自己的手機上(已經有各自的私人 Instagram 帳號)，共同管理其他 Inatagram 帳號(品牌社群帳號、小孩帳號、寵物帳號)？看下面的截圖教學：點擊自己 Instagram 主頁面右上角三明治圖示(三條線)，開啟設定和動態拉到最下方選擇『新增帳號』選擇『切換帳號』選擇『登入現有的帳號』會跳出登入畫面，輸入想要共同管理的 Inatagram 帳號和密碼即可


&amp;nbsp;1) 點擊自己 Instagram 主頁面右上角三明治圖示(三條線)，開啟設定和動態
  
2) 拉到最下方選擇『新增帳號』
3) 選擇『切換帳號』
4) 選擇『登入現有的帳號』</summary><link rel='replies' type='application/atom+xml' href='http://tangblack.blogspot.com/feeds/4096888717964025194/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/5273493908896097193/4096888717964025194?isPopup=true' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5273493908896097193/posts/default/4096888717964025194'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5273493908896097193/posts/default/4096888717964025194'/><link rel='alternate' type='text/html' href='http://tangblack.blogspot.com/2024/05/instagramig.html' title='Instagram(IG) 切換多個帳號、管理多個帳號、小帳'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5273493908896097193.post-1433156128728262212</id><published>2023-07-13T14:38:00.006+08:00</published><updated>2023-07-13T14:38:37.088+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Android File Transfer"/><title type='text'>Android File Transfer 無法與裝置連接</title><summary type="text">利用&amp;nbsp;Android File Transfer 這個官方工具，嘗試將 Pixel 6a 連接到我的 macbook，但一直發生『無法與裝置連接』的錯誤訊息。依照官方建議，重新安裝&amp;nbsp;Android File Transfer、電腦重新開機、手機重新開機、連接線材都更換了都沒用。最後發現是 Google Drive 在搞鬼，將其結束後&amp;nbsp;Android File Transfer 就可以正常看到 Pixel 6a 的資料夾。</summary><link rel='replies' type='application/atom+xml' href='http://tangblack.blogspot.com/feeds/1433156128728262212/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/5273493908896097193/1433156128728262212?isPopup=true' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5273493908896097193/posts/default/1433156128728262212'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5273493908896097193/posts/default/1433156128728262212'/><link rel='alternate' type='text/html' href='http://tangblack.blogspot.com/2023/07/android-file-transfer.html' title='Android File Transfer 無法與裝置連接'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5273493908896097193.post-9149302310040359710</id><published>2023-04-06T11:38:00.006+08:00</published><updated>2023-04-06T11:40:13.179+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="YouTube"/><category scheme="http://www.blogger.com/atom/ns#" term="YouTuber"/><title type='text'>兩年 YouTuber 不藏私剪片流程 SOP 分享</title><summary type="text">最近一直有觀眾說我剪片很快，這邊就來分享一下我剪片的流程，也給各位有興趣當 YouTuber 或是已經有剪輯影片的人參考，沒有耐心或是已經有經驗者，就直接看圖就好，但以下流程不適用於手機剪輯的人。流程圖其實已經說得很清楚，紅色的框框是直接提升硬體就能縮短時間的部分，硬碟要用 SSD、家裡網路上傳速度要夠快、剪片用的電腦推薦直接用 Apple M1/M2 系列筆電，原本我用 Apple i5 的筆電輸出25分鐘1080P的影片都要快半個小時，換了 Apple M1 筆電就只要3分鐘左右就輸出完了，以我的流程要輸出三次，就省了快一個半小時。以我的感受，影片最耗時的第一個是剪片，除了一台剪片不會頓的電腦，熟記剪輯軟體的熱鍵也是一定要的，我不會想要第一次就看很仔細一次剪到位，而是第一次從頭看到尾，邊看邊把有趣的片段留下，第二次再重新檢視剛剛那些片段是否有必要留下(減法才是最難的)，然後重新調整</summary><link rel='replies' type='application/atom+xml' href='http://tangblack.blogspot.com/feeds/9149302310040359710/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/5273493908896097193/9149302310040359710?isPopup=true' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5273493908896097193/posts/default/9149302310040359710'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5273493908896097193/posts/default/9149302310040359710'/><link rel='alternate' type='text/html' href='http://tangblack.blogspot.com/2023/04/youtuber-sop.html' title='兩年 YouTuber 不藏私剪片流程 SOP 分享'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5273493908896097193.post-6895348103932759870</id><published>2023-02-16T11:42:00.000+08:00</published><updated>2023-02-16T11:42:11.436+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Eclipse"/><category scheme="http://www.blogger.com/atom/ns#" term="JAVA"/><title type='text'>Eclipse 啟動發生 libjvm.dylib does not contain the JNI_CreateJavaVM symbol</title><summary type="text">&lt;!-- wp:image {&quot;align&quot;:&quot;wide&quot;,&quot;id&quot;:301,&quot;sizeSlug&quot;:&quot;full&quot;,&quot;linkDestination&quot;:&quot;none&quot;,&quot;className&quot;:&quot;is-style-default&quot;} --&gt;
Eclipse/SpringToolSuites4 啟動發生 libjvm.dylib does not contain the JNI_CreateJavaVM symbol
&lt;!-- /wp:image --&gt;

&lt;!-- wp:paragraph --&gt;
更新 openjdk 後，無法開啟 Eclipse/SpringToolSuites4，錯誤訊息如下 ：
&lt;!-- /wp:paragraph --&gt;

&lt;!-- wp:code --&gt;
The JVM shared library &quot;/Users/foo/Library/Java/</summary><link rel='replies' type='application/atom+xml' href='http://tangblack.blogspot.com/feeds/6895348103932759870/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/5273493908896097193/6895348103932759870?isPopup=true' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5273493908896097193/posts/default/6895348103932759870'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5273493908896097193/posts/default/6895348103932759870'/><link rel='alternate' type='text/html' href='http://tangblack.blogspot.com/2023/02/eclipse-libjvmdylib-does-not-contain.html' title='Eclipse 啟動發生 libjvm.dylib does not contain the JNI_CreateJavaVM symbol'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5273493908896097193.post-1588447925066711008</id><published>2023-02-16T11:40:00.000+08:00</published><updated>2023-02-16T11:40:36.689+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="JAVA"/><category scheme="http://www.blogger.com/atom/ns#" term="Optional"/><title type='text'>為什麼要使用 Java Optional 以及 Optional 常用的方法有哪些</title><summary type="text">&lt;!-- wp:heading --&gt;
你用過 Java Optional 嗎？
&lt;!-- /wp:heading --&gt;

&lt;!-- wp:paragraph --&gt;
本文假設讀者你已經用過 Optional 或是介接過回傳 Optional 的 API，知道 Optional 主要是解決 java.lang.NullPointerException(剛好是本站用的網址 XD)，但還是不太知道為什麼要用 Optional！
&lt;!-- /wp:paragraph --&gt;

&lt;!-- wp:heading --&gt;
換個角度看 Java Optional
&lt;!-- /wp:heading --&gt;

&lt;!-- wp:paragraph --&gt;
我覺得站在開發 API 的角度來看這個問題，就很清楚為何要使用 Optional！
&lt;!-- /wp:paragraph --&gt;

&lt;!-- </summary><link rel='replies' type='application/atom+xml' href='http://tangblack.blogspot.com/feeds/1588447925066711008/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/5273493908896097193/1588447925066711008?isPopup=true' title='1 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5273493908896097193/posts/default/1588447925066711008'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5273493908896097193/posts/default/1588447925066711008'/><link rel='alternate' type='text/html' href='http://tangblack.blogspot.com/2023/02/java-optional-optional.html' title='為什麼要使用 Java Optional 以及 Optional 常用的方法有哪些'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5273493908896097193.post-7247267933424970686</id><published>2023-02-16T11:38:00.000+08:00</published><updated>2023-02-16T11:38:57.771+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Encode"/><category scheme="http://www.blogger.com/atom/ns#" term="Encrypt"/><category scheme="http://www.blogger.com/atom/ns#" term="Hash"/><title type='text'>三分鐘讀懂 Encode 編碼、Encrypt 加密、Hash 雜湊</title><summary type="text">&lt;!-- wp:heading --&gt;
Encode、Encrypt、Hash 的差別
&lt;!-- /wp:heading --&gt;

&lt;!-- wp:columns --&gt;
&lt;!-- wp:column {&quot;width&quot;:&quot;100%&quot;} --&gt;
&lt;!-- wp:table {&quot;hasFixedLayout&quot;:true,&quot;className&quot;:&quot;is-style-stripes&quot;} --&gt;
Encode 編碼Encrypt 加密Hash 雜湊簡單定義原本的資料用不同的詮釋方式產生新的資料利用金鑰來保護資料  將資料用公式算出一個無法反推回原本資料的結果是否能還原資料？知道編碼方式即可還原資料知道加密方式 + 取得金鑰即可還原資料無法還原資料舉例摩斯密碼網址編碼Base64AES(對稱加密)RSA(非對稱加密)md5SHA1SHA256 Encode、Encrypt、Hash 對照表
&lt;!--</summary><link rel='replies' type='application/atom+xml' href='http://tangblack.blogspot.com/feeds/7247267933424970686/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/5273493908896097193/7247267933424970686?isPopup=true' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5273493908896097193/posts/default/7247267933424970686'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5273493908896097193/posts/default/7247267933424970686'/><link rel='alternate' type='text/html' href='http://tangblack.blogspot.com/2023/02/encode-encrypt-hash.html' title='三分鐘讀懂 Encode 編碼、Encrypt 加密、Hash 雜湊'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5273493908896097193.post-6322251223264682134</id><published>2023-02-16T11:37:00.001+08:00</published><updated>2023-02-16T11:37:21.045+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Windows 工作排程器"/><title type='text'>Windows 工作排程器如何處理還在執行中的工作</title><summary type="text">&lt;!-- wp:image {&quot;id&quot;:252,&quot;sizeSlug&quot;:&quot;large&quot;,&quot;linkDestination&quot;:&quot;none&quot;,&quot;className&quot;:&quot;is-style-default&quot;} --&gt;
Windows 工作排程器 &amp;gt; 設定 &amp;gt; 如果工作已在執行中，下列規則將會套用:(If the task is already running, then the following rule applies)
&lt;!-- /wp:image --&gt;

&lt;!-- wp:paragraph --&gt;
之前用 Windows 工作排程器 都是用來執行會自動關閉的程式/Script，所以沒有設定上圖的這個選項『如果工作已在執行中，下列規則將會套用:(If the task is already running, then the following rule applies)』</summary><link rel='replies' type='application/atom+xml' href='http://tangblack.blogspot.com/feeds/6322251223264682134/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/5273493908896097193/6322251223264682134?isPopup=true' title='1 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5273493908896097193/posts/default/6322251223264682134'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5273493908896097193/posts/default/6322251223264682134'/><link rel='alternate' type='text/html' href='http://tangblack.blogspot.com/2023/02/windows.html' title='Windows 工作排程器如何處理還在執行中的工作'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5273493908896097193.post-6787834966767959334</id><published>2023-02-16T11:35:00.002+08:00</published><updated>2023-02-16T11:35:47.788+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="MultiBio"/><category scheme="http://www.blogger.com/atom/ns#" term="zkemkeeper"/><title type='text'>MultiBio zkemkeeper.CZKEMClass 無法監聽即時事件</title><summary type="text">&lt;!-- wp:image {&quot;id&quot;:232,&quot;sizeSlug&quot;:&quot;full&quot;,&quot;linkDestination&quot;:&quot;none&quot;} --&gt;
MultiBio700 門禁考勤人臉指紋機
&lt;!-- /wp:image --&gt;

&lt;!-- wp:paragraph --&gt;
介接 MultiBio 門禁考勤人臉指紋機時，利用官網提供的 zkemkeeper SDK，能正確讀取設備上的打卡資料，但想要即時接收打卡事件時，完全照抄官方範例，卻怎樣都收不到設備即時回傳的事件。最大的差別在於官方範例是一個 Windows Forms 程式，我正在開發的是一個主控台(Console)程式。
&lt;!-- /wp:paragraph --&gt;

&lt;!-- wp:paragraph --&gt;
可能原因是 zkemkeeper SDK 收到設備即時回傳事件後，使用的訊息派送機制跟 Windows Forms 程式會</summary><link rel='replies' type='application/atom+xml' href='http://tangblack.blogspot.com/feeds/6787834966767959334/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/5273493908896097193/6787834966767959334?isPopup=true' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5273493908896097193/posts/default/6787834966767959334'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5273493908896097193/posts/default/6787834966767959334'/><link rel='alternate' type='text/html' href='http://tangblack.blogspot.com/2023/02/multibio-zkemkeeperczkemclass.html' title='MultiBio zkemkeeper.CZKEMClass 無法監聽即時事件'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5273493908896097193.post-9173189444559611457</id><published>2023-02-16T11:33:00.002+08:00</published><updated>2023-02-16T11:33:59.852+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="JAVA"/><title type='text'>Java 常用的 Functional Interface：Consumer、Function、Predicate、 Supplier</title><summary type="text">&lt;!-- wp:paragraph --&gt;
在看 Functional Interface 之前，先看看以下例子，如果我們只能寫一個方法，要在一個字串集合內，找到預期的字串，同時要能支援完全比對/忽略大小寫的話，寫出來的程式碼大概長的是以下這個樣子：
&lt;!-- /wp:paragraph --&gt;

&lt;!-- wp:code --&gt;

/*
* expect：是要比對的字串。
* ignoreCase：true 代表比對可以忽略大小寫。
*/
public boolean findAnyMatch(List&amp;lt;String&amp;gt; list, String expect, boolean ignoreCase)
{
  if (ignoreCase) // 若任一個字串符合傳入的字串(忽略大小寫)，就回傳 true。
  {
    for (String string : list)</summary><link rel='replies' type='application/atom+xml' href='http://tangblack.blogspot.com/feeds/9173189444559611457/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/5273493908896097193/9173189444559611457?isPopup=true' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5273493908896097193/posts/default/9173189444559611457'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5273493908896097193/posts/default/9173189444559611457'/><link rel='alternate' type='text/html' href='http://tangblack.blogspot.com/2023/02/java-functional-interfaceconsumerfuncti.html' title='Java 常用的 Functional Interface：Consumer、Function、Predicate、 Supplier'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5273493908896097193.post-2149425362241774025</id><published>2023-02-16T11:32:00.000+08:00</published><updated>2023-02-16T11:32:10.373+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="INTELLIJ IDEA"/><category scheme="http://www.blogger.com/atom/ns#" term="JAVA"/><title type='text'>Intellij IDEA 啟動跳出 Unsupported Java Version</title><summary type="text">&lt;!-- wp:image {&quot;id&quot;:195,&quot;sizeSlug&quot;:&quot;large&quot;,&quot;className&quot;:&quot;is-style-default&quot;} --&gt;

&lt;!-- /wp:image --&gt;

&lt;!-- wp:paragraph --&gt;
升級完 Intellij IDEA 後，要開啟 Intellij IDEA 就跳出了 Unsupported Java Version 這個警告，在 Console 下查看 Java 版本是 openjdk version &quot;11.0.2&quot; 2019-01-15，版本大於 Java 11，應該不是環境的問題。
&lt;!-- /wp:paragraph --&gt;

&lt;!-- wp:paragraph --&gt;
執行以下指令排除此問題：
&lt;!-- /wp:paragraph --&gt;

&lt;!-- wp:code --&gt;
rm ~/Library/</summary><link rel='replies' type='application/atom+xml' href='http://tangblack.blogspot.com/feeds/2149425362241774025/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/5273493908896097193/2149425362241774025?isPopup=true' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5273493908896097193/posts/default/2149425362241774025'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5273493908896097193/posts/default/2149425362241774025'/><link rel='alternate' type='text/html' href='http://tangblack.blogspot.com/2023/02/intellij-idea-unsupported-java-version.html' title='Intellij IDEA 啟動跳出 Unsupported Java Version'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5273493908896097193.post-3230702718231393057</id><published>2023-02-16T11:30:00.001+08:00</published><updated>2023-02-16T11:30:18.876+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Eclipse"/><category scheme="http://www.blogger.com/atom/ns#" term="JAVA"/><title type='text'>特殊註解：TODO、FIXME、XXX</title><summary type="text">&lt;!-- wp:image {&quot;id&quot;:173,&quot;sizeSlug&quot;:&quot;large&quot;,&quot;className&quot;:&quot;is-style-default&quot;} --&gt;

&lt;!-- /wp:image --&gt;

&lt;!-- wp:paragraph --&gt;
最早接觸到這些特殊註解是在寫 Eclipse 的時候，有些自動產生的程式碼就會自己補上 //TODO，在 Tasks 分頁就能顯示出這些備註，點擊就直接跳到程式碼上相當方便。
&lt;!-- /wp:paragraph --&gt;

&lt;!-- wp:image {&quot;id&quot;:174,&quot;sizeSlug&quot;:&quot;large&quot;,&quot;className&quot;:&quot;is-style-default&quot;} --&gt;

&lt;!-- /wp:image --&gt;

&lt;!-- wp:paragraph --&gt;
實際上在 Preferences &amp;gt; Java &amp;gt; Compiler &amp;</summary><link rel='replies' type='application/atom+xml' href='http://tangblack.blogspot.com/feeds/3230702718231393057/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/5273493908896097193/3230702718231393057?isPopup=true' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5273493908896097193/posts/default/3230702718231393057'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5273493908896097193/posts/default/3230702718231393057'/><link rel='alternate' type='text/html' href='http://tangblack.blogspot.com/2023/02/todofixmexxx.html' title='特殊註解：TODO、FIXME、XXX'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5273493908896097193.post-7521563371501583877</id><published>2023-02-16T11:28:00.002+08:00</published><updated>2023-02-16T11:28:51.723+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Eclipse"/><title type='text'>Eclipse 啟動發生 Caused by: java.lang.ClassNotFoundException: javax.annotation.PreDestroy</title><summary type="text">&lt;!-- wp:paragraph --&gt;
因為開發環境的 SpringToolSuite4 要求更新 Java，更新到 Java 11 之後，反而 SpringToolSuite3 就打不開了，啟動就跳出下圖：
&lt;!-- /wp:paragraph --&gt;

&lt;!-- wp:image {&quot;align&quot;:&quot;wide&quot;,&quot;id&quot;:153,&quot;className&quot;:&quot;is-style-default&quot;} --&gt;
Eclipse 無法啟動
&lt;!-- /wp:image --&gt;

&lt;!-- wp:paragraph --&gt;
按照指示查看 log，看起來是跟 Java 9 引入的 module 功能相關，造成找不到這個 PreDestroy 這個類別。
&lt;!-- /wp:paragraph --&gt;

&lt;!-- wp:code --&gt;

java.lang.NoClassDefFoundError:</summary><link rel='replies' type='application/atom+xml' href='http://tangblack.blogspot.com/feeds/7521563371501583877/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/5273493908896097193/7521563371501583877?isPopup=true' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5273493908896097193/posts/default/7521563371501583877'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5273493908896097193/posts/default/7521563371501583877'/><link rel='alternate' type='text/html' href='http://tangblack.blogspot.com/2023/02/eclipse-caused-by-javalangclassnotfound.html' title='Eclipse 啟動發生 Caused by: java.lang.ClassNotFoundException: javax.annotation.PreDestroy'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5273493908896097193.post-6086263230021026057</id><published>2023-02-16T11:26:00.003+08:00</published><updated>2023-02-16T11:26:53.096+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="iterm2"/><category scheme="http://www.blogger.com/atom/ns#" term="MAC"/><category scheme="http://www.blogger.com/atom/ns#" term="ssh"/><category scheme="http://www.blogger.com/atom/ns#" term="sshpass"/><title type='text'>iTerm2 管理 SSH 帳號密碼</title><summary type="text">&lt;!--wp:paragraph--&gt;
在 Mac 上用 iterm2 管理所有會連線的主機，這樣就不用每次在記 IP / 帳號 / 密碼，首先先安裝 sshpass，再去 iterm2 設定 Profile(一個 Profile 可以想成一個主機)，詳細步驟如下：
&lt;!--/wp:paragraph--&gt;

&lt;!--wp:heading--&gt;
安裝 sshpass
&lt;!--/wp:heading--&gt;

&lt;!--wp:paragraph--&gt;
打開命令列，利用 homebrew 來安裝 sshpass：
&lt;!--/wp:paragraph--&gt;

&lt;!--wp:code--&gt;

brew install https://raw.githubusercontent.com/kadwanev/bigboybrew/master/Library/Formula/sshpass.rb
&lt;!--</summary><link rel='replies' type='application/atom+xml' href='http://tangblack.blogspot.com/feeds/6086263230021026057/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/5273493908896097193/6086263230021026057?isPopup=true' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5273493908896097193/posts/default/6086263230021026057'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5273493908896097193/posts/default/6086263230021026057'/><link rel='alternate' type='text/html' href='http://tangblack.blogspot.com/2023/02/iterm2-ssh.html' title='iTerm2 管理 SSH 帳號密碼'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5273493908896097193.post-4474816356685250162</id><published>2023-02-16T11:22:00.005+08:00</published><updated>2023-02-16T11:22:44.480+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="TDD"/><title type='text'>Mock 與 Stub 的差別</title><summary type="text">&lt;!-- wp:paragraph --&gt;
假設我們要測試資料庫，除了連接真正的資料庫或是本地端的測試資料庫以外，我們也可以生成假的物件來測試，以下列出 Stub / Mock 這兩種做法的測試案例，大家可以自行體會其中的差別。
&lt;!-- /wp:paragraph --&gt;

&lt;!-- wp:heading --&gt;
Stub
&lt;!-- /wp:heading --&gt;

&lt;!-- wp:code --&gt;

/** 能連接至 MySQL 的實作 */
public class DatabaseMySql implements Database
{
  public boolean connect()
  {
    // 省略
    return true; // 連接真正的的資料庫，真的連上才回傳 true。
  }
}

/** 為了測試用的實作 */
public class </summary><link rel='replies' type='application/atom+xml' href='http://tangblack.blogspot.com/feeds/4474816356685250162/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/5273493908896097193/4474816356685250162?isPopup=true' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5273493908896097193/posts/default/4474816356685250162'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5273493908896097193/posts/default/4474816356685250162'/><link rel='alternate' type='text/html' href='http://tangblack.blogspot.com/2023/02/mock-stub.html' title='Mock 與 Stub 的差別'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5273493908896097193.post-4822024832808119192</id><published>2023-02-16T11:21:00.001+08:00</published><updated>2023-02-16T11:21:45.777+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="JAVA"/><category scheme="http://www.blogger.com/atom/ns#" term="stream"/><title type='text'>Java Stream API Cheat Sheet</title><summary type="text">&lt;!-- wp:paragraph --&gt;
在 Java 8 之後，可以用 Stream API 來處理資料集合，最大的好處就是巢狀結構消失了，比較容易閱讀、看出商業邏輯，以下紀錄比較常用的操作：
&lt;!-- /wp:paragraph --&gt;

&lt;!-- wp:heading --&gt;
建立 Stream
&lt;!-- /wp:heading --&gt;

&lt;!-- wp:list --&gt;
&lt;!-- wp:list-item --&gt;
of
&lt;!-- /wp:list-item --&gt;

&lt;!-- wp:list-item --&gt;
empty
&lt;!-- /wp:list-item --&gt;

&lt;!-- wp:list-item --&gt;
concat
&lt;!-- /wp:list-item --&gt;

&lt;!-- wp:list-item --&gt;
generate：產生無限串流 的方法之一。
&lt;!-- /</summary><link rel='replies' type='application/atom+xml' href='http://tangblack.blogspot.com/feeds/4822024832808119192/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/5273493908896097193/4822024832808119192?isPopup=true' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5273493908896097193/posts/default/4822024832808119192'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5273493908896097193/posts/default/4822024832808119192'/><link rel='alternate' type='text/html' href='http://tangblack.blogspot.com/2023/02/java-stream-api-cheat-sheet.html' title='Java Stream API Cheat Sheet'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5273493908896097193.post-149168111033612118</id><published>2023-02-16T11:19:00.001+08:00</published><updated>2023-02-16T11:19:43.502+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Docker"/><category scheme="http://www.blogger.com/atom/ns#" term="JAVA"/><title type='text'>Java 安裝在 Docker 容器的記憶體問題</title><summary type="text">&lt;!-- wp:heading --&gt;
Docker 容器佔用大量記憶體空間
&lt;!-- /wp:heading --&gt;

&lt;!-- wp:paragraph --&gt;
Docker VM 的記憶體使用量很高，進去看16G 的記憶體的機器，才裝12個 Docker 容器，一個一個檢查才發現幾個是跑 Java APP 的容器吃的記憶體特別高(1G~3G 之間)，但有些容器都是 Serverless 類型的服務，不應該佔用那麼多記憶體。
&lt;!-- /wp:paragraph --&gt;

&lt;!-- wp:heading --&gt;
Java 支援 Docker 的記憶體限制
&lt;!-- /wp:heading --&gt;

&lt;!-- wp:paragraph --&gt;
在容器內部執行 JVM，預設 Max Heap Size 會是主機記憶體的1/4，而非容器記憶體的1/4(所以我 docker run 設定 </summary><link rel='replies' type='application/atom+xml' href='http://tangblack.blogspot.com/feeds/149168111033612118/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/5273493908896097193/149168111033612118?isPopup=true' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5273493908896097193/posts/default/149168111033612118'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5273493908896097193/posts/default/149168111033612118'/><link rel='alternate' type='text/html' href='http://tangblack.blogspot.com/2023/02/java-docker.html' title='Java 安裝在 Docker 容器的記憶體問題'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5273493908896097193.post-7318796808591036633</id><published>2023-02-16T11:18:00.002+08:00</published><updated>2023-02-16T11:18:28.049+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="INTELLIJ IDEA"/><title type='text'>Intellij IDEA 控制台(Console)無法 Search/Find</title><summary type="text">&lt;!-- wp:heading --&gt;
Console 無法搜尋字串
&lt;!-- /wp:heading --&gt;

&lt;!-- wp:paragraph --&gt;
在 Console 視窗按 ⌘ + F 不會跳出搜尋功能。
&lt;!-- /wp:paragraph --&gt;

&lt;!-- wp:paragraph --&gt;
因為開發環境會使用 Eclipse 和 Intellij IDEA，不想記兩套快捷鍵，所以 keymap 就設定為 Eclipse(macOS)，Eclipse(macOS) 預設 Find 和 Replace 都是空的，原本只替 Replace(通常找到就是想要替代)設定 ⌘ + F，Find 沒有設定熱鍵所以就沒作用。
&lt;!-- /wp:paragraph --&gt;

&lt;!-- wp:heading --&gt;
替 Find 指定快捷鍵
&lt;!-- /wp:heading --&gt;

&lt;!</summary><link rel='replies' type='application/atom+xml' href='http://tangblack.blogspot.com/feeds/7318796808591036633/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/5273493908896097193/7318796808591036633?isPopup=true' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5273493908896097193/posts/default/7318796808591036633'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5273493908896097193/posts/default/7318796808591036633'/><link rel='alternate' type='text/html' href='http://tangblack.blogspot.com/2023/02/intellij-idea-console-searchfind.html' title='Intellij IDEA 控制台(Console)無法 Search/Find'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5273493908896097193.post-7524445936152624879</id><published>2023-02-14T16:59:00.004+08:00</published><updated>2023-06-30T10:59:50.432+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Apple"/><category scheme="http://www.blogger.com/atom/ns#" term="m1 max"/><category scheme="http://www.blogger.com/atom/ns#" term="MacBook Pro 14&quot;"/><category scheme="http://www.blogger.com/atom/ns#" term="敗家"/><title type='text'>MacBook Pro 14&quot;(2021) M1 Max 入手</title><summary type="text">上次換機是2020/8，距今約兩年半，上一台 MacBook Pro 13&quot; 是未代的 intel i5 / 16G Ram / 500G SSD，當初沒有等一下換 M1 版本，主要是怕程式開發工具有支援度問題，另外我有外接三螢幕需求，需要買到最貴的 M1 Max 才支援三螢幕輸出，這次買的是整修品(M1 Max / 64G Ram / 1T SSD)價格為85300元。現在這台 MacBook Pro 13&quot; 開發上很夠用，缺點大概是沒用的 touch bar 還有比較容易熱，然後這一兩年有了剪片需求，整個剪輯流程大概要輸出長度20分鐘的1080P影片三次，每次都要等20分鐘以上，現在換上 M1 Max 大概兩分鐘左右就輸出完成了，大大減少我等待的時間。這次兩台電腦轉移的體驗也很好，同個網段下開啟系統移轉輔助程式，兩個多小時完成，大部分的 APP 跟個人資料都轉移過去了，我是碰到 </summary><link rel='replies' type='application/atom+xml' href='http://tangblack.blogspot.com/feeds/7524445936152624879/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/5273493908896097193/7524445936152624879?isPopup=true' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5273493908896097193/posts/default/7524445936152624879'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5273493908896097193/posts/default/7524445936152624879'/><link rel='alternate' type='text/html' href='http://tangblack.blogspot.com/2023/02/macbook-pro-142021-m1-max.html' title='MacBook Pro 14&quot;(2021) M1 Max 入手'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5273493908896097193.post-3936350428062809106</id><published>2023-02-06T17:01:00.004+08:00</published><updated>2023-02-06T17:01:34.376+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="INTELLIJ IDEA"/><title type='text'>IntelliJ IDEA 卡頓 CPU 使用率超過100%</title><summary type="text">先說結論，訂閱 Intellij IDEA 前先下載社群版，試著開個專案打打字(中英文都要)，看看是否會卡頓，CPU 使用率是否會超過100%，會卡頓就不要訂閱。IntelliJ IDEA 一打字就開始頓最近負責的 Spring 專案中會包含 react 的程式碼，Eclipse 上找來找去都沒有免費合用的 plug-in 才能正確高亮提示，心一橫就訂閱了IntelliJ IDEA Ultimate 一年份。之前開發 Android 都是用 IntelliJ IDEA 社群版，跑起來都很順，但這次的體驗卻非常差，運行起來超級頓，只是打字 CPU 的使用率就飆高到200%以上。修改記憶體選項工具列 &amp;gt; Help &amp;gt; Edit Custom VM Options…# 檔案路徑在 /Applications/IntelliJ IDEA.app/Contents/bin/</summary><link rel='replies' type='application/atom+xml' href='http://tangblack.blogspot.com/feeds/3936350428062809106/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/5273493908896097193/3936350428062809106?isPopup=true' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5273493908896097193/posts/default/3936350428062809106'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5273493908896097193/posts/default/3936350428062809106'/><link rel='alternate' type='text/html' href='http://tangblack.blogspot.com/2023/02/intellij-idea-cpu-100.html' title='IntelliJ IDEA 卡頓 CPU 使用率超過100%'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5273493908896097193.post-4660095115990406306</id><published>2023-02-06T16:49:00.001+08:00</published><updated>2023-02-06T16:49:08.034+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="MYSQL"/><title type='text'>MySQL DATETIME 與 TIMESTAMP 的差別</title><summary type="text">&amp;nbsp;DATETIME 與 TIMESTAMP 的差別參考官方的說明：The DATETIME type is used when you need values that contain both date and time information. MySQL retrieves and displays DATETIME values in ‘YYYY-MM-DD HH:MM:SS’ format. The supported range is ‘1000-01-01 00:00:00’ to ‘9999-12-31 23:59:59’.The TIMESTAMP data type has a range of ‘1970-01-01 00:00:01’ UTC to ‘2038-01-09 03:14:07’ UTC. It has varying properties,</summary><link rel='replies' type='application/atom+xml' href='http://tangblack.blogspot.com/feeds/4660095115990406306/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/5273493908896097193/4660095115990406306?isPopup=true' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5273493908896097193/posts/default/4660095115990406306'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5273493908896097193/posts/default/4660095115990406306'/><link rel='alternate' type='text/html' href='http://tangblack.blogspot.com/2023/02/mysql-datetime-timestamp.html' title='MySQL DATETIME 與 TIMESTAMP 的差別'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5273493908896097193.post-937812599934030904</id><published>2023-02-06T16:44:00.004+08:00</published><updated>2023-02-06T16:50:18.600+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="JAVA"/><category scheme="http://www.blogger.com/atom/ns#" term="MYSQL"/><title type='text'>Java 送出的時間與 MySQL 時間相差13個小時或差14個小時</title><summary type="text">MySQL 時間相差13或14個小時Java 送出的時間有設定為台灣時區，但 MySQL 上看到的時間就是差13個小時，確認過 MySQL 主機時區是台灣的時區+8也沒有錯。-- 在 MySQL 執行以下 SQL 指令，顯示 MySQL 時區以及 MySQL 主機時區
show variables like &quot;%time_zone%&quot;;

-- 發現 system_time_zone 是 CST，代表 MySQL 主機時區是 CST
-- 發現 time_zone 是 SYSTEM，代表 MySQL 時區參考 MySQL 主機時區發生原因在於 CST 可能是中國標準時間(China Standard Time)或是美國中部時間(Central Standard Time)，造成 Java 認為 MySQL 時區是美國中部時間。明確指定 MySQL 時區MySQL 時區不要參考 MySQL</summary><link rel='replies' type='application/atom+xml' href='http://tangblack.blogspot.com/feeds/937812599934030904/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/5273493908896097193/937812599934030904?isPopup=true' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5273493908896097193/posts/default/937812599934030904'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5273493908896097193/posts/default/937812599934030904'/><link rel='alternate' type='text/html' href='http://tangblack.blogspot.com/2023/02/java-mysql-1314.html' title='Java 送出的時間與 MySQL 時間相差13個小時或差14個小時'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5273493908896097193.post-1134753425539399425</id><published>2022-06-28T14:23:00.005+08:00</published><updated>2022-06-28T14:23:36.113+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="新竹攻城獅"/><category scheme="http://www.blogger.com/atom/ns#" term="籃球"/><title type='text'>謝謝你新竹街口攻城獅以及大家</title><summary type="text">攻城獅的第二季就在昨天6/27畫下句點了，一直以爲這季 VLOG 影片中最後的片段，會是看到場上場下大家相擁而泣的畫面，但遺憾的就是我在這一天早上快篩陽性沒法進場，硬碟裡有的影像紀錄就停留在冠軍賽 GAME4 的那一天了，感覺自己跟這季的攻城獅一樣，最後沒有一個很棒的收尾，但沒有太多的遺憾，因為我們真的都毫無保留、盡力拼戰到最後一刻了。

回顧這一季的進場館的感受，全新的大螢幕、升級的商品部當然還有更多的商品、北區的籃球博物館，從開賽到結束活蹦亂跳的瑞迪跟 Uncle，伴隨的 Lioneers HUB(球員訓練中心) 的完成，有了更多在地化的活動跟球迷做連結，竹北遠百快閃店讓球迷沒比賽還能買周邊，目前還真的沒有哪支球隊有做到一樣的規模，作為獅迷真的很幸福又很痛苦(錢跟衣櫃永遠不夠用)。

這一季主場進場的球迷也越來越強了，從現在回頭看季初，根本已經是不同等級的應援，全場七千人的手舞足蹈，</summary><link rel='replies' type='application/atom+xml' href='http://tangblack.blogspot.com/feeds/1134753425539399425/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/5273493908896097193/1134753425539399425?isPopup=true' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5273493908896097193/posts/default/1134753425539399425'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5273493908896097193/posts/default/1134753425539399425'/><link rel='alternate' type='text/html' href='http://tangblack.blogspot.com/2022/06/blog-post.html' title='謝謝你新竹街口攻城獅以及大家'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5273493908896097193.post-5122719973989289284</id><published>2021-11-02T22:09:00.001+08:00</published><updated>2021-11-02T22:09:25.073+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="NBA 2K22"/><category scheme="http://www.blogger.com/atom/ns#" term="Xbox"/><category scheme="http://www.blogger.com/atom/ns#" term="新竹攻城獅"/><category scheme="http://www.blogger.com/atom/ns#" term="新竹街口攻城獅"/><title type='text'>NBA2K22 快兩個月的心得</title><summary type="text">本世代？次世代？
2K20 和 2K21 主要都是玩 Switch 版本，唯一的原因就是它的方便性，旅遊出門拿出來也可以玩個兩場，但最大的缺點就是效能很差，光影差人臉暗球場暗能接受，但犧牲畫質換來的也是肉眼可察覺的低幀數。去年 2K21 開始分成次世代版跟本世代版本，跟沒玩 2K 遊戲的朋友說明一下，次世代版本就是針對最新出的主機(PS5/Xbox Series)，畫質跟系統都會最用心製作，本世代版本就大家俗稱換皮遊戲，可能拿 2K20 的內容修改一下球員名單就是 2K21 本世代版本了！
MyTeam = 課金遊戲？

再來這兩年主要就是玩 MyTeam 模式，簡單說就是課金抽卡包(沒課金就花時間農)，組成自己的隊伍，單機解任務或是線上解任務或著是跟真人對打，這主要就是利用開包、收集這些動機來吸引玩家入坑，本人沒花時間農，也沒另外課金，就佛心偶爾打打單機解任務，你說就集卡包你不花錢也不</summary><link rel='replies' type='application/atom+xml' href='http://tangblack.blogspot.com/feeds/5122719973989289284/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/5273493908896097193/5122719973989289284?isPopup=true' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5273493908896097193/posts/default/5122719973989289284'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5273493908896097193/posts/default/5122719973989289284'/><link rel='alternate' type='text/html' href='http://tangblack.blogspot.com/2021/11/nba2k22.html' title='NBA2K22 快兩個月的心得'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://img.youtube.com/vi/GrTq_NaFPgg/default.jpg" height="72" width="72"/><thr:total>0</thr:total></entry></feed>