skysight-inc/HackerNews huggingface dataset:
Yes, so many people who write for magazines seem to use their tools to make more tools.

I wish I had some of that in me. I resent every second working on my machines as opposed to using them to make stuff. Which would be why none of them work very well :-\

I wish I was rich enough to pay someone to 'just come and set them all up properly and check on them every couple of months!'

My actual hobby is model engineering focused on locos. Like sailing, it's 90% maintenance & 10% doing. Unfortunately, it's the doing I prefer.
Take a look into logical replication. You can even send messages over it
This was a quick side project my partner and I created using ChatGPT. We've been competing every day on the daily trivia quiz which has been a lot of fun!

We would love some feedback on how we could best organise the topics into a nice site layout because right now we don't really have any ideas.
I would need compensation information as well.
And the US is the legal jurisdiction.

US antitrust law doesn't apply to the third world.
These news will do nothing for you, although the problem you have is very likely the same or worst in Germany.
Any good PostgreSQL hosting for hobby plan?
Any generous hosting platform similar to Platnetscale for PostgreSQL?
I suppose it depends on the field. A retired athlete probably still has a lot of useful things to say about their sport, whereas other fields really require you to stay up to date to be useful.
Slack launches next-gen API for creating integrations and automations
I've never understood the circumstances where it is ok for a copy/concatenate operation to also include a bonus "truncate the result" operation at the end. I'm a believer that you should use strcpy and strcat, and also make sure your buffers are large enough. If you can't make them large enough, then you can't do the operation you are trying to do (and I would say that doing it incorrectly via truncation isn't obviously better since this seems like silent corruption to me)
no. would be a great feeling though. congrats!
Is there a “never” missing from your last sentence?
To support multiple PIDs:
killport() { lsof -ti :"$1" | xargs kill -9; }
Plus Pythagoreans had a much more religious attitude towards number than any present-day mathematician. In fact I think it's almost misleading to remember them chiefly for their mathematical contributions (many of which are disputed anyway) while they were first and foremost mystic philosophers.
I've read Descartes. ChatGPT believes things and performs mental actions as well.
GPT-3 isn't the 1337 h4x0r it thinks it is.
That doesn't work on Windows and it isn't portable.

At least with Rust it can be abstracted and made to be portable, to work on other platforms like Windows.

Why learn 3 different commands with slightly non-standard arguments to find and kill a process on different OSes, when you can use one unified command and the arguments work the same as expected?
For those unfamiliar with iDeal, it works largely like you'd expect an OAuth flow to work:

- you click pay now on the merchants website

- you get redirected to your banks website

- you login to your account, usually involves 2FA and whatnot

- you get shown the transaction details and you confirm

- you get redirected back to the merchant who gets a signed token proving you've paid

Over in the Netherlands it's pretty much an universal standard. All banks support it, and very nearly all webshops.
Thank you! The Bloomberg article piqued my interest, but it is actually very light on the details of the LAION project - it quickly moved into the same old license and bias discussions and left me wanting. Your interview is much more interesting, it's great to learn a more about the person behind it and his motivations.
Processes do not run on a port. Processes listen on a port.
Holy smokes: https://github.com/jkfran/killport/blob/main/src/linux.rs#L8...
We better get your pants to the judge so he can check all the mobile devices to see if they fit in your pocket.
Show HN: Papers with Prompts
Been reading research paper's related to prompting recently and thought it would be nice to have a place to stash them all, so I threw this together last night.
Where exactly would our data be going once we upload it?
> I don't think that ordinary non-programmer people care about OS or even understand what it is.

They might not now what an OS is, but they surely do care about the UI, speed and general handling.

> And programmers probably would prefer Linux over some proprietary OS where you cannot even sideload apps.

Yet most do not. I say this as an mostly exclusive Linux user.

> I think the real reason why people buy Apple is due to belief (artificially created by marketing, not based on real studies) that Apple makes expensive, but high quality devices. And maybe because of a good camera.

Yet this is true. Apple has a very good build quality and, for the most part, great support. It's true that high-quality Android phones do match that, but they are not priced that differently compared to modern iPhones.

Of course there's also some marketing involved, as well as Apple being a status symbol, but it's not like Apple is producing inferior products.
Musk is on record saying it's a complete non-starter. There are all sorts of problems with it. Beam spreading is a huge problem, the ground receiver would generally have to be about 10x the diameter of the transmitter and these would need to be really big arrays. A 1km transmitter is ballpark. Targeting the receiver is tricky as even minuscule angular offsets mean you would miss completely. Losses from transmission and reception are huge, and the enormous emissions leakage means you have to clear the big chunk of orbital 'real estate' of other satellites or they'd suffer serious problems.
I’m not sure what your point is, I know plenty of people who would prefer dumb phones, probably more than who would be interested in sideloading?
I looked at the impact report released by Tesla this came from and I couldn't see anything about the methodology, I have to guess this is best case (keeping change between arund 30% and 80%, never fuly charging up) which is a bit impractical I think? I don't have enough experience to know how big the scale of difference. I don't say this as a gotcha or whatever, I just wish the methodology was clear because the exact figure would be useful to know as an owner or user

They do however mention in the slides that battery age is also a factor, with batteries degrading even when not in use.
Everyone in the replies is talking about Apple and the Apple Watch. I personally have a Pixel 5A which has a dedicated fingerprint reader on the back. I unlock it before it even leaves my pocket, scan on the turnstile, and I'm through. No fucking around with face unlock. It's great. And I've tried the newer Pixel screen-embedded fingerprint unlock and it seems worse.
The only sporty YouTubers I follow are in parkour and World Chase Tag. Most of those are demonstrating their own skills, so they do have to be good at what they do. Some are among the best in the world at what they do. Only one (JimmyTheGiant) is mostly commenting and interviewing (and making brief documentaries about the history of the sport), and he's open that he's not the best at the actual parkour.
I started doing this for a while but quickly switched to Obsidian. Obviously it doesn't have the same features but it serves the same purpose for me at least. The data format is much simpler and portable too, I just store the vault in iCloud and sync it to my phone.
takes pictures of a screen with the phone
Hi! the primary function of the mAIker is to generate code based on a prompt, rather than debugging existing code. However, it could be a good idea to add to the roadmap, thanks!
Does that mean some WIMPS Heavy particles do explain gravitational lensing oddities?
Elon is currently generating –$100k/month from his 24,700 Twitter subscribers
> improving humanity's chances
Do you mind elaborating. What chances?
While I agree with all the other commenters about debugging and scaling issues at least some of the time the stored procedure route can be very powerful.

Stored procedures will eliminate insane levels of latency if there are many records to be updated in ways that are hard to do in application layer code without repeated calls the the db. I use them a lot for DB maintenance. Often for that kind of work its also a lot simpler and easier to reason with than app layer code.
It's not the most intuitive export (since there are backlinks, complex hierarchy, databases and all that jazz in Notion pages) but they do return Markdown for every page, CSV for databases (with some information loss), maintain folder structures, and multimedia attachments.

A quick search shows me that Notion exports can be used to populate Obsidian [1] (which implies that there's not substantial information loss).

[1] - https://forum.obsidian.md/t/notion-2-obsidian-migration-inst...
Hah, I was about to rant about the same.
This tool is obviously not battle proved and never run outside the developer's machine.
That definitely says something about the discoverability of the platform's functionality.

The similar thing also regularly happens in medium-to-large codebases so that's how you end with four slighlty different implementations of e.g. "extract value by path from a JSON object, with some traversal options": it's easier to just write the damn loop by yourself than to find a) if it's already been written, and if yes, b) how the hell do you use it.
I came here to post exactly that; I think using snprintf() is the proper solution to the "I need to build a string out of many parts in C" problem pretty much every time.

Especially since these functions' return values make it hard to use them to step forward in the buffer, so subsequent calls need to walk over the already-inserted characters again and again. That kind of redundant work makes me grit my teeth, which I guess is a sign that I'm a C programmer at heart. :)

