HackerTrans
TopNewTrendsCommentsPastAskShowJobs

obezyian

no profile record

comments

obezyian
·24 dni temu·discuss
I've been living for the past few years in another coastal region in Indonesia, which happens to be flooded since a millennium ago, probably more.

The flooding the article is talking about is relatively recent so the disaster aspect is real. It catches people by surprise. But when the flood has been there since time immemorial, people find ways to adapt and stop treating it as a disaster.

Where I live, houses are built on the water, even today. Poles are driven in the bottom, and you build on top. For streets, they pour shit ton of rubble to displace the water, then put tarmac on top. In the past, there were almost no roads at all, people moved around in boats. You want to buy food - you go with your boat to the "local market", which is just a bunch of other boats with sellers.

It affects the language as well. Since your house is high above water, you don't say "I'm going out", you say "I'm going down" - because you have to go down the stairs and into your boat. When you invite guests in, you say "Please, come up!", as if you are in a tree house :) This wording is used even today, when most houses are at ground level.

When you order food where you can choose the protein part yourself, the seller asks you "What [kind of] fish?", and you can say "eggs", or "chicken breast"! Historically, since most of the meat available was various kinds of fish, this was the established expression, and it has stuck to this day.
obezyian
·27 dni temu·discuss
The gtk3 docs give the following reason for the deprecation:

Menus are not meant to be torn around.

Yeah, they are meant to be implemented with web technologies and look like shit.

BTW, this tear-off style is probably quite old. Long ago, I used an early version of ANSYS (for Windows) which apparently was still close to its Unix original, and it had its menus pop up like real windows, with close buttons! They were nicely cascaded, but one could rearrange them.
obezyian
·27 dni temu·discuss
> store №20

> MEAT. FISH.

That's some Edward Bernays-level trickery right there. /s
obezyian
·w zeszłym miesiącu·discuss
> didn't have access to birth control. Babies weren't really planned, they just happened.

An early form of birth control in my home country was naming your baby Enough (Dosta). Not very efficient, obviously.

edit: it seems this was mostly used for breaking a streak of female babies (the name is feminine). but also in general.
obezyian
·w zeszłym miesiącu·discuss
Developing new vaccines is expensive, and if the target population is mostly in poor countries, there's nobody to foot the bill. That's why these diseases are called "neglected".

https://en.wikipedia.org/wiki/Neglected_tropical_diseases#Ec...
obezyian
·w zeszłym miesiącu·discuss
> They are not a significant food source for other animals

In Indonesia for one they are. Every night, countless geckos come out, both indoors and outdoors, and start hunting for mosquitoes. Even lullabies sing about it [1].

The above song is so popular that it got an AI parody [2].

I'm curious what food chain reaction this will start if successful.

[1]: https://youtu.be/dOhHiwWwXFw

[2]: https://youtu.be/c6Ad8WAigdQ
obezyian
·w zeszłym miesiącu·discuss
There is a crazy guy in our neighborhood, not unlike the one in the story.

He would walk around the streets all day, yelling, and swinging fists exactly when someone passes by him.

People from the neighborhood know him, and are not afraid. He never actually hits anybody, no matter how near his fists come to you.

One day, I saw the guy passing near the photo studio in my building, and the fake Santa that works there said something to him. Our crazy guy stopped and they had a conversation. I was passing by, and from the little I overheard he sounded like a completely normal person. Totally not matching his everyday crazy behavior.

I have no idea what made this transformation possible. My theory is that the Santa guy was probably a neighbor of his, and knew him from before he went crazy.
obezyian
·4 miesiące temu·discuss
Apparently, people with celiac disease do have "anxiety or something":

https://en.wikipedia.org/wiki/Coeliac_disease#Dietary_challe...
obezyian
·4 miesiące temu·discuss
This is country-specific, though.

In my country, despite voicemail being available since the introduction of mobile phones decades ago, I am yet to hear of a single instance of anybody actually leaving a message.
obezyian
·4 miesiące temu·discuss
It is bad ergonomics only on modern keyboards. Back in the day, there were keyboards with "lower case parentheses"[1].

