- 博客(20)
- 收藏
- 关注
原创 安装PHP
一、安装Apache2sudo apt-get install apache2然后在Firefox中打开:http://localhost/提示成功二、安装PHP5sudo apt-get install php5sudo apt-get install libapache2-mod-php5sudo /etc/init.d/apache2 resta...
2010-09-26 21:02:16
173
原创 install recite
http://www.ohloh.net/p/reciteword-espeak sudo apt-get install build-essential libesd0-dev pkg-config libgtk2.0-dev wget http://reciteword-espeak.googlecode.com/files/reciteword-0.8.4-src.tar.gz ...
2010-09-08 17:17:29
199
原创 PowerBuilder通过ODBC连接MySQL
PowerBuilder通过ODBC连接MySQL 软件版本:PowerBuilder 8.0.4 Build10501MySQL 5.1.14-beta-community-ntMySQL Connector/ODBC 3.51.12(这个版本比较稳定)1、下载并安装MySQL数据库服务器...
2010-08-28 14:08:32
407
原创 Power Designer 常见问题
1.在生成代码时不包含drop语句在菜单Database->Generate Database,选择弹出的窗口中的Options标签页,去掉窗口右边drop...选项即可。 2.在生成代码中字段默认值不需要带单引号',如default 'to_char(sysdate,'yyyymmdd')'要改成default to_char(sysdate,'yyyymmdd')在菜...
2010-08-23 21:22:41
386
JProfiler6 安装
JPROFILER_HOME=/var/jprofiler/jprofiler6/bin/linux-x86export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$JPROFILER_HOME# -agentlib:jprofilerti=port=8849 -Xbootclasspath/a:/var/jprofiler/jprofiler6/bin/a...
2010-08-15 09:55:12
109
原创 GRUB unknown filesystem
我的ubuntu 是安装在Sda6上的最近在我用分区软件增加一个分区,Sda6变成了新增的分区,照成GRUB无法启动 unkown file system 找了半天 在https://help.ubuntu.com/community/Grub2 找到解决方案 sudo mount /dev/sda6 /mntsudo grub-install --root-direc...
2010-08-03 11:17:54
197
原创 PuTTY: 自由的 Telnet/SSH 客户端
PuTTY: 自由的 Telnet/SSH 客户端 PuTTY 是自由的跨平台 Telnet/SSH 客户端,同时在 Win32 和 Unix 系统下模拟 xterm 终端。其主要作者是 Simon Tatham。 当前版本为 0.60 测试版,请访问 PuTTY 网站获得更多信息 该版本为我根据自己的需求重新修改编译的版本,主要修改了两处:1. session...
2010-07-30 16:17:47
249
原创 通过Dynamic proxy 和 Thread local 进行 connection 管理
public class CassandraAutopubStoreClient implements InvocationHandler{ static Logger log = LoggerFactory.getLogger(CassandraAutopubStoreClient.class); // The next serial number to be ass...
2010-07-22 16:47:14
105
原创 java并发编程-Executor框架
http://daoger.iteye.com/blog/142485java.util.concurrent 多线程框架(来源于http://www.zhuaxia.com/item/590227619/)JDK5中的一个亮点就是将Doug Lea的并发库引入到Java标准库中。Doug Lea确实是一个牛人,能教书,能出书,能编码,不过这在国外还是比较普遍的,而国内的教...
2010-07-21 13:54:58
145
原创 得到 PID
java codes public class StandAloneServer { static public final int PORT = 8182; private final AutopubStore store = new CassandraAutopubStore(); private final Component component = new...
2010-07-20 11:28:51
151
原创 用restlet来处理静态资源
最近工作需要restlet 这个框架,但是restlet文档奇少无比.碰到问题只要硬着头皮看restlet的原代码了 public class StaticResourceApplication extends Application { /** * Constructor. */ public StaticResourceApplic...
2010-07-07 18:25:54
248
原创 开发杂记
1. 通过ant设置java property 时,在java端怎么也取不到 <jvmarg value="-Dtest.BRIC.workPath=${BRICWorkPath}" /> java端, system.getProperty("test.BRIC.workPath") //== nul 最后发现,如果把BRIC改成小写就好了,晕2. hun...
2010-07-07 11:25:04
112
原创 Linux 杂记
71.putty 无法粘贴 可以通过 shift+Insert2.在ubuntu 上建立快捷方式 ,press Shift and Ctrl + drag3.查询linux版本cat /etc/*-release 4.安装 apt-get RHEL4http://dbanotes.net/Oracle/How_To_Maintain_RHEL_with_AP...
2010-07-05 15:10:41
171
原创 Linux系统下常用的系统状态查询命令
http://linux.chinaitlab.com/administer/736926.html cat /etc/*-release 出各个SCSI设备的所有相关信息:如逻辑单元号,硬件地址及设备文件名等。 # ps -ef 列出正在运行的所有进程的各种信息:如进程号及进程名等。 # netstat -rn 列出网卡状态及路由信息等。...
2010-07-05 14:06:56
143
原创 如何让终端运行的任务不受终端关闭影响
http://16.157.69.125:8182/document/YXjSKQIcDl0pZkF9dCC97Q/paginate最近在工作中需要在linux上运行一个java 程序,去download 一大堆的图片,但是每次关掉终端,任务也同时停止了,这很正常, 因为是在同一个进程里吗在网上找了篇文档,不错,写得很透彻,分享以下http://www.heibai.net/artic...
2010-07-01 16:05:49
424
原创 Bytes Array 转化
最近 作一个Cassandra 的项目,需要bytes[]和各种类型的转换,java 干了这么多年,应该是信手拈来,但是我错了,搞了半天才搞出来, 惭愧呀 public static final byte[] bytes(String s) { try { return s.getBytes("UTF-8"); } catch (UnsupportedEncodingExc...
2010-06-29 16:00:40
202
原创 服务器迁移日记
this blog trace the process of transmit the server1. backup mysql database a. 如何看当前机器是否安装mysql b. 查看mysql 数据 安装位置 一般mysql安装的数据,在/var/lib/mysql下,可以通过 show variables like '...
2010-06-27 19:31:18
110
原创 linux 安装软件篇
在linux上安装软件有很多的方式。 1,手动安装 2,通过apt-get安装 3,通过yun安装1.安装JDK 1,手动安装 .在sun的官网上下载 jdk-6u20-linux-i586.bin .运行sh jdk-6u20-linux-i586.bin,会产生jdk1.6.0_20这个文件夹 .更改/etc/environment,设置...
2010-06-26 12:24:09
141
原创 安装ibus拼音输入法
1.更新软件包列表$ sudo apt-get update2.然后搜索软件包$ apt-cache search ibus |grep ^ibusibus - iBus - Intelligent Input Bus for Linux / Unix OSibus-pinyin - ibus-pinyinibus-table - IBus-Table3.安装...
2010-06-25 23:41:07
180
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人