Compare:

char buf[1024];
snprintf(buf, sizeof buf, "%s%s", "foo", "bar");

and

char buf[1024];
strcpy(buf, "foo");
strlcat(buf, "bar", sizeof buf);

The latter is given a pointer to the base buffer, so it has to walk past the existing characters in order to find the end where the concatenation should start.

I also find the "size" arguments confusing and weird. I think it's idiomatic in C to (tightly) associate a size with a buffer pointer, and speaking in terms of "there are n bytes available at this location" makes sense to me. So the prototype really should have been

size_t strlcat_unwind(char *buf, size_t buf_size, const char *src);
Seems like they do from a quick googlin'

https://www.notion.so/help/export-your-content

https://www.notion.so/help/back-up-your-data

> one must justify the development and opportunity costs

GDPR
Centipedes are very common in Toronto basement apartments. They look absolutely ghastly and their bite is somewhat painful and itchy, but yeah they are ravenous and great at controlling other insects. If you get way too many of them though... usually means you have another problematic arthropod invasion.
It's great, but I think reliability is as big a problem there as it is in coding. It's hard to control the output.

I won't go into the various problems these tools have, like them ignoring my instructions if they are outside what 90% of the population is doing, because I think they can and will be solved to various degrees eventually.

But the bar will raise. The quality that customers expect will start rising. Eventually the level of control and quality that is demanded will again only be adequatedly matched by people we usually call "artists". Sure, I - some scumbag programmer - can create some fancy generic shots today for a generic company blog post and for now that is impressive, but in the long term this won't cut it.