Same case for vi - the : key was in a different place, and no Shift necessary[2].

Nowadays, I use a bespoke layout (in software) that solves the above two problems, among others. My number row is inverted, so parentheses become lower case, and I put the colon key next to 0 and Enter next to P.

[1]: http://xahlee.info/kbd/lisp_keyboards.html

[2]: https://en.wikipedia.org/wiki/ADM-3A#Hardware
obezyian
·4 miesiące temu·discuss
And it's kinda old, so maybe

  #define _POSIX_C_SOURCE 1
  #include <old-man-shouting-at-clouds.h>
obezyian
·4 miesiące temu·discuss
> Disabling C-z (suspend) because accidentally suspending Emacs in a terminal is never fun

This reminds me of a story from a past job. I have to get it out of my system.

There was this bearded sysadmin guy who was very proud of his "15 years of experience", and was quick to scold us new employees for every little thing he could.

He used vim, and every now and then would say that it's a good editor, but kinda "unstable". Crashed a lot, he said.

You probably know where this is going.

One day, one of us sat next to him and discovered many suspended vim jobs in his shell (this was the kind of guy that doesn't power off his computer).

He was fat-fingering C-z all the time, and has never heard of job control - bg, fg, etc.

15 years of experience.
obezyian
·6 miesięcy temu·discuss
Behind every successful man, ...
obezyian
·6 miesięcy temu·discuss
I use the piping feature of less to add some interactivity to git-log.

When a commit is "selected" (at the top line of the screen), usually after a series of n/N, I can press a shortcut that invokes an action on this commit.

Currently, I use it for two things:

1. Running git-show on a commit I'm interested in. The cool thing is that once I quit the git-show's less, I'm back to where I was in git-log's less. They stack.

2. fixup-ing a commit, after verifying with the command from 1. that it really is the one I want. I've had enough problems with git-absorb and git-fixup that I prefer to do it myself.

I detect when a particular command is running[1] and set up keyboard shortcuts that send key sequences to less and ultimately lead to the top line of the screen being piped to a short script of mine that extracts the commit hash and does something with it.

[1]: via a debug trap in bash, which sets the terminal title, which, in turn, is detected by keyd-application-mapper; other setups are possible, I used to use tmux for that.
obezyian
·6 miesięcy temu·discuss
I think by "out of the picture" PP meant that the shell is not processing the input, not that it has exited.

C-z is not processed by the shell but by the terminal "infrastructure".

You can disable it, or change the key binding, and a lot more, with stty(1).
obezyian
·8 miesięcy temu·discuss
> designed by people who are deep in Linux life.

> it actually feels UNIXy. It feels like home.

They use single dashes for long options.

This is not home.

https://linux.die.net/man/1/ocaml
obezyian
·9 miesięcy temu·discuss
> but TFA never claimed it was supposed to be "easy".

TFA> Another reason to use it is this turned out to be a surprisingly easy task.
obezyian
·9 miesięcy temu·discuss
Articles like this one are more likely to drive people away from make(1) than teach them to appreciate it.

This Makefile is anything but simple. It uses advanced features that are meant for complicated situations, just to create a few symlinks. The same symlinks, every time. And if you introduce a new dotfile to the repo, you have to update the Makefile too.

It also makes no use of the main feature of make(1) - to track files for changes, and update them.

For demonstration, here is the same functionality, in sh(1):

  files=$(find files -type f | sed s=^files/==)
  echo "$files" | sed s=[^/]*\$== | sort -u | { cd; xargs mkdir -p; }
  echo "$files" | xargs -I{} -n1 ln -sf $PWD/files/{} ~/{}
Doesn't use advanced features, shorter, and you don't need to update the script for new dotfiles. And more "ubiquitous" than GNU make.
obezyian
·10 miesięcy temu·discuss
A couple of Java programmers from my first job were stopped by police while drinking in a park.

When asked what they do for a living, they said they were programmers.

Then the police officer went:

– Oh, I see. HTML.
obezyian
·10 miesięcy temu·discuss
I went through this shit an year ago. The reports had to be weekly, though.

Everything sounded very mandatory, but a couple of months later nobody was asking about reports anymore.