skysight-inc/HackerNews huggingface dataset:
By definition, no. JSX is syntax sugar to some underlying function that transforms a JSX element (made by tagName, props, children) into something else. That could be a string, but usually it produces an abstract node representation, an object that collects those three parts.
> No, the average person barely cares for quality, vs cost. The average person will buy the cheapest thing possible, even if it means it lasts a year instead of 10, at a 20% discount.

Not on the car market, or there wouldn't be such a proliferation of SUVs and pickups which are a useless waste for 90%+ of their users, and there would be few luxury/mid-tier brands - everyone would be driving around in the smallest Dacias and Skodas.

Cars are a status symbol, and many people would prefer to pay more for the same car with a different badge indicating a higher status - case in point, the VW Group has a big range of brands, with cars being pretty much identical outside of small changes in visual design (interior and exterior), and VW (mid-tier) and Audi(higher-tier) outsell the "cheap" Skoda and SEAT - https://www.statista.com/statistics/275868/sales-figures-for....
Your Work Is Trash
Ask HN: How do you self-host WireGuard and expose services to public internet?
I'm self hosting wireguard and have several services inside my network I want to expose to the outside world.

My needs are that I would like it to be:

- low maintenance: I can set it and forget it, maybe it even reboots itself? Maybe it can tell me when the back-end service is down.
- CLI and browser-GUI available. I like to use tools that have a simple configuration I can do with an SSH client on my phone. And, I like to be able to scan quickly a list of services and see what's happening and I feel like you can see that best in a browser window.
- prefer to self-host, but if there are good free tiers, I'm interested in that.
- consistent DNS, so I can easily put a CNAME in front of it if I need to.
- I'm happy to run a low cost VM on vultr as my egress point if I need an extra machine.
- Secure: obviously I would like this to be so simple and easy to setup that I avoid accidentally exposing the rest of my wireguard network.

Generally these are low traffic, so I don't need load balancing, but I'm interested in hearing if there are easy options.

For the record, I love tailscale and what they are doing, but I really prefer to self-host. I've not played with funnel, but this looks really powerful and perhaps the sheer ease of use of that pushes me to put a few machines on tailscale when I need this.

I've been playing with headscale and netmaker. I don't immediately see that either of these provide this feature, am I wrong?
If the middle seats on the hybrid were stow and go like the rear ones I’d already own one of these. Sadly that’s where the batteries are.

I like the simplicity of an all electric drivetrain but I’m a single car household so range anxiety and charger time/availability is a real consideration still.
I'd rather avoid the question about ethics in this case. Is it ethical to accept payment for teaching? Is it ethical to charge as much for as (some of) US univerities do? Is it ethical to devise a test in such a way that a number of students will certainly fail? Is it ethical to prevent students from cheating? You can bend the word just as long until it means something like "might it cause any harm at all?"

But if you ask yourself: why do the students take this course, you can think the reason is to learn something. If they want a piece of paper that proves that, they can't cheat. If you --cynically-- assume that students only take the course to get their diploma with as little effort as possible, then cheating is allowed.

As long as schools want to teach something, they should stay away from online or take-home exams and essays. If they want something else (and usually the motivator here is money), the value of their education will drop.
When it explodes, Betelgeuse is expected to be brighter than the full moon. Gamma ray bursts appear to follow the axis of rotation of the star, and since that axis does not point directly at Earth (it is off by about 20 degrees), that's not a threat. So it will be exciting, scary and safe - like a rollercoaster that everyone on Earth gets to ride at the same time.
Yet another incident of Greenspun’s Tenth Rule.

Lisp macros make adding HTML syntax easy. You won’t find anyone using string templates in that language because a handful of macros means you can just program like it’s just lisp.

Strings such primarily because they don’t establish regularity. If you don’t understand everything fully and follow their patterns exactly, it’s easy to accidentally lose your pseudo-macro hygiene and output garbage.

