- 博客(14)
- 资源 (2)
- 收藏
- 关注
原创 PostgreSQL 整库备份与恢复
备份使用pg_dumpall命令pg_dumpall >pg_dumpall.sql或者同时使用压缩pg_dumpall | gzip >pg_dumpall.sql.gz恢复使用psql命令执行备份文件psql -f pg_dumpall.sql
2018-12-25 14:16:51 1449
原创 无显示屏配置新购树莓派
准备工作: 1. 可插网线的PC机一台,本文使用的系统为Windows 7系统,理论上其它系统都可行。 2. 安装WireShark抓包工具。步骤: 1. 用网线连接PC与树莓派,启动PC机,并给树莓派供电。 2. 设置PC网络,将本地连接设置为自动获取IP。 3. 打开PC命令控制台,查看获取
2015-10-23 17:18:27 783
原创 Spring - Spring Data REST - Prevent The Methods in Event Handlers Be Triggered Twice
To prevent the methods be triggered twice, we need to overwrite the publishEvent(ApplicationEvent event) method, the remove the code below: this.getApplicationEventMulticaster().multicastEvent(event
2015-09-24 10:47:47 741
原创 OpenERP-Java调用XML-RPC接口示例(Examples for calling XML-RPC interfaces by Java)
官网没有给出CREATE、SEARCH、WRITE等XML-RPC接口的Java 调用示例,在此补充一下。There is no examples on the official site for the XML-RPC operation interfaces for Java, so I posted my code here. import org.apache.xmlrpc.Xml
2014-09-22 23:01:58 2093
原创 OpenERP-点击按钮跳转到外部URL(Redirect to external URL by clicking a button)
一、在form view 添加 标签二、使用url widget, 三、使用按钮,return { 'type': 'ir.actions.act_url', 'http://www.openerp.com': drawing_url, 'nodestroy': True, 'target': 'new' }
2014-08-16 21:12:49 1824
原创 OpenERP-限制高级搜索字段范围(Restrict the fields can be seen in "advanced search")
因为高级搜索包含对象的所有字段,默认没有做限制。有时候不希望暴露太多字段给用户,所以可以使用如下方法,使高级搜索与普通搜索的字段范围相同。By default, the advanced search function can search by all of the object's fields. But sometimes, we don't want the user to know
2014-08-06 17:54:46 1239
原创 OpenERP-隐藏多对多域弹出列表视图的"新建"按钮(Hide the "Create" button from the popup list view of a many2many field)
隐藏多对多域的弹出列表视图中的“新建”按钮,如例:Hiding the "Create" button from the popup list view of a many2many field. Example shown as below:1. 在.py文件中定义many2many的field:1. Define a many2many field in the pytho
2014-08-05 23:33:51 1270
原创 OpenERP-设置列表视图强制不换行
更改base.css:.openerp .oe_list_content > tbody > tr > td.oe_list_field_cell { padding: 3px 6px; white-space: pre-line; white-space: nowrap;}
2014-06-04 14:34:37 1182
原创 OpenERP-指定动作视图
当某个对象有多个视图表示时,如果某一动作需要关联某个特定视图,可以通过view_id字段指定。举例: model="ir.ui.view" id="form_view_1"> name="name">form_view_1 name="model">test name="type">form name="arch" type="xml">
2014-03-15 16:33:49 837
原创 OpenERP 7.0 Logo替换
如果需要定制或修改OpenERP登录界面的默认Logo,可以通过替换以下文件实现:C:\Program Files\OpenERP 7.0\Server\server\openerp\addons\web\static\src\img\logo2.png新Logo的图片与原图片大小保持一致或近似,效果更佳。替换后,登录界面与关于界面将显示新的Logo.。
2013-02-23 22:32:57 1377
原创 整合Apache2.2和Tomcat5.5
1. 安装:正常安装Apache HTTPServer 2.2 和Tomcat 5.5 .2. 配置:由于Apache2.2对以往版本有较大改动,引进了proxy 模块,所以Apache2.2和Tomcat5.5的配置需要用到mod_proxy.so等文件(不再使用jk 或 jk2 等tomcat连接器) .基本配置如下:(1) 打开conf/htt
2006-09-21 23:44:00 2058
原创 按速度优化JavaScript代码
一旦你的JavaScript能运行,你就会想到使其运行得更快。在讲解加速代码的方法之前,让我先讲讲“80/20规则”:百分之八十的优化 是由最初百分之二十的工作所完成的。竭力实现剩余百分之二十的速度优化是一种巨大的痛苦,而且经常导致完全不能读和难以管理的代码。简言之,如果你的 JavaScript运行得很慢,你可以用很多简单的方法来加速它,但是除非你的代码确实运行得很慢,我不会对它进行再优化。
2006-09-21 23:38:00 1127
原创 GET是用来获取某些东西,POST则是用来完成某事.
2005年5月,Basecamp(及Ruby on Rails)的开发团队总结了一个很有价值的警句:GET是用来获取某些东西,POST则是用来完成某事.HTTP规范对此有很详细的描述.GET是用来 查询数据,POST则是用来实现与服务器进行交互,以修改服务器状态.违背了标准的内容,坏事就会发生. (摘自)
2006-09-21 23:35:00 1103
《设计模式迷你手册》
2009-03-15
Eclipse中文教程
2009-03-15
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人