自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(75)
  • 问答 (2)
  • 收藏
  • 关注

原创 2010 (gwt study)

In the module XML file, you specify your application's entry point class. In order to compile, a GWT module must specify an entry point. If a GWT module has no entry point, then it can only be inherit...

2010-08-03 07:29:35 183

原创 20100803 (jaas study)

JAAS authentication is performed in a pluggable fashion. This permits applications to remain independent from underlying authentication technologies. New or updated authentication technologies can be ...

2010-08-03 07:26:08 161

原创 20100723 (tc design)

What's "changablility" mean in "property"?Difference between "Extend" and "Inheritance/Generalization" in Use Case?When to use "Dependency" in Use Case?In sequence diagram, what's the difference...

2010-07-23 10:53:28 197

原创 20100723 (jpa study)

Each EntityManager instance is associated with a persistence context. A persistence context defines the scope under which particular entity instances are created, persisted, and removed.To obtain an...

2010-07-23 10:50:22 142

原创 20100723 (JAX-WS study)

The starting point for developing a JAX-WS web service is a Java class annotated with the javax.jws.WebService annotation. The @WebService annotation defines the class as a web service endpoint.A se...

2010-07-23 10:49:08 144

原创 20100723 (ejb study)

A session bean is similar to an interactive session. A session bean is not shared; it can have only one client, in the same way that an interactive session can have only one user. Like an interactive ...

2010-07-23 10:48:10 133

原创 20100712 (php study)

String: With single-quoted strings, the only special characters you need to escape inside a string are backslash and the single quote itself.Because PHP doesn’t check for variable interpolation or alm...

2010-07-12 15:47:42 452

原创 20100505 (flash study)

enterFrame event: If the playhead is not moving, or if there is only one frame, this event is dispatched continuously in conjunction with the frame rate. Default frame rate is 24 frame per second. Not...

2010-05-29 09:42:38 127

20100220 (Air Study)

However, unlike other MXML components, a Window-based component cannot be used in another MXML document. Instead, you create an instance of the MXML component in ActionScript.Once the window's initi...

2010-03-01 11:02:10 145

原创 更新flex sdk后,如何在flex builder中设置以使用新的特性

正在做的项目需要将原来跑在浏览器上的flex项目转到air环境中,由于项目使用到了flash 10的一些特性(比如p2p),在转到air环境中编译没有问题,运行时只要调用到flash 10特有的api,就老是出以下类似的错误: "ReferenceError: Error #1069: Property nearID not found on flash.net.NetConnection a...

2010-02-13 19:47:13 165

原创 [转]在线网页调色板

今天到懒人图库上去搜集网页素材,无意中发现了这么些好玩的东东,一个个点击试了试,似乎有些个链接是错误的,能打开的如colr.org、color blender等还是挺有意思的,能让我等菜鸟看看热闹了,呵呵!。。。。。。。。4096 color wheel version 2.1非常漂亮的自然色抓取工具,用鼠标点取颜色,非常方便。http://www.ficml.org/jemimap/st...

2009-12-10 11:03:17 856

20091105 (logging)

log4jThe inherited level for a given logger C, is equal to the first non-null level in the logger hierarchy, starting at C and proceeding upwards in the hierarchy towards the root logger.The outpu...

2009-11-05 11:21:06 131

Summary for hibernate cache

You have the option to tell Hibernate which caching implementation to use by specifying the name of a class that implements org.hibernate.cache.CacheProvider using the property hibernate.cache.provi...

2009-11-03 16:29:04 124

如何让eclipse的console正常显示中文

如附件所示,在Argument里面的vm arguments加上-Dfile.encoding=UTF-8,在Common里面的console encoding选utf-8

2009-11-02 15:57:16 367

如何在spring里面用utf-8来载入properties文件

<bean id="schedulerMessageSource" class="org.springframework.context.support.ResourceBundleMessageSource"> <property name="basenames"> <list> <value>schedule

2009-11-02 15:51:59 154

20091026 (Qaurtz)

