- 浏览: 46641 次
- 性别:
- 来自: 北京
-
最新评论
文章列表
1. 引用必须初始化一次 并且不能为空 而指针不用
2. 引用的大小根据引用的类型决定 而指针变量大小为4
3. 指针可以随时更改 指向的地址或者内容 而引用不行
指针和引用两种方式改变变量的值:
int i = 10;
int &p = i;
cout << &p << '\n';
p ++;
cout << i << '\n';
int *p1 = &i;
*p1 ++;
cout << i << '\n';
eclipse c++ 环境搭建
- 博客分类:
- C++学习
1. 下载eclipse c++开发环境CDT
2. 下载c++ windows的编译器 mingw
3. 配置环境变量 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\l ...
Jenkins 专题
- 博客分类:
- CI
主页上不去
http://www.softpedia.com/get/Internet/Servers/Other-Servers/Jenkins.shtml
这里可以载
开始学习http://maven.apache.org/guides/getting-started/index.html
這兩篇是必須要明白的
understand build lifecycle
http://maven.apache.org/guides/introduction/introduction-to-the-lifecycle.html
understand pom
http://maven.apache.org/pom.html
1. 如何配置和使用plugin
plugin list http://maven.apache.org/plugins/
configure ...
利用分而治之的原則,把session劃分成不同區塊,每一塊對應當前的id。id的唯一性由一下原則保證,
1. 同步增加,也就是說最后拿到的永遠是最大的id
2. 線程和Request同時保存id的值。
然後把當前的值保存到session中,就實現各個頁面對應各個session了
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可以被 ...
在各个AppServer中,除了普通的JDBC,JMS的Connection Pool,还可以配置自定义的Connection Pool. JCA就是Jackrabbit作为Connector的一种方式。发布了自己的Connector,就可以在程序中使用容器的事务管理方便的使用JTA和其他事务管理方式。
http://jackrabbit.apache.org/downloads.html 下载到最新的JCA包。
下载Glassfish作为实验APP server。
1. 在Glassfish的可视化界面中发布jca
2. 在右边menu中选择Resource -> Connector ...
Understanding Transaction
- 博客分类:
- 数据库
主要由Spring和EJB Container处理transaction来理解如何handle transaction.
一. Local Transaction
Spring里实现database的事物需要,
1. 声明transaction manager
普通JDBC
<bean id="txManager" class="org.springframework.jdbc.datasource.DataSourceTransactionManager">
<property name="dataSource&qu ...
1、在网页中使用框架结构最大的弊病是搜索引擎的“蜘蛛”程序无法解读这种页面。当“蜘蛛”程序遇到由数个框架组成的网页时,它们只看到框架而无法找到链接,因此它们会以为该网站是个死站点,并且很快转身离去。对一个网站来说这无异于一场灾难。
2、框架结构有时会让人感到迷惑,特别是在几个框架中都出现上下、左右滚动条的时候。这些滚动条除了会挤占已经非常有限的页面空间外,还会分散访问者的注意力。访问者遇到这种网站往往会立刻转身离开。他们会想,既然你的主页如此混乱,那么网站的其他部分也许更不值得浏览。
3、链接导航问题。使用框架结构时,你必须保证正确设置所有的导航链接,如不然,会给访问者带来很大的麻烦。比 ...
原因是因为
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 ...
http://www.ibm.com/developerworks/cn/views/web/libraryview.jsp
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.e ...
在MySQL 安装目录下的my.ini里面的
[mysql]和[mysqld]的部分分别加上
max_allowed_packet = 20M
然后要重启MySQL service 就可以了。
在MySQL命令行里输入 show variables like 'max_allowed_packet' 就可以查看是否成功修改