skysight-inc/HackerNews huggingface dataset:
I don't care about code which "can't error", because it can't error.

The only code I care about is code which can error, or worse, code which is expanding due to a requirements change and is about to make the transition to "needs to be able to return errors".

There are vanishingly few business logic processes that can't error, because every bit of disk IO, network IO and user input can always throw an error that needs to be handled.

What I am saying is that the benefits of pure functions are obvious, but the number of practical applications of them is far smaller then their advocates claim. They don't save me from the fact that the network may be down, the target device might crash, someone might knock the power out at the other end, or the network card picks that moment to corrupt a packet.

What is the point of spending a lot of syntax on Result<T> types returning all over the place, rather then just throwing a try-except around the places in my code I know I can reasonably bound and define what the recovery process is if an error does occur. Which for every non-toy example, is a guarantee.
Just finished watching Dark Waters, which is about the DuPont PFOAs in Teflon case. It's an insane story and hard to believe they can get away with intentionally and knowingly poisoning nearly every living thing for decades, and when caught are allowed to not just still exist as a company, but continue to poison us.
I would call it a "law" that if I sample from a normal distribution I am more likely to sample from the mean than from the tail. The law is not on a specific draw but what the histogram will look like. The same way I wouldn't jump off a bridge because someone might jump off right after me with a parachute and attach it to me I wouldn't bet against classical laws due to quantum interaction. Can you name any specific physicists who should change their outlook? How should they be doing experiments differently due to your point?
the author arbitrarily discarding the published sales figures of Riven is interesting
That said, a smaller spec may help people focus on more solid code. Potentially.
Assuming bombardment by radiation, they might quickly evolve into our superiors.
> Wouldn't a static parse method still allocate memory for the object that it returns?

Yes, but you don't have the overhead of constructing URL first. The new URL.canParse method from the article covers this.
There's either 4 or 6 combinations (depending on whether you consider the domain-only case separate from path or not):

www.example.com + /images/foo.jpg -> www.example.com/images/foo.jpg
www.example.com/static/ + /images/foo.jpg -> www.example.com/images/foo.jpg
www.example.com/static/index.html + /images/foo.jpg -> www.example.com/images/foo.jpg
www.example.com + images/foo.jpg -> www.example.com/images/foo.jpg
www.example.com/static/ + images/foo.jpg -> www.example.com/static/images/foo.jpg
www.example.com/static/index.html + images/foo.jpg -> www.example.com/static/index.htmlimages/foo.jpg (naive and wrong)
-> www.example.com/static/images/foo.jpg (extra work)

