ITeye博客

shmilywzc的博客

shmilywzc · 共 42 篇文章

指针和引用

引用必须初始化一次 并且不能为空 而指针不用 引用的大小根据引用的类型决定 而指针 变量 大小为4 指针可以随时更改 指向的地址或者内容 而引用不行 指针和引用两种方式改变变量的值: int i = 10; int &p = i; cout << &p << '\n'; p ++; cout << i << '\n'; int *p1 = &i; *p1 ++; cout << i << '\n';

2012-02-08 14:42 · C++学习 · 评论(0)

eclipse c++ 环境搭建

下载eclipse c++开发环境CDT 下载c++ windows的编译器 mingw 配置环境变量 CPLUS_INCLUDE_PATHC, 值F:\MinGW\lib\gcc;F:\MinGW\lib\gcc\mingw32;F:\MinGW\lib\gcc\mingw32\4.6.1;F:\MinGW\lib\gcc\mingw32\4.6.1\include;F:\MinGW\lib\gcc\mingw32\4.6.1\include\c++;F:\MinGW\lib\gcc\mingw32\4.6.1\include\c++\backward;F:\MinGW\lib\gcc\m…

2012-02-08 11:32 · C++学习 · 评论(0)

DB2 SQL

..........................

2012-01-06 13:47 · SQL · 评论(0)

Jenkins 专题

主页上不去 http://www.softpedia.com/get/Internet/Servers/Other-Servers/Jenkins.shtml 这里可以载

2011-12-28 23:11 · CI · 评论(0)

Maven专题

开始学习http://maven.apache.org/guides/getting-started/index.html 這兩篇是必須要明白的 [b]understand build lifecycle[/b] http://maven.apache.org/guides/introduction/introduction-to-the-lifecycle.html [b]understand pom[/b] http://maven.apache.org/pom.html 1. 如何配置和使用plugin [b]plugin list[/b] http://maven.apache.or…

2011-12-28 14:10 · CI · 评论(0)

JSF Multiple Session都一個典型解決

利用分而治之的原則,把session劃分成不同區塊,每一塊對應當前的id。id的唯一性由一下原則保證, 同步增加,也就是說最后拿到的永遠是最大的id 線程和Request同時保存id的值。 然後把當前的值保存到session中,就實現各個頁面對應各個session了

2011-12-23 11:09 · JSF专题 · 评论(0)

可以诠释Jackrabbit ACL 最好的一段代码(Resource Based)

http://wiki.apache.org/jackrabbit/AccessControl里解释道, A core concept of resource-based ACLs is that they inherit the ACLs from the parent node, thus for each node, all the ACLs of its ancestor come into play as well.意思就是resource-based ACL 会从父节点继承权限并应用到所有的node。但是这里却没有说明是rep:GrantACE可以继承还是rep:DenyACE可…

2011-12-20 21:12 · Jackrabbit · 评论(0)

AppServer 集成Jackrabbit JCA

在各个AppServer中,除了普通的JDBC,JMS的Connection Pool,还可以配置自定义的Connection Pool. JCA就是Jackrabbit作为Connector的一种方式。发布了自己的Connector,就可以在程序中使用容器的事务管理方便的使用JTA和其他事务管理方式。 http://jackrabbit.apache.org/downloads.html 下载到最新的JCA包。 下载Glassfish作为实验APP server。 在Glassfish的可视化界面中发布jca 在右边menu中选择Resource -> Connector,选择刚刚发布的j…

2011-12-13 11:05 · 系统集成 · 评论(0)

Understanding Transaction

主要由Spring和EJB Container处理transaction来理解如何handle transaction. 一. Local Transaction Spring里实现database的事物需要, 1. 声明transaction manager 普通JDBC Hibernate JPA JTA 以后会介绍JTA的transaction 2. 声明tx:advice 这是用来声明事物的隔离级别和回滚规则的 3. 声明aop 来拦截service方法同时应用tx:advice 2.3 是XML based transaction声明方式,transaction也可以通过annot…

2011-12-10 22:04 · 数据库 · 评论(0)

iframe的弊端

1、在网页中使用框架结构最大的弊病是搜索引擎的“蜘蛛”程序无法解读这种页面。当“蜘蛛”程序遇到由数个框架组成的网页时,它们只看到框架而无法找到链接,因此它们会以为该网站是个死站点,并且很快转身离去。对一个网站来说这无异于一场灾难。 2、框架结构有时会让人感到迷惑,特别是在几个框架中都出现上下、左右滚动条的时候。这些滚动条除了会挤占已经非常有限的页面空间外,还会分散访问者的注意力。访问者遇到这种网站往往会立刻转身离开。他们会想,既然你的主页如此混乱,那么网站的其他部分也许更不值得浏览。 3、链接导航问题。使用框架结构时,你必须保证正确设置所有的导航链接,如不然,会给访问者带来很大的麻烦。比如被…

2011-11-23 10:10 · 评论(0)

Eclipse 启动Server时停在 Starting的状态

原因是因为 Eclipse monitors the ports opened by JBoss AS to determine if the app server is running (I think it gets the server mbean and asks for the state). If you change the ports that JBoss AS uses, or if you change the -b run option to bind to something other than localhost, Eclipse will not be able…

2011-11-14 10:55 · 系统集成 · 评论(0)

IBM的开发者论坛,很不错

http://www.ibm.com/developerworks/cn/views/web/libraryview.jsp

2011-11-12 11:41 · 评论(0)

Jprofiler and Eclipse

1.下载 2.安装, 运行jprofiler_windows_5_1_2.exe,安装到d:\Program Files\jprofiler5 安装的过程中可以选择与IDE整合,也可以在安装完成后,运行Jprofiler的时候再整合。 3.整合到Eclipse, 先启动 JProfiler : 开始菜单–>所有程序–>JProfiler 5 –>JProfiler,输入注册码。(注册码是在网上某个博客找到的 参考 : http://serendipityspaces.spaces.live.com/blog/cns!71616649A887E6A!604.entry ) (执行整合前,先关闭…

2011-11-11 15:49 · 评论(0)

恩恩恩

L-Larry_Lau@163.com#78484-akisfpr22a5j#268

2011-11-11 10:57 · 评论(0)

My SQL 修改 max_allowed_packet

在MySQL 安装目录下的my.ini里面的 [mysql]和[mysqld]的部分分别加上 max_allowed_packet = 20M 然后要重启MySQL service 就可以了。 在MySQL命令行里输入 show variables like 'max_allowed_packet' 就可以查看是否成功修改

2011-11-04 10:45 · 评论(0)