JSX was a revelation simply because it was a “macro” (DSL) that ECMA had already designed an entire spec around (E4X) and thoroughly baked into the language. Like with Lisp, you could just use your normal coding patterns to interface.

A custom HTML macro baked into the syntax makes sense in a language where almost everyone using it is going to need HTML. It would make far less sense to dedicate all that syntax space in a more general purpose language.

And in JS, even with all that design time spent on E4X, you are still back to doing string interpolation the second you step away from that specific syntax (or you’re forced to express everything as HTML even if it’s not a good fit).

The world would be a better place if JS had been scheme and people had been forced to learn a lisp.
Worst case scenario they'll be farming on Greenland. Again.
> in his online Introduction to Ethics course cheating on a take-home final exam.

Sounds funny that an ethics class gets heavy cheating. But it might be a required or elective course that students don't take seriously, or it might be disproportionately Philosophy majors (which major might get more than their share of frosh starting to wield off-the-wall ethical rationalizations).
This extension only requests access to HN's known domains.

If one would try to request to a non white-listed domain it would trigger Access-Control-Allow-Origin error.

Also I think v3 makes it quite hard to use remote loaded code.

Any attempt to be malicious would probably be caught by store's review process eventually.
Lists, technically, but nestable lists are indeed basically trees.
> What sailors will admit they do but not tell anyone: Dump a bit of diesel or petrol in the water around the boat to scare away the orcas

Pumping bilge water into the sea makes them go away real quick. It's obviously illegal, but frequently done.
I don't know, it's OK, but I don't really think conditional ternary or short-circuited logical operators are better than dedicated conditional blocks for a templating language. Or array methods over dedicated loop constructs.

It also has some weird gotchas (have to use className when you mean class).
‘We better figure it out': The politics trap that could slow a national AI law
It's hard to argue with someone who calls running Wikipedia "maintaining a website". Either you have never worked in the industry or you're just being intellectually dishonest. It will take you 5 minutes to find videos of the CEO of Wikipedia talking to congressional committees about just a small selection of stuff she was dealing with.

And for doing that she was paid what a staff software engineer makes for taking 6 months to change the shade of blue of a button in gmail.
The AI would never say hello, but if you say hello to it, it will say hello back. Is that also a hack? Aren’t you just describing everything about LLM behavior generally not only something specific about goals/tasks? In that case the nature of the thing is less interesting than the results we're able to find from it and I wouldn't worry about this kind of purity test.
67M Airbags Recalled (GM, Ford, VW, BMW etc.)
> Is that at all relevant for the North American market, where no one would be using three phase power to charge their car?

While 240V 3-phase isn't common in the US homes I'd imagine that it would be super handy for places like shopping malls or parking garages where you want to have lots of Level 2 chargers.

> Affordability is objective, NACS is simply cheaper to make. Less materials go into it, and that's a win.

I agree with you there, it looks much better and is slightly easier to handle. I doubt the material difference is much, it's just a little plastic. The amount of adapters likely makes up the difference.

> you don't have to remove a cover over the DC plugs

This isn't really a thing. These hard plastic covers is something people buy thinking it will protect them from being electrocuted. If they had known how the chargers work they'd likely be less worried. Except in France, where they've made CCS Type 3, which is about as French of an idea as you get.

> So what, then, is an objective argument FOR using CCS1 over NACS? I really don't see one.

The main issue here is that US decided to go with CCS Type 1, when it was clear back in 2014 that CCS Type 2 would be a much better and more future proof choice. It's something that should have been solved with regulation a long time ago. And now you're stuck with CCS Type 1 and NACS for the unforeseeable future. It's kinda funny, because in Europe Tesla went from only NACS (V1 superchargers) to NACS and CCS2 (V2 and V3 superchargers) to only CCS2 (V4 superchargers).
Although if the reviewed party has any significant ability to influence what the review system shows - which appears to be the case here - then the whole thing is compromised so you can't really trust anything about it at all. The most helpful negative reviews might no longer be there and only ones that look like someone being unreasonable remain for example.
Isn't this comparable to any other situation where you reference something outside a project, even in C with libraries?