They were referring to the difference between the 5th and 6th (probably didn't notice it was an absolute path), you're referring to the first 3 together vs the others.
Accepted answer:

"Potentially, there is a tiny possibility... Keep in mind, it's a web application, and worse it can do is XSS attack"

One sad thing about security is that everyone and their uncle is a security expert.
It's going to keep getting worse for the rest of our lives, and then even worse for our children and grandchildren: https://arewestillfucked.com/

It's a tragedy but at some point it stops being news.
To be clear, what's being theorised in the paper is essentially a warp drive, but it's not FTL (or some cheat that allows FTL without technically going FTL for some definition of FTL). It's proposing a technology for sub-light relativistic travel using the idea of gravity warp.
I'm pointing out that it harms OpenAI to make users feel this way, I know it's common to give users a lack of control these days and that edge LLM's are not viable for this yet, and good luck with third party ChatGPT clients etc!

I'm not saying it's her voice.
I'm not disputing that they found someone with a similar sounding voice.
But OpenAI should still aim to license from Scarlett Johansson and fine-tune on real licensed audio from her, the real deal, and let users switch to it if they want to.
>It wasn't even the hottest in my lifetime.

Fun fact: It could have been cooler than the hottest summer in your region in your lifetime, while also being the hottest summer, globally, in two thousand years. And at the same time, too! Isn't that neat!? :D
Yes, restricting scope to jailing for criticizing the Catholic Church, I only see suspended sentences and fines in places like Poland. Expanding to other religions, there are people currently in prison for Quran burning, and religious prisoners in NATO countries (Turkey).
A primer on valuation: in many financial contexts, $1 of operating savings may be worth much more than $1 of investment.

That is because an investment is a one-off, so it's actually worth $1, but the savings are recurring, so they are worth the same number of years that a company's profits are valued. Depending on sector and investors' beliefs in the future of companies, this factor is typically in the 5-20x range. That means that $1 of savings is well worth at least $5 of investments.

Factor in anything you want!
My Reason: Low-tech ink, with a long-established track record of Just Working over long periods of time. (The deformation might help in corner cases such as poor storage conditions.) Vs. the plastic in laser printer toner might disintegrate in a few centuries, and chemical engineers may not know all the ways that modern inkjet formulations could degrade over time.
I’m not sure it’s a trademark question so much as an appropriation of likeness question. I just meant that they can’t really train on her actual voice samples and then conceal whether they did it; that’s what discovery is for.
Show HN: Automated, SEO optimized anime figure list with AI generated content
It seems like once a week I get reminded how critical making sure that employees are safe to speak their mind, *especially* when the company's revenue or profits are concerned with what they want to say. So many times I've seen horrific situations be diffused when someone said something, and management didn't retaliate or try to silence the employee.
https://www.johndcook.com/blog/2024/03/03/archiving-data-on-...

200k on paper.
30k if you don't want to require an actual sheet scanner to read it.

To read it requires software, but it's open source software not tied to any particular hardware or os platform, and you use any kind of imaging hardware you want of the time. It doesn't matter how much cameras or os's change in the future.

Also FRAM reading is destructive. FRAM internally destroys and re-creates the data every time it's read. MRAM does not. idk offhand how the two compare on things like data loss from environmental stresses like extended periods at
low or high temperatures, or thermal cycling etc.
PSA to the hardware engineers on here --

Y Combinator is actively looking for founders starting climate tech companies: https://www.ycombinator.com/rfs#climate-tech
"Web browser executes javascript" is not exactly shocking. Every single browser in it's default configuration does before the proper NoScript (or NoScript-alike) is added. This doesn't seem like a significant vulnerability since it is the default mode of operation of modern web browsers. Use a pdf reader if you want something moderately more secure.
It was absurd. My refusals began when they would insist on a technology proof that was creating nude celebrities in an image with them as the 2nd person. It was really amazing. Always guys, unable to contain their glee being horny, and insisting, insisting the company make porn. This was every single VC, it met with all of them. Angel investor groups too. It darkened my view of humanity.
Hey HN, I'm the author of this post.

I wanted to learn about SEO optimization, performances and page ranking. As I'm an anime fan, I decided to create a platform that discovers anime figure products, fills accurate descriptions about the product and the character, and lists the price of every shop with a fully automated process.

I just finished the project and I would like to share with you what I've learned about SEO, performances and I will detail interesting tech aspects to achieve this result.

Here are all the steps to discover new figures and create a relevant page for each:

1) My crawler looks for figures that don't exist in my DB, all Japanese figures have a unique identifier called "jancode", the crawler will visit official figure websites and try to look for unknown jancodes.

2) Once a new figure is discovered, this one will be added to a queue for further processing.

3) Using image AI, I'm doing image analysis and try to extract labels that describe the figure (for example accessories such as hat, staff, the pose, etc). Using these image labels and basic info about the figure such as the original series name or character, I use ChatGPT to generate a visual description of the figure as well as explaining the background of the original series.

4) Once I have all the needed information about the figure, I will use the jancode to discover the figure on multiple shops in order to compare the price.
5) Then a page is published to the platform with all the data.

6) Finally, I have a sitemap.xml generator that is exposing all figure pages in real-time in order to let search engine crawlers discover newly added pages.

