I have placed a preliminary release of my CEDict web application up on the site. You can access it here: http://www.chrisdavaz.com/cedict At present you can query using English, Pinyin and Chinese characters. Autocomplete functionality is active for the English and Pinyin inputs however I have turned it off for the Chinese input as it was [...]
\o\ \o/ /o/ Finally got my PAUSE account activated! I’ve uploaded a couple of modules to CPAN, CEDict::Pinyin and Class::Light. I wish I started uploading things to CPAN earlier when I was writing some more interesting code on a project I was working on for IBM a few years ago. Something like what SQL::Abstract and [...]
I recently wrote CEDict::Pinyin to help me validate and parse pinyin for a Chinese / English Dictionary web application I am developing in my spare time. I’m still waiting for my PAUSE authorization so I can put the module on CPAN. Here is the description from the module documentation: This class helps you validate and [...]
Here is the problem: You are developing a web application that uses a database. You don’t want to create a new connection every time you do something with the database, so you naturally create a class that manages a single database connection and gives it out to any who asks (some people call this a [...]
I needed a program that simply converted a file from one encoding to another. I couldn’t find one on my system so I wrote this which works just fine. Most of the work is done implicitly by Java. All I did was created an InputStreamReader and OutputStreamReader with the appropriate character encodings. BufferedReader in = [...]
I wrote a Perl module called Class::Light for creating class hierarchies in Perl. There are a lot of Class::* modules out there but I wanted something particularly lightweight and easy to use. The main OO features I desired were cascading object initialization and accessor / mutator autovivification. Take a look at this to see how [...]
I wrote this class to handle some simple benchmarking I needed to do in Java. It uses the ThreadMXBean to calculate how much CPU time your program is using. To compile: javac Benchmark.java This will generate Benchmark.class. You want to move this file to a subdirectory “com/chrisdavaz/util” under your CLASSPATH. So for example, if the [...]
Here I will post about myself and what I am interested in. This includes software engineering, web development, Chinese, games, movies, music, etc. 我在这里发帖子感觉是有趣的事情。包括软件工程,网站法政,中文,游戏,电影,音乐,等等。