Log in
30
June

CEDict Web Application

Written by cdavaz. 2 comments Posted in: Chinese, Perl, Web Development
Tagged with

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 [...]

24
June

PAUSE Account Activated

Written by cdavaz. No comments Posted in: Perl
Tagged with

\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 [...]

12
June

Parsing Pinyin

Written by cdavaz. No comments Posted in: Perl
Tagged with

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 [...]

09
June

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 [...]

07
June

Encoding Converter

Written by cdavaz. No comments Posted in: Java
Tagged with

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 = [...]

06
June

Object Oriented Perl

Written by cdavaz. No comments Posted in: Perl
Tagged with ,

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 [...]

06
June

Benchmarking in Java

Written by cdavaz. No comments Posted in: Java
Tagged with ,

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 [...]

04
June

Welcome – 欢迎光临

Written by admin. 10 comments Posted in: Introduction
Tagged with

Here I will post about myself and what I am interested in. This includes software engineering, web development, Chinese, games, movies, music, etc. 我在这里发帖子感觉是有趣的事情。包括软件工程,网站法政,中文,游戏,电影,音乐,等等。