skysight-inc/HackerNews huggingface dataset:
It’s not really a framework. I mean that’s the whole point of not being so tightly knit.

Imagine you have a website with some kind of router for different paths. You might also have a unique domain per market (e.g. amazon.co.uk or amazon.jp)

/ -> home page repo

/search -> search repo

/products/xyz -> products repo

/products/xyz/review -> product review repo

It might seem crazy to have so many repos, but each of these pages already imports so many different components from different teams, and separating them is an easy way to make sure you don’t accidentally separate something else.

You could use Gatsby to prebuild all the products pages when there’s a change in the CMS and serve them on S3, and you could use a Next.js project to handle the /search page. You could use Vue to do the reviews page, or just have a normal create react app SPA. It gives you flexibility to experiment and lets teams not stop all over each ofher.

If your build step results in 20 * 300 product pages, then you’ll be glad to not have other stuff in that repo.

Of course you could accomplish this in a monorepo, but I’m just using project & repo to mean the same thing (a micro frontend)

It gets easier to A/B test and you could deploy a different site version for different markets (e.g rollout a new search result layout in Ireland and see if there’s a difference in click through rates). It’s just easier to deploy a MFE to serve that route in that market and have the old MFE still deploy to other markets.
Show HN: Finetune OpenAI Embeddings In-Browser
There's a lesser-known trick described in the OpenAI Cookbook. You can linearly transform a generic embedding space (like OpenAI’s) for your usecase with a well-tuned matrix multiply.

I ported the cookbook technique into a standalone hardware-accelerated webapp, and added some UX to guide the process along. There are some examples on the homepage for out-of-the-box fun. With 30 seconds of training, I was able to improve performance by the first example by 15%.
2023 Video Developer Survey – Codecs, Formats, Platforms, Challenges, etc.
If you consider that winter is coming, the 430W heater under the desk isn't a bad idea...
There are a bunch of options for getting user["email"] and user.email to do the same thing:

1. Write a class with custom __getitem__ and __getattr__ methods

2. Use a template system like Django or Jinja that implements this in certain situations

3. Use a library like https://pypi.org/project/python-box/
Exactly. QUIC and Falcon use UDP because they basically have to. You can't avoid it.
"I love the ambiance and social aspect of a fancy restaurant" wouldn't be implausible, even for someone with a private chef at their beck and call.

"I relish paying my health insurance bill" is a bit different.
RSS.

People have been saying RSS is dead for years now. To me it's still better way of keeping up-to-date with content I'm interested in than anything else.
Yes it's pretty convenient, no need to take items out onto the checkout counter just to put them back into my shopping cart.
There isn't a big enough market for it, so any device capable of doing this would be expensive due to lack of economies of scale.
1979 :) https://en.wikipedia.org/wiki/Logic_for_Computable_Functions
SSH, apt-get, and Docker Compose, and/or apt-get

I am a big fan of infra as code, but the flexibility and reliability of SSH and doing it yourself is really nice too.
probably one of the greatest personal financial hacks of all time... you better ask somebody
Eliciting the Relaxation Response
The term "proposed" is used here where an executive branch agency gives notice to the federal registrar, waits the time needed for public comment, pretents to "ack" the public comments and passes said rule to then enforce. ie a law that pretty much bypasses congress.

the supreme court seems interested in looking at how much power can congress give to the executive branch.

see: https://www.federalregister.gov/uploads/2011/01/the_rulemaki...
I once went to a "blind concert" (basically a pitch black theater) where they played Atom Heart Mother, I didn't know that album but I was a big PF fan, and it was a wonderful experience.

> Venezuelan salsa bands

Like Zeta?
aye, this is the way. CCP ain't remotely communist anymore, and at this point they're just the ruling bloc. they're not going to let go, nor are they going to rock the boat too much unless they're sure they can come out ahead.
Check out ryg's blog about it[1]. To nobody's surprise, other than tweeting things my puny brain can't decypher, I believe he works on Unreal Engine these days.

