Posted 六月 22nd, 2010 by o2ho in category
工作,
技术
以下内容全部转载自 http://goo.gl/m4Pg,作为笔记记录一下,方便以后查看
ie7和firefox都较为严格的遵循w3c的标准, 不存在太大的兼容性问题. ie6存在很多bug, 我就此说说我的一些经验, 仅仅是经验,毫无科学依据, 尽量避免使用hack
其一, 去掉<?xml version="1.0" encoding="utf-8" ?>
只要存在这个玩意,ie6就不买帐
配合严格或者兼容的xhtml dtd
其二, 浮动双边距,以下任选
1.用padding
2.使margin和float方向不同
3.使用_margin
其三, 使用margin-top实现文本,表单元素,图片一行内垂直居中对齐.
其四, 多猪
由注释引
Posted 六月 4th, 2010 by o2ho in category
工作,
技术
1. 单个数据库连接
可以直接使用OracleTransaction对象做事务处理
using(var transaction = connection.BeginTransaction())
{
.....在这个作用域上的数据库操作,必须基于这个transaction
using(var command = new OracleCommand(commandText, connection) { Transaction = transaction })
{
...
}
...
transaction.Commit(); //transaction.Rollback();
}
2. 多个数据库连接
可以使用TransactionScope对象来维
Posted 五月 15th, 2010 by o2ho in category
工作,
技术,
资源
名称: Instant Client Package
下载: http://www.oracle.com/technology/software/tech/oci/instantclient/index.html
使用方法:
1. Download the appropriate Instant Client packages for your platform. All installations REQUIRE the Basic package.
下载适合你操作系统的Instant Client packages. 如果需要完整安装, 请选择"Instant Client Package - Basic".
2. Unzip the packages in
Posted 二月 5th, 2010 by o2ho in category
工作,
资源
JSONView: View JSON documents in the browser. Add-ons for Firefox Add to Firefox
Posted 二月 5th, 2010 by o2ho in category
工作,
技术,
资源
之一:Short URL Auto-Discovery
之二:rel="shortlink"
Posted 一月 20th, 2010 by o2ho in category
工作
问题: 在Windows XP(SP3)下, Google Chrome浏览器可能无法正常显示Checkbox或RadioButton的图标, 仅显示文字部分.
解决方法: 打开Windows的任务管理器(快捷键: Ctrl+Shift+Esc), 在Chrome浏览器中切换Tab页, Checkbox和RadioButton就可以正常显示了.
参考: When you encounter the bug bring up the Windows Task Manager (taskmgr.exe) and browse to any page in another tab. Then go back to the offending tab and you should have
Posted 一月 14th, 2010 by o2ho in category
工作,
技术
/// <summary>
/// A custom editor part for picking data fields for a table web part
/// </summary>
class CustomEditorPart:EditorPart
{
#region Declarations
// In addition to other controls, etc, declare an error variable
string _errorText = string.Empty;
#endregion Declarations
#region Apply Changes
/// <summary&g
Posted 十一月 18th, 2009 by o2ho in category
工作,
生活
来丹麦后, 每天晚上下雨, 白天多云. 同事开玩笑说, 因为他来到了这里, 所以没有了太阳. 等他回去太阳就出来了. 昨天晚上九点, 这个同事登上回家的飞机. 今天下午两点到北京. 于是今天太阳如约而至. 这个笑话并不好笑, 只是这个同事名叫Cloud.
PS: 猜猜闯入镜头的这个美女是谁?
手机像素太低, 只能是这样了. 明天带着相机出门.
Posted 九月 19th, 2009 by o2ho in category
工作,
技术
Sun 公司提供的Java API Docs是学习和使用Java语言中最经常使用的参考资料之一。但是长期以来此文档只有英文版,对于中国地区的Java开发者来说相当的不便。目前Sun 公司正在组织多方力量将此文档翻译成中文,并于2005年10月31日在Sun 中国技术社区(http://gceclub.sun.com.cn)正式发布第一批中文版Java API文档(包括java.lang和java.util类库API 文档的中文版)。经过将近10个月的努力,目前我们已经将Java SE 5.0的全部API文档中文化。开发人员可以通过Sun 中国技术社区的网站在线浏览相关文档,也可以将全部文档下载到本地以方便检索和使用。
J2SE DK & API下载
————————-
http