Description
Problem D: Airport Express
In a small city called Iokh, a train service, Airport-Express, takes residents to the airport more quickly than other transports. There are...
分类:
其他好文 时间:
2014-07-22 22:49:34
阅读次数:
262
Android 设备的三大 USB 连接模式MTP:Media Transfer Protocol - 媒体传输协议,Windows 下最常见的连接模式,是微软一种可以管理便携存储设备的协议。MTP 最初装载于 Windows Media Device Manager 10 SDK。该模式在 And...
分类:
移动开发 时间:
2014-07-22 22:49:33
阅读次数:
269
一 ?准备 ????此文假设你已经安装如下 openstack 的其他组件 1.?nova?-------?compute?service
2.?keystone?---?identity?service
3.?glance?-----?image?service
4.?neutron?----?network?...
分类:
其他好文 时间:
2014-07-22 08:37:35
阅读次数:
422
代理工具在我的文件中:tool压缩包。如果不行的话请自行搜索fg742。Android SDK Manager Log的更新失败的信息,如下图:这个信息是网络上https的网络连接不上造成的,所以需要连接代理并把https都换成http。操作如下,点击SDK Manager的Tools->Optio...
分类:
其他好文 时间:
2014-07-21 09:27:37
阅读次数:
246
1. 安装软件:sudo apt-get install libvirt0 libvirt-bin libvirt-dev virt-manager qemu-system2. 配置网桥:# interfaces(5) file used by ifup(8) and ifdown(8)auto l...
分类:
系统相关 时间:
2014-07-21 09:13:47
阅读次数:
343
一、 Service简单介绍Service是android 系统中的四大组件之中的一个(Activity、Service、BroadcastReceiver、ContentProvider),它跟Activity的级别差点儿相同,但不能自己执行仅仅能后台执行,而且能够和其它组件进行交互。servic...
分类:
移动开发 时间:
2014-07-21 08:28:32
阅读次数:
291
需要加一个权限: ActivityManager manager = (ActivityManager) getSystemService(Context.ACTIVITY_SERVICE); List runningTasks = manager .getRunningTasks(1);...
分类:
其他好文 时间:
2014-07-21 00:15:59
阅读次数:
212
接着上一篇:《ASP.NET SignalR系列》第三课 SignalR的支持平台一、概述 SignalR常常依托于ASP.NET应用程序运行于IIS中,但它还可以自我托管(比如作为consolewinform、Windows service).只要我们使用self-host库就可以了.该库向所有....
分类:
Web程序 时间:
2014-07-20 21:33:59
阅读次数:
531
目的:利用shell脚本每小时检测数据库是否在运行,当检测到库宕掉时发邮件告警。
1.检查sendmail是否在运行
servicesendmailstatus
没有在运行则启动或安装。
如果是linux6,则检查postfix是否在运行servicepostfixstatus
2.pmon是oracle五大关键进程之一,如果pmon进..
分类:
其他好文 时间:
2014-07-20 10:36:28
阅读次数:
234
这个也是昨天学习的,做下总结。
检查服务是否开启要写成一个工具类,方便使用,传服务的名字返回Boolean值,当然,因为需要,还要传一个上下文context。
说一下这个工具类的几个关键点:
1.方法要传context和serviceName,context用来getSystemService()操作获得ActivityManager。注意,这个方法参数要用大写的Context中的参数:Context.ACTIVITY_SERVICE,要不然会出错,还不知道哪错的,花了我10分钟的时间才知道,谨记下。
2....
分类:
移动开发 时间:
2014-07-20 10:28:16
阅读次数:
200