10 January 2007
01 January 2007
How null breaks polymorphism: or the problem with null: part 2 – Programming Matters
by wsrileyA further exploration of the problems null brings when it shouldn't be needed. Simple mechanisms for dealing with the problem are presented.
31 December 2006
21 December 2006
JoshDrew.com
by parmentierfLast month, I needed to use the metaphone and edit (Levenshtein) distance algorithms for a fuzzy search of a MySQL table. Of course, neither is available as a built-in MySQL function. So, I had to install them as UDFs. The MySQL source distribution includes a metaphone UDF function in udf_example.cc. However, I couldn't find a Levenshtein UDF anywhere, so I wrote one, by converting a C implementation by Lorenzo Seidenari. I suspect that other people could benefit from this code, and you can download it from joshdrew.com. I compared the function's output to that of the PHP levensthein() function for a couple million word pairs; the results agreed completely - that's good enough for me. (this code comes with no warranty whatsoever, but I really hope you find it useful)
19 December 2006
Code Snippets
by after8 & 48 othersSnippets is a public source code repository. Easily build up your personal collection of code snippets, categorize them with tags and share them with the world.
18 December 2006
16 December 2006
Motor-controlling PWMs
by YukuanBlog一個脈寬調變(Pulse-width Modulation, PWM)訊號可控制一顆 DC motor 轉速,或決定一具 servo motor 的方向、位置或轉速。在複雜的機器人身上,常用上好幾顆馬達,因而能以一顆微控制器(microcontroller, uC)產生多組 PWM 訊號是非常實用的。
14 December 2006
11 December 2006
08 December 2006
07 December 2006
Jayco Campers: A Story Of Success
by kromakirkJayco Campers is one of United States’ largest manufacturers of recreational vehicles. It is nestled in the Amish country of Middlebury, Indiana. It develops a comprehensive selection of camping trailers, travel trailers, fifth wheels, class C, motorho.
06 December 2006
De PHP à Python et Ruby (en passant par C, Perl et Java) - dew's blog
by balluche & 3 othersComparer plusieurs langages entre eux.