2020年11月15日 星期日

Mac 版 Google Chrome 快捷鍵

 https://www.newmobilelife.com/2016/07/09/20-google-chrome-shortcut-hotkey/


主要想找切換分頁的快捷鍵

跳到左邊/右邊分頁:Command+Option+(左/右鍵)

2020年10月21日 星期三

設計思考目錄

 設計思考是一個很有趣的概念,類似於微創業跟軟體工程的敏捷開發,利用這樣的概念做事情成效比較大

算是未來趨勢

這篇文章會隨著越來越多的資料慢慢建立起來,是設計思考的目錄


推薦



開放式課程

書籍

資料

2020年9月1日 星期二

What the health?

在群組看到有人推薦這部影片

https://www.youtube.com/watch?v=5pYZtO1W_Tw

影片內容有許多與日常生活經驗跟官方說法不同的東西

我的困惑是這個到底真的假的?


後來稍微查了一下,知乎上有類似的討論

https://www.zhihu.com/question/62241450

這兩邊看完的心得大概是

1.飲食的重要性:注意營養與不要過量

2.沒鍛鍊的時候,可以吃素比較簡單

3.很多知識,都是廠商跟相關機構提供的,到底值不值得信任?商機上,一個值得信任的機構是有其價值的

2020年8月29日 星期六

Mac Youtube子母畫面

 按兩次右鍵就可以出現叫子母畫面的選項


按一次右鍵出現的是

按兩次右鍵則會出現


這樣就有子母畫面了

Visual Studio Target Platform Version抓不到正確的版本

1.在該project內調整

Project → 右鍵Properties → Configuration Properties → General →Target Platform Version

應該可以下拉選擇

2.Solution調整

Solution->右鍵Retarget solution

3.以上方法有問題的話

移除Windows SDK重新安裝


按照目前問題跟順序排序

應該先測試重裝Visual Studio

再測試重裝Windows SDK

Wireshark 異常筆記

 wireshark無法抓到封包

主要是因為公司電腦有鎖定admin權限,但後來跟IT拿了admin權限還是不行

再看內部自動安裝的有Npcap, 將其解除安裝後, 重新單獨安裝就可以正常抓到封包了

工作感悟

 工作就像大風吹,沒有誰是必要的。

走了一個只是換成另一個人;不想做了,也只是換另一個位置。

公司不會把你看得很重要,你也不要把公司看得太重要。

Mac 讀卡機讀不到...

 https://blog.xuite.net/sunnysoap/r/315768728-Mac+%E8%AE%80%E5%8D%A1%E6%A9%9F%E5%AE%89%E8%A3%9D%E5%AE%8C%E6%88%90%E5%BE%8C%EF%BC%8C%E8%A6%81%E5%A6%82%E4%BD%95%E7%A2%BA%E5%AE%9A%E6%98%AF%E5%90%A6%E5%AE%89%E8%A3%9D%E6%88%90%E5%8A%9F%EF%BC%9F


但最後卡在讀卡還是讀不到,先記錄

有空再來看看(或者下次要用讀卡機的時候再來看吧)

畢竟目前驅動是說版本不支援

2020年8月11日 星期二

TLDR

 http://www.learnenglishwithwill.com/tldr-meaning-demystified/#:~:text=TLDR%EF%BC%8C%E5%85%B6%E5%AE%9E%E6%98%AF%E8%8B%B1%E6%96%87%E4%B8%AD,%E6%98%AF%EF%BC%9A%E5%A4%AA%E9%95%BF%E4%B8%8D%E7%9C%8B%E3%80%82

色彩心理與設計

 famous1993.com.tw/tech/tech129.html

守望相助隊

 加入守望相助隊後

對自己的里更加了解,也可以看到各式各樣的鄰居們

人生的紀錄

Macbook pro傳說 右邊孔比較不會發燙

我自己試起來也有這個現象,大家也可以做個實驗看看。


國外實測結果確實如此,下面有位網友在stackexchange上發問

如何找到導致kernal_task高CPU使用率的原因?

high kernel_task CPU usage

這個可能持續數分鐘到有時候會有數小時,電腦在這樣的狀態下不能很有效率的運行。

重開機也沒有幫助,新的kernel_task procee也會再次產生,直到所有操作完成為止


最佳解答回答說

內文太長不看的話,直接看結論: 如果你的MacBook Pro運行時高溫或者顯示kernel相關任務高CPU使用率,嘗試將充電線及轉接頭從電腦左側移到右側


原文附上,暫時不翻譯

TLDR; If your MacBook Pro runs hot or shows a high % CPU for the kernel task, try charging on the right and not on the left.


High kernel_task CPU Usage is due to high chassis temperature caused by charging. In particular Left Thunderbolt port usage.

