草庐IT

date_found

全部标签

windows - Win32 : How to convert string to a date?

在Windows中,我想使用精确的格式字符串将string解析为date。例如,给定字符串"6/12/2010"和格式:"M/d/yyyy"我想将字符串转换为日期,同时确保日期与格式匹配。我还需要能够指定Y2K滑动窗口、枢轴。这意味着如果(正确)输入了两位数的年份,我将指定future的年数,我认为该年份是。例如:Two-digitYearPivotFour-digityear==================================30+0192930+18192930+19192930+20202930+21202930+1002029.NET已经提供了一个DateTim

windows - 警告 : templates not found/share/git-core/templates | fatal: Unable to find remote helper for 'https'

我在尝试克隆github存储库时收到以下消息:gitclonehttps://github.com/twbs/bootstrap.gitCloninginto'test'...warning:templatesnotfound/share/git-core/templatesfatal:Unabletofindremotehelperfor'https'Windows8.1git版本1.8.5.2.msysgit.0在我的路径中:C:\ProgramFiles\Git\cmd;C:\ProgramFiles\Git\binhttp://windows.github.com/也安装在我的

windows - Cordova 窗口错误 : "cordova/windows8/commandProxy" not found

我构建了一个基于Cordova的Windows应用程序。只要我添加任何插件,应用程序就会开始崩溃,并出现异常cordova/windows8/commandProxynotfound。Cordova版本:4.3.0 最佳答案 似乎cordova/windows8/commandProxy在Cordova4.3.0中被弃用了。我已经在插件文件中替换了这条语句require("cordova/windows8/commandProxy")到require("cordova/exec/proxy")它似乎有效。例如,我更改了PushPlu

windows - 无论区域设置如何,在批处理文件中拆分 %date%

有没有办法在批处理文件中拆分%date%(例如,在3个环境变量中),但不考虑区域设置?对于美国,今天的日期是3/13/2013,但根据我的区域设置,它是13.3.2013-分隔符和顺序都已更改. 最佳答案 四年过去了,但这个问题并没有变老,我认为现在有一个比使用wmic(在win7之后)更好的答案。for/F"tokens=1,2,3delims=_"%%iin('PowerShell-Command"&{Get-Date-format"MM_dd_yyyy"}"')do(setMONTH=%%isetDAY=%%jsetYEAR=

windows - 找不到命令 : ssh OpenSSH not found on your computer

我正在尝试设置Ionicpro。但它给出了一个错误。有什么帮助吗?我已经安装了GitBash。但它仍然显示上述错误。为什么?Mayweproceed?YesionicsshgenerateC:\Users\lokuge.ssh\ionic\4460[ERROR]Commandnotfound:ssh[WARN]OpenSSHnotfoundonyourcomputer.[INFO]Youwillbepromptedtoprovideapassphrase,whichisusedtoprotectyourprivatekeyshouldyouloseit.(Ifsomeonehasyou

windows - Windows 中的 Hadoop : file not found exception

我在Windows中使用hadoop并且我已经配置好一切(安装cygwin、无密码ssh等)我已经在WC.jar中编译了wordcount程序并尝试运行。它在独立模式下完美运行..但在完全分布式模式下它给出FileNotFoundException请查看日志并告诉我它出了什么问题。我已经在MACH1中启动了dfs和mapreduce。(那是我的主人)$bin/hadoopjarWC.jarWordCountwordsresult10/07/2416:57:38INFOinput.FileInputFormat:Totalinputpathstoprocess:210/07/2416:5

c++ - 为什么 RegQueryValueEx() 函数在尝试读取注册表项时返回 ERROR_FILE_NOT_FOUND?

系统:Windows732位语言:C++我已尝试访问寄存器HKEY_LOCAL_MACHINE\\HARDWARE\\DEVICEMAP\\Scsi\\ScsiPort0,keyDriver(键入REG_SZ)——没问题。从HKEY_LOCAL_MACHINE\\HARDWARE\\DEVICEMAP\\SERIALCOMM读取相同,所有键(类型REG_SZ)都有斜线,例如\Device\序列号0。在读取此类键时,它始终返回2(没有此类文件),示例代码如下:HKEYhKey=0;DWORDdwType=REG_SZ;charbuf[255]={0};DWORDdwBufSize=siz

windows - 使用 "KexAlgorithms diffie-hellman-group1-sha1"没有解决 "no matching key exchange method found"错误

有很多关于以下错误的问题,但他们都有相同的解决方案,但没有任何效果:$gitpushUnabletonegotiatewith192.168.XXX.XXX:nomatchingkeyexchangemethodfound.Theiroffer:diffie-hellman-group1-sha1fatal:Couldnotreadfromremoterepository.Pleasemakesureyouhavethecorrectaccessrightsandtherepositoryexists.有一个articleonopenssh.com那没有帮助。特别建议:...inthe

windows - cygwin curl、Wget、wget 和 top "command not found"

我很确定我已经安装了cygwin默认包,包括“net”包,但是每次我尝试运行wget和时,控制台一直说“找不到命令”>top.这些命令是分开来的吗? 最佳答案 你添加环境变量了吗?更多信息在这里:http://thehacklist.blogspot.com/2009/04/cygwin-ls-command-not-found.html 关于windows-cygwincurl、Wget、wget和top"commandnotfound",我们在StackOverflow上找到一个类似

c++ - CreateProcess STATUS_DLL_NOT_FOUND - 哪个 dll?

我有一个调用CreateProcess的进程。CreateProcess似乎返回非零值,表示成功。但是,进程的HANDLE随后会立即设置,表明进程已退出。当我调用GetExitCodeProcess时,返回STATUS_DLL_NOT_FOUND。我知道缺少一个DLL。我什至确切地知道是哪一个。但是,我不明白的是如何以编程方式解决这个问题。我注意到Windows会显示一个对话框,提示进程启动失败,因为它找不到指定的DLL(屏幕截图:http://www.mediafire.com/view/?kd9ddq0e2dlvlb9)。在对话框中,Windows指定缺少哪个DLL。但是,我自己找