This chapter introduces the simplest plug-in solution that are applicable to the four major components. This solution involves the following aspects: 1) Combine the dex of all plugins to solve the problem of loading plug-in's class. 2) Declare the fo…
几种范数的解释 l0-Norm, l1-Norm, l2-Norm, - , l-infinity Norm from Rorasa's blog l0-Norm, l1-Norm, l2-Norm, - , l-infinity Norm 13/05/2012rorasa I'm working on things related to norm a lot lately and it is time to talk about it. In this post we are going to…
ASP.NET MVC View Model Patterns Since MVC has been released I have observed much confusion about how best to construct view models. Sometimes this confusion is not without good reason since there does not seem to be a ton of information out there on…
A post I made a couple days ago about the side-effect of concurrency (the concurrent collections in the .Net 4.0 Parallel Extensions) allowing modifications to collections while enumerating them has been quite popular, with a lot of attention coming…
Introduction While working on a project for school, I found it necessary to perform a collision check between sprites that had been translated and rotated. I wanted to use bounding boxes because a per-pixel check was time consuming and unnecessary. A…
///:~容我对这个系列美其名曰"读书笔记",其实shi在练习英文哈:-) Introduction to Objects Object-oriented programming(OOP) is part of this movement toward using the computer as an expressive medium. This chapter will introduce you to the basic concepts of OOP, including an…
In this chapter I present classes to represent playing cards, decks of cards, and poker hands.If you don't play poker, you can read about it at http://en.wikipedia.org/wiki/Poker, but you don’t have to; I’ll tell you what you need to know for the exe…
Dictionaries A dictionary is like a list, but more general. In a list, the indices have to be integers; in a dictionary they can be (almost) any type.You can think of a dictionary as a mapping between a set of indices (which are called keys) and a se…
Spring's AOP Framework Let's begin by looking at Spring's own AOP framework - a proxy-based framework that works in pure Java. You can use it in any application server and all the required classes are included in the Spring distribution. Although man…