Besides this automated process to add new figures to the platform, users can explore and manage their figure list and even share their reviews and images about a figure, these community content are more important than the initial AI-generated content.

In terms of tech stack I use Java for the backend, and Scrapy for the web crawler. The SEO and performances are also very important so I use NextJS for the front-end. Everything is deployed automatically using Docker Swarm and Github actions.
Reverse-engineered Shazam audio signature generator
@alex_conneau's twitter header has a screenshot from HER right smack dab on his profile
True. But in the story, the algorithms are better humans than the humans, so it wasn't actually a bad thing.
"Ultimately I'll point the fault at the district attorney,"

For it to be the DA's fault, lots of other things have failed first. So I don't really see how the DA is that relevant. If devs failed by making software that doesn't work in a way that the company using it cannot keep track of their inventory in a way that makes it look like their customers have not returned items in a way that looks like it has been stolen so that they can make a report to the police who cannot properly investigate which results in someone being arrested but never charged does not make any sense for a DA to receive any blame in this situation at all. (jeebus that must be the longest sentence I've ever typed).
> Then Nasa will find someone who can.

Who's even left? Northrop? Lockmart? Adds an extra 10 years to the timeline at the most optimistic.
Ask HN: What at first great things were crutches for your startup?
One realisation I came to was that I would find excuses and ways to do the things that weren't uncomfortable for me in building a startup - less meetings, less marketing, more development than made sense...

But the most insidious part of fixing this in myself, once reflecting upon it, was that some things had the veneer of helping or counteracting my mistakes, but if anything, made things worse.

For example - I was doing too little marketing (classic). I built a reddit bot to analyse mentions of the startup, use basic ChatGPT to find posts I should respond to, to both understand customers and their problems better, and to promote.

Reality? I did this, but such things, and comments where I only promoted my startup indirectly about 1/3rd of the time was significantly worse value for my time as compared to posting videos/GIFs on reddit or other social media which unapologetically focused on what we uniquely did that no other competitors were doing.

For listening, I should had set up interviews. But I relied on this crutch of feeling I was doing marketing by checking reddit every day with this script. Really, it was just technical work, while reducing my marketing... The opposite of what I should have done. It only took a couple of days to build, but still. Another crutch I would say is using Github issues/todo boards when not at the scale for that level of detail/requirements, especially on prototype projects.

What crutches have you observed yourself using?
I see it more like:

> Major lobbying companies' shareholders' interest in handling an slow creeping existential threat appears to be very bad.
Congratulations on new venture
huh. I had no idea.

I live in a cool old concrete factory in Brooklyn that was haphazardly converted into lofts back in the nineties, and more recently purchased by developers to convert into "luxury" lofts. The conversion consists mostly of throwing a cheap wood veneer over the floors, carpeting in the hallways, newly painted drywall over various surfaces… I had never thought of the building as particularly "brutalist" before, but I lamented the covering of the worn concrete.

"If people didn't want to live in an old factory… why would they move into an old factory?" I keep asking myself.

Fortunately — believing these changes are upgrades — they haven't changed much for the residents that they didn't manage to evict, so my unit is still honest. And since it has an east-facing-window, it's even covered mostly with plants, like these photos :D
Should mention what a total powerhouse iran is compared to the rest of rhr middle east (excluding israel, reicluding turkey).
I recently got a couple of dodgy emails with an invoice.pdf or equivalent. Never seen that type of email before, I thought it prudent not to open the PDF

Wonder if it was related...
Can we rid artificial intelligence of bias?
Science is based on the hypothesis that stuff that worked yesterday will work the same way tomorrow, and it tries to discover the rules that govern the stuff. There is nothing religious about it. It's a safe assumption to make; if there are no rules or the rules can change in arbitrary ways, science should be able to detect that, too. We've seen enormous scientific progress throughout human history, and based on this history I think it's safe to say that it's the best way to learn about our world that we've discovered.
it would be SIMM's in 1992!
The ICC is not doing that. A prosecutor is requesting the court to approve them.