1. https://fgiesen.wordpress.com/2012/04/08/metaprogramming-for...
No, nothing of that sort. I've got a couple websites still up with content back to the early aughts but they kind of just transformed into blogs as the years went on.
Guidance given by Dr. Fauci was centralized planning
Whether it was saying in March of 2020
“There’s no reason to be walking around with a mask. When you’re in the middle of an outbreak, wearing a mask might make people feel a little bit better and it might even block a droplet, but it’s not providing the perfect protection that people think that it is. And, often, there are unintended consequences — people keep fiddling with the mask and they keep touching their face.”
Or when he said you need to wear a mask
or when he said 1 mask works great so 2 masks will work better
https://youtu.be/9nbKjgS0nPA
In March of 2020 we were told we needed to be 6 feet apart to be safe
https://www.cnn.com/2021/03/19/health/cdc-physical-distancin...
in March of 2021 we were told we needed to be 3 feet apart.
Need any more examples of flip flopping, or expert guidance that turned 180 degrees without justification?
Climate change has toppled some civilizations but not others. Why?
Everything would be cool if it weren't for there being situations in which you need to set an environment variable in the same process in order to get a function to do something. E.g the TZ variable in order to coax a behavior out of the time functions.

If environment variables are for child processes only, there is no need to use setenv because you can pass a specified environment array through exec.
You can bypass a Nushell command by prepending "^". To use MacOS open, this would be "^open cat.gif"

This tic drives me nuts when I hop between fish (which I use for two features, better tab completion and background jobs) and nu. With 0.86, it might just be for background jobs, which is something Nushell has avoided dealing with entirely. CTRL-Z and "bg" is just muscle memory for me, much like "open."
Drop the persecution complex. You're being asked to pay taxes, not commit genocide.
Only 2 data pins per side are reversible that way, and it's the low speed ones.

The high speed pins (4 per side) should be going directly into a multiplexer or driver, the CC pins (1 per side) detect orientation, the sideband pins (1 per side) are only used dual-sided, and the power and ground pins (4 per side) aren't fussy at all.
Quick, someone make an online quiz that tells you Yamaha product names and you have to guess whether it’s a motorcycle or an instrument!

Start easy (e.g DX7 as first question) and make it progressively more difficult.

Throw in one question where the only options are instrument or motorcycle, but the real answer is industrial robot. Then apologize for the trick question and promise not to do that again. Three questions later, do it again. But then after that only do the real questions.

When showing the correct answer for each product, show a picture of what it looks like.

When calculating score, exclude the two trick questions. Ask 10 real questions total and 2 trick questions. The maximum score is 10/10. Calculate score on backend, not on front end. Only reveal the correct answer for each question after user has submitted response to the question. If a user submits the correct answer for one of the trick questions (not possible with UI, but can be done by the user if they send the correct answer in the POST request), they get a bonus point. With bonus points the max score possible is 12/10.

There is no indication in the data sent to user agent that industrial robot is a possible answer. The following are the valid responses that the backend will deserialize when checking each question: motorbike, musical-instrument, industrial-robot. Only the options “motorbike” and “musical-instrument” show up in the choices available to user agent. In the response when user answers the trick questions, it will show in the data the serialized value “industrial-robot” along with human readable name “Industrial Robot”.

Example question from server:

{
"q-num": 1,
"q-kind": "choose-one",
"product": "Yamaha DX7",
"a-alts": [{"v":"motorbike", "display-v":"Motorbike"},{"v":"musical-instrument", "display-v":"Musical instrument"}],
"points-so-far": 0,
"max-points-possible": 10
}

Example response by client:

{
"q-num": 1,
"a": ["musical-instrument"]
}

Example reply from server:

{
"q-num": 1,
"grade": "correct",
"a-correct": [{"v":"musical-instrument", "display-v": "Musical Instrument", "img": [{"720w": "https://i.example.com/dx7-720w.jpg", "w": 720}], "points-worth":1, "points-awarded": 1}],
"points-so-far": 1,
"max-points-possible": 10,
"next-q": 2
}
https://docs.python.org/3/whatsnew/3.12.html#whatsnew312-pep...
"PEP 692: Using TypedDict for more precise *kwargs typing" seems pretty great.

That'll be really helpful for nested method calls which proxy a lot of their arguments along. I can also see that helping out when creating stub libraries.
The S&P 500 pays out half a trillion in dividends each year, and performs another half a trillion worth of stock buybacks, funded by the profits from the economic activities of the traded companies.

It's not all "number goes up"/a zero sum game of early investors selling to later investors.
Bracing for Impact
The price of BTC reflects one incredibly narrow band of reality. BTC can quadruple tomorrow and the broad reality still is that crypto has not achieved any of the promises, and is less relevant today than it was 10 years ago. But BTC is "traded" in a largely unregulated market, has poor liquidity, and there is every indication that it is being held afloat by manipulation. BTC has close to zero barrier to entry, can be replaced in a second, and technically is just a giant bag of dogshit, so even if somehow crypto had actual value, it wouldn't be BTC.

A few years ago, virtually all of professional sports were sponsored by crypto companies. Since almost all of them have folded, usually under massive fraud, and have been replaced by gambling firms. So I guess nothing has changed.
Zellij is new but mostly based on outdated ideas and it’s great.
There are plenty of ways for banks to make money off poor people. Some banks might defect, but the banking market is competitive, others will step in.
Well, the headline has buried the lede.
Hmm I do not see them (at least on IPhone).
I’m still getting so many obviously spoofed calls.

I guess all these protocols or FCC rules are worth shit because they do not care. Sure they will block canabis delivery notifications I get every two month but not scam call which get like 40 per month.
I'd totally pick Java for a new project in 2023.

The stable and mature ecosystem and fantastic tooling along with very low amount of library churn makes it one of the better options for anything server-side.
lead individual there also calls for collective response in "International Institutions for Advanced AI" [0]

[0] arxiv:2307.04699v2 July 2023
Will ublock origin or Brave shield block this?

Another reason to use ublock origin for private use and also deploy it in company use with GPO, Intune or other RMM.
Why stop a labeling? You could design the connectors to only terminate at another connector that supports the same features, preventing anyone from confusing one cable for another.

And the reason we don't do that is because it would expose the lie that there can be a universal data and power connector for all devices, and rather than live in a world where everything can connect perfectly fine with the right cables, we have chosen to live in one where the market can be flooded with garbage cables that don't work for your devices. And rather than blame the device manufacturer for choosing a shoddy cable, or the government for forcing them to, we can happily blame the cable manufacturer instead.

If you just slap a label on it, it's not going to fix the problem. No one is going to read them, and people are going to lie.
i started walking to burn more calories but it feels more risky than driving -- nearly got run over by a shortbus the other day.
Hum... No.

You are misinterpreting my words here. I'm saying that I now strongly suspect that biasing the way you divide your software on a direction that gives you services will always make your life worse (probably by a lot). There's no philosophical allegory about perfect things not existing.

