somesogoood

Monday, March 23, 2009

中间件技术的思想、概念和分类

中间件技术的思想、概念和分类

一、为什么要中间件 

计算机技术迅速发展。从硬件技术看,CPU速度越来越高,处理能力越来越强;从软件技术看,应用程序的规模不断扩大,特别是Internet及WWW的出现,使计算机的应用范围更为广阔,许多应用程序需在网络环境的异构平台上运行。这一切都对新一代的软件开发提出了新的需求。在这种分布异构环境中,通常存在多种硬件系统平台(如PC,工作站,小型机等),在这些硬件平台上又存在各种各样的系统软件(如不同的操作系统、数据库、语言编译器等),以及多种风格各异的用户界面,这些硬件系统平台还可能采用不同的网络协议和网络体系结构连接。如何把这些系统集成起来并开发新的应用是一个非常现实而困难的问题。 

二 什么是中间件 

为解决分布异构问题,人们提出了中间件(middleware)的概念。中间件是位于平台(硬件和操作系统)和应用之间的通用服务,如图1所示,这些服务具有标准的程序接口和协议。针对不同的操作系统和硬件平台,它们可以有符合接口和协议规范的多种实现。 

图1 中间件



也许很难给中间件一个严格的定义,但中间件应具有如下的一些特点: 

满足大量应用的需要 
运行于多种硬件和OS平台 
支持分布计算,提供跨网络、硬件和OS平台的透明性的应用或服务的交互 
支持标准的协议 
支持标准的接口 

由于标准接口对于可移植性和标准协议对于互操作性的重要性,中间件已成为许多标准化工作的主要部分。对于应用软件开发,中间件远比操作系统和网络服务更为重要,中间件提供的程序接口定义了一个相对稳定的高层应用环境,不管底层的计算机硬件和系统软件怎样更新换代,只要将中间件升级更新,并保持中间件对外的接口定义不变,应用软件几乎不需任何修改,从而保护了企业在应用软件开发和维护中的重大投资。 

三、主要中间件的分类 

中间件所包括的范围十分广泛,针对不同的应用需求涌现出多种各具特色的中间件产品。但至今中间件还没有一个比较精确的定义,因此,在不同的角度或不同的层次上,对中间件的分类也会有所不同。由于中间件需要屏蔽分布环境中异构的操作系统和网络协议,它必须能够提供分布环境下的通讯服务,我们将这种通讯服务称之为平台。基于目的和实现机制的不同,我们将平台分为以下主要几类: 

远程过程调用(Remote Procedure Call) 
面向消息的中间件(Message-Oriented Middleware) 
对象请求代理(Object Request Brokers) 

它们可向上提供不同形式的通讯服务,包括同步、排队、订阅发布、广播等等,在这些基本的通讯平台之上,可构筑各种框架,为应用程序提供不同领域内的服务,如事务处理监控器、分布数据访问、对象事务管理器OTM等。平台为上层应用屏蔽了异构平台的差异,而其上的框架又定义了相应领域内的应用的系统结构、标准的服务组件等,用户只需告诉框架所关心的事件,然后提供处理这些事件的代码。当事件发生时,框架则会调用用户的代码。用户代码不用调用框架,用户程序也不必关心框架结构、执行流程、对系统级API的调用等,所有这些由框架负责完成。因此,基于中间件开发的应用具有良好的可扩充性、易管理性、高可用性和可移植性。 

下面,针对几类主要的中间件分别加以简要的介绍。

1、远程过程调用 

远程过程调用是一种广泛使用的分布式应用程序处理方法。一个应用程序使用RPC来“远程”执行一个位于不同地址空间里的过程,并且从效果上看和执行本地调用相同。事实上,一个RPC应用分为两个部分:server和client。server提供一个或多个远程过程;client向server发出远程调用。server和client可以位于同一台计算机,也可以位于不同的计算机,甚至运行在不同的操作系统之上。它们通过网络进行通讯。相应的stub和运行支持提供数据转换和通讯服务,从而屏蔽不同的操作系统和网络协议。在这里RPC通讯是同步的。采用线程可以进行异步调用。 

在RPC模型中,client和server只要具备了相应的RPC接口,并且具有RPC运行支持,就可以完成相应的互操作,而不必限制于特定的server。因此,RPC为client/server分布式计算提供了有力的支持。同时,远程过程调用RPC所提供的是基于过程的服务访问,client与server进行直接连接,没有中间机构来处理请求,因此也具有一定的局限性。比如,RPC通常需要一些网络细节以定位server;在client发出请求的同时,要求server必须是活动的等等。 

2、面向消息的中间件 

MOM指的是利用高效可靠的消息传递机制进行平台无关的数据交流,并基于数据通信来进行分布式系统的集成。通过提供消息传递和消息排队模型,它可在分布环境下扩展进程间的通信,并支持多通讯协议、语言、应用程序、硬件和软件平台。目前流行的MOM中间件产品有IBM的MQSeries、BEA的MessageQ等。消息传递和排队技术有以下三个主要特点: 

通讯程序可在不同的时间运行:程序不在网络上直接相互通话,而是间接地将消息放入消息队列,因为程序间没有直接的联系。所以它们不必同时运行。消息放入适当的队列时,目标程序甚至根本不需要正在运行;即使目标程序在运行,也不意味着要立即处理该消息。 

对应用程序的结构没有约束:在复杂的应用场合中,通讯程序之间不仅可以是一对一的关系,还可以进行一对多和多对一方式,甚至是上述多种方式的组合。多种通讯方式的构造并没有增加应用程序的复杂性。 

程序与网络复杂性相隔离: 程序将消息放入消息队列或从消息队列中取出消息来进行通讯,与此关联的全部活动,比如维护消息队列、维护程序和队列之间的关系、处理网络的重新启动和在网络中移动消息等是MOM的任务,程序不直接与其它程序通话,并且它们不涉及网络通讯的复杂性。 

3、对象请求代理 

随着对象技术与分布式计算技术的发展,两者相互结合形成了分布对象计算,并发展为当今软件技术的主流方向。1990年底,对象管理集团OMG首次推出对象管理结构OMA(Object Management Architecture),对象请求代理(Object Request Broker)是这个模型的核心组件。它的作用在于提供一个通信框架,透明地在异构的分布计算环境中传递对象请求。CORBA规范包括了ORB的所有标准接口。1991年推出的CORBA 1.1 定义了接口描述语言OMG IDL和支持Client/Server对象在具体的ORB上进行互操作的API。CORBA 2.0 规范描述的是不同厂商提供的ORB之间的互操作。 

对象请求代理(ORB)是对象总线,它在CORBA规范中处于核心地位,定义异构环境下对象透明地发送请求和接收响应的基本机制,是建立对象之间client/server关系的中间件。ORB使得对象可以透明地向其他对象发出请求或接受其他对象的响应,这些对象可以位于本地也可以位于远程机器。ORB拦截请求调用,并负责找到可以实现请求的对象、传送参数、调用相应的方法、返回结果等。client对象并不知道同server对象通讯、激活或存储server对象的机制,也不必知道server对象位于何处、它是用何种语言实现的、使用什么操作系统或其他不属于对象接口的系统成分。 

值得指出的是client和server角色只是用来协调对象之间的相互作用,根据相应的场合,ORB上的对象可以是client,也可以是server,甚至兼有两者。当对象发出一个请求时,它是处于client角色;当它在接收请求时,它就处于server角色。大部分的对象都是既扮演client角色又扮演server角色。另外由于ORB负责对象请求的传送和server的管理,client和server之间并不直接连接,因此,与RPC所支持的单纯的Client/Server结构相比,ORB可以支持更加复杂的结构。 

4、事务处理监控 