Folks will want highly fine-tuned specific imagery trained on company stuff or whatever. Branding will have to match exactly. The complexity of the design will explode. Good taste and raw visual skill, not to mention creativity - being an "artist" - will win and the average dude will not have the proclivity to keep up those skills. I think it's more than holding a pencil and being good at drawing lines.

I do think the raw skills of "holding a pencil" and such is becoming obsolete. That's like having good "punching card" skills. However, knowing what to "punch" is a timeless skill or at least a good part of it is and it's easy to adapt to a new era if needed. Punching code, typing code, selecting code-snippets from AI, it's different for sure, but the underlying high-level skills are adaptable and useful. I think the same holds for artists.
“I Just Can't”: Sauron's Darkest Moment
Isn’t this entire article just marketing? Why mention specific app/saas provider?
`fuser` (from `psmisc`[0] Linux package; commonly installed IME, also supplies things like `pstree`) lets you identify processes which have files or sockets open, and has a `-k` switch for killing them. So you can run e.g.

fuser -k 8080/tcp # kill processes with TCP :8080 open, IPv4 and IPv6
fuser -k -6 8080/tcp # same but IPv6 only
fuser -k 8080/udp # UDP instead of TCP

[0] https://gitlab.com/psmisc/psmisc
« Complotist! »
I see one advantage: it allowed me to run into your comment :-)
Goodness me, that is a terrible name. Lower case o and c are very hard to distinguish in the middle of a word, so that looks like memcopy (yes I know the actual existing function is memcpy but memmove is more common in application-ish code, and it includes the middle "o", so I still read memccpy wrong).

What next? merncopy?
I'm currently working for an operationally shit organisation (and it's not a small place all in all). The team I'm in get nothing written down, it's all verbal, when misunderstandings happen (which is often) days or weeks can be lost, we don't have the tools we need, we don't get any training which we are supposed to pick up magically people are working excessive hours without overtime pay, resignations are happening and mine will follow.

If enough people resign the workload on the boss (who is the proximal cause of this, although clearly the rot goes much higher up) will probably cause him to resign. And then the organisation will have an IT system that nobody knows how to use and it will be catastrophic.

