Archive for the ‘Server stuffs’ Category

Configure nginx to serve downloads for Redmine

You know, I’m a big fan of nginx. Lately I’ve been using redmine as a project management tool too, and it’s really, really great - I can’t recommend it highly enough! Of course redmine is written in Ruby on Rails, or Rails to be short, but setting up is pretty much non-sweat. Once it’s up [...]

More »

How to configure nginx to run Kohana on Ubuntu

As a web developer I’ve been using Apache for a long long time. Recently though, I’ve started to move away from Apache in favor of nginx (pronounced “engine-X”). It’s not that I really need its power, it’s just that I wanted to learn something new to break my box. It’s fairly simple to set up [...]

More »

WordPress: Thank that first time commentator!

Thumbnail credit: Premshree Pillai To a website, comments are important - this you must agree. But not all visitors leave comments - in fact, very, very few. Most of them care about the content only, and tend to leave (bounce) the site right after getting the information they need (so sad a life, huh?) Many [...]

More »

How I sped up my Thica.net

Thumbnail credit: Amnemona If you didn’t notice, I have another site called Thica.net - Vietnam poetry network, a WordPress (what else) powered blog dedicated to poems in Vietnamese. The site is receiving about 60K of views per month, which is 12x to that of the moment when it was started back on March 2008, and [...]

More »

Code Snippet 3 - Create post slugs

If you’re used to WordPress, you must have noticed that usually a blog doesn’t use the default permalink structure (like http://site.com/?p=43, where 43 is the post ID store in the database). Instead, almost all blog owners tend to use the built-in option form to set the permalinks to something similar to http://site.com/a-great-post and leave the [...]

More »

Here we go - CDN Rewrites

Right after Free CDN was released, I got a request to enhance the plugin to support commercial Content Delivery Networks - you know, those big guys like Akamai, Limelight, EdgeCast, Velocix etc. The implementation is not too complicated: specify an origin host, and rewrite it into a destination host. That origin is of course usually [...]

More »

First version of Free CDN WP plugin released!

Office life has its advantages and disadvantages. On one hand, it keeps me so exhausted and leaves me so little free time for other hobbies - I’m talking about my books, my December Flower guitar self-training, my photographic stuffs etc. On the other hand, it does improve my knowledge and skills with all those working [...]

More »

Write your own URL shortener

With Twitter and its 140 characters limit leading all the trends, URL shortening services are in extremely high demand. We have seen TinyURL in the past, now Bit.ly, Is.gd, Tr.im and dozens of others are joining the party to share the cake. Honestly saying, to me they’re all the same (except for ➡.ws for its [...]

More »

Referrer Detector 4.2.0.1 (and the IE pain)

On May 12 I managed to release the latest major version of Referrer Detector. As it was a complete rewritten, bugs are not a doubt expected. Since then, there has been 5 newer versions: 4.0.1 - A hot fix to for allow_call_time_pass_reference problem. As for version 5, PHP passes function parameters by reference by default, [...]

More »

Code snippet #2 - Shorten Links Using Bit.ly

Following the first snippet, here is another small one to shorten a link using Bit.ly. I chose Bit.ly over other link shortening services due to a simple reason: Twitter uses it as default (by now). Code snippet #2 - Shorten Links Using Bit.ly Purpose Create a shortened URL using Bit.ly. This is extremely useful for [...]

More »