事务处理监控(Transaction processing monitors)最早出现在大型机上,为其提供支持大规模事务处理的可靠运行环境。随着分布计算技术的发展,分布应用系统对大规模的事务处理提出了需求,比如商业活动中大量的关键事务处理。事务处理监控界于client和server之间,进行事务管理与协调、负载平衡、失败恢复等,以提高系统的整体性能。它可以被看作是事务处理应用程序的“操作系统”。总体上来说,事务处理监控有以下功能: 

进程管理,包括启动server进程、为其分配任务、监控其执行并对负载进行平衡。 
事务管理,即保证在其监控下的事务处理的原子性、一致性、独立性和持久性。 
通讯管理,为client和server之间提供了多种通讯机制,包括请求响应、会话、排队、订阅发布和广播等。 
事务处理监控能够为大量的client提供服务,比如飞机定票系统。如果server为每一个client都分配其所需要的资源的话,那server将不堪重负(如图2所示)。但实际上,在同一时刻并不是所有的client都需要请求服务,而一旦某个client请求了服务,它希望得到快速的响应。事务处理监控在操作系统之上提供一组服务,对client请求进行管理并为其分配相应的服务进程,使server在有限的系统资源下能够高效地为大规模的客户提供服务。 

图2 事务处理监控



四、面临的一些问题 

中间件能够屏蔽操作系统和网络协议的差异,为应用程序提供多种通讯机制;并提供相应的平台以满足不同领域的需要。因此,中间件为应用程序了一个相对稳定的高层应用环境。然而,中间件服务也并非“万能药”。中间件所应遵循的一些原则离实际还有很大距离。多数流行的中间件服务使用专有的API和专有的协议,使得应用建立于单一厂家的产品,来自不同厂家的实现很难互操作。有些中间件服务只提供一些平台的实现,从而限制了应用在异构系统之间的移植。应用开发者在这些中间件服务之上建立自己的应用还要承担相当大的风险,随着技术的发展他们往往还需重写他们的系统。尽管中间件服务提高了分布计算的抽象化程度,但应用开发者还需面临许多艰难的设计选择,例如,开发者还需决定分布应用在client方和server方的功能分配。通常将表示服务放在client以方便使用显示设备,将数据服务放在server以靠近数据库,但也并非总是如此,何况其它应用功能如何分配也是不容易确定的。 

Sunday, March 15, 2009

关于“开辆奥迪A6在大学门口试探大学女生,半小时5人搭讪”的调查

开辆奥迪A6在大学门口试探大学女生,半小时5人搭讪

前段时间看到一个论坛上说,你只要开辆好车去大学门口停个半个小时,肯定会有漂亮女生过来搭讪。

  后来和朋友说起这件事,朋友死都不信,我自己也半信半疑的,现在的大学女生真的变这么

  现实了?于是今天下午和公司老总借了辆奥迪A6到广西X大学门口停着聊天,刚过了半个小时。。

  就有一个长得蛮不错的女大学生,看起来最多也不过20岁左右过来搭讪。我烟都还叼在嘴里,那女孩子走过来说:“嗨,帅哥,能搭你便车吗?我们几个朋友说要去XXX玩,我搭不到公车~~~~”

  朋友冷笑了一下,眼神示意了我一下,我就很有礼貌的把她请到车后座上,一路上那女孩子不断的问我们两个的电话号码。。。。。。。。。车差不多开到动物园门口的时候,我车头一摆,停了下来,很有礼貌和她说:“不好意思小姐,我们有急事~~~~~”说完把她放下车,绝尘而去,然后继续回大学门口逗那些傻大学女生,一个下午。。。。五名女生上车,全部被我扔在动物园门口。。。。。。。。

以下是部分回复:

楼主说的情况是很可能出现的。但是,没必要这样来证明什么,毕竟得出的结论对你也没有什么帮助。

开名牌车到学校门口聊天,本身对异性就是一种暗示,或者说吸引。就好像公鸟筑巢、孔雀开屏以吸引异性一样,会对部分大胆开放的女生产生误导。

社会在改变,我们个人坚持自己的原则就行了。己所不欲,勿施于人;己所欲也,亦勿施于人。



SIGH,哥们儿你梦游的吧,我开745经常去川大和川师打球等人甚么的,从来没你这么好运气喃?




不是吧,上次本人在广州的一的大学门口等人,等了一个小时,就是没女学生,倒是有保安两次过来劝我开走。(本人的车是一辆卡宴)



金融危机真的这么严重吗?奥迪A6都敢开出来炫了!那要是开辆兰博基尼,那不全校的女生都出来了!


别说你一破奥迪了,你就是辆劳斯莱斯停我们学院门口也没人夹你一眼!井底之蛙!

多大排量的a6?你们那边人真牛 看见a6感觉很牛吗 老子开a6 怎么感觉有点丢人啊,开这么多年好车怎么没有美女搭讪啊

Thursday, March 12, 2009

找到一个中国人自己的python教程,非常好用,半天就学会了python

找到一个中国人自己的python教程,非常好用,半天就学会了python


由于最近想用GAE(GOOGLE APP ENGINGE)来写一些应用,给广大人民使用。

只有c 与汇编以及c++,和basic的学习经验。
最近常用的是c#,
迫切想要找到一个快速的学习python的资料,昨晚看到半夜,看O' Reilly出版社的Learning Python和Programming Python,
今天早,还是直接看国人的,没想到,国人也能写出好教材。

不过,这站是非赢利性的,也许这就是差别,不是国人不牛X,而是很多事情,冲着赢利去作,反而作不好。

我主要是被国内很多出版社和所谓的作者出的书,给看怕了,太垃圾了。

看来,要看国人的书,只有找非赢利性的了。
以上是个人意见。
顺便提到我的主力博客:http://blog.csdn.net/metababy

Tuesday, March 10, 2009

无效IIS应用程序'/LM/W3SVC/1/ROOT/'的解决

我的VS2008最近在我开发DNN 模块时,在ascx文件第一行出现'/LM/W3SVC/1/ROOT/' IIS APPLICATION 类似的提示。
在这里找到解决办法:

http://forums.asp.net/t/1114968.aspx

Monday, March 9, 2009

看金融海啸是如何害死蚯蚓一家的(多图杀猫)

看金融海啸是如何害死蚯蚓一家的(多图杀猫)

某天,放无薪假的蚯蚓爸爸闲的发慌  于是….

 


                                         为的是….
 
 
 
 
 
 
 

蚯蚓爸爸放无薪假的这段日子,
蚯蚓妈妈十分担忧家里的经济状况,心里闷到发慌!
忽然间 ,她想到一个可赚钱又可解闷的好主意……
 
 
 
 

                                 为的是…. 
 
 
 
 

注:棒请﹝台语的意思是“点炮”)
再生能力似乎有效的舒解了蚯蚓家族的心里压力,
也证明了蚯蚓家族,有着不亚于蟑螂家族的生命力!
 
但,某天,蚯蚓家的大儿子却死了!
这…. 到底是为什么?
 

这事件震惊了整个蚯蚓世界,蚯蚓家族悲痛欲绝,
但这也让他们更加谨慎的使用这能力,
在事件发生后不久,
蚯蚓家的小儿子因为无法忍受失去哥哥的悲痛孤独,
于是他往自己身上切了一刀,
想使用再生能力让这个家恢复以往的圆满。
谁料——他竟也死了!
这“究竟”是为什么?

 
 
 

故事发展到这,如果您认为事件就此结束,一切都只是老梗,那您就错了,
人生无常,白云苍狗,命运捉弄人,
就在事件后不久,
蚯蚓一家竟都死了!
这“究竟”是无薪假的纠结?还是丧子心痛的纠葛?亦或是离去灵魂的纠缠呢?
 
 
 