This situation is horrible for us. People are crying out for documentation and process. I'll spend some time reading this article more carefully, try to work out whether sweet spot is.
If you prefer shell, here's a simple script to look up port processes. The script can use lsof, netstat, ss, fuser, or sockstat.

https://github.com/sixarm/port-to-process
When did mass layoffs become so normal?
Null-terminated strings have to be up there with null-pointers as design ideas that seemed great at the time, but turned out to be extremely costly because of the insane number of bugs they produce.

I wonder what an alternative world would look like where C had decided to use pascal-strings instead (prefixing the string with its length). We would undoubtedly have argued about the length of the size prefix, but a mistake there is trivial to spot compared to wrong application of str[nls]*cpy(_s)?.
I similarly moved from Notion to Joplin. My data, my server etc. For me the move was triggered by Notion being very slow, but later on, with the amounts of data I had in Notion, I started to worry about privacy etc as well.
Or, as someone I know (Gnomon on h2g2) remarked, they're just as real as real numbers, which is to say, not real at all.
> It turns out they are a psychological terror!
This, I cannot express this enough. These little monsters will tear your mind apart.

It took me years to recover and I am still a little paranoid every now and then.
Aspiring partners accuse Apple of copying their ideas
Better to target Ninja, no? Since it’s basically designed for that.
"Different OSes"? There is only Linux in different tastes and maybe some BSD in some obscure places but no other OSes exist (that are worth to get oneself acquainted with), I am pretty sure of it.
I wasn't very clear with the word "providers"

> So there aren't "different limits" for Apple/Google/Samsung Pay compared to using your physical Visa/MC/Amex/Discover/etc card.

