skysight-inc/HackerNews huggingface dataset:
> he's never had to mitigate XSS vulnerabilities in large PHP applications.

You can do this with <?= e(<expression-to-escape>) ?>, where e is a function that escapes strings.

Is this more work than writing {{ <expression-to-escape> }}? I guess, but this is what your template library is doing under the hood anyway.
That just doesn’t matter, legally. There were presumably people named Wendy for a long time but I can’t start a burger joint named Wendy’s, even if my name was Wendy.

If Match.com established the brand other people can’t. I didn’t make the law but people are downvoting me like I did, I just pointed out (and IANAL so maybe I’m wrong) that this seems like clear brand harm.
I think there’ll be a decent amount of home interest, particularly for home security. Linksys is already doing WiFi sensing as part of their various smart home products: https://www.linksys.com/us/support-article?articleNum=317804

The Linksys docs even mention how you may have to tune the sensitivity to filter out motion from your neighbors...
Why would dice be “retired” from a Casino floor?
Came across this ebay seller offering thousands upon thousands of "retired" dice from Ceasars Palace in las vegas.

Which made me wonder... is there a technical reason for retiring dice? Do they somehow become less random/useful?

Or did ceasars just change their dice branding or something?
You're conflating separate things.

I believe in personal freedom, but the limits of that are when it impacts on others personal freedom.

If someone dies of covid in hospital, they occupy a bed for about a month before dying.

A hospital has limited capacity. In my country, Australia, we have public health so everyone pays for that hospital capacity.

Vaccination reduces a persons risk of severe disease by 90%.

I got vaccinated to prevent myself and my family getting sick, and a nice side effect of that is that it also helps hospitals from running out of capacity, because I'm very unlikely to go to hospital should I be infected with covid.

It's insanely selfish and stupid to not get vaccinated.

I also think Assange should have been freed long ago, and I want journalistic freedom because the truth is the most important thing we have.
I'm curious, what effect do you see WW2 having on science itself? That is not intended to be argumentative, I'd like to hear your opinion.
Because "Doom" in the title was capitalized, I thought the article would be about relaxing loops you could do around Doom maps. What a disappointment.
That's... a perfect summary of everything I think about technology. Very grumpy and very optimistic. :)
typos are red

hyperlinks are blue

browsers like cookies

and so do you
Finally! X-Ray glasses like what the ads in the comic book promised!
The Church also gave them a lot of days off. Tons of feast days.
> Ironically
Coincidentally
Except the situation isn't over when your house has burned to the ground.

Taking the metaphor literally...

You have a family and you need shelter. You need to figure out how to survive without shelter. You need to see what you can salvage. Which means still trying to put the fire out so that some of your things or some of the materials can be salvaged so you can consider rebuilding. You need to start clearing out the rubble so that you can think about eventually rebuilding your house on that land.

Yes, it's discouraging, yes it's demoralizing. But humanity (and individual humans) has faced all sorts of extreme adversity over our history. As living creatures we have a survival instinct that requires us to continue fighting. Yes, this particular crisis is our own creation. Yes, it will damage the Earth and our specific ecosystem more than any other action we've ever done in our short time here. Yes, we might have a generation or several generations globally who will have a worse quality of life than the previous one for the first time in several hundreds of years. Yes, it's frustrating that this was caused by selfish greedy humans who will never be held accountable for it, and who will most likely have to coexist with, and collaborate on solutions when they finally decide when it's too late.

Nevertheless, we persevere, and we each do what we can to minimize the damage, to innovate solutions that may protect that what remains, and we think long-long-term.

Our ancestors frequently knew that they were a part of something much bigger and that the impact they could have had on the world or improving the lives of their children were miniscule. Yet they did so anyway. We have been brought up in a generation of boundless optimism thinking that we would all change the world for the better, while living in continuously growing prosperity. Not all of that turned out to be true. That's okay. We still keep going.

Understand, I did not start out with this point of view. I'm not an optimist by nature. I spent years being depressed and fatalist as you might be. I chose this mindset as a survival tactic. But I do believe everything I wrote.
Some additional perspectives:

Snopes is highly skeptical: https://www.snopes.com/news/2021/07/16/lab-leak-evidence/

An r/science essay from a PhD in virology is highly skeptical: https://www.reddit.com/r/science/comments/gk6y95/covid19_did...

While Root Claim estimates an 83% chance of a lab leak: https://www.rootclaim.com/analysis/What-is-the-source-of-COV...
Couldn’t someone just inject the original virus into a nearby animal population and say ‘look what we found!’ ?
> I’m very critical when a company like Slack cannot find the time and resources to make native clients.

I think they could, but they've decided it wouldn't be a good use of that time and those resources. The Electron app was probably written when Slack was a much smaller company, with less time and fewer resources. Now that they have more time and resources, they can choose to spend that on adding features and acquiring more users, or they can spend it on rewriting their entire app three times (ok, two times; I assume if they decided to go native they wouldn't spend the time on a Linux app). And remember this entire app isn't the app they started with; it has a lot more features than that one did.

It frustrates me too; with the exception of Signal Desktop, I've banished Electron-based apps from my machine (if I had more time on my hands, I would write -- and then spend a ton of tedious, thankless time maintaining and updating -- a native Signal Linux app). I use the Slack webapp in my browser, and it works just fine. And that's also the weird thing: I don't get why so many people use the Electron-based desktop apps, when the webapp has all the same features.
Yes, I considered justifying the impossibility of writing a TeX to HTML converter by saying that TeX was Turing complete and HTML was not. Yup, I considered doing that! Then I just made a simpler and less technical claim!
At least as of 2011: "Collins remains actively involved in research, studying the molecular genetics of diseases including cancer and adult-onset diabetes. His group also is developing animal models of genetic disorders to test potential therapeutic approaches." [0]

[0] Kresge N, Simoni RD, Hill RL. The Molecular Genetics of Cystic Fibrosis: The Work of Francis Collins. J Biol Chem. 2011 Aug 12;286(32):e8–9. doi: 10.1074/jbc.O111.000248. PMCID: PMC3151108
Thank you for the typo!

Indeed, it contributes to the variations problem.

also: If the discriminator starts off perfect, then the generator can't learn to be better.

Sort of like a human learning to play chess: If you start off with top-tier opponents that crush you, then you don't have a gradient to learn from. Instead, you need players at your own level to grow your skills.
Discussed at the time:

“Modern” C++ Lamentations - https://news.ycombinator.com/item?id=18777735 - Dec 2018 (249 comments)
No. The only way to disprove lab leak theory is for the CCP to disclose the WIV databases and records of what they were studying. Otherwise, just because it was found in some animal doesn’t quite disprove it. WIV was actively collecting virus samples from mammals for research funded by the US tax payer money through Eco Health Alliance.
I don't want to go all SJW on you guys, amazing work, but can you try to make sure there's an inclusive array of starting faces please? Talking about things like skin tones, thanks!
I feel like if it was many years ago lead pollution would be a nearly insurmountable confounder in such a study, but if you could find it I am sure it would be an interesting read.
wonder if that'll impact future game devs at all
I've been getting emails like the last one in my university inbox (Gmail-powered) for months now. They always follow the same format: a Vietnamese-sounding name (correct me if I'm wrong about that), followed by a 4-ish digit number. Most were going straight to my inbox instead of my spam folder.

I cut a support ticket to the university IT team, asking if they had turned off spam filters or something. It just seemed very unlikely Gmail would not detect them as spam. I think it's gotten better recently, but I don't open that account a lot since I avoid Google like the plague.

