2023/11/08

學會程式交易~開啟穩定賠錢的旅程

 為了打造自動化交易工具,產生穩定的被動收入,就開始學python,要來打程式交易。

程式做出來了,但交易策略不太行,所以反而變成穩定的被動失血。

策略還是最重要的東西,想不出一個正期望值的策略,有沒有程式交易其實也沒什麼意義。


2023/10/31

kaspersky endpoint protection(KES) 造成chatgpt 無法回應答案

 去年在使用chatgpt時,可登入,但輸入問題後按下enter,都不會有任何回應。

後來把防毒kes關閉後,就正常了,那時因為版本比較舊,升級後就正常了。

但這幾天又發生了,雖然kes有出比較新的版本了,但跟現在的版本差異不太,所以就先問廠商。

廠商判斷應該是被憑證影響了,要把幾個chatgpt相關的網址加到信任網域內,就可以正常chatgpt的回覆就可以正常顯示。

在政策裡面的一般設定-->網路設定-->受信任網域 裡面,把下列幾個網址加進去即可。

chat.openai.com

auth0.openai.com

cdn.openai.com

cdn.auth0.com

tcr9i.chat.openai.com

cdn.oaistatic.com

events.statsigapi.net


Last year, when I used ChatGPT, I was able to log in, but after entering a question and pressing Enter, there was no response.

I later turned off the antivirus software Kes, and it worked normally. At the time, the version was older, so upgrading it fixed the problem.

However, the issue has occurred again in the past few days. Although Kes has a newer version, it is not much different from the current version. So, I contacted the support vendor.

The vendor determined that the issue was caused by a certificate. Adding the following URLs to the trusted domain will allow ChatGPT responses to be displayed normally.

chat.openai.com
auth0.openai.com
cdn.openai.com
cdn.auth0.com
tcr9i.chat.openai.com
cdn.oaistatic.com
events.statsigapi.net

2023/10/17

POWERSHELL 結果匯出成csv 國字變亂碼問號

在用powershell把一些安全性log匯出成csv時,國字 都會變成問號,這時只要把最後匯出成csv的指令,後面在加個用utf8編碼的指令就可以正常顯示了。

原指令

 Export-Csv d:\eventlog.csv

修正後

 Export-Csv  d:\eventlog.csv -NoTypeInformation -encoding utf8


2023/10/06

Word插入物件出現錯誤-此物件是使用程式Acrobat建立。您的電腦並未安裝此程式

 在WORD程式內,透過插入物件的功能,要插入一個PDF檔,卻跳出"此物件是使用程式Acrobat建立。您的電腦並未安裝此程式......請安裝Acrobat或確定已關閉Acrobat中任何的對話"



先確認PDF檔都是可直接用Acrobat PDF Reader開啟,WORD試著插入EXCEL物件也正常。

所以就決定先重裝Acrobat PDF Reader,結果就解決問題了。


When trying to insert a PDF file into a Word document using the "Insert Object" function, the following error message appears: "This object was created using the Acrobat program. This program is not installed on your computer. Please install Acrobat or make sure that all Acrobat dialog boxes are closed."

I confirmed that the PDF files could be opened directly using Acrobat Reader. I also tried inserting an Excel object into a Word document, and that worked fine.

Based on these findings, I decided to reinstall Acrobat Reader. After doing so, the problem was resolved.

2023/09/27

有些筆電接HDMI無法投影 接D-SUB卻正常

 近期買的筆電在用HDMI連接會議室投影機時,都會顯示沒有連接到設備,接D-SUB卻正常投影。其他舊筆電兩種連接方式都正常。

本來以為是中間有連接一些轉接頭的關係,後來才發現,是因為新筆電解析度很高,但投影機的太低,如果接上投影機時,是在"同步顯示"的狀態下,投影機的畫面就無法投影,要改成"僅第二個螢幕顯示",或是把筆電的解析度降低,就可以正常投影了。


