Better HN
topnewbestaskshowjobs
Log inSign up

chinhodado

1,183 karma · joined Oct 21, 2013 (13y ago) · 204 submissions

Submissions

comment 2w ago · link · parent

That doesn't work if the reading app has its own custom context menu (e.g. Google Play Books app)

comment 2w ago · link · parent

A long time ago I wrote a dictionary app for my own use, which would show word definition upon the word being copied into the clipboard (e.g. from an e-book reader app). The dictionary app would run in the background and only show the pop up on clipboard event.

Then around Android 10 they tightened security and decided background apps can no longer receive clipboard event. Which makes sense from a security standpoint, but it totally broke my dictionary app. I just wish they're a way as a developer to get around it with my own app.

comment 5y ago · link · parent

That sounds like a hardware or driver thing, specifically related to GPU, rather than a Windows issue. You can try to disable hardware acceleration in Chrome.

comment 5y ago · link · parent

Facebook can't win. If they stand back and do nothing people scream about them being enablers of fake news, propagating misinformation and other things.

But if they remove posts that are reported then they are accused of censorship, of "unaccountable tyranny"

So what are they expected to do then?

comment 5y ago · link · parent

> The vast majority of folks shouldn't notice a change in their search results.

I'm not sure what you meant by this. How is this the case when repos with no commit within the last year (which is extremely common) are no longer indexed?

comment 5y ago · link · parent

I doubt that's the reason, given Microsoft's resources.

comment 5y ago · link · parent

This sucks. I use code search from time to time to find example usages of obscure APIs. With this change it's more or less useless now.

comment 5y ago · link · parent

I love Firefox, I use it everyday, I can't imagine using a browser without Tree Style Tab, or all the things that I can do in about:config.

At the same time, I can't shake off the dreadful feeling that it will eventually die one day. The market share keeps falling year by year.

What is the most realistic future for Firefox?

comment 5y ago · link · parent

I wonder how this data changes in Asian countries. I would expect the end section (time spend in later years) to be vastly different, although that may be changing.

comment 5y ago · link · parent

You can't talk about expensive cables without mentioning Nordost Odin 2 - something like $30,000 per meter.

https://www.analogueseduction.net/analogue-interconnects/nor...

comment 5y ago · link · parent

Is it? It has been a while since I read it but there was an article comparing the energy efficiency of different cooking devices and even though induction cooker is at the top the efficiency is only 70%-80% something.

Edit: Found it:

> There are no Energy Star® certifications for ranges, but research by the U.S. Department of Energy indicates an induction cooker is 84% efficient at energy transfer, versus 74% for a smooth-top electric unit, giving it a heating performance comparable to a gas element. More significantly, induction is 90% efficient with its power use, using 2.8 kW to deliver 2.52 kW. This is a substantial improvement over electric coils, which use 2.0 kW to deliver 1.1 kW (a 55% efficiency), and over gas, which uses 3.5 kW to generate 1.75 kW (a 50% efficiency).

https://insteading.com/blog/energy-efficient-induction-cooki...

comment 6y ago · link · parent

I especially hate it for reddit AMP links, since 100% of the time I have to click on the original link anyway to read the full comments, so it's an extra middle step for no good reason.

comment 6y ago · link · parent

I've never experienced anything like that in IntelliJ, and I've used it everyday for years now. Granted there are bugs especially around big releases, but I've never seen any UI bug like you described. Everything is always smooth and responsive.

comment 6y ago · link · parent

What do you mean 2-5x C++ performance?

comment 6y ago · link · parent

I think that's the point of the comment you replied to. Biden did quite badly early on in the primaries, and only after a large chunk of other candidates dropped out and threw their weight behind him with endorsements that he did significantly better. In a sense, the party has made up its mind on the candidate it wants.

comment 6y ago · link · parent

When I first joined one of my previous jobs, the build process had a checkout stage where it was blowing away the git folder and checked out from scratch the whole repo every time (!). Since the build machine was reserved for that build job I simply made some changes to do git clean -dfx & git reset --hard & git checkout origin branch. It shaved off like 15 minutes of the build time, which was something like 50% of the total build time.

comment 6y ago · link · parent

Maybe I'm too skeptical, but this seems a bit too obvious to me. Why would you try to poison someone with no real threat to you and risk him becoming a martyr, using a method that immediately brings you to mind, with a nerve agent that is also strongly linked to you?

comment 6y ago · link · parent

I don't understand. Are the models actually missing from Bing maps, or did MS remove them for copyright reasons?

comment 6y ago · link · parent