EDIT: to add to that, many of them had subjects that started with a green heart emoji. I was super disappointed that Gmail didn't let me create a filter based on that to at least delete them.
Buffer protocol means PyTorch can have a torch.tensor method, that can create a tensor of anything implementing this protocol (which NumPy arrays do), and likewise numpy.array can be constructed out of PyTorch array because PyTorch Tensor implements this protocol. E.g. they don't need to know about each other (so no dependency), only about the protocol.
Yes, because it's not sweet. Pineapple however pairs well with tomato on a pizza giving it a sweet and tangy flavour.
Ask HN: How do you read documentation?
What's your algorithm for reading / absorbing documentation about a particular framework / API / whatever? What best practices have you come across or developed?
I often fall asleep with my clothes on and TV on. Wake up in the middle of the night, take shower, brush my teeth and go to bed again. I feel more rested those nights that this happens.
Evidence of a Functional Clitoris in Dolphins
Thanks, MIT! https://en.wikipedia.org/wiki/Dina_Katabi

> In 2012, her work on Sparse Fourier Transforms was chosen as one of the top 10 breakthroughs of the year by Technology Review ... In 2014, on the celebration of Project Mac's 50th anniversary, her work on X-ray vision was chosen as one of the "50 ways that MIT has transformed computer science."
Stop the California Solar Tax
This isn't a US legal case; it's a scientific inquiry. Either lab leak or zoonosis is plausible, so you can't say one isn't the default until the other is proven. You don't flip a coin and say "heads until proven tails".
Ultimately it’s about perceptual color versus actual light. A red/blue gradient should be almost entirely transparent (ahem, grey if that’s what you’re getting from lack of data in RGB), but it too will “cycle through” and produce colors that don’t exist between red and blue. You’re expressing preference for a particular substitution approach that makes sense to you, which is perfectly fine as a preference but that’s all it is.

Edit: or it will produce the full spectrum between red and blue but that’s obviously not your preference.
Logic is taking a huge hit, ever heard of air currents, what makes u think its confined to small spots?
Ever heard of law of conservation of energy? The power required to generate EV doesn’t magically appear it requires equal amount of power generation plants. And right now its not clean and the switch will take decades.
No EV wave is not gonna happen with a flick of a switch, battery minerals are still limited and their production is not easy either. Batteries need significant amount of change before they’re viable alternative. Else its just a duct tape measure before we find an alternative.
And nuclear is already being banned in many countries, plus it has its own head aches. Renewables? I doubt how many countries are even considering it apart from a handful.
"The opposite effect occurred during the night, in which the positive effect of darkness on melatonin synthesis was counteracted by the negative effect of a low temperature."

Seems suspect.
It's easy to make sure you don't know what you don't want to know if you don't go looking for it.
It’s anti-scientific to not consider a leak from the lab studying coronavirus in a city where a novel one appears.

Where do you think hypothesis come from? Ingenuity based on educated beliefs is a the very core of science. The above stance sounds a lot like the cult of science which has become so pervasive.

They did not behave well. Many scientists put forward the seafood market and then animal vector believes which have equal or less evidence.
Your comment was flagged so I don’t see it all.

I’m hoping you were trying to do something other than attacking a group for existing, and that you had something else to critique.

It’s always possible to provide commentary or ask questions in a way that doesn’t necessitate bigotry.
Can't you use projection with the original image as input? Not for an exact copy, of course, but for a similar V2 rendition?
I was under the impression that the masters classes were designed to be a cash cow for institutions!
there's a difference between an end times prophecy and a confirmation that a planet killing asteroid will hit the earth in x months/years...

there's ambiguity on how long we have left.. but we're headed towards extinction or nearly... maybe a few million survive to rebuild..

but life as we live today is completely unsustainable...
In addition, six human genes were inserted into the genome of the donor pig…

Oh my. This is quite an achievement but also shocking to me the extent of gene editing performed.
It was multiple studios, not Pixar alone. http://www.animationlawsuit.com/faqs.aspx
IDK, seemed like it was pretty important to clarify that a quote was used very deceptively!

Seems important to point out that Chan's co-author is a climate-change sceptic that is a hereditary peer in the British House of Lords after chairing the bank Northern Rock - famous for failing spectacularly in 2007. Very credible!
This is the behavior of a priesthood.
I want my Wi-Fi to deliver me fast internet access, not track my position. Have a feeling this will be used for il-intent and monetized by future routers
Free speech absolutists are probably going to wind up losing us our freedom of speech.

