skysight-inc/HackerNews huggingface dataset:
No senior engineer should blatantly concatenate strings to make an SQL query. That is a junior mistake, no doubts about it. If you haven't learned that user input is not to be concatenated into code unless you think long and hard about it and you're really sure there's no better option, you are not in a position to lead.

Seriously, if this is a mistake a senior engineer could do at your company, why would you work there? I'm not one for gatekeeping but this is learned within a couple of code reviews in your first years.
They mean that people who have been back and forth multiple times over many years don't see the value in TypeScript. This is totally consistent with my 15 years of experience working on many different complex projects and having gone back and forth between JS and TS.

TS helps if the project is really poorly written... But that's not something to aspire to.
Wait... What is depaware? How do I use it to make sense of go.sum in my projects?
We looked into this several years ago and found that most of our users had likely encountered and cached the several most popular versions on CDNs. There was a power law distribution in effect.

In the last five years, the release schedule has slowed, so there was a convergence onto fewer versions in the wild, but at the same time, users were visiting fewer sites that used CDN versions (and fewer sites in general.)
Yes there is something https://github.com/sqfmi/watchy-cases , but join the discord, cases are very actively being developed.
Yeah the best dice thrower, coin flipper on the block. Until he isn't.
I have used XForms in the early 2000s to build audit solutions with it. I think it worked really well :)
>Texas supposedly has about 30 GW of wind power capacity
>In reality solar and wind must be coupled with storage in order to act as reliable baseload generation.

The problem is there is no grid scale storage, and neither ERCOT nor any other organization I know of can will solar nor wind into production.

Completely agree with your assessment.

ERCOT leadership failed.

TX power grid failed.

People died.
Ah, yeah, it would need to work with an HTTP server for this to work well. Sandstorm has persistent storage on the server side - think server-side code running in a Docker container with client-side JS restricted to communicating with that container on the server. Client-side JS can't interact with the filesystem.

I guess I was assuming that real-time collaboration would eventually involve some sort of synchronization server as a rendezvous point, in which case that would be the natural thing to run on the server side in Sandstorm. That may not be the route you're taking though!
Small local farms also don't have to ship the food across the country or the ocean to get it to you. That drastically reduces the carbon footprint of such consumption.
All the extraterrestrial expansion, dream of Men to conquer Space, star track enterprise!
I'm pessimistic that we will ever leave our solar system, and if so in 1000 years, I do not care.

Hopefully people learn how tiny our bubble is and protect our environment more.
The Martian environment looks so boring -- as a replacement for polluted Earth.
(We will pollute Mars faster than Earth).

I'm living at the ocean, trying to keep my vicinity free of garbage.
Today I pulled out pair of trousers and some plastic bands out out water.
Sometimes I'm having fights with my elderly village neighbors, who are burning household trash (paper, wood) on the ocean shore.
I take their garbage out their hands and carry it to my home, later drive to the garbage processing center.
Indeed, unless it’s core in own the runtime store state to manipulate xml it’s seems like something that should be a user module
To track where the money is going, you have to multiply the count in each bucket by the value on the bucket.

And, get the income not reported as "household income". Income of most millionaires does not show up on there. Jeff Bezos's and Trump's incomes are not on there.
Nasa's image gallery UI is such a pain to use, I wish someone would upload these into a more user friendly photo viewer tool.
>Deno has a set of reviewed (audited) standard modules that are guaranteed to work: deno.land/std

This is such a great idea.
TypeScript is unnecessary. Type incompatibility is not a big problem at all... It's the easiest kind of bug to find and fix. The simplest tests will typically catch those bugs even when the tests are not explicitly looking for them.

On the other hand, issues related to parallel async state mutations which involve race conditions are very common in complex projects and are very challenging to debug. Type incompatibility issues are a walk in the park. You don't need a type checker for that. Just because your boss is incontinent doesn't mean that you also need to wear an adult diaper!
You think the 5-10 second deployment cycle is rubbish? You should try Google Cloud Functions! They're 3-4 minutes! Yay!
Thanks for the articles adding context. The author quoted in this BBC article either is pattern matching and blaming without evidence, or the author of the article decided not to do any research. Either way it's very poor reporting.
They do provide the source code. Just not as a git repo.
There was an error merging PDFs. Not very helpful, can you tell me what the error was or how to avoid it?
This is interesting but doesn't appear to be evidence. Any studies with a plausible identifying strategy? It could be, for example, that rents wouldn't have gone up much regardless.
By your logic, nobody should work at Facebook, Google, Apple etc etc etc.

Unless you're claiming that those SQL injection exploits were introduced AND review approved by junior engineers, a practical impossibility according to policy.