While I don't really care about the lottery and I'm fully aware about the odds, whenever there's a buy event in the office I always join. I consider that an insurance against my coworker winning.

comment 6y ago · link · parent

What drives me nuts with CORS is there's no (easy) way to disable it in the browser for development purpose, e.g. when I want to run some scripts in a local HTML file to do some basic web scrapping.

comment 6y ago · link · parent

I'm just starting to look into this and have a question. If I can export my metrics directly to TimescaleDB and it supports visualization with Grafana, is there any reason to go through Prometheus?

comment 6y ago · link · parent

Someone said this that I really like: "Firefox is Google's antitrust insurance for Chrome."

comment 6y ago · link · parent

How is it possible when Apple is the one initiating the lawsuit here?

comment 6y ago · link · parent

About North Vietnam's support of the Khmer Rouge early on, it's worth viewing things in historical context. During the Cambodian coup of 1970, Vietnamese ethnic was massacred:

> Paranoia flourished and this set off a violent reaction against the nation's 400,000 ethnic Vietnamese.

> Lon Nol hoped to use the Vietnamese as hostages against PAVN/Viet Cong activities, and the military set about rounding them up into detention camps. That was when the killing began. In towns and villages all over Cambodia, soldiers and civilians sought out their Vietnamese neighbors in order to murder them. On 15 April, the bodies of 800 Vietnamese floated down the Mekong River and into South Vietnam. [1]

Under the circumstances, the North Vietnamese allied with the Khmer Rouge and the ousted Sihanouk to take back the government from Lon Nol. In the beginning there was no sign of a genocidal regime, and the Khmer Rouges were just "comrades" supported by the Cambodian prince trying to take back his government. It was not until later that ethnic and ideological hatred turned the Khmer Rouge against their Vietnamese allies.

[1] https://en.wikipedia.org/wiki/Cambodian_Civil_War

comment 6y ago · link · parent

I have read both versions. My personal interpretation is the killings definitely happened, however there are a lot of grey areas and unknowns around what exactly happened there: who did it (the VCs/the armed civilians/the South Vietnam army/the US), who died in those graves (militants/civilians), the circumstances of the killings (military executions/mob justice/lynching/casualty from fighting/bombing), etc. Perhaps the truth is a bit of everything.

This will unfortunately remain as one of the tragedies of war that we will never know the full picture of.

comment 6y ago · link · parent

A bit off topic, but I was curious about the 3000 number and went to read about the Hue massacre on Wikipedia. Then I switched to the Vietnamese version of the article and the event was portrayed in a completely different light. Both versions are well sourced and well cited, yet they offer two completely different versions of the events as well as the overall conclusions of who was responsible and what happened.

It's interesting to say the least to see how a supposedly neutral source like Wikipedia can be manipulated to drive different view points.

comment 6y ago · link · parent

It's true, and it's sad but that's just how it works. Unless a country is attacked, it's very hard to find justification to intervene in the internal affairs of another country. That said, once war is inevitable, the atrocities of the Khmer Rouge made Vietnam understand that such a regime cannot be allowed to be left alone, both for the sake of the Vietnamese and Cambodian people.

comment 6y ago · link · parent

As a Vietnamese, one of the sad thing about this whole ordeal was how Vietnam's involvement in this was viewed under a very negative light by the world.

The year was 1978. Vietnam had just came out of the country's great war 3 years earlier, and was extremely exhausted to put it lightly. The last thing it wanted was getting in another war. But it had no choice. The Khmer Rouge crossed the Cambodian - Vietnamese border, looted nearby villages and massacred the people. You can read up on the details, but be warned the atrocities will ruin your day.

Under the circumstances which can be argued as an existential threat, Vietnam had no choice but to launch attack on the Khmer Rouge and swiftly got rid of them and liberated the Cambodian people, ending the genocide.

Yet the world's view on this has been incredibly negative. Even now, Vietnam is often seen as the invader, the aggressor in the conflict instead of the Cambodian people's liberator.

comment 6y ago · link · parent

> apps can't simply access the "external" storage (enforces scoped storage)

So how will perfectly valid use cases like file manager or backup manager work now?

comment 6y ago · link · parent

The driver works fine. It's a black laser printer, there isn't any fancy feature to have problem with. It prints what I tell it to print.

> HP has a Universal Print Driver that will support your printer and be compatible with Windows 10

The last time I checked, none of the official driver on the vendor website worked, nor the automatic driver that Windows installed. I mean that would be the obvious first thing people check when their devices don't work... For me using those drivers just printed out an error.

1234567