HNHacker News
TopNewBestAskShowJobs

ginja

177 karma · joined January 1, 2021

submissionscomments
ginja··on 3 percent of Python codebases we checked had silently failing unit tests
Regarding Django, if you add `pytestmark = pytest.mark.django_db` to the top of your file or organize your tests in classes and decorate those, then you won't have to decorate every single test :)
ginja··on That wild Ask a Manager story
You can still pay in person using chip & PIN or use an ATM without the app. This only applies to online shopping AFAIK.
ginja··on That wild Ask a Manager story
Ah that makes sense. I respect you not wanting to use an app, but most likely >90% of the people who make online purchases also have their bank's app so it makes sense that the flow is optimized for that.

I use Wise too, but they also support 3D secure and it is generally required on European merchants... Works great in the app, but it's probably clunky without it too :/

ginja··on That wild Ask a Manager story
> then receiving a code in a text message and typing it back, and now typing yet another personal code

Really? In my experience aside from typing the card numbers, all I have to do is approve the transaction with 3D secure which is one tap in my bank's app. It has never failed in my experience.

Maybe you need to switch banks? :)

ginja··on The enigmatic Portuguese R (2013)
In the 90s and early 00s there were a lot of lower class/uneducated Brazilian immigrants moving here and a small but significant part of them would cause all sorts of trouble, from bothering neighbors with loud parties in apartment buildings all the way to being involved in prostitution and violent crimes. This caused a significant amount of prejudice but that has mostly subsided since then as the next waves of Brazilian immigrants have been progressively higher class and more educated, and thus better integrated in our society.

Nowadays there is still some prejudice but the vast majority of people does not have any issues with Brazilians and, unless you are unlucky enough to run into some asshole, you'll probably not notice it at all. Kids care even less about these things so your kids are very unlikely to be bullied in school or anything like that.

In fact, my partner is originally from Brazil and her family moved here when she was 13. She always had friends, never really felt discriminated against, and is now sitting next to me working on her PhD thesis. The rest of her family loves it here too.

So I would say if you want to move here, go for it! Boa sorte :)

ginja··on The enigmatic Portuguese R (2013)
I'm Portuguese and I share this concern - PT-BR does have a lot of differences in vocabulary, grammar and pronunciation.

Pronunciation bothers us the least actually, but other things are weird and/or plain wrong for us:

- Lots of weird words adapted from English like "time" (pronounced "tee-me") which means team in PT-BR. Portuguese has a fine word for that already - equipa ("equipe" in BR) - and most of us speak good English so "time" is beyond weird for us.