Recently purchased laptops using HDMI to connect to the projector will display "No device connected". D-SUB can be connected normally. Other old laptops can connect normally in both ways.

At first, I thought it was because of the adapters in the middle. Later, I found out that it was because the new laptop has a high resolution, while the projector is old and has a low resolution. If the projector is connected in "Synced display" mode, the projector's image cannot be projected. You need to change to "Only second monitor display" or lower the laptop's resolution to be able to project normally.

2023/09/26

linux mount 沒反應 後來出現 mount.nfs input/output error

 有一台linux主機在重開機後要重新mount其他機器的分享資料夾,執行執令後,畫面上沒任何反應。

過了一下子才會出現 mount.nfs input/output error,這是因為 /etc/init.d/portmap 這個服務沒有啟動的關係,

 先 執行/etc/init.d/portmap status, 確認該服務是stop。

接著用執行啟用的指令/etc/init.d/portmap start,就可以再執行mount的動作了。


A Linux host fails to mount a shared folder from another machine after a reboot. After executing the mount command, the screen is blank.

After a while, an error message "mount.nfs input/output error" appears. This is because the service "/etc/init.d/portmap" is not running.

First, execute the command "/etc/init.d/portmap status" to confirm that the service is stopped.

Then, execute the command "/etc/init.d/portmap start" to start the service. After that, you can mount the shared folder again.

2023/09/25

VMWARE匯入OVA失敗-硬體系列 vmx-18 不受支援

在新建虛擬機,從esxi要匯入一個 ova檔時,最後一步出現錯誤:硬體系列 vmx-18 不受支援



原因是此ova是比較新的esxi建的,現在要匯入到比較舊的esxi所以無法支援,只要在esxi升級就行了。



When creating a new virtual machine, an error occurs in the last step when importing an ova file from ESXi: "Hardware series vmx-18 is not supported."

The reason for this error is that the ova was created with a newer version of ESXi and is now being imported to an older version of ESXi, which does not support the vmx-18 hardware series. The solution is to upgrade ESXi to a version that supports the vmx-18 hardware series.


2023/09/18

更新KESS到最新版3.2後 無法連線到中控台Server

將KESS升級到最新版後,連同Network Agent也一起更新到14版。

裝好後卻一直無法跟中控台連線,測了一下發現是Network Agent 有啟用,但連不到中控台。

原來是Network Agent 14版不支援比較舊的作業系統了,規格可參考下列的kaspersky官網說明

https://support.kaspersky.com/KSC/14.2/en-US/255797.htm


After upgrading KESS to the latest version, the Network Agent  were also updated to version 14.

After installation, the connection to the central console was not possible. Testing revealed that the Network Agent were running, but could not connect to the central console.

It turned out that Network Agent version 14 no longer supports older operating systems. The specifications can be found in the following Kaspersky website documentation:

https://support.kaspersky.com/KSC/14.2/en-US/255797.htm


2023/09/13

WIN10筆電突然麥克風無法收音

 筆電突然無法收音,但裝置都還在。

重上驅動也沒用。

可以換個帳號登入試試,有時後是profile的問題,如果換個帳號登入,麥克風是正常的,重把有問題的使用者profile重建即可。




The Windows10 laptop microphone suddenly stopped working, but the device is still there.

Reinstalling the driver did not work.

You can try logging in with a different account. Sometimes it is a profile issue. If the microphone works normally when you log in with a different account, you can rebuild the user profile with the problem.

2023/09/11

Office2010安裝 錯誤1402

 Office突然不能用,無法移除,安裝也跳這個錯誤1402的錯誤。


執行 secedit /configure /cfg %windir%\inf\defltbase.inf /db defltbase.sdb /verbose 
就可重新安裝。




Office suddenly stopped working, could not be removed, and the installation failed with error code 1402.

Executing the following command will allow you to reinstall Office

secedit /configure /cfg %windir%\inf\defltbase.inf /db defltbase.sdb /verbose