[
2021/10/16 09:34 | by 孤城浪子 ]

使用foobar2000自带编码器转换为Apple lossless格式时出错:
An error occurred while writing to file (The encoder has terminated prematurely with code 2 (0x00000002); please re-check parameters)
解决方法:
创建自定义编码器预设,然后指向相关编码器,例如
D:\foobar2000\encoders\qaac64.exe编码器名 Encoder name:QAAC (可自定)
参数Paramenters填: --alac -o %d -
最下面Settings填: -A -o %d -
[
2021/09/06 11:13 | by 孤城浪子 ]

Windows Server LTSC/LTSB versions
Windows Server 2022
Operating system edition | KMS Client Setup Key |
---|---|
Windows Server 2022 Datacenter | WX4NM-KYWYW-QJJR4-XV3QB-6VM33 |
Windows Server 2022 Standard | VDYBN-27WPP-V4HQT-9VMD4-VMK7H |
Windows Server 2019
Operating system edition | KMS Client Setup Key |
---|---|
Windows Server 2019 Datacenter | WMDGN-G9PQG-XVVXX-R3X43-63DFG |
Windows Server 2019 Standard | N69G4-B89J2-4G8F4-WWYCC-J464C |
Windows Server 2019 Essentials | WVDHN-86M7X-466P6-VHXV7-YY726 |
Windows Server 2016
Operating system edition | KMS Client Setup Key |
---|---|
Windows Server 2016 Datacenter | CB7KF-BWN84-R7R2Y-793K2-8XDDG |
Windows Server 2016 Standard | WC2BQ-8NRM3-FDDYY-2BFGV-KHKQY |
Windows Server 2016 Essentials | JCKRF-N37P4-C2D82-9YXRT-4M63B |
来源:https://docs.microsoft.com/en-us/windows-server/get-started/kms-client-activation-keys
[
2021/09/06 11:10 | by 孤城浪子 ]

微软试用版的系统叫做评估版,使用时间是180天。过期之后就会提示你需要激活。需要永久激活系统首先要转为正式版。
总共两个步骤,如果你还是不会转,或者卡住在10%,那就建议你重新安装正式版的吧。
1、管理员模式运行cmd,输入命令:DISM /online /Get-CurrentEdition,得到结果:
C:\Users\Administrator>DISM /online /Get-CurrentEdition
部署映像服务和管理工具
版本: 10.0.20348.1
映像版本: 10.0.20348.202
当前版本为:
当前版本 : ServerDatacenterEval
操作成功完成。
部署映像服务和管理工具
版本: 10.0.20348.1
映像版本: 10.0.20348.202
当前版本为:
当前版本 : ServerDatacenterEval
操作成功完成。
其中ServerDatacenterEval去掉Eval后,就是当前的Edition ID
2、输入命令:DISM /online /Set-Edition:ServerDatacenter /ProductKey:WX4NM-KYWYW-QJJR4-XV3QB-6VM33 /AcceptEula 这里的命令是升级Windows Server 2022 数据中心版的例子,如果是其他版本,需要替换掉对应的key和Edition,运行结果如下:
C:\Users\Administrator>DISM /online /Set-Edition:ServerDatacenter /ProductKey:WX4NM-KYWYW-QJJR4-XV3QB-6VM33 /AcceptEula
部署映像服务和管理工具
版本: 10.0.20348.1
映像版本: 10.0.20348.202
开始升级组件...
开始安装产品密钥...
产品密钥安装已完成。
正在添加程序包 Microsoft-Windows-ServerDatacenterEdition~31bf3856ad364e35~amd64~~10.0.20348.169
[==========================100.0%==========================]
组件升级已完成。
部署映像服务和管理工具
版本: 10.0.20348.1
映像版本: 10.0.20348.202
开始升级组件...
开始安装产品密钥...
产品密钥安装已完成。
正在添加程序包 Microsoft-Windows-ServerDatacenterEdition~31bf3856ad364e35~amd64~~10.0.20348.169
[==========================100.0%==========================]
组件升级已完成。
重新启动 Windows 就变成正式版了。
[
2019/06/10 04:01 | by 孤城浪子 ]