Its good that you're exploring what the limits are and that you have found a limit. Those need to be clarified.
The DB should be caching some things, and you'd index which is basically a cache.
Not mentioned in the article but a futuristic guess would be to provide omniscient eyes for AI/robots.

Short term smart bots that can navigate and clean a cluttered household with little kids and toddlers knocking about.

Longer term, maybe nanobots.

It could be Rosie from the Jetsons but more likely it’s Amazon analyzing my poop density to sell me some goofball supplements.
I know that dice can be manipulated. I have read about a technique where dice can be put in the oven somewhere around 200 degrees with the intended values up to change the weight distribution and effect the probability without outwardly noticeable characteristics. Every time a player touches a die there is likely a possibility of them switching them with loaded replacements. Perhaps changing dice is a way to mitigate that risk.
We don't, and that's the issue, we can't know unless we find an ancestor virus. It's also very possible if could have wiped out the original virus in all original reservoirs. It's very difficult to do this now and for endemic viruses in general, and it took a very very long time to do for SARS where this wasn't a problem.
It's not officially supported, but it does seem to work, don't know if there are any bugs.

I agree that AMD is dropping the ball.
That would only disprove the genetic manipulation part, but not necessarily lab leak. A WIV lab staff can easily contract virus from a bat inside the lab. This essentially what happened in Taiwan, where a lab staff got infected with COVID from a mouse [1]. To disprove lab leak you also have to show either 1. WIV or any other labs in Wuhan didn't have any virus samples that can be an ancestor of SARS-CoV2 2. we can establish a very clear and well understood route how the ancestor of SARS-CoV2 arrived at Wuhan from Yunan province, where the horseshoe bats live, including how it became so good at infecting humans in a very short period of time.

[1] https://fortune.com/2021/12/10/taiwan-investigates-covid-lab...
> Slack isn't feature complete in their webapp if they even still have it.

It isn't? I use it daily and haven't noticed anything missing, except that voice calls don't work on Firefox, which is fine, because I never use them.
Interesting language

// Increment all elements by one (array-wise expression)
half[] += 1;

Is this really that useful? Seems like a weirdly specific code smell...
I think this can be carefully thought through and become something interesting. I don't fancy SQL, to be honest, despite having "structural" in its name it is too chaotic for XXI century. Rows and columns!

Schema-enforced document databases, on the other hand, are neat and mostly people- and machine-readable at the same time.

Another idea: downloading only indexes may greatly reduce number of requests needed to query the data.
I dig everything you’re saying and think the way forward is something like that. But right now implementations are very limited by screens, in my experience. Like, even if there’s 360 of a virtual space avail to me by dragging the screen, it ends up having the same issues — it seems like, for me, a persistent space is needed. There’s also some research to suggest that having such permanence is helpful to learning — it’s easier to remember info from a physical book because your brain can associate the CONTENT with the actual physical experience of the book itself, which leads to greater retention (I think it’s similar to how mind palaces are meant to function).

A mix of AR glasses and physical simulacra is where I expect it to go eventually. As in, I have 10 book “blanks”, and when I use AR glasses, they become whatever I wish (from my library). Ideally I could then flip around the blanks and see the content of the books — making it much more like my actual physical workflow.

Tl;dr you’re 100% right that the means and method of viewing are critical to what I’m after. But I think the main through line for me is that if I’m having to manipulate the camera AND the content, it leads back to the same issues I currently face. The point for me is being able to interact as I usually do, but with access to “physical” versions of everything I have digital (albeit with digital convenience — such as exif data readily available on the “back” of a photograph).

Hope that all makes sense and thanks for treating this so seriously!
I've been to lot of fancy restaurants and the server is most definitely expecting a tip. Where are you located?(for reference I'm talking about America).
If you are inclined to think the CCP knows / is covering up a lab leak; you are also inclined to think that they'd release fake disclosure data to cover it up.
Yes, any evidence of a lab leak theory could decimate Chinese society and further oppression.
Terahertz-radar doorbell breathalyzer virus test decides whether to smart unlock front door to allow leaving the house?

