草庐IT

get_time

全部标签

windows - 内核调试: Windows 7 hangs at boot time

有时,我会遇到Windows在启动时等待内核调试器被附加的情况。您会看到“Windows正在启动”文本,但尚未看到Logo。如果我现在附加调试器,就会播放Windows7的Logo动画。随后Logo开始闪烁。在此阶段,引导过程不再进行。CPU使用率降至最低。我通常会等待几分钟,但什么也没有发生。这不会一直发生。但是,如果发生这种情况,VM重置将无济于事。我需要使用启动修复来解决这个问题。不幸的是,这需要永远。除了运行启动修复,我还能做什么?提前致谢! 最佳答案 要解决您遇到的问题,您只需在启动过程中按F10。并删除/debug和相关

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

windows - 尝试在 Windows 中启动 Zookeeper 时出现 "log4j.properties was unexpected at this time"

我正在使用从Confluent(http://www.confluent.io/product/kafka-streams/)下载的kafka流。我按照说明在Windows上运行Zookeeper和Kafka。但是当我尝试使用命令启动ZooKeeper时D:\Softwares\confluent-3.0.1\bin\windows>zookeeper-server-start.bat./etc/kafka/zookeeper.properties,我得到错误D:\Softwares\confluent-3.0.1\bin\windows../../etc/kafka/log4j.pr

c++ - windows C++ opening printer with documentproperties get C6836 "Write Overrun"代码分析警告

在下面的代码中://IfGetPrinterdidn'tfillintheDEVMODE,trytogetitbycalling//DocumentProperties...if(pi2->pDevMode==NULL){dwNeeded=DocumentProperties(NULL,hPrinter,printerName,NULL,NULL,0);if(dwNeededpDevMode=pDevMode;}在线lFlag=DocumentProperties(NULL,hPrinter,printerName,pDevMode,NULL,DM_OUT_BUFFER);当我运行Vi

ruby - Ruby gets 方法将我的输入截断为 256 个字符

我试图在Ruby中输入一个长字符串(>256个字符,但通常puts"Enterlongstring"ilogo=gets.chompputs"#{ilogo}"出于某些愚蠢的原因,它总是截断输入以仅保留256个字符(在chomp之前)。我验证了Ruby接受更长的字符串,并且Windows7命令行控制台也接受大于256个字符的字符串。我找不到任何关于具有这种限制的gets方法的提及,但我肯定遗漏了一些东西。我一无所知。这可能只是一个获取限制吗?编辑:更具体地说:我正在使用的测试字符串之一是:1111111111111111111111111111111111111111111111111

windows - Node : Getting MyDocuments Path on Windows

如何使用NodeJS检索MyDocuments路径。所以我想用下面的C#代码在NodeJs中得到一些东西:Environment.GetFolderPath(Environment.SpecialFolder.MyDocuments)谢谢和问候斯特凡 最佳答案 找到答案:varQ=require('Q');vargetUserDoc=function(callback){varWinreg=require('winreg');vardeferred=Q.defer();varregKey=newWinreg({hive:Winreg

windows - 通过 Get-WmiObject : Exception calling SetDefaultPrinter : Not Supported 设置默认打印机时出错

概览我正在尝试使用PowerShell在Windows2012R2中设置默认打印机。每当我在本地执行此操作时,它都可以正常工作,但是无论我如何尝试远程运行它(我需要这样做),它总是会失败并出现以下错误。我已经尝试使用域管理员帐户以及我需要为其更改默认打印机的用户凭据,但它仍然失败。错误Exceptioncalling"SetDefaultPrinter":"Notsupported"Atline:1char:1+(Get-WmiObject-ClassWin32_Printer-Filter"(Name='MicrosoftXPSDocumentWrite...+~~~~~~~~~~~

python 3.7 : How to get the Windows user Login Time?

我正在尝试使用Python3.7获取系统用户的登录时间。我已经尝试过win32net和Python的平台模块,但是平台模块中没有定义函数,Win32net与Python3等不兼容。我尝试了以下代码:importplatformplatform.uname()importplatformos_name=platform.uname()[0].lower()ifos_name=="windows":get_win_login_time()elifos_name.endswith("nix"):get_nix_login_time() 最佳答案

node.js - Windows Node : always get either "Error: ENOENT: no such file or directory, open" or "Error: EACCES: permission denied, open"

这是我的代码:varfs=require('fs');varutil=require('util');varlogFile=fs.createWriteStream('C:/text.txt',{flags:'a'});//Or'w'totruncatethefileeverytimetheprocessstarts.varlogStdout=process.stdout;console.log=function(){logFile.write(util.format.apply(null,arguments)+'\n');logStdout.write(util.format.app

python - 模块导入失败 : How to get Google Cloud Client libraries to run on Google Cloud SDK

问题我正在尝试开发一个基本的GoogleAppEngine应用程序。我从事大量数据科学工作,因此我使用Anaconda来管理我的Python发行版。最近我一直在尝试设置GoogleCloudSDK+GoogleCloudClientLibraries以在GAE上(在标准环境中)进行开发,但无法让两者一起运行。我已经激活了Python2.7env(py27),当我尝试运行一个基本应用程序时,我收到以下错误:File"C:\Users\dominic\Anaconda3\envs\py27\lib\site-packages\google\cloud\bigquery\__init__.p