Roy Tang

roytang.net

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

Blog Notes Photos Links Archives About

Subscribe: RSS JSON

2019 September

  • The following article made the rounds recently: I Quit Social Media for a Year and Nothing Magical Happened. It's interesting enough not only on its own, but also for the discussion generated around any piece about qutting social media. I will admit I've been flirting with the idea myself, but that's a topic for another day. Of particular interest to me at the moment is this comment about the article on Hacker News: My biggest issue with social media is less that it's distracting (IMO not necessarily an unhealthy thing) but that it has, for me, more than anything else

    read more (607 words)

2019 April

  • The Ghurka and the map

    A Ghurka rifleman escaped from a Japanese prison in south Burma and walked six hundred miles alone through the jungles to freedom. The journey took him five months, but he never asked the way and he never lost the way. For one thing he could not speak Burmese and for another he regarded all Burmese as traitors. He used a map and when he reached India he showed it to the Intelligence officers, who wanted to know all about his odyssey. Marked in pencil were all the turns he had taken, all the roads and trail forks he has passed,

    read more (153 words)

  • Learning from failure

    Success is not final, failure is not fatal: it is the courage to continue that counts. -- Winston Churchill I already typed the above quote into the post, then realized I had already used it before. Whatever, just goes to show, I'm no stranger to failure. I was reminded of this quote because recently I prepared a demo for a project that didn't push through. At first I was annoyed at the wasted effort, but I realized that I had wisely taken the demo project as an opportunity to learn/sharpen some skills. Specifically, I used it to study the Django

    read more (155 words)

  • The Ship of Theseus

    I found myself poring over the Wikipedia entry for the Ship of Theseus the other day. If you're not familiar, it's basically a thought experiment along the lines of "if a given ship's parts are replaced at every port it visits, and eventually none of the parts are from the original ship, is it still the same ship?" The thought experiment questions the meaning of identity of a whole composed of many individual parts, such as a ship, or even a human. I thought about this while I was digging through time (read: old posts) the other day. In all

    read more (250 words)

2019 February

  • I'm not much for public performance. But sometimes I think about doing some stuff that involves some level of public performance. My examples for this post are: game streaming public speaking standup comedy Public speaking and standup comedy are basically the same, and might be interesting to do (standup seems more fun). Like many people, I used to have a mild fear of speaking in front of a bunch of people/strangers, but as I've gotten older and cared less about what other people think, this kind of faded away. But the main issue with these two items is that they

    read more (399 words)

    Posted by under blog at #self-improvement
    Also on: twitter /

