1The purposes of this page

  • This page is a holding area for my capture-refile workflow.
  • This page is for recycling old content.

2Reorganize this mess

This was moved from research.html.

2.1Resolving citations?

To resolve citation keys in this website, look up the key in bibliography.yaml.

<2019-01-02> We are moving back to bib.bib from bibliography.yaml, so that we can copy-paste bib from Google Scholar.

2.1.1Ramblings and undigested matters

2.2Applying probability theory and statistics to marketing and pricing

2.3Philosophy

2.3.1First- vs third-person view?

2.3.2Ethics, morality

Utilitarianism is questionable.12

Jonathan Haidt:

2.3.3Evolutionary ethics

  • https://en.wikipedia.org/wiki/Evolution_of_morality
  • https://en.wikipedia.org/wiki/Evolutionary_ethics
  • Evolutionary ethics
    • Morality is shaped by evolution.
    • We have difficulties defining what is "good", but there are things that we agree are good.
    • Morality is defined by the majority opinion.
    • Humans evolved morality because morality promotes survival.
      • Nature selects moral behavior. There is evolutionary pressure for moral behavior.
        • Sharing foods promotes survival.
        • Sharing knowledge promotes survival.
        • Cooperation promotes survival.
        • Marriage promotes survival?
        • Monogamy promotes survival?
    • The morality of a species is whatever evolved behavior that promotes its survival.

2.4TED?

3Philosophy?

3.1Pragmatic ontology: how pragmatism can help us answer what something is

(Is this really what others mean by "pragmatic ontology"?)

To the pragmatic ontologist, "exist" means "practically exist".

