自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+

lifesounds的专栏

前进、前进、向前进!

  • 博客(6)
  • 资源 (9)
  • 收藏
  • 关注

原创 eclipse发布应用时 Could not copy all resources to tomcat

在使用eclipse开发,发布应用的时候突然无法成功发布,提示Deployment failure on Tomcat  6.x. Could not copy all resources to D:/.../webapps/eptInfo. If a file is locked, you can wait until the lock times out to redeploy, or s

2008-06-24 15:22:00 6381 6

转载 JavaScript:设为首页-加入收藏-联系我们的代码

出处:http://blog.csdn.net/gztoby/archive/2004/08/13/74254.aspxnet);" >设为首页 加入收藏 联系我们

2008-06-19 14:36:00 5339 2

原创 创建社区的时候不自动初始化公有页的设置

 修改portal.properties#   dl.layouts.sync.public.folder=Pages – Public#   my.places.show.user.public.sites.with.no.layouts=true#   my.places.show.organization.public.sites.with.no.layouts=true

2008-06-13 16:49:00 698

转载 解决ARP攻击问题

转自:http://zhidao.baidu.com/question/50940165.html?fr=qrl1、清空ARP缓存 大家可能都曾经有过使用ARP的指令法解决过ARP欺骗问题,该方法是针对ARP欺骗原理进行解决的。一般来说ARP欺骗都是通过发送虚假的MAC地址与IP地址的对应ARP数据包来迷惑网络设备,用虚假的或错误的MAC地址与IP地址对应关系取代正确的对应关系。若是一

2008-06-12 10:30:00 757

转载 关于MYSQL数据的导出导入与版本的转换

原文出处:http://bbs.mysql.cn/viewthread.php?tid=72&extra=page%3D1%26filter%3Ddigest关于MYSQL数据的导出导入与版本的转换最近看到好多人在询问mysql 导入导出的问题,于是就简单的总结一些我的使用经验,供大家参考,有不合理的地方欢迎交流!一、Mysql 数据的导出   有的站长经常用一种最直接的办法就是拷贝数据库文件

2008-06-05 20:47:00 582

原创 liferay文档库重新部署后无法下载问题

liferay的文档库的portlet用起来很方便,但是发现,当你把这个tomcat重新部署,或者把这个tomcat移植到其他机器上的时候,文档库里面以前上传上来的文档,虽然信息还在,但是无法下载了。原因是,liferay文档库,默认的配置是把文档的数据存储到了你tomcat所在服务器的${user.home}/liferay下面的jackrabbit文件夹里面了,所以在重新部署tomcat

2008-06-05 15:34:00 1242

red5 chat 编译所用的jar

red5 chat 编译所需要的red5.jar 只有这个版本可以编译

2013-03-19

red5chat 多人视频 音频会议

