skysight-inc/HackerNews huggingface dataset:
> While Singapore is a surprisingly martial country, if they get into a war with anyone in SEA they're running a very real risk of being destroyed. Indonesia alone has 5x their GDP and 20x their population.

Wikipedia gives an estimate of $1.47 trillion for Indonesia's GDP in 2024. The estimate for Singapore is $525.228 billion. The factor seems to be less than 3x. Where do you get 5x from? Are you going by PPP or so?

> In Singapore's situation, they can probably invest assuming that they are not in a military conflict with anyone. If they get into a war with anyone who can cut that cable they will be returning to the stone age anyway. If Indonesia objects to them they will go, if someone with the power to coerce Indonesia objects to them they're in deep trouble.

You can't make those assumptions, if you don't want to be bullied. Singapore doesn't have that cable right now and we ain't in the stone age. That situation ain't no different from having a cable, but it being cut.
Have you seen https://superagent.sh/ ? It's an interesting one and not terrible in the test cases I tried. (Requires pretty specific descriptions for the fields though)
Yep, if this feature was limited to the window in focus, then the API could make sense. The way it is now, I know all savvy users will just block it, and many of the non savvy ones will too... Complete waste of time to dedicate developer resources too over e.g. in-line toasts.
Space based solar might not take a form where we just put mirrors in space to boost the output of existing terrestrial solar cells. The benefit is that the receivers on the ground can receive energy directly from the sun when the sun is up, and the space mirrors can be used to provide light to areas that are completely dark in winter.

I don’t think microwave beaming is ever viable

Most fusion concepts are thermal power plants. Those have inherent downsides that have nothing to do with the nuclear energy providing the heat for the steam turbines. So they will never fully replace renewables. Helion’s concept might work. But that remains to be seen.
SharePoint downloading unnecessary "preload" file
When opening a SharePoint folder in Safari on MacOS, an empty file named "preload" is downloaded without any user interaction. Currently Microsoft is not reacting any more (as usual) and blames it to be an issue "at tenant level" (as usual) - which it isn't.

While this is weird (love this word...) this is also unacceptable and potentially dangerous behaviour.

Has anyone experienced the same issue and found workaround?
Yep, that's exactly what I mean by "coding" as opposed to "engineering".
Singapore has plenty of room left, and we are making more via land reclamation. The question is just one of opportunity costs: what else could you do with the land?
> Shopping calculations for them need not be about economic cost benefit analysis.

But there's also no good reason not to apply cost/benefit analysis.

> Singapore with a native population of about 4 million has reserves of about $1 trillion. They can afford to splurge to claim green/net-zero status.

Of all numbers to bring up here, why did you pick foreign exchange reserves? GDP or wealth might be more relevant?
But the piston engine design really have to be slower?

For example, some WWII fighter aircraft could be quite fast, easily comparable to the claimed top speed of Tomahawk missile that can be found on Wikipedia and since you'd have less drag I don't think you'd need a huge piston engine.

I'm guessing you'd want something like 500 kW out of 200 kg of engine, but that's similar to the claimed performance of the apparently not-quite production ready Zoche Aero-Diesel.
In this case it doesn't matter much I think. I suppose the api existed for ages.

But I prefer openbsd or man7 pages, sure.
The real question here is who puts their API keys on a slack server ?
> As far as the SNES is concerned, PAL consoles simply letterbox the video and run the game 16.6% slower.

Oh. That should make uncompensated PAL games easier, right? 17% more time to time e.g. jumps in Mario is alot.
Prompt + Lora? Train an adapter?
I straight up lie and make something up for these "tell me about a time..." type questions

Unless it was literally a week ago, I work on too many things to ever remember anything, and for me it's just a fact of the work that I'll be fixing bugs or whatever the questions asks. Nothing stands out, because I don't consider any of them to be some sort of special occasion worth keeping track of
The problem I find with semantic search is first I have to read and understand somebody elses definitions before I can search within the confines of the ontology.

The problem I have with ML guided search is the ML takes web average view of what I mean, which sometimes I need to understand and then try and work around if that's wrong. It can become impossible to find stuff off the beaten track.

The nice thing about keyword and exact text searching with fast iteration is it's my mental model that is driving the results. However if it's an area I don't know much about there is a chicken and egg problem of knowing which words to use.
This depends on what you're testing. If you're collapsing threads/processes into a single thread you're making decisions about the order of execution anyway so you're not going to catch errors introduced around unexpected preemption or inter-core process/thread timing issues.

If you're not looking for that then you can build your software/system to have known sync-points where you can allow a given process to stop/wait and allow other processing to occur. This can then be in-process/out of process/remote.

