startup

Make Swift Cocoa app launch on startup on OS X 10.11

。_饼干妹妹 提交于 2019-12-03 02:28:59
问题 I need to write a function that adds my application to Startup items on OS X 10.11. That's what I found at the moment: func applicationIsInStartUpItems() -> Bool { return (itemReferencesInLoginItems().existingReference != nil) } func itemReferencesInLoginItems() -> (existingReference: LSSharedFileListItemRef?, lastReference: LSSharedFileListItemRef?) { if let appUrl : NSURL = NSURL.fileURLWithPath(NSBundle.mainBundle().bundlePath) { let loginItemsRef = LSSharedFileListCreate(nil,

Do normal x86 or AMD PCs run startup/BIOS code directly from ROM, or do they copy it first to RAM? [closed]

独自空忆成欢 提交于 2019-12-03 02:23:58
I understand modern computers have modified Harvard architectures. Can the fact that they can read instructions from somewhere other than where they hold data allow them to fetch instructions directly from ROM chips? Do they load the BIOS to RAM first, or do they execute it directly from the chip? I don't have a computer I can open nearby, so... If I remove ALL the RAM from the memory slots, will the computer be able to start the full BIOS, run the POST stuff and tell me I need RAM? It's funny I've never tried it... EDIT: my intention with this question is to learn whether commercial CPUs (or

ASP.NET application on IIS7 - very slow startup after iisreset

≯℡__Kan透↙ 提交于 2019-12-03 02:15:58
I have an ASP.NET 3.5 website running under IIS7 on Windows 2008. When I restart IIS (iisreset), then hit a page, the initial startup is really slow. I see the following activity in Process Explorer: w3wp.exe spawns, but shows 0% CPU activity for about 60 seconds Finally, w3wp.exe goes to 50% CPU for about 5 seconds and then the page loads. I don't see any other processes using CPU during this time either. It basically just hangs. What's going on during all that time? How can I track down what is taking all this time? We had a similar problem and it turned out to be Windows timing out checking

PHP Warning: PHP Startup: ????????: Unable to initialize module

匿名 (未验证) 提交于 2019-12-03 02:14:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: After upgrading php from 5.1 to 5.2.10, I got the following warnings when php -v : # php -v PHP Warning: PHP Startup: fileinfo: Unable to initialize module Module compiled with module API=20050922, debug=0, thread-safety=0 PHP compiled with module API=20060613, debug=0, thread-safety=0 These options need to match in Unknown on line 0 PHP Warning: PHP Startup: mcrypt: Unable to initialize module Module compiled with module API=20050922, debug=0, thread-safety=0 PHP compiled with module API=20060613, debug=0, thread-safety=0 These options need

Run C# application at Windows startup?

匿名 (未验证) 提交于 2019-12-03 01:48:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: It's all the day that I'm trying to implement a startup feature into my project. I used Registry key: //Computer\HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Run (Administrator Rights) I used Registry key: //Computer\HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run (Administrator Rights) The code work but when I restart the computer nothing happens. This is the code I used. RegistryKey registryKey = Registry.LocalMachine.OpenSubKey("SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Run", true);

How to add IHttpContextAccessor in the Startup class in the DI in ASP.NET Core 1.0?

匿名 (未验证) 提交于 2019-12-03 01:48:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: In ASP.NET Core RC 1 I used the following code to retrieve the value of context (full address of the page). Then I recorded this value in the configuration. public class Startup { public IConfigurationRoot Configuration { get; set; } private IHostingEnvironment CurrentEnvironment { get; set; } private IHttpContextAccessor HttpContextAccessor { get; set; } public Startup(IHostingEnvironment env, IHttpContextAccessor httpContextAccessor) { var builder = new ConfigurationBuilder() .SetBasePath(env.ContentRootPath) .AddJsonFile("appsettings.json

Spring Boot: How to disable startup log message “Starting Application on mbp with PID 99446”

匿名 (未验证) 提交于 2019-12-03 01:38:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: There are some log messages on the application startup: 2016-11-01 10:13:49.468 INFO 99446 --- [ restartedMain] s7.Application : Starting Application on mbp with PID 99446 (/Users/serge/projects/scratches/s7/build/classes/main started by serge in /Users/serge/projects/scratches/s7) 2016-11-01 10:13:49.469 INFO 99446 --- [ restartedMain] s7.Application : No active profile set, falling back to default profiles: default 2016-11-01 10:13:52.642 INFO 99446 --- [ restartedMain] s7.Application : Started Application in 3.573 seconds (JVM running for

SEVERE: ContainerBase.addChild: start:org.apache.catalina.LifecycleException: Failed to start error

匿名 (未验证) 提交于 2019-12-03 01:12:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 由 翻译 强力驱动 问题: I encountered this error when I tried to run my application in Tomcat. I already checked the version of tomcat and java home. Both use java 6. Is there a missing jar? Or is it my web xml? I'm not using any maven tool. SEVERE : ContainerBase . addChild : start : org . apache . catalina . LifecycleException : Failed to start component [ StandardEngine [ Catalina ]. StandardHost [ localhost ]. StandardContext [/ ICard ]] at org . apache . catalina . util . LifecycleBase . start ( LifecycleBase . java : 154 ) at org . apache . catalina

安装Tomcat

匿名 (未验证) 提交于 2019-12-03 00:40:02
部分参考http://www.runoob.com/jsp/eclipse-jsp.html 1. 下载地址 Tomcat: http://tomcat.apache.org/download-70.cgi 2. 下载之后,将压缩包解压到D盘(你可以自己选择): 3. 注意目录名不能有中文和空格。目录介绍如下 : bin:二进制执行文件。里面最常用的文件是 startup.bat ,如果是 Linux 或 Mac 系统启动文件为 startup.sh 。 conf:配置目录。里面最核心的文件是 server.xml 。可以在里面改端口号等。默认端口号是8080,也就是说,此端口号不能被其他应用程序占用。 lib:库文件。tomcat运行时需要的jar包所在的目录 logs:日志 temp:临时产生的文件,即缓存 webapps:web的应用程序。 web应用放置到此目录下浏览器可以直接访问 work:编译以后的class文件。 接着我们可以双击 startup.bat 启动 Tomcat,弹出如下界面: 5. 重点来了,如果你的出现闪退 shift+右键 (在此处打开powershell) 输入.\startup.bat 如果出现错误 且错误是关于环境变量 6. 环境变量设置 以管理员身份打开笔记本 打开C:\Program Files\apache-tomcat-7.0.90

JAR包放在WEB-INF/lib子目录报ClassNotFoundException解决方案

匿名 (未验证) 提交于 2019-12-03 00:33:02
在没有使用maven的Java 在web.xml配置了 spring 的监听器: < context-param > < param-name > contextConfigLocation </ param-name > < param-value > classpath:beans.xml </ param-value > </ context-param > < listener > < listener-class > org.springframework.web.context.ContextLoaderListener </ listener-class > </ listener > 1 2 3 4 5 6 7 8 9 1 2 3 4 5 6 7 8 9 应用启动时报错信息如下: java.lang.ClassNotFoundException: org .springframework .web .context .ContextLoaderListener at org .apache .catalina .loader .WebappClassLoader .loadClass (WebappClassLoader .java : 1647 ) at org .apache .catalina .loader .WebappClassLoader