Readit News logoReadit News
m000 commented on Syncthing 2.0 Released   github.com/syncthing/sync... · Posted by u/KindOne
rehevkor5 · 13 days ago
It also syncs modifications, so it's not really a backup solution.
m000 · 13 days ago
It can be, if you enable file versioning [1]. Or, of course, if your remote filesystem is configured for periodic snapshots.

[1] https://docs.syncthing.net/users/versioning.html

m000 commented on Syncthing 2.0 Released   github.com/syncthing/sync... · Posted by u/KindOne
mixmastamyk · 13 days ago
I use rsync for this, what does syncthing do better? Maybe have a nice GUI?
m000 · 13 days ago
You can thing of Syncthing as a p2p dropbox. It can also double as a "live-backup" program, similar e.g. to Time Machine, if you enable file versioning in one of the peer nodes.

Rsync is great as there is a clear master copy. But if changes may happen at any copy of the data, it can become a chore.

Dead Comment

Dead Comment

m000 commented on US to rewrite its past national climate reports   france24.com/en/live-news... · Posted by u/mdhb
m000 · 17 days ago
Coming up next: US to rewrite its past laws of physics.
m000 commented on AI overviews cause massive drop in search clicks   arstechnica.com/ai/2025/0... · Posted by u/jonbaer
dspillett · a month ago
>* If I am lucky, there is a "necessary only".*

I never use those. I suspect that in many cases if there are "legitimate interest" options¹ those will remain opted-in.

----

[1] which I read as "we see your preference not to be stalked online, but fuck you and your silly little preferences we want to anyway"

m000 · a month ago
"legitimate interest" is just weasel words. With some mental gymnastics, you can argue for anything to be legitimate. And you can continue to do so until someone steps up, challenges your claims in a court, and wins the case.
m000 commented on What will become of the CIA?   newyorker.com/magazine/20... · Posted by u/Michelangelo11
ACCount36 · a month ago
The last major intelligence coup CIA had (that we know of) was when the agency called the Russia's invasion of Ukraine months in advance.

Going public with that was a bold call - CIA put its reputation on the line. But Ukraine was more prepared because of it - and so were its allies.

A lot of Ukrainian officials didn't believe that the war was about to start up until the moment it did. Imagine how much worse the situation could have been without US beating the drum.

m000 · a month ago
> The last major intelligence coup CIA had (that we know of) was when the agency called the Russia's invasion of Ukraine months in advance.

If you have invented the disease, then surely you can warn in advance that a cure will be needed.

m000 commented on What will become of the CIA?   newyorker.com/magazine/20... · Posted by u/Michelangelo11
ozgrakkurt · a month ago
It is insane that this is downvoted. You have to be wrong in the head to think that a country helping a coup that clearly damaged another country is a good thing.
m000 · a month ago
White savior complex: "We know better what's best for you."
m000 commented on Insights on Teufel’s first open-source speaker   blog.teufelaudio.com/visi... · Posted by u/lis
fsckboy · a month ago
>the longer a speaker is used by the customer, the lower its CO₂ footprint

if a rich audiophile replaces his speakers every year with the latest and greatest, and his old speakers get passed down the food chain to other audiophiles with lower budgets, what falls off the other end of the chain is a very old speaker which whose carbon foot print has been amortized over 10 years or more, and a better listening experience for everybody in between, and perhaps even speakers for people who would not otherwise even have them who picked them up at Goodwill.

also, a healthier industry with more employment for folks who won't have much employment if they only sell a pair of speakers every 10 years.

m000 · a month ago
This is Reaganomics [1], but for speakers. There's just a handful of audiophiles that would be replacing their speakers every year, so there would be hardly any "downflow" of quality second-hand speakers.

And repairability just means that the industry can move people from manufacturing to service and support.

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

m000 commented on NIH is cheaper than the wrong dependency   lewiscampbell.tech/blog/2... · Posted by u/todsacerdoti
zelphirkalt · a month ago
Recently I had a good time avoiding a few dependencies. I am developing a project using Django and it go to a size, where I felt I should add testing to it.

But to test things, I would need instances of model classes. However, I didn't want to have to specify all the required fields every time I needed an instance for a test. The fields might be mandatory, but not always relevant for each test. Such a field needs to be filled, but not necessarily by me in the test code. I knew from earlier projects, that Faker generates random data and in the past I have thought it shouldn't be difficult to write a thing that generates random strings and numbers and ids for fields, and recursively other required entities. So I decided to write it myself [1], rather than introducing factory boy and faker as dependencies.

Sure those libraries will have a lot more features, but my code is simple and does what I need and I gained additional understanding of the complications with Django's model handling.

I also suspect, that factory boy has to hack around some issues, that I avoided by always creating entities in the database, which most of my code is doing anyway. I am not sure how they solved creating instances of models, that have many to many fields without persisting the entities in the database for example, because Django raises an error when one tries to do set a value for such a many to many field, without storing the entity in the database first, so that it gets an id. Which makes sense. So I suspect there is quite some magic in that dependency, that I don't need for now.

What's more is, that my factory functions are just as easy to use, if not easier. I simply do `factory_for_model(MyModel)(kwargs)`. It is also easy to add more functionality like `gen_multiple(factory, count)` for example. Uniqueness is more difficult, due to how Django's fields and models are compared. But as far as I understand neither does Faker do uniqueness out of the box. I may be wrong about that though.

I also developed a decorator for pytest functions, that helps me avoiding long test names and instead puts a test description in the decorator arguments. Those sentence long test names have previously annoyed me and always caused linting to attack me for it.

[1]: https://codeberg.org/ZelphirKaltstahl/web-app-vocabulary-tra...

m000 · a month ago
Test-only dependencies should be maintained separately from functional dependencies.

For standardized things like testing, I'm not sure if DIY makes sense. Even if you use 10% of its capabilities, sticking with an established test framework makes your codebase more maintainable and easier for others to contribute to.

u/m000

KarmaCake day2322March 18, 2018View Original