现在位置: 首页 > freehold发表的所有文章
  • 10月
  • 12日
操作系统 ⁄ 共 717字 评论关闭
redhat enterprise linux as4 update 8 最新版本下载: http://www.im286.com/thread-3776045-1-1.html http://www.crack.ms/cracks/r_4.shtml       http://rhel.ieesee.net/uingei/RHEL4.8-i386-AS-DVD.iso   http://rhel.ieesee.net/uingei/RHEL4.8-x86_64-AS-DVD.iso   RHEL 4 update 8 五月份已经release, 提供一个可以下载的地址: RHEL4.8-i386-AS-DVD.iso                            19-Jun-2009 10:32          2368049152RHEL4.8-i386-AS-DVD.iso.MD5SUM                     19-Jun-2009 10:16                  58......
阅读全文
  • 02月
  • 17日
综合 ⁄ 共 7990字 评论关闭
A. Watching a movie time limit per test 1 second memory limit per test 256 megabytes input standard input output standard output You have decided to watch the best moments of some movie. There are two buttons on your player: Watch the current minute of the movie. By pressing this button, you watch the current minute of the movie and the player automatically proceeds to the next minute of the movie. Skip exactly x minutes of the movie (x is some fixed positive integer). If the......
阅读全文
  • 12月
  • 16日