Microsoft Visual C++ 2005
Microsoft Visual C++ 2005 Redistributable Package (x86)
https://download.microsoft.com/download/5/2/1/5212066c-5f48-4b16-a059-ed84b505a65d/vcredist_x86.exe
Microsoft Visual C++ 2005 Redistributable Package (x64)
https://download.microsoft.com/download/4/4/e/44e0443c-e560-48db-b817-f5c94036a89f/vcredist_x64.exe
Microsoft Visual C++ 2008
Microsoft Visual C++ 2008 Redistributable Package (x86)
Microsoft Visual C++ 2008 Redistributable Package (x64)
https://download.microsoft.com/download/2/b/e/2bec4780-6f99-4347-ad31-48d4b46ab1d3/vcredist_x64.exe
Microsoft Visual C++ 2010
Microsoft Visual C++ 2010 SP1 Redistributable Package (x86)
Microsoft Visual C++ 2010 SP1 Redistributable Package (x64)
https://download.microsoft.com/download/A/8/0/A80747C3-41BD-45DF-B505-E9710D2744E0/vcredist_x64.exe
Microsoft Visual C++2012
Visual C++ Redistributable for Visual Studio 2012 Update 4
https://download.microsoft.com/download/9/C/D/9CD480DC-0301-41B0-AAAB-FE9AC1F60237/VSU4/vcredist_x86.exe
https://download.microsoft.com/download/9/C/D/9CD480DC-0301-41B0-AAAB-FE9AC1F60237/VSU4/vcredist_x64.exe
Microsoft Visual C++2013
Visual C++ Redistributable Packages for Visual Studio 2013
https://download.microsoft.com/download/F/3/5/F3500770-8A08-488E-94B6-17A1E1DD526F/vcredist_x86.exe
https://download.microsoft.com/download/F/3/5/F3500770-8A08-488E-94B6-17A1E1DD526F/vcredist_x64.exe
Microsoft Visual C++ 2015
Microsoft Visual C++ 2015 Redistributable Update 3
https://download.microsoft.com/download/6/D/F/6DF3FF94-F7F9-4F0B-838C-A328D1A7D0EE/vc_redist.x86.exe
https://download.microsoft.com/download/6/D/F/6DF3FF94-F7F9-4F0B-838C-A328D1A7D0EE/vc_redist.x64.exe
Microsoft Visual C++ 2005 Redistributable Package (x86)
https://download.microsoft.com/download/5/2/1/5212066c-5f48-4b16-a059-ed84b505a65d/vcredist_x86.exe
Microsoft Visual C++ 2005 Redistributable Package (x64)
https://download.microsoft.com/download/4/4/e/44e0443c-e560-48db-b817-f5c94036a89f/vcredist_x64.exe
Microsoft Visual C++ 2008
Microsoft Visual C++ 2008 Redistributable Package (x86)
https://download.microsoft.com/download/2/b/e/2bec4780-6f99-4347-ad31-48d4b46ab1d3/vcredist_x64.exe
Microsoft Visual C++ 2010
Microsoft Visual C++ 2010 SP1 Redistributable Package (x86)
https://download.microsoft.com/download/A/8/0/A80747C3-41BD-45DF-B505-E9710D2744E0/vcredist_x64.exe
Microsoft Visual C++2012
Visual C++ Redistributable for Visual Studio 2012 Update 4
https://download.microsoft.com/download/9/C/D/9CD480DC-0301-41B0-AAAB-FE9AC1F60237/VSU4/vcredist_x86.exe
https://download.microsoft.com/download/9/C/D/9CD480DC-0301-41B0-AAAB-FE9AC1F60237/VSU4/vcredist_x64.exe
Microsoft Visual C++2013
Visual C++ Redistributable Packages for Visual Studio 2013
https://download.microsoft.com/download/F/3/5/F3500770-8A08-488E-94B6-17A1E1DD526F/vcredist_x86.exe
https://download.microsoft.com/download/F/3/5/F3500770-8A08-488E-94B6-17A1E1DD526F/vcredist_x64.exe
Microsoft Visual C++ 2015
Microsoft Visual C++ 2015 Redistributable Update 3
https://download.microsoft.com/download/6/D/F/6DF3FF94-F7F9-4F0B-838C-A328D1A7D0EE/vc_redist.x86.exe
https://download.microsoft.com/download/6/D/F/6DF3FF94-F7F9-4F0B-838C-A328D1A7D0EE/vc_redist.x64.exe
[
2015/03/08 10:31 | by 孤城浪子 ]

把所有INNODB表转换成MYISAM表的脚本
mysql -N -s information_schema -e "SELECT CONCAT('ALTER TABLE ',TABLE_NAME,' ENGINE=MYISAM;') FROM TABLES WHERE TABLE_SCHEMA='static' AND ENGINE='INNODB'" | mysql static
mysql -N -s information_schema -e "SELECT CONCAT('ALTER TABLE ',TABLE_NAME,' ENGINE=MYISAM;') FROM TABLES WHERE TABLE_SCHEMA='static' AND ENGINE='INNODB'" | mysql static