Roy Tang

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

Blog Photos Links Archives About Now

Replies: Replies to content on other sites. You can subscribe to an RSS feed of this list.

Jan 2020

Dec 2019

Be random.

In an episode of Futurama, Fry gained the ability to read minds and tried to use it to win a big Poker tournament. In the final table, he was up against Bender, and they were the last two players. For the final hand, Bender didn't even bother looking at his cards and went all-in, giving Fry's mind-reading no chance to work. Clip:

In One Piece, the protagonist Luffy was having trouble fighting bad guy Enel who could read his opponent's intentions. What Luffy did was to bounce his barrage of attacks against a wall, so that neither he nor Enel could predict which way they would go, so that Enel would be unable to avoid them.

Posted by under replies at / Tags: AskReddit / Imported from reddit / Syndicated: reddit / 0

Thanks for your reply, but I'm still not clear on the “employer-employee relationship part.

For example, a contractual part-time service worker in a fast food chain, he is not considered a regular employee is this correct? Is he required to register as a business? (I assume no.) Is he deduced the 8% withholding tax or the regular income tax?

How is this different from the scenario where you are a consultant working as a contractor for a local (PH) client (say, as a graphic designer or software developer)? Is the consultant considered an employee? Is he required to register as a business?

Also, I've worked for a number of clients as a consultant under contract, and they always just withhold the 8% and when I ask if there's anything else I need to do for tax purposes, they never advise me that I need a business permit. Should their accountant been telling them otherwise?

> Recurring like, you expect to engage in that particular kind of transaction for more than 1 time

-> does that mean if you are only doing this once, it is not considered recurring? i.e. a client asks me to build an application for them and I receive a one-time payment from them upon delivery and afterwards we no longer have a relationship, in this scenario you do not have to register as a business?

Sorry for all the follow-ups, I just want to clearly understand the scenarios wherein I would or would not be required to register as a business, because honestly I would like to avoid the bureaucracy as much as possible, hence I prefer not to register as a business if it can be avoided. I understand our duty as citizens to pay the right taxes etc and I would like to make sure I comply with any requirements and I don't mind the withholding tax being deducted from me. But I would prefer to know under what conditions I could structure freelance/consultant work without having to register as a business.

BTW, I wanted to say I appreciate your answering these questions. I had been planning to look for an accountant to consult on related matters so this thread really helps.

Posted by under replies at / Tags: Philippines / Imported from reddit / Syndicated: reddit / 0

> 1. Should I register as a self-employed /business?
Only if you are earning recurring income not earned under an employer-employee relationship.

Please explain “recurring income” here? What if I am earning money not on a full-time basis, with no guarantee of recurring income? For example, a company consults with me and I get paid an hourly fee.

Please also explain “employer-employee relationship”. I was previously working as a consultant with a company, and they were deducting the withholding tax from me (I think it was 8%). My understanding is I was not an actual employee here since I was a consultant, should I have been registered as a business in this instance? It's just weird since this withholding tax was already reported to the BIR and it seems there was no issue.

Posted by under replies at / Tags: Philippines / Imported from reddit / Syndicated: reddit / 0

Well, I'm not sure my Gruul list is optimal either, but I do enjoy it:


4 Stomping Ground (RNA) 259

4 Rootbound Crag (XLN) 256

3 Llanowar Elves (DAR) 168

7 Mountain (ANA) 64

4 Paradise Druid (WAR) 171

4 Gruul Spellbreaker (RNA) 179

8 Forest (ANA) 65

4 Zhur-Taa Goblin (RNA) 215

4 Burning-Tree Emissary (GTC) 216

3 Embercleave (ELD) 120

4 Questing Beast (ELD) 171

4 Once Upon a Time (ELD) 169

4 Pelt Collector (GRN) 141

2 Domri's Ambush (WAR) 192

1 Castle Garenbrig (ELD) 240


3 Veil of Summer (M20) 198

2 Cindervines (RNA) 161

2 Lava Coil (GRN) 108

1 Rekindling Phoenix (RIX) 111

2 Shifting Ceratops (M20) 194

2 Flame Sweep (M20) 139

1 Collision // Colossus (RNA) 223

2 Bonecrusher Giant (ELD) 115

If you're facing a lot of aggro, I do like bant scapeshift better.

Posted by under replies at / Tags: spikes / Imported from reddit / Syndicated: reddit / 0

Sorry, after I posted the comment above, I didn't have much time to grind Arena that month so I don't have much more input. The deck is sweet but it fares much better against aggro decks than the various ramp and control decks that become more prevalent once you're in Diamond or higher.

For this month, I've switched to Gruul aggro for Historic BO3, the games tend to go a lot faster :)

Posted by under replies at / Tags: spikes / Imported from reddit / Syndicated: reddit / 0

Nov 2019

Gave this a quick run and won 5 consecutive BO3 matches easily, barely any struggle. And I never even cast scapeshift! The one close match was vs Fires; Game 1 I almost ran out of cards before I closed the game with a huge krasis, Game 2 he hit me with Unmoored Ego, but I responded with Growth Spiral to play the 2nd Field so it was fine (I never seem to have the Veils when I want them). Granted, this was in Gold, but I look forward to trying to use this deck to grind as far up as I can til end of month.

Since I never got the chance to cast scapeshift, I'd like to confirm that if I sacrifice exactly 7 lands and search for 7 uniques including field of the dead, I get 7 zombie triggers yes? (I assume if I have more than 7 and at least one of them is field, I shouldnt sac the field so that I get more triggers)

Posted by under replies at / Tags: spikes / Imported from reddit / Syndicated: reddit / 0

Decision trees like “which starter pokemon do you pick” aren't things that should be embedded into your code as if/else statements. These should be data that your code loads.

For this specific example, you could have a data file that has a list of all the available starter pokemon. How many are available to choose from? Your code will read these data files and present them as choices. The data files could include the dialog text and say, an ID string to indicate which pokemon would then be added into your party, something like this (JSON format, because it's easier for me:

starters: [

{ "dialog": "I choose Charmander!", "pokemon_id": "0001"},

{ "dialog": "I want Bulbasaur!", "pokemon_id": "0002"},

{ "dialog": "I want Pikachu!", "pokemon_id": "0003"}


(I forgot who the 3rd starter was supposed to be, I'm not big on Pokemon. Also I'm guessing those aren't the actual pokedex IDs)

Each item on the list could also contain some other info. For example in dialogue trees, you might have NPCs react differently depending on what you say, so in that case each node would have an id pointing to the specific NPC response.

The idea is to separate the data from your code, since those are totally separate concerns. This is a general programming principle not specific to game development. In this way, you make it easier to modify your data (like decision trees) without necessarily having to rebuild your code. For example, you could change the dialog message for each pokemon starter choice, or maybe you could add more choices, or make the starter pokemon be Snorlax, MewTwo and Ekans for some reason (those are pokemon right? Lol). Bigger game studios will have separate tools to maintain those data files so that even nonprogrammers can help change those kinds of things in the game.

Posted by under replies at / Tags: gamedev / Imported from reddit / Syndicated: reddit / 0

Oct 2019

Roy Tang is a: is a personal site, an E/N site, and kind of a commonplace book; I post about a random assortment of topics that interest me including software development, Magic the Gathering, pop culture, gaming, and tech life. This site is perpetually under renovation.