HNHacker News
TopNewBestAskShowJobs

tony

2,601 karma · joined October 29, 2013

open source software plumber

author: The Tao of tmux (https://leanpub.com/the-tao-of-tmux) available to read for free online at https://leanpub.com/the-tao-of-tmux/free

software libraries: cihai, unihan-etl, tmuxp, libtmux, vcspull, libvcs

https://tony.sh

(If what I say isn't helpful to you, disregard it. Spread the good will and good tidings!)

submissionscomments
tony··on The 40% Keyboard
I like the way z/ctrl works and got used to it. Same goes for / and ctrl on the right side. I meant it as an example of how ergodox squeezes more power into the keys.

I do use the configuration utility, for instance, to make it easier to do screenshots in Gnome. Also included in the configuration, there were firmware updates that fixed an issue where "a" would be repeated intermittently.

tony··on The 40% Keyboard
> Small style keyboards

I'm optimistic about them (depending on what "small style keyboards" mean to you). I consider ergodox in this category, due to how it does ctrl/z, function keys and layers.

Ergodox-EZ is quite beautiful. The build quality on it is solid. It's heavy, for a keyboard. This is not a logitech or microsoft keyboard where they cynically use cheap materials.

But, there are these "small" hacks: It joins Z with the ctrl key. Z has to be hit twice to type Z. Sounds like the end of the world, right?

No function keys, a layer key has to be used to get to those. Took me a bit of time to find where F12 was to get to the boot loader :)

My anecdote: I am programming and typing efficiently with it (vim, tmux). And I'm hopping onto a laptop keyboard with normal keys and at 100% speed, maybe with the exception of alt-tabbing and accidentally minimizing all windows in Windows 10.

tony··on Ask HN: How to Deal with Death Anxiety?
Erich Fromm is a psychoanalyst that emphasized human beings are set apart from other animals, one reason dealing us the ominous cognizance of mortality.

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

In Terror management theory, we as individuals and society are all faced with the existential inevitability of death, so we try to enforce cultural things and rally around them to ease the anxious feelings. As individuals TMT posits we try to boost our self esteem to that end.

https://en.wikipedia.org/wiki/Terror_management_theory, https://www.youtube.com/watch?v=Vy4W1s0vyJ4 (covers Fromm, TMT)

Also it's reassuring 1.) You don't love death (Fromm considered that to be the absolute worst of states of mind) 2.) that you're looking for social assurance 3.) finally hopefully you're pleased to find you're not alone in your feelings, mortality salience / death anxiety is an established concept. Why else would people be intrigued by all Doomsday movies / documentaries?

Fromm is very interesting to read on OP. He went into social and political psychology and, despite noting mortality, espoused an optimistic outlook on society and humanity. His concepts of escape mechanisms are genius and understated.

There's no where to go but up from here, hopefully!

tony··on Ask HN: How is your mental health?
I feel psychology has way many ways to help us. If you happen to open to new things:

- Personality psychology is insanely powerful and useful when it comes to understanding people / situations. An introduction to theories of personality Book by Robert B Ewen is gold.

Have you ever had gut instinct about how someone acts/a phenomena but lacked the words to express it? A distrust/discomfort, déjà vu, or feeling someone is being motivated by dredging up an issue from their past and trying to recreate it with you, to "try it on" you like a Cinderella slipper? (Could be in a good or bad way)

When you grasp the concepts, it can go well into looking at your family / upbringing, yourself, selecting a partner, personalities to distrust/avoid, etc.

Also you may find yourself liking concepts from Freud / Jung / Adler / Horney / Bowlby+Ainsworth and so on. That alone can give you a more informed perspective on behavior.

- Here's an example of professor using the above tools to dissect Twilight (haven't saw the movie or read it yet): Deconstructing Twilight: Psychological and Feminist Perspectives on the Series New edition Edition by Donna M. Ashcraft. She also written a personality theories workbook.

- Object relations stuff is absolutely awesome. https://www.youtube.com/watch?v=1Myk352wMSs. IMO it's far easier to digest if you grasp psychodynamic theories above.

- Projective identification: https://youtu.be/cBnZiP3W3ao?t=1215

