11/14/2024

How to enable the separate/standalone search box (search bar) on Ubuntu/Windows

Ubuntu:

Modify /opt/microsoft/msedge/microsoft-edge and change the last line to:

exec -a "$0" "$HERE/msedge" "--enable-features=msSearchBoxInToolbar,msSearchBoxInToolbarSearchInteractionTrigger,msSearchBoxInToolbarShownTrigger $@"

Then sudo chmod 555 /opt/microsoft/msedge/microsoft-edge

Windows:

Modify the shortcut and add:

--enable-features=msSearchBoxInToolbar,msSearchBoxInToolbarSearchInteractionTrigger,msSearchBoxInToolbarShownTrigger

11/12/2024

How to extract mp3 from a video file by using ffmpeg

 ffmpeg -i "薛之谦 - 像风一样.mp4" -map a sample.mp3

11/11/2024

Microsoft Office Infinite login loop fix

 We have recently received the same feedback from many users and this has become a hot issue recently. After our investigation, your problem should be caused by an error in the account information recorded by the Office application, at this time I would recommend that you clean up the account information in the registry and then reopen the Office application and log in. Below are the exact steps:

1. Press Windows + R to open the run box, copy and paste the following path, back up all the folders in this path, and then delete them.

%localappdata%/Microsoft/OneAuth   
 
%localappdata%/Microsoft/IdentityCache   

2. Press Windows + R, enter regedit, click OK, open the registry, locate the following registry subkey, right-click Identity, and delete it.

HKEY_CURRENT_USER\SOFTWARE\Microsoft\Office\16.0\Common\Identity   

Disclaimer: In general, changing registry subkeys or workgroup is intended for advanced users, administrators, and IT professionals. It can help fix some issues, but serious problems can arise if you modify the registry incorrectly. Therefore, make sure to follow these steps carefully. For additional protection, back up the registry before editing it. Then, you can restore the registry if a problem occurs. For more information on how to back up and restore the registry, click How to back up and restore the registry in Windows - Microsoft Support to view the article.

If the problem reappears after cleaning the registration information, please refer to the following method to roll back Office applications to an older version:

1. Please close all Office applications first.

2.Run Command Prompt as an administrator ("Win" logo key + "Q", enter "cmd", select "Run as administrator"), and enter the following commands one by one.

cd %programfiles% \Common Files\microsoft shared\ClickToRun   
 
Officec2rclient.exe /update user updatetoversion=16.0.17531.20120   

3. After completing the installation, please restart your computer, then open the Office application and sign in to your Microsoft account.

4. Please open any Word/Excel/PPT document > Click on File in the upper left corner of the page > Click on Account in the lower left corner of the page > On the right side of the page, there will be information about your Office product, please click on the update option on the left side of the Office Update > In the menu, find the Disable Update, to avoid the problem of updating Office to the latest version. to prevent Office from updating to the latest version and causing the problem again.

11/08/2024

Fix "Your organization requires that you change your PIN"

1. Open local GPO Editor by running gpedit.msc command.

2. Next, go to Computer configuration > Administrative templates > System > PIN Complexity. Make the changes to match your PIN.

3. For password, changing the local group policy doesn't work. So the password must meet the complexity requirement set by the work account.

8/12/2024

电脑如何快速输入时间日期

使用搜狗输入法

高级设置 → 自定义短语 → 自定义短语设置


用一下函数:

函数表如下:

  函数     含义     举例

  $year     年(4位) 2006、2008

  $year_yy 年(2位) 06、08

  $month     月       12、8、3

  $month_mm   月       12、08、03 //此函数在输入法3.1版之后(含)有效

  $day     日       3、13、22

  $day_dd 日      03、13、22 //此函数在输入法3.1版之后(含)有效

  $weekday 星期     0、1、2、5、6

  $fullhour 时(24小时制)   02、08、13、23

  $halfhour 时(12小时制) 02、08、01、11

  $ampm     AM、PM(英) AM、PM(大写)

  $minute   分       02、08、15、28

  $second   秒       02、08、15、28

  $year_cn 年(中文4位) 二〇〇六

  $year_yy_cn 年(中文2位) 〇六

  $month_cn 月(中文) 十二、八、三

  $day_cn   日(中文) 三、十三、二十二

  $weekday_cn 星期(中文) 日、一、二、五、六

  $fullhour_cn 时(中文24时制) 二、八、十三、二十三

  $halfhour_cn 时(中文12时制) 二、八、一、十一

  $ampm_cn 上午下午(中文) 上午、下午

  $minute_cn 分(中文) 零二、零八、十五、二十八

  $second_cn 秒(中文) 零二、零八、十五、二十八

7/25/2024

Use keyboard to mimic mouse left click

Ubuntu/Linux: Create a shortcut to use xdotool click 1 command

Windows: Use AHK software,

#j::

  MouseClick, left

7/24/2024

Ubuntu hibernation fails

 Try: sudo swapoff -a && sudo swapon -a