摘要: 原文首发于我的微信公众号:GeekArtT. 将代码分层,当然是为了控制复杂度,让你的管理井井有条。那为什么非得要建立多个不同的独立文件夹,再创建不同的文件呢? 一个直接的考虑是,在同一个文件下,也就是同一个文本环境之下,当然会有非常大的自由度去增添代码,没有任何的条款限制。但同样是因为这样的“自由 阅读全文
posted @ 2017-03-22 13:53 kid551 阅读(11308) 评论(17) 推荐(32) 编辑
摘要: 原文首发于我的微信公众号:GeekArtT . 在计算机求和的过程中,一个大数和小数的相加会因为浮点数的有限精度,而导致截断误差的出现。所以在构建计算网格的时候,都要极力避免这样情形的发生,将计算统一在相对较近的数量级上。所以,当需要对一系列的数值做加法时,一个好的技巧是将这些数由大到小做排列,再逐 阅读全文
posted @ 2017-02-26 14:47 kid551 阅读(3418) 评论(2) 推荐(1) 编辑
摘要: This post is first posted on my WeChat public account: GeekArtT Reading source code is always one big part for software engineers. Just like the write 阅读全文
posted @ 2016-11-19 21:48 kid551 阅读(281) 评论(0) 推荐(0) 编辑
摘要: 原文发布于我的微信公众号: GeekArtT. 从CFA到如今的Data Science/Deep Learning的学习已经有一年的时间了。期间经历了自我的兴趣、擅长事务的探索和试验,有放弃了的项目,有新开辟的路线,有有始无终的遗憾,也有还在继续的坚持。期间有数不清的弯路、失落,有无法一一道明的挫 阅读全文
posted @ 2016-11-14 09:42 kid551 阅读(1138) 评论(0) 推荐(0) 编辑
摘要: Compare two branches: branch_1 and branch_2:git diff branch_1…branch_2Merge specified files of one branch(e.g. branch_name) into current branch:git ch... 阅读全文
posted @ 2015-09-29 15:25 kid551 阅读(253) 评论(0) 推荐(0) 编辑
摘要: JDK就是Java Development Kit。简单的说JDK是面向开发人员使用的SDK,它提供了Java的开发环境和运行环境。SDK是Software Development Kit 一般指软件开发包,可以包括函数库、编译程序等。 JRE是Java Runtime Enviroment是指Ja... 阅读全文
posted @ 2015-09-07 14:15 kid551 阅读(157) 评论(0) 推荐(0) 编辑
摘要: Concrete Operating Steps: As all the env variables will involve the directory of jdk, we can set the JAVA_HOME first. Then we can use the %JAVA_HOME%  阅读全文
posted @ 2015-09-07 13:54 kid551 阅读(317) 评论(0) 推荐(0) 编辑
摘要: On 32 bit WinOS:git config --global core.editor "'C:/Program Files/Notepad++/notepad++.exe' -multiInst -notabbar -nosession -noPlugin"On 64 bit Win OS... 阅读全文
posted @ 2015-08-07 16:00 kid551 阅读(546) 评论(0) 推荐(0) 编辑
摘要: FromJ2EEBlogerhttp://j2eeblogger.blogspot.com/2007/10/singleton-vs-multiton-synchronization.html1. Classic Java singleton synchronization problempubli... 阅读全文
posted @ 2015-07-17 11:26 kid551 阅读(361) 评论(0) 推荐(0) 编辑
摘要: From http://tutorials.jenkov.com/java-concurrency/synchronized.htmlBy Jakob JenkovA Java synchronized block marks a method or a block of code as synch... 阅读全文
posted @ 2015-07-17 11:21 kid551 阅读(219) 评论(0) 推荐(0) 编辑
摘要: The thumbrule of XPath:/child::lectures/child::lecture[@number='0']/child::lectures is the step part. (Generally, child:: can be omitted)child is the ... 阅读全文
posted @ 2015-07-16 23:44 kid551 阅读(116) 评论(0) 推荐(0) 编辑
摘要: Last Updated: JAN.10.2008From: http://safsdev.sourceforge.net/sqabasic2000/TestDesignGuidelines.htmPurposeApp Map and Test Table UTF-8 File EncodingsA... 阅读全文
posted @ 2015-06-17 11:52 kid551 阅读(169) 评论(0) 推荐(0) 编辑
摘要: In Java thread topic, the task to be executed and the thread to drive the taskare two concepts should be clarified. The working process is like the fo... 阅读全文
posted @ 2015-06-12 10:58 kid551 阅读(154) 评论(0) 推荐(0) 编辑
摘要: In Java, the String will have different usage.Example:public class Test { public static void main(String[] args) { String s1 = "accp"; String s2 ... 阅读全文
posted @ 2015-06-11 13:38 kid551 阅读(260) 评论(0) 推荐(0) 编辑
摘要: The way to startup official service command:php.exe -S localhost:80 阅读全文
posted @ 2015-06-08 13:22 kid551 阅读(135) 评论(0) 推荐(0) 编辑
摘要: JAVA_HOME error.Add environment variable ANDROID_STUDIO, which is the same as %JAVA_HOME%, but one more "\". 阅读全文
posted @ 2015-05-14 22:55 kid551 阅读(151) 评论(0) 推荐(0) 编辑
摘要: There're many deployment files for configuration. We need to learn how SAFS read these depolyment files.Let's use the IBT as the a smallexample for re... 阅读全文
posted @ 2015-04-15 16:19 kid551 阅读(184) 评论(0) 推荐(0) 编辑
摘要: In the org.safs.model, the class Component stores:information of this component's namereference of its parent, also a componentprivate String _name;pr... 阅读全文
posted @ 2015-04-09 12:16 kid551 阅读(196) 评论(0) 推荐(0) 编辑
摘要: From Thinking in Java 4th Edition.泛型实现了:参数化类型的概念,使代码可以应用于多种类型。“泛型”这个术语的意思是:“适用于许多许多的类型”。如果你了解其他语言(例如: C++)中的参数化类型机制,你就会发现,有些以前能做到的事情,使用Java的泛型机制却无法做到。... 阅读全文
posted @ 2015-04-03 21:44 kid551 阅读(324) 评论(0) 推荐(0) 编辑
摘要: From Head First Design Patterns.Design Principle:Idnetify the aspects of your application that vary and separate them from what stays the same.Here's ... 阅读全文
posted @ 2015-04-03 10:57 kid551 阅读(374) 评论(0) 推荐(0) 编辑
摘要: Symbols of String Pattern Matching in Introduction to Algorithms.As it's important to be clear whendiscussing the problem of string matching, we can u... 阅读全文
posted @ 2015-04-02 10:43 kid551 阅读(168) 评论(0) 推荐(0) 编辑
摘要: SampleModel 取样模型Databuffer 数据缓冲区Raster 光栅Sample 样本band 带SampleModel是java awt中的一个抽象类,它定义了一个接口,用于提取一幅图像中的像素(pixel)的样本(Sample)。一幅图像包含了许多数据,而所有的数据是以像素为基本单... 阅读全文
posted @ 2015-03-30 13:42 kid551 阅读(275) 评论(0) 推荐(0) 编辑
摘要: Two dimensional pattern matching.Details may be added later....Corresponding more work can be found in Pattern Matching and Text Compression Algorithm... 阅读全文
posted @ 2015-03-27 16:44 kid551 阅读(199) 评论(0) 推荐(0) 编辑
摘要: The function used here is from the leetcode. Details can be found in leetcode problem: Implement strStr()The best explanation should be made in the co... 阅读全文
posted @ 2015-03-26 23:06 kid551 阅读(228) 评论(0) 推荐(0) 编辑
摘要: From Thinking in Java 4th Edition持有对象// Simple container example (produces compiler warnings.)// {ThrowsException}import java.util.*;class Apple { pri... 阅读全文
posted @ 2015-03-19 22:52 kid551 阅读(452) 评论(0) 推荐(0) 编辑
摘要: From Thinking in Java 4th Edition并发线程可以驱动任务,因此你需要一种描述任务的方式,这可由Runnable接口来提供。要想定义任务,只需要实现Runnable接口,并编写run()方法,使得该任务可以执行你的命令。public class LiftOff imple... 阅读全文
posted @ 2015-03-19 22:52 kid551 阅读(161) 评论(0) 推荐(0) 编辑
摘要: From Thinking in Java 4th EditionString对象是不可变的。String类中每一个看起来会修改String值的方法,实际上都是创建了一个全新的String对象,以包含修改后的字符串内容。而最初的String对象则丝毫未动:import static net.mind... 阅读全文
posted @ 2015-03-19 22:52 kid551 阅读(170) 评论(0) 推荐(0) 编辑
摘要: From Thinking in Java 4th EditionRTTI(Run-Time Type Information),运行时类型信息,使得你可以在程序运行时发现和使用类型信息。对RTTI的需要,揭示了面向对象设计中许多有趣(并且复杂)的问题,同时也提出了如何组织程序的问题。Java是如何... 阅读全文
posted @ 2015-03-19 22:52 kid551 阅读(183) 评论(0) 推荐(0) 编辑
摘要: From Thinking in Java 4th Editionfinal1. 对于基本类型,final使数值恒定不变2. 对于对象引用,final使引用恒定不变,即不能指向别的对象,但指向的对象本身可以改变(The same for array in Java)import java.util.... 阅读全文
posted @ 2015-03-19 22:51 kid551 阅读(192) 评论(0) 推荐(0) 编辑
摘要: From Thinking in Java 4th Edition内部类public class Parcel1 { class Contents { private int i = 11; public int value { return i;} } class Destination {... 阅读全文
posted @ 2015-03-19 22:51 kid551 阅读(249) 评论(0) 推荐(0) 编辑
摘要: From Thinking in Java 4th Edition除了static方法(它是针对类调用的,并不依赖于对象的存在),方法只有通过对象才能被调用,且这个对象必须能执行这个方法调用。当声明一个事物是static时,就意味着这个域或方法不会与包含它的那个类的任何对象实例关联在一起。有一个特定... 阅读全文
posted @ 2015-03-19 22:50 kid551 阅读(314) 评论(0) 推荐(0) 编辑
摘要: 1. Quick Sort: 命名良好的Java版本: 2. Search in Rotated Array: 3. Maximum Subarray: 阅读全文
posted @ 2015-03-09 09:21 kid551 阅读(170) 评论(0) 推荐(0) 编辑
摘要: Problem StatementGive two string $s_1$ and $s_2$, find the longest common substring (LCS). E.g: X = [111001], Y = [11011], the longest common substrin... 阅读全文
posted @ 2015-03-08 10:51 kid551 阅读(208) 评论(0) 推荐(0) 编辑
摘要: 通过修饰键来查看像command、option、control、shift这些按键在Mac下叫做修饰键,一般情况下他们大都用来辅助输入或者用作快捷键的修饰键。打开“系统偏好设置”,点击“键盘→键盘→修饰键”即可看到这些修饰键,如caps lock 是⇪,control是⌃,option是⌥,comm... 阅读全文
posted @ 2015-02-06 10:25 kid551 阅读(753) 评论(0) 推荐(0) 编辑
摘要: Notes from Exploring ElasticSearchThe installation of Elasticsearch is very simple. It's a server for processing texts.Elasticsearch is a standalone J... 阅读全文
posted @ 2015-02-04 21:10 kid551 阅读(1472) 评论(0) 推荐(0) 编辑
摘要: Notes from The C Programming LanguageA decimal point in a constant indicates that it is floating point, however, so $5.0/9.0$ i not truncated because ... 阅读全文
posted @ 2015-02-02 20:46 kid551 阅读(330) 评论(0) 推荐(0) 编辑
摘要: Notes from C++ PrimerAssociative containers differ in fundamental respect from the sequential containers: elements in associative containers are store... 阅读全文
posted @ 2015-02-02 11:19 kid551 阅读(216) 评论(0) 推荐(0) 编辑
摘要: Notes from C++ Primerstack and queue: based on dequepriority_queue: based on vectorStandard library provides three kinds of sequential adaptors: queue... 阅读全文
posted @ 2015-02-02 10:00 kid551 阅读(261) 评论(0) 推荐(0) 编辑
摘要: Notes from C++ PrimerOperationsOperations of string support lots of operations ofsequential container.string s; define a new empty string object, name... 阅读全文
posted @ 2015-01-31 21:54 kid551 阅读(310) 评论(0) 推荐(0) 编辑
摘要: Notes from C++ PrimerInitialize container by iteratorWhen copy a container to another, the containertype and element type must be match at the same ti... 阅读全文
posted @ 2015-01-28 11:36 kid551 阅读(184) 评论(0) 推荐(0) 编辑