原api出处:https://docs.angularjs.org/api/ngRoute/service/$routeParams$routeParams 可以获取当前路径参数.需要ngroute模块被安装。路径参数是$location.search()和$location.path()的组合. ...
已引用attachmentManager 为例ApplicationContext applicationContext = WebApplicationContextUtils.getWebApplicationContext(this.getServletContext()); A...
分类:
其他好文 时间:
2014-07-22 22:57:33
阅读次数:
235
#include #include using namespace std;using namespace boost::asio;void client(io_service &ios){ try { cout str(100,0); sock.read_...
分类:
其他好文 时间:
2014-07-16 17:43:45
阅读次数:
203
什么是匿名Service?凡是没有到ServiceManager上注册的Service,都是匿名Service。
还是拿上一篇的例子来举例,看代码:
status_t MediaPlayer::setDataSource(int fd, int64_t offset, int64_t length)
{
status_t err = UNKNOWN_ERROR;
const s...
分类:
移动开发 时间:
2014-07-16 17:17:32
阅读次数:
379
一、mysql配置
1、安装mysql
yum install mysql-server, CentOS中已经默认安装,此步骤忽略。
2、启动mysql
service mysqld start
3、登录mysql
[root@jediael44 share]# mysql -u -root -p
Enter password:
Welcome to the MySQL monit...
分类:
Web程序 时间:
2014-07-16 17:10:41
阅读次数:
321
用VS(c#)创建、调试windows service以及部署卸载同事问到windows service的东东,现在整理一下,用c#如何创建一个windows service,以及如何调试、部署、卸载。一、创建windows service1. 打开VS2008,新建一个Project, Proje...
如果需要登录,使用下边方法,如果为匿名登录的,可以省略,在全局变量中定义public static string Cookiemsg,方便重复使用cookie。 1 public static CookieMsg GetCookieMessage(string name, string passwo...
分类:
Web程序 时间:
2014-07-16 17:03:14
阅读次数:
259
[root@luozhonghua sbin]# service httpd start
Starting httpd: httpd: apr_sockaddr_info_get() failed for luozhonghua
httpd: Could not reliably determine the server's fully qualified domain name, using...
分类:
其他好文 时间:
2014-07-16 11:15:46
阅读次数:
168
首先找到iptables文件
一般在 /etc/sysconfig下面
然后vi iptables
如同 添加一行-A INPUT ......即可打开端口
保存后输入
service iptables restart
重启下服务...
分类:
系统相关 时间:
2014-07-16 09:19:33
阅读次数:
242
Binder机制作为一种IPC通信机制,在android系统中扮演了非常重要的角色,因此我也花了一些时间来研究它,按照我的理解,下面我将从4个方面来讲一下Binder,如有不对的地方,还希望大家多多指教。下面的例子都将以MediaServer来讲。
一、ServiceManager
ServiceManager在Binder系统中相当与DNS,Server会先在这里注册,然后Client会在这...
分类:
移动开发 时间:
2014-07-16 08:46:50
阅读次数:
531