现在位置: 首页 > thatcher发表的所有文章
  • 03月
  • 12日
web前端 ⁄ 共 1877字 评论关闭
sftp automation script   一觉亮天   If you want to download or upload some files from several sftp server, and the files have pattern in common, some kinds of tools to automate the process is meaningful. I give an example script to make this thing happen.   /code begin #get.sh ips="10.68.104.205 10.68.104.206 / 10.68.104.207 / 10.68.104.208 / 10.68.104.155 / 10.68.104.156 / 10.68.104.157 / 10.68.104.158 / 10.68.104.159 / 10.68.104.160"     usr=sc   for ip in $ips; do            sftp -bb......
阅读全文
  • 05月
  • 25日
综合 ⁄ 共 4436字 评论关闭
Summary of both papers (see Reading) The first paper proposes to use ML classification techniques to do fast keypoint matching. Time will be spent in offline training and resulting in a shorter matching time. They found that Randomized Trees is a good candidate. It supports multi-class classification and by experiment they give good matching results. If the node-split-criteria is chosen randomly also (Extreme Randomize Trees?), not only the training time be reduced, but also better matchi......
阅读全文
  • 04月
  • 29日
综合 ⁄ 共 1231字 评论关闭
一个由c/c++编译的程序占用的内存分为以下几个部分: 1、栈区(stack)— 由编译器自动分配释放 ,存放函数的参数值,局部变量的值等。其操作方式类似于数据结构中的栈。  2、堆区(heap) — 一般由程序员分配释放, 若程序员不释放,程序结束时可能由OS回收 。注意它与数据结构中的堆是两回事,分配方式倒是类似于链表,呵呵。  3、全局区(静态区)(static)—,全局变量和静态变量的存储是放在一块的,初始化的全局变量和静态变量在一块区域, 未初始化的全局变量和未初始化的静态变量在相邻的另一块区域。 - 程序结束后有系统释......
阅读全文
  • 04月
  • 24日
综合 ⁄ 共 978字 评论关闭
Problem Description Given a positive integer N, you should output the most right digit of N^N.   Input The input contains several test cases. The first line of the input is a single integer T which is the number of test cases. T test cases follow. Each test case contains a single positive integer N(1<=N<=1,000,000,000).   Output For each test case, you should output the rightmost digit of N^N.   Sample Input 2 3 4   Sample Output 7 6 Hint In the first case, 3 * 3......
阅读全文
  • 04月
  • 20日
综合 ⁄ 共 7782字 评论关闭
1.如何学习程序设计?   JAVA是一种平台,也是一种程序设计语言,如何学好程序设计不仅仅适用于JAVA,对C++等其他程序设计语言也一样管用。有编程高手认为,JAVA也好C也好没什么分别,拿来就用。为什么他们能达到如此境界?我想是因为编程语言之间有共通之处,领会了编程的精髓,自然能够做到一通百通。如何学习程序设计理所当然也有许多共通的地方。   1.1 培养兴趣   兴趣是能够让你坚持下去的动力。如果只是把写程序作为谋生的手段的话,你会活的很累,也太对不起自己了。多关心一些行业趣事,多想想盖茨。不是提倡天天做白日......
阅读全文
  • 04月
  • 05日
综合 ⁄ 共 6885字 评论关闭
The Multilingual User Interface (MUI) allows users to change the language of the user interface (UI). Using MUI, you can generate a single run-time image for multiple target languages and markets.   You can include the Multilingual User Interface (MUI) Catalog item in your OS design by choosing the item from the Catalog. Choosing this Catalog item sets the appropriate Sysgen variable for enabling MUI.   MUI Font Linking Describes how to include fonts in your run-time image so that the......
阅读全文
  • 03月
  • 22日
综合 ⁄ 共 2925字 评论关闭
文章目录 预编译 预编译的优点 预编译的核心代码 预编译的简单范例 预编译的拓展范例一(SQL查询) 预编译的拓展范例二(SQL增添、删除、修改) 预编译 SQL 语句被预编译并存储在 PreparedStatement 对象中。然后可以使用此对象多次高效地执行该语句。 预编译的优点 1、PreparedStatement是预编译的,对于批量处理可以大大提高效率. 也叫JDBC存储过程。 2、使用 Statement 对象。在对数据库只执行一次性存取的时侯,用 Statement 对象进行处理。PreparedStatement 对象的开......
阅读全文
  • 03月
  • 17日