Your claim that senior engineers don't make whopping security blunders is absolutely false according to all available evidence. The smartest programmers working on kernels make them constantly.
Nice but the most interesting is left out imho. It stops at the human retinas. But the way color then triggers perception would, I assume, also have a very high influence.
For example we relate warm and cooler colors to turning forms relate the distribution of brightness and saturation to form, distance etc. Then the precieved forms and colors are related to feelings. So a better suitable colormap for medical images would require more to prevent misinterpretations.
'Pretty' is maybe also subjective but probably not arbitrary...
There's two underlying issues:

1) Failure of winterization across both wind and organic power sources
2) Unreliable nature of wind
Yeah, I beat this dead horse every time the armchair security quarterbacks climb on their high horse in these comments. These “dumb” mistakes happen to everyone, at every company. Even security experts. Even one of tptacek’s companies had a well known incident, and people said all the same things about their “dumb” mistakes.

Companies are very porous, people take shortcuts, temporary workarounds get forgotten and left in place, etc.

You can tell who actually has real experience by who is saying this and getting downvoted for it, ironically. All of the downvoted comments in this thread are correct.
Deno std library is unusable due to Cloudflare ratelimiting
I've written a number of small apps for testing at my company with basically jquery+html+rust backend "web server" and it works quite well if you're not trying to get too fancy.
you seemed to have missed the industrial part of the original comment. there is a reason you haven't waltzed into the horrible facilities that end up in documentaries, etc., to include: they are not approved on any non-cable network due to gore etc., not approved on Facebook, YouTube ToS (graphic violence), ag-gag laws, and so forth. you are not invited.

and let's not kid ourselves - with 50+ /billion/ land animals killed per year, almost all of which are factory farmed, the idea that joe farmer is going to pick up the tab with his 100 chickens isn't realistic, or that joe hunter is going to make a dent in that number.

as far as animals dying when crops are harvested, yeah, we can and should do better. at least they weren't castrated without anesthesia or lived their entire lives in gestation crates or getting inseminated (pigs), beak shaved off (chickens), or eyes cut off so they grow faster (crustaceans). the suffering isn't comparable; comparing it as such is asinine.
I'm speculating here, but I think these images are transmitted in some kind of raw format, or close to it, making them more resilient to data corruption. Compressed images will incur greater data loss when compressed, compared to raw images where you might lose a few image blocks at a time.
You could not be more wrong. You ought to be more humble, however.
I would think encryption would slow down the transmission rate. So most likely are sent in the clear
It was a help when thinking of starting my own business.
Microbes in bikinis, please
I would imagine the details are platform specific. I doubt that anyone is using OpenGL, as WebGPU is intended to bring the benefits of the Vulkan/Metal/DX12 generation of graphics APIs to the web.

On platforms supporting Vulkan, WebGPU implementations are probably compiling WGSL to SPIRV before handing it to the driver, and a DX12 implementation would probably compile it to DXIL. I'm not aware of any intermediate representation on Apple platforms, so it's probably transpiled to MSL there.
Yes. People under investigation are regularly advised by legal counsel not to leave the country as it causes complicated issues should a warrant be issued. Celebs with past drug issues are subject to a variety of monitoring, from casual to formal. But one does not hire someone who has current undisclosed issues, the type of thing a video might reveal. So the celeb will want to keep the evidence under wraps.

Many contracts have specific "no drugs" clauses. Evidence of drug use during such contracts is not good and really can impact future work.
Considering you are working with Python here is my personal experience and of course YMMV.

I use SpaceMacs as my daily driver (never had the want for doom emacs). And programming python was good. I had no "problems" to speak of and I could use emacs commands just fine when I didn't want to use vim-fu.

