草庐IT

article_name

全部标签

Windows shell : How can I get the audio device(s) name(s)?

Iamnotsureifthisisstrictlyaprogrammingquestion,aslongasIdon'tmindtouseadditionalsoftwareinordertosolvetheproblem,aslongasitkeepsbeingscriptableorcommand-line(thisis:anotGUIsolution).Anyway,Ihavepostedanother(abitdifferent)questionatSuperUser.Bytheway,IwillupdatehereifIgettheanswerthere.我的Windows

python - 让 Scapy 在 Windows 上工作时出错 : "' module' object has no attribute 'ex_name' "

我正在尝试运行一个涉及ARP嗅探的Python脚本,并且显然依赖于存在的Scapy库。我完全不知道自己在做什么,但我相当擅长谷歌搜索、遵循指示和复制/粘贴。我已经在我的Mac上启动并运行了它,但我仍然坚持我希望这是让Scapy在我的Windows计算机上工作的最后一个障碍(这最终是需要运行此脚本的计算机)。我遵循了http://www.secdev.org/projects/scapy/doc/installation.html#windows中的所有说明。,除了我选择了Python2.7并使用了那里列出的所有内容的更新的2.7兼容版本。我在除Pypcap和Libdnet之外的所有安装

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'').然而,'''反之亦然应

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