让我们看下去,
一切的一切,都只为了个“贪”字啊!
最后,其实故事里的蚯蚓夫妻死的有点冤旺,
因为看看蚯蚓叔叔说的话:

 
 
 
 
 
 
 
 



 
 
 
转自:

Tuesday, March 3, 2009

ReportViewer 控件 (Visual Studio)

ReportViewer 控件 (Visual Studio)
Microsoft Visual Studio 2005 包括报表设计功能和 ReportViewer 控件,使您可以将功能完整的报表添加到自定义应用程序。报表可以包含表格格式数据、聚合数据和多维数据。提供 ReportViewer 控件的目的是可以处理和显示应用程序中的报表。控件有两种版本。ReportViewer Web 服务器控件用于在 ASP.NET 项目中驻留报表。ReportViewer Windows 窗体控件用于在 Windows 应用程序项目中驻留报表。




转自:http://msdn.microsoft.com/zh-cn/library/ms251771(VS.80).aspx

Monday, March 2, 2009

I find the article about DNN use reportviewer

http://www.adefwebserver.com/DotNetNukeHELP/Misc/DNNReports/

use microsoft report viewer

Now, I am try to use http://msdn.microsoft.com/en-us/library/ms252073(VS.80).aspx
microsoft report viewer. in vs 2008

I give up the VML 3D report pie chart and bar chart solution

I give up the VML 3D report pie chart and bar chart solution in DNN.
I will implement use Crystal report.
but without the animation effects.

全自定义功能sql搜索查询datagridview

全自定义功能sql搜索查询datagridview 牛多查询条件
http://www.codeproject.com/KB/custom-controls/GridViewSearch.aspx

Friday, February 27, 2009

转一个求职经验文,网上求职招聘精品文章 find net job tips

