- 浏览: 24410 次
- 性别:
- 来自: 大连
最新评论
文章列表
参考:http://www.open-open.com/lib/view/open1349849744275.html
在配置gitosis之前,服务器需要先安装git server,见前一篇文章。
环境:server:CentOS 6
client:CentOS 6
1、在服务器安装gitosis
#yum install python python-setuptools
#cd /usr/local/src
#git clone git://github.com/res0nat0r/gitosis.git
#cd gitosis
#python setup.py install ...
奉老公之命在CentOS上搭建Git,从创建虚拟机开始,一步一步做起:
服务器:CentOS 6.5 + Git 2.1.3 + Gitosis
客户机:windows 8 + eclipse 3.8
1、新建一个虚拟机
参见:http://www.centoscn.com/image-text/setup/2013/0816/1263.html
2、安装CentOs系统
CentOs下载:http://www.centoscn.com/CentosSoft/iso/
安装说明参见:http://wenku.baidu.com/link?url=NlikZrojehbEDZ3WeKu3a ...
flex的RichTextEditor用法两则
- 博客分类:
- flex
来源:http://blog.minidx.com/2008/12/10/1703.html
<mx:RichTextEditor id="noticContentTxt"
showControlBar="false"
cornerRadius="0"
width="100%"
height="100%"
rollOut="noticContentTxt.showControlBar = false;"
rollOver="noticConte ...
在AIR中的TextInput不能输入中文时,有两种方法:
方法一:<s:TextInput /> 改为<mx:TextInput />
方法二:加入事件 focusIn="{IME.enabled=true}"
grid中取到多行数据,提交到action后list里的对象变为了ASObject,强制转换实体类会出错。
flex:
var equipments:ArrayCollection = new ArrayCollection( equipmentGrid.selectedItems as Array);
解决办法:
在实体类的对应as(SysEquipment.as)中加入:
[RemoteClass(alias="com.project.model.po.SysEquipment")]
提示错误:java.sql.SQLException:ORA-01653:表**无法通过128(在表空间**中)扩展。
错误原因:表空间不足
参考:http://www.cnblogs.com/RoyYu/archive/2012/12/09/2810492.html
1.查看各表空间分配情况。
select tablespace_name, sum(bytes) / 1024 / 1024 from dba_data_files
group by tablespace_name;
2.查看各表空间空闲情况。
select tablespace_name, sum(by ...
参考:http://wenku.baidu.com/view/956085bbc77da26925c5b0a9.html
select object_name,original_name,partition_name,type,ts_name,createtime,droptime from recyclebin;
flashback table sms_user to before drop;
http://blog.knowsky.com/193543.htm
方法一:
打开tomcat服务管理器的java页
在Java Options里面输入需要设置的参数,如设置permsize的内存
-XX:PermSize=64M
-XX:MaxPermSize=192m
-XX:ReservedCodeCacheSize=48m
-Duser.timezone=GMT+08
注:每一行后面都不能有空格。
方法二.修改{TOMCAT_HOME}\bin\catalina.bat文件
在最后几句以%_EXECJAVA%开头的语句后面加上“ -Duser.timezone=GMT+08 ” ...
flex的datagrid拖拽:
参考:http://blog.minidx.com/2008/10/05/1485.html
dragMoveEnabled:true--删除源数据表的数据;
false--不删除源表数据。
dropEnabled:true——当dragMoveEnabled=true时,可在本datagrid内移动数据;当dragMoveEnabled=false时,可在本datagrid内复制数据。
false——不可再本Datagrid内移动数据
dragEnabled:true——可拖拽;
...
flex的字体:
宋体:SimSun
黑体:SimHei
仿宋:FangSong_GB2312
楷体:KaiTi_GB2312
在httpd.conf配置文件中找到
ErrorLog logs/error_log
CustomLog logs/access_log common
修改为
ErrorLog “| /usr/sbin/rotatelogs /home/logs/www/%Y_%m_%d_error_log 86400 480″
CustomLog “| /usr/sbin/rotatelogs /home/logs/www/%Y_%m_%d_access_log 86400 480″ common
重启apache
参考文章:http://hi.baidu.com/wenlong ...
服务器自三月份以来持续不正常,经常出现too many open files。手头事情太多,每次出现问题都先重启暂时解决问题。这两天总算静下心来,和老公研究研究服务器到底怎样调优。
首先,用lsof -p <进程号>,查看系统打开了哪些文件,用netstat -an 查看端口使用情况。发现有大量CLOSE_WAIT,上网查资料,说是因服务器发生了socket未关导致的closed_wait发生,致使监听port打开的句柄数到了1024个,且均处于close_wait的状态,最终造成配置的port被占满出现 “Too many open files”,无法再进行通信。tcp_clos ...
正则表达式:
^((\d{2}(([02468][048])|([13579][26]))[\-\/\s]?((((0?[13578])|(1[02]))[\-\/\s]?((0?[1-9])|([1-2][0-9])|(3[01])))|(((0?[469])|(11))[\-\/\s]?((0?[1-9])|([1-2][0-9])|(30)))|(0?2[\-\/\s]?((0?[1-9])|([1-2][0-9])))))|(\d{2}(([02468][1235679])|([13579][01345789]))[\-\/\s]?((((0?[13578])|(1[02]))[\-\/ ...
用org.apache.poi的包做excel导入,无意间发现如果excel文件中有空列,空列后面的数据全部读不到。查来查去原来是HSSFRow提供两个方法:getPhysicalNumberOfCells和getLastCellNum。
getPhysicalNumberOfCells 是获取不为空的列个数。
getLastCellNum 是获取最后一个不为空的列是第几个。
同样,HSSFSheet获取行也有类似两个方法,如果excel数据中存在空行或空列,必须用getLast**的方法才能完全读取数据。
以前以为复杂的子查询只能用hql实现,今天高人指点,原来也可以用Criteria对象实现。
例如,查询a表中没有在b表出现的记录
SQL: select * from tableA a where not exists (select 1 from tableB b where b.id=a.id and b.name=**)
hibernate:
DetachedCriteria dCriteria = DetachedCriteria.forClass(TableB.class, "b").setProjection(Property.forName(" ...