About
Ruby有用连接
Tag Archive
其实我是一个程序员
编程是一种乐趣
现在的位置:
首页
RSS
上一页
1
2
3
4
5
6
7
8
9
下一页
最后
7%-38%-55%法则只是个都市传说
作者: liubin 日期: 2010年09月29日
 
分类:
技术
 
Comments Off
 
1. 什么是7%-38%-55%法则 在准备PMP考试中,学到沟通管理这一章时,很多培训结构(包括网上流传的各种资料)都提到了这么一个公式 沟通 = 语言(7%)+副语言(38%)+非语言(55%) 实际上,你会完全相信老师所说的这个公式吗?换句话说,你每天和别人交流的时候只有7%用到了文字(包括书写和说话)吗?答案我想应该是否定的,至少对于我来说。举个极端的例子,如果真是这样,我们学外语岂不是很容易了?即使不背单词,不学发音,我们不是还有93%的可能性能沟通吗? 2. 7%-38%-55%法则的来源 那这些结论的数字是哪里来的呢?网上搜了搜,得到如下结论...
496 days前 / 0 次浏览
阅读全文
java无失真缩放图片的方法
作者: liubin 日期: 2010年09月14日
 
分类:
技术
 
Comments Off
 
真是会者不难 其实就1句话 BufferedImage tag = new BufferedImage(sideLen, sideLen, BufferedImage.TYPE_INT_RGB); tag.getGraphics().drawImage( img.getScaledInstance(sideLen, sideLen, Image.SCALE_SMOOTH), 0, 0, sideLen, sideLen, null);
511 days前 / 0 次浏览
阅读全文
android的HttpClient
作者: liubin 日期: 2010年09月09日
 
分类:
Android
 
Comments Off
 
在pC上,从服务器取得的内容用 比如: String xml = EntityUtils.toString(httpResponse.getEntity()); xml = new String(xml.getBytes(“ISO-8859-1″),”UTF-8″); 就能得到正常的中文了,但是android下好像不对 试了下,这样就可以了: String xml = EntityUtils.toString(httpResponse.getEntity(),”unicode”); 只用了一行
516 days前 / 0 次浏览
阅读全文
几个开源的在线考试系统
作者: liubin 日期: 2010年08月31日
 
分类:
技术
 
Comments Off
 
都是在sf上找到的。 1.TCExam agpl的许可证,麻烦。PHP/mysql的 功能一般,只是个考试系统,多语言支持。 地址:http://sourceforge.net/projects/tcexam/ 2. eFront – Refreshing eLearning 看截图还不错,主页:http://sourceforge.net/projects/efrontlearning/ 另一个主页:http://www.efrontlearning.net/ 3. WEB-SET CAMPUS http://sourceforge.net/projects/web-set-campus/ 4. GARC – An eLearning System http://sourceforge.net/projects/garc/ 5. Testa OTMS http://sourceforge.net/projects/testa-otms/
525 days前 / 0 次浏览
阅读全文
回龙观地区通讯地址
作者: liubin 日期: 2010年08月04日
 
分类:
技术
 
Comments Off
 
中文:北京市昌平区回龙观(文化居住区)AA苑(园)B区CC号楼DD单元EEE 邮政编码:102208 英文:Room DD-EEE,Bldg No.CC,Block B,AA, Huilongguan residential area,Changping District,Beijing 102208,PRC
552 days前 / 0 次浏览
阅读全文
spring里的ModelAttribute
作者: liubin 日期: 2010年07月08日
 
分类:
技术
 
Comments Off
 
在spring里,model和form的对应不需要写xml文件,只需要在页面里用form这个taglib就可以了: email 这里的commandName就是和Controller里相互映射的model的名字(实例名) path=email指定了对应对象的属性。 Controller里可以这样写: protected ModelAndView sendInvite(@ModelAttribute(“invite”) Invite invite, BindingResult result, SessionStatus status, ModelMap model) {} 其中,参数的第一个invite会自动从form里生成一个Invite的实例并设置值,Controller里直接使用这个对象就可以。 而加上@SessionAttributes的话,可以在form里一直...
579 days前 / 0 次浏览
阅读全文
svn不能提交的错误
作者: liubin 日期: 2010年07月01日
 
分类:
技术
 
Comments Off
 
