skysight-inc/HackerNews huggingface dataset:
Should be "an infinite number of printf()s and scanf()s".
I would actually really like it if you would share some more high quality tech blogs!
I’ve had great experience with running it in a vm at the cost of screen sharing.
There's a lot of ways it could do so unintentionally - for instance, if it captures photos, it needs to scrub metadata like geolocation and it needs to allow you to black out portions of the photos before uploading them. But yes.
I see no evidence that Biden would be tough on China. He seems more likely to want to appease and try to profit from it than anything else.
Your example is controversial. What if that C99 coding style is company-wide accepted and everyone is comfortable with it. On contrary, newer, more shiny thing, like c++20 is not supported in tools and adds significant mental overhead.
I felt the same until I wrote https://arantius.com/misc/greasemonkey/fixed-only-at-top.use... which works automatically. Sticky bits are visible at first, disappearing only when you scroll down.
A New Paradigm of Object Detection: Using Transformers
Computer programmers: Please take care in choosing words for your code that don’t exacerbate racial stereotypes.

For example:

missionAllowlist[] = {};

...Or:

missionYeslist[] = {};

Instead of:

missionWhitelist[] = {};
Or, y'know, AIM.
I would say author meant not "create from scratch" as in "reinvent the wheel", more like be a creator who is making conscious choices. You can still be a creator by making a remix using samples created by other people. Difference is that you just don't blindly copy-paste with a bit of tweaking so it "fits", but to know what you do.
I have one of these NUCs and the GPU drivers work pretty great out of the box.
I remember watching a doc about this company a couple months ago! Super awesome company and the tech seems super solid.
https://knowyourmeme.com/memes/surprised-pikachu
> My concern is that people are going to go around collecting mental models and they’re going to use them to justify their stupid decisions.

If I look beyond blog posts about how to think, your sentence seems like an accurate description of human behavior. Isn't this what has always happened, haven't people always used mental models they've collected to justify stupid decisions?

I'd be curious to hear more about the alternatives, or how and where to find balance. And I mean this seriously and expect it's a hard-to-possibly-unanswerable question. We have a limited ability and time to construct our own mental models about everything, and we are exposed to other's mental models at all times through communication. It's not possible to be completely independent about ideas. It's only possible to build on, practice, and prove out maybe a few ideas that came from others during a lifetime.

"Does it really work?" I think is a great and essential question, and for many of these items in the list, the answer has to be yes for someone in some context. Maybe the question is when do they work, and will they work for me?
Great comment, just wanted to point out that musicians also get (tiny) royalty from their music on YouTube (when it’s uploaded officially or marked with the algorithm).
I think you may be right - never noticed it, but I struggle reading the "all caps" too.
Discovering Colombia's rare flora and fauna
The "surprised Pikachu" [1] meme is essentially the progression of some initial scenario, followed by the most reasonable and likely outcome, followed by a surprised Pikachu face. It's commonly used to for example sarcastically highlight that something that was overlooked should be common sense.

[1] https://knowyourmeme.com/memes/surprised-pikachu
Scientists Find Brain Center That 'Profoundly' Shuts Down Pain
Factually untrue. Google is paying Apple billions of dollars ($9 billion in 2018, $12 billion in 2019) to remain the default search engine in Safari.

AFAIK Apple is getting more money from Google than Mozilla does :)

You could say that if this deal went south, then Apple would keep funding Safari, however given they receive a ton of money right now, yes Safari is funded by ads and it goes without saying that they won't do anything to jeopardize those billions of dollars they are getting.

There isn't a single browser right now whose development isn't funded by ads.
I dunno. I'm pretty technical, in a data sciencey kind of way, and a lot of my career success has been explaining things relatively simply and accurately.

The combination of the two facets is much more useful than either alone.
America is giving up on the pandemic?
Is the Tech IPO Market Open? – ZoomInfo, Procore, & IPOing in Uncertain Times
I made around 2 k€ with a celebrity pics website, in the late 90s, just before the explosion of the internet bubble.

I misspelled the celeb's name and my site was the 3rd result on Altavista when other people made the same spelling error.
I put a counter and saw a lot of visits, so I added some banner ads.

A few weeks later I got a nice paper check that I converted from French Francs to Belgian Francs in the bank. It was before the EUR!