来自:http://blog.csdn.net/andylin02/archive/2009/02/25/3935547.aspx
作者:andylinID:andylin02
最近,看到国家下文告诉社会07年有XXX万,08年还有XXX万,09年还有600多万大学生等待找工作。
   希望大学生们"先就业再择业"。为什么我毕业时候国家没下这个文呢。。。
   闲话不说,做主管岗位6年了,看过几千封简历。
   这2周,公司大规模招聘,我基本就干一件事情,看简历。一天300~500封封。早中晚各看一次。
  
  找工作很难吗?不难,让HR通知你面试就是成功第一步。
  唉,现在的高校毕业办的人都在干嘛。
  除了收钱毛都不教,教的也不管毛用。
  
  如果你的朋友最近在找工作,在通过网上投简历找工作,希望下面的东西有一两条能帮到忙。
  情节1:不要用51JOB和CHINAHR的简历模板。
  答:的确51JOB橘色的模板,CHINAHR蓝色的模板很工整。但是让你一口气看100个一样模板的简历,你会怎样。
  建议:自己直接在写邮件的正文区里写点啥吧。2句话也行。
  
  情节2:不要用招聘网站的粘贴简历功能。
  答:好一点的招聘网站还凑活,很多招聘网站都会在邮件正文告诉阅览者,XXX对您提供的职位感兴趣,使用XXX网站的粘贴简历功能给您发送简历,后面是一串网址,让你点击查看详细简历。我是不会点的。
  建议:看娱乐新闻可以懒,投简历别懒。
  
  情节3:工作年限很重要。
  答:并不是说应届不好。很多公司(当然也包括我们这个小公司)在不同的时段会选择不同的人,如果恰好这个时期我们优先录用有工作经验的。可能我连滚动条都没往下拖,就点“下一封”了。
  建议:在工作年限那里填写你的项目经验年限或者社会实践年限。不是教大家骗人,到简历下面还是要如实说的。这么做只是让你的简历会被往下拖被看完。
  
  情节4:个人评价很重要。
  答:现在很多模板第2块就是填写你的基本评价。这个很重要很重要!如果你希望你的简历往下拖动。
   a、不要喊口号。我的理想是。。。与我长袖。。(直接下一封。对不起,不是不尊重您。用人部门催的紧,一个HR1个小时看100封简历,一个简历不到1分钟。看简历中间还要被打岔。)
   b、不要抄!!!特别是美术岗位的。我看过很多美术求职者投2句都写的是:从事过专业的美术训练,绘画功底扎实。1段话,连标点符号都不差。。别听老师的,别偷看同学的。(记住:简历最重要第一点是:告诉我你和别人不一样。)
   c、不要说自己不好。某简历:虽然我尚未找到明确的职业方向,但我相信我会很努力去尝试。(等你找到职业方向再投吧)不好的地方不要刻意去暴露,比如“没有工作经验”这些话。我也知道你没经验,但不要说出来提醒我去注意,特别是一开始就说出来。
   d、切忌写标准话。比如自学能力强,责任感很强这些。(太多了,兄弟。别人都这么写,都写在这一栏。你换个方式说。而且,在你还从没未想过给你父母买保险的年纪,我真的不觉得你能承载太多的责任。)
  
  如果你不是用网站自带模板,打算自己写一个格式的简历,请往下看!
  1、简历标题
   最好的简历标题,首推应聘销售岗位的人——“X年岗位经验诚心求职XXX部门XXX岗位 姓名 139XXXXXX”
   次一点的简历标题——“应聘XXX岗位”
   最次的简历标题——“求职”
   兄弟,你知道吗。看简历的人和通知面试的人往往不是一个人哦。HR看完如果觉得你合适,要把你的简历放在一个单独收件箱,然后告诉助理通知这个收件箱里所有人安排面试。助理需要再把你的简历打开,研究下你是应聘什么岗位的,找你的联系方式。如果助理MM今天心情非常不好,打了一下午电话了。可能就会告诉HR,你的电话联系不上哦。
  
  2、简历问候语
   很重要!不要一上来就是“个人简历”4个大字,下面一堆文字和表格。麻烦先写2句问候语。尊敬的人事部经理:我很欣赏贵公司的XXXXXXX,。。。。。,下面是我的简历,请查收!(这样会让你和别人不同。如果你是个回家进门就和家人打招呼的好孩子,一定不会忘记这条的)
  
  3、简历问候语下面的话
   建议:这个时候还是不要写标题。而是写3,4句一小段话,直中红心。比如“我一直从事JAVA方面的项目,专注JAVA项目的开发,拥有1年中型项目经验,很强的代码规范能力。”(我当然知道也许你还会.NET或者别的,但你面试的是JAVA程序员,先谈谈JAVA吧。
  
  4、简历正文
   终于,HR开始看你的全面介绍了。
   a、求职动机
   千万不要只写:我希望来学习这样的话。虽然任何公司都希望员工有学习精神,但不要让别人认为你的核心目的是来镀金的。公司本质讲不是学校。就算公司建立1000平方米研发中心,也不是办学校。
   b、专业技能
   这里切忌:不是一股脑把你的口袋都翻出来,告诉我你会这个会那个。
   请拣对这个职位有+分的说。
   我收到不少应聘行政的简历的应届毕业生,简历里不断给我讲她的课程有C语言,还把成绩单PO在后面。
   小MM,行政是不用C语言的。给我讲点别的什么好吗。
   b、不+分的特长不要写。
   不要告诉我,你得过多少奖学金,当过什么课代表,学校什么杯比赛拿了个奖。
   不是说你写的不真实。而是,就算是真实又怎样?能为你应聘这个职位+分吗?不能就不要写,画蛇添足,感觉心虚。
   那什么样的学校经历可以写呢?
   如果你应聘的是活动策划。可以写你在学校广播电台长期担任XX职位,学校舞蹈队XX职位。(前提是你真的干过。不用调查也能看出来的哦)
   如果你应聘的是程序员。可以写你对数学与程序的看法。不用多,2句也行。最牛B就是写一句话:大学四年自己写过10万行代码。冲着这句话,我一定约你来谈谈。
   如果你应聘的是美术。可以谈谈老师规定的以外,你还画什么风格的,有商业型(不是艺术家型)的平面作品更好哦。
   c、离职原因
   这个。。。如果你面试的不是主管以上岗位,别写。
   我见过一个简历,4次离职。A工作离职原因:公司管理混乱 B工作离职原因:没有发展空间 C工作离职原因:离家太远。 D工作离职原因:工作氛围不好。
   这种简历一般我不会看中。也许下一次离职原因你会觉得公司楼下饭不好吃。
   因为:如果你应聘是普通岗位,公司希望你是适应环境的人。如果你应聘的是管理岗位,公司希望你是创造环境的人。
   如果非要写,建议:回家照看生病的父母(也许你是因为失恋想换个环境);公司项目解散;与公司的合同到期;
  
   d、不要随便贴相片。如果你很好看,不要贴。一般,最好别贴。不自信,更别贴。
   你要相信HR虽然不是算命的,但是面相这个东西,在各位HR的心里存在。你还要相信一点,HR都有职业病。大公司的HR更严重。HR是干嘛,每天看人。一回某人入职后表现让他失望了,HR被老板骂,二回、三回....你是HR你会有什么心理,轻微的心理发泄欲望。
   当然,如果你面试的是总经理助理(助理分很多种),特别是帮总经理订票啊这些日常工作。如果你有足够自信,贴吧。因为聪明的HR在招这样岗位会明白BOSS都喜欢看美女。赌一把,贴了。
   还有,贴的相片不要用身份证照。也不要用非主流侧脸嘟嘴可爱照。生活旅游照最好。男生要注意,胡子刮干净。去灯光亮点的照相馆。女生:看着自然。男生:看着规矩。就行。
   e、结束语
   简历的结束语很重要。说实话,不要说应届生,很多工作1、2年的人,连发工作邮件的签名怎么写都不知道(自己论坛的签名倒是很花哨)。
   建议可以写。静候佳音、祝您心情愉快。落款 XXX,联系方式,日期(要写日期哦,HR看人看细节的)。
  
  5、简历附件
   只有一类职业的简历附件我会下载看。就是技术工种的职业。因为HR一般能默许技术工种的人比较实在。。。
   如果你是行政、产品、销售、管理类的岗位,千万不要用下载附件。因为除了技术工种,其他职位都要和人打交道很多。会不会做人就看你有没有服务意识。我要看这么多简历,你让我下载,你不知道公司网很卡吗。
   如果你非要用附件。那么切记邮件正文要写点什么。不要白纸一张。
  -----------------------------------------------------------好了,其实写这么多。并不是说HR有多叼。而是告诉你,HR一般心里都经常窝火,自己都工作郁闷还要微笑对人。
  让HR从一大堆简历里,微笑的把你的简历看完,放进通知面试的文件夹就是第一步胜利。
   ----祝各位有需要的朋友能找到好工作。

VML3维柱状图和饼图,动态 动画 vs2008 vs2005 vs2003全支持 asp.net编译

VML3维柱状图和饼图,动态 动画 vs2008 vs2005 vs2003全支持 asp.net编译

年前作项目时用到报表控件,一开始用了Infragistics的NetAdvantage2005v3的那套报表控件,但是感觉实在不好用,开发的时候还很吃资源,于是还是想自己封几个常用的拿来用。以前在网上看到过VML画的报表图形,相比生成图片形式的报表反而更漂亮一点,于是决定自己做几个这样的控件用在项目中。

昨天和以前一个老同事说起这些个控件,想想干脆放上来,或许还能听听看建议,重新给他封装成一个更好用的东东。
以下是demo的地址:
来自:源码下载http://www.cnblogs.com/jmtek/archive/2006/02/23/336073.html

更多http://blog.csdn.net/metababy

VML制作 web工作流工具,web版制作图形工具

由于项目原因看了一下vml,写了一个Web工作流的设计器雏形!

  到了新公司,第一个任务就是客户需要一个Web方式的简单图形工具,真是很bt的要求。但是没办法。。以前听说过vml功能比较强大,于是决定用VML去做。感觉自己有了一些心得,于是乎,就在闲时写了一个WEB的工作流设计器。
  当然,这只是一个简单的雏形。有以下功能没有完成。
  1。没有设置可以具体参与action的人员。
  2。工作流向的条件设置。
  3。把设计结果转换为结构化数据加以存储。

  如果有人对这个感兴趣,我想我会把这些功能加以完善。或则也可以自己扩展。这些都不是太大的问题。
 
  主要使用了vml三个对象。line,group,RoundRect。
  这里是运行截图:
转自:http://www.cnblogs.com/ocoogo/archive/2007/05/14/743700.html

asp.net制作3d报表,利用Javascript 结合 VML 生成三维报表(饼图)

  前几天看了Jmtek 的 http://www.cnblogs.com/jmtek/archive/2006/02/23/336073.html 这篇文章,写得的确不错,控件也非常好。只是只能供我们使用 DotNet 的朋友们使用。最近在网上比较流行 AJAX 技术,于是萌生了在 AJAX 下实现这种效果的想法。最终决定采用一个文本文件作为数据源,Javascript 动态生成 VML 代码。实现后的效果还比较可以,生成的图表效果和 Jmtek 的控件效果差不多,并且能够在文本数据内容发生改变时无刷新的更新图表,更新数据也非常方便。

  这段代码的最大特点是:移植性非常好,只需将两个文件放在任意一个目录下即可运行,这样爱好 JAVA 的朋友也可实现这种效果了。

  使用说明:将代码分别保存为相应的文件,放在同一个目录下,浏览网页即可看到生成的三维图表。

  欢迎大家与我交流,我的QQ号是:512754784
       
  代码文件下载:/Files/Infinity/成绩三维报表.rar

  示例图片如下:
------------------------------------------------------------------------------------------------------------
成绩三维报表.htm


转自:http://www.cnblogs.com/Infinity/archive/2006/03/02/340941.html

Silverlight与Html/JavaScript互操作

转自:http://www.cnblogs.com/cofd/archive/2007/11/28/975116.html
Silverlight与Html/JavaScript互操作
前段时间写了Flex和JavaScript互操作, 本篇介绍Silverlight和Html/Javascript的互操作性.当然Silverlight可以使用多种托管语言, 我这里使用C#.

摘要:

先介绍一下System.Windows.Browser命名空间下的几个类, 接着介绍Silverlight如何操纵Html元素, 最后介绍如何从Javascript调用Silverlight的方法, 以及Silverlight调用Javascript方法.

1.System.Windows.Browser

Silverlight提供了一组对象来描述Html文档对象模型(DOM), 包括HtmlPage, HtmlDocument, HemlElement, HtmlElementCollection, 等等. 我们可以通过这些对象从Silverlight访问Html页面的内容, 如获取某个Html元素, 导航到新的URL等.(ps:Silverlight 1.1 Complete API List )

首先看HtmlPage类, 其提供了浏览器信息的静态属性BrowserInformation;提供的静态方法Navigate, 可以方便的跳转到其他的web页.提供了Document属性访问Html Dom, 有了它就可以干很多事了

HtmlDocument/HemlElement类用来访问DOM, 有了DOM就可以像Javascript一样做任何事了.

注意: 如果需要Silverlight可以访问Html页面的内容, 在创建Silverlight控件的时候必须将enableHtmlAccess设为true.

2.Silverlight操纵Html

想象Javascript是怎么访问Html元素的, Silverlight也同样可以.

修改页面属性:如修改页面标题, HtmlPage.Document.SetProperty("title", "new title");

操纵html元素:

HtmlElement elem = HtmlPage.Document.GetElementByID("btn");
elem.SetAttribute("value", "haha");
elem.GetAttribute("value");

elem.AttachEvent("onclick", delegate(object sender, HtmlEventArgs he){
// ...
});

3.Javascript调用Silverlight方法

Javascript要想调用Silverlight, Silverlight必须通过DOM提供给Javascript一个可操作的对象.

新建一个silverlight项目, 修改Page.xaml.cs如下:

Thursday, February 26, 2009

GridView sort function implementation

GridView sort function implementation
Since dataset does not support sorting, so the dataset bound to the GridView can not be used after the GridView sorting capabilities, required to manually sort Sorting event of GridView implementation, through the DataView's Sort feature to sort the GridView, the following is an example
//********************************************************************************
//处理GridView的排序事件
protected void grv_Messenge_Sorting(object sender, GridViewSortEventArgs e)
{
string sortExpression = e.SortExpression;
if (GridViewSortDirection == SortDirection.Ascending) //设置排序方向
{
GridViewSortDirection = SortDirection.Descending;
SortGridView(sortExpression, " DESC");
}
else
{
GridViewSortDirection = SortDirection.Ascending;
SortGridView(sortExpression, " ASC");
}
}

//*******************************************************************************
/*
* 函数名:SortGridView,即对GridView进行排序
* 创建时间:2007年11月7日
* 功能描述:自定义GridView的排序方法,通过DataView中的排序方法对GridView的数据进行排序
* 输入参数:用于排序的关联表达式,排序的方向(升序或降序)
* 使用示例:SortGridView( sortExpression, "DESC")
* 返回值说明:无返回值
*/
private void SortGridView(string sortExpression, string direction)
{
DataSet ds = GetData(); //查找数据源
DataTable dt = ds.Tables[0];

DataView dv = new DataView(dt);
dv.Sort = sortExpression + direction;
grv_Messenge.DataSource = dv; //将DataView绑定到GridView上
grv_Messenge.DataBind();

}

Inside the GridView to be set up to sort out the SortExpression, and the opening can be a sort

Thursday, February 19, 2009

this is I send help message to EF 3.5 SUPPORTER

Hi,
I use EF 3.5.
When I submited the forms, after the forms textbox display the old input information.

I want to implement when I submited the forms, it display the new forms wait for input new information to the forms.

How to implement this.

thank you.

Post the mail to EF 3.5 team

I receive your mail and you say
"Please be advised that Enterprise Forms does support AJAX calls in form submissions provided non-ajax fields are not used within the form. The only non-ajax type fields are Rich Text Editor and Field Upload. If your form does not use any of the fields mentioned above during form submission only the form module is updated and not the complete page.

"

I think that " The only non-ajax type fields are Rich Text Editor and Field Upload"

may be "file upload", isn't it?

and another question I want to know:

Because Report of EF 3.5 (that I was using just now) not support Chinese report filed name, it display like that "amp26469amp30005amp20869amp234". It's not we wanted.

so, we will develop report function from the data source(from EF table).

but, we only know the form template is one template make one table. don't know the workflow state map that where is the table and column. we want to know accepted or rejected state where can find the state from data table? where the column name? and If you have some better idea/advice, please tell us.

thanks very much.

Henry Hua

Enterprise Forms report field can't use Chinese

Enterprise Forms report field can't use Chinese,
When display the report field name, it's display like that "amp26469amp30005amp20869amp234", letter and number complex.

How to make the Enterprise Forms(DNN MODULE) 's Child Forms

child forms enterprise forms

How to make the Enterprise Forms(DNN MODULE) 's Child Forms

I can't find the article about child forms.

and for different role, should be different form to display .

If you fond it, or I found it , will reply this at comment.

Wednesday, February 18, 2009

the error of "client actions enterprise forms".

I find the error of "client actions enterprise forms".
if in EnterPrise forms 3.5 , If I use client actions on textfield, the preview and the form is bug.

I sovle it , it's that input "OnBlurAction = alert('Hello World')" all the sentence, that's ok now.

GridView custom control that contains how to Export to Excel

GridView custom control that contains how to Export to Excel
We often use GridView Export to Excel functionality, I also have some articles prior to the introduction to do.

Today I was asked, if the template Girdview out using a custom control, then how to deal with when exported?

For example, the custom control contains a DROPDOWNLIST and three Label controls, which used to display data on the page is one of the Label control, the question now is, if not PrepareControlForExport () in the custom control to handle, then Export The Excel files used in the corresponding GridView custom control out of the contents of all the same (DROPDOWNLIST controls for the first Item), but the custom control to handle the case, do not know how to remove it in order to correct the value ( used to display the label of the value), trying to not be able to custom control into Dropdowlist and Label in any of, but the mandatory conversion if the statement will run error.

We first look at the GridView Export to Excel and open source chart tools mentioned in the development of export tools, source files can be downloaded here: Export GridView to Excel

In GridViewExportUtil.cs, the function PrepareControlForExport are like this:


/ / /
/ / / Replace any of the contained controls with literals
/ / /
/ / /
private static void PrepareControlForExport (Control control)
(
for (int i = 0; i
(
Control current = control.Controls [i];
if (current is LinkButton)
(
control.Controls.Remove (current);
control.Controls.AddAt (i, new LiteralControl ((current as LinkButton). Text));
)
else if (current is ImageButton)
(
control.Controls.Remove (current);
control.Controls.AddAt (i, new LiteralControl ((current as ImageButton). AlternateText));
)
else if (current is HyperLink)
(
control.Controls.Remove (current);
control.Controls.AddAt (i, new LiteralControl ((current as HyperLink). Text));
)
else if (current is DropDownList)
(
control.Controls.Remove (current);
control.Controls.AddAt (i, new LiteralControl ((current as DropDownList). SelectedItem.Text));
)
else if (current is CheckBox)
(
control.Controls.Remove (current);
control.Controls.AddAt (i, new LiteralControl ((current as CheckBox). Checked? "True": "False"));
)

if (current.HasControls ())
(
GridViewExportUtil.PrepareControlForExport (current);
)
)
)




This section of code is introduced to control traversal of all sub-control, for each sub-control, in accordance with sub-type of control to generate a LiteralControl, and with this son LiteralControl to replace the current control. For LinkBtton, use it to replace the text, for ImagaButton, are using it to replace the Alternate Text. Function against the LinkButton, ImageButton, HyperLink, DropDwonList, CheckBox to do a deal, if the current control is not any one of which, it has to determine whether sub-control, and recursive calls.

Back to the question before us, if there is a GridView custom control, then how do we do? In fact, the solution on the original idea to be able to determine are not custom control, use this custom control in one way or another in a hope to export the text information read out, converted to a Literal control can be.

We can write a function to deal with such a comparison is complicated, the model code is as follows:

else if (current is MyWebController)
(
control.Controls.Remove (current);
control.Controls.AddAt (i, GetLiteralController (current));
)

GetLiteralControler As for the wording, you can custom control traversal of all sub-controls, according to the characteristics of control, such as location, ID select a control, converted to Literal controls and back.

This article is an essay, recorded about ideas, not the actual test, if the question, please also pointed out that the U.S. gradually enriched.

Tuesday, February 17, 2009

study DNN module that Enterprise Forms 3.5

I feel it was so complex first.
but study a day, then feel it's so sample.

find the problem, Enterprise Forms 3.5 is not availability some times. like I click the return link.

any problem have you find?

Monday, February 16, 2009

Sql 2005 express about remote access and the sa password problem

Sql 2005 express about remote access and the sa password problem 
sqlserver2005 version now more, have express version, there are enterprises such as the development of version, I used to express the current version, 
Occupied system resources, or very little, unlike the Internet said, one is running the development version, it ate more than 400 M memory, the great majority of our 
Most people, in order to take a look at sqlserver2005 new features, there is no need no formal Developer Edition installed, Express version of the small, and it 
The function of the individual spent enough. 
       Bahrain sqlserver2005 (Express version), in order to manage, you need to manage to go to the next manager, Microsoft's official website has 
Under the Manager manage installed after the procedure to connect sqlserver2005, are the following points should be noted. 
       1. Sql2005 to open remote connection features, open approach is as follows, 
            Configuration tools -> sql server configurator external applications -> services and applications connected to the external configuration device -> open the MSSQLSERVER node under the Database Engine node, the first optional "remote connection", to take over the proposed choice of "At the same time the use of TCP / IP and named pipes ", are identified, restart the database service it. 
       2. Landing settings changed, Sql server and windows Authentication mode is selected at the same time, the specific settings are as follows: 
          manage manager -> windows Authentication (the first time the way into windows), -> Object Explorer, select your database server - right-> properties> security> Sql server and windows Authentication mode is selected at the same time. 
       3: Sql server to set up a way the user name and password, the specific settings are as follows: 
     manage manager -> windows Authentication> new query> sp_password null, 'sa123456', 'sa' 
     This will set up a user name is sa, password: sa123456 of users, the next landing, you can use Sql server mode 
User name is sa, password: sa123456 users into a database. 
      4: After finishing the above steps, this Writing connection string can be a smooth entry into the database, 
         (server =. \ \ sqlexpress; uid = sa; pwd = sa123456; database = master ";

interface and abstract class distinction

Surface questions: interface and abstract class distinction 
One difference between the two not the same as the concept of expression. Abstract class is a class of things a high degree of polymerization, then the succession of abstract class for the subclass, the abstract class for example, are "yes" relationship; and the interface is the definition of a code of conduct, so for the realization of the sub-class interface for , compared with the interface is "act in accordance with the interfaces required to complete." 

Distinction between two types of abstract class in the definition of methods, they can give way to the realization of some, it may not give; As for the interface is defined by the method which can give some realize. 

Distinction between three categories of succession for the two involved in the realization of Ways are different. Class inheritance is defined for abstract class abstract methods, can be rewritten, that is to say, you can use abstract class extension of the method; interface for the definition of class methods or properties, in the inherited class must give the corresponding realize the methods and properties. 

The difference between the four, in the abstract category, add a method, then inherit class can not make any deal with; As for interface, it necessary to amend the succession of categories, providing a new definition of the method. 

Give the following easy comparison between the two forms. 

  
Interface 
Abstract class 
Multiple inheritance 
Support 
Do not support 
Type restrictions 
No 
Has only reference types are 
Ways to achieve 
Types of succession must give way to realize 
Class inheritance can not give 
Scalability 
Is too much trouble 
Relatively flexible 
Multi-inheritance 
Is too much trouble to use virtual function required 
More flexible




==
c # interface and abstract class distinction 
  U.S. will easily confuse these two, I also like listening to the teacher's design patterns Chien-Chung Lee, he is also old the abstract class as interface, I get even more confused, so to find some online information. 
       First, abstract categories: 
       Abstract class is a special category, but can not be instantiated; In addition, with other properties; important is abstract class may include abstract methods, this is not the ordinary type. Abstract methods can only be a statement in the abstract class and does not contain any realize, derived class must cover them. In addition, the abstract class can be derived from an abstract class, you can override the base class abstract method can also be not covered, if not cover, then its derived class must cover them. 

        Second, interface: 
       Interfaces are reference types, similar to categories, and the similarities between abstract class has three points: 
        One can not be instantiated; 
        2, including the method statement did not realize; 
        3, derived classes must realize unrealized methods are abstract methods of abstract class, interface is all the members (not only methods, including other members); 

        In addition, the interface has the following characteristics: 
Besides interface can contain methods, but also can contain attributes, index, and events, and these members are defined as public domain. In addition, should not contain any other members, such as: constant domain, constructor, destructor, static members. A class can directly inherit multiple interfaces, but only directly inherit a class (including the abstract class). 


       Three abstract classes and interfaces of the distinction: 
       1. Class is an abstract object can be understood as the abstract class type as an object into an abstract class is called abstract class. The interface is just a behavior or require Microsoft custom interface is always able to bring the word after paragraph, to demonstrate that their statements are a class of type "I can do more 。。。". abstract class are defined in a series of closely related categories, and the interface is the relationship between the majority of osteoporosis but to achieve a particular function category . 
       2. Interface basically does not have any specific features of the succession, it is merely a commitment to be able to call the method; 
       3. A class can realize a number of interfaces, but only the expansion of a parent class 
       4. Interface can be used to support the callback, but the succession did not have this feature. 
       5. Abstract class can not be sealed. 
       6. Abstract class to achieve the specific method defaults to false, but realize interface class interface methods are by default non-virtual, of course, you can also virtual declaration. 
       7. (Interface) with a similar non-abstract class, abstract class must also be in kind of the base class list of interfaces available to all members of its own to achieve. However, the permit will interface methods of abstract class is mapped to abstract methods. 
       8. Oop abstract class implements a principle of variable separation and can not be changed. Abstract class and interface is defined as immutable, and the variable sub-class seat to be realized. 
       9. Good interface should be defined is a specific functionality, rather than multi-function, otherwise the pollution caused by interface. If a category is only realize the interface of a function of the interface had to go to achieve the other methods, called interface pollution. 
      10. As far as possible avoid the use of inheritance to achieve the formation of functional, but the use of black-box reuse, that is the target portfolio. Because an increase in the level of inheritance, resulting in the most direct consequence is that when you call this group in a certain category, it is necessary to them all loaded into the stack! Consequences can be imagined. (Combination of understanding the principle of stack). At the same time, concerned friends have noticed that Microsoft can build a category, they often use a combination of methods of the object. For example, asp.net Medium, Page Class, Server Request has attributes such as, but in fact they are the object of a certain category. Page class used this object to call the other type of methods and properties, this is a very basic design principles. 
      11. If the abstract class realize interface, the interface methods can be mapped to the abstract class as abstract methods without having to realize, and in the abstract class to achieve the sub-class interface methods. 
    
       Fourth, abstract class and interface use: 
       1. If the component is expected to create multiple versions, then the creation of abstract class. Abstract class to provide easy ways to control the component version. 
       2. If the function will be to create a wide range of wide differences between the use of objects, use the interface. If you want to design small and concise functional blocks, use the interface. 
       3. If you want to design a large functional unit, then use the abstract class. If you want to realize in all the components which provide common functions have been achieved, then the use of abstract class. 
       4. Abstract class used to close the object; and interface suitable for non-related category provide a common function. 


  The following is what I have seen a few online image analogy, really good, huh, huh: 
1. The aircraft fly, birds fly, they inherit the same interface "Fly"; but F22 aircraft belonging to an abstract class, abstract class pigeons are birds. 
2. Just like the wooden doors are iron gate door (abstract class), you want a door I can not (can not be instantiated), but I can give you a concrete steel doors or wooden doors (many states); and only are able to Door, you should not say it is a window (single inheritance); a door can be locked (interface) can also have doorbell (many realize). Door (abstract class) defines what you are, interface (lock) provides what you can do (an interface can only be the best thing to do, you can not ask the lock can also sound bar (interface pollution)).

Saturday, February 14, 2009

DNN skin error settings how to restore the default skin after

DNN skin error settings how to restore the default skin after

In some cases, to download a DNN skin, after application found everything becomes a mess, you can not enter the management interface of the. After things had gone wrong skin settings how to restore the default skin it?
Prevention

Although the belated action, but in the application before you click to preview a lot of trouble can be avoided.

Other method:

Use DNN a Bug, the use of Host login, enter http://www.mysite.com/Admin/Skins/tabid/49/Default.aspx?SkinSrc =% 5BG% 5D/skins/dnn-blue/Horizontal% 20Menu% 20 -% 20Fixed% 20Width, of course, to www.mysite.com into your web site URL, you can see the skin of the management page.
Quick Ways

The Portals \ _default \ Skins under the skin of your upload directory delete, DNN can not find this because the skin, will automatically use the default skin.
High Ways

DNN database to find the Skins table, empty all the contents of this table, it will restore the default settings of the skin.
If the modifications do not see results, because the cache are the reasons, in the web.config added a few spaces and then save, making reload, you can see the effects. If you are a Page Setup for the skin, it should amend the Tabs table SkinSrc or ContainerSrc part because the skin are tiered configuration, Skins Table website are saved configuration, Tabs table are saved configuration page.

Friday, February 13, 2009

Others grasp the secret psychological trick

Others grasp the secret psychological trick 

First, understanding and human nature 
  
Improve interpersonal communication and interpersonal skills to master the success of the first step are: the correct understanding of the human person and nature. 
  
Understanding of human nature and can be simply summed up as - "in accordance with the nature of people to agree with them", "agree with and look at people", rather than use their own vision to look at other people, not to impose their will on others. First of all, of their own people are interested in, rather than of interest to you! In other words - a person concerned about their own concerns than ten thousand times you. Recognizing that "people first of all concerned are their own rather than you" This is the key to life. 
  
Second, how to skillfully talk with others 
  
When you talk with people, choose the topic they are most interested. They are most interested in the topic what is it? Are their own! These words from your dictionary removed out - "I, myself, my." Use another word, a human language in the most powerful word to replace it - "you." Are you interested in on the conversation is not important, it is important whether or not your audience's interest. When you talk with people, please talk about each other and guide each other to talk about themselves. So you can become a most popular conversation partners. 
  
Three, how to skillfully give people the impression it important 
  
One of the most universal human characteristic is - eager to be recognized, eager to be understood. Interpersonal relations among you is willing to like a duck to water it? So, please try to make others aware of the importance of their own. Remember, the more you make people feel that their own importance, others return to you more. 
  
1. To listen to their 
2. Praise and compliment them 
3. As often as possible the use of their names and photographs 
4. In answering them, please pause a little 
5. The use of these words - "you" and "your" 
6. Sure those people who wait to see you 
7. Concern Group everyone 
  
Fourth, how subtly endorse others 
  
Do not forget that any fool can be opposed to others, and only the wise and great men will agree with - especially when the other party when mistakes! "Endorsed the art" can be summarized as the following 6 points: 
  
1. Institute of approval and accreditation 
2. When you agree with someone else, please say so 
3. When you do not agree with the time, do not tell them, unless a last resort 
4. When you make a mistake they must be ready to admit 
5. To avoid controversy with people 
6. The right deal with the conflict 
  
Agree art is rooted in -- 
  
1. People like to agree with them. 
2. People do not like to oppose them. 
3. People do not like to be opposed. 
  
Fifth, how to skillfully listen to others 
  
Listen more, you will become more intelligent, will be more popular, it will become a better conversation partner. Of course, to become a good listener, not an easy task, and here I have 5 o'clock recommended for reference: 
  
1. Monitor speaker 
2. Close to the speaker, concentrate on listening 
3. Question 
4. Do not interrupt the speaker's topic 
5. The use of the speaker's call - "you" and "your" 
  
Sixth, how subtly affect others 
  
To people in accordance with your wishes to do things the first step is to identify the reasons for them to do so (that is what they want). And others say that they want to hear things, they moved. You simply explain to them, as long as you ask them to do things to do after they get what they want. "Understanding what people want to" approach are: many asked many observations, many listen, together with unremitting efforts. 
  
Seven, how to skillfully convince others 

When you say something in favor of their own affairs, people usually doubt you and you said, this is a manifestation of the instinct. Is a better way: Do not directly explained, but to quote others, let others here talking to you, even if those people are not at the scene. Therefore, in order to go through a third party's mouth a speech. 
  
Pat, how cleverly others make decisions 
  
1. To tell people why to agree with you. Tell people, in accordance with what you said to do they will benefit, rather than your own benefit. 
2. Question can only be used "on" to answer. However, it should be noted that the proper question these "the" problem. In other words, when you ask such questions, should be a nod, and "you" to the beginning of your question. 
3. Let people in the two "good" by choosing one. This technique is to let them in your two "could" select a. 
4. Look forward to people you say "good", and let them know that you expect them to make an affirmative answer 
  
9, how to skillfully mobilize the sentiments of others 
  
1. Remember, any moment between the initial contacts often determines the tone of the process. 
2. Next, the use of human behavior the second basic law - People always react to others with a strong group 
  
Therefore, in the beginning, the moment you come into contact with eyes, before you speak before you break the silence, please show your warm smile. There will always be aware of should not, how much to pay, there is the number of returns. Do not forget, from now on, please show your smile, just like professional actors as models, and said to myself - "smile!"
Ten, how to praise others skillfully 
  
More generous, others commend you go! To find some people and things worthy of praise, and then commended them. 
  
1. To sincerely 
2. Commends the act itself, rather than pay tribute to people
  
Must pay tribute to the specific - to targeted. Happiness Formula - a daily habit of the people pay tribute to three different habits. You may feel that to do so, you how happy he is! When you see others do so to bring happiness, joy and gratitude, you will also find their own happiness. 
  
Eleven, how subtly criticize others 
  
1. Criticisms must be made to get along in a separate 
2. Criticized the former must give a little praise or compliment 
3. Criticism, do not target people, to criticize an act, but do not criticize a person 
4. To provide answers 
5. Seek cooperation rather than command 
6. A mistake, one criticism 
7. Ending friendly way to criticize 
  
Twelve, how clever to thank others 
  
Only in their own hearts gratitude, appreciation of others is not enough, should be grateful that you, the feelings of appreciation to those who deserve your gratitude to express. 
  
1. Attitude to sincerely 
2. A clear, natural expression of 
3. Watching you appreciate the other side 
4. Thanks to say each other's name when 
5. Make every effort to thank 
  
Thirteen, how cleverly to leave a good impression on others 
  
If you want beautiful, beautiful up on their own first. If you want other people's appreciation to you, admire you, respect you, you must feel you are worthy to receive this honor. Proud for your own bar (but do not own!) As your own, for your career, for your work environment and proud; not for you the current situation and the inadequacy and inferiority. You are your own - to respect themselves, to feel proud for themselves. 
  
1. In good faith 
2. To warm 
3. No need to over-hasty 
4. Do not belittle someone else to raise their own through 
5. Do not crack down on anyone, anything 
  
14. How skillfully speak 
  
1. Understand you said the contents of 
2. Having said that, on the cessation of 
3. To speak, please watch the audience 
4. To talk about some of the audience interested in the topic
5. Do not try to lecture

Monday, February 9, 2009

Political, economic, science and technology the new theory

Political, economic, science and technology the new theory 
May be able to apply the "Second life, second-sheng three, Sansheng things," then, as to, how three of the Second Health, I also do not quite understand the true meaning. Here, I is used meaning "for access to the economy, may have two ways, one being political, and the other is technology. The political, economic, science and technology constitute the basic social." 
If it is not like dealing with people, but also happy to look at the truth, to explore the nature of the hard things of people, then an early age in order to foster scientific and technological talents as a goal is appropriate. 
If it is good long handle interpersonal relationships, and likes to study people and human relations with other things, then suitable to do with politics. 
Treatment between people, to make it economic.

Monday, February 2, 2009

Wen at Cambridge university: with the development of speech eyes"

The core clew: Chinese premier wen jiabao has 2 at Cambridge university in England, he urged everyone speech "with the development of China, and look," said China will make peace, learning and cooperative powers, "strong country will bully" is not suitable for China.

The local time on February 2nd, is coming to an end at visit and travel to Europe by Chinese premier wen jiabao visits by university of Cambridge, through the snow students to warm welcome. Some students even hit Chinese slogan: "I love baby." Arriving ZhangShuo reporter

Xinhuanet Cambridge, UK, feb. 2-2, Chinese premier wen jiabao at Cambridge university in England, in deep to publish scholars were briefly introduced the history of China's reform and opening up, urged everyone "with the development of China's" look.

"I love the motherland, old and young, and chastened and self-improvement, cherished tradition and open compatible with his poem," wen told phonetically language passionately. He carefully to everyone, "the kingdom will be strong, not suitable for China". "Seek hegemony, contrary to our traditional culture, also against Chinese people will not damage. The development of China, nor any threat to anyone. China will make peaceful country, learning and cooperative powers, devoted to building a harmonious world".

Wen jiabao said that different countries, different ethnic culture, need to respect each other and mutual understanding and learning from each other. "Today, China has 3 million people are learning English, more than 100 million young people in abroad... because of our good in communication studies, in reference to learn Chinese, the prosperity and progress today." He pledged that China will always adhere to the open policy, and the world of harmonious development, hand in hand advances. At the same time, also called on everyone in the information age, the multivariate, with the development of China for a look at China. In the world of spread about financial crisis, premier wen jiabao on current economic system to review and theoretical.

For example, he said the 1990s, some economies, some financial institutions neglect by benefit drive, use of financial leverage on several times in excess financing, up profits at the same time, the huge risks for the whole world.

He said: "the international financial crisis, told us once again by the market economy is destined to manage work. Must be well handled financial innovation and financial supervision, virtual economy and economic entity of saving and consumption, and the relationship."

Premier wen jiabao stressed, effectively deal with the crisis, still must attach great importance to moral action. He thinks, morality is the financial crisis caused a deep-rooted reasons. "Some people, infringe upon the public interests, cultivating their lost moral bottom line." Wen hope corporate social responsibility, the entrepreneur to flow "moral blood".

Looking to the future, wen said, with the global financial crisis, the need to promote cooperation. All over the world to deal with the international monetary and financial system reform, to build a fair and justice, tolerance and orderly international financial order, trying to build a conducive to the development of global economic system environment.

About &sino-european relations, wen jiabao said, central cooperation has stood in a new historical starting point, the central cooperation solid, bright prospect. He also wants more people can like Cambridge in exchange for made important contributions of alumni Joseph Needham, focus on China, do the friendly messenger in English communication.

[China] wen Cambridge university lecture thrown shoes (figure/video) * denounced the trick

[China] wen Cambridge university lecture thrown shoes (figure/video) * denounced the trick
According to the report, Chinese premier wen jiabao announced at Cambridge university lecture was interrupted emergencies. A young man to face west wen threw shoes, and screamed: "this is!" .

This is the five countries in Europe, premier wen jiabao of the last day of speech. Shoes were thrown to the auditorium back, but only to return from wen one meter of the podium.

Security personnel will he show hall from university of blasthole corner. He was taken out when others: "stand up incite protest!" . But the other answering his audience, "either!" And he called out.

After a pause in wen, premier wen jiabao said quietly: "teachers, students and the mean trick stop Sino-British friendly tide". The audience to premier wen is very warm of applause.

Afterwards, premier wen to finish his speech. Previously, including supporters and critics of 80 people in this assembly.

ref: http://www.aobo.com.au/redirect.php?tid=125424&goto=lastpost



Saturday, January 31, 2009

Replace host PWD to m2land user

/*
 -- Database Utility ---------------------------------------------------------------------------
 Description : Reset a Password in a DotNetNuke database
 Author : Tony Tullemans
 Date Created : 18.04.2007
 Note/s : Before you run this script you must know the UserName and Password of another
 registered DNN user in the database you wish to affect.
 -----------------------------------------------------------------------------------------------
 
*/
 
DECLARE @databaseName VARCHAR(128)
SELECT @databaseName = DB_NAME()
 
PRINT 'RESET PASSWORD IN DATABASE : ' + @databaseName
PRINT '-----------------------------' + REPLICATE('-'DATALENGTH(@databaseName ));
 
DECLARE @knownUserName NVARCHAR(128)
DECLARE @lostUserName NVARCHAR(128)
DECLARE @lostUserId NVARCHAR(128)
DECLARE @knownPassword NVARCHAR(128)
DECLARE @knownSalt NVARCHAR(128)
 
SET @knownUserName = 'm2land'
SET @lostUserName = 'host'
 
SELECT @knownPassword = Password, @knownSalt = PasswordSalt
FROM aspnet_Membership
INNER JOIN aspnet_users
ON aspnet_Membership.UserId = aspnet_users.UserId
where UserName = @knownUserName;
 
PRINT ''
PRINT 'Known Password for "' + @knownUserName + '" is : ' + @knownPassword
PRINT 'Known Password Salt for "' + @knownUserName + '" is : ' + @knownSalt
 
SELECT @lostUserId = aspnet_Membership.UserId
FROM aspnet_Membership
INNER JOIN aspnet_users
ON aspnet_Membership.UserId = aspnet_users.UserId
WHERE UserName = @lostUserName;
 
PRINT ''
PRINT 'UserID for "' + @lostUserName + '" is : ' + @lostUserId
PRINT ''
 
IF (DATALENGTH(@lostUserName<= 0 OR @lostUserName IS NULL)
PRINT 'Invalid Lost User Name ' + @lostUserName
ELSE BEGIN
IF (DATALENGTH(@knownUserName<= 0 OR @knownUserName IS NULL)
PRINT 'Invalid Lost User Name ' + @lostUserName
ELSE BEGIN
IF (DATALENGTH(@knownPassword<= 0 OR @knownPassword IS NULL)
PRINT 'Invalid Known Password ' + @knownPassword
ELSE BEGIN
IF (DATALENGTH(@knownSalt<= 0 OR @knownSalt IS NULL)
PRINT 'Invalid Known Salt ' + @knownSalt
ELSE BEGIN
PRINT ''
PRINT 'BEFORE'
SELECT left(UserName, 12as UserName, aspnet_Membership.UserId, left(Email, 20as Email, Password, PasswordSalt
FROM aspnet_Membership INNER JOIN aspnet_users ON aspnet_Membership.UserId = aspnet_users.UserId
WHERE UserName IN ( @knownUserName@lostUserName );
PRINT ''
PRINT 'Changing Password for User Id : "' + @lostUserId + '" to "' + @knownPassword + '"'
PRINT ''
UPDATE aspnet_Membership
SET Password = @knownPassword,
PasswordSalt 
= @knownSalt
-- SELECT UserId, Password, PasswordSalt
--
 FROM aspnet_Membership
WHERE UserId = @lostUserId;
PRINT ''
PRINT 'AFTER'
SELECT left(UserName, 12as UserName, aspnet_Membership.UserId, left(Email, 20as Email, Password, PasswordSalt
FROM aspnet_Membership INNER JOIN aspnet_users ON aspnet_Membership.UserId = aspnet_users.UserId
WHERE UserName IN ( @knownUserName@lostUserName );
END
END
END
END
GO

PRINT ''
PRINT ' * * * END OF SCRIPT * * *'
PRINT ''
GO

Need Study some article about ExtJS/WCF/LINQ

Need Study some article about ExtJS/WCF/LINQ
I like these articles, and I will study them later.

So, I record them in here:
http://www.cnblogs.com/jillzhang/archive/2007/10/14/923926.html http://www.cnblogs.com/jillzhang/archive/2008/06/18/1225018.html http://www.cnblogs.com/jillzhang/archive/2008/08/09/1259489.html http://www.cnblogs.com/jillzhang/archive/2008/08/18/1270681.html