The JobDetail object is created by the Quartz client (your program) at the time the Job is added to the scheduler. It contains various property settings for the Job, as well as a JobDataMap, which c...

2009-10-26 10:01:11 165

20091007 (Flex P2P)

var conn:NetConnection = new NetConnection("rtmfp://stratus.adobe.com/" + developerKey);conn.nearID, my p2p idnew NetStream(netConnection, NetStream.DIRECT_CONNECTIONS);NetStream.DIRECT_CONNECTIONS,...

2009-10-07 10:10:54 154

原创 [转]Flex的中文编译

还是目前的这个项目,因为我引入了自动升级的applicationupdater_ui.swc,而默认的编译选项是en_US。于是出来的升级界面是英文的,考虑到实用性,应该改成中文的。然后一通乱查。.swc是个压缩包,可以修改后缀为.zip,然后用各式解压缩工具打开。打开之后里面有些文件和locale目录,locale目录下面是各种语言包。而applicationupdater_ui.swc...

2009-09-17 10:13:45 127

原创 [转]各种减小swf文件大小的方法

第一步:分离运行库,使用RSL减小FLEX生成文件的体积 要应用RSL.我们执行下面的步骤: 1.在项目文件夹中点右建,选择"properties"-"Flex BuildPath"-"Library Path" 2.该选项卡上我们看到"FrameWork linkage",默认是选中"Merged into code"(打包在里边..大概这意思) 3.点开下拉,选择"runtime shared.

2009-09-16 16:54:26 263

RMI Summary

UnicastRemoteObject.exportObject expose a remote object at given ip and portLocateRegistry.getRegistry.bind register a remote object to registry, note that registrty is also a remote object, and the...

2009-08-14 09:49:30 117

原创 [转] Using custom objects in AMF3 with Red5

转自http://gregoire.org/2008/09/12/using-custom-objects-in-amf3-with-red5/ I created a post about this subject almost a year ago, but there were a couple minor issues with the examples. Here I will ...

2009-07-14 15:00:21 89

20090612 (Red5 Study 3)

Is context global or there may be one context for each scope or for each application?There's a global context and one context for each application.How to implement security checking?First put user d...

2009-06-15 09:44:41 86

如何在没有hibernate.cfg.xml的情况下导出DDL

因为项目是用spring来配置hibernate,同时用的是hibernate的annotation,所以根本不没有任何hibernate相关的xml配置文件(最喜欢零配置了,呵呵),但是当要导出sql的DDL的时候问题就来了,一般hibernate的schema export的教程上面都要配置一个hibernate.cfg.xml,这时只能自己写code来实现导出了,其实也很简单。 思路如下...

2009-03-26 11:24:34 128

20090320 (Spring integration)

Integrate with Struts:Spring plugin features:1.Allow Actions, Interceptors, and Results to be created by Spring 2.Struts-created objects can be autowired by Spring after creation 3.Provides two inter...

2009-03-20 15:16:31 80

20090317-20090319 (struts)

Conversion?Validation?How to bind values from request to action and from action to jsp?Struts tag library?Validation can be described through an XML document, or using annotations. The XML document i...

2009-03-19 17:47:54 89

20090319 (XWork)

ActionThe <action> tag can use any type of object, by default, it will call the execute method, you can override this by specifying a value for the "method" attribute, also, use "actionName!meth...

2009-03-19 12:10:14 107

Red5源代码分析 - 关键类及其初始化过程

Red5如何响应rmpt的请求,中间涉及哪些关键类?响应请求的流程如下: 1.Red5在启动时会调用RTMPMinaTransport的start()方法,该方法会开启rmtp的socket监听端口(默认是1935),然后使用mina(apache的io操作类库)的api将RTMPMinaIoHandler绑定到该端口。2.RTMPMinaIoHandler上定义了messageRecei...

2009-03-13 16:36:11 174

20090312 (Red5 Study 2)

Standalone serverShould be inside "red5-web.xml" in WEB-INF?What's the usage of webAppRootKey?<context-param><param-name>webAppRootKey</param-name><param-value>/myapp</par...

2009-03-12 17:12:47 82

在Red5中测量流量