- You can then take it into individual (like schema therapy https://www.guilford.com/excerpts/young.pdf) and family therapy methods (e.g. Bowenian https://www.youtube.com/watch?v=tLQOWoom2d0) where the concepts on the stuff above occur

tony··on Men View Their Ex-Partners More Favorably Than Women Do: Study
Internet is inverted therapy, beware the negativity please!

When we have a internalized, skeptical view on something, we have a tendency to seek confirmation of it and ignore clues that can open our minds.

There are other, more accepted perspectives we can use to understand relationships. I hope this can be helpful to people!

Attachment Theory: https://pdfs.semanticscholar.org/1d36/ac75d7081fcd86d467f6d2..., http://www.psychology.sunysb.edu/attachment/online/inge_orig...

Schema Therapy: https://www.guilford.com/excerpts/young.pdf

Also I recently found some nice study notes relationships:

http://fiupsychology.com/ch.6.htm, http://fiupsychology.com/ch.7.htm, http://fiupsychology.com/ch.8.htm

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

tony··on Ask HN: Tools for Cooperation
Notion - https://notion.so - wiki for orgs

Slack - https://slack.com - chat

Trello - https://trello.com - cards / prioritization

Figma - https://www.figma.com/ - interface design / wireframes

GitHub / Gitlab - source code server / pull requests

tmate - https://www.figma.com/ - share terminal over internet

tony··on Ask HN: Good cupcakes in SF that I can order online?
I don't, but if by chance you and your mentor are both in SF, I would like to recommend these:

- Wing Wings - 422 Haight St, San Francisco, CA 94117 - Good quality wings, The honey mustard w/ all the toppings were the only of there kind I've seen and were amazing.

- YakiniQ BBQ - 1640 Post St, San Francisco, CA 94115 - All you can eat Korean BBQ

As for the cupcakes, I upvoted hoping the thread gets more attention. It may be worth seeing if you can use Uber Eats to expand the possibilities.

tony··on Lesser Known Coding Fonts
Of all things in the world to say, congratulations to Microsoft for their work on Cascadia Code: https://github.com/microsoft/cascadia-code

It's hard to do these fonts justice via preview alone, but in whole it's very legible to read.

Aside: If you want fast access to a ton of fixed-width (coding) fonts, pre-patched for powerline, you can grab them at https://github.com/powerline/fonts.

If you do CJK (Chinese, Japanese, Korean) characters in the terminal and want crisp, bitmap ligatures, I recommend Wen Quan Yi Micro Hei. But it doesn't work well scaled up in HiDPI monitors unfortunately! CJK in the terminal is still kind of a mystery to me.

tony··on Pop_OS 19.10
Wanted to chime in and say Pop!_OS is the leader when it comes to HiDPI on Linux I believe.

Especially if you have 4K monitors or a 3K/4K mix where the monitors need a different DPI set.

PopOS uses a system to manage the scaling very well. https://support.system76.com/articles/hidpi-multi-monitor/

The closest comparison I've seen elsewhere is fractional scaling in Gnome 3.32+: https://wiki.gnome.org/Initiatives/FracionalScaling

If you have a configuration / workflow for HiDPI on Linux, it'd be nice to see if there were other options / any other things out there.

tony··on Are Aerospike Engines Better Than Traditional Rocket Engines?
Another one https://www.youtube.com/watch?v=K4zFefh5T-8
tony··on Show HN: Django REST – Typed Views
Starred.

Aside: If this is appealing to you (automated typing in REST) I think you would love GraphQL.

Typing is baked into graphql (https://graphql.org/learn/schema/#type-system). You can do it with graphene (https://graphene-python.org/) and django's graphene-djanago (https://github.com/graphql-python/graphene-django) which handles ORM wrapping and a view baseclass.

Having experience with it, one major downside is how exception handling works in graphene. There is a strange implementation of promises which doesn't translate well into python IMO. It ends up hijacking error resolution, making it hard to control execution.

On the other hand, being able to get instant documentation from graphql is a big benefit. Everything generates nicely to a schema.graphql file.

Instead of POST and PUT, graphql has a concept of mutations: https://graphql.org/learn/queries/, GET would be a query.

Also, graphql has built-in pagination via Connections: https://graphql.org/learn/pagination/

I still use REST in many places, but graphql has been one thing where the learning curve paid off. I wish REST had typing baked into it from the beginning.

tony··on Thailand judge shoots himself in court after criticising system
If you read the news Thailand is a very active area politically: https://en.wikipedia.org/wiki/Constitution_of_Thailand

Lately, I've been listening to a good class on law in general (mostly US law). I'd like to recommend a course called Law School for Everyone on Audible by Molly Bishop Shadel (at least that's who is narrating the episodes I've heard so far)

The reason I bring it up is it talks about what we do in USA to try make our court system fair. One of the major things is having representation is basically required to survive, a layperson won't be looped in on how to let evidence in / out, how to question witnesses, how/when to object so stuff can be appealed later, etc. The series explains it better than I could.

Off topic: This law professor has more material on YouTube. There are parables to being in front of a jury she cites in popular cases that hold true for public presentation in general, like being self-assured (good!) but not coming off as standoff-ish / bullying (bad, hurts credibility!). This sounds like common sense, but it happens with smart people and its impacted juries before.

Anyone here a lawyer from Thailand and could happen to explain their opinion on the judicial process? Maybe we can get lucky, worth a try. :)

tony··on Ask HN: If you were to switch career, what would you do?
- Psychologist / Counselor / Professor: Huge impact opportunity. Society is so career and status focused nobody pays attention to emotional needs.

There is opportunity help others understand and express the feelings of why they suffer, instead of acting out in indirect/critical, dysfunctional ways, which compounds the problems. That is just benefits that can be attained at ground floor.

Please check out Attachment Theory and Schema Therapy: http://www.psychology.sunysb.edu/attachment/online/inge_orig..., https://www.guilford.com/excerpts/young.pdf

- History professor: Because history rocks.

Aside: Montemayor, an independent history documentary maker, has a documentary on The Battle of Midway at https://www.youtube.com/watch?v=Bd8_vO5zrjo. If you would like to support his work he has a Paypal on his channel page!

- Flipping houses: Upgrade carpentry from tech level 0 to tech level 3 and get property + credit line

tony··on Amazon Echo Buds
I think one reason some may protest is these just aren't hacker-friendly to most IMO. They're consumption devices, and aren't tweakable enough, a la:

- Homebrew

- Custom firmware

- API's / SDK's

- Custom services / frameworks to orchestrate in-out-around vendors ecosystem (IFTTT?)

Not really enough to get at the gears of it. Is Alexa, by itself, the kind of ecosystem a startups would want to devote to? I imagine to make a really good Alexa product, it tends to be very specialized, and it's risky to be stuck with just one market.

Not to say Amazon's future isn't looking prosperous, but they control the APIs, the commission/royalty fees, etc. Whose to say 10 years from now, they wake up and say, you know, Alexa isn't financially viable anymore, your hardware has no site to connect to, and Alexa just shows the red loop/line of doom?

[1] https://developer.amazon.com/docs/alexa-voice-service/api-ov... I guess there's this.

tony··on Cleaning up bad bots
Cloudflare, as a service, has it all.

Nice UX, fast, free. Nice domain service if you transfer to them. Fast DNS management. DOS/bot mitigation. Caching. Quick SSL, and affordable upgrade options. 2FA via TOTP.

With all the networking/domain stuff momentum build, it would be nice to be able to spin up servers for apps/db.

Main language at cloudflare is golang? Rust? Any python over there?

Request: Allow changing the super administrator for cloudflare account more easily. At least for early-stage accounts.

tony··on Ask HN: Resources for Learning about Databases
Anything by Joe Celko: SQL for Smarties, Trees and Hierarchies in SQL for Smarties, Joe Celko

Also, the internals of Django ORM (https://github.com/django/django/tree/2.2.5/django/db/models) and SQLAlchemy Core (https://github.com/sqlalchemy/sqlalchemy/tree/rel_1_3_8/lib/...) and its dialects (https://github.com/sqlalchemy/sqlalchemy/tree/rel_1_3_8/lib/...) + ORM (https://github.com/sqlalchemy/sqlalchemy/tree/rel_1_3_8/lib/...)

tony··on Show HN: Cascadia Code, a Font for Windows Terminal and VSCode
Microsoft is just on a roll when it comes to open source.

- Windows Terminal is pretty solid, and fast. Dare I say, nearing rxvt-unicode/kitty speed. There are some remaining terminal corruption with tmux + vim sessions, but soon enough it'll be replacing hyper/conemu for me.

- WSL 2 alleviates file system issues that plagued WSL. I recently wiped debian off my Thinkpad because there's no point, I get everything I need from WSL 2. And I can start to dabble with learning C# / Visual Studio.

- https://github.com/microsoft/AirSim This thing, which has support for Unity and Unreal, and is MIT licensed

- VSCode: They ship a new feature release every month I guess? I was happy with it 1 year or two ago, but now they also have WSL 2 integration. This editor works across platforms on MacOS as well.

- Windows 10: Snapping, HiDPI, sound management, drivers just work, lots of apps in windows store, if not you have everything in chocolatey anyway. Steam, with all the games, at full speed. macOS is no longer clearly superior the consumer OS space. Windows 10 is better IMO.

The best part of Windows though is hardware choice. Unlike Apple where you're stuck with an expensive metal wedge, a keyboard you may not (or may!) like, that at least for me gets miserably slow after 3 years, in Windows-land you can pick Dell, Lenovo, HP, so on. You can build your own Desktop, and pick good quality components that last, that aren't soldered together wastefully. Generally speaking, it's more DIY / Hacker friendly.

Maybe Microsoft is getting stronger, or Apple is losing touch with open source stuff trying to push their app / boutique hardware business model. But without open source and standards, what will be left to sustain it all if/when their app/hardware market sours?

tony··on Illusions of Sound Perception
For more: https://en.wikipedia.org/wiki/Auditory_scene_analysis

This book Auditory Scene Analysis: The Perceptual Organization of Sound by Albert S. Bregman has more.

More foundational info on how we "fill in" information we see / hear https://en.wikipedia.org/wiki/Gestalt_psychology#Properties

tony··on The Use of Mercury by the First Emperor of China (2015)
Emperor Qin was seeking to become immortal. The most famous remnant of this emperor are the Terracotta warriors (https://en.wikipedia.org/wiki/Terracotta_Army).

The cool thing Qin did was introduce and enforce standardization of writing / measurements / item parts. This is mentioned in The Fall and Rise of China by Richard Baum at UCLA. I didn't know until today this inspiration came from https://en.wikipedia.org/wiki/Han_Feizi.

Qin also was known for having many attempts to assassinate him. For those interested in a fictional portrayal of the first Qin emperor, The Emperor and the Assassin is a very good movie. (Mandarin, english subtitles)

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

tony··on For Online Courses, Questions Over How Success is Measured (2014)
These are for MOOCs, not online degree courses, though.

There's no certifications with these. You can't get an accounting, law, or medical degree, bachelor/associate certificate, or anything you'd need professional accreditation for.

Maybe the completion rate is similar for people who buy books. I'd end up getting a book thinking it'd be an investment as it would be good as learning a subject. The next day I didn't really want to spend 12 straight hours learning Visual Basic.

Also these aren't like auditing a class and listening in on a real lecture either. Just from the list for UT Austin (a very good school): https://www.edx.org/school/utaustinx

There are university lecturers people listen to all the time though, through the Great Courses / Teaching Company. Those sort of fit the leisure-learner path and don't require logging into some system for it.

tony··on China Seeks to Buy Control of Hong Kong Companies
I find a lot of parallels with the French Enlightenment and HK.

It caught my attention because I'm listening to Living the French Revolution and the Age of Napoleon by Suzanne M. Desan on Audible.

Soon the course will cover the https://en.wikipedia.org/wiki/Storming_of_the_Bastille. Apparently it's common in history for societies facing extreme tension to have groups rise up and loot military garrisons (lest they starve). Thankfully, this doesn't happen as often because societies let their people participate in the future of their country by voting.

Backing up though, in last weeks audible lesson, I learned coffee shops were popular in pre-Enlightenment France for people to discuss their disapproval of the rulers and ideas for a new system (Voltaire loved coffee). During this time, plain clothes police would write dossiers on the speakers. The French had a name for them, "flies". This reminded me of claims on /r/hongkong spotting infiltrators blending in with protesters.

I hope HK protesters don't suffer unnecessarily for being targeted for political disagreements. From the news, protesters are interpreted as a national security / subversion concern, if this is true, doesn't that sort of contradict the 2 systems concept?

If HK can have their system, how can the law be improved if citizens can't communicate their feelings without harassment / surveillance? Wouldn't chilling of expression / speech spoil a system where the people rule?

The French Revolution had many differences, but the core of it is people were allowed to think, have self-rule, and wouldn't be bullied when they communicated displeasure it sucked they starved while aristocrats ate well (among a trove of other things).

In HK, wouldn't having more direct rule by the people result in new laws to ease the housing costs and make people feel pride, inclusion in their own region?

With this enthusiasm for liberty and democracy surging through HK, it's only a matter of time until they are granted universal suffrage forever, since PRC agreed that they are a separate system and always intended this level of freedom and flexibility for them.

tony··on China Experiments with a New Kind of Megalopolis
I'm not familiar with Singapore or Japan.

I think it's a different topic at that point, not familiar with anyone advocating it in this thread or anywhere else.

They probably have different rationale behind simplification though. Even then, it was before the advent of computers / IMEs (https://en.wikipedia.org/wiki/Input_method)

tony··on China Experiments with a New Kind of Megalopolis
If it's handwriting, maybe Simplified writing can serve as a way to write notes. But with computers and standardized education everywhere, why?

Please understand, the simplified Chinese conversion was done at a time where literacy was low worldwide: https://ourworldindata.org/literacy

There is more context at: https://en.wikipedia.org/wiki/Debate_on_traditional_and_simp...

This was the dearest point I had. You can even call the other points facetious or an overall thought experiment.

That's why I take great pride in my work on Cihai (https://cihai.git-pull.com/), which makes characters preserved through the Unicode Consortium's UNIHAN project more accessible. They will be ready and waiting to be implemented once again.

See https://en.wikipedia.org/wiki/Han_unification

In fact, our computers everywhere around the world reserve the codepoints of even ancient, now unused Chinese characters. UNIHAN also covers the ones used in Korean, Japanese, Vietnamese also (https://en.wikipedia.org/wiki/Han_unification#Examples_of_la...), and variants across them. And there are also reservations for bagua and yi jing hexagrams.

I hope China pulls the plug on this Simplified writing experiment. Chinese is a very beautiful language!

tony··on Show HN: Jupiter and Its 79 Moons
Fantastic. Starred.

Could the library that built this (https://typpo.github.io/spacekit/ / https://github.com/typpo/spacekit) be used to replace https://eyes.nasa.gov?

Application ideas: Wikipedia could embed something like this in astronomy pages. Or other way around, wikipedia could be integrated into the app itself if something is clicked on, a wikipedia entry comes up. Or a sidebar with artifacts in the solar system with a search+autocomplete, and clicking it zooms to it+brings up info.

So many possibilities my man. It's also smooth at the fastest speed.

TypeScript is amazing by the way. If you started it, I think you're a potential candidate to feel the benefits of it with spacekit.

tony··on China Experiments with a New Kind of Megalopolis
I don't understand the end game of what their current system is trying to achieve. I think they're trying to avoid splitting / division while hitting economic quotas (which they can't do without international commerce!), to spite everything else. It feels reduced to that.

What if China were to read through https://europa.eu/european-union/sites/europaeu/files/docs/b... and:

- remove GFW

- fix environmental issues / smog

- let regions with different realities self-govern, so it's still a country, but joined by commonality and principles Sun Yat-Sen would agree with

- cooperate on big picture things, e.g. currency, health insurance/regulation, customs, legal basics

- focus on human dignity, employment, labor rights, social security, beefy pension plans

- being able to regulate against price gouging, corruption, etc

- bring back traditional Chinese characters

What's wrong with China working closer to the way HK or Taiwan operates but having a constitution / system like EU?

tony··on Are black holes made of dark energy?
Does dark energy or dark matter box-in our way of thinking?

Have we actually proved scientifically there's a force or physical matter acting on something and it's not just being obscured from our vantage point?

Isn't dark energy/matter only visible at huge scales? Is there any pictures of dark energy or matter in any localized system? We didn't even know the correct color of Pluto until we got close, how could we know if something isn't actually there, or spacetime just twists and contorts for the sake of it without outside interaction/gravity acting on it?

Isn't there also a chance we're in a literal simulation of Plato's cave allegory until we see stuff up close? Not in the sense he meant it, but in the sense we're using assumptions/tools that involve inference. Wouldn't this risk assigning character/classifications to things that don't turn out to be true in the end?

tony··on Ask HN: What things do you wish you discovered earlier?
To some, they're therapy frameworks, to other's they're analytical tools. I bring it up here is because they cut to the chase and get to what people want. We're not good at saying it, it makes us too vulnerable to. Some of us could save a lot of time and misery if we broke this taboo.

Are you to open to viewing things in a different perspective? First you'd get a gist of the theory/framework/model/whatever. Then you'd need to understand what thing/person/system it's being used on. Without that, it'd be making too many assumptions to explain to others without context. The perspective is subjective to the one applying it, a blend of art and science.

I grew up in a family / circle where as an adolescent, nobody gave me advice or cared about my emotions. Worse, my parents dumped their emotions on me. Despite being a child and having my own stuff on my plate, I was recipient to persistent, intense emotional outpourings of neediness, anxiety and anger. Day in and out, for years. I looked up papers as a survival tool. Various other stuff that messed up me having needs met.

What do people need anyway? Does everybody have them? Do people need to be loved, how is it defined? Does society ignore, shame, or belittle our basic needs?

Sometimes, I think so. This means people are suffering and they can't even articulate why.

What if more people could simply be cognizant of these needs? Could/would we be happier? I don't know. I'm still digging into it.

tony··on Ask HN: What things do you wish you discovered earlier?
Nice job on Internal family systems OP! I'm not there quite yet but getting close

- TypeScript : Absolute game changer for JS. I can't imagine programming regular ES. Sort of hoping TypeScript becomes the next ES.

- Desktops : Desktop processors and video cards are insanely powerful compared to laptops. If you're doing any sort of compilation (even if it's webpack / frontend) this stuff helps a ton. A project that takes 90s to build on a mbp is 30s on a desktop.

- Windows 10 + WSL

- Attachment Theory: https://www.behaviorology.org/oldsite/pdf/AttachmentTheoryBe..., https://pdfs.semanticscholar.org/1d36/ac75d7081fcd86d467f6d2... (The stuff by Cindy Hazan and Philip Shaver are very relevant for adults)

- Schema Therapy: https://www.guilford.com/excerpts/young.pdf

Look up Psychology in Seattle on Patreon and download the deep dives for Attachment Theory and Schema Therapy. After that it's easier to grok the research papers/books.

tony··on React Hook Pitfalls
Love react hooks (along with TypeScript)

Just for the sake of readability. Easier to grok. Perhaps all along though classes I had were just making inefficient/incorrect use of lifecycles though.

React's lifecycles still mystify me. I can't tell where and how renders come from. If there was an easier way to trace it, it'd be nice.

I'm making use of `React.forwardRef` and `useImperativeHandle` also. It's neat because you can forward information from a inner component for "direct" access in its parent. (https://reactjs.org/docs/hooks-reference.html#useimperativeh...)

My pitfall is variables inside callbacks that used to be "live" are stale upon invocation. So if you have a complicated components where you fishline callbacks, it doesn't behave the same.

In my case, the solution was to wrap the callbacks in `useEventCallback` https://reactjs.org/docs/hooks-faq.html#how-to-read-an-often...

tony··on From FOMO to JOMO: the joy of missing out
Your honest response could be drowned out by other's errors for innocuous reasons:

> response errors in surveys can occur because respondents misunderstand the questions, cannot retrieve all the relevant information, use inaccurate estimation and judgment strategies, round their answers, or have difficulty mapping them onto one of the response categories.

These go into survey responses to sensitive questions:

- https://www.learnlab.org/research/wiki/images/a/a8/Tourangea...

- http://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.504...?

I'm straying off topic, they will try in various ways to bullet proof these surveys. I don't know, I think if a group of people are quizzed, there will be more incentive for people to not give accurate answers. Hm:

What if they come from a family where a guardian is an alcoholic but don't have a point of relation to compare to, and say it's fine at home? They haven't processed it yet.

Outside of surveys, there are blown personality/psychiatric assessments designed to detect over-reporting and malingering: https://scholarsrepository.llu.edu/cgi/viewcontent.cgi?artic...

← PreviousPage 5 of 8Next →