It was nice to have some pocket money, but I've always been ashamed of this site. 20 years later, I'm starting to think that it was kind of cool... It's still on archive.org!
I have an older PowerMate (USB, not Bluetooth) that I used about 15 years ago in my first carputer. It's really good for that, better than relying on just a touchscreen. The carputer is long gone, but that Griffin PowerMate is sitting on my desk in front of me right now. Still wonder if I can find another clever use for it.
Only good option is nuke the Windows and use the better OS, like GNU/Linux, FreeBSD or OpenBSD etc.
What is the most dangerous drug? (2019)
There are many countries that do such things, but the US selectively chose who are the ennemy du jour, and most are not tagged as such. In fact, some of them are friends with the US.

What's more, I recall the US in the last 2 decades:

- went to a war by lying about WMD and against the entire world (at least the world represented by the UN) will, killing thousands

- deployed mass surveillance of its own people, introduced bypasses to Habeas corpus and legalized torture using the Patriot Act

- elected a man that is at the center of so many Clinton-size scandals in a row it became the new normal

Now, I don't even begin to claim I have a superior country, mine has done many terrible things.

But let's not pretend the US (or any other superpower's) behavior has anything to do with morality. It's either naive or dishonest.

However, labelling everything with "war" is, indeed, a very American thing to do.
Reminds me of one of my favorite quotes:

“So convenient a thing to be a reasonable creature, since it enables one to find or make a reason for every thing one has a mind to do.” - Ben Franklin
> I believe part of problem is Google SEO.

This and the fact that Google search is actually as dumb as a sackful of hammers.

