skysight-inc/HackerNews huggingface dataset:
Here, I'll provide an example I generated with chatgpt with some prompting.

type Server struct {
Payment services.PaymentService
Storage services.StorageService
Quota services.QuotaService
Auth services.AuthService
Notification services.NotificationService
}

// TransactionRequest is the request structure for a purchase
type TransactionRequest struct {
UserID string `json:"user_id"`
AuthToken string `json:"auth_token"`
ProductID string `json:"product_id"`
Price float64 `json:"price"`
Currency string `json:"currency"`
File []byte `json:"file"`
Key string `json:"key"`
}

// TransactionResponse is the response structure after processing a transaction
type TransactionResponse struct {
Status string `json:"status"`
Message string `json:"message"`
}

// HandleTransaction handles the incoming transaction request
func (s *Server) HandleTransaction(w http.ResponseWriter, r *http.Request) {
var req TransactionRequest
if err := json.NewDecoder(r.Body).Decode(&req); err != nil {
http.Error(w, "invalid request", http.StatusBadRequest)
return
}

// Authenticate user
userID, err := s.Auth.Authenticate(req.AuthToken)
if err != nil {
http.Error(w, "authentication failed", http.StatusUnauthorized)
return
}

// Check and update quota
allowed, err := s.Quota.CheckQuota(userID)
if err != nil || !allowed {
http.Error(w, "quota exceeded", http.StatusForbidden)
return
}
s.Quota.UpdateQuota(userID, 1) // Assume updating quota by 1 unit per transaction

// Process payment
transactionID, err := s.Payment.Charge(req.Price, req.Currency, "payment-token")
if err != nil {
http.Error(w, "payment failed", http.StatusInternalServerError)
return
}

// Upload file to S3
fileURL, err := s.Storage.Upload(req.File, userID + "-files", req.Key)
if err != nil {
http.Error(w, "file upload failed", http.StatusInternalServerError)
return
}

// Send notification
notificationMessage := "Your purchase has been processed successfully."
s.Notification.SendNotification(userID, notificationMessage)

response := TransactionResponse{
Status: "success",
Message: "Transaction processed successfully: " + transactionID + " File uploaded to: " + fileURL,
}
w.Header().Set("Content-Type", "application/json")
json.NewEncoder(w).Encode(response)
}

It is still contrived obviously. But what I would like to show what happens if use stubs. You could pass anything into the dependency parameters and the test would pass. Mock allows you to "lock" in the implementation. Its tightly coupled yes but sometimes that is exactly what you want.

In this example that would be the userId, the bucket name, the key.

Mock allows you inject faults in the test setup. Lets say I want to test the error handling logic. I could do it with multiple types of stubs but if you squint its starting to look the same.

On the topic of Fake vs Stub vs Mock. Real or Fake is the ideal solution here but not always viable due to time/practical constraints. Stubs can be useful but don't give you fine grained control.
the locals aren't upset about salaries? German programmer salaries seem to be on par w/ unskilled labor.

If I was a local I would want to stop immigration until supply + demand equilibriated around USA levels.
Apple has been referring to its features as using machine learning, not AI, but it's been in use for years now.

> Apple is using machine learning in just about every nook and cranny of iOS. It is present in how users search for photos, interact with Siri, see suggestions for events, and much, much more.

To help boost machine learning and all of the other key automated processes in iPhones, Apple made the Neural Engine. It launched with the iPhone's A11 Bionic processor to help with some camera functions, as well as Face ID.

https://appleinsider.com/articles/23/09/02/how-apple-is-alre...
Is this an intentional browser API concession due to some polling limit? I don't see the connection?
> If I were president, I would simply make the h1b go to the highest bidder

The article makes clear that many H1B aspirants are manipulated into indentured servant like conditions and debt. Selling H1Bs would just amplify that class divide.

I think the goal of the H1B system is to benefit American labor market, it's not a sort of "Ivy League" that is for elite reproduction.
I wired my condo with Ethernet. I ultimately settled for 5e over 6 and higher.

