Linux 命令备忘

2009年4月21日
命令 用途 示例 备注
lftp 多线程下载 lftp -c "pget -n 10 http://www.python.org/ftp/python/2.6.2/Python-2.6.2.tgz"  
yum groupinstall {LANGUAGE-support} 安装语言支持 yum groupinstall chinese-support  
       
       
       
       
       
       
       

admin linux , , ,

红帽子(Redhat)/JBoss宣布支持Apache CXF

2009年3月26日
by JBoss Team

We’re happy to announce that as of today, Red Hat has become a key contributor to the Apache CXF, which is an open-source, fully featured, easy to use Web Services framework. It is the combination of two projects: Celtix developed by IONA and XFire developed at Codehaus working together at the Apache Software Foundation.

Apache CXF is a popular open source, standards based framework for developing (SOAs) Service Oriented Architectures. Our aim is to contribute to the framework’s continued development and to increase the interoperability and enterprise readiness of CXF.

Additionally, we’ll be providing full production and developer support for Apache CXF as a core component of our JBoss Enterprise Platforms. Enterprise architects, Java developers and IT operations personnel will now see the Apache CXF framework as fully supported component of our JBoss Enterprise Subscriptions.

Commonly accepted Web Service standards are vital to the continued adoption of SOA. The standard proprietary, closed source model is at odds with the open, consensus driven nature of SOAs and the standards that support them. By joining the Apache CXF project, our goal is help establish the framework as the de-facto open source Web Services Stack for Java, working together with other existing contributors like the FUSE team at Progress Software.

For more information on Red Hat’s work with the Apache CXF project please visit the JBoss Web Services project.

Jboss 团队宣布Redhat 将成为Apache CXF的关键贡献者。

admin Java世界, Translations , , ,

因为Google自定义域名都被墙掉,我放弃了blogger

2009年3月10日

 

下面列表里面的ghs ip地址在国内都不能访问到:

 

64.233.179.121 hs-in-f121.google.com .

66.249.81.121 bx-in-f121.google.com .

66.249.91.121 ik-in-f121.google.com .

72.14.235.121 tw-in-f121.google.com .

72.14.207.121 eh-in-f121.google.com .

74.125.43.121

74.125.47.121 yw-in-f121.google.com .

74.125.93.121 qw-in-f121.google.com .

74.125.113.121

209.85.171.121 cg-in-f121.google.com .

216.239.34.21

216.239.36.21

216.239.38.21

admin GFW blogger , ,

转载一则笑话(java程序员招聘现场)

2009年3月10日

面试官:熟悉哪种语言
应聘者:Java。
面试官:知道什么叫类么
应聘者:我这人实在,工作努力,不知道什么叫累
面试官:知道什么是包?
应聘者:我这人实在  平常不带包 也不用公司准备了
面试官:知道什么是接口吗?
应聘者:我这个人工作认真。从来不找借口偷懒
M:知道什么是继承么
Y:我是孤儿没什么可以继承的
M:知道什么叫对象么?
M:知道,不过我工作努力,上进心强,暂时还没有打算找对象。
M:知道多态么?
Y:知道,我很保守的。我认为让心爱的女人为了自已一时的快乐去堕胎是不道德的行为!
请问这和Java有什么关系??
面试官:用过 apache 的东西吗
应聘者:我修过车子
M:tomcat了解么
Y:小时看过。。现在也喜欢看
面试官:了解webwork吗
应聘者:不了解。我一直专注于本职工作,对外部的没有时间涉猎。
M:了解jakarta的哪些项目?
Y:不了解,我只去那儿旅游过。
M:用过bea的weblogic吗?
Y:没,只喝过蜂蜜。
M:了解SUN的创始人吗?
Y:不知道,不过我爆喜欢队中的纳什
M:用过spring么?
Y:没用过,发过。
M:知道Hibernate吗
Y:知道,动物冬天经常Hibernate,但我从来不冬眠
M:知道css吗?
Y:cs出加强版了?
M:OCR用作过没?
Y:我从不玩魔兽
M:W3C标准常用什么地方
Y:Lost Tample
M:知道REST么?
Y:我很勤奋,只知道干活,不知道休息。

admin Life, Miscellaneous ,

maven package skip test

2009年3月10日

mvn package –Dmaven.test.skip=true

admin Project Management ,

Window XP平台架设 SVN 服务器

2009年1月1日

Window XP平台架设 SVN 服务器

准备

下载相关文件

Subversion1.5.4+Apache2.2整合安装文件

http://downloads-guests.open.collab.net/files/documents/61/1182/CollabNetSubversion-server-1.5.4-1.win32.exe

1 安装Svn 服务器 和apache2.2

按照向导一步步的安装,选择SVN Repository 路径为: E:svn_repository

2创建svn资源库以及用户

转到{SVN Server安装目录} 运行 svnadmin create E:svn_repositoryproject1
通过这个命令我们可以创建一个路径为project1的项目资源库,下面再为项目资源库创建用户或者组
转到{SVN Server安装目录}httpdbin 运行htpasswd -cm E:svn_repositorysvn-auth-file chouxinxin
根据提示输入密码以及确认密码

创建E:svn_repositorysvn-access-file
内容如下:
[project1:/]
chouxinxin =rw

保存退出

以上步骤将会在E:svn_repository目录下生成两个文件:
用户文件
svn-auth-file和svn访问权限控制文件svn-access-file

3 配置Apache 的svn支持

编辑{SVN Server安装目录}httpdconf文件夹下的 httpd.conf

查找LoadModule关键字
添加加载模块

