Archive for July, 2010

有害气体无害论

2010/07/29

中央台的新闻标题实在太强了

被动放假与自主放假

2010/07/29

针对十一及国家大假的思考

折腾你没商量

全民统一行动的利与弊

社会资源的分配与使用

从被动放假到自主放假是个管理命题

GDP与幸福感无关

2010/07/29

GDP的概念

GDP所能体现的内容

GDP的涨跌无法反映国民生活质量的高低

vim 配置

2010/07/23

" customed by Jeff
set encoding=utf-8
set fileencodings=utf-8,chinese,latin-1

"解决菜单乱码
source $VIMRUNTIME/delmenu.vim
source $VIMRUNTIME/menu.vim

"解决console输出乱码
language messages zh_CN.utf-8

colors darkblue
winpos 0 0

set lines=50
set columns=100
set shiftwidth=2
set tabstop=2
set foldmethod=syntax

set number
set wrap
set nobackup
set nowritebackup

警车标识的倒写原因

2010/07/21

长久以来,一直对外国的警车或救护车的文字倒写感到奇怪,还以为是图片放置问题,经过前一段的驾车训练,突然意识到,原来这些是为了司机考虑的,这里说的司机不是警车救护车的司机,而是在警车救护车前方的驾驶司机,考虑到他们通过后视镜观察警车的情况。

5089912003858952200 917326949100177895 917326949100177900

生活中经常有一些看似奇怪,但却隐含着相当有趣的内容。

log4net 配置注意事项

2010/07/21

log4net.cfg.xml 文件基本内容:
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
  <configSections>
    <section name="log4net" type="log4net.Config.Log4NetConfigurationSectionHandler,log4net" />
  </configSections>
  <log4net>
    <appender name="ConsoleAppender" type="log4net.Appender.ConsoleAppender" >
      <layout type="log4net.Layout.PatternLayout">
        <conversionPattern value="%date [%thread] %-5level %logger [%ndc] – %message%newline" />
      </layout>
    </appender>
    <root>
      <level value="ALL" />
      <appender-ref ref="ConsoleAppender" />
    </root>
  </log4net>
</configuration>

Hibernate 配置注意事项

2010/07/21

hibernate.cfg.xml文件基本内容:
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
  <configSections>
    <section name="hibernate-configuration" type="NHibernate.Cfg.ConfigurationSectionHandler, NHibernate" />
  </configSections>

  <hibernate-configuration xmlns="urn:nhibernate-configuration-2.2"  >
    <session-factory>
      <property name="dialect">NHibernate.Dialect.OracleDialect</property>
      <property name="connection.driver_class">NHibernate.Driver.OracleClientDriver</property>
      <property name="connection.provider">NHibernate.Connection.DriverConnectionProvider</property>
      <property name="connection.connection_string">data source=dbname;user id=username;password=pws;</property>
      <property name="connection.isolation" >ReadCommitted</property>
      <property name="show_sql">true</property>
      <property name=’proxyfactory.factory_class’>NHibernate.ByteCode.Castle.ProxyFactoryFactory, NHibernate.ByteCode.Castle</property>
      <!– mapping files –>
      <mapping assembly=""/>
    </session-factory>
    </hibernate-configuration>
</configuration>

1、不同版本的方言差异
针对oracle数据库
nibernate-1.2配置方言为:NHibernate.Driver.OracleClientDriver
nibernate-2.1配置方言为:NHibernate.Driver.Oracle9iClientDriver

体形卡-2010年06月27日

2010/07/03

2010/6/27 Decathlon – Taillant
您的体形卡

产品的相应尺寸
FR EU
头围 61.9 cm 头盔 / 鸭舌帽 61.9 cm 61.9 c
胸围 101 cm 上装 44 L
腰围 88 cm 下装 44 L
手围 22.7 cm 手套 22.7 cm L
裤裆 77 cm 鞋子 25.9 cm 41
脚长 25.9 cm 睡袋 176 cm L
高度 176 cm 自行车 176 cm 176 cm
重量 64 kg

Design a site like this with WordPress.com
Get started