The reasons were a few:
1. 5e was dirt cheap

2. 6 and higher cost more

3. 6 and higher were harder to bend and made doing the runs way harder.

4. 5e speeds are more than sufficient for home use.

5. It doesn't add significant of any resale value to a home because most home owners don't know how to get it set up correctly or what a switch actually is.

I recall topping out at 2.5gBit/s. Cost and ease were more than enough for me and were getting to the point where faster home Internet speeds get donishing returns. I'm also app with 1080p streams and don't need or want 4k or higher.

The only true benefit was being able to set up multiple wireless APs which blanketed my condo with good connectivity and forced all of the misbehaving wireless access points onto my three 2.4ghz acceptable wifi channels or face poor reception .
"It's the modern day version of alchemy --- trying to create a fantastical result from a chemical reaction before it was understood that nuclear physics is the mechanism required. And even with this understanding, we have yet to succeed at turning lead into gold in any practical way."

Well, sure. But then, we never observed nature turning lead to gold in any cheap way, whereas we do observe nature running complex intelligence on relatively cheap hardware (our brains).

There's a pretty big difference between trying to do something never Nature did (alchemy), versus trying to replicate in a kinda-parallel kind of way something we've observed Nature doing (intelligence).
In our projects 80% of renovate updates are broken PR-s. In theory it should save work, but it just generates more.
You use the tool best fit for your application. That's the answer to any language debate.

That's how people make millions in profit even running just PHP ;)
If you look at AlexeyBelov's other comments, it's clear he is trying to create conflict wherever, whenever, and however he can. He wants to get people shouting. I would just ignore him.

But thanks for sticking up for me.
According to Wikipedia:

"Gabriel was most successful at the 1987 MTV Video Music Awards where he was honoured with the Video Vanguard Award and "Sledgehammer" won an additional nine awards including Video of the Year, a record that has not been challenged. Its video is the most played music video in the history of MTV.[92]"

https://en.wikipedia.org/wiki/So_(album)
I think the biggest hurdle to heat pump adoption (at least in North America) is likely to be that it provides an experience that simply isn't as good as a gas furnace. On a chilly morning the air coming out of the vents just isn't that warm and it may take hours to bring the house up to temp, whereas gas puts out pleasantly warm air immediately and can quickly warm the house even on the coldest days. When it's truly cold (like < 20F) the heat pump will run continuously and struggle to maintain temp. Don't misunderstand, the heat pump is certainly _good enough_, but people typically don't pick the "good enough" experience over the "better" experience when the better option is available and they can afford it.

For reference I've lived in NC and TN near the mountains where heat pumps are pretty standard. I imagine we don't get the ultra high efficiency cold weather heat pump units that would be used up north, but they also get much colder temps than us. Several of the houses I've lived in have been recent construction (2008 and 2018), so well insulated and reasonably new & efficient heat pumps. For the last 2 years I've been in a house with gas, and it's just so damned pleasant... I know on paper that heat pump is better, but I really don't want to give up that furnace.
Putting your head in the sand doesn't make real problems vanish.
They don't boost the feed pressure, just isolate the output permeate line from the back pressure of the storage tank. Instead of the membrane output pushing against the increasing pressure of tank as it fills (decreasing output) it produces into a void in pump body which the pump periodically pushes into the tank from spring mechanism wound by the output waste water.

They work pretty well to reduce waste but do add complexity to what is already a somewhat complicated device under the sink. They will also create bad TDS creep if used without an auto-shutoff valve installed in the RO.
It’s a reference to the game Bioshock, you absolute clown. https://bioshock.fandom.com/wiki/Subject_Delta So is the email in my bio.
> EPI, for example, notes that American employers do not have to recruit US residents before hiring foreign H-1B workers, that it's legal for US employers to underpay H-1B workers, relatively speaking, and that H-1B workers are often exploited and lack job protection and mobility, among other issues.
I think that, in the modern, immigrant-averse west, that's exactly how a worker visa system is supposed to work.