Now, why is the court accepting legal challenges on legal issues, and independently of the merits of those issues, from countries like South Africa, who publicly said they would not arrest Putin, who actually DOES have an ICC arrest mandate against him?
Maybe try https://nandgame.com - goes from logic gates to adder to a programmable computer, presented as a series of challenges to solve.
> Same goes for output from an LLM

This is the crux of our disagreement. It does not go the same. You have no idea what the LLM is going to write, neither does the LLM, nor the people who created the LLM.

At no point did the people who created the LLM actually think about your use-case, nor did the LLM, and there is no promise of anything you ask getting a correct, or even consistent answer. The creators don't know how the answers got there, and can't easily fix them if they're wrong. You'd be a fool to trust it for anything other than dog and pony shows.
And the trend does exist over the last 20 years https://www.ncei.noaa.gov/access/monitoring/national-tempera...
> Question, what are the most viable / cost effective / low risk geoengineering tools?

Inject sulphur dioxide into the stratosphere. This can be done by adding it to airplane fuel. We have a good idea of the consequences, as ships did the ~same thing (less effectively) until recently—they're now filtering it into the oceans instead.
The world is run by the rich, for the rich. Why would they hold themselves accountable?
That would definitely help a lot.
Creating an Effective Technical Project Plan
After we stopped dumping sulfur into the oceans the average temperature went up nearly an entire degree![1]

This will heavily affect the size of cyclones and other weather related disasters (not just heatwaves). 2024 might finally make people realize that the end is near once parts of the world in developed countries start to be slowly wiped off the map due to non stop natural disaster events.

[1]: https://webcache.googleusercontent.com/search?q=cache:https%...
@credits borg16
Look we both know it is Florida man not Florida person in them future headlines and ain't no way the legal system in this brave new world is giving a dude half in the AI divorce.
Both zero-based and one-based indexing is common in mathematics, for example polynomials, exponential series, transforms, etc. are often zero-based.

But in most of the literature that I've seen, vectors and matrices tend to number elements starting with 1.
Apple Puts Rival App Stores Behind a Tall Barricade
Is Android Chrome the same Chromium engine as desktop? I don't know much about the mobile browser internals.
Interesting, but wouldn't that make every brick building, like, say, on a street in the UK, "brutalist"? I suppose you could argue there's a lack of brutalist intent, but still.
The trouble with being at the beginning of space travel is that we will get better and faster at it.

In fact there's a 'law' or 'paradox' that I can't remember the name of - but if we were to launch in 2076 at 0.2c, we could eventually launch something faster, than might even overtake the original probes.
There is a very well written version of this from many years ago on the Daily WTF:

https://thedailywtf.com/articles/special-delivery

It is written well enough that I could just about convince myself this actually happened!
The similarity to Johansson feels more like a cover for the actual complaints I’ve seen, which are that the voice is far too breathy and flirtatious. It made the demo videos, with somewhat dorky men being complimented on their dress and whatnot, pretty damn uncomfortable. They either should have toned down the flirtation, or else added a more suave and seductive masculine voice to at least balance things out.
I think Apple is still doing that: https://developer.apple.com/documentation/foundation/nstimei...

Couple decades ago Microsoft did that too, VT_DATE in old OLE Automation keeping FP64 value inside. Luckily, their newer APIs and frameworks are using uint64 with 100-nanoseconds ticks.
Also well worth reading -- https://www.institute.global/insights/climate-and-energy/rei...

Tl;dr = Climate change is best addressed by producing technology that makes things more efficient and/or that helps the developing world decarbonise.

