自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(30)
  • 资源 (20)
  • 收藏
  • 关注

转载 How to open a file

Path path = new Path("sample1-test\\StandardDataDict.xml");//Path path = new Path("qqq\\plugin.xml");   IFile file = ResourcesPlugin.g

2011-10-14 14:18:36 455

转载 timesten locks

Resource:  The type of the lock being requested:Row - Row-level lock.HashedKey - A lock held on a key value of a hash index; acquired

2011-08-25 19:51:37 450

原创 new rap version

1. How do I display the System.out console in a view in my Eclipse RCP application? The answer has two parts. To start, you can redirect console output to an arbitrary PrintStream 

2010-04-26 21:35:00 519

原创 How to draw on a canvas in rap applications

Its amazing that,by rewrite GC class, the current RAP support drawing now. Though its not released yet, you can get RAP source code from eclipse website, compile and substitute for the old rap jars.

2010-04-25 14:09:00 507

原创 红黑树学习小结

 红黑树是一种二叉查找树(binary-search tree),它有如下性质:1、  树中的任意一个节点要么是红色,要么是黑色。2、  根节点是黑色。3、  每个叶节点(空节点)是黑色。4、  红色节点的子节点必须是黑色。5、  从一个节点到其叶节点的每条路径上,黑色节点的个数相同。 规则是多了点,不过很是管用:由性质4和性质5即可决定任一个节点的两棵子树的高度最

2010-04-11 12:18:00 478

转载 插件的识别

http://www1.eclipseworld.org/bbs/read.php?tid=4641还是让我来解决吧,configuration/config.ini,在里面加入org.eclipse.update.core@3:start,org.eclipse.update.configurator@3:start启动时加上 - clean就可以了,试过没有问题  

2010-03-28 21:42:00 431

转载 Eclipse中类型扩展机制分析

from: http://www.blogjava.net/zhuxing/archive/2009/10/13/222860.html概要       在本篇文章中,将讨论如下关键内容:1、 标准的适配器模式,包括类适配器模式和对象适配器模式,及其各自的优缺点2、 Eclipse runtime中的类型扩展机制,包括扩展类型的自动回调机制、已知扩展类型支持和未知扩展类型支持的

2010-03-28 21:37:00 764

原创 c++ const

1、一般一来说,把一个const值赋给一个非const值是可以,如:const int a = 10;int b = a;但是指针例外,如:const int* a = new int;int* b = a;//error可以理解,因为通过指针可以改变内容。 2、class 函数体的const中使用this指针的话,this指针为const this 如:

2010-03-28 00:17:00 258

原创 由osgi引出的classLoader的大总结

  由osgi引出的classLoader的大总结(整理理解ClassLoader) 收藏 http://blog.csdn.net/turkeyzhou/archive/2008/09/14/2792876.aspx转载请注明出处(corey)最近在研究osgi,在osgi里面里面有个很重要的东西,就是ClassLoader,所以,在网上搜集了一些资料,整理一下,并加入了自己的一

2010-03-28 00:16:00 293

原创 #define debug(format, ...) PROG_LOG(__FILE__, __LINE__, format, __VA_ARGS__)

printf("a%sb"):aa%sbb? #define print(a,b..) printf(a,##b) //for gcc?

2010-03-20 19:14:00 1305

原创 char*& ,printf("a%sb"):aa%sbb?

char* a = new char[100];char*& b = a;ok char a[100];char*& b = a;error b 是一个指针的引用,指针指向一个首地址,第二种情况下此指针不存在?  #define debug(format, ...) PROG_LOG(__FILE__, __LINE__, format, __VA_AR

2010-03-07 18:34:00 333

原创 LR parser From Wikipedia, the free encyclopedia

In computer science, an LR parser is a parser that reads input from Left to right (as it would appear if visually displayed) and produces a Rightmost derivation. The term LR(k) parser is also used;

2010-02-10 23:34:00 597

原创 LL parser From Wikipedia, the free encyclopedia