Don't get me wrong, for the longest time Google's results were "good enough", but Google has no real concept of the quality of a result (they've tried and it worked for a while - e.g., PageRank). Still, fundamentally their algorithms aren't smart enough to figure out whether any given piece of content is intrinsically worthwhile.

That's really important in a world where most content is, regardless of Google's guidelines, primarily written for the benefit of GoogleBot, to harvest clicks or drive traffic.

Unfortunately Google has literally zero incentive to change this situation (because they're making an insane amount of money off the back of the status quo), so they won't[1].

Logically then, the time is ripe for a new search engine to disrupt but the problem - that of determining intrinsic worth - is really hard to solve, so as yet nobody has, and Google still reigns supreme as the most popular search engine.

[1] It is also possible that I'm being too harsh here: they might be trying to change it - perhaps because they're worried about eventually being disrupted - but, as noted in the following paragraph, the problem is REALLY hard.
I have seen first hand two people getting hired (I did not interview them) who had reasonable blog posts and who, once they arrived at a desk, could not program. (Fortunately the second time I was in a position to change the hiring process).

I have also worked with several people whose skill was sounding clever. One liked to read MSDN magazine, and then regurgitate the talking points to the CEO and CTO, who liked to trot him out in front of potential investors and customers. The content was just advertising Microsoft products utterly inappropriate for our startup, and eventually the company died after failing to deliver feature after feature because of vast over-engineering.

There are communication skills and then there are programming skills. Being good at either one is rare. So statistically if you meet someone who is good at talking or writing about coding then, absent any other evidence, that actually tells you nothing about whether or not they can code. Script kiddies are still alive and well, and some of them are Blog Kiddies now.

Yet, though it is a small intersection, it is not empty.
If I can find the content online and not have to deal being around of bunch of people, I'll just save my money.
In other words, Turing machine as many other algorithms can take parameters/arguments.
Oh yes i LOVE Spacemacs, but not vim-mode but the 'IvoryTower'-Mode
Java and C++ aren’t popular because they are difficult to be proficient at. They are popular because they fit the needs of enterprise software better than other languages, and enterprise companies committed to them a long time ago and have huge amounts of software written in those languages.
No country is perfect, especially the United States. How many war crimes have been committed in the last 50 years? China is not the enemy. We could learn a lot of positive things from them.
A map of object space in primate inferotemporal cortex
with all these corporate products the motivation is to provide new features, not strengthen their (often very mediocre) core. In a security light this is just making more vulnerabilities, especially since zoom is using an unsafe language for some reason.

See also: atlassian, oracle, salesforce, zendesk, etc
> Guess what, everything offends some minority somewhere.

No. It does not. It most definitely does not. This is a lame excuse, and also a blatant lie.
> I think that's a really sad and cynical view.

It doesn't matter if it's sad and cynical, it matters if it's true.
There are many items involved in this. Defunding things like SWAT and military vehicles for police forces is a reasonable thing to do as most of those police forces don't need these things. If you look at all these particular issues then what was the policing policy that caused them? I think you need to examine why those were executed to get a sense of how to not repeat those mistakes. You've also got to look inside a police force at the people that are police officers. There are a lot of less desirable personalities in there. I don't think throwing police forces to the wolves is the way to go as there are lots of good officers impacted by this. I think police need to evolve not be tossed aside to start from scratch and repeat the same mistakes.
Considering how much fabric is somewhat redundant in those traditional garments, the measuring, cutting, and sewing are more interesting than the wasted fabric.
I think it's easy to say their "legitimacy" or "stability" depends on high growth rates, but I don't think that's necessarily the case. I would love to hear even one genuine expert on the subject make the case for a revolution in even the 30 years following a drop from insane growth back to earth.
I have a feeling this was posted a couple months ago here...
Do the police currently actually do any of those things for most victims of domestic violence?

Police can’t enforce restraining orders when the victim doesn’t have $10K’s to hire a lawyer to go to court and get the order in the first place. Getting such orders is hit or miss from what I’ve heard, even if you have the cash.

Instead, sand an unarmed social worker to recover the items. If the abuser escalates, or the social worker witnesses abuse, send the police to arrest the abuser and prosecute them for assault. Now, the prosecution has an unbiased witness to help them win their case.

90% of the time, the abuser won’t escalate, and the police won’t need to drive out. Repeat the exercise for all routine police actions. (Heck, we even have armed police enforcing playground rules in many schools.)

Having done that, and having eliminated 90% of the police’s workload, cut their budget 80%, and hold what’s left of the department to a much higher standard.
Just like to chime in and say I'm really appreciative of these efforts. I get devs at my firm who are learning to do web dev for the first time and ask why we're not using Redux by default. I link them to Dan's article and the Redux FAQ as part of my explanation that Redux is a life-saver when you need it and aggressive overengineering when you don't.
> Not true. I presume that PSNI, like any law enforcement agency in the U.S., operates with some form of a use of force continuum that ranges from officer presence to deadly force.

That's not what the person you're replying to means.

They mean despite what other options the officer had available to them, they had already reached for the lethal option (drawing their pistol) and from there had nowhere to go but threatening to kill or actually killing.

As soon as an officer turns up with a firearm, you have irreversibly escalated the situation to out-of-control insanity.
Playback Keyboard Shortcuts

CTRL+[ Decrease Speed

CTRL+] Increase Speed

CTRL+\ Set Increment Unit

CTRL+' Set Speed to Specific Rate

CTRL+; Reset Playback to Default

javascript:(function()%7B(function()%20%7Bvar%20rateUnit%20%20%20%20%3D%200.2%3Bvar%20osdTimeout%20%20%3D%203000%3Bvar%20eleOSD%2C%20osdTimer%3Bfunction%20showOSD(rate)%20%7Bif%20(eleOSD)%20%7BeleOSD.textContent%20%3D%20rate%20%2B%20%22X%22%3B%7D%20else%20%7BeleOSD%20%3D%20document.createElement(%22DIV%22)%3BeleOSD.style.cssText%20%3D%20%22position%3Afixed%3Bz-index%3A999999999%3Bright%3A5px%3Bbottom%3A5px%3Bmargin%3A0%3Bpadding%3A5px%3Bwidth%3Aauto%3Bheight%3Aauto%3Bfont%3Abold%2010pt%2Fnormal%20monospace%3Bbackground%3A%23444%3Bcolor%3A%23fff%22%3BeleOSD.textContent%20%3D%20rate%20%2B%20%22X%22%3Bdocument.body.appendChild(eleOSD)%3B%7DclearTimeout(osdTimer)%3BosdTimer%20%3D%20setTimeout(function()%20%7BeleOSD.remove()%3BeleOSD%20%3D%20null%3B%7D%2C%20osdTimeout)%3B%7DaddEventListener(%22keydown%22%2C%20function(ev)%20%7Bvar%20ele%20%3D%20document.querySelector(%22VIDEO%22)%2C%20rate%2C%20inp%3Bif%20(ele%20%26%26%20ev.ctrlKey%20%26%26%20!ev.shiftKey%20%26%26%20!ev.altKey)%20%7Brate%20%3D%20rate%20%3D%20ele.playbackRate%3Bswitch%20(ev.key)%20%7Bcase%20%22%5B%22%3Arate%20-%3D%20rateUnit%3Bif%20(rate%20%3C%200.1)%20rate%20%3D%200.1%3Bbreak%3Bcase%20%22%5D%22%3Arate%20%2B%3D%20rateUnit%3Bif%20(rate%20%3E%2016)%20rate%20%3D%2016%3Bbreak%3Bcase%20%22%5C%5C%22%3Aif%20((inp%20%3D%20prompt(%22Enter%20playback%20rate%20increment%2Fdecrement%20unit.%22%2C%20rateUnit))%20%3D%3D%3D%20null)%20return%3Bif%20(isNaN(inp%20%3D%20parseFloat(inp.trim()))%20%7C%7C%20(inp%20%3C%3D%200)%20%7C%7C%20(inp%20%3E%204))%20%7Balert(%22Number%20must%20be%20greater%20than%20zero%2C%20and%20less%20or%20equal%20to%204.%22)%3Breturn%3B%7DrateUnit%20%3D%20inp%3Breturn%3Bcase%20%22'%22%3Aif%20((inp%20%3D%20prompt(%22Enter%20playback%20rate.%5Cn(1.0%20%3D%20Normal)%22%2C%20rate))%20%3D%3D%3D%20null)%20return%3Bif%20(isNaN(inp%20%3D%20parseFloat(inp.trim()))%20%7C%7C%20(inp%20%3C%200.1)%20%7C%7C%20(inp%20%3E%2016))%20%7Balert(%22Number%20must%20be%20between%200.1%20to%2016%20(inclusive).%22)%3Breturn%3B%7Drate%20%3D%20inp%3Bbreak%3Bcase%20%22%3B%22%3Arate%20%3D%201%3Bbreak%3Bdefault%3Areturn%3B%7Drate%20%3D%20parseFloat(rate.toFixed(2))%3Bele.playbackRate%20%3D%20rate%3Bif%20(osdTimeout%20%3E%200)%20showOSD(ele.playbackRate)%3B%7D%7D)%3B%7D)()%7D)()
This is absolutely true, and it's fascinating to see the strength of visceral reaction against it.
You cannot ignore all progress, but not all motion is progress.

Technology selection is a very underappreciated and largely unreported skill set.

I think it relates to the Principle of Least Surprise. You can pick tech that has a lot of upside and isn't riddled with gotchas or demanding of eternal vigilance, or you can pick stuff that makes you feel like you're alive all the time.

The latter is risk-taking behavior. It's thrill-seeking. Several other replies exhibit disdain for this behavior, as I think we all should. These people are risking your company for cheap thrills. As one responder puts it, fuck 'em.
Okay I will use a unikernel to dialup to the landline number from an partly airgapped raspberry pi.

iOS sandbox is much more powerful thn macOS and the risk is significantly reduced
I think there are some situations where there might be a difference: ones where the adversary does not know for sure whether the data exists.

For example, suppose you work in the IT department of a law firm, something fishy is going on and you want to be a whistle blower, and you need a way to exfiltrate some evidence. You are getting rid of some obsolete laptops, and standard procedure is to wipe the drives before selling them.

Management has its suspicions about you because you've been asking too many questions. So they get another IT person to check the drives you were supposed to wipe.

If the drives have the data on them with a LUKS header, you've been caught (or at least they think you were too lazy to wipe the drives). If it's indistinguishable from random data, then you've given them no reason to suspect you.
IANAS!
One way to avoid this is to buy something like Rhodia that you want to use but is a bit more expensive. Then buy one even more expensive notebook. Now the Rhodia is your cheaper notebook and there is no longer an inhibition to writing in it!

(Yes this actually happened to me)
I interpret the issue as "racism" being used too broadly, such that a minor snub for "being white" is called racist, while sundowner towns and other Jim Crow laws are also called racist. It doesn't make much sense to lump them together.

We have "murder" and "manslaughter" - two forms of homicide. Wikipedia tells me the distinction goes back to at least the 7th century BC.

In US law, both have multiple nuances; first- and second-degree murder, and voluntary and involuntary manslaughter.

I interpret the argument as wanting to reserve "racist" for systemic and institutional racism.

We already have other terms we can use. For example, the law talks about discrimination on the basis of race and color as well as national origin, sex, or religion.

So, why not use "discrimination on the basis of race" or "racial discrimination" for the non-systemic kind, and reserve "racist" for the systemic one?

Even better, there's no reason to use "reverse discrimination on the basis of race" because that's identical to "discrimination on the basis of race."

FWIW, in my understanding of the issue, as I described above, I'm perfectly fine describing the US treatment of Mormons as racist - "white-on-white" racism - being also highly aware that Mormon religion was itself highly racist against blacks.

But the concept of "can't be racist against whites" isn't meaningful for even 100 years ago, because "whiteness" is such a slippery social construct. Finns were racially discriminated against, as the "Finnish race", and derogatorily called a China Swede, even though in the modern sense they are very "white".

As for "mostly a military coup" ... a genocide is by definition affecting a protected group - more specifically a national, racial, ethical and religious group. All of those are also protected groups under US anti-discrimination law.

If you want to argue that racism should be treated as a broad term, then genocide is a type of racism.

If you are arguing that my definition is wrong - congratulations. I'm a programmer, with only a lay understanding of the topic. My point wasn't to give an exactly correct definition but to point out an apparently deep misunderstanding of the issue at hand.
/sigh. Just buzzards circling around an opportunity to signal they're 'doing something'.
How is this different from replacing numpy with cupy?
I would say this is not unique to programmers, because i did it before i became a programmer. But then, i did eventually become a programmer, so maybe it is.
Great qs!

a) A really bad codebase like the one you're describing hasn't been the root cause of any failure that I've seen, and I have seen several companies recover from it and become very successful. Unfortunately what you're describing may be a symptom of a different root cause (poor judgment around what matters most to the business), and that can def kill you.

b) These things don't trade off against one another directly. Code quality helps feature velocity. In the early days the only thing that matters is getting product/market fit as that's an event horizon beyond which the future is unknowable; the way to get there is to iterate fast, which does require things like CI/CD and a coherent/non-spaghetti structure (even if the code itself is ugly).

c) I've seen both modes. My main view: what matters most pre-product/market fit is rapid iteration (see above). Once p/m fit has been achieved you need to be able to add features rapidly, which requires a different level of code quality (comprehensive tests, etc). There's no hard and fast rule here, but most products ultimately throw away most of their pre-product/market fit code within 1-2 years of scaling.

I actually recently wrote a blog post that touches on a lot of this here: https://staysaasy.com/engineering/2020/05/25/engineering-at-...

Good luck with whatever you're up to, whether at this company or elsewhere!
The author is saying linear regulators are better for high current which is questionable. He even references huawei but Huawei chargers don't even use linears. One Plus makes sense because their warp charge is ridiculous, they're doing 5V/6A which isnt even possible using USB PD protocol and theyre using a type a to c cable so clearly doing something proprietary there.

If i had to guess why oneplus can't step down higher voltages, it's probably specifically designed for 5V so it only supports the 5V/3A usb PD profile (hence the ~15W with a PD charger). No clue why they didn't allow 5V/5A for 25W over USB PD since that is possible. I don't think the author mentions anywhere in his article which 60W usb PD charger was used, so its hard to say that it is a valid test. 60W normally indicates 20V/3A, so it's possible the charger could not provide 5V/5A if the oneplus 8 pro did support that.

Anyway, huawei's own PD charger can charge faster over the PD protocol than this guys "60W PD Charger" according to https://www.firstxw.com/view/230511.html.
Yes, totally.

They could also fail because code/architecure is overengineered, not invented here syndrome or because of premature optimization.

In the beginning, being able to adopt and/or pivot quickly might be much more important than to have 100% test coverage, keeping up with the latest JS framework or being able to scale to 100M users.
Not all raw milk cheese is banned. Raw milk cheeses that have been aged less than 60 days are not allowed in the US and Canada(excluding Quebec). You can buy raw milk cheese in most supermarkets in the US.
That's a reasonable conclusion. If that was the author's intent, I think it would have been helpful to have described that further. In particular, I've noticed (anecdotally) that many early-career devs tend towards trying to code their way out of problems like it's a test or challenge.