package chat; import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; import org.red5.server.adapter.ApplicationAdapter; import org.red5.server.api.IConnection; import org.red5.server.api.IClient; import org.red5.server.api.IScope; import java.util.*; import org.red5.server.api.service.ServiceUtils; import org.red5.server.api.service.*; import org.red5.server.api.Red5; //import org.apache.commons.logging.Log; //import org.apache.commons.logging.LogFactory; public class Application extends ApplicationAdapter { public Map<String, CClient> clients = new HashMap<String, CClient>(); public class CClient{ String id = null; String pseudo = null; String role = null; String sexe = null; String status = null; String room=null; String world=null; public String getRole(){ return role; } public String getName(){ return pseudo; } public String getId(){ return id; } public String getSexe(){ return sexe; } public String getStatus(){ return status; } public String getRoom(){ return room; } public String getWorld(){ return world; } public void setRole(String _role){ role = _role; } public void setPseudo(String _pseudo){ pseudo = _pseudo; } public void setSexe(String _sexe){ sexe = _sexe; } public void setId(String _id){ id = _id; } public void setStatus(String _status){ status = _status; } public void setRoom(String _room){ room = _room; } public void setWorld(String _world){ world = _world; } } public boolean connect(IConnection conn, IScope scope, Object[] params) { // pseudo role sexe status room world; // Check if the user passed valid parameters. log.info( "**connection" ); log.info("**connect IConnection nombre params="+ params.length); log.debug("**connect IConnection nombre params="+ params.length); if (params == null || params.length != 6) { // NOTE: "rejectClient" terminates the execution of the current method! rejectClient("6 params expected."); } String pseudo=params[0].toString(); String id=conn.getClient().getId(); ((IServiceCapableConnection) conn).invoke("flashmethod", new Object[]{"connect", pseudo+id}); if (clients.get(pseudo) != null) { rejectClient("PSEUDO ALREADY IN USE"); } // we do create a new user ! log.info( "connection pseudo:"+pseudo); log.info( "connection id:"+id); CClient client = new CClient(); client.setId(id); client.setPseudo(pseudo); client.setRole(params[1].toString()); client.setSexe(params[2].toString()); client.setStatus(params[3].toString()); client.setRoom(params[4].toString()); client.setWorld(params[5].toString()); clients.put(pseudo, client); // clients["yarek"]=client conn.setAttribute("psuedo", pseudo); return true; } public void disconnect(IConnection conn, IScope scope) { log.info( "disconnect"); String pseudo=conn.getClient().getAttribute("pseudo").toString(); //log.info( "disconnect:"+pseudo); String id=conn.getClient().getId(); ((IServiceCapableConnection) conn).invoke("flashmethod", new Object[]{"disconnect", pseudo+id}); // Unregister user. //ServiceUtils.invokeOnAllConnections (scope, "removeuser", new Object[] {pseudo} ); if (pseudo==null) { clients.clear(); } else { CClient u = clients.get(pseudo); clients.remove(u); } // ISharedObject so = getSharedObject(scope, "users_so"); // so.endUpdate(); //IScope appScope = Red5.getConnectionLocal().getScope(); // Call original method of parent class. super.disconnect(conn, scope); } /* * public boolean roomConnect(IConnection iconnection, Object params[]){ if(!super.roomConnect(iconnection, params)){ //log.info((new StringBuilder()).append("Application failed to connect room: ").append(iconnection.getScope().getName()).toString()); return false; } else{ //log.info((new StringBuilder()).append("Application room connect initiated for room ").append(iconnection.getScope().getName()).append(": ").toString()); // We will add our client information right here CClient client = new CClient(); client.setId(params[0].toString()); client.setPseudo(params[1].toString()); client.setRole(params[2].toString()); client.setSexe(params[3].toString()); client.setStatus(params[4].toString()); iconnection.getClient().setAttribute("client", client); return true; } } */ public void callclient() { log.info("callclient called"); IConnection conn = Red5.getConnectionLocal(); if (conn instanceof IServiceCapableConnection) { IServiceCapableConnection sc = (IServiceCapableConnection) conn; log.info("flashmethod called"); sc.invoke("flashmethod", new Object[]{"One", 1}); } } public String debug (String msg){ return msg; } public double add(double a, double b){ return a + b; } }

2013-03-19

VMware P2V之使用详解(Ghost)

VMware P2V之使用详解(Ghost)

2010-03-15

xalan-j_2_7_1-bin.zip

xalan是Apache xml工程下的一个子工程,它实现了w3c xslt1.0和xpath1.0规范,是一个开放源代码的确xslt处理器.xalan提供了java和c++的版本.请用hjsplit2.0合并.

2009-12-04

essential snmp 2nd Edition 书中例子源码

essential snmp 2nd Edition 书中例子源码

2008-11-18

java与模式(清晰书签版)和随书源码.part2

java与模式(清晰书签版)和随书源码.part2 必须与java与模式(清晰书签版)和随书源码.part1下载后放到同目录之后才可解压

2008-11-14

java与模式(清晰书签版)和随书源码part1

java与模式(清晰书签版)和随书源码part1 必须与java与模式(清晰书签版)和随书源码.par2下载后放到同目录之后才可解压

2008-11-14

模仿线程"生产者与消费者"的例子

多线程的例子: 生产者和消费者模式的例子

2008-11-13

空空如也

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

TA关注的人

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