* We don't have enough skilled workers, and employers think the ones we have are too expensive

* Foreign countries have a glut of skilled workers, and are competing with our companies

* So let's allow in a quota of foreign skilled workers, and let's let companies take the piss and underpay them.

Profit! From the POV of the government (they can screw the quota down to placate nativists, and point to the fact that the visa workers are earning a lot less than the natives), and from the POV of the employers (they get a cheapo workforce).

A better solution is to improve the education standard of the natives; but that would involve public expenditure, which is anathema to conservatives, to the press, and apparently (in the UK) it's also anathema to the Labour Party.

I'm not an open borders wingnut; but I think expenditure on high-quality education is a vital investment in a country's future. We have some world-beating universities in the UK; but government policies have resulted in those institutions giving many of their places to overseas students, who pay a lot more. So we educate lots of foreigners, who then go back to where they came from, and then get hired on worker visas to come back and work here, e.g. as doctors and nurses, of which we have a dire shortage.

Then we tighten the rules on worker visas, like banning them from bringing their kids with them.
It's not only about the language though. It's about runtime, frameworks, etc.
I don't have access behind the paywall. But from the title, if it is only telecom carriers devices, basically RISC-V and ARM chips.

Telecom giants like Huawei and ZTE use their own network processor on data plane for a long time, replacing control plane CPU (usually x86 or ARM) is not a big task. Smaller companies who relies on Broadcom solution may have a tough time, but 3 years to find a replacement and finish adaptation is not that hard too.
I have a branch lock on dev and main so that you can only merge through PR. So I created a branch from dev called "renovate_updates". In the renovate config I set the baseBranch config parameter to this branch. I also enabled automerge and minimumReleaseAge.

On GitHub I created two actions:

1. It gets triggered on the 14th and the 1st of a month and creates a PR from renovate_updates to dev and assigns it to me. I use an action to identify as a github app that I have given the rights to in the repo. Within the github action you can use gh cli.

2. Everytime there is a merge to the dev branch the action gets trigerred and does a rebase of dev of that "renovate_updates" branch.

The nice thing about this is that Renovate creates an Issue in your repo and you can still force versions if you need them earlier.
It operates without money. Every company accepted into YC contributes a family-sized container of maple syrup which is poured into a tank in which dang floats, absorbing nutrients, moderating and maintaining the site.
Cool hack and enjoyable read.

The smart plug idea is slick. I like the idea of decoupling the smart from the appliance. I'd much rather all my appliances be dumb.

In the US, you'd have to get a 240 volt smart plug. Are there any reputable ones?

For the laundry use case, I just set an alarm on my phone though...
How prevalent were pagers in your area? I was a college student with one in the late 90s. There was a Mountain Dew promotion that gave you a pager and a year's service for X number of proofs-of-purchase, which was easy to get if you just went to a gas station and asked if you could dig through the boxes, but I didn't know anyone else who had one. Crucial item for certain fields (first responders, healthcare, IT, drug dealers), but for an average person?

I don't miss carrying a pager, but the alphanumeric ones we had when I was a resident physician were pretty cool. Need to send a one-way message? They had a web interface, so you could. One or two months of service on a single AA battery. Worked everywhere. Far more than I can say for smartphones.
It's still a company, still making and selling products, and I think he's still pretty heavily involved in it.
China's economy seems to be doing just fine

https://thenextrecession.wordpress.com/2024/04/10/chinas-unf...
Even easier than that, simply define poverty as a property of capitalism and if anybody says that poverty also exists in your communist society, you throw them into the gulag for spreading capitalist propaganda.
It really does seem like you’re being a bit too unfocused Vlad.

Delivering high-quality search over the entire Internet, higher quality than Google, is something so complex that even if you were literally the worlds smartest person and all the other Kagi employees were number 2 to number 26, there would still likely be stumbles at least once a year on something.