2019 January

  • Anxiety

    A friend was worried and jittery about an event he'd been preparing for a while now. He just wanted it to be over and things to not go wrong. I told him not to worry, that he's already done the best preparation he could and that no matter what things will surely work out. It's easy to fall into the trap of anxiety, overthinking things that might go wrong, or things that might not go according to plan, and so on. And you know what? It's fine. Not everything goes according to plan. Unexpected things happen. People understand. We laugh

    read more (199 words)

    Posted by under blog at #self-improvement
    Also on: twitter /
  • Things that bring me joy

    After yesterday's post about Konmari, I thought about some stuff that brings me joy, some of them despite my better judgment: learning new things. This is a bit uncommon I guess, so it makes me a bit of a nerd. Luckily nerds are cool now, or something. Okay, this is super positive I guess. being argumentative. I love a good debate. However, since the 2016 election season, I've cut back on this significantly. It's only fun if the debaters aren't fanatics and understand that the goal of debate isn't victory, but progress following at least one person on social media

    read more (302 words)

    Posted by under blog at #self-improvement
    Also on: twitter /
  • Konmari

    I don't know much about this Konmari thing. I think it's been around for a while, but got a boost recently due to a Netflix special. I think I agree with it in principle, or at least what I know of it from secondary social media commentary. Minimalism is a worthwhile goal, and so is getting rid of things that do nothing for you other than take up space. Some people aren't reacting well to the idea of throwing away books though: Edit 22 Jan: The account has gone private, so the previous embedded tweet is no longer accessible. I'm

    read more (378 words)

  • Broken streaks

    Here I am writing about Duolingo and keeping up streaks, then just a few days later, this happens: On Jan. 6, 2019, 7:33 a.m. I wrote: Ah crap I broke a 97 day Duolingo streak D: There's a problem with Duolingo's streak notifications that I'm not sure how to solve. It send you a daily reminder at around the same time you did the work the previous day. If you're unable to do it at that time, there are no further reminders later in the day. I feel like there should also be another reminder near the end of the

    read more (210 words)

    Posted by under blog at #self-improvement
    Also on: twitter /
  • My 2018 in review

    Happy new year! Last year I posted some year-end statistics. That seems like a good way to recap the year, so let's do it again. Random statistics from 2018: Work, Learning and Self Improvement: Hours worked: 1,163 (up around 50% from last year) Programming languages/frameworks learned: I'll say 4. I'm counting: C++ which I revisited this year after more than a decade of not using it Go, which I used for the templating in the Hugo blog Flask, which I had dabbled in before but only used in a full-scale project this year Laravel, which I also used in a

    read more (603 words)

  • Form good habits and become their slave

    New year's resolutions are hard to maintain, so much so that people will make jokes about opening a gym that only runs during January, since most gym NYRs run out of steam by then. One of the best pieces of advice I've found regarding acquiring new behaviors comes from the first motivational books I ever read - The Greatest Salesman in the World by Og Mandino, which for some reason we had a copy of in our house when I was young. The book tells us that: humans are slaves to habit bad habits can only be replaced by good

    read more (182 words)

  • Don't Break the Chain

    New year's resolutions are hard to maintain, so much so that people will make jokes about opening a gym that only runs during January, since most gym NYRs run out of steam by then. One of the best pieces of advise I've read on this is "Don't break the chain", most often anecdotally attributed to Jerry Seinfeld. This advice means that for a recurring activity, once you get a streak or chain going, as much as possible you should avoid breaking the chain. So if your NYR is to exercise daily, you should try to avoid breaking that chain for

    read more (308 words)

    Posted by under blog at #self-improvement
    Also on: twitter /
  • New Year's Checklist 2019

    Most of these are carried over from the 2017 checklist. Maybe an annual thing, eh? In no particular order: Greet your loved ones and friends and anyone else you hold dear. Maybe even those you disagree with Ponder why people give so much significance to the transition between an arbitrarily-chosen pair of 24 hour periods Take stock and reflect on the past year Think about what you'd like to learn this year or how you want to improve Count your blessings for the past year and be grateful Change your passwords Buy a new toothbrush Make a New Year's joke

    read more (438 words)

2018 December

  • Suggested New Year's Resolutions

    I'm not a big believer in New Year's resolutions, but here's some suggestions if you're into that sort of thing: learn a new language talk to strangers more often visit 12 museums (one per month) step away from your devices once a week (increase the duration every time) read at least 12 non-fiction books read at least 12 physical books write a poem; maybe write 12 poems walk in the rain travel somewhere alone learn to draw stop a fight walk two thousand kilometers make more puns find something you can change in your local community and try to change

    read more (249 words)

    Posted by under blog at #self-improvement
    Also on: twitter /
  • Duolingo

    If you're looking for a New Year's Resolution, why not try learning a new language? Since late 2014, I've been using Duolingo to teach myself new languages. Learning a new language not only helps when you're travelling, but it unlocks different ways of forming thoughts in your brain, helping cognitive development (I may have made up that last part with absolutely no basis except my own speculation.) The first language I tried to study using Duolingo was Spanish, mainly because back then we had an upcoming trip to Europe (including Barcelona) planned in 2015 so the Spanish would have helped.

    read more (933 words)

  • Easily Distracted

    Via a blog post by Dave Martin, I read about Steven Pressfield's quotes on "The Resistance" that keeps us from doing our work: The danger is greatest when the finish line is in sight. At this point, Resistance knows that we’re about to beat it. It hits the panic button. It marshals one last assault and slams us with everything it’s got. (Side note: I've put his books on an Amazon wishlist. I should remind myself to do this whenever I find books that sound interesting) I think about new projects all the time: game dev ideas, app ideas, programming

    read more (556 words)

    Posted by under blog at #self-improvement
    Also on: twitter /

