爱民屯的IT生活
palmer · 共 20 篇文章
为什么提高最低工资对劳资双方都有利?
节选自: http://info.51.ca/news/canada/2013/07/21/303986.shtml 加拿大目前经济的最大疾症是什么呢?不是债务危机,而是消费资金不足(工人工资相对过少),囤积的投资资金太 多(大部分为雇主的利润)。相对于投资资金,消费资金太少,造成雇主因无法在消费市场实现利润而不愿投资实业,工人失去工作,经济发展不畅。 基于消费不足的顽症,现在提高最低工资,不但可改善贫困工人生计,而且直接刺激消费,给本地商业(尤其小商业)带来生机,让雇主的利润在消费市场得以实现,有助于创造工作机会,形成良性经济循环。
install Adobe Flash plugi in Ubuntu
Ubuntu does not come with the Adobe Flash plug-in because it does not live up to Ubuntu software freedom requirements. Ubuntu 没有缺省安装 Adobe Flash plug-in, --- 由于这部符合 Ubuntu 自由使用软件的要求。 在我的Ubuntu机器上,内置的Firefox 每次安装Adobe Flash plug-in 都失败了。 后来发现, 其实很简单: 1 打开Ubuntu Software Center, 在查询框内输入Adobe Flash, 2…
2013-07-04 06:32 · Ubuntu · 评论(0)
给 jQueryUI datepicker 添加 Clear Button
整理中 var datePickerUtils = { _optsDefault : { showOn: 'both', buttonImage: 'resources/images/pixel.gif', buttonText:'Calendar', buttonImageOnly: true, changeMonth: true, changeYear: true, minDate: '-50Y', maxDate:'+30y', yearRange:'-50:+50', dateFormat:'M-dd-yy' }, _addClearBtn : function( $el ){ if…
2013-04-30 00:55 · jQuery · 评论(0)
设置ajaxError
通过设置ajaxError ajaxComplete可以或者ajax 异常 $(document).ajaxError(function(event, jqxhr, settings, exception) { window.console && console.log(exception); alert('An unexpected error has occurred. Please contact support.\nError requesting page ' + settings.url); }); $(document).ajaxComplete(function(event,…
2013-04-30 00:39 · 评论(0)
孩子需要一个更实用的理由学中文
玮仁:孩子需要一个更实用的理由学中文 转贴 http://blog.51.ca/u-200019/?p=1296 “明确学习目的”,“端正学习态度”,这是我在做学生时老师经常挂在嘴边上的。几十年以后的现在,自己也真的成了老师,面对几十个学习中文的学生,才算真正地领悟到其中的用意,特别是在没有考试和升学的压力下,每周只有两个多小时的课程,学生们积极主动的学习态度就显得更为重要。“你为什么学中文?”当我在课堂上把这个问题提出以后,学生们都不做声,也没人举手要求回答。于是,我随意叫了个学生,他答:“我真的是不想来学中文,是爸爸妈妈一定让我来的。”一言既出,全班20多个学生纷纷响应:“对,是爸爸妈妈…
教孩子学中文 千万别用中文搜索引擎
教孩子学中文 千万别用中文搜索引擎 转自 http://info.51.ca/article/xxjy/znjy/2012/02/23/248430.shtml 前天给孩子们上中文课,作业里有道填空题“--像--一样—”,给的例子是“瀑布像银河一样壮观”,然后让填“妈妈的眼睛像--一样--”,孩子们绞尽脑汁也想不出来。凯丽问我,是否可以说"妈妈的眼睛像灯泡一样亮",我说,这个句子的本身没毛病,但是语意不够雅,中文里很少有把人的眼睛比作灯泡的,偶尔有,也是贬义。让她再想一个更点的比喻。 最近我在教他们用拼音输入法在计算机上输入中文,还在教他们使用网上字典,就琢磨着可以趁这个机会教教他们使用中文…
How to find out which weblogic server version installed on the machine
1 From registry.xml in MW_HOME Go to Middleware Home under which WebLogic is installed and look for file registry.xml Open registry.xml and search for “component name=”WebLogic Server”” version=”10.3.3.0″ (variable version next to this will tell you weblogic version) Also you can see: release level…
2012-02-18 03:23 · Java Bea Weblogic · 评论(0)
取得jQueryUI Tabs的当前tab panel
节选并翻译自 http://stackoverflow.com/questions/300078/jquery-ui-tabs-get-currently-selected-tab-index 虽然该帖子已经有些时日, 不过我没有发现有人提及这个方案: 如果不在Tab的事件 (tab events ,http://jqueryui.com/demos/tabs/#events ) 中, 如何取得 当前tab ( "selected tab" )-- 当前选中的 tab 的下面的显示内容的panel。 我有一个简单的方式... var curTab = $('.ui-tabs-panel:no…
2011-12-09 06:03 · jQuery · 评论(0)
http://plugins.jquery.com/ 挂了
http://plugins.jquery.com/ 不能被访问了! 当您试图访问这个网站的时候 The plugins site is currently unavailable. We've been looking to provide a higher-quality, spam-free experience at the plugins site for some time, and we have decided to temporarily shutter the existing site. We will be providing more details on the …
2011-12-07 06:25 · 评论(0)
如何处理Hibernate的 fails to correctly determine parameter type异常
在Hibernate的HQL 中想使用类似下面的 code "(:param IS NULL OR alias.someField = :param)" 将会抛出determine parameter type 的异常。 把 "(:param IS NULL OR alias.someField = :param)" 换成 "(alias.someField = :param OR :param IS NULL)". 就没有问题了。 2011- 12 -08 补充: 似乎还是不够。 更改了顺序之后 ,直接传入null 似乎还是不行。 使用下面的代码应该是可以。 public List fin…
2011-11-29 04:40 · Java · O/R Maping · 评论(0)
Debugging JSPs in Eclipse using OC4J
To set break points and debug JSPs in Eclipse using the OC4J app server, you have to configure OC4J. Edit the file c:\oracle\oc4j\j2ee\home\config\global-web-application.xml and change the configuration for the OC4J JSP servlet handler to: <servlet> <servlet-name>jsp</servlet-name> <servlet-class>o…
2010-05-07 06:22 · Java · 评论(0)
Hibernate & DBCP
转载 http://wiki.apache.org/commons/DBCP/Hibernate 2010-01-27 Version 5 2005-01-27 Version1 About Hibernate & DBCP Hibernate 2 includes a limited DBCP ConnectionProvider . Not all features of DBCP were supported and with Hibernate3 this limited implementation was deprecated. There is an implementatio…
2010-04-03 04:39 · Java · 评论(0)
M2Eclipse遭遇java.lang.UnsupportedClassVersionError
转载 http://mail-archives.apache.org/mod_mbox/maven-users/200810.mbox/%3C20262610.post@talk.nabble.com%3E Maven 遭遇java.lang.UnsupportedClassVersionError:.... (Unsupported major.minor version 49.0) Hi Thomas, I had the same issue, when you configure the maven-compiler-plugin with java 1.4 in your POM …
2010-04-01 06:01 · Maven · 评论(0)
找回Tomcat6中Administration Web Application
找回Tomcat6中Administration Web Application 在Tomcat6.x中安装配置Tomcat5.5.28中的Administration Web Application source: http://bbs.cnpp.info/thread-137-1-1.html Tomcat6中当前没有可用的Administration Web Application下载,可暂时在Tomcat6中配置使用Tomcat5.5.28的Administration Web Application。 下载:http://tomcat.apache.org/download-55.…
2010-03-31 03:18 · Java · 评论(0)
Windows7 X64 虚拟光驱
本人机器 是6G的内存, 所以不得不用X64的操作系统。 但是X64的系统还真是有不少兼容性的问题。 虚拟光驱先尝试了DAEMON Tools Lite Version: 4.35.5, 直接报告:有已知的兼容性问题。 后来 Google到了这一片文章: Mount an ISO image in Windows 7 or Vista http://www.howtogeek.com/howto/windows-vista/mount-an-iso-image-in-windows-vista/ Virtual Clone Drive 应该是可以的。 不过我最终下载了 MagicISO Vi…
2010-03-21 15:03 · OS/Hardware · 评论(0)