Someone who subscribes to egocentric pragmatic ontology would take the question "What is X?" to mean "What can I use X for? / How can I use X?"

  • I can use it, therefore it exists. (Compare: Descartes's "I think, therefore I exist.")
  • It affects me, therefore it exists.

3.2Gaining information by losing data?

(Do I understand what I'm talking about?)

It is possible to gain information while losing data. We often gain information when we feed data to an irreversible function. Example:

  • array_length
  • statistical summarization and interpretation
  • modeling

But is that losing data?

Most interesting mappings are irreversible. Modeling is irreversible mapping.

3.3Dying in the 21st century

3.4Sloppy synecdoches: Is a "potato" a plant or a tuber?

A bean is a plant.

Let B be an individual, a bean plant.

Every individual of the species Solanum tuberosum is a plant.

Wrong: Potato is a plant => Every potato is a plant => forall x. potato(x) => plant(x) A potato plant is a plant. A potato is not a plant; a potato is a tuber. Potato the whole plant vs potato the edible tuber.

Of course we can dismiss all this and just be sloppy with synecdoches, but unclear language breeds unclear thinking.

4Hiring

4.1If you are going to hire me

  • No work for hire. I own all my work. No exceptions. Work-for-hire is legal exploitation. However, I'm open to licensing negotiations.
  • I don't care about deadlines. It's done when I think it's done. I don't care about the short-term. I don't have a good relationship with time.
  • I do what I want how I want, unless there is a reason not to.
  • I won't use any language less than Prolog. I'm not settling for anything less. I insist on using the best tool I know. If someday I find a better tool than Prolog, I will move again.
  • I only make sure that my software runs on a recent Debian release. I don't care if my software doesn't run on Windows, Android, or iOS.
  • I will not sign any anti-competitive agreements. I will not sign non-compete agreements. I will not sign non-disclosure agreements.
  • I can change my mind at any time.

Perhaps I should hire you, not the other way around?

4.1.1Why work for/with me? How am I from other partners/employers?

  • Justice
  • Fairness
  • Environment
  • Reasonable

Really? Am I still the same person when I wrote that?

4.1.2Why not work for/with me?

  • I can't guarantee that you will get rich working for/with me.
  • I am opinionated and principled. I do things my way.
  • I am a dictator, although I try to be benevolent.

4.1.3Principles?

  • Survive.
  • Sustain: minimize operation and minimize maintenance.
  • Systems, not heroes.
    • But we need heroes?

4.2My company rules? My business rules?

All compensations must be explicit, rule-based, and justifiable. Everyone must know the same rules. Everyone must play by the same rules. No tipping.

  • Employer may terminate an employment at any time without notice.
  • Employee may terminate his/her employment at any time without notice.
  • Pay with money only. No bullshit perks and benefits. No insurance.

Refuse and skip exit interview. Don't say anything incriminating.

"Ask the Headhunter: Why it’s risky to give notice when you quit" https://www.youtube.com/watch?v=sBFjotmUkjA

https://www.forbes.com/sites/lizryan/2017/07/06/ten-reasons-to-skip-your-exit-interview/#5b51301e20e3

my accounting principles?

  • Keep only one book. Don't show different books to different people.
  • Accounting records historical truth. Don't calculate current market price in accounting reports; mark-to-market belongs in financial statements, not accounting books.
  • Don't mix currencies.
  • A redenominated currency is a different currency.
  • Err on the side of safety. Don't count your eggs before they hatch. Recognize income as late as possible. Recognize expenses as early as possible.

A company with no secrets. A transparent company.

An economic benevolent dictatorship.

Dictatorship doesn't last. Systems last.

4.3Job openings and projects

4.3.1Job openings

  1. Assistant/clone

    Requirements:

    • Fluent in written English.
    • Enjoys the stress of writing.
    • Writes concisely.
    • Writes precisely; cares about definitions.
    • Writes conservatively; cares about etymologies.
    • Reads 800 wpm with 60% comprehension when focused at prime condition.
    • Likes to stay at home, and hates traveling.
    • Connected to the Internet from home.
    • Has an IQ above 135.
    • Able and willing to eat pork.
    • Uses Debian or a Debian-based distro.
    • Can use Google Docs, Git, Markdown, and Org-Mode.
    • Watches YouTube videos at 2x speed.

    What you will do:

    • Organize and clean up this website.
    • Arrange my derailed train of thoughts.
    • Write about things similar to what is already on this website.
    • Find evidences for or against my beliefs.

    Salary range: IDR 0 - IDR 20,000,000.

5Delete?

5.1"English" names

Scarface, Boaty McBoatface Sir Lancelot, Sir Chirpsalot (chirps a lot), Sir Changealot (change a lot)

5.2Things I learned the hard way

5.2.1<2018-10-08> While a person is on a motorcycle (be it driving or not driving), he must secure his chattels, and not place them in shirt pockets, in order to prevent the chattels from falling to the road (therefore being lost or broken).

  • Secure the chattels:
    • Put it in a totally closed compartment in a bag, not in a pocket on the bag.
    • Grip the chattels.
  • Triggers:
    • Eyeglasses fell from shirt pocket to the road, and were run over by the motorcycle behind.
    • A few months ago, a hairband fell from bag pocket to the road; it was lost.
    • Shit happened. Twice.

5.3Finding bottleneck?

5.3.1what

Make sure that the bottleneck is not in the kernel netstat | grep Check the number of connections Expected jmeter number of connections

Make sure that jmeter is properly configured

https://stackoverflow.com/questions/42311414/iperf3-windows-bandwidth-is-much-slower-than-linux iperf sudo apt-get install iperf Run this on PHP machine: iperf -s Let SERVER be the IP address of the PHP machine. Run this on JMeter machine: iperf -c SERVER

CPU tidak mentok, RAM tidak mentok, berarti ada beberapa kemungkinan:

  • bottleneck di network,
  • CPU di-throttle oleh docker/cgroup,
  • bottleneck di disk seek rate (unnecessary SQL transaction),
  • bottleneck di disk transfer rate.

If 1 request takes 1 KB, then 10000 request/second translates to 10 MB/s, which is enough to saturate a 100 Mbps Ethernet interface.

Cari tahu 1 application server sanggup serve berapa banyak.

Check iftop -i INTERFACE

https://serverfault.com/questions/299093/linux-how-to-find-out-whether-nic-is-causing-a-bottleneck

check disk queue depth dengan top (average load) iotop

https://serverfault.com/questions/665799/whats-the-technique-to-find-out-bottleneck/665831

  • atop for cpu & ram
  • iotop for disk
  • iftop for network

Disable swap, but be careful to avoid running out of memory.

Pastikan bottleneck bukan di mesin JMeter (terutama di network interface-nya). Apakah mesin JMeter sudah dipisah dari mesin PHP?

Linux kernel limit: number of open files, maximum number of open sockets.

Docker bisa mengurangi performance. Kalau tidak pakai Docker, apa bisa lebih cepat? Ganti 20 docker instance php-fpm dengan 1 php-fpm dengan 20 children.

Docker performance cost 2015 article "An Updated Performance Comparison of Virtual Machines and Linux Containers" https://domino.research.ibm.com/library/cyberdig.nsf/papers/0929052195DD819C85257D2300681E7B/$File/rc25482.pdf That link was obtained from https://www.linode.com/docs/applications/containers/when-and-why-to-use-docker/#when-not-to-use-docker

nload is an alternative to iftop?

Use Vegeta instead of ApacheBench? Locust? JMeter? https://medium.freecodecamp.org/how-we-fine-tuned-haproxy-to-achieve-2-000-000-concurrent-ssl-connections-d017e61a4d27

select vs poll vs epoll https://www.ulduzsoft.com/2014/01/select-poll-epoll-practical-difference-for-system-architects/

The C10K (10000 connection) problem http://www.kegel.com/c10k.html

https://stackoverflow.com/questions/16888429/how-to-make-a-hard-abortive-close-on-a-tcp-connection In bottleneck/tcp.c Set linger onoff 1 timeout 0

http://www.serverframework.com/asynchronousevents/2011/01/time-wait-and-its-design-implications-for-protocols-and-scalable-servers.html

https://thehftguy.com/2016/10/03/haproxy-vs-nginx-why-you-should-never-use-nginx-for-load-balancing/

5.3.2Measuring things to find bottlenecks (Linux, TCP, HTTP, network, CPU, disk, etc.)

  1. Linux TCP TIME_WAIT exhaustion on busy server

    • What are my options?
      • Assign more IP addresses.
      • Geographically distribute the application. Procure edge servers closer to the clients. But you can't do this if you are not a CDN or ISP.
      • Reduce the TIME_WAIT MSL (maximum segment lifetime)
      • Non-options
        • net.ipv4.tcp_tw_recycle has been removed.
        • net.ipv4.tcp_tw_reuse doesn't work.
      • https://vincent.bernat.ch/en/blog/2014-tcp-time-wait-state-linux
        • https://news.ycombinator.com/item?id=7684015
        • "The universal solution is to increase the number of possible quadruplets by using, for example, more server ports."
        • "Moreover, when designing protocols, don’t let clients close first."
    • See the TCP protocol documentation. Where are the wait states? Who hold the wait states? The client? The server? The one who calls the close system call?

5.4Maximizing lithium-ion battery life

  • https://batteryuniversity.com/learn/article/how_to_prolong_lithium_based_batteries
    • "Exposing the battery to high temperature and dwelling in a full state-of-charge for an extended time can be more stressful than cycling."
    • "In terms of longevity, the optimal charge voltage is 3.92V/cell."
    • "Every 70mV drop in charge voltage lowers the usable capacity by about 10%."
    • "Partial charging negates the benefit of Li-ion in terms of high specific energy."
    • "Chalmers University of Technology, Sweden, reports that using a reduced charge level of 50% SOC increases the lifetime expectancy of the vehicle Li-ion battery by 44–130%."
    • "For safety reasons, many lithium-ions cannot exceed 4.20V/cell."
    • "Industrial devices, such as the EV, typically limit the charge to 85% and discharge to 25% to prolong battery life."
    • "The question is asked, “Should I disconnect my laptop from the power grid when not in use?” Under normal circumstances this should not be necessary because charging stops when the Li-ion battery is full. A topping charge is only applied when the battery voltage drops to a certain level. Most users do not remove the AC power, and this practice is safe."
      • "Always keep the airflow unobstructed when running electric devices with air-cooling on a bed or pillow."

5.5Natural sciences

5.6Ramblings, speculations, fantasies, imaginations, and trivias

5.6.1Acting

  • I rarely watch movies.
  • I'm sure there are other good actors, actresses, and movies.
  • But I'm not watching all the movies in this world.
  • Examples of good acting
    • Adewale Akinnuoye-Agbaje in "Faster"
    • Christoph Waltz as Hans Landa in "Inglourious Bastards"
    • Heath Ledger as Joker in which Batman movie?
  • Examples of good movies
    • films directed by Christopher Nolan
      • "Interstellar"
      • "Inception"

5.6.2Quantum inertia? Rocket propulsion? What?

5.6.3Curing cancer?

  1. Trading cancer with autoimmune disease?

    Trading something bad with something hopefully less bad? https://arstechnica.com/science/2018/10/treatments-that-cause-the-immune-system-to-attack-cancer-earn-a-nobel/

5.6.4(Why the hell did I bother to find out about these things?)

  1. Physics textbook

  2. Browser plugins (I don't necessarily use)

    • Vimium: vim-like shortcuts for navigating the chromium browser
    • Perhaps I should make a browser plugin that copies a link of the page to the clipboard in Markdown format? No. A bookmarklet suffices.
      • Which browser has easiest plugin development?
        • The result might be suspicious because I used Google to look for the answer.
        • 2016: Chrome (source)
        • 2011: Chrome (source)
  3. Quartz scheduler performance

  4. Picking colors

  5. Peterson v Newman on Channel 4 is not journalism

    video

    Newman is putting her words on Peterson's mouth.

    Peterson has the patience of a saint.

    It is not journalism. It is a mere entertainment. Verbal boxing. Spectacle.

  6. Accommodation Ontology Language Reference?

5.6.5Accounting

  • I use GnuCash for my personal accounting.
  • Accounting terms
    • What is an account?
      • If you deposit money in banks, then you have an account for every bank account you have.
      • If you lend money to people, then you have an account for every people.
    • What is a journal?
      • A journal is optimized for entering transactions by date.
      • What is a transaction?
        • A transaction involves two or more accounts.
          • The sum of all account changes in a transaction is zero.
    • What is a subledger (subsidiary ledger)?
      • A subledger of account C is obtained by selecting only the journal entries that affect the account C.
    • What is a general ledger?
      • A general ledger is the concatenation/combination/summation of several subledgers.
  • Are there open source enterprise accounting systems?

5.6.6FOSS alternative to SmartRecruiters?

https://blog.capterra.com/top-8-freeopen-source-applicant-tracking-software-solutions/

5.6.7Learning languages

  1. Cantonese

    http://wikitravel.org/en/Cantonese_phrasebook

    The biggest problem of Cantonese: it doesn't have standard romanization like Hanyu Pinyin, does it? Cantonese has three: Jyutping Romanization, Yale Romanization, and Cantonese Pinyin. It unnecessarily fragments learning resources.

    https://en.wikipedia.org/wiki/Cantonese_Pinyin

    6 tones.

    • 1: high
    • 2: low-to-high
    • 3: flat mid
    • 4: low-to-even-lower
    • 5: low-to-mid
    • 6:

    Which is the romanization, Yale or Jyutping? Yale vs Jyutping: https://en.wikipedia.org/wiki/Cantonese#Phonology https://en.wikipedia.org/wiki/Hong_Kong_Government_Cantonese_Romanisation

    https://en.wikipedia.org/wiki/Cantonese_phonology#Cantonese_syllables

    http://cantonese.ca/

    http://www.cantonese.sheik.co.uk/dictionary/words/42086/#jyutpinginfo

    我 ngo5 = I

    你 nei5 = you

    今日 gam1 jat6 = today

    我係 … ngo5 hai6 … = I am … (name, occupation)

    我係今日返屋企㗎。 ngo5 hai6 gam1 jat6 faan1 uk1 kei5/2 gaa2/3/4

    你以為我係邊個呀? nei5 ji5 wai4 ngo5 hai6 bin1 go3 aa3/4/5/1? Who do you think I am? / Do you know who I am?

    https://www.youtube.com/watch?v=Pg0xsKyA1Uw

    ngo5 hai6 yat1 jek maau = I am a cat

    yat jek gau = a dog

  2. Russian

    RIA news agency website

    Заглавная страница (Russian Wikipedia main page)

    Словарь dictionary

    проверить check

    Избранная статья selected articles

    Случайная статья random article

    Биография biography

    Окончил Калькуттский окружной колледж. He graduated from the Calcutta District College.

    человек human

    Человек изучает и изменяет себя и окружающий мир, создаёт культуру и собственную историю. A person studies and changes himself and the surrounding world, creates a culture and own history.

    Тело человека имеет ряд отличий от обезьян. The human body has a number of differences from monkeys

    Знаете ли вы? Did you know?

    Текущие события current events

    Новости news

    News categories: главное main общество society наука science

    Коалиция США нанесла новый удар по проправительственным силам в Сирии

    The US coalition struck a new blow against the pro-government forces in Syria

  3. German

    • teil
      • teilen = divide
      • geteilt = divided
      • unteilbar = indivisible
    • bis = to
    • Tisch
      • der Tisch = the table
      • die Tische = the tables
      • auf dem Tisch = on the table
      • auf den Tischen = on the tables
    • Bitte melden Sie sich an, um zu kommentieren. = Please log in to comment.
    • langlebig = long-lived
    • kurzlebig = short-lived
  4. Mandarin

  5. Japanese

  6. Bahasa Indonesia

    • Apa beda manjur, mempan, mujarab, dan mustajab?
    1. Some Indonesian vernaculars

      Spoken Indonesian is wildly different from written Indonesian and news Indonesian. On the street, nobody speak like news anchors.

      1. Dong, kek

        "Gitu dong!" (with emphasis on tu) "Nah, gitu dong!" "Gitu kek dari tadi!" That's what I wanted you to do! If only you had shut up and done that earlier, we wouldn't have had to fight.

        "Iiiih diem dong!" (Can't you shut up!?)

        "Ga bisa gitu dong!" "Enak aja lu!" "Apaan!?" "Dari mana!?" "Atas dasar apa!?" (Typical response to outrage-inducing unfairness, injustice, or absurdity. What the hell? You can't do that!)

      2. Doang, sih, aja

        "Gitu doang?" (Is that all? Is that all you got?)

        "Segitu doang kemampuanlu? Cupu banget sih lu!" (Is that all you got? You piece of shit!)

        "Kenapa sih tiap kali gua datang, ada aja masalah…" (I'm dying to know why there is always a problem every time I come.)

        "Gitu doang ngambek" "Gitu aja marah" (Why the hell are you angry for such trivial thing?)

        "Coba diem dulu deh!!" Can't you shut up for a while?

        "Eh ini enak. Cobain deh…" This is delicious. Here, try some!

        "Iya aja deh" "Apa katalu dah" (Whatever you say.)

        "Masih aja!" (Why the hell are you still doing this? Haven't I told you to stop already?)

        "Ini aja?" (Is this everything?) "Iya ini aja" "Iya ini doang" (Yes, it's everything.)

      3. Deh

        "Eh iya deh." (Oops, I was wrong.) (Oops, I just remembered.)

        "Iya maaf deh." (Sorry. Whatever. Are you happy now?)

      4. Kok

        "Kok lu masih idup?" (Why the hell are you still alive?)

        "Kok lu di sini?" "Kok lu di sini sih?" (Why are you here? You aren't supposed to be here.)

        "Udah dikerjain kok PR-nya Ma." (What the hell are you accusing me for Mum? I have done my homework, you know.)

        A: "Eh ini kok gini? dapet dari mana?" (Huh? Why is this? Where does this come from?) B: "Ya iya dong. Masa gini aja lu ga ngerti?" (I'm getting impatient. Isn't it obvious? You can't understand something this simple?)

        "Gitu aja kok repot" (trademark alm. Gus Dur) "Why so much hassle over such small matter?" (I think Joker's (as played by Heath Ledger) "Why so serious?" also fits this somewhat.)

      5. Lah, lho or loh

        "Ya begitulah" (More or less that's the case.)

        "Ya begitulah" (a vague and rather polite response that does not mean anything; this avoids making the other party think you are ignoring him/her)

        "Ya begitulah" "Ya begitulah… lu tau sendiri kan" "Mau gimana lagi?" 仕方ない (Nothing can be done about it; What else can be done?)

        "Lho kok masih di sini?" (Why the hell are you still here?)

        "Lho kok belum dikerjain?" (Why the hell haven't you done this?)

        "Iya lho" "Bener lho" (I'm serious. I'm not lying.)

        "Lho lho lho" (Wait, what?)

        "Gue gitu loh" (Of course I can do that. I'm the greatest.)

      6. Toh

        "Oh gitu toh" そうですか。 なるほど。 I see.

      7. Lain-lain

        "Mampus… gw lupa matiin kompor!" (Shit! I forgot to turn off the stove.)

  7. English

    1. Present perfect tense, past perfect tense

    2. will vs be going to

    3. Favorite shortenings

    4. Colorful synonyms of bad

      • bad: improper, intolerable, unacceptable, undesirable
      • awkward, clunky
      • kludge, hack, ugly
      • oversentimentally bad: kitsch, corny
      • disappointingly bad: suck, hopeless
      • almost/borderline bad: mediocre
      • very bad: terrible, abysmal, disturbing
      • scarily bad: dreadful, horrendous, horrifying, horrible
      • ethically/morally bad: shady, sketchy, questionable, scandalous, criminal
      • cruelly/violently bad: atrocious, brutal
      • disgustingly bad: abominable
      • much/excessively bad: shitload, truckload, crapload, boatload
      • irritatingly bad: annoying, frustrating, exasperating
      • hatefully bad: shitty, half-assed, crummy, crappy, cruddy
      • outrageously bad: [goddamn] [worthless] [motherfucking] [truckload of / piece of] [shit / crap] (the order of adjectives is important)
      • https://en.wiktionary.org/wiki/Thesaurus:bad
    5. Synonyms of insane

    6. razmatazz, claptrap, humbug

    7. Researches

      • 2015 article "Vocabulary Learning Strategies", abstract, pdf
    8. How does swapping the subject and the predicate changes the meaning of a copular sentence (a sentence whose verb is the copula)? Subject-predicate asymmetry?

      We consider sentences of these forms: "X is Y" and "Y is X", where each of X and Y is a noun phrase.

      We are interested in how swapping X and Y changes the meaning of the sentence.

      1. Example

        • John is the culprit.
        • The culprit is John.
      2. Example

        • Mark Twain is Samuel Langhorne Clemens.
        • Samuel Langhorne Clemens is Mark Twain.
      3. Example

        • The dog is a Siberian husky.
        • A Siberian husky is the dog.
      4. Example

        • Dogs are animals.
        • Animals are dogs.
      5. Example

        • The car is red.
        • Red is the car.

5.6.8Learning to play mahjong

The variant discussed here is classic Chinese mahjong.

  1. Basic facts

    There are 136 mahjong tiles, of which 52 are dealed to the players. The remaining 84 forms the wall. Thus, in a play, you only get at most 21 chances to change your hand, that is 84 divided by 4 (the number of players).

    If each player takes 15 seconds, then a hand will take at most 4 x 15 x 21 = 1,260 seconds (21 minutes).

    There are 136 tiles (not including 4 flower tiles and 4 season tiles):

    There are 3 suits (bams, dots, and chars). Each suit has 9 classes. Each number has 4 instances. Thus each suit has 36 tiles. Thus there are 108 suit tiles.

    There are 7 honors (4 winds and 3 dragons). Each honor has 4 instances. Thus there are 28 honor tiles.

    There are 27 suit classes and 7 honor classes, giving a total of 34 classes.

    Each tile class has 4 instances.

    Each tile is equally probable to be drawn.

    The probability of picking a tile class is 4/136. The odds of picking a tile class is 4:132.

  2. Number of chows, pungs, and kongs

    The probability of drawing a pung: 34 * 4/136 * 3/135 * 2/134 = 1/3,015 (odd of 1 : 3,014, approx 1 : 3,000)

    Each suit has 7 unique chows: 123, 234, 345, 456, 567, 678, 789. There are 3 suits, so there are 21 unique chows. Each tile has 4 instances. Each chow has 4^3 instances. The probability of drawing a chow: 21 * 4^3 / (136 * 135 * 134) = 28 / 51,255 (odd of 1 : 51,227, approx 1 : 51,000).

    Pung is more likely than chow. Is this a calculation mistake?

    The probability of drawing a kong (four identical tiles): 34 * 4/136 * 3/135 * 2/134 * 1/133 = 1/400,995 (odd of 1 : 400,994, approx 1 : 401,000)

    The probability of drawing a pair: 34 * 4/136 * 3/135 = 1/45 (odd of 1 : 44)

    The probability of drawing two tiles having the same class: 4/136 * 3/135 = 1/1,530 (odd of 1 : 1,529)

    The probability of drawing two tiles having the same suit (3 suits): 3 * 36/136 * 35/135 = 7/34 (odd of 7 : 27, approx 1 : 4)

    The probability of drawing a chow: The probability of drawing n, n+1, n+2 unordered of the same suit, for n in 1 to 7:

    3! * 3 * 7 * 4/136 * 4/135 * 4/134 = 56/17,085 (odd of 56 : 17,029, about 1 : 304)

    The probability of drawing a pair, given that one tile has been drawn by another player:

    Let each player draw exactly one tile. The probability of four players drawing the same tile: 34 * 4/136 * 3/135 * 2/134 * 1/133 = the probability of drawing a kong

5.6.9Traffic engineering

5.6.10Outdated content that I do not intend to update

  1. Android development in 2016

    Last time I developed for Android in 2012. My knowledge is irrelevant now.

  2. Web scraping with Haskell

  3. btpn

    • Update <2020-01-17>: akhirnya bikin BTPN Jenius; orangnya datang ke kantor
    • Syarat-syarat saya

      • Apa yang menarik? Mengapa harus peduli?

      • Seaman apa?

        • Apa simpanan dijamin LPS (Lembaga Penjamin Simpanan)? 2018-08-09: Ya.

          • Apa BTPN peserta LPS? 2018-08-09: Ya. Cari "pensiun" di daftar LPS.

            • BTPN singkatan apa?

              • 2018-08-09:

                • Di situs resmi sendiri malah tidak ada?
                • Menurut daftar LPS: "PT Bank Tabungan Pensiunan Nasional Tbk."
        • Apa bank ini akan bangkrut? Apa bank ini too big to fail?
        • BTPN punya siapa?

          • 2018-08-09: menurut sumber:

            • 39.9% punya Sumitomo Mitsui Banking Corporation (perusahaan Jepang)
            • 20% punya Summit Global Capital Management B.V. (perusahaan Belanda)

              • ujung-ujungnya Sumitomo Corporation

                • "The company operates as a subsidiary of Sumitomo Corporation." sumber
            • 40.1% punya publik (people mostly holding very little share)

          • Kok ada "nasional" di namanya? Kirain punya negara?

      • Bagaimana cara buka rekening?

      • Siapa counterparty kontrak saya jika saya membuka rekening Jenius?
      • Apakah data saya akan bocor ke pihak ketiga?

        • Bagaimana saya melarang BTPN membocorkan data saya ke pihak ketiga?

          • Apakah saya harus menerima semua syarat yang dibuat tanpa melibatkan saya? Kalau tidak mau ya jangan pakai?
    • How much money are you losing by not switching?
  4. violin

    This is my study notes, observations, and conclusions. This is a bit disorganized.

    I play the violin without chin rest and shoulder rest.

    1. The right pinky

      The right pinky is for playing softly: tilt the bow very slightly by pressing down the pinky (with the thumb as the fulcrum). XXX: Is it by flexing the pinky or by supinating the hand?

      Playing softly is harder than playing loudly. Playing softly also uses more tension than playing loudly.

    2. Squeaking

      Each bow speed has a range of pressure that will make a good sound. Less bow speed needs less pressure. The symptom of too much pressure for a bow speed is squeaking; increase the bow speed, or decrease the bow pressure, or both.

      Decrease the bow pressure by pressing the end of the bow with the right pinky, with the thumb as the fulcrum.

    3. Playing open strings

      Open strings, especially the A and E strings, sound brighter than stopped strings, so open strings will be perceived as louder even though the bow speed and pressure stay the same. In order to play scales with even dynamics, we can avoid open strings, or we can bow the open strings more softly with reduced pressure and speed.

      Also, we can play the D string nearer to the bridge to brighten it, and the A string nearer to the fingerboard to darken it, to make the change from the D to the A string smoother.

    4. Idea for group practice

      Learning Kreutzer etudes together?

    5. Bouncing bows

      The hairs act as a spring.

      Vertical component of stick-slip.

      Act as torque with the right thumb as the fulcrum.

  5. wikia

    KimikoMuffin has some strong reasons for not using Wikia.

    Wikipedia does not own Wikia, but who owns Wikipedia also owns Wikia: Jimmy Wales owns a share of Wikipedia and also a share of Wikia. Whenever you make a Wikia site, you're working, unpaid, for him and the other owners. Why would you work for free? (By the way, Wikipedia also has its share of unpleasant stories, but that's for another post.)

    An alternative that will give you more freedom (and ownership, but also more responsibility) is hosting on your own domain, but this needs some technical understanding.

    The bad news is that Wikia is the leader for niche wikis and there doesn't seem to be any meaningful competition: Google search result for niche gaming queries is typically full of Wikia articles. In the meantime, you can try Shoutwiki (there's even a wiki named Anti-Wikia Alliance) or Gamepedia.

5.6.11<2016-03-22> The reason for the name spacetimecat.com

In jazz-speak, a cat is a jazz musician, and I'm a jazz musician traveling through spacetime; hence the name spacetime cat.

However, most importantly, the domain is a dot-com, and it was available, untouched by rent-seeking domain speculators.

Another reason is that the name isn't tied to shady stuffs and doesn't have unwanted connotations. A quick google shows that the worst result for 'spacetime cat' is cat pictures, which should be pretty safe for everyone except perhaps a few extreme cat haters.

It's also nice that the name isn't too hard to remember or spell, but it's hard to get it wrong.

Hence I bought spacetimecat.com.

5.7Ethical design

6Does not belong in this page?

6.1LSEV (low-speed electric vehicle)

  • Big in China: Tiny Electric Cars video
    • $1,000 for a car that fits 2 adults and goes up to 60 km/h.

6.2"Sanity" does not exist

"an experiment conducted to determine the validity of psychiatric diagnosis" https://en.wikipedia.org/wiki/Rosenhan_experiment

6.3Antivaccinism is parental negligence.

http://www.thejakartapost.com/news/2018/09/05/rubella-kills-baby-in-jambi-as-vaccination-campaign-meets-resistance.html

What is the difference between killing and letting die? What is the difference between deliberately killing and deliberately letting die?

7Entertainment

7.121st century news

7.2Other entertainment

an0nymooose ooooOOOOOOOOOOOOOOOOH https://www.youtube.com/watch?v=nSRpbNru5aw&list=PLbZ4aMR4f3Sd_rvr40AYy_spbBu_xZGgA&index=8

[Vinesauce] Vinny - Best of The Choicest Voice https://www.youtube.com/watch?v=SB9Cpjd7PxI

Treadmill falls apart https://www.youtube.com/watch?v=XanTpm8dxMU from 1:24 of "YOU may LAUGH TO DEATH - Funny compilation" https://www.youtube.com/watch?v=j9dLVJgT79M

What the fuck are these guys wearing? "Kanye West & Lil Pump ft. Adele Givens - "I Love It" (Official Music Video)"

Café In Thailand Lets You Play With A Pack Of Huskies https://www.youtube.com/watch?v=hjrl-G0vySY

a dank meme: Trump, Kim, and "pees are stored in the balls"5

8Interdisciplinary comments

9Virtual hotel operators

9.1Who is OYO CTO?

From a 2016 article6:

  • In 2016, OYO gets new CTO: Anil Goel7
  • 20 years of experience in technology infrastructure
  • past head of technology for customer returns and reverse logistics at Amazon India in Hyderabad for three years
  • past chief technology officer of Hike Messenger

Is he more of the practical-type than the researcher-type? Is he more about business than about research? One interview question is "What is considered as a good business plan?"8

"[…] he went to BITS Pilani in 1991"9. Thus he was probably 18 years old in 1991, and 46 years old in 2019.

<2018-09-21> "OYO plans to hire over 2,000 tech experts, engineers by 2020":10

  • OYO is backed by Softbank and Sequoia
  • "we will continue to invest in technologies like artificial intelligence, machine learning, and IoT that will make curated guest experiences at every price point a reality, while ensuring sustainable income for partners and livelihood opportunities for several Indians."
  • "we are glad to partner with the government in its goal of creating millions of economic opportunities"

Ajay Shrivastava was the previous CTO?11

https://www.linkedin.com/pulse/solver-teams-oyo-hyper-agile-well-oiled-execution-ajay?published=u

9.2How many VPs does OYO have?

  • <2017-04-13> Suvesh Malhotra, VP of engineering12
  • <2018-09-21> Priyank Chaudhury, VP of technology13
  • Shreerang Godbole, VP of people operations14
  • Ayush Mathur, VP of business development15
  • Closed job: VP/AVP/Director of engineering16
  • Job description: VP of engineering17

9.3<2019-04-30> What is OYO doing?

Information sources:

  • OYO Engineering & Data Science at Medium18
  • OYOTech at Medium19
  • Official Oyo blog20

OYO Now!21

<2019-04-02> Spend USD 100 million in Indonesia22

<2019-04-02> From 0 to 500 properties in 5 months.

<2019-04-09> Oyo Wizard Membership23 seems to be a customer loyalty program.

<2019-04-30> "We introduced pioneering technology to the hospitality industry to deliver better and more efficient operations, management, service and CRM. Our app allows a user to book a room in just 3 taps, or within 5 seconds."24 (emphasis mine)

9.4What is Oyo doing with its engineers?

9.5OYO tech stack

In 2016, they are using pretty much a standard tech stack:2526:

  • They are using "Java/J2EE, Lamp, GoLang, Python/DJANGO" for their property management system ("You will work at an intersection of Finance, Business and Technology - owning end to end development of features that help us cater to our Hotel Partners.")
  • Java/Python/Ruby/C++
  • SQL
  • Amazon Web Services

Spring Framework (Java)27

"Easy" competitive programming questions. (Easy for competitive programmers, somewhat hard for non-competitive programmers.)

From the previous CTO Ajay28:

  • Website - Ember.js, Node.js, Javascript, Foundation, Bootstrap, HTML, CSS. Mobile - Android, Java, Objective C
  • Analytics - Hadoop, Map reduce, Amazon EMR.
  • Backend - Ruby on Rails, JRuby, Amazon Web Services, Data stores (Postgres, MongoDB, Redis, Memcache).
  • Quality - Java, Selenium

They used Ruby on Rails, according to one employee.29

But they are moving from Ruby to Java: "Almost all teams breaking the current code(Ruby on Rails) into new Micro-services (Java)"30

9.6OYO tech blog

9.7OYO software engineer interview experience

January 2018 Gurgaon interview questions. 20-30 applicants.31

9.8OYO software engineer salary

<2019-04-08> Glassdoor32: INR 900,000 (IDR 183,569,926 nominal, IDR 212,727,600 PPP-adjusted) per year. About IDR 17,727,300 real per month. This is before taxes.

INR 1,125,000 according to Hush33.

<2019-04-12> Cost of living per month in Mumbai for a bachelor34:

  • INR 26,000 for expenses without rent
  • INR 40,000 for 1-bedroom apartment in city center

Total cost of living in Mumbai for a bachelor: INR 792,000 per year.

Mumbai seems to be the most expensive city. They are hiring in other cities. Bangalore living cost is about 1/2 to 2/3 of Mumbai.

<2019-04-12> 2017 purchasing-power-parity adjusted data35:

  • USD 1 = INR 17.729 PPP-adjusted
  • USD 1 = IDR 4,190.492 PPP-adjusted
  • INR 1 = IDR 236.364 PPP-adjusted
  • INR 1 = IDR 203.97 nominal

9.9Disgruntled ex-OYO employees

There are some disgruntled ex-OYO-bizdevs36.

They probably have non-compete agreements.

Are non-compete agreements legal in India?

Are non-compete agreements legal in Indonesia?

Probably a disgruntled female engineer37

Probably an overworked biz-dev38

<2018-09-11> A damning review from "Join OYO only if you are desperate. Honest 2018 review with no bias." Current Employee - Software Engineer in Gurgaon, Haryana39:

  • Politics , politics everywhere.
  • Large salary disparity. You'll join only to know there are ppl in your team getting much higher than you get and than they deserve. CTO has a fetish for hiring people from Hike and Amazon.

He has worked at both places earlier. So he's pretty much bringing in everyone he knows from these places (I am not saying they are not good), but they will be given important roles than you, without question.

  • Almost all old employees have left/asked to leave Here's a red flag. The employees who joined during the time of old VP Ajay were now being called non-smart hires. The CTO has replaced EACH AND EVERY ONE OF THEM. They were the people who gave their blood and sweat to build OYO as it is today. OYO has a technique to make you leave the company now. They'll hire someone totally new and make them sit over you on higher position, to take away you responsibilities. Or they'll just give you no hike. So you'll and leave. I was hired after the new CTO came but the older guys were so awesome. Now there are hardly 5 older guys left. Whole tech team replaced.
  • There's a flood of freshers. They hired more than 200 freshers in one batch from IITs(any branch)/good colleges against 70 devs who were left at one time. No one has any idea of the legacy system. There's total chaos. Much time goes in doing their ramp up if you're an old employee. So by the evening you'll feel to do the work yourself instead of teaching them everything.
  • In the last 6 months, they made jokingly new teams,to accommodate the new hires, and hired managers from outside for almost all of them. most of them total jerks.
  • 90% people leave within 1 year of joining. So my advice: If you're a fresher or don't have any opportunity from anywhere else. OYO will be a good place as you can learn. But then again come with no expectations of respect or growth, as you'll watch it getting shattered within 6 months. My papers on their way.

But there are other good reviews too.

9.10OYO job openings

Software development engineer40

3+ years of strong hands-on development experience including at least 1.5 years of real-world web development experience using JSP, Java Servlets, Java Struts, Spring, & Hibernate

  • Good understanding of design patterns, object oriented design, and frameworks
  • Good RDBMS skills and experience in DB/SQL
  • Experience with multiple technologies - LAMP, Ruby on Rails, Python, Perl, Java, PHP
  • Exposure to MVC frameworks such as Rails, Spring, Django, CodeIgniter.
  • Experience working with scripting language such as Pearl [sic] - to quickly roll our parsers for analysis and write small modules - is preferred [WTF is Pearl? You mean Perl?]
  • Exposure to Postgres, Mysql (exposure to NoSQL database related technologies like MongoDB, Redis, Aerospike, Cassandra etc. is a plus)
  • Experience with SCRUM methodology or extreme programming is a great plus
  • Exposure to app servers like JBoss, WebLogic, WebSphere
  • Previous start-up experience or contribution to any open source project
  • Experience working on DROOLS or any other rule engine and SOAP/string based API integrations

https://www.glassdoor.com/Job/hyderabad-software-development-engineer-23-jobs-SRCH_IL.0,9_IC2865319_KO10,42.htm?src=GD_JOB_AD&rdserp=true&srs=EI_JOBS&jl=3130003429&ao=7438&s=21&guid=0000016a11df5d44b1d0113f56610e12&pos=104&t=EMPLOYER_SEARCH_RESULTS

IoT engineer: They don't bother writing the "What will you need to be successful in this role?" section. It is an exact copy of that of the back-end engineer.

ACP? What is ACP? https://www.glassdoor.com/Job/hyderabad-software-development-engineer-ii-iii-acp-jobs-SRCH_IL.0,9_IC2865319_KO10,50.htm?src=GD_JOB_AD&rdserp=true&srs=EI_JOBS&jl=3187186317&ao=7438&s=21&guid=0000016a11df5d44b1d0113f56610e12&pos=106&t=EMPLOYER_SEARCH_RESULTS

9.11In 2016 it seems that they are focusing on wifi experience

Firmware engineering manager41:

  • Deep hands-on technical experience in RTOS, at-least one of these Wireless technologies (BLE 4.2 or 5.0 with Mesh, LoRaWAN, 6LoWPAN, Zigbee, Thread, Sub-GHz RF), interfacing with multiple devices on UART, I2C, SPI, object-oriented design, data structures, algorithm design, High-level architecture design and complexity analysis
  • Good-to-have: Experience of working on IoT projects at-scale - Smart-lock, Home Automation, Vehicle tracking, etc.

Firmware engineer42

  • Sound experience of developing firmware on ARM Cortex, MSP430, AVR, DSP, or other embedded platforms for 16/32 bit microcontrollers.
  • Background in Systems Programming, Operating Systems, RTOS, IoT Protocols MQTT, CoAP.
  • Experience with Wi-Fi, Bluetooth development, and BLE solutions.
  • Knowledge of communication protocols: I2C, SPI, UART.
  • Excellent programming skills in one or more of the following: C/C++/JAVA/Python with a proven capability of delivering high-quality code.
  • Familiar with the use of embedded toolchains, ICE/JTAG debuggers, etc.
  • Good to have - understanding of Wifi triangulation, indoor location tracking & mapping techniques.

"Oyo Rooms wants to share digital record of your check-ins with government"4344

9.12OYO glassdoor

Not only software engineers? https://www.glassdoor.com/Reviews/OYO-new-cto-Reviews-EI_IE953789.0,3_KH4,11.htm Pros:

  • "Good work Environment and many things to learn at a go" (in 48 reviews)
  • "Team leaders are well qualified (except some) and you learn a lot from them" (in 18 reviews)
  • "Nice work culture of the company" (in 31 reviews)
  • "work from home , beer in office , flexible working hours" (in 14 reviews)
  • "a lot of opportunities to learn" (in 12 reviews)

Cons:

  • "6 days a week is something that the management needs to work to ensure proper work life balance" (in 92 reviews)
  • "No work life balance need to handle escalation" (in 32 reviews)
  • "Long working hours and work not challenging" (in 29 reviews)
  • "No work-life balance, no job-security" (in 13 reviews)
  • "Work culture, Hire and fire policy" (in 11 reviews)

9.13Government

"exemption [of taxes] for hotels that charge Rs 1,000 or lesser, and lower tax rates for those charging less than Rs 2,500"45

"This government has showcased [its] ability to be [unpredictable]"

9.14Does OYO have a research team?

Either OYO does not have a research team, or it is secret. But, the CTO seems to be business-oriented, so I think they don't have software engineering research.

9.15Who are some example OYO engineers?

What are their beliefs about software engineering?

9.16Who are some employees below VP?

9.17What do OYO recruiters think a VP of engineering do?

https://www.glassdoor.com/Job/vp-avp-director-of-engineering-jobs-SRCH_KO0,30.htm?src=GD_JOB_AD&rdserp=true&srs=EI_JOBS&jl=3083569104&ao=7438&s=21&guid=0000016a11df5d44b1d0113f56610e12&pos=118&t=EMPLOYER_SEARCH_RESULTS

9.18Dirts

9.18.1September 2018 sexual harassment

In September 2018, a female guest Jordan Taylor reported sexual harassment by some staffs in an OYO-branded property.

I think this is a culture clash.

From the point of view of the perpetrators, they were teasing the girl. I don't think those Indian guys really dared to rape her, because they would surely go to jail if they did.

However, from the point of the Western girl (and also Western people in general), that interaction is really creepy, abnormal, and outside the bounds of civility.

Nonetheless, it is improper and totally unacceptable for workers in the hospitality industry to behave like that, because they are in the hospitality industry, and they are expected to be hospitable.

"However OYO maintains that few incidents are insignificant compared to millions of check-ins happening everyday and the company tries to remedy any problem."46

9.18.2<2019-04-16> From Wikipedia

From Wikipedia47.

"OYO has been in news for using predatory pricing using its funding money to unfairly remove competition. It was also reported that OYO was not following its own agreements and have threatened the hotels to unilaterally change some of the clauses or suffer the consequences of non-payment."

"Oyo Rooms had sent mass unsolicited job offer emails targeting senior- and mid-level employees of competitor companies."

"It was reported by Business Standard in 2017 that OYO rooms were making massive losses without showing any significant revenues."


  1. https://rationaloptimist.wordpress.com/2014/05/24/utilitarianism-is-killing-one-to-save-five-moral/

  2. http://blog.practicalethics.ox.ac.uk/2014/11/why-i-am-not-a-utilitarian/

  3. https://www.youtube.com/watch?v=cQNaT52QYYA

  4. https://www.youtube.com/watch?v=vs41JrnGaxc

  5. https://www.reddit.com/r/dankmemes/comments/8qi1pt/supreme_leader_sees_the_light/

  6. https://www.livemint.com/Companies/GfBdOyw5rNidPCkmwc2KSJ/OYO-Rooms-appoints-Anil-Goel-as-chief-technology-officer.html

  7. https://in.linkedin.com/in/anilgoel1

  8. https://www.geeksforgeeks.org/oyo-rooms-interview-experience-for-software-engineer/

  9. https://yourstory.com/2018/02/techie-tuesdays-anil-goel

  10. https://www.thehindubusinessline.com/companies/oyo-plans-to-hire-over-2000-tech-experts-engineers-by-2020/article25005997.ece

  11. https://in.linkedin.com/in/ajayshrivastava1

  12. https://www.oyorooms.com/officialoyoblog/2017/04/13/welcoming-suvesh-malhotra-to-the-team

  13. https://twitter.com/oyorooms/status/1043108964542468096

  14. https://in.linkedin.com/in/shreeranggodbole

  15. https://in.linkedin.com/in/ayush-mathur-94004918

  16. https://in.linkedin.com/jobs/view/vp-avp-director-of-engineering-at-oyo-1190146439

  17. https://oyorooms.taleo.net/careersection/ex/jobdetail.ftl?job=18000562&tz=GMT%2B07%3A00&tzname=Asia%2FJakarta

  18. https://medium.com/@oyoengineering

  19. https://medium.com/oyotech/tagged/oyo

  20. https://www.oyorooms.com/officialoyoblog/

  21. https://medium.com/@shreyas.v.joshi

  22. https://bisnis.tempo.co/read/1191625/incar-100-kota-di-indonesia-oyo-hotel-kucurkan-usd-100-juta/full&view=ok

  23. https://www.oyorooms.com/officialoyoblog/2019/04/09/oyo-wizard-membership

  24. https://www.oyorooms.com/about?oyocorporate=

  25. https://in.linkedin.com/jobs/view/senior-software-engineer-at-oyo-1107116583

  26. https://startup.jobs/47930-software-engineer-at-oyorooms

  27. https://www.glassdoor.co.in/Interview/OYO-Full-Stack-Developer-Interview-Questions-EI_IE953789.0,3_KO4,24.htm

  28. https://in.linkedin.com/in/ajayshrivastava1

  29. https://www.quora.com/Which-development-platform-and-technology-are-used-by-OYO-Rooms

  30. https://www.glassdoor.com/Reviews/Employee-Review-OYO-RVW22416076.htm

  31. https://www.geeksforgeeks.org/oyo-rooms-interview-experience-set-8-software-engineer/

  32. https://www.glassdoor.co.in/Salary/OYO-Software-Engineer-Salaries-E953789_D_KO4,21.htm

  33. https://hush.company/oyo-rooms/salaries/software-engineer/

  34. https://www.numbeo.com/cost-of-living/in/Mumbai

  35. https://data.oecd.org/conversion/purchasing-power-parities-ppp.htm

  36. https://www.glassdoor.com/Reviews/OYO-new-cto-Reviews-EI_IE953789.0,3_KH4,11.htm

  37. https://www.glassdoor.com/Reviews/Employee-Review-OYO-RVW24717895.htm

  38. https://www.glassdoor.com/Reviews/OYO-Software-Engineer-Reviews-EI_IE953789.0,3_KO4,21.htm

  39. https://www.glassdoor.com/Reviews/Employee-Review-OYO-RVW22416076.htm

  40. https://www.glassdoor.com/Job/bengaluru-software-development-engineer-bangalore-jobs-SRCH_IL.0,9_IC2940587_KO10,49.htm?src=GD_JOB_AD&rdserp=true&srs=EI_JOBS&jl=3002042947&ao=7438&s=21&guid=0000016a11df5d44b1d0113f56610e12&pos=102&t=EMPLOYER_SEARCH_RESULTS

  41. https://www.glassdoor.com/Job/bengaluru-firmware-engineering-manager-iot-jobs-SRCH_IL.0,9_IC2940587_KO10,42.htm?src=GD_JOB_AD&rdserp=true&srs=EI_JOBS&jl=3131744908&ao=7438&s=21&guid=0000016a11df5d44b1d0113f56610e12&pos=112&t=EMPLOYER_SEARCH_RESULTS

  42. https://www.glassdoor.com/Job/bengaluru-firmware-engineer-iot-jobs-SRCH_IL.0,9_IC2940587_KO10,31.htm?src=GD_JOB_AD&rdserp=true&srs=EI_JOBS&jl=3103540384&ao=7438&s=21&guid=0000016a11df5d44b1d0113f56610e12&pos=113&t=EMPLOYER_SEARCH_RESULTS

  43. https://www.indiatoday.in/technology/news/story/oyo-rooms-wants-to-share-digital-record-of-your-check-ins-with-government-1431439-2019-01-15

  44. https://en.wikipedia.org/wiki/OYO_Rooms

  45. https://yourstory.com/2018/01/oyos-ritesh-agarwal-talks-full-stack-model-expects-budget

  46. https://en.wikipedia.org/wiki/OYO_Rooms

  47. https://en.wikipedia.org/wiki/OYO_Rooms