2022/07/11

Teams 登入失敗 Error Code caa20002

 突然多位user的Teams登入失敗,錯誤代碼都是caa20002。

這些登入失敗的電腦,都是win7,但又不是每一台win7都有這個問題,有點奇怪。

後來找了幾台不同的電腦測試後,才發現原因。

主要是因為IE的關係,要IE11才能正常登入Teams程式,其他比較低階的版本,都會失敗。

很討厭的問題,因為錯誤訊息根本跟IE沒關係,很難查原因。


Teams Login Failure with Error Code caa20002

Multiple users suddenly encountered login failures in Teams, with the error code caa20002.

Interestingly, these login issues were observed on computers running Windows 7, but not every Windows 7 device was affected, which seemed puzzling.

After conducting tests on several different computers, the root cause was identified.

The problem primarily stemmed from Internet Explorer (IE) compatibility. Teams application requires IE11 to function properly, and lower versions of IE would result in login failures.

This issue was frustrating because the error message provided no indication of an IE-related problem, making it difficult to identify the cause.

2022/07/05

CentOS 建立有root權限的帳號

 因為不想讓其他人有root的密碼,但又需要root權限工作,所以需要建立一個有root權限的帳號。

帳號建好後,執行下列指令,讓該帳號能用sudo,又不需要輸入任何root密碼,就可用root權限工作。做完在把該帳號停用就好了。

[root@test ~]# visudo

在裡面找到下列這行

root    ALL=(ALL)       ALL

在底下加入其他用戶

newuser     ALL=(root) ALL  

存檔離開,然後newuser就可以在不輸入密碼的情況下執行sudo指令,達到有root權限的目的。


Creating a Root-privileged Account on CentOS

To prevent sharing the root password with others while still needing root privileges, it is necessary to create an account with root privileges.

Once the account is created, execute the following command to allow the account to use sudo without entering any root password, enabling it to perform tasks with root privileges. Afterward, the account can be deactivated.

[root@test ~]# visudo

Find the following line within the file:

root ALL=(ALL) ALL

Add the desired user below it:

newuser ALL=(root) ALL

Save the changes, exit the file, and then the newuser can execute sudo commands without entering a password, achieving the goal of having root privileges.


HPE switch reset 重置

 最近買了HPE的switch,然後在設定時設定錯了,造成登入後沒權限做任何設定的調整,只能做設定的重置。

但現在的switch已沒有實體的reset鍵,只好透過官網提供的方式來reset。


首先,先重開switch,在重開的過程中會提示,可以按下Ctrl+B進入進階的開機選單中

進到進階開機選單後,就先選7,這是讓你下次重開機後,會跳過原本的設定檔,就像新機一樣,這時就可以重新建立一個新的帳號,給他最高的權限,然後存檔覆蓋原本的設定檔,再重開機,就可以用新建的帳號進去了。

下面是原廠提供的操作畫面,可以參一下。   


    BOOT  MENU    


1. Download application file to flash  

2. Select application file to boot  

3. Display all files in flash  

4. Delete file from flash  

5. Modify bootrom password  

6. Enter bootrom upgrade menu  

7. Skip current configuration file  

8. Set bootrom password recovery  

9. Set switch startup mode  

0. Reboot    


Enter your choice(0-9):      

Enter 7 (Skip current system configuration) and restart the switch (opcion 0). The switch reboots with empty configuration, and can log in through the console port without entering the password to check the configuration file for the user password.



Enter your choice(0-9): 7  

The current setting will boot with current configuration file when rebooted.  

Are you sure you want to skip current configuration file when reboot? Yes or No [Y/N] y  

Setting......done!              


    BOOT  MENU    


1. Download application file to flash  

2. Select application file to boot  

3. Display all files in flash  

4. Delete file from flash  

5. Modify bootrom password  

6. Enter bootrom upgrade menu  

7. Skip current configuration file  

8. Set bootrom password recovery  

9. Set switch startup mode  

0. Reboot    


Enter your choice(0-9): 0    


Starting......      

2022/06/23

選擇權操作-202206w5-沒想到還有w5

 本來想七月才重新開始,這周就可以來交易了。

沒想到這周只是6月w5~那就繼續忍吧,當作是在考驗自己的紀律。

2022/06/21

Fortigate 內部無法直接連線外部虛擬IP

 在防火牆設定好要對外服務主機的外部IP後。從外部網路連線時,沒問題。

但如果從內部網路去連線這個外部IP,卻是不通的。

原因就出在設定虛擬IP時,有一個欄位"介面",若沒有指定,就無法從內部做連線。

只要設定好這個虛擬IP所在的介面,就沒問題了。



Fortigate cannot directly connect to an external virtual IP internally.