(I've never used HTMX or even looked beyond this page for it, so maybe what I'm about to say is logically wrong.)

If I said that for an HTMX project you must define all components you use within the project, wouldn't this hx-target example be very easy to identify quickly in the project? You simply grep '#notification-bar' and see where it lives in the project...

I think the goto comparison is somewhat related, because it's about reasoning about control flow (or rather, how it makes it unreasonable) - but isn't this example pretty easy to reason about when you consider you're one search away from finding the notification-bar in the project? You're still creating a tree of components and interactions, and in order for that to happen, you must be able to reference them with confidence in some way.

I still prefer the React way (tree structured components) regardless, but HTMX does seem interesting from a DevX point of view. I think it'll be forgotten about in about 5 years.
I'm not whoring my car out to Uber to let people make a mess in my car when I'm not driving it, sorry. So to me this means nothing. I'll still be in it as much as I would otherwise. Maybe a few less trips driving my wife to errands (as she doesn't feel comfortable driving, despite having a license), but otherwise it shouldn't make much difference.

The only thing I can think of is maybe it would make some trips not need my presence at all. Like I could see placing a Wal-mart grocery order, and sending my car to go to Wal-mart without me in it, they load it up, and then it comes back, and I can unload it.

Which is nice, but I'm not paying 5x the already expensive car prices in order to save a few minutes here and there.
Wrong moment in time, XML was already in decline when Scala was gaining traction and is very little used nowadays for new development.
Compilation of HTML. Now this is something.
"This problem is unsolvable" or "Approaches X, Y and Z are not solutions to this problem" are perfectly valid and useful contributions to science and society in general.

Or in the words of Thomas Edison: “I have not failed. I've just found 10,000 ways that won't work.”

The attainability of a solution is the product of a well-defined problem. So focus less on the "have I solved this" and focus more on the "have I made useful progress in defining the problem".
Maybe I worded that a bit strongly. As the reasons for me having to read it still irk me. But the root is how to draw people in by being nicer. It is a form of manipulation and not true to who you are. Now given that there is nothing wrong with improving yourself to be less of a jerk. Those books do have that sort of advice. But the advice is given with the intention of manipulation. I may be being harsh on them. But that was my takeaway. Decent advice but bad intentions.
He did write about using an airliner as a missile years before it happened.
I'm not proposing anything WRT the depth or scope of the material.

If the premise of the material is that phrases like "dot product" can be used freely or with minimal explanation then images like the "place the apple quiz" make even less sense. For that person, not much more needs to be said than "We want to represent words as vectors so we can do linear algebra with them. If the representations preserve structure we care about then here are some cool things that happen: (examples of good and bad embeddings)."

Then go deep, having given them an adequate advanced organizer.
It's a pity that the link to the original video is decrepitly tiny. Original video: https://www.youtube.com/watch?v=GFa77G9HTj0
Individuals should join or form diverse groups to build a resilient empathetic community.

There’s nothing you can do strictly by yourself in my estimation that will help over the long term.

The only way out is through as a team
Great, now we only need activation codes for WinRar free trial :p
There is no issue with producing HTML with string templates.
> I decided to ‘poison the well’ by uploading [to Quizlet] a copy of my final with wrong answers. (The final is 70-80 questions, all multiple choice, 5 options each.) Most of these answers were not just wrong, but obviously wrong to anyone who had paid attention in class. My thinking was that anyone who gave a sufficient number of those same answers would be exposing themselves, not only as someone who cheated by looking up the final online, but who didn’t even pay enough attention in class to notice how wrong the answers were.

I think that’s reasonable. I would even consider expelling students who did this; specially in college, specially in an ethics course.
As far as I can tell, all of these are signups, some even paid signups except for chatgpt.