- Wrong verb conjugations are used in informal conversation, e.g. "tu vai à praia?" (correct would be "tu vais à praia?" and generally we'd omit "tu" [you] because it adds no useful information)

- Many Brazilians seemingly think "mas" (but) and "mais" (more) are the same word because they pronounce it similarly and thus end up using "mais" for everything, even in writing

- Different usage of pronouns, e.g. "eu dou-lhe" in PT vs "eu lhe dou" in BR (or worse, "eu dou a você" - sounds like caveman language plus "você" is considered rude in PT)

Vocabulary differences make for some really funny misunderstandings sometimes though. My Brazilian neighbor's kid was really confused and scared when she was told she needed to "levar uma pica" (get a shot, as in an injection/vaccine) - in Brazil this same sentence means "take a dick". I hadn't laughed that hard in a long time.

ginja··on Ask HN: What is your spiritual practice?
The guilt is definitely pushed strongly in Catholicism and probably the worst part of it. But I don't think Catholics are too literal in their interpretation of the bible - in fact I think they are generally more rational than most other denominations. For instance, Catholics generally accept scientific explanations for evolution and the origin of the universe unlike many (most?) protestants.
ginja··on U.S. State Department phones hacked with Israeli company spyware
The US spies on its European allies all the time, and I'm sure they spy on Israel too, so that's not super surprising.

As for the USS Liberty, some do argue that it was intentional, but both the Israelis and Americans ended up agreeing that it was a mistake. The US is no stranger to such mistakes either, even more egregious ones like when they killed close to 300 civilians aboard a regular passenger flight following an approved route and in contact with ATC (Iran Air 655).

In the end both the US and Israel are amoral states that act only according to their economic and strategic interests and I feel that this unites them. I wish it didn't, though.

ginja··on MacBook Air M1: the best laptop?
I have the 16GB M1 Air. Haven’t done a lot of Java on it, but it seemed to work smoothly. Docker works okay but IO is really slow. I’m not sure if that is due to the new architecture, or if it’s just due to Mac running docker in a VM.
ginja··on Pfizer's oral Covid-19 antiviral cuts hospitalization, death by 85%
I mean, it is because you can look for another job or start your own business if that's the hill you want to die on.

But in general society has rules and we must abide by them if we want to participate. For instance I'm sure most people wouldn't appreciate if I walked around naked, which does not harm anyone unlike needlessly having an increased risk of contracting and/or spreading COVID.

ginja··on Treating beef like coal would make a big dent in greenhouse-gas emissions
I can’t read the full article because of the paywall but the main argument seems to be that cows emit a lot of CO2.

Ruminants eat plants, which contain carbon captured from the atmosphere. They then release most of that carbon back to the atmosphere, from where it will be eventually absorbed by plants again. So it’s a cycle where no new carbon is really being introduced (unlike burning fossil fuels that would otherwise stay in the ground).

Am I missing something or is the seriousness of this issue blown way out of proportion?

ginja··on iOS on QEMU
I use this: https://github.com/kholia/OSX-KVM

It works quite well for me. Simulator works fine (though graphics are slow) and so does connecting a physical phone (by passing through the USB controller).

ginja··on China unveils 600 kph maglev train
That's not true. Most derailments are minor and kill less than some 10% of passengers. Even one of the worst accidents in recent years in a western country[0] had 79 deaths out of 222 people on board (plus it was preventable like many rail accidents and would be impossible today as automated speed controls were put in place).

On the other hand, an aircraft crashing into a populated area will definitely kill everyone on board plus all the unlucky folks on the ground who happen to get hit by it.

[0]: https://en.wikipedia.org/wiki/Santiago_de_Compostela_derailm...

ginja··on Ask HN: What Are You Learning?
Yes, it doesn’t look as nice but is much better for IFR. The G1000/GNS 530 are accurate enough that you can actually practice with them.
ginja··on We can’t beat the climate crisis without rethinking land use
Anything other than a people weighted democracy would be, well, highly undemocratic.

Resource extraction, highways and wind turbines have to exist somewhere - so aren’t the more sparsely populated areas the obvious choice?

ginja··on iOS 15
I get a 404
ginja··on U.S. to give ransomware hacks similar priority as terrorism, official says
I too dislike megacorps, but you could say the same thing about a business being robbed - they most likely could have done something to prevent it but police will still respond and not charge them for it.
ginja··on Two Years of Squash Merge (2019)
I do agree that PRs should have a clean history. However:

- Services like GitHub allow you to restore the original branch, so you never actually lose history. So I don't see any major drawbacks of squashing on merge.

- If your PRs are several thousand lines long, they probably should've been broken up into multiple PRs (your reviewer will appreciate it)

ginja··on Docker for Mac M1 RC
It works reasonably well and doesn’t seem to drain a lot of battery. My only complaint is that running x86 images is super slow... By super slow I mean that running tests on a medium size Django project takes 10 minutes, as opposed to a minute on my Ryzen Linux desktop.
ginja··on Oakland bans the use of combustion engine-powered leaf blowers and trimmers
It's funny how everything is a matter of perspective. I'd say that European governments are pretty "center" on average, given that they mostly range from social democracy to liberal conservatism.

But anyway, in most medium to large European cities there is little reason to drive. The restrictions on vehicles are overwhelmingly positive for residents' quality of life and the environment.

ginja··on Parler social network sues Amazon for pulling support
Do you have any reputable sources for that BLM agent provocateur?
ginja··on Slack is down
I was just considering setting up a Mattermost instance for our company since I used it for a year at a previous job without any issues (I was just a user though, I didn't deploy or maintain it). Just curious, why do you think it's poorly written or unreliable?
← PreviousPage 2 of 2