As you say, this ends up being a scheduler with which you have to employ knowledge about the execution/communication channels in order to coordinate correctly.
It's a trade-off between the capital expense and transmission losses of a longer cable, and having to deal with Indonesia more than absolutely necessary.
This did not seem as bad as it’s played in the comments - it’s somewhat akin to pg’s breakout essay (pg is much much easier to read) but it’s the same thing - set up a company, make the world better.
I like the attitude (even if the text formatting could be improved but house style is house style)
Is there a design document or some other resource that highlights prior art / previous attempts, and why this one is different?
https://arxiv.org/pdf/2311.04934
Undo's (and especially re-do) are quite hard and resource intensive to code, especially for web apps that can be simultaneously accessed via multiple devices.

E.g. you can take action A on your laptop, followed by action B on your phone. Undoing action A may not be easily possible if it was followed by action B.

To make that work properly you need to activel sync states between all the users devices using e.g. websocket or what-have-you. Handling edge cases becomes quite the nightmare, e.g. phone has poor connectivity.

Only the big guys would have budget to do these sort of things (And make them work well).
Well, to be clear "rollout from a dev machine" meant just that the rollout controller ran locally, the actual software being released was built by a release pipeline, placed into signed packages and so on. So it was all auditable. The people doing the rollouts were those who had production administrator access anyway for on-call troubleshooting and debugging and permissions were enforced, so there was no security impact. And the same process was used for flag flips so just putting everything behind flags didn't make much difference.

It doesn't sound like what's done now is a whole lot different tbh.
> I know at least 10 languages

This statement would have been a huge red flag for me, if I had interviewed you. Don't get me wrong, you could use and program in 10 languages. Maybe you can be proficient in many at different times of your life. But know them at once? No.
Or in one sentence because communism can't work for long periods
The comments in this thread convinced me to uninstall oh-my-posh.
Surely solar panels are affordable with typical Australian household incomes? And much more effective even in southern Tasmania at 45°S as compared to southern Finland at 60°N (where they're apparently cost-effective since they're building solar farms).

If they feel their electricity provider is screwing with them, why not make their own? Probably even with batteries it would pay for itself given the ROI I'd guess panels have there
I did a little back of the envelope calculation in a discussion here last week:

https://news.ycombinator.com/item?id=41220499

If Australia refined _all_ of the 40,000kt of Bauxite we export each year into "frozen electricity" Aluminium, that'd only require about 600GWh, or about 4% of the 1.7GW 24x7, or 15,000GWh per year this would send to Singapore.

Large datacenter are in the 100MW sort of range, so only single digit GWh per year.

Australia generates a few hundred TWh per year. 272 TWh in 2021/22 - or 272,000GWh, around 20 times what this project will export to Singapore.

Data centers and Aluminium and Iron smelters are big electricity consumers. But they barely even move the needle compared to cities with millions of households.
I think llms are useful when you're trying to write something in a language you don't know well; then it speeds up the part where you need to check for simple idiosyncrasies.

If you don't know the language at all it's dangerous because you may not understand the proposed program (and of course if you're an expert you don't need it at all).

But llms won't help to find solutions to a general, still unspecified problem.
As far as Australia is concerned, this is a private investment project.

And it does not prevent any other private investment projects to generate and sell green electricity to Australians. Australia isn't exactly short of sunshine, and the Chinese will happily sell you all the solar panels that you could ever want.
I’m really not sure of your point.

If I have a huge market opportunity and I can grow the business by spending the cash flow, I should do that instead of distributing that cash flow as profits. That opportunity will most likely not persist.

What you are proposing is that businesses should pay taxes on their income irrespective of expenses which is just a good way to break a lot of perfectly good businesses, and reduce the ability for businesses to capture new markets.

There are a number of ways where tax law could better capture the participation of large businesses, but this tack you’re on is not one of them.

One cannot avoid using technically correct terms (“jargon”) when discussing this as the categories of capital are critical to both the essential function of a business and the point you’re trying to make.
Anaconda is enforcing their commercial terms of service
That definitely seems to be getting less reliable these days. A number of times I've found it refusing to work, or redirecting me to the primary UI arbitrarily, a few months ago there was a time when you couldn't login via that UI (though logging in on main and going back worked for me).

These instances seem to be temporary bugs, but they show that it isn't getting any love (why would it? they only maintain it at all under sufferance) so at some point it'll no doubt be cut off as a cost cutting exercise during a time when ad revenue is low.
> The docs supplied by Google are quite good!

They are okayish in my book.

Personally, I prefer using the MDN docs [0][1] for web extensions as I am using mozilla's polyfill library [2] anyway. These contain more practical examples and less abstract descriptions at times, including a very thorough getting started guide [3] going over everything including various concepts.

The point remains the same though, the basics aren't all that difficult and while Plasmo does seem to make some aspects easier it also seems like overkill in other areas in regard to abstraction.

[0] https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/Web...

[1] https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/Web...

[2] https://github.com/mozilla/webextension-polyfill