综合 ⁄ 共 3012字 评论关闭
射线:射线是3D世界中一个点向一个方向发射的一条无终点的线,在发射轨迹中与其他物体发生碰撞时,它将停止发射 。用途:在unity中射线应用范围比较广, 多用于碰撞检测(如:子弹飞行是否击中目标)、角色移动 等。 相关API: 1、Ray Camera.main.ScreenPointToRay(Vector3 pos)   返回一条射线Ray从摄像机到屏幕指定一个点 2、Ray Camera.main.ViewportPointToRay(Vector3 pos)  返回一条射线Ray从摄像机到视口(视口之外无效)指定一个点 3、Ray 射线类  4、RaycastHit 光线投射碰撞信息 5、bool Physics.Raycast(Vector......
阅读全文
  • 08月
  • 05日
综合 ⁄ 共 1233字 评论关闭
  文件检测操作 是否存在同名文件 -e 文件名 die "Oops! A file called '$filename' already exists.\n"   if -e $filename; 文件多少天内被修改 -M 文件句柄 warn "file is looking pretty old!\n"   if -M CONFIG > 28; 文件〉100k,且90天内未被访问 if -s $filename > 100_100 and -A $filename > 90; -r 可读 -w 可写 -x 可执行 -o 所有 -R W X O 分别对real user/group 可读/写/执行/所有 -e 文件/目录存在 -z 文件存在,大小为0 -s 文件/目录存在,大小大于0 -f 普通文本 -d 目录 -l 符号链接 -S socket -p 为管道......
阅读全文
  • 06月
  • 09日
综合 ⁄ 共 414字 评论关闭
原问题描述:android 的ListView中,如何判断其内容已滚动到最顶部或者最底部? 解决方案: 根据这个方法检测: getListView().setOnScrollListener(new OnScrollListener() { @Override public void onScrollStateChanged(AbsListView view, int scrollState) { } @Override public void onScroll(AbsListView view, int firstVisibleItem, int visibleItemCount, int totalItemCount) { if(firstVisibleItem==0){ Log.e("......
阅读全文
  • 04月
  • 20日
综合 ⁄ 共 5991字 评论关闭
学什么? 有些人对什么都感兴趣,硬盘上存着几百G的教学视频电子书破解软件,却只是仅仅保存着,没有转化成知识。有些人只知道自己刚进公司的那点东 西,JDK一定要1.4.2,VC++一定要6.0,系统一定要WindowsXP,否则就是大逆不道。前一种是不知道自己想要什么,后一种是固步自封眼 界短浅,都不是一个程序员应该有的学习态度。 常见的程序员有Windows桌面开发,Linux服务器开发,Web前端开发,DB数据库相关,游戏服务器端开发,游戏客户端开发,RIA开发 (如flash、silverlight),移动开发(这个现在最火了尤其是Android和iOS)......
阅读全文
  • 04月
  • 06日
综合 ⁄ 共 278字 评论关闭
request.getRealPath("") 这个方法已经不推荐使用了,那代替它的是什么方法 Deprecated. As of Version 2.1 of the Java Servlet API, use ServletContext.getRealPath(java.lang.String) instead. request.getSession().getServletContext().getRealPath() 得到站点的绝对地址 原文地址:http://blog.csdn.net/bryanliu1982/archive/2006/05/22/748826.aspx
阅读全文
  • 04月
  • 03日
综合 ⁄ 共 3038字 评论关闭
转自:http://www.lingdonge.com/seo/672.html 字符串相似度算法又叫编辑距离算法 Levenshtein Distance), 就评判2个字符串之间相似程度的一个东西,平时在搜索引擎和验证码识别中用处特别明显。 比如我们用采集来处理文章。可以拿关键词去做相似性判断,找到最匹配程度高的文章来采集。等等都可以使用这种算法。 下面转自其它博文 编辑距离,又称Levenshtein距离(也叫做Edit Distance),是指两个字串之间,由一个转成另一个所需的最少编辑操作次数,如果它们的距离越大,说明它们越是不同。许可的编辑操作包括将一个字符替换......
阅读全文
  • 04月
  • 02日
综合 ⁄ 共 2165字 评论关闭
统计语言模型 假设一个句子S可以表示为一个序列S=w1w2…wn,语言模型就是要求句子S的概率P(S): 这个概率的计算量太大,解决问题的方法是将所有历史w1w2…wi-1按照某个规则映射到等价类S(w1w2…wi-1),等价类的数目远远小于不同历史的数目,即假定: N-Gram模型 当两个历史的最近的N-1个词(或字)相同时,映射两个历史到同一个等价类,在此情况下的模型称之为N-Gram模型。 N-Gram模型被称为一阶马尔科夫链。 N的值不能太大,否则计算仍然太大。 根据最大似然估计,语言模型的参数: 其中,C(w1w2…wi)表示w1w2…wi在训练数据......
阅读全文
  • 02月
  • 21日
综合 ⁄ 共 2145字 评论关闭
Hie with the Pie Time Limit: 2000MS   Memory Limit: 65536K Total Submissions: 4646   Accepted: 2457 Description The Pizazz Pizzeria prides itself in delivering pizzas to its customers as fast as possible. Unfortunately, due to cutbacks, they can afford to hire only one driver to do the deliveries. He will wait for 1 or more (up to 10) orders to be processed before he starts any deliveries. Needless to say, he would like to take the shortest route in delivering these goodies an......
阅读全文
  • 02月
  • 09日
综合 ⁄ 共 10149字 评论关闭
                 TCP 学习笔记  --- Kindda Hu                                          08.12.15  jintao.hu@accton.com.cn   Reference: TCP/IP详解卷一/ RFC793 /   以下是个人总结, 语言方面若有看不习惯请见谅. 还有几点不明白之处请指教,请参考#Issues to be comfired. 若本人总结有错误之处,请各位及时指出并告知.     ########## TCP Header ###################    TCP Header Format 20Bytes     ##########  TCP 基本传输流程#################                                               Sender A --------......
阅读全文
转:http://www.blogjava.net/sterning/archive/2010/12/30/342005.html   The AndroidManifest.xml File  <activity android:windowSoftInputMode=["stateUnspecified",                                     "stateUnchanged", "stateHidden",                                     "stateAlwaysHidden", "stateVisible",                                     "stateAlwaysVisible", "adjustUnspecified",                                     "adjustResize", "adjustPan"] …… > </activity> attributes: android......
阅读全文