There are a few things that really want to be services. You'll settle those on services whatever way you decide to architecture your software. But those are very few, and any push into doing it for more than the absolute minimum is harmful.
I got very sidetracked with the object recognition deciding the dog's snout was a cell phone.
What would be the process for getting this drug approved for use in the US? I wonder if it would qualify for the EUA pathway, on the grounds that it's possible there is a limited window during which it is effective. Has this drug been used for other purposes, which would help regulators know whether it is generally safe? Or would they be assessing it from square one?
Yes, this is the question I was going to ask. Is that an Apple ASIC? Or something off-the-shelf? Crazy if it was an FPGA inside a cable, but maybe not with the price tag. We need to have someone dissect one of these to see if there are any markings on that. I supposed something this tiny is a wafer level chip-scale package. I can't seem to find any 105 pin BGAs at Octopart or Digikey, but it isn't easy to shop by pin count alone.
[US specific] Without evasion of laws, women wouldn't be allowed to vote, black folks would be slaves, interracial marriage would be a crime...I can go on and on. The ability to disobey unjust laws is absolutely essential to the health of a society.
From Machine Learning to Autonomous Intelligence [video]
IRS Direct File platform (free electronic tax filing) – pilot with 13 states
A 15th century French painting depicts an ancient stone tool
+1. especially when the redefinition aligns with a change in administration. there are countless normal rules/regulations that can pass but when it counts as a material/constructive new change, it should come from congress and be an actual law.
You are a winner.
If they couldn’t detect millions of records stolen from credential stuffing I don’t think that makes them look any better. But Ill die before i see a company take ownership for their actions im sure so it’s no surprise
Oh, you lost your email account access? Please send a matching DNA sample and $99 to unlock your account.

I mean, 23andme has one of the ultimate methods of account recovery available to it. (ignoring that people tend to leave copies of their DNA everywhere, but then you could just mail that in under a John Doe and find out all the same info anyway).
> No need to be so harsh. You seem to be misinterpreting and misunderstanding my comment.

I interpreted you saying that it has died as a claim that it has died, not that it still thrives but—gasp—has evolved since the 90s.

> "The demoscene died" is a trope that means that the original demoscene feeling is gone for many. If you got into the demoscene in 2005, I doubt you experienced it first-hand, but I am sure you have read about it.

Presumably, that's about the extent of your involvement with the current demoscene as well. I am unable to comment on your feeling or how it disappeared. I think to some extent it simply boils down to teenagers growing up and losing interest, or not enjoying the direction of the scene. People have lamented the presumed imminent death of the demoscene for literal decades. It evolves and favored skill sets become obsolete: of course some people who were doing boot block demos for the Amiga 500 may feel alienated by the time the state of the art was 3D acceleration and shaders, just as someone doing C64 trackmos might have felt alienated once the Amiga 500 was the state of the art.

Fact remains that I can sit sweaty and drunk in a room crammed with 100 other drunk people in the middle of the summer and try to fix a fatal bug in the loader 20 minutes before deadline with two group mates standing around throwing out ideas, have an eureka moment just in time and then watch the competition results until three in the morning. I can ride on that feeling for weeks regardless of what your feeling is. If that's the demoscene being dead, I guess people weren't notified enough times despite it being a hot topic for such a long time.
Man, the bar for bikeshedding is on the ground these days!
Hyperscale datacenter capacity set to triple because of AI demand
Vive la france, shoutout to TiTAN :) And yes. Demoscene specifically only has tiny pockets in the US.
A long time ago, someone gave me two boxes like this: https://www.uline.com/Product/Detail/S-9744GR/

I was tickled when I saw two red-uniform officers carrying them around on TNG.
If you want to hear it I found this video:

https://youtu.be/YzH1xjU74D8

That’s a great channel btw, humorous takes on audio gear.
I think it’s precisely because life created the oxygen atmosphere that it’s interesting as a potential sign of life, no?
Oooh yes yes - this is such wonderful news! Literally weeks before the world changed my boyfriends dad had begun to explore the world of cooking; he was so happy when we would bring him to niche little grocers to try things he had never known about before and trying all the food - but after his infection, and for the last 2 years - nothing. No taste. No smell.

We try to make up for it by encouraging him to make stuff with varied textures and components but he's been really depressed about it since. His pinterest recipe board he would share with us hasn't been updated in years and his meals typically consist of protein/starch/veggie with no seasoning as it doesn't register.

I am so hopeful for something that can bring him his sense of smell and taste back; so far his medical teams have kinda just been bouncing him around to various specialties - he even had a small surgery in an attempt but no dice.
Regarding the over-engineering; is it possible some of that is to avoid very expensive patents by other manufacturers?
Ask HN: How to Be a Good Mentor?
Hi

