首先来看这一部分代码 1 /** 2 * Created by bsn on 14-7-1. 3 */ 4 var connect = require('connect'); 5 6 var app = connect(); 7 function hello(req, res, next) {...
分类:
Web程序 时间:
2014-08-02 12:41:53
阅读次数:
193
<?php$con=mysql_connect(‘localhost‘,‘root‘,‘1234‘);echo‘<hr>1.mysql_client_encoding<br>‘;echomysql_client_encoding();//返回当前数据库的编码方式//mysql_data_seek(result,row_number):移动数据内部指针到指定的行;result//是mysql_query():获取的数据..
分类:
数据库 时间:
2014-08-01 20:15:52
阅读次数:
328
在上篇LNMP的基础上进行测试vim/usr/local/nginx/html/test.php<?php$link=mysql_connect(‘localhost‘,‘root‘,‘mysql服务器密码,没有就在两个单引号中为空‘);if(!$link)echo"fail";elseecho"success";mysql_close();?>chmod755/usr/local/apache/htdocs/testdb.phpservi..
分类:
数据库 时间:
2014-08-01 20:13:03
阅读次数:
258
描述:注意需要先self.connect(right)再self.connect(left),否则会有case通不过,原因是左边递归执行时依赖与右边的next已经建立,而先执行connect(left)的话右边还没有完成关系的建立。代码: 1 class Solution: 2 # @par...
分类:
其他好文 时间:
2014-08-01 19:15:42
阅读次数:
223
create database link test_link connect to xx identified by xx using '(DESCRIPTION = (ADDRESS_LIST = (ADDRESS = (PROTOCOL = TCP)(HOST = 10.xx.x...
分类:
数据库 时间:
2014-08-01 18:42:32
阅读次数:
277
为了理清思路,做一些小笔记:1、socket流程:int socket()产生了该socket的描述符socket descriptionbind()主动调用时,把socket与端口绑定,如果不主动调用,在linsten和connect时,会自动随机分配一个端口。server端在socket和bi....
分类:
其他好文 时间:
2014-08-01 13:24:41
阅读次数:
276
/*
?*?@(#)Ping.java????1.2?01/12/13
?*?Connect?to?each?of?a?list?of?hosts?and?measure?the?time?required?to?complete
?*?the?connection.??This?example?uses?a?selector?...
分类:
编程语言 时间:
2014-07-31 21:24:47
阅读次数:
293
#!/bin/sh
if [ -z "`curl --connect-timeout 15 --max-time 20 --head --silent http://localhost/index.php|head -n 1|grep ‘200‘`" ];then
echo -e "$(date +%Y-%m-%d)\n"
killall nginx
killall...
分类:
Web程序 时间:
2014-07-31 17:23:50
阅读次数:
301
Arctic Network
Time Limit: 2000MS Memory Limit: 65536K
Total Submissions: 9973 Accepted: 3302
Description
The Department of National Defence (DND) wishes to connect several northern outposts by ...
分类:
其他好文 时间:
2014-07-31 17:04:21
阅读次数:
199
Android 使用 adb命令 远程安装apk
cmd下到你的adb目录,一般在platform-tools下.
adb devices 列出所有设备
adb connect xxx.xxx.xxx.xxx 连接到该设备
adb logcat 启动logcat
adb install -r c:\my.apk 将本地apk安装到远程机器
adb uninstall 卸载(例如com...
分类:
数据库 时间:
2014-07-31 17:03:37
阅读次数:
307