@Override public void streamSubscriberStart(ISubscriberStream stream) { print("streamSubscriberStart"); IConnection conn = Red5.getConnectionLocal(); conn.setAttribute("data", c...

2009-03-11 11:25:03 123

20090310 (Flex Misc)

用popup manager来弹出窗口?用Accordion 来分tab?用类似visible="{myCheck.selected}"的语法来绑定microphone的属性?  internal 有点类似于java的默认无修饰符,不同在于子类无法访问,只有同个包的可以访问在一个as文件中,可以定义多个类,但只能一个类位于package中。其他的属于内部类?那在mxml中是不是可以有内部类...

2009-03-10 17:58:00 102

20090201-20090228

XMPP Extensible Messaging and Presence Protocol 是基于可扩展标记语言(XML)的协议,它用于即时消息(IM)以及在线现场探测。XMPP的前身是Jabber,一个开源形式组织产生的网络即时通信协议。Openfire is a cross-platform real-time collaboration server based on the XMPP ...

2009-03-06 14:14:27 107

20090306 (Flex Microphone)

Audio qualityEcho suppression: echo suppression is advisable when the sound being captured is played through speakers — instead of a headset — on the same computer.Rate: the rate at which the micropho...

2009-03-06 14:11:49 123

在Flash里面调用javascript

使用flash.external.ExternalInterface可以调用javascript的方法,或者注册方法到flash对象上,从而使javascript可以调用该方法。同时,使用flex builder时,可以通过修改html-template\index.template.html文件来修改生成的html文件,从而添加javascript代码。...

2009-03-01 11:23:35 179

Red5中如何配置virtualHosts

webapp.virtualHosts用于指定rtmp服务器的ip,但是如果要设置为接受所有的请求,可以使用通配符*作为他的值。

2009-03-01 10:37:35 236

20090220-20090221 (Red5 Study 1)

IScope: A statefull object shared between a group of clients connected to the same context path. Scopes are arranged in hierarchical way, so its possible for a scope to have a parent and children scop...

2009-02-25 09:29:18 82

无法用IP连接上Red5?

编辑WEB-INF\red5-web.properties, 在webapp.virtualHosts中将ip加进去

2009-02-24 21:23:56 325

网页中的Flash无法访问摄像头

用flex开发时,发现即便把权限全开,自己写的flash放在网页中也不能访问本机摄像头,但是如果把同样的代码作为桌面应用运行则一切正常,用别人的机子开网页也一切正常。试了不同的浏览器,ie, 傲游, firefox,全部不行,安装了各个不同版本的flash, flash 9, flash 10, debug版,都不行,专门用adobe的flash卸载软件卸载了再装,还是不行。。。 开始怀疑是...

2009-02-22 14:30:05 2486

Red5 templates里面的myapp无法运行?

按照网上教程,从templates里面复制了myapp进入webapps,修改相关设置,启动red5,用flash客户端发现老是连接不上,同时在myapp中代码调用System.out输出的信息也没有能在控制台显示。没有明显的出错信息。。。 通过各种方法,最后发现注释掉web.xml中的下面这一段后,myapp终于成功启动: <context-param>     <par...

2009-02-21 10:26:04 124

原创 [转]javascript实现电信网通双线自动选择

网站打开的速度快是相当重要的,不管你是用的什么网络,都打开的很快。我们且不谈论所做产品的初期发展用户人群因为这没有多大意义,如果你定位为学生,那么根据我们自身大学四年的经验,同学中间用电信、校园网的比例基本上变数太大。     值得庆幸的是,现在我们已经实现电信、网通双线北网通、南电信是我们国家的一个特色。更甚至07年春节爆出电信与网通内部协议,内容大概是南北互不侵犯各自的领域。因此,如果要立足做...

2009-02-18 18:00:32 152

20090216-20090219 (about Red5 and Flex)

MXML is an XML-based user interface markup language first introduced by Macromedia in March 2004. Adobe Systems (which acquired Macromedia in December 2005) gives no official meaning for the acronym, ...

2009-02-18 12:20:50 91

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除