Summary
文章平均质量分 68
magic_dreamer
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
彩票计算JAVA版(一)获取HTML页面的内容
彩票计算JAVA版(一)获取HTML页面的内容主要用到了开源的两个包,pom.xml书写如下: org.htmlparser htmlparser 1.6 cpdetector cpdetector 1.0.5核心类HTMLParserUtil.java内容如下:package com.sillycat.easyluck.common.htm...2010-04-30 09:38:06 · 221 阅读 · 0 评论 -
彩票计算JAVA版(二)正则分析得到对应数据
彩票计算JAVA版(二)正则分析得到对应数据正则表达式类RegexUtil.java,默认写了patternStr了,这个参数其实也可以当做参数传递进去package com.sillycat.easyluck.common.utils;import java.util.ArrayList;import java.util.List;import java.util.reg...2010-04-30 09:39:16 · 192 阅读 · 0 评论 -
彩票计算JAVA版(三)内置数据库derby
彩票计算JAVA版(三)内置数据库derby1.配置derby运行环境JVM里面运行的嵌入式derby,不晓得JRE6后是咋样的。但是目前启动derby来存储本地数据,我是这样处理的首先导入derby必要的几个包,修改POM文件pom.xml如下: org.apache.derby derby 10.4.2.0还是按照dbcp老的方式配置ibatis...2010-04-30 09:40:40 · 272 阅读 · 0 评论 -
彩票计算JAVA版(四)内置WEB容器jetty
彩票计算JAVA版(四)内置WEB容器jetty首页http://jetty.mortbay.com/jetty/下载页面http://dist.codehaus.org/jetty/我是用MAVEN2来管理的JAR包,所以MAVEN2的pom.xml文件如下: org.mortbay.jetty jetty 6.1.16测试启动应用的类...2010-04-30 09:41:32 · 138 阅读 · 0 评论 -
MAVEN2规划
MAVEN2规划在GOOGLE SVN上建立私服https://sillycat.googlecode.com/svn/repository如果有需要的第三方JAR,就放GOOGLE上面算了,按照对应文件夹传上去。本机就不再启动artifactory或者nexus了。我也是在springside上学习到的。我的示例主要参考springside:)我参考turbine和以...原创 2010-08-23 13:58:28 · 310 阅读 · 0 评论 -
Dealing with OpenId(I)
Dealing with OpenId(I)1. download the openid4java packages.the file name is openid4java-full-0.9.5.593.tar.gzunzip and find the directory openid4java-0.9.5.593/samples/simple-openidtry to ...原创 2011-04-15 23:54:09 · 340 阅读 · 0 评论 -
Dealing with OpenId(II)
Dealing with OpenId(II)First Page index.jsp: Hello World! .openid_identifier { width:300px; } Sample 2: using the Simple Registration extension(doc: SRegHo...原创 2011-04-15 23:55:18 · 138 阅读 · 0 评论 -
DGPO:面向多任务机器人的演示引导策略优化算法
在机器人多任务学习中,模仿学习与强化学习的融合常因策略表征耦合、奖励泛化不足和跨任务干扰而失效。其核心问题在于传统方法将‘演示’视为静态动作标签,忽视了任务间状态空间、动作敏感度与成功判据的本质差异。DGPO(Demonstration-Guided Policy Optimization)提出‘引导-策略-约束’三层解耦架构,通过任务专属的演示引导头实现隐空间轨迹对齐,并引入任务ID驱动的熵约束机制动态调节探索强度。该设计显著提升策略迁移性、收敛速度与部署鲁棒性,已在工业分拣、电池装配等真实产线验证,支持原创 2026-07-06 09:40:20 · 472 阅读 · 0 评论 -
Spring3 and JPA Integration(I)
Spring3 and JPA Integration(I)JPA POJO just stay the same com.sillycat.easyjpa.model.We have the same interface for DAO layer com.sillycat.easyjpa.dao.PersonDAO:package com.sillycat.easyjpa....原创 2011-01-20 17:48:17 · 172 阅读 · 0 评论 -
Spring3 and JPA Integration(II)
Spring3 and JPA Integration(II)My manager Layer, the interface is com.sillycat.easyjpa.manager.PersonManagerpackage com.sillycat.easyjpa.manager;import java.util.List;import org.springframew...原创 2011-01-20 17:50:14 · 543 阅读 · 0 评论 -
Spring3 and Axis2 Integration(I)
Spring3 and Axis2 Integration(I)I use spring3 and axis2.1. we will have our spring configuration file and our spring bean configurationmain-context.xml: our webservice be...原创 2011-01-24 13:27:02 · 177 阅读 · 0 评论 -
Spring3 and REST Integration(I)
Spring3 and REST Integration(I)1. REST support in Spring MVC@Controller@RequestMapping @RequestMapping(method=RequestMethod.GET, value="/emps", headers="Accept=application/xml, applicat...原创 2011-01-26 14:39:17 · 171 阅读 · 0 评论 -
Spring3 and REST Integration(II)
Spring3 and REST Integration(II)5. How to test that serviceI use RestTemplate to communicate with REST services, just now, I configured that incontroller-easyrestproxy-context.xml file: ...原创 2011-01-26 14:40:27 · 126 阅读 · 0 评论 -
WK系列串口扩展芯片选型与工业级应用实战指南
本文详细介绍了WK系列串口扩展芯片的选型与工业级应用实战指南。通过对比主流型号参数和选型关键因素,帮助工程师在嵌入式系统开发中解决串口资源不足问题。文章还提供了硬件设计要点、软件驱动开发实战和典型应用场景解析,助力工业控制、智能家居等领域的多设备通信方案优化。原创 2026-07-14 10:24:57 · 458 阅读 · 0 评论 -
Server Deployment - Jetty
Server Deployment - JettyI try to run jetty as the same deployment structure as apache tomcat.3 multi instances run in one ubuntu Server with one copy of my dist war package. I installed 3 v...原创 2011-05-22 21:47:15 · 179 阅读 · 0 评论 -
Server Deployment - Resin
Server Deployment - ResinTry to install resin on my local server. Deploy my instances on ubuntu as the same as tomcat/jetty.1. Install resin>tar zxvf resin-4.0.18.tar.gz>cd resin-4.0.18>./...原创 2011-05-22 23:08:28 · 178 阅读 · 0 评论 -
Jetty Problem on Jetty7 and Jetty8
Jetty Problem on Jetty7 and Jetty8I met one configuration problem. My JSP page got this kind of message:JSP support not configuredMy Jetty server log is:NO JSP Support for /easymarket, did...原创 2011-05-23 22:11:35 · 165 阅读 · 0 评论 -
Server Deployment - Haproxy
Server Deployment - HaproxyI will install the latest package in my system. I use it as software solution of hardware F5.1. Install haproxydownload this file haproxy-1.4.15.tar.gzunzip the ...原创 2011-05-23 22:12:47 · 176 阅读 · 0 评论 -
Server Deployment - apache2.x
Server Deployment - apache2.xInstall the apache2.x on Ubuntu system according to the previous blogs.1. enable the modules we need>a2enmod proxy>a2enmod proxy_balancer>a2enmod proxy_http...原创 2011-05-23 22:34:48 · 156 阅读 · 0 评论 -
Server Deployment - lighttpd
Server Deployment - lighttpd1. Install the software>sudo apt-get install lighttpd2. proxy configuration>vi /etc/lighttpd/lighttpd.confserver.modules = ( "mod_access", "mod_pro...原创 2011-05-23 22:52:45 · 180 阅读 · 0 评论 -
Server Deployment - nginx
Server Deployment - nginx1. proxy configurationThe configuration file is /etc/nginx/nginx.conf, but I can change another file:>vi /etc/nginx/conf.d/easymarket.confconfiguration files:log_f...原创 2011-05-23 22:58:57 · 163 阅读 · 0 评论 -
ORB-SLAM3源码解析:现代C++特性与高性能编程实践
在计算机视觉与机器人领域,C++因其高性能和资源控制能力成为SLAM等实时系统的首选语言。现代C++通过智能指针、移动语义等特性,从根本上解决了传统C++中内存泄漏和性能瓶颈问题,提升了工程的可维护性和执行效率。这些技术价值在需要处理大量数据且对实时性要求极高的视觉SLAM系统中尤为突出。以ORB-SLAM3这一标杆开源库为例,其源码深度运用了智能指针进行资源管理,并巧妙利用移动语义优化性能,是学习现代C++工程实践的绝佳范本。本文将从这些基础概念切入,解析其在复杂系统中的具体应用与设计哲学。原创 2026-07-13 12:58:07 · 498 阅读 · 0 评论 -
Sillycat Framework(II)Enhancement of BeanFilter
Sillycat Framework(II)Enhancement of BeanFilter1. filter the bean properties2. consider the Map=null3. consider the property is POJO, and POJO is null4. consider the properties file loading ...原创 2011-05-25 22:53:14 · 141 阅读 · 0 评论 -
Spring3 and REST Integration(III)
Spring3 and REST Integration(III)7. Try to watch the data between the server and clientFirst of all, I add some header to the PersonController.groovy file, so that I can use GET HTTP method to g...原创 2011-01-26 17:38:20 · 146 阅读 · 0 评论 -
Spring3 and EJB Integration(I)EJB Client
Spring3 and EJB Integration(I)EJB ClientI used EJB client to call EJB stateless bean, I found it is waste time to lookup the stateless bean every time.So I tried to use spring to get singleton...原创 2011-01-28 10:48:54 · 191 阅读 · 0 评论 -
Spring3 and MDB Integration(I)Producer and Consumer
Spring3 and MDB Integration(I)Producer and Consumer1. configure JMS in JBOSSJBOSS_HOME/server/default/deploy/messaging/desinations-service.xmladd some content: queue/IUserQueue jboss....原创 2011-02-09 16:46:48 · 124 阅读 · 0 评论 -
Spring3 and MDB Integration(II)Listener
Spring3 and MDB Integration(II)Listener1. Configure the queue in JBOSSJBOSS_HOME/server/default/deploy/messaging/destinations-service.xml: queue/IUserQueue1 jboss.mq:service=DestinationM...原创 2011-02-09 18:03:53 · 139 阅读 · 0 评论 -
植物大战僵尸融合版实况解析:模组开发与塔防游戏创新
塔防游戏作为一种经典的游戏类型,其核心原理是通过策略布局防御单位来抵御敌人进攻。在游戏开发领域,模组技术为经典游戏注入了新的活力,通过修改游戏资源和脚本实现内容扩展。植物大战僵尸融合版正是模组开发的典型代表,它在保留原版核心玩法的基础上,引入了新植物角色和智能僵尸AI等创新机制。这种技术实现不仅提升了游戏的可玩性,也为游戏改版文化提供了实践范例。从工程实践角度看,模组开发需要平衡性设计和兼容性测试,确保游戏体验的流畅性。该融合版通过实况视频展示,为塔防游戏爱好者和模组开发者提供了宝贵的学习资源。原创 2026-07-15 10:54:28 · 368 阅读 · 0 评论 -
Srum and XP(1)中文版书籍了解
Srum and XP(1)中文版书籍了解 2. 怎样编写Product Backlogstory条目 IDNAMEImportance 重要性 Initial Estimate: story point man-dayHow to DemoNotes额外的可能字段Track 类别,eg:后台系统,优化Components 技术组件 数据库、服...原创 2011-09-19 15:28:05 · 125 阅读 · 0 评论 -
JWT无法防御CSRF与XSS攻击:原理剖析与纵深防御实战
在Web安全领域,身份认证与会话管理是保障应用安全的基础。JWT作为一种无状态、自包含的认证凭据传输格式,其核心原理是通过数字签名验证令牌的有效性,解决了分布式系统中的身份认证问题。然而,其技术价值在于认证而非全面的安全防护。CSRF攻击利用浏览器自动携带凭证的机制,诱导用户在已认证状态下发起非预期请求;XSS攻击则通过注入恶意脚本,直接威胁客户端存储环境的安全。这两种攻击分别针对请求来源的可信度和执行环境的安全性,属于不同的安全维度。因此,在实际应用场景中,仅依赖JWT无法构建完整防线,必须结合SameS原创 2026-06-17 11:21:24 · 386 阅读 · 0 评论 -
Linux Server Deployment(IV)SSH private/public key
Linux Server Deployment(IV)SSH private/public key1. generate the public/private keys for SSH on local server>ssh-keygen -t rsaEnter file in which to save the key(): Enter passphrase(empty f...原创 2011-06-22 00:00:15 · 146 阅读 · 0 评论 -
Spring3 and Annotation
Spring3 and AnnotationI use xml file to define the spring bean. Right now, I try to use annotation to do that.For the DAO java class, PersonDAOImpl.java:package com.sillycat.easyjpa.dao;...原创 2011-03-04 10:10:09 · 129 阅读 · 0 评论 -
AI绘画提示词框架实战:7套万能模板提升Stable Diffusion出图质量
AI绘画提示词是指导生成式AI模型创作图像的核心指令语言,其原理在于将自然语言描述转化为模型可理解的语义向量。在Stable Diffusion、Midjourney等主流平台中,精心设计的提示词能显著提升图像生成质量与可控性。从技术价值看,标准化的提示词框架降低了AI绘画的使用门槛,使开发者能快速实现人物肖像、场景设计、产品展示等多样化需求。在实际应用场景中,合理的提示词结构需包含主体描述、环境背景、艺术风格、画质参数等关键维度。本文基于AI绘画和Stable Diffusion两大热词,系统梳理了7套经原创 2026-07-10 09:38:57 · 429 阅读 · 0 评论 -
Monitor Directories and File(II)Timer and commons-vfs
Monitor Directories and File(II)Timer and commons-vfs1. Timer and TimerTaskThe Interface FileChangeListener.java:package com.xxxx.importdata.filemonitor.timer;public interface FileChangeList...原创 2011-07-04 14:27:06 · 135 阅读 · 0 评论 -
Monitor Directories and File(III)Multi Threads
Monitor Directories and File(III)Multi ThreadsReading a book named shaojinwensj recently and learn a lot from him.1. Basic ideasIf we want to start a thread, we need to give it a name.We n...原创 2011-07-04 23:45:00 · 142 阅读 · 0 评论 -
Monitor Directory and File(IV)Multi Threads
Monitor Directory and File(IV)Multi Threads1. Lock - Freesimple lock and freepackage com.xxxxxxx.importdata.filemonitor.multithreads;import java.util.concurrent.atomic.AtomicInteger;publ...原创 2011-07-04 23:46:11 · 350 阅读 · 0 评论 -
Check the port status of Win7 System
Check the port status of Win7 SystemIn the past I used to use 360 and QQ in my system.I think 360 is really helpful that It support GUI interface for all the useful daily system commands.But t...原创 2010-11-08 12:23:46 · 171 阅读 · 0 评论 -
Page Cache(I)ehcache
Page Cache(I)ehcache1. Theoryuser -----> page -----> filter ----> action ----> service ----> dao -------> database2. Configuration changestimeToIdleSeconds no requests for a time, eh...原创 2011-07-08 14:56:39 · 212 阅读 · 0 评论 -
Generate the SSH Key on Win7
Generate the SSH Key on Win7I just use SSH SecureCRT to do so.1. Menu [Tools] -----> [Key Generation Wizard]2. click [Next] and select the Key type: RSA, click [Next]3. We can type our ...原创 2011-07-25 12:33:41 · 173 阅读 · 0 评论 -
Sa-Token实战:Java轻量级权限认证框架解析与应用
权限认证是系统安全的核心组件,Java生态中常见的RBAC模型通过角色-权限映射实现访问控制。传统方案如Shiro和Spring Security虽然功能全面,但存在配置复杂的问题。轻量级框架Sa-Token采用简洁API设计,提供开箱即用的会话管理和权限控制能力,支持登录认证、单点登录等场景。其特色在于支持Redis分布式会话存储,通过注解式开发简化了权限验证流程,特别适合快速构建Spring Boot应用的鉴权模块。本文以Sa-Token为例,演示如何实现包括多端登录控制、接口权限拦截等企业级安全需求。原创 2026-07-16 10:22:49 · 418 阅读 · 0 评论
分享