2018 November

  • Comparison is the Thief of Joy

    The aforementioned quote is attributed to Theodore Roosevelt. I've been thinking about this lately as I try to plan for what's ahead and what I want. I think one has to be able to decide what one wants independently of what other people are doing. As a concrete example, it's easy to fall into the trap of "Oh, this other person in my field did X and now they are making so much money, should I take that path as well?" In a situation like this it's helpful to ask yourself if "more money" is really what you want. Sure,

    read more (369 words)

    Posted by under blog at #self-improvement
    Also on: twitter /
  • Expanding Horizons

    Aside from my hobbyist readings (keeping up with gaming and comics news, etc), my usual reading diet used to consist of current events and tech news, primarily through apps like Flipboard and Feedly, secondarily through social media like Reddit and Twitter. Recently though I've started following more sources and blogs that are focused on more... "cultural" affairs. When I started doing #sketchdaily a couple of years ago, I started following more artists. During the past few months, as a sort of counterbalance to the prevalently negative current events and tech industry news, I've also begun following a few more people

    read more (398 words)

  • The Price for Being the Best

    "The price for being the best is always... having to be the best." Terry Pratchet, Lords and Ladies This is one of my favorite quotes. For context: in the story, one of the characters has a special talent that he can shoe anything anyone gives him (like when you put horseshoes on a horse). And Granny Weatherwax tells him that the price he pays for that talent is that when someone brings him something to shoe, no matter how wild or ridiculous the request, he has to do it. In real life of course, the literal interpretation is ridiculous. You

    read more (338 words)

  • The Work is Never Done

    I remember a conversation I often had with a friend, the first team lead I ever worked with. Many times she would be putting in extra hours for days at a time and I would say to her "Put that off until tomorrow, it's time to go home." and she would reply along the lines of "But I still have so much work to do." and my usual rejoinder would be "Are you expecting to finish all of that work tonight?" The modern working world is full of problems, issues, tasks and other work that needs to be resolved, and

    read more (403 words)

  • Two-Pronged Decision Making

    When making difficult or life-changing decisions, there are two levels of decision making we go through. One level is the rational, conscious mind. The mind is the part that considers all the options, weighs the pros and cons, and compares the metrics against your personal goals. The second level is subconscious and instinctive, sometimes called the human heart (not to be confused with the organ that pumps blood). The heart makes decisions using instincts and biases honed from your own life experiences and baser needs such as fear, anger, or self-preservation. When you find yourself hesitating or unsure or conflicted

    read more (256 words)

  • 168 hours vs 10000 hours

    According to Malcolm Gladwell’s book Outliers, you need 10,000 hours of continuous sustained practice to become an expert. There are 168 hours in a week. If you never sleep and you eat as you practice, you can become an expert in 60 weeks. (Around 14 months) If you sleep 8 hours a day, you only have 112 hours in a week. If you eat as you practice, you can become an expert in 90 weeks. (Around 22 months) If you sleep 8 hours a day and spend 4 hours a day for meals and leisure (TV, movies, etc), you only

    read more (260 words)

2018 October

  • Let Go or Be Dragged

    Posted by under blog at #self-improvement
    Also on: tumblr twitter /

2018 June

  • This book was on sale on Amazon Kindle a while back, I figured I'd give it a whirl. Some years ago I had read one of the author's previous books, The Four Hour Workweek, and I wasn't too impressed. It was interesting at least, but a lot of the advice seemed either difficult to apply to my personal situation or involved doing stuff I wasn't really interested in (i.e. sales and marketing and whatnot). But this new book intrigued me -- it's a collection of life advice from "mentors", basically successful people from a wild variety of fields including entrepreneurs,

    read more (955 words)

2018 March

  • Let's Encrypt!

    (Image credit: r/ProgrammerHumor) I've been meaning to add SSL to this blog ever since I first heard of Let's Encrypt last year. Unfortunately, support on my otherwise awesome webhost was not yet first-class and seemed complicated at the time, so I kept putting it off. But recently I was testing something unrelated and found out that I needed to have SSL on my server in order for OAuth2 to work, so I grudgingly got to it. Luckily I found out about a handy utility written in Ruby that does most of the stuff for me: letsencrypt-webfaction. It was surprisingly easy

    read more (121 words)

2018 February

2018 January

  • I'm not super big on New Year's Resolutions anymore. (I seldom even do the 1920×1440 joke these days.) I mean, I'm all about productivity and improvement and changing for the better, but I've found that very specific resolutions don't often work for me. Mostly because I have very little focus (obviously something that an be improved). On Dec. 31, 2015, 5:24 p.m. I wrote: New Year's resolutions: Read, write, watch, play, create, destroy, win, learn, improve, chill, move forward So my tendency now is to stick to general, high level resolutions (like the above) that don't go into anything too

    read more (578 words)

    Posted by under blog at #self-improvement
    Also on: tumblr twitter /

2017 August

  • Compartmentalization

    I had been looking into a software performance problem for a few hours now and had decided to call it quits for the day. I turned off the lights and climbed into bed, hoping to get to sleep early for a change. I hadn't been in bed five minutes when I thought about something I hadn't tried yet. I picked up the tablet that was beside my bed and did a few google searches and soon I was back on my desktop trying out some parameters I hadn't tried yet. Ideally one practices some sort of compartmentalization. There should be

    read more (507 words)

