id
int64 2
42.1M
| by
large_stringlengths 2
15
⌀ | time
timestamp[us] | title
large_stringlengths 0
198
⌀ | text
large_stringlengths 0
27.4k
⌀ | url
large_stringlengths 0
6.6k
⌀ | score
int64 -1
6.02k
⌀ | descendants
int64 -1
7.29k
⌀ | kids
large list | deleted
large list | dead
bool 1
class | scraping_error
large_stringclasses 25
values | scraped_title
large_stringlengths 1
59.3k
⌀ | scraped_published_at
large_stringlengths 4
66
⌀ | scraped_byline
large_stringlengths 1
757
⌀ | scraped_body
large_stringlengths 1
50k
⌀ | scraped_at
timestamp[us] | scraped_language
large_stringclasses 58
values | split
large_stringclasses 1
value |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
42,025,844 | bookofjoe | 2024-11-02T11:59:25 | NASA Tells SpaceX to Focus on Safety After Astronaut Hospitalizations | null | https://gizmodo.com/nasa-tells-spacex-to-focus-on-safety-after-astronaut-hospitalizations-2000519391 | 4 | 1 | [
42026270,
42026079
] | null | null | null | null | null | null | null | null | null | train |
42,025,852 | null | 2024-11-02T12:01:43 | null | null | null | null | null | null | [
"true"
] | null | null | null | null | null | null | null | null | train |
42,025,857 | null | 2024-11-02T12:02:14 | null | null | null | null | null | null | [
"true"
] | null | null | null | null | null | null | null | null | train |
42,025,861 | null | 2024-11-02T12:02:44 | null | null | null | null | null | null | [
"true"
] | null | null | null | null | null | null | null | null | train |
42,025,865 | null | 2024-11-02T12:03:14 | null | null | null | null | null | null | [
"true"
] | null | null | null | null | null | null | null | null | train |
42,025,869 | null | 2024-11-02T12:03:45 | null | null | null | null | null | null | [
"true"
] | null | null | null | null | null | null | null | null | train |
42,025,889 | LinuxBender | 2024-11-02T12:07:31 | NCSC Details 'Pygmy Goat' Backdoor Planted on Hacked Sophos Firewall Devices | null | https://www.securityweek.com/ncsc-details-pygmy-goat-backdoor-planted-on-hacked-sophos-firewall-devices/ | 2 | 0 | [
42026071
] | null | null | null | null | null | null | null | null | null | train |
42,025,893 | yamrzou | 2024-11-02T12:08:36 | The Noble Art of Self-Deception | null | https://www.psychologytoday.com/intl/blog/what-is-a-human/202307/the-noble-art-of-self-deception | 1 | 0 | null | null | null | null | null | null | null | null | null | null | train |
42,025,894 | yamrzou | 2024-11-02T12:08:54 | The Evolution of Overconfidence | null | https://www.nature.com/articles/nature10384 | 2 | 0 | null | null | null | null | null | null | null | null | null | null | train |
42,025,899 | LinuxBender | 2024-11-02T12:10:00 | Booking.com Phishers May Leave You with Reservations | null | https://krebsonsecurity.com/2024/11/booking-com-phishers-may-leave-you-with-reservations/ | 2 | 0 | null | null | null | null | null | null | null | null | null | null | train |
42,025,906 | LinuxBender | 2024-11-02T12:10:38 | XFCE 4.20 Pre1 Pre-Release Published for Testing | null | https://www.phoronix.com/news/Xfce-4.20-Pre1-Released | 4 | 2 | [
42025996,
42026059
] | null | null | null | null | null | null | null | null | null | train |
42,025,908 | hannob | 2024-11-02T12:10:47 | Is Sweden's Green Steel Transformation Still on Track? | null | https://industrydecarbonization.com/news/is-swedens-green-steel-transformation-still-on-track.html | 1 | 0 | null | null | null | null | null | null | null | null | null | null | train |
42,025,909 | jimminyx | 2024-11-02T12:10:59 | Exosomes could become more than just an "anti-aging" fad | null | https://www.technologyreview.com/2024/11/01/1106377/exosomes-more-than-anti-aging-fad/ | 2 | 0 | null | null | null | no_error | How exosomes could become more than just an “anti-aging” fad | 2024-11-01T06:00:00-04:00 | Jessica Hamzelou | They might not make you beautiful, but research suggests exosomes might help us diagnose and treat diseases.Getty Images This article first appeared in The Checkup, MIT Technology Review’s weekly biotech newsletter. To receive it in your inbox every Thursday, and read articles like this first, sign up here. Over the past month or so, I’ve been working on a story about exosomes. You might have seen them advertised—they’re being touted as a hot new beauty treatment, a fountain of youth, and generally a cure-all therapy for a whole host of ailments. Any cell biologist, though, will tell you what exosomes really are: tiny little blobs that bud off from cells and contain a mixture of proteins and other components. We’re not entirely clear what those components are or what they do, despite the promises made by medspas and cosmetic clinics charging thousands of dollars for exosome “therapies.” As one recipient of an exosome treatment told me, “I feel like it’s a little bit of health marketing bullshit.” But there is some very exciting scientific research underway to better understand exactly what exosomes do. Scientists are exploring not only how these tiny particles might help cells communicate, but also how they might be used to diagnose or treat diseases. One company is trying to use exosomes to deliver drugs to the brains of people with rare neurological disorders.
It might take longer for these kinds of exosome applications to get to the clinic, but when they do, at least they’ll be evidence based. Exosomes are a type of extracellular vesicle. This is a scientific way of saying they are basically little packages that bud off from cells. They were once thought to contain cellular garbage, but now scientists believe they convey important signals between cells and tissues.
Exactly what those signals are is still being figured out. The contents of exosomes from cancer cells will probably be somewhat different to those from healthy cells, for example. Because of that, many scientists hope that exosomes could one day be used to help us diagnose diseases. In theory, you could isolate exosomes from a blood sample, examine their contents, and figure out what might be going on in a person’s cells. Exosomes might provide clues as to how stressed or close to death a cell is. They might indicate the presence of a tumor. Raghu Kalluri, a cancer biologist at MD Anderson Cancer Center in Houston, is one of the researchers exploring this possibility. “I believe that exosomes are likely providing a forensic fingerprint of what the cells are undergoing,” he says. But understanding these signals won’t be straightforward. Exosomes from cancer cells might send signals to surrounding cells in order to “subjugate” them into helping the cancer grow, says Kalluri. Cells around a tumor might also send distress signals, alerting the immune system to fight back against it. “There’s definitely a role for these exosomes in cancer progression and metastasis,” he says. “Precisely what [that role is] is an active area of research right now.” Exosomes could also be useful for delivering drug treatments. After all, they are essentially little packages of proteins and other matter that can be shuttled between cells. Why not fill them with a medicine and use them to target specific regions of the body? Because exosomes are made in our bodies, they are less likely to be seen as “foreign” and rejected by our immune systems. And the outer layer of an exosome can serve as a protective coat, shielding the drug from being degraded until it reaches its destination, says James Edgar, who studies exosomes at the University of Cambridge. “It’s a really attractive method for drug delivery,” he says. Dave Carter is one scientist working on it. Carter and his colleagues at Evox Therapeutics in Oxford, UK, are engineering cells to produce compounds that might help treat rare neurological diseases. These compounds could then be released from the cells in exosomes. In their research, Carter and his colleagues can change almost everything about the exosomes they study. They can alter their contents, loading them with proteins or viruses or even gene-editing therapies. They can tweak the proteins on their surfaces to make them target different cells and tissues. They can control how long exosomes stay in an animal’s circulation.
“I always used to love playing with Lego,” he adds. “I feel like I’m playing with Lego when I’m working with exosomes.” Others are hopeful that exosomes themselves hold some kind of therapeutic value. Some hope that exosomes derived from stem cells, for example, might have some regenerative capacity. Ke Cheng at Columbia University in New York is interested in the idea of using exosomes to treat heart and lung conditions. Several preliminary studies suggest that exosomes from heart and stem cells might help animals like mice and pigs recover from heart injuries, such as those caused by a heart attack. There are certainly plenty of clinical trials of exosomes underway. When I searched for “exosomes” on clinicaltrials.gov, I got over 400 results. These are early-stage trials, however—and are of variable quality. Still, it’s an exciting time for exosome research. “It’s a growing field … I think we will see a lot of exciting science in the next five years,” says Cheng. “I’m very optimistic.” Now read the rest of The Checkup Read more from MIT Technology Review's archive You can read the piece about the costly exosome treatments being sold in aesthetic clinics and medspas in my longer piece, which was published earlier this week. It can be difficult to establish credibility in a medical field when you’re being undercut by clinics selling unapproved treatments and individuals making outlandish claims. Just ask the doctors and scientists trying to legitimize longevity medicine. Some treatments can take off culturally without the backing of rigorous evidence, only to go up in flames when the trial results come in. We saw this earlier this year, when FDA advisors rejected the use of MDMA (or ecstasy) for post-traumatic stress disorder (PTSD) owing to “significant confounders” in the trials.
For some people, unproven treatments might represent a last hope for survival. In those cases, how do we balance access to experimental medicine with the need to protect people who are vulnerable? Stem cells from human embryos promised to “launch a medical revolution in which ailing organs and tissues might be repaired” when they were isolated just over 25 years ago. So why haven’t they?
From around the web Having a disability shouldn’t prevent you from getting married. But that’s exactly the conundrum facing some people in the US, as this heartbreaking short documentary shows. (STAT) A Neuralink rival says its eye implant restored vision in blind people. Science Corporation’s retinal implant enabled some legally blind individuals to read from a book, play cards, and fill out crossword puzzles. (Wired) Women in Texas are dying after doctors delay treating them for miscarriages. Doctors treating Josseli Barnica waited 40 hours for the heart of her fetus to stop beating, despite the fact that miscarriage was “inevitable.” Her husband says doctors worried that “it would be a crime to give her an abortion.” She died of a preventable infection three days later. (ProPublica) Between 30% and 50% of twins share a secret language or mode of communication, a phenomenon known as cryptophasia. The Youlden twins call theirs Umeri. (BBC Future) Can a machine express fear? Try your hand at creating AI-generated images frightening enough to “spook the machine” as part of a project to explore how machines might express humanlike emotions. It is Halloween, after all. (Spook the Machine) Deep DiveBiotechnology and healthStay connectedIllustration by Rose WongGet the latest updates fromMIT Technology ReviewDiscover special offers, top stories,
upcoming events, and more. | 2024-11-08T07:09:02 | en | train |
42,025,911 | LinuxBender | 2024-11-02T12:11:17 | Steam on Linux Marketshare Hits 2.0% for October, AMD Use Linux Approaches 75% | null | https://www.phoronix.com/news/Steam-October-2024-Numbers | 12 | 2 | [
42025913,
42025993,
42026032
] | null | null | null | null | null | null | null | null | null | train |
42,025,915 | limbicsystem | 2024-11-02T12:11:42 | Crash | null | https://backstory.substack.com/p/crash | 2 | 0 | null | null | null | null | null | null | null | null | null | null | train |
42,025,919 | yamrzou | 2024-11-02T12:11:54 | The Optimal Margin of Illusion | null | https://psycnet.apa.org/record/1990-01278-001 | 1 | 0 | null | null | null | missing_parsing | APA PsycNet | null | null |
Loading...
| 2024-11-07T23:37:03 | null | train |
42,025,921 | yamrzou | 2024-11-02T12:12:15 | The Total Perspective Vortex (2007) | null | https://www.damninteresting.com/the-total-perspective-vortex/ | 1 | 0 | null | null | null | null | null | null | null | null | null | null | train |
42,025,951 | ingve | 2024-11-02T12:19:24 | Venvstacks: Virtual Environment Stacks for Python | null | https://lmstudio.ai/blog/venvstacks | 125 | 62 | [
42032561,
42035040,
42033262,
42032809,
42040308,
42032520,
42032988,
42035710,
42033835,
42035358,
42032639,
42033005,
42032531,
42035143,
42035545,
42034404
] | null | null | null | null | null | null | null | null | null | train |
42,025,960 | timbilt | 2024-11-02T12:20:45 | Voting Has Never Been More Secure Than It Is Right Now | null | https://www.scientificamerican.com/article/voting-has-never-been-more-secure-than-it-is-right-now/ | 5 | 0 | [
42026060
] | null | null | no_error | Voting Has Never Been More Secure Than It Is Right Now | 2024-11-02T10:45:00+00:00 | Ben Guarino | Now is the best time in the history of the U.S. to cast a vote. Yes, American elections have flaws. They’re marred by voter disenfranchisement, gerrymandering, the inherent weirdness of the electoral college and recent cases of ballot box arson. But the act of voting itself has been unfairly tarnished, most notably by former president Donald Trump’s “Big Lie” that the 2020 election was fraudulent. That claim is especially preposterous because modern voting procedures are only becoming more robust—and those casting ballots by mail or machine in this year’s presidential election can, in fact, be more confident than ever that their votes will be tallied accurately.One reason for that confidence is the adoption of voting technology that combines machine efficiency with the verifiability of a paper trail. This is the result of a shift that began two decades ago, after system jams and punch-card fragments—Florida’s infamous “hanging chads”—led to a fiasco that left the 2000 election results unclear for five weeks. Congress’s response, the 2002 Help America Vote Act, phased out the use of punch-card ballots and lever machines in federal elections. Most Americans now vote with optical scanners, which process marked selections on paper sheets. In the 2020 presidential election, Georgia’s polling sites used hand-fed optical scanners; an audit of the nearly five million votes cast in the state, the largest hand count of ballots in recent U.S. history, confirmed that President Joe Biden won. County error rates were 0.73 percent or less, and most had no change in their tallies at all.On supporting science journalismIf you're enjoying this article, consider supporting our award-winning journalism by subscribing. By purchasing a subscription you are helping to ensure the future of impactful stories about the discoveries and ideas shaping our world today.Although U.S. voting machines are not totally tamperproof—no machine is invulnerable—as precaution against remote hacking, the vast majority do not connect to the Internet (potentially problematic exceptions aside). In a recent election security update, the Office of the Director of National Intelligence, or ODNI, said the intelligence community does not have evidence of adversaries attempting to compromise the U.S.’s physical election infrastructure. Interfering in a meaningful way with the country’s diverse, decentralized systems would be essentially impossible, the ODNI update noted. Instead foreign actors prefer the easier route of psychological influence, trying to sway voters or undermine election confidence through propaganda and disinformation.“For a host of reasons, the potential vulnerability of individual voting machines doesn't translate into systemic vulnerability,” says political scientist Mark Lindeman, policy and strategy director at Verified Voting, a nonprofit group that tracks election systems across the country. “Hackers don’t get to go one-on-one with voting machines. There’s a whole set of procedural safeguards to protect them.” Physical ballots add trustworthiness to the system, too, because they are verifiable, auditable and recountable. Scientific American spoke with Lindeman about why Americans, despite experiencing so much voting agita, in fact live in a golden age for casting ballots.[An edited transcript of the interview follows.]Verified Voting estimates that nearly 98.6 percent of registered voters live in jurisdictions where votes have a paper trail of some form. Why is that important?It’s twofold. A paper trail provides a fail-safe. If something does go wrong with the systems—and what we’ve seen in certain elections is machines miscounting votes, never because of hacking, always because of an error in how they were configured—the paper ballots have been available to correct those mistakes.Perhaps an even greater value of paper ballots that voters have verified, and that election officials use in audits and recounts, is to provide assurance. Instead of arguing about whether the machines counted votes accurately, we can look at the paper ballot evidence and find out. We can move away from abstract speculation about technology into observable reality.Voting machines in the U.S. generally aren’t connected to the Internet. In fact, Verified Voting has opposed proposals for Internet voting. Why is that?We’re all about paper ballots that voters can verify and that election officials then can use to verify the counts. We see electronic ballot transmission, Internet voting of any form, as a step away from what has made elections in recent years more secure than they were 20 years ago, when Verified Voting was founded. The country is just now getting to the point where practically everyone votes on paper ballots that they can verify. Internet voting is the antithesis of that.If anyone claims that an Internet election (or an election where a lot of votes have been electronically transmitted) has been hacked, I don’t know how anyone can convince people otherwise.If you’re voting in this election, how confident are you that your ballot will be counted?I voted early here in the state of New York using a hand-marked paper ballot and a scanner. New York State has a 3 percent audit, and I’m very confident that my vote will be counted accurately.What’s a 3 percent audit?New York randomly selects 3 percent of the scanners that are used in the election and hand counts those ballots to make sure they were counted accurately. Most states conduct some kind of postelection audit. The details vary, but to have a percentage-based audit of some form, as New York does, is the most common model.Was there ever a voting heyday prior to this? (A recent Pew Research Center survey of registered U.S. voters found that about one in four believe the presidential election will be run at least somewhat poorly.)I don’t think there's ever been a better time to vote in the U.S. There was also a time when everyone voted on paper ballots—but election administration, frankly, was riddled with corruption. No one is really calling to go back to the days of Tammany Hall [laughs].It’s not necessarily that paper ballots by themselves are inherently secure. Paper is fragile. But the checks and balances that have been put into place around paper ballots have never functioned more effectively in the U.S. than they do now. Election administration is far more professionalized than it was even 20 years ago. Election officials are better trained. They’re more aware. It feels kind of strange to talk about this as a golden age of elections amid all the anxiety, but I don’t see any other way to interpret the facts.What can we do to restore confidence in American voting?[Lets out a weary sigh.]I felt that in my bones.I’m a child of the Enlightenment. I think that reflecting on reality is the place to start. Some of that reality is the basic technology in place: the fact that our votes are recorded on paper ballots; procedurally, the fact that those paper ballots are protected—that in most states, they’re used in audits to verify the counts.Beyond that, a large majority of Americans actually do trust their local election officials. In my experience, that trust is well placed. The election officials I’ve worked with around the country are very focused on the mission of making elections work for their voters. So I don’t really know what it takes to convince people to appreciate the good around them instead of fear spiraling or morbid speculation about terrible things that might be happening. That might be above my pay grade.If you could improve one thing about the mechanics of American voting, what would that be?We can do better on truly accessible voting than we’re doing now. I think that accessibility has been grafted onto most of the voting systems on the market. If we focus more on accessibility from the ground up, we can do better for a wider range of voters.Can you give me an example of accessible voting?Many states provide some kind of touch screen interface that also can be equipped with [“rocker pedals,” large buttons that can be operated with feet, hands or other body parts], and with what are called sip-and-puff interfaces [devices that are operated by breathing]. These all provide ways for voters with various abilities and disabilities to interact with a voting machine. They can adjust the contrast; they can adjust the font size. And with audio interfaces, if you can’t see the ballot, you can have the ballot read to you.These are all interfaces that provide a greater range of voters with the ability to mark and cast their ballots independently. And they’re a great improvement over nothing. But also, I think that voters with disabilities, in many cases, can testify that those interfaces don’t work as well in practice as they are built to do in theory.We’re in the early days of accessibility, and I would like us to level up. | 2024-11-08T12:00:58 | en | train |
42,025,962 | uxhacker | 2024-11-02T12:20:50 | I Took a 'Decision Holiday' and Put A.I. In Charge of My Life | null | https://www.nytimes.com/interactive/2024/11/01/technology/generative-ai-decisions-experiment.html | 3 | 0 | [
42026068
] | null | null | null | null | null | null | null | null | null | train |
42,025,978 | mahin | 2024-11-02T12:24:24 | Show HN: Personalize your Hacker News frontpage | The HN frontpage can feature stories that aren't that relevant to me, and some good ones don't get enough traction on the new submissions page. So I thought of building something that personalizes the stories you see.<p>This is done by getting the 500 newest and top stories and comparing them against your likes, building your own personalized homepage.<p>Also, when I find something I like, I usually want to explore similar stuff. So I created embeddings for 500k historical stories (all above 20 points) and added a 'similar' button that shows you the closest stories.<p>I thought of making this a web app, but I wanted something that integrated as seamlessly as possible with HN, so I decided on a browser extension.<p>I would love your feedback! | https://hackernewsexplorer.com/ | 2 | 1 | [
42033555
] | null | null | null | null | null | null | null | null | null | train |
42,025,984 | peutetre | 2024-11-02T12:26:19 | Swapped at birth: Two women discovered they weren't who they thought they were | null | https://www.bbc.com/news/articles/cp3njqd9nl9o | 1 | 0 | [
42026090
] | null | null | null | null | null | null | null | null | null | train |
42,026,002 | wjSgoWPm5bWAhXB | 2024-11-02T12:30:37 | null | null | null | 1 | null | [
42026040,
42026037
] | null | true | null | null | null | null | null | null | null | train |
42,026,007 | xqb64 | 2024-11-02T12:31:29 | null | null | null | 1 | null | null | null | true | null | null | null | null | null | null | null | train |
42,026,025 | null | 2024-11-02T12:36:47 | null | null | null | null | null | [
42026036,
42026026
] | [
"true"
] | true | null | null | null | null | null | null | null | train |
42,026,034 | CodingWithJesse | 2024-11-02T12:38:35 | null | null | null | 1 | null | null | null | true | null | null | null | null | null | null | null | train |
42,026,048 | apwheele | 2024-11-02T12:41:10 | Question Sets and All Paths | null | https://andrewpwheeler.com/2024/11/02/question-sets-and-all-paths/ | 2 | 1 | [
42032565
] | null | null | null | null | null | null | null | null | null | train |
42,026,054 | thunderbong | 2024-11-02T12:42:07 | Cash: A small jQuery alternative for modern browsers | null | https://github.com/fabiospampinato/cash | 196 | 167 | [
42028095,
42028629,
42027963,
42029197,
42030553,
42028359,
42030494,
42029461,
42032548,
42031184,
42032021,
42051018,
42028064,
42027236,
42028514,
42030403,
42029730,
42027474,
42030199,
42028261,
42028860,
42027345,
42028675,
42033446,
42033380,
42027380,
42027364,
42027450
] | null | null | null | null | null | null | null | null | null | train |
42,026,065 | AlexeyBrin | 2024-11-02T12:43:24 | Racket Syntax: The Great, the Good and the Back to the Drawing Board [video] | null | https://www.youtube.com/watch?v=ZtTqRH1uwu4 | 2 | 0 | null | null | null | no_article | null | null | null | null | 2024-11-08T08:27:23 | null | train |
42,026,077 | janandonly | 2024-11-02T12:45:17 | Impact of certain viruses on the body can make cells grow, causing cancer | null | https://www.livescience.com/health/viruses-infections-disease/can-viruses-cause-cancer | 1 | 0 | null | null | null | null | null | null | null | null | null | null | train |
42,026,082 | teleforce | 2024-11-02T12:46:33 | Hands-On Large Language Models (LLM): Language Understanding and Generation | null | https://www.oreilly.com/library/view/hands-on-large-language/9781098150952/ | 1 | 0 | null | null | null | cut_off | Hands-On Large Language Models | null | by
Jay Alammar,
Maarten Grootendorst |
Book
description
AI has acquired startling new language capabilities in just the past few years. Driven by rapid advances in deep learning, language AI systems are able to write and understand text better than ever before. This trend is enabling new features, products, and entire industries. Through this book's visually educational nature, readers will learn practical tools and concepts they need to use these capabilities today.
You'll understand how to use pretrained large language models for use cases like copywriting and summarization; create semantic search systems that go beyond keyword matching; and use existing libraries and pretrained models for text classification, search, and clusterings.
This book also helps you:
Understand the architecture of Transformer language models that excel at text generation and representationBuild advanced LLM pipelines to cluster text documents and explore the topics they coverBuild semantic search engines that go beyond keyword search, using methods like dense retrieval and rerankersExplore how generative models can be used, from prompt engineering all the way to retrieval-augmented generationGain a deeper understanding of how to train LLMs and optimize them for specific applications using generative model fine-tuning, contrastive fine-tuning, and in-context learning
| 2024-11-08T03:40:33 | en | train |
42,026,100 | null | 2024-11-02T12:52:12 | null | null | null | null | null | null | [
"true"
] | null | null | null | null | null | null | null | null | train |
42,026,107 | thunderbong | 2024-11-02T12:52:34 | PouchDB: The Database That Syncs | null | https://pouchdb.com/ | 24 | 5 | [
42030185,
42028604
] | null | null | null | null | null | null | null | null | null | train |
42,026,143 | janandonly | 2024-11-02T12:58:49 | Pkdns: DNS server resolving via mainline DHT | null | https://github.com/pubky/pkdns | 52 | 10 | [
42030998,
42029423,
42029490,
42029334,
42029183
] | null | null | null | null | null | null | null | null | null | train |
42,026,161 | tosh | 2024-11-02T13:03:51 | Apple to invest up to $1.5B in Globalstar for satellite coverage expansion | null | https://www.reuters.com/technology/apple-invest-up-15-bln-globalstar-satellite-coverage-expansion-2024-11-01/ | 1 | 0 | [
42026301
] | null | null | null | null | null | null | null | null | null | train |
42,026,165 | the-mitr | 2024-11-02T13:04:02 | Motion Made Minds | null | https://nautil.us/motion-made-minds-1010268/ | 1 | 0 | null | null | null | null | null | null | null | null | null | null | train |
42,026,167 | jtwoodhouse | 2024-11-02T13:04:50 | Saving Satoshi: An open-source game for learning Bitcoin programming | null | https://savingsatoshi.com/ | 24 | 3 | [
42026879,
42026626,
42026491,
42026508
] | null | null | null | null | null | null | null | null | null | train |
42,026,174 | imartin2k | 2024-11-02T13:05:46 | Overcoming the Fear of Aging | null | https://zenhabits.net/aging/ | 1 | 0 | null | null | null | null | null | null | null | null | null | null | train |
42,026,179 | naveen_ | 2024-11-02T13:07:13 | Show HN: I made a website to share and discover well-designed products in tech | Hi, I’m Naveen!<p>I recently launched Flockly — a community-driven platform to share and discover well-designed, quality tech products. Flockly was born from the need for a curated space to find truly exceptional tech creations, so I’ve made it easy to find quality mobile and web apps, hardware projects, and unique tech solutions.<p>What Flockly is not: Flockly focuses on polished, real products and excludes certain types of content, such as unreleased or "silly" projects, boilerplate code, directories, job boards, UI components, WordPress plugins, and anything related to web3, crypto, or Tailwind CSS.<p>This is my first indie project, and I'm excited to share it with the community. I’d love to hear your feedback—let me know what you think! | https://flockly.co/ | 1 | 0 | null | null | null | null | null | null | null | null | null | null | train |
42,026,184 | junaid_97 | 2024-11-02T13:10:49 | Show HN: Hireddit – Discover job opportunities across Reddit communities | Hey, everyone<p>Over the past few months, I kept seeing job/internship/hiring posts on Reddit and wondered why people are using it for hiring since it's anonymous and there might be spam posts.<p>I interviewed few job seekers from Reddit and found that many of them preferred looking for jobs via Reddit, because
- Most job/internship platforms are saturated
- On Reddit, job seekers/recruiters can engage in organic conversations
- Some posts might be spam, yes, but they said it's worth the risk
- If you've been using Reddit daily, you kinda learn to read between the lines and guess if the account/post is fake or not<p>So, I decided to build this website, a Reddit Job Board.<p>I only scrape the post title and links - using the keyword "hiring".<p>Each job-post is categorized, searchable, and linked back to the original source, so you can easily see the full details and discussions.<p>- You can search by subreddit, job title, city, country
- You can apply multi-keyword search using comma, e.g. search “python, java”.
Note: We use logical OR on search
- You can search within specific subreddits by using filters<p>I understand most of the posts are just links to other job boards, but there are lots of original posts where you can directly talk with the employer/candidate.<p>If this idea gets traction, I can spend some time manually adding additional filters. | https://hireddit.com/ | 2 | 0 | [
42026333
] | null | null | null | null | null | null | null | null | null | train |
42,026,186 | LorenDB | 2024-11-02T13:10:58 | Lunar Lake's integrated memory is an expensive one-off | null | https://www.tomshardware.com/pc-components/cpus/lunar-lakes-integrated-memory-is-an-expensive-one-off-intel-rejects-the-approach-for-future-cpus-due-to-margin-impact | 1 | 1 | [
42026187,
42026695
] | null | null | no_error | Lunar Lake's integrated memory is an expensive one-off — Intel rejects the approach for future CPUs due to margin impact | 2024-11-01T18:04:31+00:00 | Anton Shilov |
On-package memory is one of the factors that made Apple's M-series processors fast, efficient, and compact. With its Core Ultra 200V (Lunar Lake) processors, Intel adopted the same architecture, which enabled what Intel says is a great product but severely hurt Intel's profit margins. The chipmaker (via SeekingAlpha) says it will no longer feature on-package memory for next-gen CPUs."[On-package memory is] a one-off with Lunar Lake," said Pat Gelsinger, chief executive of Intel, at the earnings conference call with analysts and investors. That will not be the case with Panther Lake, Nova Lake, and its successors as well. We will build it in a more traditional way with memory off package in the CPU, GPU, NPU, and I/O capabilities in the package. But volume memory will be off-package in the roadmap going forward."Intel's Core Ultra 200V processors come with 16GB or 32GB of on-package LPDDR5X-8533 memory connected using a 128-bit interface. This allows for the saving of plenty of space inside laptops, as memory modules (and soldered-down memory chips) occupy a lot of space. That area can be used to install bigger batteries, ensuring greater battery life or some additional logic to boost functionality. As a bonus, on-package memory can help to cut latencies and power consumption.However, on-package memory means that Intel needed to procure these LPDDR5X devices at prices higher than those available to large OEMs. This, for obvious reasons, affects Intel's own profit margin. Handling that memory and installing it on the package also costs money, another factor that affects the profitability of the Lunar Lake product. Finally, selling CPUs with pre-installed memory reduces flexibility for PC makers, which is important for them.Intel says it envisioned Lunar Lake as a niche product for compact laptops with long battery life. However, since end users demand advanced on-device AI capabilities and Lunar Lake can offer relatively high NPU performance, Intel had to increase output volume for these Core Ultra 2-series processors. Although Intel says that these CPUs are pretty successful, it does not want to deal with on-package DRAM going forward."Lunar Lake was initially designed to be a niche product that we wanted to achieve highest performance and great battery life capability, and then AI PC occurred," said Gelsinger. "And with AI PC, it went from being a niche product to a pretty high-volume product. Now relatively speaking, we are not talking about 50 million, 100 million units, but a meaningful portion of our total mix from a relatively small piece of it as well. So as that shift occurred, this became a bigger margin implication both for Lunar Lake and for the company overall."Get Tom's Hardware's best news and in-depth reviews, straight to your inbox.
| 2024-11-07T23:24:34 | en | train |
42,026,196 | jasismith698 | 2024-11-02T13:13:14 | null | null | null | 1 | null | [
42026197
] | null | true | null | null | null | null | null | null | null | train |
42,026,204 | handfuloflight | 2024-11-02T13:14:40 | The Faqīr's Journey: Steps to Divine Presence | null | https://www.karkari.org/library/the-faq%C4%ABr-s-journey-steps-to-divine-presence | 1 | 0 | null | null | null | null | null | null | null | null | null | null | train |
42,026,217 | IvanR3D | 2024-11-02T13:16:35 | null | null | null | 1 | null | [
42026218
] | null | true | null | null | null | null | null | null | null | train |
42,026,225 | lapnect | 2024-11-02T13:18:22 | A collection of color palettes for GIMP and Inkscape | null | https://robert-96.github.io/gimp-color-palettes/ | 2 | 0 | [
42026297
] | null | null | body_too_long | null | null | null | null | 2024-11-08T12:00:32 | null | train |
42,026,236 | celltalk | 2024-11-02T13:20:25 | It's time for bulk transcriptomics to shine | null | https://eonurk.com/2024/11/02/its-time-for-bulk-transcriptomics-to-shine/ | 2 | 0 | null | null | null | null | null | null | null | null | null | null | train |
42,026,239 | LorenDB | 2024-11-02T13:21:21 | What Is a Workstation? | null | https://etbe.coker.com.au/2024/11/02/what-is-workstation/ | 2 | 0 | null | null | null | null | null | null | null | null | null | null | train |
42,026,251 | janandonly | 2024-11-02T13:24:05 | Obtainium: Get Android App Updates Directly from the Source | null | https://obtainium.imranr.dev/ | 6 | 0 | null | null | null | null | null | null | null | null | null | null | train |
42,026,256 | yamrzou | 2024-11-02T13:25:47 | Is self-deception really so bad? | null | https://www.philonomist.com/en/article/self-deception-really-so-bad | 2 | 0 | [
42026616
] | null | null | null | null | null | null | null | null | null | train |
42,026,261 | yamrzou | 2024-11-02T13:26:28 | Self-deception inhibits laughter [pdf] | null | https://evolution.unibas.ch/seminars/jcfs13_doc/Lynch&Trivers%202012PersonIndivDiff.pdf | 2 | 0 | null | null | null | null | null | null | null | null | null | null | train |
42,026,266 | canterburry | 2024-11-02T13:28:09 | Ask HN: The Web Post ChatGPT? | The humble chat thread is rapidly becoming the defacto interface to information for so many right now. Search results no longer take you to web pages but a composed answer at the top of the search results. Do you even click the referenced webpage?<p>So, what will we need HTML or CSS for? Should we start talking about what an AI bot optimized web looks like since people won't really be browsing web pages anymore.<p>Simple markdown comes to mind or even just RSS should make the AI bot crawling easier and faster. | null | 7 | 8 | [
42026371,
42026393,
42033320,
42026330
] | null | null | null | null | null | null | null | null | null | train |
42,026,269 | mathgenius | 2024-11-02T13:28:56 | A Man with the Moustache | null | https://www.ecosophia.net/the-man-with-the-moustache/ | 2 | 0 | null | null | null | null | null | null | null | null | null | null | train |
42,026,286 | ibobev | 2024-11-02T13:32:04 | Having Fun with Modern C++ | null | https://lemire.me/blog/2024/11/02/having-fun-with-modern-c/ | 6 | 0 | [
42026692
] | null | null | null | null | null | null | null | null | null | train |
42,026,291 | howthisends | 2024-11-02T13:33:35 | Mmo Blog | null | https://mmoblog.aitida.com/ | 1 | 0 | null | null | null | null | null | null | null | null | null | null | train |
42,026,292 | PaulHoule | 2024-11-02T13:33:39 | Mercedes-Benz opens its own recycling facility for EV batteries | null | https://arstechnica.com/cars/2024/10/mercedes-benz-opens-its-own-recycling-facility-for-ev-batteries/ | 35 | 9 | [
42026406,
42029811,
42027142,
42026545,
42026630
] | null | null | no_error | Mercedes-Benz opens its own recycling facility for EV batteries | 2024-10-21T16:30:22+00:00 | Jonathan M. Gitlin |
Today, Mercedes-Benz opened its first battery-recycling plant in Germany. The new plant will use an "integrated mechanical-hydrometallurgical" approach to recycling electric vehicle batteries and expects to recover more than 96 percent of the valuable minerals and metals used in EV batteries.
"Mercedes-Benz has set itself the goal of building the most desirable cars in a sustainable way. As a pioneer in automotive engineering, Europe's first integrated mechanical-hydrometallurgical battery recycling factory marks a key milestone toward enhancing raw-materials sustainability," said Ola Källenius, chairman of the board of management Mercedes-Benz Group. "Together with our partners from industry and science, we are sending a strong signal of innovative strength for sustainable electric mobility and value creation in Germany and Europe."
The plant, which is located in Kuppenheim, Germany, shreds the battery modules then uses a mechanical process to separate plastics, copper, aluminum, and iron. The resulting "black mass" is then subjected to a hydrometallurgical process that extracts the cobalt, nickel, and lithium. The plant runs entirely on electricity generated by solar panels and has an annual capacity of 2,756 tons (2,500 tonnes). While this is not especially high, Mercedes says it will use the knowledge it gains to scale up volumes over time.
Automakers are increasingly interested in closing the loop on EV batteries, particularly given concerns about ethical sourcing of some of the minerals (like cobalt) and a desire for more resilient regional supply chains versus global chains that have turned out to be highly susceptible to disruption through events like invasions or even a ship getting stuck in a canal.
| 2024-11-08T04:16:47 | en | train |
42,026,303 | Brajeshwar | 2024-11-02T13:36:15 | Read-Later App, Omnivore is shutting down on Nov 30th | null | https://blog.omnivore.app/p/details-on-omnivore-shutting-down | 2 | 0 | null | null | null | null | null | null | null | null | null | null | train |
42,026,305 | Brajeshwar | 2024-11-02T13:36:23 | ASCII control characters in my terminal | null | https://jvns.ca/blog/2024/10/31/ascii-control-characters/ | 3 | 0 | null | null | null | null | null | null | null | null | null | null | train |
42,026,306 | Brajeshwar | 2024-11-02T13:36:31 | High Anxiety | null | https://www.profgalloway.com/high-anxiety/ | 2 | 0 | [
42026325
] | null | null | null | null | null | null | null | null | null | train |
42,026,308 | Brajeshwar | 2024-11-02T13:36:39 | Hacked TP-Link routers used in years-long account takeover attacks | null | https://arstechnica.com/information-technology/2024/11/microsoft-warns-of-8000-strong-botnet-used-in-password-spraying-attacks/ | 4 | 0 | [
42026329
] | null | null | no_error | Thousands of hacked TP-Link routers used in yearslong account takeover attacks | 2024-11-02T00:13:20+00:00 | Dan Goodin |
Hackers working on behalf of the Chinese government are using a botnet of thousands of routers, cameras, and other Internet-connected devices to perform highly evasive password spray attacks against users of Microsoft’s Azure cloud service, the company warned Thursday.
The malicious network, made up almost entirely of TP-Link routers, was first documented in October 2023 by a researcher who named it Botnet-7777. The geographically dispersed collection of more than 16,000 compromised devices at its peak got its name because it exposes its malicious malware on port 7777.
Account compromise at scale
In July and again in August of this year, security researchers from Sekoia.io and Team Cymru reported the botnet was still operational. All three reports said that Botnet-7777 was being used to skillfully perform password spraying, a form of attack that sends large numbers of login attempts from many different IP addresses. Because each individual device limits the login attempts, the carefully coordinated account-takeover campaign is hard to detect by the targeted service.
On Thursday, Microsoft reported that CovertNetwork-1658—the name Microsoft uses to track the botnet—is being used by multiple Chinese threat actors in an attempt to compromise targeted Azure accounts. The company said the attacks are “highly evasive” because the botnet—now estimated at about 8,000 strong on average—takes pains to conceal the malicious activity.
“Any threat actor using the CovertNetwork-1658 infrastructure could conduct password spraying campaigns at a larger scale and greatly increase the likelihood of successful credential compromise and initial access to multiple organizations in a short amount of time,” Microsoft officials wrote. “This scale, combined with quick operational turnover of compromised credentials between CovertNetwork-1658 and Chinese threat actors, allows for the potential of account compromises across multiple sectors and geographic regions.
Some of the characteristics that make detection difficult are:
The use of compromised SOHO IP addresses.
The use of a rotating set of IP addresses at any given time. The threat actors had thousands of available IP addresses at their disposal. The average uptime for a CovertNetwork-1658 node is approximately 90 days.
The low-volume password spray process; for example, monitoring for multiple failed sign-in attempts from one IP address or to one account will not detect this activity.
| 2024-11-08T09:08:22 | en | train |
42,026,312 | mellosouls | 2024-11-02T13:37:23 | Alan Bennett at 90: 'What will people think? I don't care any more' | null | https://www.theguardian.com/books/2024/nov/02/alan-bennett-at-90-what-will-people-think-i-dont-care-any-more | 1 | 0 | null | null | null | null | null | null | null | null | null | null | train |
42,026,316 | sandr0-p | 2024-11-02T13:38:00 | null | null | null | 1 | null | null | null | true | null | null | null | null | null | null | null | train |
42,026,326 | EnthusiastShiv | 2024-11-02T13:39:24 | Ask HN: John Wick's Gold Coins on Blockchain | Is it Possible to Build a "John Wick"-Style Gold Coin Economy on Blockchain?<p>I’m not sure if it’s even possible, but I’ve been toying with the idea of creating a "gold coin" economy like the one in John Wick using blockchain tech.<p>In the movie, one coin pays for any service, from cleaning up a mess to getting specialized equipment. So, how could this work in the crypto world?<p>Some thoughts:<p>Universal Value: Each gold coin has the same value regardless of the service provided, whether it's hiring an assassin, getting medical help, or using specialized facilities.<p>Exclusivity & Trust: The coins are only used by members of the secret society, representing trust and membership within this underworld. Possession of a coin implies you're part of the network.<p>No Direct Monetary Equivalent: The coins don’t have a direct correlation to any real-world currency.<p>If anyone has ideas on how to make this a reality or any related projects you've seen, feel free to share! And if you'd rather not discuss it publicly, shoot me an email at [email protected]<p>Curious to hear what people think! | null | 1 | 2 | [
42041617
] | null | null | null | null | null | null | null | null | null | train |
42,026,343 | yamrzou | 2024-11-02T13:43:02 | Buridan's Ass (2015) | null | https://www.evphil.com/blog/response-to-thought-experiment-25-buridans-an-ass | 1 | 0 | null | null | null | null | null | null | null | null | null | null | train |
42,026,350 | techolic | 2024-11-02T13:44:26 | Thousands go to fake AI-invented Dublin Halloween parade | null | https://www.euronews.com/culture/2024/11/01/thousands-go-to-fake-ai-invented-dublin-halloween-parade | 7 | 1 | [
42028400
] | null | null | null | null | null | null | null | null | null | train |
42,026,351 | SpaghettiX | 2024-11-02T13:44:27 | You Shouldn't Pay into a Pension | null | https://orth.uk/rethink-your-pension/ | 2 | 0 | null | null | null | no_error | Why you shouldn't pay into a pension | Ben Butterworth | 2023-03-21T00:00:00.000Z | Ben Butterworth | I've been opting out of my pension within a few months of starting a job at any company. Every time, it's taken considerable thought and confusion. It seems like every few months a ridiculous event occurs, related to pensions. I wanted to share why I stopped contributing to pensions so others can make a more informed decision. I wish I had seen such an article in the past.
Caveat 🥦
The following is based on my experience of having 3 pensions in the UK (different companies I worked for use different providers).
I am not selling anything.
This content is free.
This is not financial advice, which is a regulated activity. Financial advice is usually paid for, and the seller of the advice often makes money from you even when you don't - their incentives are not aligned with yours.
Background: What is a pension? 🤯
A pension is a monthly bill you automatically pay as a percentage of your salary. For example, if you earn £1000 a month, you can pay £50 (5%) every month until you retire. This money cannot be accessed until you retire. It is opt-in, which means everyone who works gets this, by default. In some cases, your employer will pay more money every month, e.g. £25.
ChatGPT: A pension is a long-term savings plan, where you contribute a percentage of your salary every month until you retire. These contributions are usually made automatically, and you cannot access the money until you reach retirement age.
Why use a pension 🧟♂️
There's a lot of information about this online. For example, a course by MoneySavingExpert, MSE’s Academy of Money.
Why avoid pensions 🚨
Potential death: You might not make it to the end. You might die before you retire. And if you do make it to retirement, the pension fund has an incentive to make it harder for you to get your money - they might not even have all your money. They might lobby to change the date, reduce the payments, etc.
Law changes: The government and pension providers have a lot of power over your money. They can raise the age you can take your money or limit how you can use that money. See Proposed new timetable for State Pension age increases. Also, the government organisation to handle pension complaints is not well trusted on trustpilot - currently rated 1.7 stars. Your retirement plans will be affected by the governments changes. As governments get squeezed - they need to squeeze their people, with tax and pensions law changes.
Examples:
UK: Jeremy Hunt plans to tax pensioners in November 2022
France: Macron pushing through pension changes without vote
Higher taxes and extra cost: Although you don't get taxed now, you will get taxed when you retire. By then, taxation will probably be higher, not lower, as governments go into more debt. Overall, you might get taxed more than just getting the money now. See UK tax burden to hit highest levels since the 60s. Also, the pension providers charge you a fee (percentage of your pot).
Get the money now:
Contribute to a house deposit
Invest in yourself: education, training, holidays?
Feed people: bills have been going up, and perhaps you actually want to spend that money now to feed your children today.
Invest your money anywhere else
Rigidity: currency might be devalued in the future. Sure, you can invest in index or mutual funds on there instead, but have you seen the limitations of the pension websites.
Irrelevance: for some people who are financially well-off, they would have investments which make them more money, consistently. This might be a business, or a mortgage on a flat they own but rent out. Every month, they get more money than they spend (including mortgage, bills, food, holidays). The cost of managing multiple pensions would be unnecessary work in their lives. They'd have to monitor a separate app and potentially types of investments.
Incentives and competition: pension funds/managers are not very good at investing: the UI is not very good, unlike other dedicated-investment apps. They have no incentive to build good UX, since you have no choice in taking your money out. They are not very good companies, just look on the complaints filed on the pensions ombudsman (for example, this complaint on the NHS Pension Scheme).
Fragmentation of pension: over the years, you might have opened more than 1 pension. It hurts my brain to remember the pension providers that I might have used.
Switching cost: Choosing and moving-between them is a hassle. Different jobs you have will get different pension providers. There are many pension providers, and they do not want to talk nicely with each other. See trustpilot reviews of nestpensions.
The company has no incentive to be a good investor. They have your money already, and have the ultimate customer on long term subscription.
Can you even move your pension to another country? What happens if you don't like Brexit or are struggling in the UK economy?
Forget: You might forget about some pensions. The company has no incentive to remind you.
Less control: You have very little control over the money:
simply, you can't use the money until the term ends (48 years for me). Your buying power is less. When you find a flat to buy and it is 5% higher than you can buy, remember your pension took that money away from you.
you can't control how it is invested. If you bought that 5% house, you could rent out some room to lodgers, and save money.
Philosophical:
It is opt-out: Facebook was annoyed that the iOS default switched away from opt-out to "ask the user" (not even as harsh as opt-in), they even put adverts on the news to target Apple. They set it to opt-out so most people are automatically in it - if it's so good, why not just let people know and let them opt-in.
The wrong solution: What is the argument for a pension? That you don't save enough for retirement, you overspend before retirement and/or you overspend when you're retired. Surely a good solution would be education.
Agility: Those who move fast can exploit an opportunity for success. Conversely, if you move slowly, you have a lot to lose. Pensions is immobile money, which means you get the worst deals.
Summary 🏁
So that's it - an uncommon view on pensions. Reply with your view points in the comment section - tell me I'm nuts - you might be helping me 🤓. I wonder how the recent and future AI technology will affect the economy and governments, which in turn affect taxes and pensions.
Warning: Do not opt-out of the pension to spend the extra money on unnecessary things. Default to saving money, not spending it. When I got my first raise, I thought to myself, "Oh wow, I've got £N extra cash, every month. What can I spend it on?". Then I remembered, this will help build my safety buffer.
Reminder: do you know where all your pensions are, and how they are growing over time? Keep track of them. | 2024-11-08T20:22:29 | en | train |
42,026,360 | PondSwimmer | 2024-11-02T13:45:54 | Show HN: GraphQL Zeus 7 – type-safe GraphQL on front end for newbies | Ok, so I've heard the voice of community and added null support and dropped const enums. Also you can fetch all scalar fields with "fields" selector. | https://github.com/graphql-editor/graphql-zeus | 2 | 0 | null | null | null | no_error | GitHub - graphql-editor/graphql-zeus: GraphQL client and GraphQL code generator with GraphQL autocomplete library generation ⚡⚡⚡ for browser,nodejs and react native ( apollo compatible ) | null | graphql-editor |
Strongly Typed GraphQL from the team at GraphQL Editor
How it works
GraphQL Zeus is the absolute best way to interact with your GraphQL endpoints in a type-safe way. Zeus uses your schema to generate Typescript types and strongly typed clients to unlock the power, efficiency, productivity and safety of Typescript on your GraphQL requests.
Features
⚡️ Validates queries and selectors
⚡️ Types mapped from your schema
⚡️ Fetch all primitive fields with one function
⚡️ Works with Apollo Client, React Query, Stucco Subscriptions (*more coming soon...)
⚡️ Works with Subscriptions
⚡️ Infer complex response types
⚡️ Create reusable selection sets (like fragments) for use across multiple queries
⚡️ Supports GraphQL Unions, Interfaces, Aliases and Variables
⚡️ Handles massive schemas
⚡️ Supports Browsers, Node.js and React Native in Javascript and Typescript
⚡️ Schema downloader
⚡️ JSON schema generation
Full documentation
Our full documentation has all the use cases of:
scalars
selectors
and much more...
Full documentation is available here
Join the Zeus Community and Spread the Word
⚡️ Join the Discussion forum on Dicord 📣
⚡️ Leave a GitHub star ⭐️ 👆
⚡️ Spread the word on your socials and with your networks! 🗣
Contribute
For a complete guide to contributing to GraphQL Zeus, see the Contribution Guide.
Fork this repo
Create your feature branch: git checkout -b feature-name
Commit your changes: git commit -am 'Add some feature'
Push to the branch: git push origin my-new-feature
Submit a pull request
License
MIT 🕊
| 2024-11-07T08:30:16 | en | train |
42,026,391 | ImranK | 2024-11-02T13:52:11 | null | null | null | 1 | null | null | null | true | null | null | null | null | null | null | null | train |
42,026,409 | rntn | 2024-11-02T13:55:21 | San Francisco's Uphill Battle to Transform a Historic Highway into a Park | null | https://gizmodo.com/san-franciscos-uphill-battle-to-transform-a-historic-highway-into-a-park-2000519402 | 1 | 0 | null | null | null | null | null | null | null | null | null | null | train |
42,026,412 | lofbergfredrik | 2024-11-02T13:55:39 | null | null | null | 1 | null | null | null | true | null | null | null | null | null | null | null | train |
42,026,416 | thunderbong | 2024-11-02T13:56:25 | Moving Off Heroku, Slowly | null | https://jamie.ideasasylum.com/2024/10/30/moving-off-heroku-slowly | 3 | 0 | [
42026686
] | null | null | null | null | null | null | null | null | null | train |
42,026,441 | raattgift | 2024-11-02T14:01:27 | Secrets and spies – the women at the heart of espionage agencies | null | https://www.ft.com/content/b10a6492-a5ef-42d7-8520-6de0eb947c9c | 3 | 0 | null | null | null | null | null | null | null | null | null | null | train |
42,026,468 | pavel_lishin | 2024-11-02T14:06:12 | Ratting on wildlife crime: training rats to detect illegally trafficked wildlife | null | https://www.frontiersin.org/journals/conservation-science/articles/10.3389/fcosc.2024.1444126/full | 2 | 0 | null | null | null | null | null | null | null | null | null | null | train |
42,026,469 | pmestha | 2024-11-02T14:06:13 | Paid NPM packages are gaining popularity | null | https://www.privjs.com/blog/privjs-processed-2-5-million-paid-npm-packages | 1 | 0 | [
42026682
] | null | null | no_error | Privjs processed 2.5million downloads of paid npm packages: Empowering JavaScript Developers Worldwide | null | null | In the world of open-source, achieving widespread usage is both a mark of quality and trust. Today, we’re thrilled to announce that PrivJs has crossed an incredible milestone: 2.5 million paid npm package downloads! This achievement is a testament to the creativity, hard work, and innovation of the developers who bring their projects to life on PrivJs.Our Journey So FarWhen we started PrivJs, our mission was clear: to create a platform where developers could securely share and monetize their JavaScript code. We recognized a need for a space where creators could not only control access to their work but also receive fair compensation for their efforts. PrivJs began as an idea to bridge the gap between open-source passion and practical monetization—and 2.5 million downloads later, we see that vision in action.What This Milestone MeansFor us, crossing this download milestone isn’t just a number; it represents thousands of developers who have chosen to trust PrivJs as a marketplace for their work. It means that 2.5 million times, a developer has chosen quality code from our marketplace to enhance their projects, knowing they’re supporting the original creators.We’re especially honored to have leading projects like Module Federation and GreenSock Animations on PrivJs, offering powerful tools for developers to integrate into their own applications. Module Federation, known for transforming how micro-frontends operate in distributed systems, and GreenSock Animations, celebrated for its rich, performant animation libraries, have become mainstays on PrivJs, trusted by countless developers looking for reliable, high-quality packages.We’re proud that PrivJs has become a reliable platform for developers to:Monetize Open Source: By offering their packages on PrivJs, developers can earn from their work while ensuring only authorized users have access.Maintain Control Over Their Code: With tools like PrivJs Safe, developers can confidently manage security and licensing, knowing their intellectual property is safeguarded.Spotlight on PrivJs SafeA key component of our platform’s success is PrivJs Safe. This unique feature acts as a security layer, scanning each npm package for vulnerabilities before allowing downloads. With the rapid growth of open-source software, ensuring security without compromising ease of access has been paramount. PrivJs Safe makes it simple for developers and organizations to feel secure in using our platform and reassures consumers that they’re downloading high-quality, vetted code.Thank You to Our CommunityThis milestone wouldn’t be possible without the talented creators who share their work on PrivJs and the community members & organization that support them. To each of you—thank you for trusting PrivJs with your projects, for bringing your code to life in ways we couldn’t have imagined, and for believing in our mission. Your feedback, engagement, and ideas have helped us shape PrivJs into the platform it is today.What’s Next for PrivJsWe’re more committed than ever to building a marketplace that helps developers thrive. Moving forward, we have exciting updates in store:New Features: We’re continuously working on new features to help creators manage and protect their code better. Possibly a private git registry as well as team collaboration features. Stay tuned!Enhanced Security Measures: As always, security is a top priority, and we’re expanding PrivJs Safe to bring even more peace of mind to our community.Expanding the Community: We’re aiming to welcome more developers from around the globe, bringing diverse projects and expanding our marketplace.Join Us on This JourneyTo everyone who has contributed to this milestone, thank you for making PrivJs what it is today. If you’re a developer looking for a way to share and monetize your JavaScript code securely, we invite you to join us. As we celebrate 2.5 million downloads of paid npm packages, we’re looking forward to what’s next—with a community that continues to inspire us every step of the way.Thank you for being a part of our journey. Here’s to more growth, innovation, and success on PrivJs! | 2024-11-08T13:49:21 | en | train |
42,026,496 | logicallee | 2024-11-02T14:10:58 | Ask HN: Do you give up on side projects once you have a family? | I find that side projects take a huge amount of extra time, that I no longer seem to be able to come up with easily. Do you continue to do side projects as before or do you tend to give up on them once you have a family? | null | 5 | 3 | [
42026514,
42026547,
42026815
] | null | null | null | null | null | null | null | null | null | train |
42,026,515 | bookofjoe | 2024-11-02T14:14:52 | 'I will not make any more boring art' [John Baldessari; 1971] | null | https://ubuweb.com/media/video/Baldessari-John_I_Will_Not_Make_Any_More_Boring_Art_1971.mp4 | 2 | 0 | null | null | null | null | null | null | null | null | null | null | train |
42,026,518 | jrepinc | 2024-11-02T14:15:03 | This Week in KDE Plasma: spoooooky ooooooooom notifications | null | https://blogs.kde.org/2024/11/02/this-week-in-plasma-spoooooky-ooooooooom-notifications/ | 2 | 0 | [
42026675
] | null | null | null | null | null | null | null | null | null | train |
42,026,522 | nomilk | 2024-11-02T14:16:16 | Candid interview with SpaceX engineer about stage zero for F9/Heavy and Starbase [video] | null | https://www.youtube.com/watch?v=r4OovdoG80w | 2 | 0 | [
42026673
] | null | null | no_article | null | null | null | null | 2024-11-08T17:58:42 | null | train |
42,026,529 | tlarkworthy | 2024-11-02T14:16:52 | Multi-file editing, code review, custom instructions for VSCode Copilot | null | https://github.blog/changelog/2024-10-29-multi-file-editing-code-review-custom-instructions-and-more-for-github-copilot-in-vs-code-october-release-v0-22/ | 1 | 0 | [
42026672
] | null | null | null | null | null | null | null | null | null | train |
42,026,534 | vinni2 | 2024-11-02T14:18:55 | The Election Information Hub by Perplexity | null | https://www.perplexity.ai/hub/blog/introducing-the-election-information-hub | 1 | 1 | [
42027369,
42026668
] | null | null | null | null | null | null | null | null | null | train |
42,026,546 | null | 2024-11-02T14:20:09 | null | null | null | null | null | null | [
"true"
] | null | null | null | null | null | null | null | null | train |
42,026,557 | nyc111 | 2024-11-02T14:22:46 | Down the Rabbit Hole | null | https://en.wikipedia.org/wiki/Down_the_rabbit_hole | 2 | 0 | [
42026669
] | null | null | null | null | null | null | null | null | null | train |
42,026,559 | null | 2024-11-02T14:23:19 | null | null | null | null | null | null | [
"true"
] | null | null | null | null | null | null | null | null | train |
42,026,562 | retskrad | 2024-11-02T14:23:43 | Mark Gurman: "Steve Jobs Would Be Ripping Apple 'To Shreds' over AI Timeline" [video] | null | https://www.youtube.com/watch?v=H936GoN1h2U | 4 | 0 | [
42026662
] | null | null | null | null | null | null | null | null | null | train |
42,026,565 | pierres7 | 2024-11-02T14:24:03 | null | null | null | 1 | null | null | null | true | null | null | null | null | null | null | null | train |
42,026,579 | cjg | 2024-11-02T14:25:46 | How to solve cryptic crosswords – the ultimate beginner's guide | null | https://www.theguardian.com/crosswords/crossword-blog/2024/oct/21/how-to-solve-cryptic-crosswords-the-ultimate-beginners-guide | 1 | 0 | [
42026660
] | null | null | null | null | null | null | null | null | null | train |
42,026,587 | stormsidali2001 | 2024-11-02T14:27:21 | Next.js 15 Deep Dive: Building a Notes App with Advanced Features | null | https://www.spithacode.com/blog/nextjs-15-deep-dive-building-notes-app-advanced-features | 1 | 1 | [
42026588
] | null | null | null | null | null | null | null | null | null | train |
42,026,590 | ramiguessab | 2024-11-02T14:27:32 | null | null | null | 1 | null | [
42026591
] | null | true | null | null | null | null | null | null | null | train |
42,026,594 | freakynit | 2024-11-02T14:27:55 | Show HN: Private, in-browser, CSV-SQL query runner using SQLite-WASM | Upload CSV, and start querying, all locally without any data leaving your browser. Can handle large CSV's easily. Download query results once done. Uses sqlite-wasm binary. | https://csvsqltool.com | 41 | 12 | [
42031267,
42033026,
42026685
] | null | null | fetch failed | null | null | null | null | 2024-11-07T07:17:20 | null | train |
42,026,595 | PaulHoule | 2024-11-02T14:28:06 | At Mexico's school for jaguars, big cats learn skills to return to the wild | null | https://news.mongabay.com/2024/10/at-mexicos-school-for-jaguars-big-cats-learn-skills-to-return-to-the-wild/ | 3 | 0 | null | null | null | null | null | null | null | null | null | null | train |
42,026,603 | mixeden | 2024-11-02T14:29:59 | Nonlinear perturbations and weak shock waves in isentropic atmospheres | null | https://synthical.com/article/Nonlinear-perturbations-and-weak-shock-waves-in-isentropic-atmospheres-3e8f293d-863b-4fe4-999a-5b6a0a8868f9 | 2 | 0 | null | null | null | missing_parsing | Nonlinear perturbations and weak shock waves in isentropic atmospheres | 2024-10-02T18:00:01.000Z | Eliot Quataert | Acoustic perturbations to stellar envelopes can lead to the formation of weak shock waves via nonlinear wave-steepening. Close to the stellar surface, the weak shock wave increases in strength and can potentially lead to the expulsion of part of the stellar envelope. While accurate analytic solutions to the fluid equations... Show moreSimilar articlesLoading recommendations...x1Nonlinear perturbations and weak shock waves in isentropic atmospheresClick on play to start listeningEnjoying Synthical? Enjoy our browser extension | 2024-11-08T20:44:36 | null | train |
42,026,645 | codetoli | 2024-11-02T14:38:18 | Show HN: I built Popupbuild notifications without any coding skills | Please tell your reviews on this | https://popupbuild.netlify.app/p/landing | 1 | 1 | [
42026648
] | null | null | missing_parsing | PopupBuild - Create Beautiful Popups | null | Sarah Johnson
Senior Developer at TechCorp |
"PopupBuild has revolutionized how we handle user notifications.
The customization options and ease of use are exactly what we
needed!"
Sarah Johnson
Senior Developer at TechCorp
"The code quality and performance are outstanding. It's saved us
countless hours of development time."
Michael Chen
Lead Engineer at StartupX
"Finally, a popup solution that's both beautiful and performant.
Our conversion rates have improved significantly!"
Emma Davis
Product Manager at DesignCo
| 2024-11-08T20:51:56 | null | train |
42,026,656 | tosh | 2024-11-02T14:40:06 | null | null | null | 1 | null | [
42026657
] | null | true | null | null | null | null | null | null | null | train |
42,026,696 | samuelito | 2024-11-02T14:46:18 | Show HN: I made an AI tool to turn long videos into short viral clips | null | https://cyclips.com/auth/sign-up | 1 | 3 | [
42026697
] | null | null | missing_parsing | Sign Up | Cyclips | null | null | ORBy continuing, you agree to Cyclips's Terms of Service and Privacy Policy, and to receive periodic emails with updates.Go back to signing in page | 2024-11-08T13:57:19 | null | train |
42,026,705 | tomoikey | 2024-11-02T14:48:05 | Show HN: I made a Rust library for simplified validation | I’ve created a Rust crate that makes it easier to write programs with efficient validation and strong runtime safety. With operators like And, Or, and Not, you can combine types, and by defining your own Rules, you can write flexible yet robust programs.<p>I would appreciate any feedback, including any points of improvement. Thank you in advance!<p>docs: <a href="https://docs.tomoikey.com/quickstart" rel="nofollow">https://docs.tomoikey.com/quickstart</a> | https://github.com/tomoikey/refined_type | 2 | 1 | [
42031247
] | null | null | no_error | GitHub - tomoikey/refined_type: `refined_type` is a library that facilitates type composition, enabling the simple description of efficient validation processes and high runtime safety. | null | tomoikey | Refined Type
Code More simply, More safely, for all Rustaceans.🦀
refined_type is a library developed for Rust. It enhances your types, making them more robust and expanding the
range of guarantees your applications can statically ensure.
You can create various rules for a certain type, such as phone numbers, addresses, times, and so on.
Once you have established the rules, you can easily combine them.
Specifically, if you create rules for 'non-empty strings' and 'strings composed only of alphabets,' you do not need to
redefine a new rule for 'non-empty strings composed only of alphabets'.
All rules can be arbitrarily combined and extended as long as the target type matches. Enjoy a wonderful type life!
Installation
Get Started
As an example, let's convert from JSON to a struct.
// define a struct for converting from JSON.
#[derive(Debug, Deserialize)]
struct Human {
name: NonEmptyString,
age: MinMaxU8<18, 80>,
friends: NonEmptyVec<String>,
}
// In the 1st example, all fields satisfy the rule, causing the conversion from JSON to succeed.
fn get_started_simple_example() -> anyhow::Result<()> {
let json = json! {{
"name": "john",
"age": 20,
"friends": ["tom", "taro"]
}}
.to_string();
let human = serde_json::from_str::<Human>(&json)?;
assert_eq!(human.name.into_value(), "john");
assert_eq!(human.age.into_value(), 20);
assert_eq!(human.friends.into_value(), vec!["tom", "taro"]);
Ok(())
}
// In the 2nd example, while `name` does not satisfy the rule, `age` and `friends` do, causing the conversion from JSON to fail.
fn get_started_empty_name_example() -> anyhow::Result<()> {
let json = json! {{
"name": "",
"age": 20,
"friends": ["tom", "taro"]
}}
.to_string();
// because `name` is empty
assert!(serde_json::from_str::<Human>(&json).is_err());
Ok(())
}
// In the 3rd example, while `age` does not satisfy the rule, `name` and `friends` do, causing the conversion from JSON to fail.
fn get_started_outbound_age_example() -> anyhow::Result<()> {
let json = json! {{
"name": "john",
"age": 100,
"friends": ["tom", "taro"]
}}
.to_string();
// because `age` is not in the range of 18 to 80
assert!(serde_json::from_str::<Human>(&json).is_err());
Ok(())
}
// In the 4th example, while `friends` does not satisfy the rule, `name` and `age` do, causing the conversion from JSON to fail.
fn get_started_empty_vec_example() -> anyhow::Result<()> {
let json = json! {{
"name": "john",
"age": 20,
"friends": []
}}
.to_string();
// because `friends` is empty
assert!(serde_json::from_str::<Human>(&json).is_err());
Ok(())
}
Compose Rules
As mentioned earlier, it is possible to combine any rules as long as the target types match.
In the example below, there are standalone rules for 'strings containing Hello' and 'strings containing World'.
Since their target type is String, combining them is possible.
I have prepared something called Rule Composer (And, Or, Not).
By using Rule Composer, composite rules can be easily created.
1: And Rule Composer
And Rule Composer is a rule that satisfies both of the two rules.
It is generally effective when you want to narrow down the condition range.
type Target = Refined<And![EvenRuleU8, MinMaxRuleU8<0, 100>]>;
fn and_example() -> Result<(), Error<u8>> {
let target = Target::new(50)?;
assert_eq!(target.into_value(), 50);
let target = Target::new(51);
assert!(target.is_err());
Ok(())
}
2: Or Rule Composer
Or Rule Composer is a rule that satisfies either of the two rules.
It is generally effective when you want to expand the condition range.
type Target = Refined<Or![LessRuleU8<10>, GreaterRuleU8<50>]>;
fn or_example() -> Result<(), Error<u8>> {
let target = Target::new(5)?;
assert_eq!(target.into_value(), 5);
let target = Target::new(10);
assert!(target.is_err());
let target = Target::new(50);
assert!(target.is_err());
let target = Target::new(51)?;
assert_eq!(target.into_value(), 51);
Ok(())
}
3: Not Rule Composer
Not Rule Composer is a rule that does not satisfy a specific condition.
It is generally effective when you want to discard only certain situations.
type Target = Refined<Not<EqualRuleU8<50>>>;
fn not_example() -> Result<(), Error<u8>> {
let target = Target::new(49)?;
assert_eq!(target.into_value(), 49);
let target = Target::new(50);
assert!(target.is_err());
let target = Target::new(51)?;
assert_eq!(target.into_value(), 51);
Ok(())
}
Number
MinMax
MinMax is a type that signifies the target exists between a certain number and another number.
type Age = MinMaxU8<18, 80>;
fn min_max_example() -> Result<(), Error<u8>> {
let age = Age::new(18)?;
assert_eq!(age.into_value(), 18);
let age = Age::new(80)?;
assert_eq!(age.into_value(), 80);
let age = Age::new(17);
assert!(age.is_err());
let age = Age::new(81);
assert!(age.is_err());
Ok(())
}
Less
Less is a type that signifies the target is less than a certain number.
type Age = LessU8<80>;
fn less_example() -> Result<(), Error<u8>> {
let age = Age::new(79)?;
assert_eq!(age.into_value(), 79);
let age = Age::new(80);
assert!(age.is_err());
Ok(())
}
Greater
Greater is a type that signifies the target is greater than a certain number.
type Age = GreaterU8<18>;
fn greater_example() -> Result<(), Error<u8>> {
let age = Age::new(19)?;
assert_eq!(age.into_value(), 19);
let age = Age::new(18);
assert!(age.is_err());
Ok(())
}
Equal
Equal is a type that signifies the target is equal to a certain number.
type Age = EqualU8<18>;
fn equal_example() -> Result<(), Error<u8>> {
let age = Age::new(18)?;
assert_eq!(age.into_value(), 18);
let age = Age::new(19);
assert!(age.is_err());
Ok(())
}
LessEqual
LessEqual is a type that signifies the target is less than or equal to a certain number.
type Age = LessEqualU8<80>;
fn less_equal_example() -> Result<(), Error<u8>> {
let age = Age::new(79)?;
assert_eq!(age.into_value(), 79);
let age = Age::new(80)?;
assert_eq!(age.into_value(), 80);
let age = Age::new(81);
assert!(age.is_err());
Ok(())
}
GreaterEqual
GreaterEqual is a type that signifies the target is greater than or equal to a certain number.
type Age = GreaterEqualU8<18>;
fn greater_equal_example() -> Result<(), Error<u8>> {
let age = Age::new(19)?;
assert_eq!(age.into_value(), 19);
let age = Age::new(18)?;
assert_eq!(age.into_value(), 18);
let age = Age::new(17);
assert!(age.is_err());
Ok(())
}
Range
Range is a type that signifies the target exists between a certain number and another number.
type Age = RangeU8<18, 80>;
fn range_example() -> Result<(), Error<u8>> {
let age = Age::new(17);
assert!(age.is_err());
let age = Age::new(18)?;
assert_eq!(age.into_value(), 18);
let age = Age::new(79)?;
assert_eq!(age.into_value(), 79);
let age = Age::new(80);
assert!(age.is_err());
Ok(())
}
Iterator
refined_type has several useful refined types for Iterators.
ForAll
ForAll is a rule that applies a specific rule to all elements in the Iterator.
fn example_11() -> anyhow::Result<()> {
let vec = vec!["Hello".to_string(), "World".to_string()];
let for_all_ok = ForAllVec::<NonEmptyStringRule>::new(vec.clone())?;
assert_eq!(vec, for_all_ok.into_value());
let vec = vec!["Hello".to_string(), "".to_string()];
let for_all_err = ForAllVec::<NonEmptyStringRule>::new(vec.clone());
assert!(for_all_err.is_err());
Ok(())
}
Exists
Exists is a rule that applies a specific rule to at least one element in the Iterator.
fn example_12() -> anyhow::Result<()> {
let vec = vec!["Hello".to_string(), "".to_string()];
let exists_ok = ExistsVec::<NonEmptyStringRule>::new(vec.clone())?;
assert_eq!(vec, exists_ok.into_value());
let vec = vec!["".to_string(), "".to_string()];
let exists_err = ExistsVec::<NonEmptyStringRule>::new(vec.clone());
assert!(exists_err.is_err());
Ok(())
}
Head
Head is a rule that applies a specific rule to the first element in the Iterator.
fn example_13() -> anyhow::Result<()> {
let table = vec![
(vec!["good morning".to_string(), "".to_string()], true), // PASS
(vec!["hello".to_string(), "hello".to_string()], true), // PASS
(vec![], false), // FAIL
(vec!["".to_string()], false), // FAIL
(vec!["".to_string(), "hello".to_string()], false), // FAIL
];
for (value, ok) in table {
let head = HeadVec::<NonEmptyStringRule>::new(value.clone());
assert_eq!(head.is_ok(), ok);
}
Ok(())
}
Last
Last is a rule that applies a specific rule to the last element in the Iterator.
fn example_14() -> anyhow::Result<()> {
let table = vec![
(vec!["".to_string(), "hello".to_string()], true), // PASS
(vec!["good morning".to_string(), "hello".to_string()], true), // PASS
(vec![], false), // FAIL
(vec!["".to_string()], false), // FAIL
(vec!["hello".to_string(), "".to_string()], false), // FAIL
];
for (value, ok) in table {
let last = LastVec::<NonEmptyStringRule>::new(value.clone());
assert_eq!(last.is_ok(), ok);
}
Ok(())
}
Tail
Tail is a rule that applies a specific rule to all elements except the first element in the Iterator.
fn example_15() -> anyhow::Result<()> {
let table = vec![
(vec!["hey".to_string(), "hello".to_string(), "world".to_string()], true),
(vec!["hey".to_string(), "hello".to_string(), "".to_string()], false),
(vec!["hey".to_string(), "".to_string(), "world".to_string()], false),
(vec!["hey".to_string(), "".to_string(), "".to_string()], false),
(vec!["".to_string(), "hello".to_string(), "world".to_string()], true),
(vec!["".to_string(), "hello".to_string(), "".to_string()], false),
(vec!["".to_string(), "".to_string(), "world".to_string()], false),
(vec!["".to_string(), "".to_string(), "".to_string()], false),
];
for (value, ok) in table {
let tail = TailVec::<NonEmptyStringRule>::new(value.clone());
assert_eq!(tail.is_ok(), ok);
}
Ok(())
}
Init
Init is a rule that applies a specific rule to all elements except the last element in the Iterator.
fn example_16() -> anyhow::Result<()> {
let table = vec![
(vec!["hey".to_string(), "hello".to_string(), "world".to_string()], true),
(vec!["hey".to_string(), "hello".to_string(), "".to_string()], true),
(vec!["hey".to_string(), "".to_string(), "world".to_string()], false),
(vec!["hey".to_string(), "".to_string(), "".to_string()], false),
(vec!["".to_string(), "hello".to_string(), "world".to_string()], false),
(vec!["".to_string(), "hello".to_string(), "".to_string()], false),
(vec!["".to_string(), "".to_string(), "world".to_string()], false),
(vec!["".to_string(), "".to_string(), "".to_string()], false),
];
for (value, ok) in table {
let init = InitVec::<NonEmptyStringRule>::new(value.clone());
assert_eq!(init.is_ok(), ok);
}
Ok(())
}
Index
Index is a rule that applies a specific rule to the element at a specific index in the Iterator.
fn example_17() -> anyhow::Result<()> {
let table = vec![
(vec!["good morning".to_string(), "hello".to_string()], true),
(vec!["good morning".to_string(), "".to_string()], false),
(vec!["".to_string(), "hello".to_string()], true),
(vec!["".to_string(), "".to_string()], false),
];
for (value, expected) in table {
let refined = IndexVec::<1, NonEmptyStringRule>::new(value.clone());
assert_eq!(refined.is_ok(), expected);
}
Ok(())
}
Reverse
Reverse is a rule that applies a specific rule to all elements in the Iterator in reverse order.
fn example_18() -> Result<(), Error<Vec<i32>>> {
let table = vec![
(vec!["good morning".to_string(), "hello".to_string()], true),
(vec!["good morning".to_string(), "".to_string()], false),
(vec!["".to_string(), "hello".to_string()], true),
(vec!["".to_string(), "".to_string()], false),
];
for (value, expected) in table {
let refined = Reverse::<IndexRuleVec<0, NonEmptyStringRule>>::new(value.clone());
assert_eq!(refined.is_ok(), expected);
}
Ok(())
}
Skip
Skip is a rule that applies a specific rule to the elements of the Iterator while skipping the elements according
to SkipOption.
fn example_19() -> Result<(), Error<Vec<i32>>> {
let table = vec![
(vec!["hey".to_string(), "hello".to_string(), "world".to_string()], true),
(vec!["hey".to_string(), "hello".to_string(), "".to_string()], false),
(vec!["hey".to_string(), "".to_string(), "world".to_string()], false),
(vec!["hey".to_string(), "".to_string(), "".to_string()], false),
(vec!["".to_string(), "hello".to_string(), "world".to_string()], true),
(vec!["".to_string(), "hello".to_string(), "".to_string()], false),
(vec!["".to_string(), "".to_string(), "world".to_string()], false),
(vec!["".to_string(), "".to_string(), "".to_string()], false),
];
for (value, ok) in table {
let init = SkipVec::<NonEmptyStringRule, SkipFirst<_>>::new(value.clone());
assert_eq!(init.is_ok(), ok);
}
Ok(())
}
if you need more skip option, you can define it like this.
pub struct NoSkip<T> {
_phantom_data: std::marker::PhantomData<T>,
}
impl<ITEM> SkipOption for NoSkip<ITEM> {
type Item = ITEM;
type Accumulator = ();
fn should_skip(_: usize, _: Option<&mut Self::Accumulator>, _: &Self::Item) -> bool {
false
}
}
Length
You can impose constraints on objects that have a length, such as String or Vec.
LengthMinMax
LengthMinMax is a type that signifies the target has a length between a certain number and another number.
fn length_min_max_example() -> Result<(), Error<String>> {
type Password = LengthMinMax<5, 10, String>;
let password = Password::new("123456".to_string())?;
assert_eq!(password.into_value(), "123456");
let password = Password::new("1234".to_string());
assert!(password.is_err());
let password = Password::new("12345678901".to_string());
assert!(password.is_err());
Ok(())
}
LengthGreater
LengthGreater is a type that signifies the target has a length greater than a certain number.
fn length_greater_example() -> Result<(), Error<String>> {
type Password = LengthGreater<5, String>;
let password = Password::new("123456".to_string())?;
assert_eq!(password.into_value(), "123456");
let password = Password::new("1234".to_string());
assert!(password.is_err());
Ok(())
}
LengthLess
LengthLess is a type that signifies the target has a length less than a certain number.
fn length_less_example() -> Result<(), Error<String>> {
type Password = LengthLess<10, String>;
let password = Password::new("123456".to_string())?;
assert_eq!(password.into_value(), "123456");
let password = Password::new("12345678901".to_string());
assert!(password.is_err());
Ok(())
}
LengthEqual
LengthEqual is a type that signifies the target has a length equal to a certain number.
fn length_equal_example() -> Result<(), Error<String>> {
type Password = LengthEqual<5, String>;
let password = Password::new("12345".to_string())?;
assert_eq!(password.into_value(), "12345");
let password = Password::new("1234".to_string());
assert!(password.is_err());
Ok(())
}
Custom Length
You can define a length for any type. Therefore, if you want to implement a length that is not provided
by refined_type, you can easily do so using LengthDefinition.
#[derive(Debug, PartialEq)]
struct Hello;
impl LengthDefinition for Hello {
fn length(&self) -> usize {
5
}
}
fn custom_length_example() -> Result<(), Error<Hello>> {
let hello = Refined::<LengthEqualRule<5, Hello>>::new(Hello)?;
assert_eq!(hello.into_value(), Hello);
Ok(())
}
JSON
refined_type is compatible with serde_json. This ensures type-safe communication and eliminates the need to write
new validation processes. All you need to do is implement a set of rules once and implement serde’s Serialize
and Deserialize.
Serialize
#[derive(Debug, Eq, PartialEq, Deserialize, Serialize)]
struct Human2 {
name: NonEmptyString,
age: u8,
}
fn example_9() -> anyhow::Result<()> {
let john = Human2 {
name: NonEmptyString::new("john".to_string())?,
age: 8,
};
let actual = json!(john);
let expected = json! {{
"name": "john",
"age": 8
}};
assert_eq!(actual, expected);
Ok(())
}
Deserialize
fn example_10() -> anyhow::Result<()> {
let json = json! {{
"name": "john",
"age": 8
}}
.to_string();
let actual = serde_json::from_str::<Human2>(&json)?;
let expected = Human2 {
name: NonEmptyString::new("john".to_string())?,
age: 8,
};
assert_eq!(actual, expected);
Ok(())
}
| 2024-11-08T18:09:04 | en | train |
42,026,706 | mixeden | 2024-11-02T14:48:06 | Entanglement as a Probe of Hadronization | null | https://synthical.com/article/Entanglement-as-a-probe-of-hadronization-f59942aa-1032-4a84-b73b-ce5c6e54c059 | 1 | 0 | null | null | null | null | null | null | null | null | null | null | train |
42,026,715 | logicallee | 2024-11-02T14:49:53 | Show HN: P2P file transfer using WebRTC | It's sometimes frustrating to send files among devices. Now you can send any file to any Chrome/FireFox/Safari client that wants to receive it:<p><a href="https://taonexus.com/p2pfilesharing" rel="nofollow">https://taonexus.com/p2pfilesharing</a><p>Just share your ID, select a file and click send, and the receiving client will prompt to save it:<p>There is no signup of any kind. You just need a way to copy the peer ID such as by email or text message, so they know who they're trying to get the file from.<p>This makes it much easier to transfer files among devices. I tested it on Windows and iPhone, it worked perfectly. It does not use the server, it is peer to peer. | https://taonexus.com/p2pfilesharing/p2pfilesharing | 6 | 7 | [
42031988,
42027390,
42041882
] | null | null | null | null | null | null | null | null | null | train |
42,026,718 | hemancuso | 2024-11-02T14:50:19 | Americans, your calls and texts can be monitored by Chinese spies | null | https://www.washingtonpost.com/opinions/2024/11/02/china-spying-telecom-trump-harris-fbi-cell-phone/ | 12 | 13 | [
42026728,
42027259,
42027021,
42026767,
42026724,
42027013,
42026739,
42027092,
42026814,
42027455
] | null | null | missing_parsing | Americans, your calls and texts can be monitored by Chinese spies | 2024-11-02T10:00:13.465Z | Josh Rogin | Last week, the Chinese hacking and spying operation known as “Salt Typhoon” was revealed to have targeted former president Donald Trump and his running mate, Sen. JD Vance of Ohio, as well as staffers for Vice President Kamala Harris’s campaign and for Congress. The Post has reported that the hackers were able to collect audio and text messages from their targets in a wide-ranging espionage operation, which likely began several months ago. | 2024-11-08T07:27:12 | null | train |
42,026,723 | Wheatman | 2024-11-02T14:51:27 | Meta CEO says AI will be the next big Category of social Media | null | https://fortune.com/2024/10/30/mark-zuckerberg-ai-generated-content-next-big-category-social-media-feeds/ | 3 | 2 | [
42026861
] | null | null | null | null | null | null | null | null | null | train |
42,026,725 | n1b0m | 2024-11-02T14:51:49 | Ticker-tape synaesthesia – when real life comes with subtitles | null | https://www.theguardian.com/science/2024/nov/02/ticker-tape-synaesthesia-when-real-life-comes-with-subtitles | 3 | 0 | null | null | null | null | null | null | null | null | null | null | train |
42,026,726 | rbanffy | 2024-11-02T14:51:54 | As road rage rises, aggressive drivers in Texas try to understand their anger | null | https://www.washingtonpost.com/nation/interactive/2024/road-rage-aggressive-driving-increase/ | 1 | 1 | [
42026911
] | null | null | no_error | As road rage rises, aggressive drivers in Texas try to understand their anger. | 2024-10-31T09:00:49.858Z | Ruby Cramer | SAN ANTONIO — They arrive from the highways of San Antonio, where it is 91 degrees outside, and there is construction on the roads, and cellphones are ringing, talk radio is blaring, people are tailgating, no one will let anyone into their lane, horns start honking, middle fingers go up, car doors fly open, and another day of road rage is underway in an increasingly angry country.Now, in a small classroom on the edge of the city, Dean DeSoto, 70, looks over a roster for his class on aggressive driving.“Good morning,” he says, as 19 people walk into the room looking the way they usually do at the start of class. Tired, annoyed, blank. Most of them don’t want to be here, and DeSoto knows this. They are here because they have been ticketed, fined and sent here by a judge to learn how to manage their anger and anxiety on the road. They take their seats, and he begins to read aloud from a list of their citations, most of which look like speeding violations.“90 in a 65 … 94 in a 65 … 102 in a 65 … 105 in a 65 … 112 in a 60.”DeSoto, who runs a traffic safety nonprofit that partners with San Antonio’s city and county courts, has been teaching his aggressive driving class for 26 years, and in that time, he has come to believe several things. One is that what goes on in the country will play out on its roadways. Another is that anger on the roads is getting worse. Across the country, the number of people injured or killed in road rage incidents involving a gun has doubled since 2018, according to data from the Gun Violence Archive, a nonprofit research group. There is no uniform definition of aggressive driving across law enforcement agencies and no national database to track it, but DeSoto has been keeping his own tally, including cases in Texas involving guns, knives, ice picks, 2-by-4s, tire tools, PVC pipe, plumbing pipe, bats, hammers, shovels, hatchets, ball bearings, marbles, frozen water bottles, bricks, stones and, in at least one instance, a spear.On the road, the incidents can begin and end in as little as 30 seconds. But another thing DeSoto has come to believe is that more than just reckless behavior, the cases are a measure of the country’s stress, trauma and polarization, and that made them part of a larger, longer story.“So let’s start,” he says.***From left, Colten Bonk, Yufang Jin and Dean DeSoto present during an aggressive driving course in San Antonio. (Eli Durst for The Washington Post)A young woman goes first. She says she was speeding to pick up a sick aunt.A man next to her says he was speeding to pick up his daughter from school.Deep ReadsA man a few seats away goes next. “I was coming back from work,” he says, and DeSoto, a certified intervention facilitator, gestures for him to keep talking, trying to draw him out. These are not the people with spears, pipes and knives, but this is a course about the different forms anger can take. “You’re driving a vehicle that is 3 to 7,000 pounds,” DeSoto will tell them. “You can hurt somebody.”“I was just trying to go home,” the man says.“Okay, that’s a start.”Next person. A young woman. Speeding because — “okay, you’re gonna hate me, but …” she begins to say.“No,” DeSoto says.“I’m sorry, but I like to go fast.”“You go, girl,” another man says.“Okay, so, how fast were you going?” DeSoto asks.“I was going 103 in a 70.”“Why do people become homicidal in a 30- to 45-second transaction? It’s more than just the guns.”“Ooh,” one person says, and another starts clapping.“In a construction zone, too,” she says.A few seats to her right, the next person to speak, a 41-year-old man whose first name is Almir, sits up in his chair and, instead of talking about speeding, says to the rest of the class, “People are just overwhelmed.”He begins to list the reasons: inflation, job insecurity, constant TV, constant news. “It’s, ‘Hey, look at this.’ ‘Look at this.’ ‘Look at that.’ ‘Should we look at this?’ ‘Should I look at that?’ People are just losing it,” he says. He had read stories about gunfights between strangers in Texas, where, as of 2021, state law allows most adults to carry a handgun in public without a permit. He had seen people scream at the nurses and administrators at the hospital where he worked.“And it’s hot,” a girl next to him says.“Everything. Humans are just too overwhelmed with, just, everything,” Almir says. “And in particular, in my case, I just wanted to avoid the guy …”The larger, longer story: If Almir had wanted to explain it fully to the rest of the class, he would have told them that what happened the day he was pulled over wasn’t just about an angry and anxious world. It was part of a story that began decades ago, when he was growing up in the mid-1990s during the war in Sarajevo. His childhood memories were of grenades, emptied out buildings and a neighbor who was abusive, leaving him with trauma he couldn’t talk about for years. Then there was bullying at school, skipped classes and nights he ran away from home, sleeping in abandoned houses. When his family resettled in the United States, he began to see that any situation could provoke him into a reaction. It wasn’t until he was in his 30s and met his wife, a licensed professional counselor, that he started to realize why. She encouraged him to see a therapist. In the beginning, he talked until he overwhelmed himself with crying. “If you cry, you cry,” his wife told him. “Let it out. It’s an emotion.”None of which he says in class. What he does say is, “I also got a short fuse.” He turns to the girl who likes to drive fast and says: “I understand what she’s saying. She’s gonna slow down as she grows older. When I was younger, you need something. You’re understanding this world.”In his case, it took a long time to understand why he still doesn’t like when someone touches him on the back, or why he hates harsh, sudden noises, or why he would start saying “patience, patience” to himself when he looked in his rearview mirror one day and saw a Mustang tailgating him. He was on his way home with his 4-year-old daughter from her pediatrician appointment. It had already been a stressful day. Her school had kept calling, asking him to update her vaccinations. He had been laid off a few months earlier, and he didn’t have health insurance, and now he was on Interstate 410 and the Mustang was inching closer. He saw the driver gesturing angrily. He wanted to change lanes, but no one would let him in, and his daughter was in the car seat behind him, asking questions, as he watched the Mustang coming closer.“Patience,” he told himself again, and when he saw a gap in the traffic, he stepped on the gas, hit 90 mph, shifted lanes, saw the flashing lights of a police car, and now he was here in this class.“We are a very high-anxiety world right now,” DeSoto tells him. “Economic pressures. Social pressures.”“It’s everything,” Almir says again.“It’s everything,” DeSoto says.“I’m sorry, but I like to go fast. … I was going 103 in a 70.”“Nine out of 10 times, I’m just trying to avoid. I see people having disputes over stupid stuff at gas stations. They start shooting at each other. That’s notorious in Texas. Notorious.”“And again,” DeSoto says, “the point is here: Why do people become homicidal in a 30- to 45-second transaction? It’s more than just the guns.”“If you are into a mood or in a bad day and then — out of nowhere …”“Therein lies the answer: state of mind.”The class goes on. They watch a video about the brain’s response to fear. They answer questions in their course book like, “How do you try to relax?” Almir sits through a compilation of news clips on road rage that are filled with harsh noises: first of honking, then a driver firing a gun five times in Miami, then a driver throwing an ax, shattering a windshield in Washington state. A few seats away, a man scrolls on his cellphone. A woman puts her head in her hands. DeSoto looks around the room. “All right, so what is anger?” he asks, and Almir is the first to answer.“It’s an emotion,” he says.***There is no uniform definition of aggressive driving across law enforcement agencies and no national database to track it. (Eli Durst for The Washington Post)In another part of the city, Anthony Williams, a 40-year-old police officer, sees a sedan begin to accelerate in front of him. “Please don’t do it,” he says.He glances at his radar. Eighty mph.“Please don’t take off. Please don’t do that.”Inside his unmarked Dodge Charger, Williams speeds up to get closer. He waits a moment longer, hoping the car will slow down. Eighty-five mph. He groans. “Yeah, they’re gonna get a ticket,” he says, and on come the blue-and-red lights of his car.Williams opens the laptop mounted to his center console and types out the license plate number as the sedan exits the highway and comes to a stop on the side of the road. He checks his body camera and the camera on his dashboard and eyes the vehicle ahead before he opens his door.“Alrighty, then. We’ll see how this interaction is.”All day long, this is what Williams does. His job is the 30-second transaction on the road, not what comes before or after. “It’s a lot of road rage here,” he says at the beginning of another shift. “I’ve seen it just getting worse.” In San Antonio, the police department’s traffic unit has put a special focus on aggressive driving, even as some jurisdictions across the country have moved to limit low-level traffic stops since the start of the pandemic and the 2020 police killing of George Floyd. What this means for Williams is that each time he approaches a car, he tries to prepare himself to encounter any possible emotional state.“Humans are just too overwhelmed with, just, everything.”Now he returns from the sedan and steps back inside his car, relieved, which is how he feels when he avoids a confrontation. “How are you doing today?” is how he says he tries to begin every interaction, and sometimes, the response is, “‘Why the f--- did you pull me over? Why’d you pull me over, why’d you pull me over, why’d you pull me over?’”“Let’s start over,” Williams says he will respond, trying to defuse the situation, and it goes on from there: “My name is Officer Williams. Okay? Here’s the reason why — just let me finish, please. This is the reason why I pulled you over, okay? I have nothing against you. I have a job to do. Okay? I caught you speeding. Ah, ah — let me finish. Let me finish. I have a job to do, okay?”Williams thinks of his job as a series of interactions, and he believes that most of the time, people are just having a bad day. Sometimes, Williams is having a bad day, too, and when he does, he drives to a park and calls his wife or sits in the silence of his car. He knows what happens to officers who let the stress build. A few times, he’s screamed into his hands, “just to get it out,” he says.Now he pulls up beside a car on an access road and rolls down his window.“You need to slow down, man. All right?”“Okay, yeah,” the man says.“Just slow it down, okay?”He sees another car start to speed up. “Please don’t take off,” he says, but the man does, and soon he is pulling the car over and writing a ticket.He sees a woman texting as she moves down the highway. “Please get off it,” he says, watching her use her phone. He pulls closer. “Come on.” But she’s still texting, and he flips on his lights. Another ticket.He sees a truck cut someone off near a highway exit, and he says: “Wow, wow, wow. Bro, bro. That was bad. That was bad.”Williams accelerates and flips on his lights. Another ticket.“If you cry, you cry. Let it out. It’s an emotion.”The next interaction comes in from his dispatcher — road rage on Interstate 410. He dials the number of the woman who called in the report and listens as she describes a driver following her from lane to lane, then giving her the middle finger, then coming close to hitting her. “I try to stay away from people like that,” the woman says. “I was like, ‘What the hell is she doing?’”“That’s exactly what you do,” Williams tells her. “I’ve seen shootings. I’ve seen stabbings. You don’t want to be part of none of that, okay?”He gives her his badge number, tells her he’ll look into it and says he hopes she has a better day.On his computer, Williams begins to type a record of the incident and the phone call.“Just a couple sentences, a little narrative,” he says, and then the interaction is over. He shuts his laptop, puts the car in drive and pulls out of the parking lot, headed back to the highway.***The aggressive driving course focuses on drivers learning how to manage their anger and anxiety on the road. (Eli Durst for The Washington Post)After a few days, 10 students return to DeSoto’s classroom, here again because a judge considered their citation serious enough for a second, more intensive session of the aggressive driving course. They sit in the circle of chairs and this time, halfway through the class, a 26-year-old man walks into the room and takes a seat in the corner.“This is Colten Bonk,” DeSoto says, and he tells the class Bonk is here to talk about his own life with anger.“Kind of a long story,” Bonk says.Bonk was also speeding. In his case, it was through downtown Fredericksburg, Texas. A police officer had pulled him over, but instead of keeping the car in park, he put it in drive and stepped on the gas. He saw the cop car behind him, then more than one cop car. “I’ve seen the footage. It’s not good,” he says. He kept driving until he flipped his Dodge Ram 2500, was ejected from the driver’s seat, put his face through the windshield, hit his head on the concrete and broke 23 bones, including his ribs, sternum and scapula. He was airlifted to a hospital. When he woke up, he didn’t know who he was or recognize his parents.What he would eventually remember was how he’d gotten there. He was an alcoholic, and his anger had begun when he was 19 years old and a scholarship student at St. Louis University. One night, a fight with his girlfriend became physical. “I had a couple of black eyes, and I threw her on the ground. It took me years to even talk about that, but that’s what I did,” he says. The next day, he was arrested by campus police officers, accused of domestic violence and, later, charged by the state. He left Missouri, lost his scholarship and “blamed everyone around me,” he says. “The anger progressed and progressed, man.” By 22, he got a DWI, went to rehab, got out, moved into a sober living house, relapsed, got a second DWI, moved back into sober living — and then came the night he was stopped in Fredericksburg and decided to take off.Colten Bonk presented to the class about his struggles with anger and addiction as well as his brush with death. (Eli Durst for The Washington Post)“The last time I drank, when I was in Fredericksburg, I can’t tell you exactly what was going through my mind,” he says.“The police officer had you,” DeSoto says now. “The car was in park. What did he tell you?”“‘Don’t put in drive.’”“That hair-trigger kicked in. … What triggered that?”“I mean, probably a few things,” Bonk says.“Fire away.”“One was just fear and trauma,” he says. “I got to the point where I started being angry even when I wasn’t drunk. Somebody would look at me wrong in the room and I’m like, ‘The f--- is this guy’s problem, dude?’”“We are a very high-anxiety world right now. Economic pressures. Social pressures.”Now Bonk looks out across the classroom.“I mean, we all get angry, right?” he says. “You blame other people. You blame other things. You blame other people on the road for how they’re driving or whatever it is. But you play a part in everything, dude, trust me.”The people in class listen in silence, and when DeSoto tells them to take a 10-minute break, a few of them hang back and walk over to Bonk.“Really appreciate hearing that. Takes a lot of courage,” one of them says.“Of course, dude,” Bonk says.“I wanna say thank you.”“Appreciate you saying that, dude,” Bonk says.Behind them, a woman named Hailey is the last to approach.“Hey, um, Colten,” she says. “Is there any way I could talk to you at some point?”***A car after a high-speed crash on Interstate 410 in San Antonio. (Eli Durst for The Washington Post)“All right,” DeSoto says when the class is nearly finished, “What have you picked up? Or did it go in one ear and out the other?”They go around the room as they’d done in the beginning.“I’m just more conscious of my state of mind,” a man says.“Maybe I shouldn’t be speeding around,” another says.“Okay,” DeSoto says, turning his attention to the woman who a few minutes before had been telling Bonk how she ended up going 92 mph on the interstate. “Hailey?”She was 20 years old. She had been living on her own since she was 18, she explained one day outside of the classroom. She had been working at a restaurant and earned just enough money for rent, groceries and a white Camry, which she was driving the night she was pulled over with a load of freshly done laundry in the back seat. At the time, she was trying to cut down on marijuana, which she said she’d been using since she was a teenager, and that was part of one more story in this class. From the ages of 5 to 12, she said, she was abused by someone close to her family, and in the years afterward: therapy, mental health hospitalizations and a disciplinary program in school called In-School Suspension, or ISS, where she remembered sitting in a room and writing the same phrase over and over in a workbook — “I’m in ISS because … I’m in ISS because …”And now this new program with a workbook, where she had been doing her best to answer the questions:Why were you speeding?“Trying to show off/pass in front of a sports car.”What did you say to the police officer?“That I saw him and started slowing down. It was a long day and I just wanted to get home after doing laundry. That I’m broke and didn’t have money for the tow/car insurance.”What did the police officer say to you?“That I was going way too fast in a 65 and that it was reckless driving and that they would have to tow my car because I didn’t have insurance.”Did you sleep well the night before?“I have a hard time falling and staying asleep.”“You blame other people on the road for how they’re driving or whatever it is. But you play a part in everything, dude, trust me.”In her apartment in the weeks leading up to her citation, she found herself on social media more and more. One night it was scrolling past images of war in Gaza, feeling a “dark hole of hopelessness” at what she saw. Another night, it was videos of influencers sitting on the beach, traveling to places she had never been, “in a competition of who’s doing better, who has this, who has that, who’s making more money, who’s right, who’s wrong …” until the night her life had brought her to DeSoto’s class, where he is now saying her name.“Sorry,” she says to him, looking up. “What was the question?”“What have you processed?”“Um,” she says to DeSoto.She talks about watching her speed and keeping distance from other drivers.“Just overall trying to be more responsible,” she says.“Very good,” DeSoto says, and Hailey returns to the workbook.How do you define anger?“Anger is a cover emotion …”What emotions trigger anger?“Fear, sadness, emptiness.”After a few minutes, people begin to pack up their things. DeSoto wishes them luck and hands them each a certificate that will allow them to expunge the citations from their records.They take out their car keys and their phones, and one by one, they begin to leave the classroom, headed back to highways full of anger and anxiety, until only one person is left seated.Hailey, still writing.DeSoto believes what goes on in the country will play out on its roadways. (Eli Durst for The Washington Post) | 2024-11-07T22:50:11 | en | train |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.