Alexander Seto

A New Project: IOU

Posted on 10/05/2016

I've created a small web application while studying abroad using PHP and MySQL to keep track of money that people owe each other. Features include approval of requests, deletion of requests, sum of total owed, and autocompletion of user's names. Authentication is provided by Google OAauth.

Heres a link to the project.

Posted under: code, website


Posted on 08/28/2016

After about two hours I'm done. I refactored the blog code, eliminating redundant processes, as well as implementing tags for posts!

Posted under: code, website

Tags and Titles

Posted on 08/27/2016

I want to be able to tag my posts, since I've been considering an attempt at a travel blog, so this means I'll have to reconsider my approach as to how this blog is set up. I'm thinking I'll make it such that the first line of a file will be the blog post's title, the second line will be the date, and the third will be a set of tags. Hopefully this will work.

Posted under: code, website

Putting Off Studying

Posted on 12/08/2015

Since it is still finals week, I have naturally found more interesting things to rather than studying. I've recently started a small clone of the game 2048 for the *nix terminal. I've been writing it in C using the ncurses library for drawing the screen. I started writing some code from scratch, before deciding to just base my game logic code off of the original 2048 so that my version more closely matches the behavior of the original. I've put it up on my github, so feel free to check it out!

Posted under: code

New Fonts!

Posted on 12/07/2015

Instead of studying like I should have been, I instead opted to install a new font. I replaced the old typeface with Garamond, which I think makes the site look a lot nicer. In addition, I've made titles and headings a little lighter.

Posted under: code, website

An Adventure in Game Design

Posted on 11/29/2015

Recently in class we have been going over C++. I've decided to finally start making the text adventure game that I originally wanted to make 5 years ago.

When I first tried making a game years ago, the scope of the game grew rapidly, and before long, I realized I wouldn't be able to do it in the way that I had planned. I had hardcoded the story with while loops for each room in the game, and dozens of bools to keep track of certain conditions. This worked fine for the first portion that was fairly linear, but not when the game branched out. I can't quite remember how far I got, but I remember it didn't last long.

Now, five years later, I finally think I'm prepared for the challenge. Instead of hardcoding the story and the various game elements, I've decided to implement an engine independently of the story. The engine reads a file and creates the game world based on that file. This means that I can make changes to the story without having to reimplement code. As of right now, the engine has the ability to navigate the options menu, start new games and view old game saves (no loading quite yet). I still have to finalize the design for the game-world files, but I want to make sure I'm not missing any functionality before I continue.

Posted under: code

Clean URLs

Posted on 11/19/2015

I finally got around to adding clean URLs via .htaccess. Instead of canonical urls such as:

Webpages are now served at:

Posted under: code, website

Hello World!

Posted on 11/18/2015

I finally got around to updating my website to something a little more usable. I've gotten rid of the wordpress instance at /blog/ and instead opted to build everything myself to make things a little more consistent.

The first thing I did was separate my navbar and footer into header and footer php files so that I can update them from one place. I then changed some code so that all my pages use the same CSS file.

For the blog, I was tempted to use a pre-existing solution, but decided against it, instead, opting for a light-weight flat-file blog structure using PHP and a library called Parsedow. I'm using the PHP glob function to read files from a directory, then using Parsedown to parse them into html. To keep track of pages, I'm using array_slice.

Posted under: code, website

Copyright 2021 © Alexander Seto. All rights reserved.