综合 ⁄ 共 2281字 评论关闭
无向图的最大独立轨。 独立轨:设A、B是无向图G的两个顶点,从A到B的两条没有公共内部顶点的路径互称为独立轨。A到B的独立轨的最大条数,记作P(A,B)。 设A、B是无向图G的两个不相邻的顶点,最少要删除多少个顶点才使得A和B不再连通?答案是P(A,B)个。 关于无向图G顶点连通度K(G)与顶点独立轨之间的关系。 Menger定理: K(G) = |V(G)| - 1 当G是完全图。 K(G) = min(P(A,B))当G不是完全图。 求P(A,B)方法如下。 (1)为了求P(A,B),需要构造一个容量网络。  1、原图G中的每个顶点v变成网络N中的两个顶点v'和v'',顶点v'到v......
阅读全文
  • 03月
  • 16日
综合 ⁄ 共 3301字 评论关闭
赫夫曼编码是一种可变字长的编码,出现概率高的字符用较短的编码、出现概率低的字符用较长的编码,这使得编码之后字符串的平均期望长度降低,从而达到无损压缩数据的目的。赫夫曼树一种带权路径长度最短的二叉树。假设5个叶子节点a(w=4),b(w=2),c(w=3),d(w=5),e(w=2),其中w表示叶子节点的权值,这5个叶子节点可以形成多个二叉树其中一个带权路径长度最短的二叉树,就是赫夫曼树。 图1,图2,图3是上面的5个叶子节点所形成的二叉树中的三种,其中图1是赫夫曼树。图1中:a的路径长度为2,b的路径长度为3,c的路径长度为2,d的路径长......
阅读全文
  • 01月
  • 31日
综合 ⁄ 共 4777字 评论关闭
引自:http://wenda.tianya.cn/wenda/thread?tid=4ac8f95e267fb4f0 对接口编程 "对接口编程"是面向对象设计(OOD)的第一个基本原则。它的含义是:使用接口和同类型的组件通讯,即,对于所有完成相同功能的组件,应该抽象出一个接口,它们都实现该接口。具体到JAVA中,可以是接口(interface),或者是抽象类(abstract class),所有完成相同功能的组件都实现该接口,或者从该抽象类继承。我们的客户代码只应该和该接口通讯,这样,当我们需要用其它组件完成任务时,只需要替换该接口的实现,而我们代码的其它部分不需要改变! ......
阅读全文
  • 01月
  • 25日
综合 ⁄ 共 26218字 评论关闭
This page explains common techniques to deal with theSession and transactions in Hibernate applications. Refer to the Hibernate reference documentation and the "Transactions and Concurrency" chapter for more information. This page describes Hibernate 3.1.x and code shown here does not work in older versions. Unit of Work Transactions The scope of a unit of work Transaction demarcation with JTA Transaction demarcation with plain JDBC Transaction demarcation with EJB/CMT Custom transac......
阅读全文
  • 01月
  • 22日
综合 ⁄ 共 2453字 评论关闭
本文用 P750 和 P780 系统作为示例来讨论 POWER7 芯片架构和功能。   POWER7 芯片和缓存的异质性 POWER7 芯片架构构建于性能领先的 POWER6® 之上延续了 IBM 的分化。POWER7 在每一个芯片或插槽上增加了处理器内核密度,改进了多线程支持,并且改进了内核内存带宽(下面介绍)。这种芯片设计能产生比 POWER6 还要高的性能。 多核和动态线程的可用性允许 POWER7 支持在 WebSphere Commerce 服务器应用程序上运行大量 Java 虚拟机(JVM)。POWER7 芯片最高支持 8 个处理器内核,每一个有 4 通道 SMT。这相当于在一个芯片或插槽上支......
阅读全文