Moreover, chatgpt is a service offered by - while far from a household name - an established player. OpenAI was founded in 2015. They got their 1 million users in 2022, after 7 years, not 5 days.

And lastly, there’s over a decade between chatgpt and the newest player on that list
Why DWiki doesn't have web page editing
To some extent yes. By studying the exams, you're learning how to answer the test questions instead of actually understanding the material.

And what is definitely cheating is to search for past exams while you have the current exam in hand and start copying down answers.
Different peoples do different things.
It can be argued that constricting HTML using string manipulation is the right way, because HTML is defined in terms of strings.
Alternatively, HTML standart leaves generation as an exercise to the reader.
We need to normalize tipping a flat rate.

Forget percentages and tip $2 (or whatever) per hour per diner no matter where you are.
Hanlon’s razor or ignornace is more likely than that. This message comes with the default framework and someone didn’t know they should check (and we should fault the framework for not throwing a build exception for missing noscript rather than inserting a useless one).

You can sum up what the site is and what’s missing in 1–3 sentences and have a massively better noscript experience, but this is the sort of thing that needs to be in project requirements. If you add these to your requirements to a project, you'll ultimately find the path of least resistance was to choose a framework/mindset that didn’t involve at unnecessary virtual DOM no 95% of the time render static (not dynamic) content. Adding a message to enable JS to add to the entropy gives users a simple, actionable message.
Agreed. I hope there is competition so there's not just one person, alone.
https://techcommunity.microsoft.com/t5/microsoft-teams-blog/...

The new version consumes hundreds of megabytes less memory. It consumes as much memory conducting a video call as the old version does when idle.
https://archive.is/PE0AZ
My next-door neighbor (single dad with three kids) has one and it's a goddamn delight. He just got a Tesla to replace it because he took a new job that's outside of the battery-only range of the minivan and his eldest is big enough to sit in front now. Not nearly as nice of a car, but he wants to be all-electric, and was stuck on his commute. Alas.
I think the distinction is that one idea has the page change the mode on its own and the other has the user change the mode.
He says that only one student was at roughly the hundred to one level, so he thought that one might be honest. The rest were at the billion to one level.
> Sounds funny that an ethics class gets heavy cheating.

Good observation - got me thinking. I see lots of suggestions here about requiring ethics training/classes for developers, so it made me wonder-- can ethics be effectively trained into a person predisposed to behave unethically if consequences for the behavior don't exist?

Edited for clarity and moved under the right comment
I'd guess you're being downvoted because you "are just asking" but your real intention is to suggest that there is no connection.

"Just asking" will attract downvotes, sometimes even for honest questions.
Winrar keygens have been around forever
I don't think, in 20 years with HTML, that I've used string interpolation. Why would you when there's a web standard (XSLT) that gives you declarative templates? In my more recent work, I've used LINQ to XML "templates" for this. It's functional vs declarative. The approach works with JSON or XML input. And seeing how Microsoft isn't invested in XSLT, it'll be my approach moving forward.

https://learn.microsoft.com/en-us/dotnet/standard/linq/funct...
this only covers SSDs but I remember this from a previous hackernews thread. It's a very short read.

https://databasearchitects.blogspot.com/2021/06/what-every-p...
New features include:

* Syntax Coloring

* Debugger Integration

The app is now a paid subscription($14/month).
I had a prof that did something like this. It was back in the 80s, so no internet. Instead, because it was a large class, he had to give the mid-terms to different parts of the class. He would make all the tests look similar, but with small differences. If the right wrong answers turned up, he would fail the student. (I hope that makes sense.)

At the end of the semester, he explained what was going on. The course was required for the degree (EE), you had to have a C or above to pass, and it was a bear. He said right out, the course was designed to cull the heard.