2017 January

  • New Year's Checklist

    In no particular order: Greet your loved ones and friends and anyone else you hold dear. Maybe even those you disagree with Ponder why people give so much significance to the transition between an arbitrarily-chosen pair of 24 hour periods Take stock and reflect on the past year Think about what you'd like to learn this year or how you want to improve Count your blessings for the past year and be grateful Change your passwords Buy a new toothbrush Make a New Year's joke ("My New Year's Resolution is 1440×900!") Set a target of how many books you'll read

    read more (261 words)

2016 December

  • Learning New Skills

    When Hanamichi Sakuragi from the manga Slam Dunk tries to get into the basketball club, he insists he's a genius who doesn't need to practice the basics and instead wants to go immediately to doing spectacular things like Slam Dunks. Sadly, the vast majority of us cannot claim to be geniuses at anything, and we are forced to undergo a bit of hard work if we want to learn a new skill. Malcolm Gladwell says one needs 10,000 hours of work at something to become proficient, but that probably only holds true if you're using those hours "smartly" and not

    read more (837 words)

2016 November

  • Are you willing to accept criticism?

    If a friend found out your work was horrible, would you want to know? Or would your feelings be hurt? If your coworkers think you're doing something wrong, would you prefer that they keep quiet or that they call you out? As a leader, do you prefer to have sycophants who sing your praises or people who are willing to tell you that you have no clothes? Is your ego more important than doing a good job or self-improvement? But what if the guy is just being an asshole who hates me and wants to discredit me? Whether or not

    read more (191 words)

  • Feedback Loops

    A feedback loop happens in a system when you are able to use an output of that system to influence the inputs, which in turn influences the outputs and repeats the cycle src="https://upload.wikimedia.org/wikipedia/commons/thumb/e/ed/Ideal_feedback_model.svg/2000px-Ideal_feedback_model.svg.png" alt="" width="2000" height="824" /> In engineering, feedback loops are useful to generate steady-state outputs. We had an entire subject dedicated to feedback loop controllers back in college. I enjoyed the topic so much I took the subject twice! An example of the use of feedback loops would be a thermostat that has a sensor to detect the current temperature. Once it senses the current temperature, it compares

    read more (759 words)

2016 October

  • Daily Habits

    I've picked up quite a few daily habits since the start of the year. To name a few: I've been doing daily sketches, I've been going on a daily walking routine, learning Spanish on Duolingo, I have a quick stretching/exercise routine I do in the mornings, etc. (I'm also supposed to be writing daily, but this has proven more difficult to keep doing consistently... ) I like those daily habits that can be easily tracked with technology. Duolingo tracks my Spanish learning streak (currently on a 147-day streak). r/sketchdaily tracks my drawing streaks. I have an app on my phone

    read more (484 words)

2016 July

  • Dealing with Failure

    src="http://www.thequotepedia.com/images/02/success-is-not-final-failure-is-not-fatal-it-is-the-courage-to-continue-that-counts-by-winston-churchill.png" alt=""Success is not final, failure is not fatal: it is the courage to continue that counts" - Winston Churchill" width="601" height="447" /> During my the first semester of my second year in University, I failed four out of five classes I was taking due to slacking off a lot. Those same classes were only available during the first semester of each year, which meant I could not retake them during the second semester or over the summer to catch up. So effectively, I had fallen one year behind everyone I knew. When I got the news, it was devastating.

    read more (391 words)

2008 June

  • Above Average

    Above average -- a level of competency at a given subject such that: You are good enough that average people look at your work and tell you "You've got a lot of talent!" You are good enough that you know there's a huge gap between you and those who are truly excellent. I was wondering the other day whether being above average was a curse. It's like being good enough to be in movies, but never good enough to be the star. Everyone around you is happy that they know someone who appears in movies, but deep inside you wish

    read more (288 words)

2006 April

  • The Four Agreements

    the four agreements, don miguel ruiz book -- a code for life and personal development agreement 1 Be impeccable with your word -- Speak with integrity. Say only what you mean. Avoid using the word to speak against yourself or to gossip about others. Use the power of your word in the direction of truth and love. agreement 2 Don't take anything personally -- Nothing others do is because of you. What others say and do is a projection of their own reality, their own dream. When you are immune to the opinions and actions of others, you won't be

    read more (214 words)