[3] https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/Web...
What's the cost of the driver vs fuel/maintenance/capital cost of bus?
You point out a real problem but it does not feel like an unsurmountable and terminal one. By that argument we would never have a human language unless everybody spoke the same language. Turns out once you have well developed languages (and you do, because they are useful even when not universal) you can translate between them. Not perfectly, but generally good enough.

Developing such linking tools between ontologies would be worthwhile if there are multiple ontologies covering the same domain, provided they are actually used (i.e., there are large datasets for each). Alas, instead of a bottom-up, organic approach people try to solve this with top-down, formal (upper-level) ontologies [1] and Leibnizian dreams of an underlying universality [2], which only adds to the cognitive load.

[1] https://en.wikipedia.org/wiki/Formal_ontology

[2] https://en.wikipedia.org/wiki/Characteristica_universalis
Ask HN: Most effective and "non-invasive" morning wake up alarm method?
Seriously folks. Those with evening circadian rhythms will understand (and those without might appreciate) the question. Throwing this out there for your help on this: Is there an effective yet least jarring alternative to early morning alarms than the traditional alarm clock? Are we doomed to starting the day with the equivalent of a gunshot?

Interested in any and all alternatives that might exist, even in learning about morning routines that work for you
That is true for advanced techniques, but for simple compression you can simply throw away high frequency coefficients. The simplicity of dct makes it so impressive.
I once came across a similar bug in a popular JS lib, only in Russian timezones, only in some browsers, only on Windows. (It happened due to Russia changing their timezones).

https://github.com/yui/yui2/pull/15
> There is a great conflict between two of the most pressing problems of our time: poverty and climate change.

This wasn't true in 2021 and has been getting less true over time.

Not one mention of Solar or Wind in the whole article.
I recall reading Singapores energy rules say this cable can't supply more then 15% of Singapore's requirements, presumably to protect against that.
> but otoh you could likely drive a big truck into the right power poles and cause a similar sized outage

I get your comparison and the following is probably obvious to most people, but I feel like it really needs to be said: this requires being there, having a truck and the willingness to risk almost certain jail time, whereas taking down all SolarEdge installations on the planet could probably be done by an anonymous teenager in a foreign country with nothing but a computer and TOR client.