Because there’s like a million gotchas hidden along the path to just reliably matching Google search quality circa 2010 in the 2024 environment. Let alone delivering a high-quality browser, AI tools, etc., on top.
Okay, but is there something particularly wise about getting an alert that a boarding pass has already been used and presuming it must be a glitch? I would only call that wise if the operator in fact had knowledge about how the system works and could explain why that alert was likely to be a glitch.
Hey Peter, whats your checklist or just intuition for when a company is ready to support H1B visas? Is there some clear point between seed-round/current-YC-batch and public-mega-corp?
An interesting side effect of clipping was essentially the discovery of Gresham's Law. The Bad Money drives out good money. While essentially understood/internalized by the merchant class plebiscite(heh) for thousands of years, wasn't formalized until the mid 1800s.

For clipping it means that when new coinage is minted that money is typically horded and the clipped coins are kept in circulation because they are deemed less valuable then their nominal value (the initial weight of the coin).

Why would someone use something more valuable in an exchange when the thing that's less valuable will suffice?

Gresham's Law would end up plaguing monarchy's and various governments for millenia and still to this day really.

We vastly under appreciate the very basic technology used to solve problems that existed for pretty much the entire world for thousands of years.
As an American, I find the British truly tiring when it comes to this topic. To be clear it’s not all Brits. If you notice it’s always a small group of whiners complaining.

As long as they insist on spelling everything the French way, I can’t take anything they say about the language seriously.

I do find it riotously funny when British people do an American accent.
Is it possible the entire country is slowly coming out of a strange psychological haze that has plagued the country for the last few years? This period I think will forever be studied and recognized as a moment in time where the country just lost all rational thought and devolved into a strange collective brain fog.
Both are very strong platforms. Even Java is great, though not to my personal tastes. We're in a golden age of frameworks and middleware.
People have different brain chemistries.

The people snorting it to get high are not the same people taking a prescribed dose and going back to sleep (a common ADHD experience).

Many/most folks with ADHD end up having issues skipping doses.

One friend (into recreation drugs) took 40mg of Adderall and was wired for a day and a half.

Another (prescribed) took 80mg of Adderall and calmed down enough to take a nap.