If anyone is working on something gamechanging please hit me up -- I'm happy to help out on the dev / infra side pro bono.
Why is this downvoted when the oceans warmed up nearly an entire degree after we stopped dumping sulfur into them? It is very likely that 2024 will be the hottest summer in two thousand years.
If you're interested in this juxtaposition in game form, check out The Talos Principle 2. Most of the game environments follow this pattern. (And with Unreal Engine 5's lighting effects!)
I'm not sure, but my guess is everyone's got a slightly different "uncanny valley" function.

So for me, this voice had no impact — sure I noticed it seemed a bit "flirty", but that's not a thing that engages me in any way as it feels equally fake when a human does it, and if anything I pattern-matched to the Pierson's Puppeteers in Ringworld; the original Alexa advert was moderately creepy, but I could see they were trying to mimic the computer in Star Trek; but one example I do have of being disturbed by a product advert was the use of a cheerful up-beat soundtrack for "The Robot Dog With A Flamethrower | Thermonator": https://www.youtube.com/watch?v=rj9JSkSpRlM
> slow creeping existential threat

I struggle to see how even the worst predicted outcomes of climate change are an existential threat to the human species or our civilization. In the worst case a few billion people die or are displaced. Our species will carry on.
Yes electric motor go vroom. Why are you comparing different hardware?
So you suggest that even after getting sunburns, people do not avoid sunburns, and are thus at a much lower level of cognitive function than most of the animal kingdom?

You haven't replied to any of the points I'm making, all while making gross scientific errors such as equating glass filtered sunlight to sunlight, so I won't interact any further.
The way the government incentives work for imports you have to lease rather than buy to get the good price. But you can lease the Kona EV, Toyota bz4x and its sister the Solterra for under $200 a month.
How is that any different from any other package manager? The sandboxing features of snaps have no major role in how easy it is for a publisher to update a package in one of their repositories.
> It's about building and living in habitats beyond low orbit

And what for if I may ask?

And please don't say "technological development" or "colonizing space".

ad Development): Most of the tech that needs to be developed for this, is what is commonly called space plumbing: Figuring out ways to make human bodily functions not immediately fail in space. Next to none of these technologies benefit humanity at large in any way. Also: We keep coming up with amazing new tech all the time, without the extra cost of strapping it to a human and shooting that package into orbit.

ad Colonization): There is nothing in our solar system to colonize. Period. Everything other than Earth is less hospitable than Earth would be after a thermonuclear war, by a huge margin. Terraforming another planet is practically impossible fora species that still has to count the kilos for every launch.

And as for the one goal that makes sense, which is exploration: We have a perfectly reliable form of space exploration: Robots. And they are much better at it than we are, for one simple reason: They don't require space plumbing.

There is exactly ONE reason why Apollo was manned by people instead of robots: Because computers, electronics and robotics in the 60s were not up to the task. If todays tech existed back then, I would bet the Apollo rocket would have had exactly one passenger, and that would have been the Lunar Roving vehicle.
well, that's fucking terrifying.

and i truly hate executives. "profit above health. profit above morality. profit above society. profit above nature. profit above everything."
Lead time / effort / skills / equipment to access printed data after >200 years: zero / minimal / basic literacy / any light source a person can easily read by

Vs. reading data on this device, 200+ years out?
Losing the means of food production in the most fertile parts of the world would pretty much wipe out more than "a few billion people". It's likely that we'd lose the means to support even a billion human lives and would have to redirect our efforts into survival rather than progression setting us back hundreds of years.

edit: not to mention everyone going into war with each other for securing the small amount of places that are able to produce food.
Simply (and obvious) question: Of the recent climate change, how much is human-made and how much is natural?

2000 yrs ago, the world population was a fraction of what it is now. Tbere was no mass burning of fossil fuels. And yet the temps were at record highs. Do we have enough reliable data to judge the climate properly?
Math or Electrical Engineering
> But economy, china, developing nations, my personal right to consumption

More excuses: https://news.ycombinator.com/item?id=39756174
ChatGPT-4 outperforms humans in cognitive reflection tests
some new information all of you will like:

https://tedium.co/2024/05/17/google-web-search-make-default/