A Good Dream

A good dream that lasted only a month.

It helped me learned what my limits were and unlocked all the potential I have. Stubborn ideals I once had fell like the Berlin Wall.

It triggered another change in my life, gave me energy and made me feel young again.

Many mistakes were made.
Words that shouldn’t be said were said.
Words that should be said weren’t said.

I’m sad that it’s over, I’m thankful it happened.

Now to put this newfound energy into my career.

TTTOv3

Work has begun on the next version of The Tarutaru Times Online.

I don’t know when I can finish it, and I can’t promise it.

It will be a complete rewrite of the whole system, using all the new knowledge I’ve gained since v2.

You could say the motivation for this rewrite is because of FF14. It’s that good.

And to commemorate this new beginning, I’ve updated the blog, using the new templates :o

Deploying with Github

Just a note for myself. Or if anyone’s interested, feel free to continue reading.

This posts records the steps needed to allow the webserver to run a “git pull” command in your website’s folder.

Setting up SSH

In the case of Nginx, the home folder is /var/cache/nginx/

You need a .ssh folder here with the ownership given to “nginx”, which is the user account the webserver runs as.

Generate your PKI keys, update the public key at github and also make sure nginx owns those keys.

Website folder permissions

You will need to change the ownership of all the files in your web folder, including the .git folder and files to the “nginx” user account.

Git pull

su nginx to “log in” as the nginx user. You may need to change the bash settings in /etc/passwd in order to allow this login.

go to your website folder and run “git pull”. You will be asked to add the public key for github.com into your list of known hosts, so just type in “yes”

Github hook

I have a php file in /var/www/html that runs the git pull in the website folder when accessed.

The line of code is simply:

shell_exec(“cd /var/www/websitefolder.com/; git pull”);

Then add the url to this file in github’s hooks section and whenever you push to github, github will send a post to this file, triggering the git pull in that website folder.

The only sad thing about gaming

One thing I find depressing about console gaming is that newer generation consoles are often not backwards compatible. Which means they can’t play games from previous generation consoles; a PlayStation 3 cannot read or play the games of PS2.

So when one day, my PS2 console finally gives up on me, I would have to hunt for a second-hand PS2 or my games will all be unplayable to me anymore.

Which… is kind of sad…

CounterStrike

Recently, I began playing CounterStrike:Source again for nostalgic reasons. It’s also the only FPS game I could play without feeling nauseus after 20 minutes.

I’m sad at how it’s difficult to find a decent server with low latency. I hope this changes when I get a fiber connection probably by the end of this year.

And when I find a low-latency server, it’s always set to a fixed map (de_dust2), or it has weird mods like instant-respawn.

When I finally found one with the traditional settings, it’s a high-latency server.

Anyway, I found one that’s frequented by Singapore players, low-latency (20~30ms) and default rules, even had friendly fire turned on. I love it here so far.

Everyone plays according to the rules. Counter-Terrorists actually play according to the aim of the map (defend bomb-sites, rescue hostages), instead of rushing to eliminate Terrorists. Terrorists actually try to secure the bomb-site to plant the bomb instead of camping at their base.

Probably because this is a very old game. All the young hooligans that don’t like to play by the rules of the map have all gone up and left for newer games like Dota or Diablo 3. Only the ones that truly enjoy the basics of the game remain.

The server’s name is so aptly named: Old Man Gang.