MurphyA/hacker-news huggingface dataset:
by tingx | 2025-04-23 13:47:18+00:00
Very good question. Your private key and repo passphrase are encrypted then stored in keychain to keep it secure. We understand those are credentials and very important, it never leave your device, it's your responsibility to have a strong device password to protect your device. The app only communicates with your backup server, we don't collect any data to avoid extra communication to other servers and bring concern to our users. You can also check our privacy policy in app to see how we respect privacy and no data was collected. Next release we will also add threat modeling to clarify the data flow of app and app risk analysis. You can verify the server app contacted by go through System Settings, App Privacy Report, App Network Activity, then find BorgLens, it will list all the domains contacted by BorgLen, you should see your backup server domain only. There maybe some subdomains from apple.com due to system functions. For any questions or support can reach us through in app support.
by pansa2 | 2025-04-23 13:48:00+00:00
Yes, the next level of complexity is that `a + b` will sometimes fall back to `b.__radd__(a)` if `a.__add__(b)` returns `NotImplemented`. But also:

- There are situations where `__radd__` takes priority over `__add__`. The rules for determining that priority are complex (and IIRC subtly different from the rules that determine whether `a < b` prioritises `a.__lt__(b)` or `b.__gt__(a)`).

- The lookup of `__add__` etc uses a special form of attribute lookup that's neither equivalent to `a.__add__` nor `type(a).__add__`. This special lookup only searches `type(a)` whereas the first would find an `__add__` function on `a`, and the second on `type(type(a))`.

I've also heard of further complications caused by implementation details leaking into the language semantics - for example, see Armin Ronacher's blog post: https://lucumr.pocoo.org/2014/8/16/the-python-i-would-like-t...
by vunderba | 2025-04-23 13:48:03+00:00
That's a very technical perspective. If you're a note taker, you ALREADY write in a format that is comfortable for you. And like the vast majority of people who enjoy putting proverbial pen to paper, you aren't thinking about bloody html tags.

The goal of generators is to reduce the friction of taking your notes/articles/etc. and wrapping them in thematically consistent HTML/CSS for your site. Once you've got it tuned/setup for your blog, they're pretty easy to use.

Obviously in your use-case where you find static site generators more complicated, then you can stick with raw html.
by veidr | 2025-04-23 13:48:03+00:00
Yeah, part of it is that I do find

const foo = something() .hoge() .hige() .hage();

better, sure, but not actually significantly harder to read than:

let foo = something(); foo = foo.hoge(); foo = foo.hige(); foo = foo.hage();

But, while reading is more common than debugging, debugging a production app is often more important. I guess I am mostly thinking about web apps, because that is the area where I have mainly found the available debuggers lacking. Although they are getting better, I believe, I've frequently seen problems where they can't debug into some standard language feature because it's implemented in C++ native code, or they just don't expose the implicit temporary variables in a useful way.