LoadModule dav_module modules/mod_dav.so
LoadModule dav_svn_module modules/mod_dav_svn.so
LoadModule authz_svn_module modules/mod_authz_svn.so

在文件末尾添加或者修改


DAV svn
SVNParentPath e:svn_repository
AuthType Basic
AuthName “Cactus Thinking Subversion repository”
AuthUserFile e:svn_repositorysvn-auth-file
Require valid-user
AuthzSVNAccessFile e:svn_repositorysvn-access-file

4.配置并启动服务

命令行转到{SVN Server安装目录}httpdbin目录下执行httpd -k install -nSVNServer

net start SVNServer

bingo! Success!

5访问项目资源库
(略)

参考文献:

http://subversion.tigris.org/

http://subversion.tigris.org/faq.zh.html

预告:Windows平台利用cygwin架设SSH服务器

admin 开发笔记

初学者调试CSS之前的Checklist(Common CSS Mistakes for a Beginner - CSS Bugs and Debugging Checklist)

2008年12月10日

from Common CSS Mistakes for a Beginner - CSS Bugs and Debugging Checklist translated by lyonmire & revised by 丑鑫鑫

我指导过很多朋友的网页设计/前端开发,我注意到几乎所有人会犯一个很普遍的错误,今天我想与大家一起分享。尽管以下的例子或许看起来很平淡无奇,但是对于大多数初学者来说都会经常犯这种错误。所以,若你是一个初学者,请读下去 !

场景:
初学css设计师说:我需要帮助!我加了一个类在我的样式表里,但是并没有起到我想像中的作用。肯定是我的css代码问题,你能解决吗?

到底是什么地方错了呢?

很显然可能是你css的问题,但当我们要纠结在这个结论中时,确保你是根据一个逻辑的思维过程而得出的结论。缩小问题的可能性,这就是你应该如何调试。

checklist

1.你的样式表没有上传或保存?

你在浏览器中看过已改动的css代码了吗?你忽略了这一步,如果你没有看这个改动。

2.你在html代码里面引用了你的css了吗?

html需要引用样式表来表现其属性

3.确保你使用了正确的语法

css是区分大小写的。

类名的开头不能是数字或特殊字符(如:连字符号“-”)开头,它必须以字母(a-z)开头
确保类以.开头(如:.classname),ID以#字开头(如:#idname)。确保你没有丢失或者混淆他们。

确保你的类或ID组是放在圆括弧里,你的类或ID的属性以分号结束。

确保你的类或ID名拼写正确。听起来似乎很荒唐,但我们都会犯错!加倍的检查类/ID或属性值的拼写.

4.你是否确保你所编辑的是正确的网址/样式/文件?

很多人确实会犯这种错误,所以通篇检查你的css代码是很重要的。你首先应该做的事情通常来说要加倍的检查你的代码。

5.你是否声明了正确了文档类型?
如果你没有申明你的文档类型(特别是ie浏览器),很有可能会出现意想不到的异常

6.你的css是有效的吗?

运行起来验证你的css问题。在你开发的过程中这通常是一个好的方法使你的css有效。这会使你有检查代码的良好习惯,并且你还会发现在你即将要发现的错误。

如果你证实到以上所述是正确的,那么是时候从行为观点的角度去置疑你的css.试试我之前在如何调试css上的建议,配备上合适的调试工具去进一步的研究。

结论
我认为很多这种错误都是源于对基础网页和html知识的缺乏。如果你发现基础不够扎实,你要通过全面的理解html和网页通常是如何起作用的来建立扎实的基础。一旦你有扎实的基础,加上足够的锻炼,你会逐步发现你自己会在分秒内解决问题。坚持,不要放弃,你会成功的。

admin Javascript, HTML & CSS, Translations

【架构反模式】-如果你的架构满足以下条件,那么它一开始就是一个欠佳的架构(Your architecture starts to be suboptimal if…)

2008年12月4日

translate from Adam Bien by 丑鑫鑫

1. 很多专家参与,但是没有一个人是真正投入其中的。There are lot of experts involved, but no one is really excited.

2. 一天天的谈论没有被论证或代码讨论的概念和架构。You are talking for more than a day about concepts and architectures without a single Proof Of Concept or even discussion of code.

3. 一味地推销特性,而对将会造成的后果(风险)避而不谈。You are just selling the features without explaining the consequences.

4. You start with a multi-layer architecture without highlighting the “added value” of each layer and its individual responsibilities.

5. 寻觅众所周知的,甚至满足未来需求的银弹架构,You are searching for the “silver bullet” architecture, with which all known and, even, future requirements can be fulfilled.

6. 试图超前地或用UML鉴别出热点(hotspots)和瑕疵。You are trying to identify hotspots and shortcomings in advance with …UML.

7. There is no clear vision defined; there is no clear relationship between the vision and the resulting architecture.

8. 没有第二种可选策略,只有一个总体规划。The is no secondary strategy… you have only one “master plan”.

9. 不写代码用图形思考,坚信图形比代码更有价值。You are thinking in pictures, not in code. You believe that pictures are more valuable than code.

10. 架构师(们)相信他们比整个开发团队都更NB更有经验。The architect/s believe they can be smarter / have more experience than the whole development team.
(完)

架构师的checklist Commented by 丑鑫鑫

admin Architecture, Translations ,

预防颈椎病

2008年11月25日

没事看看下面的文字就行了。。

admin Life

南方公园(south park) 卡通生成器(cartoon generator)

2008年11月17日

不错的卡通生成器

可以做出各种搞怪的卡通人物


地址是http://sp-studio.de/

admin Life