草庐IT

run-time

全部标签

windows - Time::ParseDate 安装失败

我正在尝试安装一个模块来操作HHMMSS格式的时间——只是为了找到基本的时差等。Time::ParseDate看起来是一个完美的候选者,但我在安装它时遇到了一些问题。我正在使用为MSWin32-x64-多线程构建的perl5,版本16,subversion3(v5.16.3)。命令:cpanTime::ParseDate返回Setupgccenvironment-4.4.720111023(prerelease)[svn/rev.180339-mingw-w64/oz]Checkingifyourkitiscomplete...LooksgoodWritingMakefileforTi

c++ - 跨平台C++ : convert to/from UTC/local time WITH historical tzdata

我需要将时间从UTC转换为用户选择的时区。我还必须将该时区的用户输入转换为以UTC存储。目前时区以Olson格式定义(“美国/洛杉矶”)。Linux上使用timegm的解决方案很简单,但我找不到在Windows上做完全相同事情的跨平台解决方案(或任何解决方案)。我不能使用Boost.Date_Time(http://www.boost.org/doc/libs/1_57_0/doc/html/date_time.html),因为它不支持历史时区更改,例如多年来不同的DST周期。几年前显然有人提交了一个补丁,但似乎没有被接受。唯一似乎合理的其他解决方案是使用来自:https://www.

python - 游戏。 Windows 10。使用 ProcessPoolExecutor 在 loop.run_in_executor 之后创建额外的窗口

问题重现环境:操作系统:Windows10(主机)中央处理器:8python:3.6.6游戏版本:1.9.4“构建器”:cx_Freeze版本5.1.1问题未重现的环境:操作系统:Ubuntu14.04(guest,虚拟机)中央处理器:4python:3.6.6游戏版本:1.9.4“构建器”:cx_Freeze版本5.1.1脚本importasyncioimportpygameimportmultiprocessingfromconcurrent.futuresimportProcessPoolExecutorfromconcurrent.futuresimportThreadPool

mysql - MariaDB install : I unchecked running as service during installation. 启动和停止 mariadb 的正确方法是什么?

现在,我不知道如何启动mariadb,因为我没有将它安装为正在运行的服务。这对我没有帮助:https://mariadb.com/kb/en/mariadb/starting-and-stopping-mariadb/我用谷歌搜索并认为这可以将其设置为服务:C:\ProgramFiles\MariaDB10.0\bin>mysql_install_db.exe--datadir=c:\mariadb--service=MyDB--password=secret运行Bootstrap删除默认用户设置根密码创建my.ini文件注册服务“MyDB”fatalerror:OpenSCManag

c++ - Boost 1.66.0 : could not find boost libraries :boost_system, boost_filesystem、boost_thread、boost_date_time

我的配置是:操作系统:Windows10x64boost:1.66.0CMake:3.10VisualStudio:2017我正在以这种方式编译boost:bootstrap.\b2--build-dir=buildtoolset=msvcaddress-model=64--build-type=completestage运行CMake时出现此错误:couldnotfindboostlibraries:boost_systemboost_filesystemboost_threadboost_localeboost_date_time我搜索这些库,它们位于stage文件夹中。我尝试了B

c++ - std::chrono::system_time 的 Visual Studio 2017 CRT 实现使用什么时钟?

chrono标题中的注释只是说//wrapsGetSystemTimePreciseAsFileTime/GetSystemTimeAsFileTime但它实际使用的是什么(即我期望的精度是多少)?该实现调用_Xtime_get_ticks,但该函数是不透明的。 最佳答案 CRT在可用时调用GetSystemTimePreciseAsFileTime,否则调用GetSystemTimeAsFileTime。GetSystemTimePreciseAsFileTime为您提供highestpossiblelevelofprecisio

windows - 批处理文件 :- Detect windows version and run exe file

我想从批处理中检测Windows版本并根据结果启动exe文件示例代码无效@echooffsetlocalfor/f"tokens=4-5delims=."%%iin('ver')dosetVERSION=%%i.%%jif"%version%"geq"6.2"gotonetfx_4if"%version%"=="6.1"gotonetfx_35if"%version%"=="6.0"gotonetfx_35:netfx_35start"C:\Users\Ankur\AppData\Roaming\Microsoft\Windows\StartMenu\Programs\Accessor

时间:2018-01-08 标签:c#winforms: determine first run of program

我需要显示一次向导,这是我的Windows窗体应用程序在安装后第一次运行时。我想我可以使用像firstrun=false这样的用户设置。但是我还需要处理卸载程序然后重新安装的情况。该用户设置将如何重置?它已经存在于该用户的...\Users--user--\AppData\Roaming...的配置文件中。我需要在重新安装后运行该向导,因此我需要重置该设置。我是否需要使用自定义安装程序操作来执行此操作? 最佳答案 最好让您的安装程序在注册表中创建FirstRun键并将其设置为true(或1或其他),并确保您的卸载程序完全删除该键。然

java - Runtime.getRuntime().exec -> Cannot run program CreateProcess error=2, 系统找不到指定的文件

我正在开发一个命令行java应用程序,它必须在此目录中运行名为gradlew.batassembleRelease的程序:this.workDir+"/Project/CapAndroid"所以我这样做了:Processp=Runtime.getRuntime().exec("gradlew.batassembleRelease",null,newFile(this.workDir+"/Project/CapAndroid"));该文件100%确定位于该目录中,它在Linux中运行完美,但在Windows上无法运行!我收到此错误:java.io.IOException:Cannotru

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

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