Roy Tang

roytang.net

Programmer, engineer, scientist, critic, gamer, dreamer, and kid-at-heart.

Blog Notes Photos Links Archives About

2019 August

  • Hmm, surprisingly I haven't watched too much stuff this month. Eigasai I watched a Japanese film at Eigasai in UP Diliman for the first time ever, upon the invite of some friends. We saw One Cut of the Dead a comedy zombie film. It was great and it was hilarious, although you must make sure not to lose patience with the first thirty minutes. I went in blind not knowing anything about it other than "Japanese comedy zombie movie", so you should too! Easily one of the funniest movies I've seen in recent years. Young Justice Back half of Young

    read more (678 words)

  • Ephemeral social media

    I read this post: Why I'm automatically deleting my old tweets using AWS Lambda where the justification for regularly deleting your old social media content is that they are no longer representative of the current version of you and thus can be misleading. This has certainly been the case when famous people's older tweets resurface (James Gunn comes to mind). To each his own and I kind of understand the intent, but this kind of thinking is a bit anathema to me. In fact, I tweeted this just a few days ago: On Aug. 27, 2019, 8:45 a.m. I wrote:

    read more (317 words)

    Posted by under blog at #tech-life

    Also on: twitter / 317 words

  • Python: Markov Chains

    Back when I was still learning Python in 2008, one of the first "fun" scripts I wrote was a text generator using Markov chains. I'd run it against all the chat logs I had with people at work and serve the results from a webserver on my computer. THe results were often amusing and sometimes hilarious. Since I've been going through my old scripts lately, I thought I'd update that script to Python 3 (read: add parentheses around print params and use pathlib) and run it against all the posts on this here site. I added the script to my

    read more (162 words)

    Posted by under blog at #software-development #python

    Also on: twitter / 162 words

  • Devnotes: Python Pathlib

    Ever since I started learning Python back in 2008ish, I've been using it as my primary scripting language for various tasks such as processing log files, organizing my own file system, processing stuff on this blog, and so on. A lot of it is basically moving files around. In the days of Python 2, that involved a lot of imports of different libraries like os, shutil and glob. It can become a bit messy with so many imports, and I often can't remember which import I need for a particular case and end up having to search for the documentation

    read more (316 words)

  • Marketplace Ethics

    I brought up among one of my friend groups this Reddit thread where the poster says they were able to buy hundreds of dollars worth of Magic cards from a garage sale for around $70. (Not gonna link to the original thread because it might seem like I'm shaming the OP.) Not that there's anything bad with such "garage sale finds", as it were. These things are posted every so often on subreddits especially those dedicated to some sort of collectible. I mentioned that while I would be very excited to find something like this in the wild, I might

    read more (694 words)

    Posted by under blog at #philosophy

    Also on: twitter / 694 words

  • Three Hearts

    Shogun There's a quote I like from James Clavell's novel Shogun: β€œIt's a saying they have, that a man has a false heart in his mouth for the world to see, another in his breast to show to his special friends and his family, and the real one, the true one, the secret one, which is never known to anyone except to himself alone, hidden only God knows where.” The novel implies this was a Japanese saying, which may not be accurate, Clavell probably based it on Jesuit writings from that era. That being said, I like this quote because

    read more (570 words)

    Posted by under blog at #quotes #tech-life

    Also on: twitter / 570 words

  • Devnotes: Migrating Mercurial to Git

    Big news in online repositories this week is that Bitbucket is sunsetting support for Mercurial! This might be the death knell for Mercurial, although Git was already the super popular choice before. Back when I started using online source control for my personal coding projects I started out with Bitbucket over Github because they offered unlimited private repos and Mercurial (which I had already tried out before at work, so at first I preferred it over git). Now that Gitlab and Github both offer unlimited private repos, there's no reason to stick with Bitbucket either. I had already migrated most

    read more (279 words)

  • Games: What Remains of Edith Finch

    I might be lending out my PS4 next month when the latest annual release of a sports franchise rolls around, so I figured I'd finish off a PS4 game before the console vanishes on me for a few months. What Remains of Edith Finch came out on PS+ a couple of months ago and people are always raving about how good it is and how it's relatively short, so I decided to give it a go. I went in blind, not knowing anything, since mysteriously no one on Reddit could explain what makes the game good. This is understandably so

    read more (827 words)

    Posted by under blog at #gaming

    Also on: twitter / 827 words

  • The Great Memory Scare of 2019

    Posted by under blog at #tech-life #gaming

    Also on: twitter / 1447 words

  • Internet Commercialization

    0 A while back, I read this post from 2015: Who is doing this to my internet? lamenting the changing nature of the internet due to commercialization and advertising. 1 It's a bit funny that the OP was lamenting about the "good old days" of the internet back in 2012, when by then the big social media networks like Facebook and Twitter were already relatively well-entrenched. When I think of the "good old days" of the internet I tend to harken back pre-social media to the heyday of blogging around 2005-2008 maybe? Those were times when instead of everybody holed

    read more (800 words)

    Posted by under blog at #tech-life #blogging

    Also on: twitter / 800 words

  • I recently found myself doing a really small project as sort of a proof of concept/demo for a potential client. It often seems that it might be a waste of time to do something like this since you don't know if the project will actually push through or maybe the client will want something else. To kind of hedge my bets a bit, I decided to take the opportunity to try out some new technologies so that no matter what I at least learned something from all of this. (What is life if not learning?) Django Rest Framework. I've been

    read more (750 words)

  • Posted by under blog at #mtg #modern

    Also on: twitter / 👍 1 1791 words

  • Note-taking / Todo Workflow

    In perhaps what is a perfect example of how writing bring clarity, I started drafting a post listing out the problems with my current notes/todo workflow and ended up coming to a conclusion as to how to make things better for myself. The main issue is that I have a smattering of todo-lists and notes scattered over several platforms: plain text files (in different places!), evernote, google keep, google docs, standard notes, and recently I also started trying Trello. So everything is everywhere and not consolidated in the same place. To tackle the problem, first I consider what are my

    read more (586 words)

    Posted by under blog at #tech-life

    Also on: twitter / 586 words

  • Writing brings clarity

    I don't remember where I read it online, but I have this in my notes: we write to discover truths about ourselves (paraphrased) The basic idea being that the mere act of writing down our thoughts can bring clarity and help us identify some truths about ourselves we never knew existed. I think it works similarly to the programmer practice of rubber ducking, where the mere act of describing something helps you gain a better understanding of it. This clarity can also allow you to more easily process a large scope that can otherwise seem overwhelming. I remember this in

    read more (252 words)

    Posted by under blog at #writing

    Also on: twitter / 252 words

  • Perpetually under renovation

    Posted by under blog at #meta #changelog

    Also on: twitter / 419 words

  • Out of sync with the world

    "That's not insomnia", my friend said, "You have something like a 28-hour sleep cycle." I laughed and uttered "I'm out of sync with this world!" I was describing why I was almost late meeting the group for lunch, telling him I had trouble going to sleep and slept at 7am, only waking up at 10am. During the past few days my sleep times have steadily been moving later and later until they pushed into the early morning. And once I was close enough to breakfast time, well, I didn't want to miss breakfast, so I would often push through whatever

    read more (283 words)

    Posted by under blog at #sleep

    Also on: twitter / 👍 1 🔁 1 283 words

  • Forty One

    Such an uninteresting number. And it hasn't really been an exceptional 365 days around the sun either, but this has become a bit of a yearly tradition now. Things I considered doing today: spend the entire day offline (Hah! As if.) go out for a walk at the old university (unlikely to push through, given the gloomy weather recently) go to the mall and buy a new external hard drive and a new monitor and eat at Yabu (I like Yabu) and maybe watch a movie in the cinema (I don't really feel like going to the mall on a

    read more (310 words)

    Posted by under blog at #birthday

    Also on: twitter / 👍 1 310 words

  • I decided to start doing small "devnotes" on developer stuff I'm doing so I can refer to them later (and also because I feel like I could use more technical content on this blog) Today is about PostgreSQL. I haven't used it much beyond standard ANSI sql stuff. You won't always have a graphical interface to access your database, sometimes you need to ssh to prod and query the database from the shell. The command line for PostgreSQL is psql. You can do: psql [database-user-name] -d [database-name] and it should prompt you for your password. But when I tried this

    read more (317 words)

    Posted by under blog at #devnotes #software-development

    Also on: twitter / 317 words

  • Fighting Games

    Posted by under blog at #gaming

    Also on: twitter / 👍 1 1759 words

  • I thought about making a tag "things that would only interest me" for this one lol. I've uploaded some old web archives of the oldest versions of my site - back when I still had free sites hosted on the likes of Geocities, Tripod and the lesser-known TopCities. Click here for the index! I've had these archives for a while and only now decided to put them up on the site. It's fun browsing through the older versions, basically relics of a bygone era. It was a time of hand-made HTML, CSS and JS, something that appealed to the tinkerer

    read more (437 words)

    Posted by under blog at #meta #nostalgia

    Also on: twitter / 437 words