就Android平台而言,URI主要分三个部分:scheme, authority and path。其中authority又分为host和port。格式如下:scheme://host:port/path举个实际的例子:content://com.example.project:200/folde...
分类:
移动开发 时间:
2014-07-13 13:19:12
阅读次数:
368
公司linux 服务器出现问题,mysql 服务器无故关闭,一直找不到原因。
Version: '5.6.13-enterprise-commercial-advanced' socket: '/var/lib/mysql/mysql.sock' port: 3306 MySQL Enterprise Server - Advanced Edition (Commercial)
201...
分类:
系统相关 时间:
2014-07-12 20:01:35
阅读次数:
463
#nginx conf by linux kernel
net.ipv4.tcp_max_tw_buckets = 6000
net.ipv4.ip_local_port_range = 1024 65000
net.ipv4.tcp_tw_recycle=1
net_ipv4.tcp_tw_reuse=1
net_ipv4.tcp_syncookies=1
net.core.soma...
分类:
系统相关 时间:
2014-07-12 18:04:24
阅读次数:
212
1.TNS-00525: Insufficient privilege for operationStarted with pid=30869Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=ora11g)(PORT=1521)))Err...
分类:
其他好文 时间:
2014-07-12 13:27:00
阅读次数:
187
首先我们介绍一下HACK原理,就是不同浏览器对字符的识别不同在CSS中常用特殊字符识别表:(1)*:IE6+IE7都能识别*,而标准浏览器FF+IE8是不能识别*的;(2)!important:除IE6不能识别!important外,FF+IE8+IE7都能识别!important;(3)_:除IE...
分类:
Web程序 时间:
2014-07-12 09:01:02
阅读次数:
294
location.hash 设置或获取 href 属性中在井号“#”后面的分段。location.host 设置或获取 location 或 URL 的 hostname 和 port 号码。location.hostname 设置或获取 location 或 URL 的主机名称部分。locatio...
分类:
Web程序 时间:
2014-07-12 08:38:26
阅读次数:
275
在运行项目的时候,eclipse弹出提示框“Could not open Selected VM debug port (8700). Make sure you do not have another instance of DDMS or of the eclipse plugin running. If it's being used by something else, choose a new port number in the preferences.”
在终端输入:netstat -ano ...
分类:
其他好文 时间:
2014-07-10 23:03:07
阅读次数:
432
使用TCP的服务器客户机举例
服务器
设置一个简单的TCP服务器涉及下列步骤:
调用 socket()建立套接字调用Binding 把套接字绑定到一个监听端口上。在调用 bind()之前, 程序必须声明一个 sockaddr_in 结构体,用 memset()清除, and the sin_family (AF_INET), and fill its sin_port (the...
分类:
其他好文 时间:
2014-07-10 20:21:58
阅读次数:
278
我采用的是MySQLdb操作的MYSQL数据库。先来一个简单的例子吧:importMySQLdb
try:
conn=MySQLdb.connect(host=‘localhost‘,user=‘root‘,passwd=‘root‘,db=‘test‘,port=3306)
cur=conn.cursor()
cur.execute(‘select*fromuser‘)
cur.close()
conn.close()
exceptMySQLdb.Error,e..
分类:
数据库 时间:
2014-07-10 18:20:40
阅读次数:
282