skysight-inc/HackerNews huggingface dataset:
The C language seems to really like reading/writing data and then modifying it, or modifying data and then reading/writing it, which can make for some dense one-liners full of side-effects. The pre- and post- increment and decrement operators, and the fact that assignments are expressions, seem to encourage it - especially in combination with the short-circuiting boolean operators.

In old C, they would write code like the function below. This is based on a function from The C Programming Language, and it makes the assumption that bufp points to a buffer that's at least one byte long.

/* Read a line into a lim-sized buffer at bufp, returning strlen(bufp) */
int getline(char *bufp, int lim) {
int c;
char *p = bufp;

while (--lim > 0 && (c = getchar()) != EOF && (*p++ = c) != '\n')
;
*p = '\0';
return p - bufp;
}

But nowadays, in modern C code, I think most people don't write such terse code. I guess it's because the only people who still code in C are those who have no choice, and so they prefer clarity over compactness.
Can you visit them and live to tell it? :)

Ps: I said that in a joking way but it's a serious question: Is it safe? I would really like to see such a living environment, it is fascinating.
He is a convicted felon; and while he serves his sentence, his constitutional rights can and will be substantially abrogated. This includes his right to vote, a sex offender’s right to move freely without being on a list, or a corrupt business executive’s right to be a CFO in the future.

You have rights unless by your own actions you forfeit them. This has been upheld as constitutional. In some states, depending on your actions, you can even forfeit your right to live (though I get the controversy on that one far more).

But on that note, threatening witnesses is always a crime. That is indefensible, and deserves prison no matter who did it. Saying he can’t do that in a parole release is like saying “don’t do crimes.”
Since they can put you in solitary confinement or beat you up for speaking
I thought that calls for violence do not get regular Free Speech protection ?
With Homer, which translation you read can make a huge difference for the reading experience. Older translations tend to be far more purple and ornate, while recent translations, like Emily Wilson's, are far more straight forward with a more restrained diction and helpful translation notes and introductions. It's all really a matter of degree, though.
I’m starting to wonder if post war America was this unique time in history, because I’m not saying your wrong but it also seems like historically the idea of an unbiased news media is not the norm.

In general I have trouble believing it’s the medias fault though, not that they’re without sin, I just think the forces that make something like this are bigger than the media.
Heh, obviously they did. But RK seemed so absent and lost, and he said such things that it was obvious that he's just old and his mind is very much not what it used to be.
some "smart TV" things are said to have their own cell modems so they need not use your network, and are much harder to detect leaking.

Its difficult to escape, tho. Everything that receives RF, also transmits.

If you air gap everything and live in a Faraday cage, they'll know for sure that you have something to hide.
Location: Portugal

Remote: Yes

Willing to relocate: Yes

Technologies:
Python (FastAPI, DuckDB, PyTorch)
TypeScript (Next.js, React)
AWS (S3, EC2, ECR, ECS, RDS, Spot)
Bash, Rust, HTMX, SQL, Docker, GitHub Actions, Redis

Résumé/CV: https://ruicampos.org/resume

Email: mail@ruicampos.org
Long-Range Wireless Power Transfer for Moving Wireless IoT Devices
I just did some quick research on these IDs. Correct me if I'm wrong, but it seems like each user account would be tied to one device. It also seems like the user, at least on Apple devices, has to opt into advertising tracking in order for your app to even get access to this.

Ignoring the security pitfalls of phone numbers, it really doesn't seem like these advertising IDs are a drop in replacement for using phone numbers.
Post appears to have gone, Wayback Machine link: https://web.archive.org/web/20240704135344/https://blog.clou...
To nitpick: extensions using manifest V3 can in some cases allow better control of permissions granted to the extension.

This way the user can feel more secure about the extension not doing things it didn’t advertise.

In those cases I would say that’s genuinely better for the user. Wouldn’t you?

Not all extensions are AdBlock Plus which (as an exception) have very specific needs not covered by manifest V3.