I have been recently asked to mentor and this is my first time being a mentor. I have over 12+ years of software engineering experience and have fair share of life experiences that has taught lot of valuable lessons.

I wanted to know if you have any tips and guidelines and how should I be a better mentor.

Thanks.
pixel 3 for me too
Wow, blaming paying customers for their inability to secure their systems. You cannot control users, but you can control your security posture. 23andme's management can fuck right off with their bad attitude and poor judgement.
I true HN style, I'd like to reply in an only tangentially related way...

That would be: How could a tea commercial actress cause scandal anyway?

I mean, who really cares if your tea commercial actress has an abortion, or just breaks up with her boy friend?

In Japan, there's a really weird relationship between "fans" and "idols".

The public has very extreme expectations that the performer will somehow conform to their fantasy ideal of the person.

Young idol group members are prohibited from having personal relationships by their management, and deviations from these restrictions leads to those public applogies where the management and performer are bowing in front of a bunch of microphones becauses the actor failed to uphold the fantasy relationships that a million virgin otakus have for the performer.

I'm a big fan of Japanese culture myself, having studied it and the language for years. Having an ancient culture with a direct lineage to the present brings a lot of long term learning and wisdom, but it also brings a lot of hateful baggage,

This weird expectation of the personal behaviour of entertainment personalities is just one small example of that kind of baggage...
Maybe you have a heavy US centric point of view?

I don't condone tax evasion, but if I can't work because the State wants to go broke before I can even start running my business sorry but no one will do it.
Surprising. I tried OCR only once so far - I took a photo of a hand-drawn poster at my kid's kindergarten, about mental health, dense with hand-written-like text mixed up with various drawings. You know, the kind of hand-made infographic. And the text was 100% in Polish. I figured it's a good test as any - I fed that photo to ChatGPT and asked to summarize it. To my astonishment, it reproduced 100% of the content correctly, and even in the right order (i.e. how I'd read it myself, vs. strict left-right top-down).

I don't know which blows my mind more - the above feat done on first try, or that the "voice chat mode" has unprecedented ability to correctly pick up on and transcribe what I'm saying. The error rate on this (tested both in English and Polish) is less than 5% - and that's with me walking outside, near a busy road, and mistakes it made were on words I know I pronounced somewhat unclearly. Compare that to voice assistants like Google one, which has error rate near 50%, making it entirely useless for me. I don't know how OpenAI is doing it, but I'd happily pay the API rates for GPT-4 voice powered phone assistant, because that would actually work.
Send it to Louis Rossmann: https://rossmanngroup.com/
If I'm selling sandwiches, I could make a lot more if I accept an alternative payment with the same convenience as credit but lower tx fees. Privacy conscious buyers may prefer crypto than a bank that sells their purchases to advertisers.
Licensing is one of our modules. like other modules, our customers have a choice (think picking from a salad bar) of what they want based on their use case. for licensing, you can BYO, leverage Pier's licenses, or we can help you apply for licenses too.

Operating as a licensed lender would allow you to have higher APR thresholds. For example in IL, unlicensed caps at 9% (which is not always economical), while licensed allows you to lend at 36%
hi greg

can you post the details, sans the comments, here, as is typical with ask HN posts.

also: did you call the fire department?

they can probably advise you better on fire science than us.

sincerely,

greg
I’d quibble with #1 slightly — prompt injection is an attack whoever otherwise controls the model, regardless of whether that party a human.

We think of SQL injection as an attack against an application (not its DBMS, which behaves as intended), but it’s still SQL injection if a business analyst naively pastes a malicious string into their hand-written SQL. These new examples differ from traditional prompt injection against LLM-wrapper apps in an analogous way.
It turns out those that like the idea of giving your DNA to VC's then you are also highly likely to reuse your one true password (password123) on multiple sites.
My finances are in Microsoft Money 2004, running in a Windows 2000 VM.