*NIX
How to convert passwd to userdb for ISPConfig
According to my previous howto regarding ISPConfig and Courier's userdb, there are some problems with some crypted passwords. In particular, passwords may contain the delimiter (|
) and the back quote (`) for evaluation in bash shell. As a result, the generated userdb
will be invalid. Below is the script to fix these problems.
- sugree's blog
- Add new comment
- Read more
- 1357 reads
Implementing barrier in Pthreads
According from my previous post, the most useful thing in parallel programming is barrier. Usually, barriers are available in Pthreads at least below 3 functions.
int pthread_barrier_destroy(pthread_barrier_t *barrier);
int pthread_barrier_init(pthread_barrier_t *barrier,
const pthread_barrierattr_t *attr, unsigned count);
int pthread_barrier_wait(pthread_barrier_t *barrier);
Unfortunately, above functions may be not available on some architecture, e.g., Cygwin. That's why I need to implement one.
- sugree's blog
- Add new comment
- Read more
- 17284 reads
Analysis of Camfrog Protocol
Camfrog is one of the most popular video chat system because of its performance and scalability. It is not as simple as you think. Camfrog is in press so often in Thailand. See below for some examples.
- sugree's blog
- 1 comment
- Read more
- 8114 reads
Parallel Programming with Pthreads
As of today, parallel programming paradigm has been backed for a while in processor level so all of us should change programming model to utilize this advanced architecture efficiently. The easiest way to consume all processor is to use multi-threaded model. In particular, you need to know basic concept of thread in general and POSIX Threads aka Pthreads for specific implementation.
- sugree's blog
- Add new comment
- Read more
- 1978 reads
Improve performance of Apache HTTPD by Expires
Apache HTTPD is one of the most popular web server in this world. It may handle wide range from light load to heavy load. Another popular one is lighttpd. There are so many benchmarks to compare these two softwares. For lighttpd, lighttpd is the best. In other view, Apache HTTPD is the best for themselves. These benchmarks are just to measure performance under heavy load. Another approach to improve performance is to reduce load.
- sugree's blog
- Add new comment
- Read more
- 1258 reads
How to generate Key-pair using OpenSSL
RSA is one of the most well-known security infrastructure based on PKI. I'm talking about how to generate a key-pair to be used in applications.
- sugree's blog
- Add new comment
- Read more
- 2912 reads
Recent comments
3 years 29 weeks ago
3 years 34 weeks ago
3 years 35 weeks ago
3 years 35 weeks ago
3 years 36 weeks ago
3 years 38 weeks ago
3 years 38 weeks ago
3 years 38 weeks ago
3 years 38 weeks ago
3 years 38 weeks ago