It’s not all black and white. Google is not all in the wrong here, even though their motivation is obvious.
Birthrate has declined dramatically, and even if it hadn’t, we wouldn’t have had enough babies to increase intelligence that much that quickly.

The only way to increase the amount of intelligence on earth is by having children.
Intuiting Adversarial Examples in Neural Networks via a Simple Experiment
Thanks for elaborating, this helps understand where you are coming from.
That code in the EDIT is suboptimal. It doesn't saturate the Kraft inequality. You could make every codeword two bits and still encode 4 symbols, so that would be strictly better.
True 24-bit (146db SNR!) capture is rather difficult to do. You need to be very careful about layout and noise reduction. I can suggest the https://www.cirrus.com/products/cs5304p/ if you want to build one, though.
My USB amp has two USB-C plugs, one for data and one for power.
I don't think that's quite true. The lift here is that the state machine does not do any IO on its own. It always delegates that work to the event loop that's hosting it, which allows it to be interpreted in different contexts. That makes it more testable and more composable as it makes fewer assumptions about the runtime environment.

Theoretically, you could do the same thing with async/await constructing the state machines for you, although in practice it's pretty painful and most async/await code is impure.

There are lots of more experimental languages which exceptional support for this style of programming (Eff, Koka, Frank). Underlying all of Haskell's IO discourse is a very deep investment into several breeds of this kind of technology (free monads and their variants).

Lately, Unison has been a really interesting language which explores lots of new concepts but also has at its core an extensible effects system that provides excellent language-level support for this kind of coding.
I've had good luck with Buzz:

https://github.com/chidiwilliams/buzz
Yeah, "dictated by" is probably the wrong phrasing. A decent shell with those capabilities could probably have been made, but I do think the drive to make something fancy and new based on .NET was a big part of the reason they neglected decades of insights and successful idioms in the shell space, which were sorely needed on Windows.
>Remember the bendy bananas?

The WHAT?
> [EDIT2] Any good recommendations of a tiny protocol that might be a good walk through intro to this?
>
> Something even simpler than Gopher or SMTP? Would be nice to have a really small thing to do a tiny project in.

I only have experience in packet-oriented ones so I'd suggest sticking to that. Perhaps WireGuard could be simple enough? It has a handshake and timers so some complexity but nothing too crazy.

DNS could be interesting too, because you may need to contact upstream resolvers if you don't have something cached.
I get it. The everyday meaning is mutualism. I'm not confusing anything; please don't write off my perspective as mere "confusion". We are on HN, a place founded on gratifying curiosity. I was fascinated to learn the broader meaning of the term and figured that HN community would also enjoy discussing the rich technical meaning of the term. But instead I got some amusing interactions with the Semantics Police. And it's not like I'm standing on shaky ground with my definition; as I've mentioned before I am sourcing it from the first paragraph of the Wikipedia article on symbiosis. But yes, re-reading my original comment, I can see why you all might say "no, YOU're trying to be the Semantics Police!" Not my intention. I can easily hold both meanings of the term in my mind at the same time. The thing I really wanted to focus on was the fascinating richer meaning of "symbiosis" that makes space for benefit/benefit, harm/benefit, benefit/neutral, harm/neutral interactions.

The only thing I take back is the phrasing about it "evolving" since the 1960s. I looked up the biological terms; mutualism goes back to the 1840s at least. I guess Proudhon coined it. Amensalism goes back to the 1870s. Etc. It's still plausible to me that biologists or ecologists really pinned down how these terms relate to each other in the 1960s or later (since ecology as a field of study really ramped up in the 60s) but that would be difficult to prove.

Also, please remember that the topic came up because Licklider, an academic computer scientist and psychologist, used a biological term loosely in the title of an academic article published to an official computer science journal.
The loopback devices came from a CSI which creates a backing file on the kubelet’s filesystem and mounts it into the container as a block device. We use containerd.