(I also often see similar-ish problems in languages where the debuggers just aren't that advanced, due to lack of popularity, or whatever.)

Particularly with web apps, though, we often want to attach to the current production app for initial debugging instead of modifying the app and running it locally, usually because somebody has reported a bug that happens in production (but how to reproduce it locally is not yet clear).

Alternatively stated, I guess, I believe readability is important, and maybe the "second most important thing", but nevertheless we should not prefer fancy/elegant code that feels nice to us to write and read, but makes debugging more difficult (with the prevailing debuggers) in any significant way.

In an ideal world, a difference like the above wouldn't be harder to debug, in which case I would also prefer the first version.

(And probably in the real world, the problems would be with async functions less conducive to the pithy hypothetical example. I'm a stalwart opponent of libraries like RxJs for the sole reason that you pay back with interest all of the gains you realized during development, the first time you have to debug something weird.)
by thinkmassive | 2025-04-23 13:48:20+00:00
Yep, the irrelevant videos are clearly targeted based on viewing history, but a completely separate topic from the search, and often with clickbait titles.

Tangentially related, I typically queue multiple videos, and within the past year YouTube has started inserting new videos into my queue. It’s always one by the same person of the currently playing video, placed next in the queue, and it only gets inserted after watching the current video for some period of time.

That last part made it difficult to diagnose. It’s extremely annoying and feels like gaslighting because it’s never a video I actually have an interest in watching.

Has anyone found a way to disable this?
by lotsofpulp | 2025-04-23 13:48:28+00:00
Buying land (or renting), building warehouses, and employing people to move stuff is extremely costly.

>one that has a good interface, search, and which doesn't allow 3rd party sellers that flood the offerings with low quality knockoffs, etc.

This is kind of the space that Costco/Nordstrom/Apple/Best Buy/Lowes/Home Depot/Staples occupy. But even they find it tough, so more and more allow 3rd party sellers to make money off the platform, even if it lowers the brand value in the long term.
by piltdownman | 2025-04-23 13:48:39+00:00
Flann O'Brian can't be celebrated enough - 'At Swim-Two-Birds' is up there with Ulysses in terms of the great works of English language literature.

https://www.theguardian.com/books/2014/dec/08/100-best-novel...

In terms of the cultural resurgeance of Irish, whilst the Rubberbandits have done their part, its nothing compared to the full-on assault on cultural consciousness the politically divisive rap-group 'Kneecap' have performed - although they're about to be cancelled by the pro-Zionist lobby in the US.

https://www.screenireland.ie/news/kneecap-becomes-first-iris...

https://www.rottentomatoes.com/m/kneecap

Trailer: https://www.youtube.com/watch?v=FFYfp-hKxZQ

https://www.theguardian.com/world/2025/apr/23/sharon-osbourn...
by thesuitonym | 2025-04-23 13:49:14+00:00
Your premise is flawed. Reframe the question like this: Should the US be the sole arbiter of software vulnerabilities? Absolutely not! But that doesn't mean the US should cut off the spigot. Other countries should start their own version of CVE, so they can check each other's work, and disclose vulnerabilities that certain governments may desire to keep secret.
by mdaniel | 2025-04-23 13:49:27+00:00
While that may certainly arise if someone is lazy about #!/bin/sh when they didn't really mean /bin/sh I'd bet it's /bin/sed and similar friends that are different between the GNU versions and the BSD versions. So much make-macro-trickery out there when one is trying to use -i without a backup suffix, and I have no idea why GNU tried to be a trailblazer with their parsing :(
by chuckadams | 2025-04-23 13:49:39+00:00
Never went by my real name on MOOs, but I was on a bunch of them going originally by Phaedrus then Kirlan. I think on E_MOO I was going by Iluvatar. Prisoner #74469 on LambdaMOO, I still remember that. Probably still there, I can't imagine they do any more reaping in this current age when the whole thing can fit comfortably on a raspberry pi.
by justin_ | 2025-04-23 13:49:59+00:00
> Light is integrated over a finite area to form a singke color sample. During Bayer mosaicking, contributions from neighbouring pixels are integrated to form samples of complementary color channels.

Integrated into a single color sample indeed. After all the integration, mosaicking, and filtering, a single sample is calculated. That’s the pixel. I think that’s where the confusion is coming from. To Smith, the “pixel” is the sample that lives in the computer.

The actual realization of the image sensors and their filters are not encoded in a typical image format, nor used in a typical high level image processing pipelines. For abstract representations of images, the “pixel” abstraction is used.

The initial reply to this chain focused on how camera sensors capture information about light, and yes, those sensors take up space and operate over time. But the pixel, the piece of data in the computer, is just a point among many.
by Ezhik | 2025-04-23 13:50:26+00:00
Writing raw HTML is just not fun for some people.

Obsidian is a nice middle ground between WYSIWYG and plain text - it doesn't send markup characters into the ether but at the same time does show you something close to the final text in real time.

Closest thing we've had to WordPerfect's Reveal Codes in decades.
by redbell | 2025-04-23 13:50:43+00:00
> But who would buy it? An OpenAI executive says his employer would be interested.

These days, OpenAI seems to be leaning more toward expending its business beyond AI. Not sure why, but they may have come across a roadblock that is holding them back from achieving AGI soon. The past few days we heard that they maybe in the process of building a social network [1] and the willingness to buy the AI IDE, Windsurf [2].

Also, from the article:

> Among the DOJ's witnesses on the second day of the trial was Nick Turley, head of product for ChatGPT at OpenAI.

Perplexity has also been asked to testify in the Google DOJ case [3] and their opinion about Chrome was:

"Google should not be broken up. Chrome should remain within and continue to be run by Google. Google deserves a lot of credit for open-sourcing Chromium, which powers Microsoft's Edge and will also power Perplexity's Comet. Chrome has become the dominant browser due to incredible execution quality at the scale of billions of users"

_________________

1. https://news.ycombinator.com/item?id=43694877

2. https://news.ycombinator.com/item?id=43716856

3. https://x.com/AravSrinivas/status/1914373458982805888
by cmrdporcupine | 2025-04-23 13:50:49+00:00
We shall see. Big words, but this country has a history of doubling down on mediocrity and parochial interests.

I personally would love to contribute in whatever way I could to homegrown manufacturing, tech, and maybe even defence sector, and am willing to put in the hours and even compensation cut to make things happen in this country.

I just hope there's investors out there willing to make things happen, and that the gov't doesn't just do its usual thing of protecting a few existing corporate buddies.
by hylaride | 2025-04-23 13:51:22+00:00
As a Canadian, I have mixed feeling about this. You can develop and build domestic defence industries, but it only becomes economical if you can develop an export market. Even then, the inputs for parts/resources are still global.

Sweden has one heck of a domestic defence industry, but it's tailor made for its requirements and expensive. The SAAB Gripen is one of the best planes in the world for what it was designed to do: operate dispersed off of regional roads when your main infrastructure is destroyed or unavailable. But its flyway cost is the same as an F-35 because hundreds have been built instead of thousands. And the Gripen's engine is still from General Electric.

The NLAW anti-tank weapon is a good example of export success. It was developed jointly with the British and has had a lot of exports and proven success in Ukraine.

On top of that, Canada's defence civil service is terrible at procurement. Even when we buy foreign, we manage to drive up the costs to the point where its rediculously price just to shove in some domestic "advantage", rather than focusing that money on stuff we are really good at (we tend to kick ass at sonar and anti-sub tech, for example).
by Dathuil | 2025-04-23 13:51:37+00:00
My own setup is similar but replace cloudflare with netlify and vscode with obsidian. However I do find writing markdown as someone with dyslexia to be a huge issue when it comes to spelling and grammer.

How is Obsidian for correcting this? Years ago I would have used something like grammarly to solve it but I'd rather something build it in if possible and make it as brainless as possible
by Brajeshwar | 2025-04-23 13:51:46+00:00
Strikingly similar to mine, except Jekyll instead of Hugo. I don't even build it locally these days. So, Obsidian > Github > Cloudflare.

Jekyll is slow for large content (my blog is huge), Hugo is fast. But I want to stay as mobile and lean as possible. I've tried and with a few changes in the template, I can move from Jekyll to Hugo in a weekend. I've also tried to stay as decoupled as possible from any templating engine (Jekyll), and hence rely mostly on pure HTML + CSS, while Jekyll is used more as the task runner. All the posts are separated by "YYYY" as folders and none of the posts have frontmatter.

I can also move between Github Pages, CloudFlare Pages, Netlify, or Vercel within hours if not minutes by just pointing the DNS to the ones that I want. I did this when Github Pages went down quite a few times about 3 years ago.

I almost went Markdown > Pandoc + Make but not worth it right now.
by hermitdev | 2025-04-23 13:51:48+00:00
The problem is: it's infectious into the generated code, as well. Is that 3rd party or not? Yes, it was generated by a 3rd party tool, but from, ostensibly, _your_ protobuf file.

edit to add: and yes `-isystem` is absolutely a useful tool. If memory serves, though, it doesn't protect from macro or template expansions, though.
by viraptor | 2025-04-23 13:51:56+00:00
When I want to write longer content, the last thing I want to think about in that process is html tags. Doesn't matter how simple - if it distracts from content, it has no place at that stage of the process. I'm also very likely to include code snippets in any post I write and I extremely don't want to write the code colouring by hand every time.
by hnuser123456 | 2025-04-23 13:51:57+00:00
There is a built-in charge limiting feature in Android now, so that doesn't need any apps, but the only options are limit to 80% or 100%. But for something like this, how else are you going to get your phone to tell a charger when to turn off? Apparently, making an API that allows devs to reliably stop charging in software is too risky, so IoT devices with companion apps are the solution, of course. Not to mention the device manufacturers are probably quite happy to have batteries degrade significantly after warranty ends.
by sph | 2025-04-23 13:52:16+00:00
Is there a pluggable fail2ban-like server for HTTP, to rate-limit and block with a 429 any rude bot?

Also, how come we haven't yet designed a system of pluggable HTTP pipelines? If you have a custom web app, either you implement rate limiting by hand, or you set that up in your frontend nginx/caddy/apache/etc. It would be much nicer if we had standardized composable HTTP server processes that either handle a request, or pass through to the next one. That way rate limiting would just be a matter of plugging a rate-limiter process just before your web app.

I guess I just miss having Elixir's Plug system at the OS level.
by bluGill | 2025-04-23 13:52:37+00:00
Trump has a 25% chance of dieing of old age before his term ends. It is unlikely that the US will relax the 2 terms max for president allowing him a second term. If Trump is your worry then you can just wait him out. The real question is will others like Trump get into power next or not, and if so how like Trump are they? (I cannot answer that)
by joekrill | 2025-04-23 13:52:46+00:00
This is a few years old now:

> The article was updated on June 26, 2023, to include LocationIQ per the provider's request.

There are a few more options now (Stadia, Geocodio, among others). And I'm surprised this doesn't include MapBox, which surely existed then and has (comparatively) reasonable prices.
by 9dev | 2025-04-23 13:52:48+00:00
Id like to see you writing a semantically correct, accessible, responsive <figure> block containing an image of a chart displaying some data.

It takes me nine characters plus URL and alt text in markdown using Hugo. I would be surprised if you get it right on the third try without consulting MDN, spending time to research, do image conversions, and fiddle with the <picture> tag and its srcset attribute.
by cmrdporcupine | 2025-04-23 13:53:34+00:00
"On top of that, Canada's defence civil service is terrible at procurement."

You could remove "defence" from that and describe almost every large company or gov't in this country, too.

We need a moral and civil reform in this country, to really build again like we used to. Civic spirit revival.

Look at the joke of the Eglinton LRT, or even more so the Hamilton LRT. Even when we commit to building things, it turns into a swamp of mismanagement and a game of political hot potato.

Most embarassing thing about the Eglinton LRT is it sounds like its our (software) profession that is to blame for the latest series of dysfunctions. I'm disgusted.
by firefax | 2025-04-23 13:54:14+00:00
I was hoping for information on the ACCURACY of these sources.

My team has had issues where SIEM alerts are difficult to investigate because Microsoft inaccurately declares an IP geographically distant, then fires a second alert for "Atypical travel" since they seem to have traversed a vast distance between logging in on say, one's laptop and mobile.

(For whatever reason, mobile IPs, specifically IPv6 IPs, are the worst)

For me it's not an issue of cost, it's that if the data is inaccurate it is worse than useless -- it eats up my time chasing bad SIEM alerts.
by sneak | 2025-04-23 13:54:26+00:00
There’s no treadmill. Belief in software freedoms has always been belief in software freedoms.

It’s ok if you don’t believe in software freedoms, but you shouldn’t pretend to be someone who does by releasing some software that respects users’ software freedoms. It’s deceptive.

Either you care about software freedoms, or you don’t. If you don’t, why are you releasing any software under free software licenses? If you do, why are you releasing any nonfree software?

Also, do you have a single bit of backing data to suggest that your first sentence is true? I don’t believe that it is. It seems to me there is more free software than ever before.
by halffullbrain | 2025-04-23 13:54:34+00:00
So, no you don't need a "Microsoft-esque" company, you need independent service providers who just know their stuff. Today, a company (any company!) with the proper skills CAN offer setting up and maintaining government infrastructure, independent and sovereign from Microsoft, by using commoditized hardware and open source software, with no long term vendor lock-in.

The offerings do exist, and get some traction. If done right, they should be cheaper in both short and long run, compared to Microsoft licensing.

So, what's holding us back?

1) One element is aggressive pricing for key customers and partners, on the part of the smarter incumbents (in this case Microsoft).

2) Another is a "reverse network effect": Scarcity of talent to create companies like the ones I suggest. And with too little supply, the demand side will be afraid to "not choose IBM" (figuratively).