An LL parser is a top-down parser for a subset of the context-free grammars. It parses the input from Left to right, and constructs a Leftmost derivationof the sentence (hence LL, compared with LR p

2010-02-10 23:31:00 738

原创 Lookahead From Wikipedia, the free encyclopedia

Lookahead in search problemsIn artificial intelligence, lookahead is an important component of combinatorial search which specifies, roughly, how deeply the graph representing the problem is explo

2010-02-10 23:16:00 496

原创 设计模式

patterns...

2010-02-02 19:57:00 221

原创 oracle sql之深入学习

2010-1-31:没有启动with selectstart withconnect by

2010-01-31 18:16:00 297

原创 eclipse rcp了解

2010-10-31:刚刚了解

2010-01-31 18:16:00 200

原创 语法分析之antlr学习

2010-1-31:基本没有起动

2010-01-31 18:14:00 375

原创 C++类的运行时识别与创建

以前一直以为运行时的类创建不过是new 一个class,可是直想自己实现的时候发现并非这么简单。现在总结起来要实现之也不外乎实现以下几条:1、类可以通过new来创建,这个是必须的也是必然的,C++肯定支持。2、由名称到类或者类创建函数的映射关系。这个需要我们自己实现,像MFC的CRuntimeClass所实现的链表,甚至可以利用STL的链表(个人想法,未经验证)。3、上述用的链表或

2010-01-24 18:43:00 337

原创 lex&yacc

比较古老的东西了,保存一下以备后用。sql.l%{#include "y.tab.h"#include "sql.h"int state = 0;char buff[128] = {0};#if BEBUG#elsetypedef char* YYTYPE;extern YYTYPE yylval;#endif%}/* lex file fo

2010-01-24 18:37:00 261

原创 gawk /sed 提醒

files=`ls -l | gawk /^-/ { print $NF}`sed "s/bpm/$file/g" ../winbilling/bpm/bpm.dsp >$file/$file.dsp自genproject.sh

2009-10-22 16:27:00 264

原创 随笔

CWnd::SetFontvoid SetFont( CFont* pFont, BOOL bRedraw = TRUE );这里的pFont貌似不能是局部变量,否则设置只对光标生效,而字体不变。 现在看了看,MFC也不是那么得难用,虽然不像bcb那样随心所人欲,但是还凑合。以前对View/document/frame理解的不是很好,现在看来像open啊,save啊

2009-10-11 17:28:00 224

原创 循环赛问题

源于论坛一个帖子,从一个各元素不同的偶数个元素数组(比如[1 2 3 4 5 6])中任取两个元素的组合,然后将这些所有两个元素的组合分成若干组,每组都能重新组成新数组,而这个新数组正好与原来数组相同,问当这个偶数数组是1-100时,一共能排列成多少种,并一一列举出来。论坛回复有两种比较好的方法,我只看懂了一种,发下:比如数组1-6,[1 2 3 4 5 6],任意取两个元素一共有12,13,

2009-09-20 10:15:00 930

转载 linux telnet

在Linux中要对Telnet进行配置时我们必须修改其配置文件,此配置文件的位置是在/etc/xinetd.d中,文件名一般为telnet,有的redhat版本中文件名可能为krb5-telnet或者*-telnet,总之,找含有“telnet”字符的文件。找到后我们使用文本工具打开,看到如下内容:service Telnet{flags = REUSEsocket_type = streamwa

2009-09-01 15:03:00 484

转载 将Linux代码移植到Windows的简单方法

一.前言  Linux拥有丰富各种源代码资源,但是大部分代码在Windows平台情况是无法正常编译的。Windows平台根本无法直接利用这些源代码资源。如果想要使用完整的代码,就要做移植工作。因为C/C++ Library的不同和其他的一些原因,移植C/C++代码是一项困难的工作。本文将以一个实际的例子(Tar)来说明如何把Linux代码移植到Windows平台上。移植过程将尽量少修改代码,以

2009-08-29 19:44:00 437

转载 vc link2005 error etc...

写好测试程序后编译工程,结果出现了很多“无法解析的外部符号”类型的错误。但是lib都已经添加了呀?! 错误原因: 编译测试程序时,项目属性/C++/代码生成/选项中,C++的运行库设置与编译gtest库时的运行库设置不同。 在编译gtest库时项目设置中运行库设置成了“多线程调试(/MTd)”,而VS2008默认项目设置是“多线程调试 DLL (/MDd)”,导致很多函数符号无法解析。 解决:修改

2009-08-25 09:37:00 387

原创 makefile与g++

  如下源文件://A.cpp#include "A.h"... 则: A.o:A.cpp    g++ -Iclasspath-o A.o -c A.cppmake会在VPATH及当前路径下寻找A.cpp,而不会在路径classpath中找。而g++会在当前、classpath等路径查找A.h,而不会在路径VPATH中找。 g++ -o A.o

2009-08-22 21:34:00 516

原创 linux 常用配置等

1、登录方式:/etc/inittab    2、环境变量举例:    .profile文件中添加  export JAVA_HOME=/opt/SDK/jdk                                PATH=$PATH:$JAVA_HOME/bin                                export PATH   然后

2009-08-15 11:14:00 369

原创 oracle 92操作相关

1、按装新实例时安装目录由变量ORACLE_BASE决定,ORACLE_BASE的更改不是系统变量,而是注册表[HKEY_LOCAL_MACHINE/software/oracle/home0] 下 ORACLE_BASE 2、更改oracle字符集同样在上述注册表路径,变量为 NLS_LANG,一般可取                AMERICAN_AMERICA.ZHS16G

2009-08-14 17:15:00 292

原创 算法之二分查找法

二分查找法又名折半查找法,应用很广泛,因为1、其原理简单2、并且效率很高,属于基于比较的查找法中时间复杂度最低的,时间复杂度为O(log n)缺点是是查找的对像必须是有序的。二分查找法描述如下:A为一个含有n个数的数组,按由小到大排列,欲将m插入该数组中,查找该位置。int BiSearch(int* Array, int n, int m){    int pos1=0;

2009-03-08 21:45:00 552

gcc4.8.1 source code part2

self use, do not download

2013-09-24

openssl 1.0.1c source code

latest ssl source package

2012-06-26

neon source code

neon is an HTTP and WebDAV client library, with a C interface.

2012-06-26

oracle DBA 手记 3/3

oracle DBA 手记 oracle DBA手记;part3/3

2011-02-23

oracle DBA 手记 2/3

oracle DBA 手记 oracle DBA 手记part2 of 3

2011-02-23

oracle DBA 手记 1/3

oracle DBA 手记 oracle DBA 手记 part 1 of 3

2011-02-23

疯狂Ajax讲义__整合开发 5/5

疯狂Ajax讲义__整合开发 李刚著,具体见关面介绍吧

2010-06-06

疯狂Ajax讲义__整合开发 4/5

疯狂Ajax讲义__整合开发 李刚著,第四个压缩包,共五个,

2010-06-06

疯狂Ajax讲义__整合开发 3/5

狂Ajax讲义__整合开发 李刚著,第一个压缩包,共五个

2010-06-06

疯狂Ajax讲义__整合开发 1/5

疯狂Ajax讲义__整合开发 李刚著 pdf 扫描的,还算清楚 第一个压缩包,共五个

2010-06-04

疯狂Ajax讲义__整合开发 2/5

疯狂Ajax讲义__整合开发,李刚著,这是第二个压缩包,共五个

2010-06-03

rap runtime sdk part2 of 2

rap 最新的runtime sdk,还未正式发布,新增了gc画图功能

2010-04-25

rap runtime sdk part1 of 2

rap 最新的runtime sdk,还未正式发布,新增了gc画图功能

2010-04-25

qooxdoo sdk 1.0

qooxdoo sdk 1.0开源AJAX框架之qooxdoo之SDK

2010-04-22

Microsoft.Computer.Dictionary.Fifth.Edition

Microsoft.Computer.Dictionary.Fifth.Edition

2010-04-20

swt designer6.9.5 破解版 for eclipse3.5 part4

swt designer 6.9.5 part4 of part4介绍见part1

2010-04-01

swt designer6.9.5 破解版 for eclipse3.5 part3

part3 of 4 ,第四个已成功上传

2010-04-01

swt designer6.9.5 破解版 for eclipse3.5 part2

这是part2of 4,介绍见part1,第四个已成功上传

2010-04-01

swt designer6.9.5 破解版 for eclipse3.5 part1

swt designer,eclipse swt开发利器,图形化开发界面,part1 of 4,第四个已成功上传。解压缩以后,给文件加个扩展名.rar。然后再解压缩就可以用了。

2010-04-01

osgi4.2 规范

osgi规范,英文版,3个pdf文档,从osgi.org下载的

2010-03-24

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除