Philip K. Dick would be proud.
The way it’s worked ever since I’ve seen is the account is entirely separate. It’s just linked in. But they would have lost the features until they paid the normal rate themselves.
Common Office Desk Phone Could Be Leaking Info to Chinese Government
For some reason I thought I had clicked on the comments section for the "two sleeps" article and saw this and thought "wow".
That lazy river is wild!
Actually, the Mozilla Corporation, the entity that makes Firefox, is a for profit corporation that is wholly owned by the nonprofit Mozilla Foundation.

It has this weird structure because the search deal makes too much money relative to donations according to IRS nonprofit rules.

If B corps existed back when this structure was created, then they would have incorporated as that, but B corps didn’t exist then, and there’s no benefit to reincorporating as a B corp now.
Honestly surprised it's that close.
At least from my perspective, it's the standard reddit atheist dismissal/thought terminating cliche.

Certainly does correlate with a disdain of religion in my experience.
Do you happen to know why 10Gb Ethernet is still so expensive when PCIe and USB involve much higher bitrate PHYs by the dozen? Is it just a business thing? Or do 10GbE PHYs do something funky that has prevented them from sliding down the price curve, even after all this time?
What conflicts of interest does a CEO or the board of directors have from holding individual stocks? And why do you believe that to be as problematic as politicians holding stock in companies they are passing laws about?
Been on the hiring side a lot actually! I prefer to have conversations with people and hire primarily off OSS, it works really great
"Science" is a big-money industry with motivated sponsors, government influence, and strict gatekeeping.

When the quote says "further debate would do unnecessary harm to science," it's talking about this, the big S Science industry.

The scientific method is a way to verify truths by testing hypotheses. The Science industry will kick you out if you uncover inconvenient truths or even test the wrong hypotheses.
Snopes and the science page on reddit are not confidence-inspiring sources, to be honest. We need an authoritative investigation (led by WHO/CDC) into the origins of the virus to be able to make knowledgable statements. Until that happens, there is only hearsay and speculation.
How does Mullis insulting Fauci counter Drosten?

Mullis believed everyone who said HIV caused AIDS was lying or incompetent. His opinions about it are worth less than nothing.
By that point most of the low-hanging scientific "fruit" had already been picked. Due to increasing complexity and the high workload of running experiments, solo scientists could no longer make much progress. So they had to act as administrators and project managers, leading larger teams of assistants and graduate students.
> The lower bandwidth of DAB results in lower quality.

That's unlikely to be the reason. A 64 kbps AAC stream definitely has more potential than FM. If the DAB station sounds worse than FM station, it's probably because they use the same sound processing for both which is still optimized for FM.
I'm not sure how typical your experience is. My daughter needed to be fed every few hours for the first 11 months. Both my wife and I were freaking zombies. It was rough on us. My wife would basically get a couple of hours every time the baby went down, but no long and peaceful sleep.

In talking with friends, it would seem like our experience was extra crappy and yours is uncharacteristically mild. So the reality may be that many have to wake up at least once in the night to feed, so 2nd sleep kinda makes sense to me here. Not that I'm saying it's where the phrase comes from.
Full night of sleep, big breakfast, hot coffee, clean desk. Wash the stink off you. Meditate for 20 minutes. Focus on the breath. Pay attention to how the mind wanders, but keep coming back to the breath. Time's up. Now shift the focus to the task.
I tried this for a few weeks in college and it was a pretty neat experience. I slept first from 9-12 and then 3-7/8. Those three hours between 12 and 3 ended up being super productive - I was very energized and had creative ideas about whatever I was doing. I had to stop because going to bed at 9 in college was like kissing your social life goodbye, but even these days if I naturally wake up in the middle of the night the hours that follow end up being amazing for my productivity. I think I'll try it out again.