Not from the _payment_ provider (mastercard/visa/etc), but from the _card_ provider (google pay/apple pay/banks) - e.g. my Bank card has a contactless limit of £100, but that same card via Google Pay has a limit of ??? (never reached it, thousands probably)
Advanced Active Record: Optimizing Performance and Robustness
Using nix develop (without -c) to get a development shell has some advantages over docker. It layers over your existing environment (unless you don't want it to) so you can still access things like git from the same shell. With docker you either add it to your build deps or do some stuff inside docker and some stuff outside.

It also builds your environment on demand rather than having to manage the two step thing of building the image and then making sure you're using the right one.

I've found this much more flexible and convenient than anything with docker.
But rock climbing doesn't have the gear heads of other hobbies - at least, I've never encountered these. There are definitely people that enjoy the technical aspects of how to best secure yourself with your gear, what knots to use and so on, but otherwise I haven't had many of these discussions.

On that aspect, rock climbing and especially bouldering are very similar to running. Don't get me started on trail running, though...
agree for the first (Clinton got out easy imho, but as i understand, Republicans were afraid of setting a precedent), hard disagree on the second.

Unless you think you can use politician children against them.
Because the people good at managing don't spend time complaining on HN. I strongly recommend that if you "are great at building software and love it" to learn managing. It's just a force multiplier. Like using an even higher level language. Programming people basically.
Obsidian is great. My notetaking solutions went from

- raw text files

- raw markdown files

- + homemade server rendering the markdown live

- Obsidian

- Notion

I stick with Notion because it really is infinitely configurable. I rarely use 99% of the plugins but I have, in the past, used their API to populate the show the results of my experiments straight from my Python code to a Notion Table. Super convenient. I take regular (every six months or so) hard exports that I save to disk in case the company goes belly up tomorrow. I'm comfortable with it.
To me the screen is the least interesting part of CarPlay, I was fine with my phone screen when I was using bluetooth. It is more important to me that it's a wired digital protocol that matches the car's built-in controls.
I don't beat myself up about this. Hating myself is why I let myself be abused with obscene on-call for years. Respecting myself and deciding what I cared about in life is what allowed me to quit that job, even though it was secure.
I always thought it was interesting how auto capitalization and other correction can often reveal whether someone is using their phone or laptop/pc.

Flaws and other nuances in how we text is very personal and can be used as a way to detect if you are still you, or if at least you are you but you're a bit off. (ie drunk, sick, in a bad situation)
Always TBD. Anything else is a complete and utter mess. Branch for development. Always rebased squashed and merged back to master and delete dev branch. Leaves clean git history with no mess and no merge issues. This is the way.
Well, the simple explanation is probably that the author isn't aware of `lsof` and might even learn something from your comment.

lsof isn't something you automatically pickup if it's not your daily business (like so many other things). I for myself often forget about it but I have some usual ports to kill. So these days I simply search my shell history by port to find lsof again.
I don't know why you're being downvoted; it's a pretty interesting idea. A buddy mentioned a few years back that his church had moved their lighting over to PoE and ever since then I think that makes a lot of sense - I find it bonkers to think now that a room might have needed a couple hundred watts of lighting even a decade or two ago. Fluorescents and then LEDs really changed that game at least. A power-caching toaster seems feasible if a bit overly complicated, and vacuums may or may not work (I think the latest PoE spec is like 95 watts?)

What I don't like the idea of is needing to bring in a network engineer to troubleshoot my lights though (and I say that as someone who occasionally works on a variety of network gear as part of my job). I suppose unmanaged PoE switches need not be too complicated though.
I think it means that the HN software auto-removes exclamation marks from titles, and in this case the original title began "No WIMPS!".

(I don't know that the HN software does this. Maybe the submitter made a typo.)
Canada is the same I can't recall the last time I used cash or coins, perhaps two decades? It's tap debit or now more frequently my phone using Google Wallet.
How OpenTelemetry Works with Kubernetes
I’m super annoyed when websites still ask me for card details and can’t implement proper browser auto fill.

Is there a way I can get rid of all my physical cards and have them securely on my iPhone without saving the details in cleartext in a note?
Who says any of the quadrants is aspirational? The author presents them as equally worthy, and why not? They're hobbies, not work. The whole point is to do what you enjoy. No need to feel bad for having a "bad" hobby.
Teleportation? Talking to beings from other planes? Walking through doors... How do you believe him? lol
This entire article reads like an advertisement written by chat gpt.
It works with software/programming too, you can create your own tools the same way you create your "end product".
This idea never made any sense to me. Why the heck would you spend billions of dollars to launch solar panels into space to gather sunlight then beam it to earth when you could just wait for the sunlight to get to earth naturally for free...
care to enlighten us mere mortals? why is this a holy smokes?
Box.com didn't go after DropBox and look what happened to them.
https://github.com/rhasspy/piper I was confused as well
If you think it’s bad here you should travel anywhere in India. At least they effectively regulate emissions in the US.
Curious about the following lines [1] [2]:

let processes = procfs::process::all_processes().unwrap();
...
let process = p.unwrap();

Doesn't this use of unwrap cancel out one of the advantages of Rust which is to handle errors quite comprehensively?

Here process could be null, and we try to access it the line after.

edit: actually process won't be null, unwrap will panic. Got it. I still think a good error message would be better than exposing the user to a crash, but that's a matter of opinion. It seems like the whole point of using Rust, and also of such a tool, is to be robust and user-friendly (since it implements an UNIX one liner), and an unhandled crash could lower the confidence of the user in the tool.

[1] https://github.com/jkfran/killport/blob/3a43d037c08ab3aec730...

[2] https://github.com/jkfran/killport/blob/3a43d037c08ab3aec730...
You can ask this AI chat thingy if it's a good idea to experiment on your production server. Maybe it will suggest something else.
How is the court standing on people's necks?

If someone takes something from me, and doesn't return it, should I not have the right to take it back?

As far as I am aware no one is forcing people to take on loans at gunpoint (other under threat of some criminal act being committed against them), not would any court enforce a debt incurred in such a way, so what exactly is the problem here?

Don't take on debt you can't afford to pay back and you won't have a problem. Don't default on your debts and you will never have a problem.
Linux Kernel Podcast S2E4 – 2023-04-24