A few students were outraged. I'm not surprised by the reaction Merriam got. Speaking for myself, I was indifferent to what he had done, though I didn't speak up. I think he should ask the students that he determined hadn't cheated what they think.
Read, think, and sleep. Problems in this category often need time in your brain to settle and clarify. The process is rewarding, and after you’ve tackled a few such problems (either proving them impossible or actually solving them) you gain confidence. A subset of unsolved or unsolvable problems might become long term projects that you can manage and prioritize (or eventually put aside) over the years.
You can probably have the name back for that problem.

The Stack Overflow XY problem and resulting XY problem problem are different:

1. Someone is assigned to accomplish task Y

2. … within an established project based on facility X.

3. There is a sub-task of Y, say Z, for which X is ill-suited.

4. They come into the group and ask ‘how can I use X to accomplish Z?’

with responses that amount to ‘get a different job.’
Some, but most plant growth is nitrogen limited, not CO2 limited.
Yeah, on a species level fine. On an individual level, I’m sure they had famines back then you wouldn’t want to have been apart of.
Are you trying to teach kids to not cheat? Or are you trying to teach them how to conceptualize, illustrate (if not demonstrate), and structure ethics such that they can make critical and thoughtful deductions or contributions to the field?

Because, if it's the former: great job, Ranger Rick. You definitely used a method that will root out cheaters and give them some (small/limited) incentive not to cheat anymore.

But, if it's the latter, you've failed your students in every respect. It's not even a clean example of the ethics of cheating, because you've tipped the scales in ways that affect multiple variables, instead of just one.

Neither of which is ethical or unethical in the vacuums of consideration that any subject remains neutral in. But if the context is that it's a philosophy class, I would expect the teacher teach me philosophical ethics and let the chaff fall where it may, rather than try to "prove" some nebulous idea of what it means to "know" something, and why one method of being able to 'prove' it is inferior to some other method. Put simply: I'm in this class to learn. If you're giving me the information and then I pass the test, that's your entire responsibility. Whatever third parties are doing - so long as it's not infringing on you - is not relevant. Not to your class and my grades. Sorry you're one of THOSE teachers, but learning isn't a test. It's a lifelong pursuit and you can't force people to pursue what they're A) not interested in or B) deft enough to use digital memory for.
New Docs for Factory_bot
Good point. If only there were a way to mark a section of HTML as "no scripting here". Inside that section all <script> tags would be ignored, all onclick and similar attributes would be ignored, etc.

That said, even if that existed, there'd still probably be some dangers you'd have to be careful to avoid.
OpenAI could roll back to a previous version of their model.

Anyway, I'm not sure if you intended that as a reply to me because it's not relevant.
I use string templates for small hidden services and I have never ever once ran into a problem. So yeah, really no issue. Anyone complaining otherwise is being really picky about subtleties in particular contexts. At large they completely work!
Reminds me of this Onion classic:

"Dolphins Evolve Opposable Thumb" - https://www.theonion.com/dolphins-evolve-opposable-thumbs-18...
> Can't say that I have.

Then I recommend you spend more time around people. Grown men have been convicted of throwing acid in an ex-girlfriend's face because "if I can't have you, no-one can."

> Now is there someone threatening another country with nukes at the moment but not using them because he knows that'd be useless anyway and would it prove my point ?

It doesn't prove your point because no country today is facing imminent extinction. Rationality changes when desperation comes into play.
Simpler version of example 1:

https://jsfiddle.net/w6nrek81/

No need to bring up multiple examples. We just need one to show that htmx makes something simpler. This isn't one though.
How can there be discussion on HTML generation that doesn't even mention DOM, the standard API for HTML manipulation. Using createElement etc are perfectly valid method of producing HTML.
Why should someone deliver your order if they don't know if you're going to tip them? Perhaps they absolutely detest delivering in advance of pay? Perhaps it strikes them as utterly wrong?
To say nothing of getting crusted with road salt anytime you drive in winter.
Their property was also stolen from them. Much of Palo Alto was farms owned by Japanese americans originally
>The world would be a better place if JS had been scheme and people had been forced to learn a lisp.

None of the modern web would be around though because we’d still be waiting for a sufficiently advanced compiler.