Eclipse里提交代码的时候,提示: org.tigris.subversion.javahl.ClientException: APR does not understand this error code svn: Commit failed (details follow): svn: Cannot accept non-LF line endings in ‘svn:log’ property comment写了2行而已,查了下,网上有人说每行最后以空格结尾就行了,我试了下还是不行。 不要comment,提交成功。。。奇怪。
586 days前 / 0 次浏览
阅读全文
在spring中设置request的charset为utf-8
作者: liubin 日期: 2010年07月01日
 
分类:
技术
 
Comments Off
 
在java里可以用:request.setCharacterEncoding(“UTF-8″); 在Spring的Controller类里个别设置太麻烦,可以用filter <filter-name>Spring character encoding filter</filter-name> <filter-class>org.springframework.web.filter.CharacterEncodingFilter</filter-class> <init-param> <param-name>encoding</param-name> <param-value>utf-8</param...
586 days前 / 0 次浏览
阅读全文
Android中一些关于sqlite的总结-1
作者: liubin 日期: 2010年06月25日
 
分类:
Android
,
技术
 
Comments Off
 
1.数据库文件 位于:/data/data/{package} /databases文件夹中 2.SQLiteOpenHelper 的onCreate,onUpgrade 你可以扩展SQLiteOpenHelper类,它是一个Android辅助类,主要用于数据库创建和版本管理。实际上,你可以覆盖onCreate()和onUpgrade()方法 onCreate在数据库第一次被创建的时候才会调用,不用担心每次都掉用。 因为很多例子都是create table的语句,重复调用显然原来的数据会没的。 而onUpgrade则是升级的时候才会调用,看如下代码: @Override public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {...
592 days前 / 0 次浏览
阅读全文
hibernate3.2里的Transformers
作者: liubin 日期: 2010年06月24日
 
分类:
技术
 
Comments Off
 
hibernate 里想将sql的结果转为对象,但是对象不想再.hb.xml里定义,可以考虑用 ResultTransformer 使用SQL Transformers List resultWithAliasedBean = s.createSQLQuery( "SELECT st.name as studentName, co.description as courseDescription " + "FROM Enrolment e " + "INNER JOIN Student st on e.studentId=st.studentId " + "INNER JOIN Course co on e.courseCode=co.courseCode") .addScalar("studentName") .addScalar("courseDescription") &nb...
593 days前 / 0 次浏览
阅读全文
上一页
1
2
3
4
5
6
7
8
9
下一页
最后
网站地图
Comments (RSS)
随便看看
RubyKaigi2008要到茨城去
永远免费的Paas云平台总结(2011年版)
赞一下jquery
安装了lilina
亚洲杯
冯巩的拼音==pinggong
RubyConf 2007 agenda
百度的一道题
热门标签
adb
Android
android sdk google
bing
components
control
deb
debian
eclipse
ed
gconf
gconfd
gconftool
gconftool-2
google
hibernate
hprof
java
launchpad
leak
linux
main
memory
microsoft
ms
multiverse
NO_PKG_MANGLE
package
pkgstriptranslations
ppa
rc.local
restricted
roma
Ruby
section
shell
sns
tech
ubuntu
universe
vi
vim
wave
zenity
自动启动
other
android
大东
西安交通大学校友网
nonocast
PMP俱乐部
意大利咖啡
Ruby
西安交通大学校友网
意大利咖啡
最新日志
永远免费的Paas云平台总结(2011年
doctrine和mysql的timestamp问题
howto do git replace
android的收彩信通知的过程解析
XXX烧鸡步骤
如何让自己的应用在应用程序列表里
用Handler也能同步操作
从android的framebuffer里取图
线程问题引起的内存泄露
activity的启动方式(launch mode)
热门文章
C# 3.0中类似Ruby的语法
About
JRuby,BSF,JSR223
测试代码
EvaluatingRuby-by martinfowler
ANN: ruby2c 1.0.0 beta 5 rele
如何调用类的私有方法?
Matz接收到了第一笔捐款
Seeing Metaclasses Clearly
Sun将裁员
本站推荐
undefined method `^' for "6":St
ROMA开源
明天开始
曼联夺冠
LuRuJu 将jude的模型当成Rails
用Ruby抓取网页通过ActiveRecor
RubyKaigi2008要到茨城去
RubyConf 2007 agenda
Ruby也要搞认证考试了
与病毒斗,真累
最活跃的读者
分类目录
Android
垃圾
小胖
生活
Rails
Ruby
技术
广而告知
最新评论
最新评论