3) A third is Microsoft 365's real-time collaborative editing. Yeah, really. The needs of some specific users get to dominate decision-making, since the key decisions are pitched in PowerPoint, analysed in Word, budgeted in Excel and distributed using Outlook. A lot of old dogs would have to learn new tricks.

But yeah, somebody really should do it...
by coldpie | 2025-04-23 13:54:58+00:00
Honestly? I just drive over to Best Buy now. Yeah it costs a few bucks more and I have to leave the house (this is actually a good thing), but I can be certain that the box on the shelf that says "surge protector" is actually a surge protector and I don't need to spend 15 frustrating minutes sorting through intentionally misleading trash to find it and then cross my fingers that what I order is what I actually receive.
by llm_nerd | 2025-04-23 13:54:58+00:00
>This really isn't civil

It's a statement of fact. Meta profits off the worst of society. It is a heinous company.

If you find my comment so reprehensible, feel free to downvote, flag, etc. The crocodile-tear moralization comes across as concern trolling, and it's just a waste of bits.

>What is your end goal here?

You strangely keep editing this. I stated my thoughts. People are free to disagree. If it's so distressing to you I suggest you look inwards as to why that is.
by lucideer | 2025-04-23 13:55:00+00:00
As someone coming from Javascript/Typescript & now working full time in Python, this is a lovely - mostly fantastically useful - little resource. Some choice observations:

1. Typing overloads: TS has typed overloads I think largely as an affordance to an unfortunate feature of Javascript. In my experience overloads are an anti-pattern or at best code smell. It's nice that you can type them if you're cleaning up an existing codebase that uses them but I would consider them tech debt.

2. Keyword-only and Positional-only Arguments: This is the opposite of the 1st feature (ability to make method signatures more strict) but man is the syntax cryptically terse. I'd love to use this everywhere but I'd be concerned about readability.

3. Future Annotations: Thank you for this section - forward references have been a real pain for me recently & this is the first explanation that's scratches the service of the "why" (rather than just focusing on case-by-case solutions), which is much more helpful. Bring on PEP 649.

4. Generics: Cries in legacy 3.10 codebase

5. Protocols: As a Typescript guy, this seems very cosy & familiar. And not very Pythonic. I'm not sure how to feel.

14. Metaclasses:

> if you are that 1% which has a unique enough problem that only metaclasses can solve, they are a powerful tool that lets you tinker with the internals of the Python object system.

OR if you're one of the many devs that believes their problem is unique & special & loves to apply magical overengineered solutions to simple common problems, then the next person who inherits your code is going to really love your metaclasses. They sure make tracing codepaths fun.