Vim/Neovim -> I have used both and they worked just as good as emacs when I had the plugins setup to my liking. I found SpaceVim to be more of my style instead of the manual setup though. However, learn the varieties of vim (there's graphical and terminal versions as well as other differences).

TLDR; emacs/vim -> time spent on learning the software and customizing it leads to productivity. If you were used to all the plugins and auto setup of VSCode and you really want to experiment with emacs/vim do it when you have free time and don't mind spending it.
> An AMZN share on the other hand represents some small percentage of actual labor and production being done by Amazon's employees.

Which is nice on paper but is functionally worthless for virtually all shareholders unless AMZN pays a dividend, no? The only way to generate wealth from AMZN right now is to give it to someone else for more money than you paid for it. If you bought AMZN 20 years ago for retirement, you'd still be waiting for that asset to produce anything on its own. For fun, compare that to the East India companies which paid up to double digit dividends from year one.

To be fair, AMZN is one of the more promising examples of these tech growth stocks, but many of them seem to be trading in a way similar to BTC: pure speculation on an asset which currently does not produce anything on its own -- and has no guarantee that it ever will.
I'll use what I can read. I can't parse that at a glance, and won't use it.

The real pro tip is: don't use bash if it's not trivial to read
If TVP is cheaper than meat as an ingeredient, then why does buying TVP product at the grocery cost ~4x more than buying meat?
This is incorrect. This is just repeating popular rhetoric.

Well designed projects are broken up into manageable, individually testable modules... So codebase size is an anti-pattern to begin with. As for time, you think waiting 15 additional seconds each time you want to test something doesn't add up and waste time? What about having to type up all these extra type definitions? You could have spent that time writing more test cases.
You triggered the fuck out of me. The saving grace of the Joint Strike Jobs program is that maybe 1% of the people learned what to do next time.
Roughly half of that $1.7 trillion is categorized as "food away from home," meaning it includes the cut restaurants and such get from selling you those same brands. Further, it's unclear if that $1.7 trillion includes alcohol, but those ten companies do not.
The latter. WGSL (purposefully) lacks many of the high-level niceties of GLSL or HLSL in order to be a good compile target as well. IIRC it has a 1-1 mapping to SPIR-V constructs, so you can see how one might build higher-level languages/DSLs/compilers on top of it.
The opposite for me. Typing makes zero sense. I know what I'm doing with my variables so why do I need to specify a type? Why can't the computer figure this out? Isn't that what computers are good at?
why aren't electrons spinning round an atom called "time particles"? Technically by the time they run out of energy, the universe will have died so they are "super time particles".
https://finance.yahoo.com/quote/GBTC?ltr=1
Microdosing study shows the placebo effect of taking psychelics
They use the same kind of compression as the last mission. JP2, I believe. https://en.wikipedia.org/wiki/JPEG_2000

I'm not sure that data compression has progressed that much since Curiosity in 2012 or Insight in 2018. There have been some formats that have improved compression at the expense of large amounts of memory or processing power, but neither of those are abundant on a rad-hardened processor. Neither is electricity. Neither are the toolchains to process such images very widespread or as well understood.
Rich Dad, Poor Dad

It's by no means a great book, but it covers the basics, it's accessible, and I read it at just about the right time around 18 years of age.

Something better / more modern might be:

https://www.penguinrandomhouse.com/books/317640/the-index-ca...

Learning the basics of accounting goes a long way too.

Unfortunately, you also need to read up a little bit on the gory details of taxes and deductions, pension schemes, etc in your country, and that stuff changes all the time, so the books and knowledge rapidly gets out of date - you want to try not to get distracted by the minutiae of that, and focus on accounting, assets and liabilities, income and expenses.
Rent are controlled in Quebec since as far as I can remember. Rent are affordable in Montreal and supply is not a problem.
I was with the article until they started talking about using two hands to shave and saving 14hrs a year, that's BS.
That's probably because we grew up learning and knowing that money is merely a tool. That means we don't have to prove anything, and consequently we don't need to spend lavishly on ostentatious displays of wealth.

In fact, spending lavishly on ostentatious displays of wealth soon puts an end to your wealth.

Look at our jewelry, there's very little: A 25-year-old Longines watch that's looking a bit faded and battered, but is extremely accurate; a plain gold wedding ring; and a pair of plain diamond ear-studs.

Look at our cars, they're probably previously upmarket but haven't been upgraded in years, like a 16 year-old Mercedes C-class that still runs well.

Look at our houses, sufficient is 'good enough'. We live in an 1800-square foot, 3-bedroom apartment on the eighth floor. That's nothing fancy.

We don't need a Ferrari, we don't need 10 watches that cost 15 grand each, we don't need a 40,000 square-foot mansion.

We spend when we have to, we don't spend when we don't need to. We don't waste time and money on 'get rich quick' gambles.
So much FUDD in that discussion. Very little information so far.

TLDR
Someone found support in code strings that would allow Apple to remove Rosetta 2 based on GEO region.

One poster speculated that, if this happens, it is related to changes in export control rules that might have affected Russian, Iranian, and North Korean regions.
https://microcorruption.com/

pretty easy and fun, there is a difficulty wall after a few stages though. but once you get there, you might be able to get through it with some general deduction skills.
Coal kills thousands of people a year in the US (13,000 if you believe the extreme estimates)

Less than 20 people have died in Nuclear related accidents in the history of this technologies use. And almost every single one of those were unrelated to the nuclear technology itself (electrocution, other workplace accidents that could happen in any power plant)

If you want to lump in Chernobyl and Fukushima we are still only talking 3-4000 deaths in history. And there's zero reason to believe these accidents are likely to ever occur in the US.

So yes, there are "undeniable risks", but they are vastly vastly overstated.

Especially when the "undeniable risk" of climate change is many millions of deaths whilst climate change activists insist we can't use the only technology that can almost entirely eliminate cooking the planet via coal, oil and natural gas.
Yep. Vienna is all mid-rises, basically everywhere throughout the entire city. I imagine that changes the calculus considerably.
They do. Source: a neighbor where I grew up used to ride quite a lot, and drink even more (he has since given up both). After a particularly wet night at a neighbor's place, some 7-8 km away (or half that, going straight through the forest like a horse), his friends simply heaved him on to his horse and sent him home.
Or you were wrong back then, and maybe should reconsider? Nah, HN users never reconsider their positions. ;)