There is no one single human wiring.
My disappointment was inconsolable and my day ruined :(
It's some combo of the latter. It's been a few years, but the last time I went through Heathrow, my face was scanned at passport control (arriving from US) and then again at boarding (connection to Glasgow). The two photos didn't match enough and I was asked to stand aside while the gate agent figured out how to proceed (pull out passport for review).

[at least that's my recollection of what happened]
this shouldn't come as any surprise, these kind of techniques have been used in law enforcement at a HUMINT level for many years. We've applied data science and high level computation to create better results...I don't take sides in this conflict, when both sides sees the other as the embodiment of evil by default killing them is doing essential good. the conflict is inevitable and will never end so long as both sides think this way. The truly sad part is how close they were to a real peace before Oct 7th.
I would if you said your goal was 1M and you made 999,999
I agree with you about the reality! It's just that when Covid disrupted SAT/ACT testing, the folks who wanted to abolish them for admissions anyway for other reasons, saw a once-in-a-lifetime chance.
Monkey Management
Oh, Kermit wasn't just on The Muppet Show; he was on Sesame Street too, with dozens of local language adaptations. Though it's not always popular in other countries as it is in the USA, it has been a worldwide phenomenon for decades. It puts Kermit is in the same league as Mickey Mouse. I wouldn't be surprised if the majority of people worldwide recognize him, certainly a large majority in the west.
Release Rust Crates from CI with a Release PR
do you have your setup documented online somewhere public?
This isn't too big of a deal since at least around here, appliances tend to be wired with screw terminals. So, in a lot of cases there actually is a separate place to measure hot and neutral without any terrible hacks. (Not sure if that applies to my dryer, though: I should check.)
And my shoes are made of gold
Thanks for your comment, very interesting.
About your last paragraph :
Do you know why NIST refuses hybridization, when European agencies imposes it ?
What is the political behind it ?
So is a TI-89.
I use typescript because every single service that exists releases a first-party typescript or python library. I don't use python because the type system is just not nearly as well supported as typescript. The major problem I have with typescript is that the tooling is terrible but python has the same exact problem. For example, the entire node esm / commonjs disaster makes configuring projects extremely painful. Then throw in frameworks like Next.js that have their own custom workarounds to these problems and it's even more fragmented.

I would only use something like Golang or Rust in a self contained service where it solves a single specific problem and my primary apis would be in typescript.
Most do, but basements and garages are a common location for dryers, both are usually out of the way enough that it's very difficult to hear the sound in the living quarters.
the iD editor https://wiki.openstreetmap.org/wiki/ID
At what point should I make a legal entity for my business?

I’m working on a niche tool and have some interesting and I’m just starting to bring on the first users.

At what point should I incorporate?
> How do you put the files in it if it's read-only?

The same way we [used to] use specialized software tools to assemble an ISO 9660 image with our data, and then burn that image to a [single-session] write-once optical disk like CD-R.
Well, except one country every other is using it?
It may be both.

You could possibly just use network namespaces.

While I am too familiar with it to suggest effort required, looking at the Openstack project and how they provision tenant networks may help.

It is just python with a three tier model with a message bus. But how they interface with libvirt may help if the namespace abstraction support for the 'ip' command is too clunky for you.

It doesn't give you independent stacks and openvswitch will let you build almost anything you would need.
You... clearly haven't tracked the cost of solar panels. Learning curves are a thing https://ourworldindata.org/learning-curve
I know you're not asking about the personality behind the skills, but I'd sooner take a JS dev than a .NET one (even (and maybe especially) that Core runs on Linux), I'd even switch the entire stack to avoid having to deal with Windows talent. The ClickOps mentality in Microsoft-based ecosystems is astounding.
Zephyr 141B, a Mixtral 8x22B fine-tune, is now available in Hugging Chat
Zephyr 141B is a Mixtral 8x22B fine-tune. Here are some interesting details

- Base model: Mixtral 8x22B, 8 experts, 141B total params, 35B activated params

- Fine-tuned with ORPO, a new alignment algorithm with no SFT step (hence much faster than DPO/PPO)

- Trained with 7K open data instances -> high-quality, synthetic, multi-turn

- Apache 2

Everything is open:

- Final Model: https://huggingface.co/HuggingFaceH4/zephyr-orpo-141b-A35b-v...

- Base Model: https://huggingface.co/mistral-community/Mixtral-8x22B-v0.1

- Fine-tune data: https://huggingface.co/datasets/argilla/distilabel-capybara-...

- Recipe/code to train the model: https://huggingface.co/datasets/argilla/distilabel-capybara-...

- Open-source inference engine: https://github.com/huggingface/text-generation-inference

- Open-source UI code https://github.com/huggingface/chat-ui

Have fun!
They launched a few years later with a technically superior platform.
But are they broken because of renovate? Or just the underlying dependency updates?
> H1-B visas are non-immigrant visas so anybody coming in on one knows it's finite then they need to leave after the fact (assuming they don't change status).

So what? I don't see how that's relevant to the question, unless you're being unreasonably legalistic.

Also, I've known only one person in my career who came to the US on temporary visa who intended to leave. Everyone else's ultimate goal was a green card.
Seems like a signal that they see the trade consequences of invading Taiwan, and they're going to put things in motion such that they'll be prepared to be able to handle them.
Nice example of a fencepost error.
It's true the system may have glitched in the past, but IMO the bigger issue is that the system provides no troubleshooting steps. What if it snapped a photo of every passenger as it scanned their ticket. Then on a duplicate scan it could display the photo of the passenger who already scanned the ticket. That could help the gate agent to actually troubleshoot the warning and figure out what happened.