- 博客(58)
- 收藏
- 关注
原创 Python 归递 with Decorator 修饰器
Just found out that comments in CSDN does not work for me, and others:https://blog.csdn.net/qq_33696345/article/details/87894969https://blog.csdn.net/tangdou5682/article/details/52351604no matte...
2020-02-06 02:45:18
173
原创 AWS Server Selection
How to Set up a General Purpose Server on AWSSeveral comparisons have to be done for server selections. EC2 is built on top of AWS Nitro System (No need to know the details).There are other products...
2020-01-21 13:06:33
922
原创 Facebook's Hydra
Facebook’s HydraConfiguration is always essential for any programming language. Spring’s configuration is the best and perfect solution for Java. In Python, there is no comparable solution. Facebook’...
2020-01-20 11:10:25
198
原创 How to design a bowling scoreboard
I just saw this post: http://www.iteye.com/topic/1112383 titled as OO 还是 procedural 小程序的设计. It's kind of interesting. First, I love bowling (though just average player), secondly, it's a good ...
2011-07-22 23:26:11
223
原创 JPA & XA
After I wrote a blog about Spring & JPA settings: http://jellyfish.iteye.com/admin/blogs/899281, a friend asked me a question about XA on JPA. Last time I did XA was the year 2002, so I figure...
2011-02-10 12:15:12
300
Tetris Swing implementation
Recently, I've seen an interesting post: http://www.iteye.com/topic/595321, it's a java implementation of Tetris. While being a long time game player (My first game was the gold digger on an IBM XT ...
2011-02-05 11:04:59
137
Spring & JPA with Hibernate and EclipseLink
This is to show how to setup JPA with Spring, using Hibernate and EclipseLink respectively. We are not talking about ORM, which is a separate topic. So I am going to use a simple POJO. First, let'...
2011-01-29 03:55:31
146
Spreadsheet Dependency graph
In spreadsheets, such as Excel, we can write simple formules like the following: Here C4 = A3 + A5, so if A3=5 and A5=7, then C4=12. If we change A3 to 6 and hit enter, then C4 is automatical...
2010-11-19 03:00:56
181
原创 国王和100个囚犯
http://www.iteye.com/topic/569275 A simple google on "100 prisoners riddle" yields the following two insights: http://www.algonet.se/~ug/projects/lightbulb/http://www.ocf.berkeley.edu/~wwu/p...
2010-09-18 04:58:56
187
visit 淘宝面试题:如何充分利用多核CPU,计算很大的List中所有整数的和
I've seen these two:http://www.iteye.com/topic/711162?page=13http://www.iteye.com/topic/713259 But I am not sure whether I missed something or the majority missed something. Though the chancee...
2010-07-16 00:11:42
156
原创 Revisit again: 一道应聘智力题的编程求解, Einstein puzzle
Continue on: http://jellyfish.iteye.com/admin/blogs/610841, but this time we take a different approach, using ranged variables. First, define all the attributes we need with a range. The reason we...
2010-06-30 04:30:32
145
Revisit 一道应聘智力题的编程求解, Einstein puzzle
Another brain teaser, titled 一道应聘智力题的编程求解, http://www.iteye.com/topic/608112. This is the Einsten's puzzle. There are a few variations but the puzzle is the same. The consensus is that the...
2010-03-09 00:36:07
229
原创 Javascript charting tool
My minimal requirements:freetheme customizable, including fg/bd colors, axisescan draw > 1 graphscan show data on the graphs(tooltips, e.g.) Flot: http://code.google.com/p/flot/ good an...
2010-02-09 06:36:39
125
原创 General web site design
Here are the considerations of general web site design: 1. Color theme: There is a color theory, namely using "compatible" colors. For example, http://www.hypergurl.com/colormatch.php. 2. mas...
2010-01-22 23:38:10
369
原创 Flot example
Flot is an open source javascript charting tool. I need to plot an interest rate curve in a web page, so the x-axis is date. Here is an example modified from the file interacting.html in the flot ...
2010-01-22 23:18:58
138
原创 Rounded Corners using CSS
In web applications, one of the markups/decorations is rounded corners. There are a lot of ways to do this, e.g., http://www.devwebpro.com/25-rounded-corners-techniques-with-css/. Recently, I...
2010-01-22 22:59:27
139
原创 Domain Driven Design
Having read a lot of discussion on DDD, I feel there is a misleading perception. Anyhow, this is just my experience. Most of the discussion and examples in the DDD discussion are related to databa...
2010-01-16 02:42:22
135
原创 Lesson on complex number object
Complex numbers, such as 2 + 5i where i = sqrt(-1), have extensive applications in math and physics. So it deserves an another look itself. In this note, I'll go through the decisions I make in the de...
2010-01-14 04:49:15
129
原创 用java解决百度之星移动火柴的问题 part 1
Recently, I saw a post: http://www.iteye.com/topic/399628 Though I am too busy at work, can't help to spare some time on this subject becauseIt is a small enough topic to talk about how to ...
2009-06-09 02:24:28
235
原创 用java解决百度之星移动火柴的问题 part 2
The next task is to evaluate a given expression. A simple way is to build a generic evaluator for the simple math expression we are dealing with. In fact, building a parser for +, -, /, * and ^(for po...
2009-06-09 02:07:29
197
Caches
Distributed Caches:http://www.danga.com/memcached/ Tangosol - distributed, commercialJBoss cachegemstoneswarmbambooLocal Caches:oscacheehcachejcsjcacheCache API abstraction:get(key)put...
2007-07-13 21:56:15
177
General Computing
Language:http://caml.inria.fr/index.en.htmlhttp://www.r-project.org/Testing:http://www-128.ibm.com/developerworks/java/library/j-cwt02095/ - Java coverageAOP:https://dynaop.dev.java.net/
2007-07-13 08:33:46
123
ORM links
http://orm.net/overview.htmlhttp://www.objectrolemodeling.com/Home/tabid/1/Default.aspx
2007-07-13 08:21:39
96
Spring links
http://blog.springframework.com/rob/archives/2005/12/17/tse-slides-for-advanced-mvc-scheduling-and-jmx-presentations/
2007-07-13 08:11:45
94
JSE links
Tutorials:http://javaboutique.internet.com/tutorials/memory leak:http://weblogs.java.net/blog/timboudreau/archive/2005/04/writing_memory.htmlhttp://www.technocage.com/~ray/talks/swing.htmlMisc:...
2007-07-13 08:09:21
79
CEP
http://www.eventstreamprocessing.com/cep-history.htmhttp://www.infoq.com/news/2007/07/EDA-SOA
2007-07-11 02:54:19
96
Mathematics Links
Probabilities and Statistics:http://www.ability.org/probstat.htmlhttp://www.math.ucla.edu/~tom/http://www.jdawiseman.com/index.htmlhttp://www.jdawiseman.com/papers/easymath/coin-stopping.html(opti...
2007-07-11 02:40:26
103
interview questions and riddles sites
http://www.ocf.berkeley.edu/~wwu/cgi-bin/yabb/YaBB.cgihttp://www.qbyte.org/puzzles/puzzle02.htmlhttp://www.msri.org/communications/emissary/http://www.mitbbs.com/bbsann/scitech.faqhttp://www.geek...
2007-07-07 06:35:52
116
Financial Data
http://www.bloomberg.comBond:http://www.nasdbondinfo.com/asp/bond_search.asphttp://www.investinginbonds.com/marketataglance.asp?catid=34http://www.treasurydirect.gov/indiv/products/products.htm...
2007-07-07 06:28:14
142
Spring Batch and other uncharted water
Spring's new module - Spring Batch, a much needed module.Besides the usual web container, ejb container, there are other ways to deploy apps. Batch, Grid, and JMS, besides a simple main() or an ANT ...
2007-05-15 21:13:11
97
Spring ProxyFactoryBean
There are several discussion about swapping objects during runtime. For example, we may have a case where we need to swap databases depending on the configuration settings or runtime variables, such a...
2007-05-13 05:35:00
101
Another Google question - drop glassballs from a building 5
Here are some results are the testcases:1. PathFindTest.test4Ball100Floors():The result is like this:path=(f=56, b=3, whole, tried)-->(f=91, b=3, broken, tried)-->(f=71, b=2, broken, tried)...
2007-05-13 04:01:02
97
Another Google question - drop glassballs from a building 4
The test cases are divided into 3 classes.The first one is just a pinpoint test class that contains some corner cases:java 代码 package glassball; import junit.framework.TestCas...
2007-05-13 03:42:03
108
Another Google question - drop glassballs from a building 3
The next step is to find the actually path of floors that we are going through to find the breaking floor. Here is the code to do that.java 代码 package glassball; import java.uti...
2007-05-13 03:33:43
208
Another Google question - drop glassballs from a building 2
Here is the code following the logic from the previous post:java 代码 package glassball; import java.util.List; import java.util.ArrayList; /** * Google i...
2007-05-13 03:02:02
114
Another Google question - drop glassballs from a building 1
Here is the question:原题: 有一个100层高的大厦,你手中有两个相同的玻璃围棋子。从这个大厦的某一层扔下围棋子就会碎,用你手中的这两个玻璃围棋子,找出一个最优的策略,来得知那个临界层面。I copied and pasted the above since I can't type Chinese most of the time. A google yield a ...
2007-05-12 04:43:00
116
原创 OOP
OCP: Open for extension, close for modification(black box)SRP: Single responsibility Principle(do one thing, and do one thing well).DIP: Dependency Inversion Principle(depend on abstraction, not o...
2007-04-13 00:53:00
93
Finance links
Code references:http://finance-old.bi.no/~bernt/ (C++)http://quantlib.org/ (C++)http://www.mathfinance.org/FF/cpplib.html (Java & JavaScript)http://www.numa.com/ Executables:http://www.snow...
2007-04-11 02:19:44
154
Finance books
Unknown:The concepts and practice of mathematical financeDerivatives: Models on ModelsBrownian Motion and Stochastic CalculusImplementing Derivative ModelModeling:Modeling Derivatives in C++C...
2007-04-10 23:41:08
193
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人