1.
启动开启
[tt@host2 info]$ ttDaemonAdmin -start -force
/home/tt/TimesTen/tt1122/info/timestend.pid file exists, attempt start due to -force option.
TimesTen Daemon startup OK.
2.
添加测...
分类:
其他好文 时间:
2014-07-23 13:06:36
阅读次数:
244
在某些情况下,or条件可以避免全表扫描的。 1 .where 语句里面如果带有or条件, myisam表能用到索引, innodb不行。1)myisam表: CREATE TABLE IF NOT EXISTS `a` ( `id` int(1) NOT NULL AUTO_INCREMENT, `...
分类:
数据库 时间:
2014-07-23 12:44:26
阅读次数:
303
问题:重启网络时报错如下>>/etc/init.d/network startRTNETLINK answers: File exists分析:/etc/init.d/network 与/etc/init.d/NetworkManager,这两个服务发生冲突;从根本上说是NetworkMaganag...
分类:
Web程序 时间:
2014-07-22 08:04:34
阅读次数:
302
SELECT nameFROM sys.sysobjects SOWHERE EXISTS( SELECT * FROM syscolumns SC WHERE name LIKE 'Reason' AND SC.id = SO.id)
分类:
其他好文 时间:
2014-07-22 00:21:37
阅读次数:
254
select a.* from A awhere exists ( select 1 from B b where a.id=b.id ) 1 public List exist(){ 2 List result; 3 Array A=(select * from A) 4 5 for...
分类:
其他好文 时间:
2014-07-22 00:13:34
阅读次数:
202
介绍
我发现了一个问题,今天与大家分享。我把整个过程描述一下。
问题
公司有个框架是基于smarty写的,我负责php的升级,维护人员把新环境布上来之后,测试人员找我提出经常报错(错误:提示找不到文件的)。
我追踪了一下代码,原来是smarty的这个地方报的错误。
错误:这里报出文件不存在。
思考过程:
...
分类:
Web程序 时间:
2014-07-21 11:17:44
阅读次数:
211
对于Python字符编码的理解 之前整理了一部分,这次主要是设计到数据库操作的。 下面是一些编码方面的概念和原理,以条目方式整理: ?CREATE DATABASE IF NOT EXISTS db_name DEFAULT CHARSET utf8 COLLATE utf8...
分类:
数据库 时间:
2014-07-21 10:09:09
阅读次数:
273
创建表:drop table tcreate table if not exists t (t string) partitioned by (log_date string) row format delimited fields terminated by '\t' lines terminat...
分类:
其他好文 时间:
2014-07-21 08:31:39
阅读次数:
281
Given a 2D board and a word, find if the word exists in the grid.The word can be constructed from letters of sequentially adjacent cell, where "adjace...
分类:
其他好文 时间:
2014-07-21 08:16:25
阅读次数:
229
前一篇博文提到怎么得到汉字字库,这篇文章讲怎么把一个一个的字转成图片,这在机器学习中会有用处。
一句话,用pygame渲染文字到图片上。
下面上代码。
import os
import pygame
chinese_dir = 'chinese'
if not os.path.exists(chinese_dir):
os.mkdir(chinese_dir)
pygame.ini...
分类:
编程语言 时间:
2014-07-20 11:43:38
阅读次数:
334