现在位置: 首页 > extruder发表的所有文章
  • 11月
  • 06日
综合 ⁄ 共 4145字 评论关闭
The E-pang Palace Time Limit: 2000/1000 MS (Java/Others)    Memory Limit: 512000/512000 K (Java/Others) Total Submission(s): 1073    Accepted Submission(s): 766 Problem Description E-pang Palace was built in Qin dynasty by Emperor Qin Shihuang in Xianyang, Shanxi Province. It was the largest palace ever built by human. It was so large and so magnificent that after many years of construction, it still was not completed. Building the great wall, E-pang Palace and Qin Shihuang's tomb cost s......
阅读全文
  • 09月
  • 25日
综合 ⁄ 共 1627字 评论关闭
•Just like all request handlers, update handlers can be mapped to a specific URL and have their own set of default or invariant parameters. • Each update handler can have it’s own Update Processor Chain that can do Document-level operations prior to indexing, or even redirect indexing to a different server or create multiple documents (or zero) from a single one. • All of the configuration is declarative, including the specification of update processor chains. Lucene/Solr plugins ......
阅读全文
  • 09月
  • 07日
综合 ⁄ 共 6333字 评论关闭
动画专题研究 一 动画效果编程基础--AnimationAndroid 动画类型 Android的animation由四种类型组成 XML中 alpha 渐变透明度动画效果 scale 渐变尺寸伸缩动画效果 translate 画面转换位置移动动画效果 rotate 画面转移旋转动画效果 JavaCode中 AlphaAnimation 渐变透明度动画效果 ScaleAnimation 渐变尺寸伸缩动画效果 TranslateAnimation 画面转换位置移动动画效果 RotateAnimation 画面转移旋转动画效果 Android动画模式 Animation主要有两种动画模式:一种是tweened animation(渐变动画) XML中 ......
阅读全文
  • 02月
  • 24日
综合 ⁄ 共 1562字 评论关闭
题目链接~~>                     这题开始用搜索过了,但是看别人代码用递归而且比搜索时间短,还可以用dp和母函数做。 方法一:               递归思想:                (1):当盘子数为1的时候,只有一种放法就是把所有苹果放到一个盘子里。        (2):当苹果数为1的时候,也只有一种放法,注意题目中说明,盘子之间并无顺序,所以不管这个苹果放在哪个盘子里,结果都算一个。        (3):当m<n时,因为此时最多只能放到m个盘子中去(一个里放一个),实际上就相当于把m个苹果放到m个盘子里一样,也就是f(m,m);     ......
阅读全文
  • 08月
  • 13日