At least reconsider the proof of stake crypto chains. Not an energy waste.
They compress them but transmit with forward error correction. They do have the ability to retransmit if the images are too damaged.

Totally uncompressed images are not a very efficient way to transmit images if you want to ensure they're scientifically accurate.
If I were a journalist who wanted to rake in money it wouldn't occur to me to include dull screenshots of diffs and commit messages. For that matter, it wouldn't occur to me to work for a niche outfit like Ars Technica either. My dentist probably earns more than a tech columnist.
> It is possible to define a struct type in C with bit-fields for the individual elements, however the C standard does not guarantee the layout and order of the individual fields.

As a professional embedded developer who uses bitfields to access registers every day, this doesn't really make a practical difference. On any bare-metal or embedded project you will rely on the behaviour of your compiler, and portability is largely irrelevant if you're accessing memory-mapped registers. Probably, the manufacturer has already provided register maps using bitfields anyway.
Science reform can get so personal
The rabbit hole was worth it...

https://en.wikipedia.org/wiki/Latch-up
https://en.wikipedia.org/wiki/Single-event_upset
https://en.wikipedia.org/wiki/Radiation_hardening
I was never a fan of the Rubyisms in Coffeescript. But it's sad nothing else ever implemented the YAMLisms.

Typing up constants in Babel JS is so much uglier than it needs to be.

But Coffeescript also introduced things like arrow functions that bind `this` to JS. Transpiling to ES5 allowed JS to evolve.
Top Gun: Maverick – Official Trailer in Lego
Seeing that makes me want to go dust off my OpenPandora!
Yes but ghidra is (much) cheaper.
That was a really, really fun read.
Please quote a single mischsrachterization from this article.
Beeyond is not like real meat at all, it's just more obviously "imitation meat" than soy. I don't know why fast restaurants don't just serve tofu like Asian restaurants -- it's cheaper and tastes just as good when they cook in a sauce. USA mass culture's fear of tofu is bizarre.
BYND to the MOON! [diamond hands emoji here]
It's not obvious from the syntax but Nim takes a fair amount of inspiration from Ada including this.
Drop-In Dark Sky Clone Using AWS and NOAA Forecast Models
Rent control is not scientific denialism. Economics is not a science because nobody ever does controlled experiments. There are also disagreements about what end goal you're trying to optimize for.

Economics is just a bunch of biased political arguments using different priors for assumptions. This is evident when you about different "schools" of economic thought. There are no irreconcilable "schools" of thought in the hard sciences with whole universities dedicated to only one school or another.
Why? Because missions like these contribute to our understanding of extraterrestrial worlds, like Mars. The data collected will help with future space travel and potential settlement.
Nailed it - https://www.jpl.nasa.gov/images/avoiding-hazards-at-jezero-c...

(A little more complicated than that of course. If I understand correctly, anything in blue was a candidate landing spot that it was free to select from. I'm pretty sure the header image is an artistic crop :) )
Looking forward to using this tool! Are there plans to make this open source?
How many cow anuses would it take to make McDonalds meat? more than cow anuses exist in the world, I bet. McDonalds' is made of meat, just processed into a highly manageable consistent form.
park your car in London traffic before complaining that there's no value in wide streets.
I've had a 210% year toying around with stocks. I just assumed everyone had been doing well since the drop last March.
Well, it's not like there's a counterfactual Venice with a market to compete with the real Venetian government. But even accepting your claim at face value, all I said was that the government paying construction companies was not likely to outperform landlords paying construction companies by that much, because the best they could do would be to get rid of the (actually quite small) cut that landlords take for themselves. It's not exactly axiomatic that a well-functioning democracy can't sign the same contracts that landlords do, it's just that the amount to be gained is limited by a force all socialists should be intimately familiar with: the tendency of the rate of profit to fall.
I'm not going to tell a company they can't employee bletcherous cretins, let alone make it illegal. I strongly support the right of people who don't want to employee them to not to have to.

As someone else here said, "asshole" is not a protected class.
What? This doesn't read like English. It certainly doesn't address what I wrote.
I'm surprised by the number of sheep. At least I thought the number for pig would be larger.
impossible is focusing on restaurants more than mass market. observe eg partnerships with chefs/restaurants. a fairly large amount of beef in the US is consumed in restaurants/made to order type stuff; that's what they're attacking