草庐IT

friends_name

全部标签

python - cx_Freeze 5.0 : ImportError: No module named 'scipy.__config__'

问题尝试运行使用cx_Freeze构建的.exe时出现以下错误:File"C:\\WinPython-64bit-3.5.2.3Qt5\python-3.5.2.amd64\lib\site-packages\scipy\__init__py",line105infromscipy.__config__importshowasshow_configImportError:Nomodulenamed'scipy.__config__'Duringhandlingoftheaboveexception,anotherexceptionoccurred:...File"C:\\WinPyth

c - IoCreateSymbolicLink 何时返回 STATUS_OBJECT_NAME_COLLISION

当我调用IoCreateSymbolicLink时失败,状态为STATUS_OBJECT_NAME_COLLISION。我的驱动程序中有代码,我试图在NT和DOS之间创建符号链接(symboliclink)名称。一般什么时候会出现这个错误?RtlInitUnicodeString(&deviceName,L"\\Device\\StreamEitor");RtlInitUnicodeString(&symbolicLinkName,L"\\DosDevices\\StreamEitor");status=IoCreateDevice(driverObject,0,&deviceName

windows - Knife 窗 : Network Error: getaddrinfo: Name or service not known (windows:22)

我有一个Ubuntu工作站,我正在尝试引导一个Windows节点。Windows节点在端口2222上打开了ssh。我一直在关注http://docs.opscode.com/plugin_knife_windows.html.ateetor@ateetor-virtual-machine:~/chef/chef-repo$sudogeminstallknife-windows--http-proxy=[REMOVED]Successfullyinstalledknife-windows-0.5.121geminstalledInstallingridocumentationforkni

python - Pyinstaller导入错误: cannot import name 'dist' on Windows

我正在尝试使用Pyinstaller(3.3版)在Windows(8.1版)上将Python(3.6版)项目构建到单个exe文件中。该项目包括PyQt5、numpy、matplotlib依赖项。Pyinstaller写道:BuildingEXEfromout00-exe.toccompletedsuccessfully.但是当我运行exe文件时,我得到:...File"distutils\__init__.py",line44,inImportError:cannotimportname'dist'[6748]Failedtoexecutescriptmyproj第44行的文件"dis

c++ - MinGW C++ : Reading a file with non-ascii file name

简单任务:我想读取一个文件名不是ascii的文件。在linux和MacOS上,我只是将文件名作为UTF-8编码字符串传递给fstream构造函数。在Windows上,这会失败。正如我从thisquestion中了解到的那样,windows根本不支持utf-8文件名。但是,它提供了一个自己的非标准open方法,该方法采用utf-16wchar_t*。因此,我可以简单地将我的string转换为utf-16wstring并且没问题。然而,在MinGW标准库中,fstream的wchar_t*open方法根本不存在。那么,如何在MinGW上打开一个非ascii文件名?

windows - 使用 PowerShell 重置 'Friendly Name' 证书属性

我需要一个证书的FriendlyName在证书控制台中设置为空值FriendlyName列将显示.使用此代码我所能得到的只是列中的空值,而不是我需要。gci"Cert:\LocalMachine\My"|?{$_.Subject-like"CN=mycer*"}|%{$_.FriendlyName=''}我也试过$_.FriendlyName=$null这没有什么区别。奇怪的事情-当我清除FriendlyName使用控制台,然后从Powershell的角度来看,该值为''因为以下语句会产生True:write-host($_.FriendlyName-eq'').然而,'''反之亦然应

windows - 如何从服务器正确识别 IE10 Metro 和 IE10 Desktop 以便发回 "finger friendly"或 "mouse friendly"接口(interface)?

我读到,由于两者之间的用户代理相同,推荐的方法是使用特征检测。这在某些情况下很好,您可能想要显示Flash视频/电影/应用程序而不是javascript幻灯片,但我的问题是根据用户的输入设备显示正确的界面。我的假设是,如果用户在“Metro”IE10中,他们可能希望使用手指而不是鼠标。既然如此,我想给他们一个带有大点击框的界面。我的问题:有没有办法区分并显示适当的界面?还是我坚持让用户通过我网站上设置cookie的链接手动切换模式? 最佳答案 仍然没有办法从残缺的MetroIE中检测到正常的IE,但你知道你可以在服务器上知道用户是否

java - 运行 spring boot build : Error creating bean with name 'entityManagerFactory' defined in class path

我已经构建了一个SpringBoot应用程序,现在可以部署它了。但是,我尝试构建一个包含所有内容的“fatjar”,但似乎我做错了什么,但不清楚是什么。application.properties(删除真实凭据)#Templateengineconfspring.thymeleaf.check-template-location=true#Databasestuffspring.jpa.hibernate.ddl-auto=updatespring.datasource.url=jdbc:mysql://localhost:3306/dbspring.datasource.userna

c++ - 如何像在 Process Explorer 中那样获取进程起始地址的 "name"?

好的,我正在编写一个应用程序,旨在枚举给定进程中的线程,就像ProcessExplorer所做的那样。我很清楚这可能会在不同的Windows版本之间中断,因为它依赖于“非官方”API,例如NtQuerySystemInformation,我对此非常满意。我已经有了获取给定线程基地址的代码。我现在想把它变成类似于进程资源管理器所做的事情,即“ntdll.dll!EtwDeliverDataBlock+0x453”。我实际上不需要函数名称或偏移量,只需要模块名称。我该怎么做? 最佳答案 如果您只需要模块名称,最简单的方法是使用EnumP

c# - 异常:指定类别中不存在实例 'Name of instance'

当我像这样创建和使用性能计数器时:privatereadonlyPerformanceCounter_cpuPerformanceCounter;publicProcessViewModel(Processprocess){_cpuPerformanceCounter=newPerformanceCounter("Process","%ProcessorTime",process.ProcessName,true);}publicvoidUpdate(){CPU=(int)_cpuPerformanceCounter.NextValue()/Environment.ProcessorC