After configuring the firewall to use an external IP for a specific service host, there is no issue connecting from an external network.
However, if an internal network tries to connect to this external IP, it will not work.
The reason for this lies in the configuration of the virtual IP. There is a field called "Interface" that needs to be specified. Without specifying the interface, internal connections cannot be established.
Once the interface for the virtual IP is properly configured, the issue should be resolved, and internal connections to the external IP will work correctly.

選擇權操作-202206w4-上週賠太多 這周空手

 上週賠太多了,要冷靜一下。

這週就空手,重新檢視一下交易策略,等七月在開工。

一直急著想交易,也只是愈賠愈多。

2022/06/20

EXCEL開啟出錯 "excel 部分內容有問題 您要我們盡可能嘗試復原嗎"

 有一個有多頁籤的excel檔,裡面只要是文字跟一些圖片。

之前都可以用,今天在開啟時突然跳錯誤



excel自行修復後,檔案可以開,但很多圖片卻不見了,而且每次開啟都會跳一樣的錯誤。
後來有查到一個不錯的解決方法,就是去安裝免費的open office,利用裡面的excel功能來開啟這個異常的檔案,就可以正常開啟了,接著在另存新檔,這個新檔就可以在微軟的excel裡正常執行了。

Excel error on opening: "Excel found unreadable content. Do you want to recover as much as we can?"

There is an Excel file with multiple tabs containing text and some images.

Previously, it was working fine, but today, when trying to open it, an error suddenly occurred.

After Excel attempted to repair the file, it could be opened, but many images were missing, and the same error message appeared every time it was opened.

Later, a helpful solution was found. By installing the free OpenOffice software and using its Excel functionality to open the problematic file, it could be opened successfully. Then, the file was saved as a new file, which could be opened and executed properly in Microsoft Excel.



2022/06/16

您的電腦遺失api-ms-win-crt-runtime-l1-1-0-dll

 有些電腦在執行某些程式時,時會出現"您的電腦遺失api-ms-win-crt-runtime-l1-1-0-dll",以致程式打不開。

重裝程式也沒用,因為這個.dll檔是其他程式提供的,就是微軟的c++可轉發套件。

去下載後重新安裝c++可轉發套件,就可解決此問題。




Your computer is missing api-ms-win-crt-runtime-l1-1-0.dll.

On certain computers, when running certain programs, an error message may appear stating "Your computer is missing api-ms-win-crt-runtime-l1-1-0.dll," causing the program to fail to launch.

Reinstalling the program does not resolve the issue because this .dll file is provided by another program, namely Microsoft's C++ redistributable package.

To resolve this problem, you need to download and reinstall the C++ redistributable package. This will ensure that the missing api-ms-win-crt-runtime-l1-1-0.dll file is properly installed on your computer.

2022/06/15

選擇權操作-202206w3-只做最後兩天雙買,被殺爆了

 最近 都是開低走高,所做做空方都被殺。

又賠了快130點,真的慘。

如果做賣方,反而都會賺錢....

休息一下好了,不順就要暫停一下,不能一直賠下去。

2022/06/09

OUTLOOK很舊的信變亂碼 比較新的信正常

因為換新電腦,所以把舊電腦的PST檔一起移到新電腦上。
但 在查詢一些信件時發現一個怪事,大概在2013年以前的信件,全變成亂碼。之後的信件,卻都正常。
在舊電腦上是完成正常的,所以就在找另外兩台電腦來測試,測試後發現,同一個PST檔,在某些電腦上都有這個問題,在另一些電腦卻沒事,跟OUTLOOK或WINDOWS的版本都沒直接關係。
最後才發現,原來是OUTLOOK裡面的編碼設定造成的。
編碼如果改成BIG5,就沒有亂碼的問題,調成UTF8就有。
但還是跟使用者說,因為都是很舊的信才有影響,平常還是建議用UTF8,有需要查舊資料,才用BIG5。




Old emails in Outlook are displayed as garbled characters, while newer emails appear normal. 
Due to a computer upgrade, the PST file from the old computer was transferred to the new computer. However, upon checking some emails, a strange issue was discovered. Emails dated before approximately 2013 appeared as garbled characters, while those after that period appeared correctly.

The emails displayed correctly on the old computer, so additional testing was conducted on two other computers. It was found that the same PST file exhibited this issue on certain computers but not on others, regardless of the version of Outlook or Windows being used. Eventually, it was discovered that the encoding settings within Outlook were causing the problem.

Changing the encoding to BIG5 resolved the issue and prevented the garbled characters. However, it is still recommended to use UTF8 encoding for general use, as it is more widely supported. The BIG5 encoding should be used only when accessing old data that is affected by this issue.