综合 ⁄ 共 16387字 评论关闭
  On this tutorial we will demonstrate how to setup Struts 2 in Eclipse, and make it work with Spring, Java Persistence API (using Hibernate) and Struts 2 Ajax tags. NOTE: Following this tutorial verbatim will require use of a Struts 2 deployment greater than 2.0.3 Show me the code You can just download the zipped Eclipse project, add the required dependencies to the lib folder under the /WebContent/WEB-INF/lib folder (relative to project's root folder) and import it into Eclipse. Prereq......
阅读全文
  • 05月
  • 18日
综合 ⁄ 共 1265字 评论关闭
在Android系统中有时候会遇到调用系统相机拍照的需求,然而拍照之后,经常性的会遇到一个问题就是,照片自己旋转了一定的角度,拿我刚遇到的三星手机来说吧,照片自动向左旋转了90度,这个就很令人惆怅啊,因为这个之前有过一定的了解,所以解决起来也相对容易一些,总的思路就是,先获取照片转了多少度,然后。。。给它旋转回来。。。时间所限,先把核心的代码贴出来吧: /** * 读取图片旋转了的角度--EricTang * * @param path图片保存路径 * @return degree图片旋转了的角度 */ public static in......
阅读全文
  • 05月
  • 03日
综合 ⁄ 共 857字 评论关闭
这个例子是一个撞球系统,碰撞部分也值得学习,不过最重要的还是其配置部分,配置文件为config.txt,其中包括: Requirements:所需配置 propertyset:预定义的设置,通过名字引用,例子文件中没有 AudioVendor:音频设置 DisplayVendor:视频设置,也是这个例子中最主要的部分,根据不同的显卡制造商(VendorId),不同的设备号(DeviceId),然后根据驱动版本号、操作系统版本等信息做一些设置。 上面提到的设置通过调用游戏中的相应接口设置,保存在CONFIGTABLE ConfigTable中 比如 例1 3DFX DisplayVendor = 0x121a  "3dfx" 0x......
阅读全文
  • 04月
  • 06日
综合 ⁄ 共 13747字 评论关闭
开发语言:C/C++ 实现功能: MD5加密及HMAC-MD5加密 下载地址: HMAC-MD5.zip 更新历史: V1.1 2010年05月08日 增加输出BASE64编码字符串接口。 V1.0 2010年04月15日 完成正式版本。 接口函数: MD5_Hash HMAC_MD5_Hash MD5_BASE64 HMAC_MD5_BASE64 源文件: HMAC_MD5_API.h [cpp] view plaincopy /* ----------------------------------------------------------  文件名称:HMAC_MD5_API.h    作者:秦建辉    MSN:splashcn@msn.com    当前版本:V1.1    历史版本:      V......
阅读全文
  • 04月
  • 03日
综合 ⁄ 共 339字 评论关闭
最近发现myeclipse10中有几处bug       比如: Cannot return from outside a function or method                    onClick="return check();"出现错误等等       本人略总结了一点小方法,供参考:       方法一:window -->preferences -->myeclipse -->validation -->javascript validator for Js    files 把Bulid 复选框的勾去掉 就行了 如下图所示: 方法二: 在所建立的工程项目中右键单击,找到myeclipse-->Exclude Form Validation单击一下,打上√号,即可看到奇迹出现哦,js的错误已经没......
阅读全文
  • 02月
  • 05日
综合 ⁄ 共 1318字 评论关闭
 第一次接触Android,自己写的代码,光搭建环境用了一天,先是在myeclipse9.0中,发现连接不了myeclipse官网,安装不了adt,郁闷,这天朝,连学习的网站也封 开始用代理,发现能上网站,但是更新不了插件,没办法,换成eclipse ,这东西绿色的,挺不错,第一个程序,鼓励一下吧   HelloWord代码:   public class HelloWorld extends Activity { /** Called when the activity is first created. */ @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); //设置该Activi......
阅读全文
  • 12月
  • 28日
综合 ⁄ 共 3910字 评论关闭
  #include <unistd.h>; #include <sys/types.h>; main () {     pid_t pid;          pid=fork();          if (pid < 0)                  printf("error in fork!");          else if (pid == 0)                  printf("i am the child process, my process id is %dn",getpid());          else                  printf("i am the parent process, my process id is %dn",getpid()); } 结果是 [root@localhost c]# ./a.out i am the child process, my process id is 4286 i am the parent ......
阅读全文
  • 12月
  • 12日
综合 ⁄ 共 5314字 评论关闭
特征选择常用算法综述 Posted on 2011-01-02 14:40 苍梧 阅读(12458) 评论(11) 编辑 收藏  1 综述 (1) 什么是特征选择 特征选择 ( Feature Selection )也称特征子集选择( Feature Subset Selection , FSS ) ,或属性选择( Attribute Selection ) ,是指从全部特征中选取一个特征子集,使构造出来的模型更好。   (2) 为什么要做特征选择        在机器学习的实际应用中,特征数量往往较多,其中可能存在不相关的特征,特征之间也可能存在相互依赖,容易导致如下的后果: Ø  特征个数越多,分析特征、训练模型所需的时间就越长。......
阅读全文