Solutions include:

  • Move charging from the left to the right side. If you have a second charger then plug it in on the right side. Avoid plugging everything on the right side (see last paragraph below).
  • Unplug something from the left side. Either power or another accessory until the battery is full.
  • Force fans to max before plugging in. iStatMenus has an easy Sensors -> Fans menu item to do so. This only helps in marginal conditions.
  • Move to a cooler room.

Proof:

Actual CPU temperature or application CPU usage is uncorrelated with kernel_task. A hot CPU is throttled by reducing its clock speed, not by scheduling fake no-op load.

The graphs below are from iStatMenus. The machine had been used on battery then plugged in.

State A a USB-C hub (a mouse and keyboard, plus power) and a USB-C HDMI 2.0 adapter, both on the left side. You can see the Thunderbolt Left Proximity temperature sensor rise quickly. About 3-4 minutes later the dreaded kernel_task high CPU usage starts.

State B cures the kernel_task problem by moving power from the left ports to the right. The left side temperature drops and the kernel_task goes away within about 15 seconds.

This is causal. Moving power back to the left side, restoring State A, quickly restores the temperatures and kernel_task again comes back after 3-4 minutes. Again moving power back to the right side, restoring State B, resolves the problem immediately.

State C shows that simply having stuff plugged in to TB ports raises their temperature significantly. Both the hub (mouse and keyboard ONLY) and HDMI adapter individually raise the temperature about 10 degrees, and 15 degrees together.

CPU usage and temperature graphs

(all other temperatures were both low and flat. Under 55 degrees.)

Note that high temperature on the right side appears to be ignored by the OS. Plugging everything into the two right ports instead of the left raised the Right temperatures to over 100 degrees, without the fans coming on. No kernel_task either, but the machine becomes unusable from something throttling.

Ergo, high CPU usage by kernel_task is caused by high Thunderbolt Left Proximity temperature, which is caused by charging and having normal peripherals plugged in at the same time.

2017 15" Macbook Pro, MacOS 10.14.5


To actually answer the question:

How can I find out what this process is doing?

The only way to actually ask the kernel what it's doing is to attach a kernel debugger. That means getting a debug kernel from Apple, rebooting, then using a second Mac to attach to the debugged machine. You can then examine stack traces and guess what they mean.

Otherwise guessing and testing is the only way. Of course that leads to false conclusions more often than not.


 https://apple.stackexchange.com/questions/363337/how-to-find-cause-of-high-kernel-task-cpu-usage

2020年8月10日 星期一

序列化 Serilization/ Serialisation

 

序列化 Serilization/ Serialisation

序列化 Serilization/ Serialisation

將資料結構或物件轉換成可儲存/傳送的格式 (即稱為序列化),以便之後能還原(反序列化)

序列化: serialization (US spelling) or serialisation (UK spelling)

反序列化: deserialization, (also called unserialization or unmarshalling)

序列化電腦科學中通常有以下定義:

  • 對同步控制而言,表示強制在同一時間內進行單一存取。

用途

  • 經由電信線路傳輸資料的方法(通訊)。
  • 儲存資料的方法(在資料庫或硬碟)。
  • 遠端程式調用的方法,例如在SOAP中。
  • 在以元件為基礎,例如COMCORBA的軟體工程中,是物件的分散式方法。
  • 檢測隨時間資料變動的方法。

優點

它使輸出入介面簡單而共同,能被用來保持及傳遞物件的狀態。

要求高效能的應用時,花費精力處理更複雜的非線性儲存系統是有其必要意義的。

缺點

序列化可能會破解抽象資料型別的封裝實作,而使其詳細內容曝光。簡單的序列化實作可能違反物件導向中私有資料成員需要封裝(encapsulation)的原則。商用軟體的出版商通常會將應用軟體的序列化格式,當作商業秘密,以阻礙競爭對手生產可相容的產品;有些會蓄意地混淆,或甚至將序列化資料作加密處理。

程式語言支援

C/C++

C 和 C++ 沒有提供任何類型的高階序列化構造,但是兩種語言都支援將內建資料型別以及一般的資料結構(struct)輸出為二進制資料。

Boost框架有實作Boost.Serialization。

Python

Python編程核心的序列化機制是pickle標準函式庫,這名稱暗示資料庫相關的特別術語「浸漬」,來描述資料反序列化(unpickling for deserializing)。Pickle 使用一個簡單的基於堆疊的虛擬機來記錄用於重建物件的指令。這是個跨版本並可自訂定義的序列化格式,但並不安全(不能防止錯誤或惡意資料)。錯誤格式或蓄意構建的資料,可能導致序列反解器匯入任意模組,而且實例化任何物件。

