分类 Windows 下的文章

从某教育网上摸来的,不知道有用没,先放着

能够升级到校园正版的windows版本有:

win8 企业版和专业版
win7企业版和专业版
vista business 和enterprise版本
升级办法:首先以管理员身份运行命令行CMD,win7和win8都可以在搜索那输入cmd,然后会出来cmd选项,点击右键选择以管理员身份运行, 然后输入命令:

slmgr /ipk KMS密钥

这里的密钥对应你得操作系统版本如下:

Windows 7
Windows 7 Professional FJ82H-XT6CR-J8D7P-XQJJ2-GPDD4
Windows 7 Professional N MRPKT-YTG23-K7D7T-X2JMM-QY7MG
Windows 7 Enterprise 33PXH-7Y6KF-2VJC9-XBBR8-HVTHH
Windows 7 Enterprise N YDRBP-3D83W-TY26F-D46B2-XCKRJ
Windows 7 Enterprise E C29WB-22CC8-VJ326-GHFJW-H9DH4

Windows 8
Windows 8 Professional NG4HW-VH26C-733KW-K6F98-J8CK4
Windows 8 Professional N XCVCF-2NXM9-723PB-MHCB7-2RYQQ
Windows 8 Enterprise 32JNW-9KQ84-P47T8-D8GGY-CWCK7
Windows 8 Enterprise N JMNMF-RHW7P-DMY6X-RF3DR-X2BQT

Windows Vista
Windows Vista Business YFKBB-PQJJV-G996G-VWGXY-2V3X8
Windows Vista Business N HMBQG-8H2RH-C77VX-27R82-VMQBT
Windows Vista Enterprise VKK3X-68KWM-X2YGT-QR4M6-4BWMV
Windows Vista Enterprise N VTC42-BM838-43QHV-84HX6-XJXKV

Windows 8.1
Windows 8.1 Professional GCRJD-8NW9H-F2CDX-CCM8D-9D6T9
Windows 8.1 Professional N HMCNV-VVBFX-7HMBH-CTY9B-B4FXY
Windows 8.1 Enterprise MHF9N-XY6XB-WVXMC-BTDCT-MKKG7
Windows 8.1 Enterprise N TT4HM-HN7YT-62K67-RGRQJ-JFFXW

Windows 10
Windows 10 Professional W269N-WFGWX-YVC9B-4J6C9-T83GX
Windows 10 Professional N MH37W-N47XK-V7XM9-C7227-GCQG9
Windows 10 Enterprise NPPR9-FWDCX-D2C8J-H872K-2YT43
Windows 10 Enterprise N DPH2V-TTNVB-4X9Q3-TJR4H-KHJW4

完整命令如下:以win7 专业版为例

slmgr.vbs /ipk FJ82H-XT6CR-J8D7P-XQJJ2-GPDD4 (回车)  
slmgr.vbs /skms ca.swufe.edu.cn (回车)  
slmgr.vbs /ato(回车)  

这样就完成了升级激活的安装了,你可以点击电脑然后鼠标右键查看属性就能看到自己电脑的激活状态了

wdnmd,一直以为是显示器线的问题

到网上搜索过多次,基本上不是说换线,或者没人理,就是碰到贴吧太监(咳咳。指某些问题解决后不放方法的人)

然后今天到网上再次搜索,发现有人提到了Intel的显卡控制面板。然后就突然想起来,之前好像在里面改过设置。。

依次选择 显示器-颜色设置,选到外置显示器,有个YCbCr选项,启用/禁用的效果在显示器上能够看到明显的不同。

之前在一块ViewSonic VX2478上测试的时候发现,开了以后颜色更好看,然后就一直开着了。

然后又换了一块Philips 226V,结果亮的瞎眼,一度以为屏幕坏了= =

这可能就是不同屏幕对YCbCr的解析效果不同的结果吧

但是感觉又不像YUV420(HDMI 1.4不能4K60帧),难道是422?

444的话应该和RGB没有太大的差别啊

不记得之前为什么用过了,反正在配置VS2019+CUDA9.2的时候用过这个方法,至于有没有用,为啥用都忘记了

https://devtalk.nvidia.com/default/topic/1049858/cuda-setup-and-installation/msvs-2019-and-cuda-10-1-issues/

复制一下防止原链翻车

I found a solution to this.

  1. Copying the content of the folder: C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v10.1\extras\visual_studio_integration\MSBuildExtensions

    to:

    C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VC\v160\BuildCustomizations

  2. Close all running instances of Visual Studio. Go to C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\Common7\IDE\Extensions\NVIDIA. Create a directory here called CUDA 10.1 Wizards, then create a sub-directory underneath it called 10.1.

  3. In this 10.1 sub-directory, create shortcuts to: (VS will not allow to create the shortcuts directly here. Create the shortcuts on the desktop and move them from there to this 10.1 sub-directory):

    C:\ProgramData\NVIDIA GPU Computing Toolkit\v10.0\extras\visual_studio_integration\CudaProjectVsWizards\2019\extension.vsixmanifest

    and

    C:\ProgramData\NVIDIA GPU Computing Toolkit\v10.1\extras\visual_studio_integration\CudaProjectVsWizards\Nvda.Vsip.CudaWizards.dll.pkgdef

  4. Once these shortcuts are in place, open a Visual Studio 2019 developer command prompt in administrator mode and run 'devenv.com /setup /nosetupvstemplates'.

  5. Re-start Visual Studio 2019 and see if the project templates are available now.

All information collected above are from the forums. Only summarizing it here.

However the intellisense does not work.

Thanks.

今天配VS2019+CUDA10.0的时候又看到这个了,码一下

这波很诡异,NSight for Visual Studio Edition已经卸载过了,扩展里的选项卡居然还在。重置一下VS试试。

之前拿appveyor编译hadoop试手的时候,突然发现了一个严肃的问题:Windows下没有自带默认的命令行下载工具。之前用Windows的时候一直是图形界面操作,需要敲命令的时候才打开cmd,然而我需要指明从网络上下载某个文件

之后看到Stackoverflow上有人推荐用Powershell,Powershell有内置的下载功能,然后去试了一下。觉得也是时候与时俱进一下了。

示例如下:

$cloent = new-object System.Net.WebClient
$client.DownloadFile("https://github.com/protocolbuffers/protobuf/releases/download/v2.5.0/protoc-2.5.0-win32.zip", "C:\protoc-2.5.0-win32.zip")

顺带码一下操作zip文件的Compress-Archive / Expand-Archive命令。

结果发现set不能用了,对应的Get-Value命令里由缺失了不少环境变量,最后决定换回cmd,因为不想将一个工作拆分为cmd和Powershell两个脚本= =

然后决定使用cmd调用Powershell,问题出在这里:Powershell函数的参数需要双引号。cmd有转义符吗?

又是一个让人沉思的问题。咕果一下之后发现,有是有,不过是^(Ctrl+6),而且似乎对双引号没有作用。
此时顺便查了一下,Powershell的转义符是`esc下面那个),不过由于Powershell相对于cmd是个新产品,功能还是能正常使用的。

最后解决cmd向Powershell传递双引号的方法是 连着三个双引号"""。特别神奇,不知道为什么。
管他的,只要能用就行了