startup

Getting a dump of a process that crashes on startup

浪子不回头ぞ 提交于 2019-11-27 14:14:19
问题 On a customer machine (WinXP SP2) to which I have no access, I have a Win32 EXE (unmanaged C++) that crashes on startup. I guess the best way to troubleshoot this is to obtain a (mini-)dump and analyze it later with windbg or similar. Now, I would normally tell the customer to install Debugging Tools for Windows and run cscript adplus.vbs -crash However, it appears that you can't use adplus for apps that crash on startup (http://support.microsoft.com/kb/q286350/ says that "Do not use ADPlus

Script running in PyCharm but not from the command line

一笑奈何 提交于 2019-11-27 13:59:39
When I try to run my program from the PyCharm IDE everything works fine but if I type in Fedora: python myScript.py in a shell prompt I get an import error from 1 of the module. ImportError : No modue named myDependency What does PyCharm do that allows the interpreter to find my dependencies when launched from the IDE? How can I get my script to find its dependencies so it can be launched with a singe command? There are a few possible things that can be causing this: The same python interpreter? Check with import sys; print(sys.executable) Is it the same working directory? Check with import os

三、tomcat的安装及项目部署方式

独自空忆成欢 提交于 2019-11-27 12:19:18
Tomcat的安装配置   一、下载:     Apache官网   二、安装的前置条件:先安装配置JDK   三、安装:     它是绿色版软件,解压缩即可用   四、tomcat环境变量是否需要配置? 如何配置自行参考百度,不做赘述     用文本编辑工具打开用于启动Tomcat的批处理文件startup.bat,仔细阅读可以发现:在这个文件中,首先判断CATALINA_HOME环境变量是否为空,如果为空,就将当前目录设为CATALINA_HOME的值。接着判断当前目录下是否存在bin\catalina.bat,如果文件不存在,将当前目录的父目录设为CATALINA_HOME的值。根据笔者机器上Tomcat安装目录的层次结构,最后CATALINA_HOME的值被设为Tomcat的安装目录。如果环境变量CATALINA_HOME已经存在,则通过这个环境变量调用bin目录下的“catalina.bat start”命令。     通过这段分析,我们了解到两个信息,一是Tomcat启动时,需要查找CATALINA_HOME这个环境变量,如果在Tomcat的bin目录下调用startup.bat,Tomcat会自动并正确设置CATALINA_HOME;二是执行startup.bat命令,实际上执行的是“catalina.bat start”命令。简单的说 :     1

App.xaml file does not get parsed if my app does not set a StartupUri?

こ雲淡風輕ζ 提交于 2019-11-27 11:33:28
Background: I'm creating a WPF app using MVVM, and using a DI container to build my ViewModels My App.xaml looks like this: <Application x:Class="WpfApp.App" ...xmlns etc... StartupUri="MainWindow.xaml"> <Application.Resources> <app:ServiceLocator x:Key="serviceLocator" /> </Application.Resources> </Application> MainWindow.xaml looks like this: <Window x:Class="CompositeMefWpfApp.MainWindow" ...xmlns etc... > <Control.DataContext> <Binding Path="MainWindowViewModel" Source="{StaticResource serviceLocator}" /> </Control.DataContext> Now, this all works fine, but the StartupUri is hardcoded into

Running Batch File in background when windows boots up

余生长醉 提交于 2019-11-27 11:29:30
How do I run a batch file each time windows boots up also I need to run it in the back ground(without that command window getting displayed)? I use Windows Xp. My actuall requirement is I want to start the Tracd server using the command line commands whenever Windows boots up. VonC Add your program in the registry : Run - These are the most common startup locations for programs to install auto start from. By default these keys are not executed in Safe mode. If you prefix the value of these keys with an asterisk, *, is will run in Safe Mode. Registry Keys: HKEY_LOCAL_MACHINE\Software\Microsoft

Minimise Spring Boot Startup Time [duplicate]

寵の児 提交于 2019-11-27 10:50:51
问题 This question already has an answer here: Speed up Spring Boot startup time 8 answers In my opinion SpringBoot projects take a long time to load. This probably happens because SpringBoot is configuring components for you, some of which you might not even need. The most obvious thing to do is to remove unnecessary dependancies from your class path. However, that is not enough. Is there any way to find out which modules SpringBoot is configuring for you to pick out what you don't need and

How to auto-load MySQL on startup on OS X Yosemite / El Capitan

旧城冷巷雨未停 提交于 2019-11-27 10:12:28
After upgrading OS X my install of MySQL stopped loading on startup. This walk-through on MySQL says: "The Startup Item installation adds a variable MYSQLCOM=-YES- to the system configuration file /etc/hostconfig. If you want to disable the automatic startup of MySQL, change this variable to MYSQLCOM=-NO-." So, I opened that file and it says: # This file is going away AFPSERVER=-NO- AUTHSERVER=-NO- TIMESYNC=-NO- QTSSERVER=-NO- MYSQLCOM=-YES- I assume OSX dev's added the # This file is going away but I'm not certain. If that is the case, what is the proper way to start MySQL on startup on OSX

UWP app start automatically at startup

假如想象 提交于 2019-11-27 08:28:29
All is in the title, I currently searching a way to launch my UWP app automatically at Windows startup with the UWP framework only, no file manipulation on the machine. The application must be able to be shared on the Store AND open when Windows starts. Is it a feasible thing? If so how? Thank you! It seems that MS will add this feature - windows.startupTask - not only for converted desktop apps, but also UWP apps. You can see it from about 37:00 Tip, tricks, and secrets: Building a great UWP app for PC But this feature is not ready yet - It'll be available with Windows 10 Fall Creators Update

Why do more requests go to new (dynamic) instances than to resident instance?

老子叫甜甜 提交于 2019-11-27 08:25:20
问题 Have a Java app with auto-scaling on App Engine Standard Environment. Right now the scaling is configured like this: <instance-class>F2</instance-class> <automatic-scaling> <min-idle-instances>1</min-idle-instances> <!-- ‘automatic’ is the default value. --> <max-idle-instances>2</max-idle-instances> <!-- ‘automatic’ is the default value. --> <min-pending-latency>2000ms</min-pending-latency> <max-pending-latency>8000ms</max-pending-latency> <max-concurrent-requests>60</max-concurrent-requests

Program needing elevation in Startup registry key (windows 7)

自古美人都是妖i 提交于 2019-11-27 08:11:16
问题 I have a program that I'd to run when the computer starts. I've put its path inside "SOFTWARE\Microsoft\Windows\CurrentVersion\Run". This is in Windows 7. When the computer starts nothing happens. I'm thinking this is because the program needs elevation when I run it. But Windows does not ask for permission to elevate and gives no feedback. It simply ignores it. I've read that Vista tells you that the program was blocked etc. Does anybody have any idea why Windows 7 simply ignores the