I knew that enabling direct io would most likely disable double caching because that is literally the point of enabling direct io on a loopback device. Initially I just tried enabling direct io on the loopback devices, but that failed with a cryptic “invalid argument” error. After some more research I found that direct IO needs the sector size to match the filesystems block size in some cases to work.
The best/worst of those videos are the ones where you can actually HEAR a bunch of metal bits hit the ground right after the shift :)
To me, it's not as much of an ethical question as a practical one. Clearly there are other rights that ordinary citizens have, which people on parole don't have in the same way: freedom of association, freedom of travel, the right to purchase firearms, and so on. It's not—to me—ipso facto a violation of his constitutional right to free speech, though I'd definitely listen to the argument that it was. To me, it's a simpler question of whether this is a stupid thing to do, because his songs don't pose a danger, and time spent by pretending government employees are suited to evaluating rap songs and guessing whether they are going to lead someone to murder someone else is time wasted, that could be spent doing something more useful.
This is reminiscent of MATLAB where there is no distinction between a scalar and a 1x1 matrix.
How to confirm if my number was one of the leaked ones?
Author here: I was being overly conservative with the 20m, yes. Assuming the cutaway view in the post is to scale (it's from an architectural firm), it shows the inner screen dome is quite a lot smaller than the exterior structure – perhaps 70-80m tall; so 40-50m might be more accurate.
Us it a call for violence? If he is a screenwriter is that a call for violence?
Need to add in the title that this is a condition of his parole.
Good writeup and commendable of you to make your benchmark so easily repeatable. On my 16-core Xeon(R) W-2245 CPU @ 3.90GHz matmul.c takes about 1.41 seconds to multiply 8192x8192 matrices when compiled with gcc -O3 and 1.47 seconds when compiled with clang -O2, while NumPy does it in 1.07 seconds. I believe an avx512 kernel would be significantly faster. Another reason for the lackluster performance may be omp. IME, you can reduce overhead by managing the thread pool explicitly with pthreads (and use sysconf(_SC_NPROCESSORS_ONLN) instead of hard-coding).
Mozzy is by far the best and most detailed channel out there for the AC, 10/10 recommend.
Has the systems understanding, ability (and confidence) to make predictions, while keeping the video's at a length that is still digestible.
Also has a nice speaking voice which brings a level of classiness to it.

https://www.youtube.com/@mozzysails
Show HN: I made a tool to turn boring GPX files into cool videos
I might look into a few clients and see if I can't contribute to make them better. I also prefer a TUI/CLI client. I don't use X11 very often personally.

My biggest consideration for Usenet (and one of the arguments that's been made against it when I've talked to people) is people aren't willing to pay for it. That was the reason I decided to ask the question about maybe doing a reset that would allow for the feed to start over to where people could host their own with minimal storage requirements. The current Usenet continuing for those who wanted it, and the newer one for those who want to either host their own, or use a friend's host or something.

So what is the best way to overcome the "I don't want to pay for it" argument when trying to sell people on the idea of using Usenet?
Thanks!

Good point for the splay. For some reason I didn't consider it, but looking at it rn I could put a some of the keys in an angle which would feel better. I'll consider it for the next release (or a different version)!

I have nothing against 36 keys layout, the only reason for eliminating 2 thumb keys is that I can't find a proper place for the third thumb key where it would be in a nice position. I could add one key at the inner side, but the thumb just goes below the palm and it is not a comfortable position (for me at least). If you have any suggestions, please let me know! There is always space for improvement.

The lateral pinky position wasn't on the first design, but then someone with a shorter pinky who couldn't comfortably reach the top key tried it and suggested to place it there. I tried it and actually felt a lot better. (to reach the top pinky key I need to make a wrist movement, but not like this). I love it.
a few years ago I had to write a data integrity check for tens-of-thousands of files. Just crawl the dir and compute filename, size, checksum, maybe date, can't remember. I thought "ooh neat, I bet I can use some powershell trick to compute that tuple for each file", and no. Immediately ran into some obscure limitation with their "pipe" - I can't remember the details, it was like impossible to create many-things from a single-thing - and thought "how disappointing. the one time I give it an honest shake to do something entirely conceivable by the creator and it falls flat on its face.".
Hey, I'm Tobi.
After burning out some time ago, I took a long motorbike trip to recover. I recorded my trip with a GPS tracker but didn't know what to do with the data. So, I created a tool to visualize the route.
Human history in the long run: It was mostly pretty bad
Too clever by half; as this implies that a person who is a screenwriter, by their profession, is incapable of ever actually calling for violence.
I worked at a place where only certain teams with a dedicated DBA were trusted to write direct queries (based on past incidents). All other teams had to ask a central DBA team to build stored procedures for any interaction with the database. If you think that this would create a huge backlog, you are correct... Non critical updates also needed to be coordinated with a "release train" where the code had to be ready 2 weeks before deployment due to the amount of testing it required. It was one of the major drivers behind an initiative to create micro services with separate databases that each team could do what they wanted with.

We ended up with a huge number of micro services and special orchestrator services to handle distributed transactions. But I guess that in a company of that scale, there are no perfect solution. At least we were able to make changes within minutes/hours instead of weeks.

Paradoxically we also got more pressure to deliver. In the past it was acceptable to leave a healthy buffer at the end of the scrum, to avoid missing the release train. This meant that we often spent the remaining buffer on refactoring, fixing small bugs that we felt we had time for or experimenting with POCs.
"Smart" today is basically code for "spies on you". In that respect these devices that allow the manufacturer to sell what has historically been private information is "smart" at least from their perspective.

When your doorbell, vacuum, fridge, tv, mouse, computer, security system, nanny cam, all collect and sell data about you why would you not assume that your monitor (likely now connected by a shared data channel like usb3) is doing the same.

Hell, MS went as far as to say capturing regular screenshots of your activity was a feature. It won't be long before most people agree with them.

When I was young, people feared that the powers that be might be listening in on their phone calls or watching them through their TVs. Today unfortunately, most people consider these to be product features.
> it’s just that typically there are a lot more possible futures for the current state than pasts, because of entropy

You've either just read "The Order of Time" or you already know a bit about this field. I'm reading it at the moment, as a non-physicist.

Your statement above isn't clear to me. Could you simplify why "the future" has a lot more states than the past, because of entropy?

Isn't this circular?
There are Positive rights and Negative rights. Both should exist otherwise we become a jungle. The fact that you (or me) wouldn't go out killing and maiming doesn't mean nobody else would/will/does.

So if for the protection of the many (yes I know - it is a slippery slope) a specific person has to count his words & actions, so be it. He made his bed. Now he is sleeping in it.
Mass document analytics platform based on LlamaIndex, Pgvector, React and Django
Am I the only one that can't open this?

> Error rendering embedded code

> Invalid PDF

Firefox
Authy makes it hard to migrate away. Anyone know how to get the seed of the 2FA codes? Is there really no export option?
try MonsterWriter, it caters to exactly this group of users
Still can't believe you can build a career in this business out of saying we'll have more advanced technologies in the future. Slap a number on it while you're at it. Sell a book.
I don't trust myself so I need my language to not be bug-prone

(and I don't recommend it for others because if we're looking at it realistically, most people who trust themselves shouldn't trust themselves)
You can tell by WinGet which is a new product not even close to supporting anything PowerShell by design and almost being anti PowerShell with its overly verbose output. Which is odd since it's right up powershells alley being a management cli tool
I think @("value") is enough.

I use

[array]$Ary = "value"
TL:DR;

Which will happen? I don’t know. Which is more likely? I don’t know.
It's a good product. It's a bad map.

Maps are meant to help orient yourself and communicate rich information about the area. They're used for planning. Google Maps has long been moving away from this case, focusing instead on just-in-time point-by-point nav and searchable PoI database. This is an entirely different product category to a map, and has opposite goals.
I have been considering an ergonomic keyboard for a while and came pretty close to getting a sofle [0]. But I realised that I actually like having all the symbol keys. So now thinking about trying a keychron with alice layout [1]

[0] https://josefadamcik.github.io/SofleKeyboard/

[1] https://www.keychron.uk/products/keychron-k15-pro-alice-layo...
Do what I do and turn off "allow multi-device." Problem solved -- even if your phone number is stolen, they can't recover your 2FA because it's locked to the device too.
Million $ Lines of Code – An Engineering Perspective on Cloud Cost Optimization
Canada (southern Ontario)
1300 kWh hours a month in summer
1100 kWh hours a month in winter
Natural gas for heating
I’d say 14,000 kWh a year
1200sf home, many people use a lot more power than that.
OsmAnd is great despite being so ugly, but for cycling I would should out Komoot.

It's made for long touring rides, but it works perfectly for shorter rides within the city and its routing is produces routes that are faster, more pleasant, and overall much better than Google Maps.
>decades of history and successful idioms in the shell space

Just because something has persisted for a few decades does not make it good or worthy of being emulated on a platform different from the platform it started out on.
Ah of course. Thanks for the insight. About 15 years since I studied this stuff!
Besides all the other advice of using the password manager as a 2FA store as well, on the stand-alone side there is Aegis. I have good experience with it, and allows better interoperability than Authy as well.
"Those who come after rest in the shade of the react-complex-tree planted by those who have come before."

-A slightly minced Chinese proverb
If you use Authy, turn off "allow multi-device" and SIM-swapping isn't an issue. This should be on regardless of the leak.
Chromium is basically everything important anyway; Chrome is some sprinkle on top (I think some DRM stuff?)
YES.

If Shipt is actually trying to incentivize better performance, it seems the best way is to be completely transparent about the rewards algorithm. "Short high-value trips are now somewhat de-rated, and trips requiring more effort now have improved rewards, specifically ..." or whatever.

This "communications team" approach did everyone a disservice if Shipt mgt were really trying to improve results.

OTOH, if the actual goal was to screw workers harder, they accomplished that, as here ate arguments on HN about how this could be good for the workers, thus successfully obfuscating the goal of screw-the-workers.
2024 Statistical Review of World Energy
Powershell was truly a product of Microsoft monopolistic confidence. To create a language that allows absolutely no syntactical carryover from any other langauge is wild. You couldn't guess or assume any command, parameter or flag. Even with Microsoft's ambition they should have realized that legions of admins and programmers had to learn and maintain scripts in both Powershell and bash for a few decades at least.

The extreme verbosity of the syntax may look good for a presentation to the committee, but dealing with it regularly collides with well-researched and understood limits of the human brain, where information of a certain size, and delays of a certain length break the state of flow and requires concentration, explicit memorization and double-takes. Even with practice one could never quickly execute the common shell incantation to turn a thought into reality, instead one would have to wrestle with syntax, even if it's just waiting for autocomplete to appear and deciding to accept the next word of a multipart command.

Let's try the start menu and search for "pow..", chose between 4 amazing options, Powershell or Powershell ISE, both in regular and x86 flavour. Either would take a while to load, breaking flow. The ISE shows a little splash screen that jumps to a second location. Another dialog shows up and informs you that you've closed the last session without saving the unnamed script files. But it opens them anyway, as you would expect. So why scold me for this? Because, you know damn well that saving the textfile is trouble: I can type or copy, and then execute any kind of evil code imaginable, but saving the file and then running it as a .ps Script triggers the ridiculous execution-policy song and dance. Probably trauma from Microsoft's bad security reputation of early Internet Explorers and Windows versions.

I tried to love it anyway but one day my script encountered filenames with square brackets. Powershell implicitly interpreted those [1] and [2] as iterators somehow (https://stackoverflow.com/questions/21008180/copy-file-with-...). Sorry but dealing with files is the one job a scripting language has, filenames are beyond the control of script authors, and the space of valid filenames on Windows should be known. This gave me some long lasting trust issues with that language.

(The Azure team aparently had enough power within Microsoft to create their own, sane and readable syntax: "az find vm", "az account show".)