這個函式庫有另外包括序列化為標準資料格式的模組:json(內置的基本純量與集合型別支援,且能夠通過編解碼支援任何型別)和XML編碼的屬性列表(plistlib),限於plist支援的類型(數字,字串,布林,元組,串列,字典,日期時間和二進制blob)。最後,建議在正確的環境中評估物件的__repr__,使其和Common Lisp的列印物件大略地相符合。並非所有物件類型可以自動浸漬,特別是那些擁有操作系統資源(如檔案把柄)的,但開發人員能註冊自訂定義的「縮減」和構造功能,來支援任何型別的浸漬和序列化。

Pickle最初是純粹以Python程式語言來實作的模組,但在Python 3之前的版本中,cPickle模組(也是內建的)提供了更快速的效能。cPickle從Unladen Swallow專案改造而成。在Python 3中,開發人員應該匯入標準版本,該版本會嘗試匯入加速版本並返回純Python版本。

JavaScript

Since ECMAScript 5.1,[11] JavaScript has included the built-in JSON object and its methods JSON.parse() and JSON.stringify(). Although JSON is originally based on a subset of JavaScript,[12] there are boundary cases where JSON is not valid JavaScript. Specifically, JSON allows the Unicode line terminators U+2028 LINE SEPARATOR and U+2029 PARAGRAPH SEPARATOR to appear unescaped in quoted strings, while ECMAScript 2018 and older does not.[13][14] See the main article on JSON.

Windows PowerShell

Windows PowerShell implements serialization through the built-in cmdlet Export-CliXMLExport-CliXML serializes .NET objects and stores the resulting XML in a file. To reconstitute the objects, use the Import-CliXML cmdlet, which generates a deserialized object from the XML in the exported file. Deserialized objects, often known as "property bags" are not live objects; they are snapshots that have properties, but no methods. Two dimensional data structures can also be (de)serialized in CSV format using the built-in cmdlets Import-CSV and Export-CSV.

https://zh.wikipedia.org/wiki/序列化

Immutability



參考資料

 https://en.wikipedia.org/wiki/Immutable_object?wprov=sfti1

Declarative vs imperative programming

參加一門Functional Programing with Python的免費課程(Linkedln提供24小時免費)


大概記一下重點,之後寫筆記

 


網路上其他參考資料

https://www.cnblogs.com/sirkevin/p/8283110.html

2020年8月9日 星期日

“could not open /dev/ vmmon,Please make sure that the kernel module `vmmon' is loaded.”

 原本計劃使用mac就不要搞雙系統

但攝影課的老師要我們帶筆電去上課,並且指定要安裝兩款影像處理軟體

只好來處理Windows安裝問題


其中遇到的問題紀錄一下,之後會寫一篇安裝教學

“could not open /dev/ vmmon,Please make sure that the kernel module `vmmon' is loaded.”

基本上後來發現是安全性問題
先打開終端機,輸入
    sudo spctl --master-disable
接著打開安全與隱私權的設定

2020年8月2日 星期日

求職資訊+薪資平台 分享

求職資訊跟薪資分享平台的整理
整理自己需要的資訊,也希望這些資訊可以對有需要的人有所幫助
先把連結附上,有機會我再補上我對各個平台的心得

其他要積分的平台我不列入,因為我看到熟悉的公司有人資上去洗評價,跟對負面評價洗白的動作







另一個是國外公司好用的 Glassdoor,也是我最常使用的
通常在台灣的外商,上面的缺點都有,而且更糟
部分亞洲人掌權的公司喜歡玩一招,就是讓Intern去洗版
看評價的時候,可能整體大概3左右,但是一看Intern都給5分,但是正職給很低分

對岸的很多,我列一個就好
在對岸有設分公司的話,也可以看看,通常會改名的就知道有什麼負面評價特別多

2020年7月25日 星期六

Macbook Pro 購買

終於過了好長的時間藉由在學中的表弟協助買了人生中的第一台macbook筆電 
Macbook Pro 16(2019)

購買的時間點是Line的10%回饋+教育價+BTS(送airpods)
另外有送一年的Apple TV+
基本上Line回饋是要扣掉稅金後的回饋,大概等於9.5%

教育價筆電折數不一,基本上越高價的折數越高(當時的觀察)
最後算完各種回饋(不考慮Apple TV+)是78折

另外在60天內可以購買Apple Care+,並且教育價是8折優惠
購買途徑可以藉由兩家直營門市(101,A13)或者電話辦理(一到五早上九點到下午六點之間才能辦理這個服務)

補充下不是Apple Care+不用教育價的話,未拆封下可以在德誼門市加保


目前買新的Apple裝置都有免費贈送一年的Apple TV+

開箱



















規格

ADGuard