(I mention SolarEdge because I just had to deal with one of their systems and it pissed me off, I don't actually know of any vulns)
What would those downsides be?
Why not use this method to avoid to search that record directly?
I code the EF core with MVC project in this tutorial "https://learn.microsoft.com/en-us/aspnet/core/data/ef-mvc/crud? View=aspnetcore-8.0#the-create-and-attach-approach-to-httppost-delete"

The example code has a search for the delete one to DB.
And this method has not searching steps, I can't agree with this way more.
So why not use the best way with no searching step s directly in learning article?
Yes! I love these kinds of interview questions. For some reason these feel more like a "normal" pair programming (/ code review) session, and I totally forget I'm in an interview.

Still a tiny bit stressing at the beginning while I read the code for the first time and try to understand it because I worry that I might be taking longer than the interviewer expects, but if I'm thinking out loud then that helps both of us. After I get reasonable context I can then forget about the interview and just focus on the normal pair programming / code review.
> I'm saying that "pattern" need not be restricted to the narrow sense used in the famous "Gang of Four" book

I understood that was exactly what you were saying! Sorry, I'd had a drink.
Great idea, that's exactly what I like to do as well.

Because many people were interested in some actual code, here is an example that we used for Java:

---

public class UserDao {

private Provider<Session> sessionProvider;

public UserDao() {
this.sessionProvider = new DbSessionProvider();
}

public boolean saveUser(User user, ApiConfig config) {
try {
Session session = sessionProvider.get();
session.save(user);
System.out.println("User saved!");
return true;
} catch (DbException e) {
EmailUtil.sendEmail(config.getTechnicalSupportEmail(), e);
return false;
}
}

}

---

"Solution": We always ask the candidate "What would you change about this code?" or something similar. We expect the candidate to come up with some selection of:
- Database sessions should come an injected provider.
- Configuration should probably be injected as well and not passed as a method parameter.
- Booleans are not canonical Java as return value.
- Don't write to stdout but to a logger.
- Exception handling should probably happen outside the DAO.
- Don't use static methods for sending Emails without good reason. Non-static methods are easier to test.

Finding these things is as important as being able to talk about them and give background on advantages / disadvantages of doing things different ways. With good candidates one can talk easily half an hour just about this example and adjacent topics (e.g. error handling).

---

Edit: Formatting

Edit 2: added "Solution"
Well at this point for anybody who cares about adblocking Firefox is the only choice, unfortunately.
is there no documentation about that uc and LCD controller? I'd assume they've been trained on every html, pdf, and video tutorial out there, as well as the pdfs of all of those chip's datasheets, and example microcontroller C code out there in the form of vendor documentation. sure that's maybe less than the amount of html web app tutorials but if we assume it's been fed all of the vendor's documentation about an uc and their library documentation as well, the ones it would fail on are undocumented chips out of china that have no data sheets (which make for a very fun project to reverse engineer, mind you), or something very new. Even without that though, it's still able to dot product (not going to call it "reasoning") its way to at least hallucinate code to talk to an LCD controller chip via SPI for a uc is never even heard of, so I can't agree with "even begin to reason this out".
Let's Encrypt is very good but it's not exactly a web app, semantic-web or otherwise.
This is canonical Java. Commit and deploy!
Well if one has worked there for 10 years or so, a year's salary in one go certainly helps a lot with a downpayment on a house!

Where I live in Spain we have to downpay 30% and a mortgage would generally be granted to about 3x the annual salary. So to get a third of that would be quite significant.
Even with your description of a gradee A webapp that uses local state management effectively + shows syncing + queues with stacking + connectivity detection and exponential retries etc. I still feel like toasts can be useful to indicate to the user when are not in the "normal" state. I feel like especially mobile apps fail horribly at this, it is very normal to walk around a city and end up in dead spots. Having a clear indication from the device that we are longer in Kansas can be very useful. IMO toasts that plop up for successfull actions are often quite useless and redundant.
You are stealing and laundering my open source code and take the credit, that is the problem.

Fortunately, as pdimitar pointed out, so far it is an ineffective scam that mostly produces LoC.
Hell yeah! So cool to see Sun Cable progressing.

Australia is obscenely well-positioned to be a solar energy powerhouse. So much open and uninhabited land, geologically stable and uniquely suited climate with a ton of sun all year round.

Could have done it sooner with more political will, etc, etc. But I'm so over the whole renewables and climate change debate (still very much alive here sadly). We're way beyond the time for talking and into the time for action, and seeing this project pull us into a more sustainable world is awesome.
https://en.wikipedia.org/wiki/Private_prison#United_States:

> In 2018, 8.41% of prisoners in the United States were housed in private prisons

> Jails will make a profit

hard to imagine that's the biggest issue. it really does seem like a cultural issue where Americans don't have sympathy or empathy for "criminals".
try pressing the the Caps Lock key
Is there a Spotify integration widget, and/or audio visualizer? Rainmeter has it, but it's a bit tricky to get to work, and may mess up sleep/hibernation modes.
I agree that it's stupid not to take the game-changer of solar and wind (and batteries) into account.

Even though I believe that nuclear no longer has a role in energy (fuel sources, disposal, concentration of risk into few small units), the statement is still correct and it has another dimension:

There is a conflict between poverty, climate change, gravity of climate change harms and the speed at which we can reduce climate change impacts.

The problem is that there is a shrinking window to limit harm, and the harms will disproportionally affect poor nations which at the same time lack resources to mitigate. I'd definitely call that a gordian knot.
Monitoring energy usage with eBPF at process level granularity
> Land will never become the limiting factor on earth, at least not for solar power.

What makes you think so? There's always more you can do with more energy. 'Never' is a long time. And there are opportunity costs from other uses you could put land on earth to.

You are right that it will be a while before remote corners on earth become more expensive than space for solar power generation. But not 'never'.

(Btw, if you think really big, the limit for how much power we can use on earth is given by how much waste heat we can radiate into space.

At some point, you don't want to keep beaming down energy from space into earth, even if you somehow could convert 100% of the received power into electricity with no losses: because at the end all the electrical power used will still turn into heat. Heat that we will have to get rid of.

At that point in time, you might want to use the electricity directly in space, eg to run data centres there, and just beam the results of the computations down.)

> Assuming the worst-case predictions of climate change come true, there will be more than enough desert capacity along the equatorial areas to provide power for the rest.

While climate change might become unpleasant, I have no clue what it has to do with any of this? The surface of the earth will stay roughly constant and so will its orbit, and the sun will shine regardless of what happens on earth. (And I assume that if you wanted to badly enough, you could easily float solar panels on top of the ocean; at least easier than blasting them into space.)
Just did some playing around and workspace support has definitely evolved from Rye [0] but there isn't yet (afaict) any mechanism that supports building workspace packages with their "internal" dependencies.

[1] https://docs.astral.sh/uv/concepts/workspaces/
Why would you want to do orbital repairs? For the amount of effort required, you'd just send up a replacement.
Ask HN: What is the best thing that you've automated?
Have you automated something that used to take a lot of time and now you're glad you can save a lot of time due to "this" automation?
It’s deeper than that. You will need to investigate the heroes journey a bit alongside film semiotics to refine this intuitive view.

People often emerge from apathy with sadness. Sadness to anger. Hollywood dramatizes the heroes journey as have most epics prior.
eBPF – Everything You Need to Know in 5 Minutes [video]