Problem DescriptionIn 2100, since the sea level
rise, most of the cities disappear. Though some survived cities are still
connected with others, but m...
分类:
其他好文 时间:
2014-05-10 07:33:38
阅读次数:
265
import MySQLdb# 打开数据库连接db =
MySQLdb.connect("localhost","testuser","test123","TESTDB" )# 使用cursor()方法获取操作游标
cursor = db.cursor() #cursor用来执行命令的方法:
分类:
数据库 时间:
2014-05-10 06:03:19
阅读次数:
309
在执行/etc/init.d/ndbd--initial出现下列错误[root@ndbd1~]#/etc/init.d/ndbd--initialUnabletoconnectwithconnectstring:nodeid=0,localhost:1186Retryingevery5seconds.Attemptsleft:121110987654321,failed.解决办法1.查看/etc/my.cnf文件配置[root@ndbd1~]#cat/etc/my.cnf..
分类:
数据库 时间:
2014-05-10 04:07:58
阅读次数:
1778
首先需要保证PC与手机在同一局域网内或有独立公网IP, 以下以在同一局域网为例(保证手机能访问到这台PC机器):
1. PC端配置
1). 安装Fiddler
2). 开启Fiddler以下功能:
1).allow romote computer to connect.
2).decrypt https traffic
3).ignore server...
分类:
其他好文 时间:
2014-05-10 03:25:39
阅读次数:
380
inets模块MODULE SUMMARYThe inets services
API。inets:start():启动应用。
分类:
Web程序 时间:
2014-05-10 02:46:43
阅读次数:
303
Problem DescriptionThere are N villages, which
are numbered from 1 to N, and you should build some roads such that every two
villages can connect to e...
分类:
其他好文 时间:
2014-05-10 02:28:50
阅读次数:
374
Windows Socket+TCP服务器客户端
Winsock是 Windows下套接字标准。
1.UDP socket编程:
UDP(用户数据报协议)是一个无连接,不可靠的数据传输,其特点是简单,快捷。相比与TCP,UDP不需要建立连接(不需connect、accept函数),数据发送接收...
今天在创建数据源的时候报了这么一个错Invalidbyte3of3-byteUTF-8sequence.上网一查,说是有中文,字体不相符,可是我没有写中文,为了能继续往后进行,修改了如下文件在start-pentaho.bat中添加了一句代码修改前IF"%BITS%"=="64"(
setCATALINA_OPTS=-Xms1024m-Xmx2048m-XX:Max..
分类:
其他好文 时间:
2014-05-09 21:43:58
阅读次数:
425
错误原因:
如API中所述
API:
A table of data representing a database result set, which is usually generated by executing a statement that queries the database. A
ResultSet object maintains a cursor pointi...
分类:
数据库 时间:
2014-05-09 21:00:43
阅读次数:
423
using UnityEngine;using System.Collections;public
class MoveSample : MonoBehaviour{ void Start(){ //iTween.MoveBy(gameObject,
iTween.Hash("x", 2, "e.....
分类:
其他好文 时间:
2014-05-09 20:11:02
阅读次数:
455