@pie_flavor said in Apple stand:
feel free to actually explain how I'm wrong instead of simply wharblegarbling.
Feel free to explain how the notion of "better" or "worse" can possibly be objective.
@pie_flavor said in Apple stand:
feel free to actually explain how I'm wrong instead of simply wharblegarbling.
Feel free to explain how the notion of "better" or "worse" can possibly be objective.
@Gurth said in Automation vs Today's Jobs:
How many modern politicians take a long-term view? Anything that goes much beyond the next election is too far away for them to really bother with, a lot of the time.
My take is that, even if they wanted to, they cannot afford to take a long-term view. If they did, they'd be lynched by the angry mob way before the end of their term and their successor will promptly undo any possible progress that might have been made, to "fix the damage" of the previous "bad" government and gain populism points.
@Gąska said in Foldable Tablet gets us.... something we already have?:
As a research project, me too. As an actual product - I just don't think the benefits justify the price and the potential (thanks to Samsung - actual and very real) durability issues.
In that case, you should thank all the foldable tablet aficionados for sponsoring this long-term research project, instead of arguing with them
@Bulb said in TIL (about the Dark Arts of HTML):
@Benjamin-Hall IIRC they have no overlap at all. Flexbox is the only thing that can 1. make something expand to whatever space is left after placing the fixed-size elements and 2. align any element vertically (in tables it only works for text IIRC), which were the things I needed.
AFAIK both of these can be done with grid; for 1. you'd need need to define an appropriate "row template" or sizing constraints on each element. Vertical alignment is more or less the same between flex and grid I think (they basically just copied the flex alignment properties into the grid spec).
But if these are the only things you need, flex is definitely the better choice.
@kazitor said in TIL (about the Dark Arts of HTML):
TIL Python has extremely permissive indexing syntax.
Yes, that's one of its great features IMHO.
@cvi said in A.I. gone wrong...:
mooning becomes so much more efficient if the local government displays it on a large display in the middle of town.
See also: There is no such thing as bad publicity.
@kt_ said in The A in Apple is for Affordable:
I'm comparing S7 to 7. Not IP67 to IP68 specifically.
Yes but just above you said
@kt_ said in The A in Apple is for Affordable:
To sum up: the difference between iPhone 7 and Galaxy S7 was IP67 vs. IP68.
So comparing S7 to 7 is comparing IP67 to IP68 in this context
Sorry for dragging this on. I'll do my best to calm down my inner now.
Pornhub just got sued because it lacks closed captioning in videos, making it hard to watch for the deaf.
Ideally they'd offer overlays of sign language interpreters...
@kt_ said in The A in Apple is for Affordable:
The time limit on both is the same.
I'm sorry but to my reading your own Wikipedia quote disagrees on this (emphasis mine):
@kt_ said in The A in Apple is for Affordable:
Here you have info about what the second number in IP code means. Respectively 7 and 8:
7 - Immersion, up to 1 m depth- Ingress of water in harmful quantity shall not be possible when the enclosure is immersed in water under defined conditions of pressure and time (up to 1 m of submersion). - Test duration: 30 minutes - ref IEC 60529, table 8.
8 - Immersion, 1 m or more depth - The equipment is suitable for continuous immersion in water under conditions which shall be specified by the manufacturer. However, with certain types of equipment, it can mean that water can enter but only in such a manner that it produces no harmful effects. The test depth and duration is expected to be greater than the requirements for IPx7, and other environmental effects may be added, such as temperature cycling before immersion. - Test duration: Agreement with Manufacturer
Purely from what's been quoted here, I would understand "continuous immersion" to mean "without time limit". So IP68 promises "you can keep this thing stored in water for as long as you want" while IP67 promises "you can chuck this thing into water for half an hour but then you better take it back out".
The test duration is obviously not infinite, But:
@Steve_The_Cynic said in The A in Apple is for Affordable:
Some time ago I looked at the Mac mini for a specific low-demand thing in my own network.
The Mac minis started out as that kind of machine, but I guess with the appearance of products like the Raspberry PI they figured they can't / don't want to compete in that segment and one-upped on the price and hardware to find themselves a new niche.
I still have one of these faithfully serving up my music library up to this day:
That thing must be 10 years old now, and it's still running reliably and serving its purpose.
@dcon said in Hmmmmmmm - part 391 VS Code suspicious amounts of memory:
Opening it in the RC editor
That thing is a pile of dung and feels like it hasn't been maintained since 1972. My attitude towards it is "avoid at all cost, and if you are unfortunate enough to accidentally open it, pray the RC file is still open in some other editor so it refuses to touch it, or it will shit all over the file". Never much used it for any GUI stuff, though.
Filed under: Then again, maybe after all these years I'm just still bitter about the demise of ResEdit
@benjamin-hall said in WhatsApp's illegal:
I don't see any practical way in which a phone number (designed specifically as a public point of contact for an individual) can be private information. If it's private, it loses its entire reason for existence. If you share it with anyone, it's not truly private.
So are my face, name and address. I'd still like to limit the publication of these to random people as much as possible. There's a continuum between keeping something secret and just giving it to anyone at all. Personally identifying information is somewhere in between. Or would you post your name, address and phone number here? Anyone who can contact you has at least one of those anyway, so what's the problem?
@benjamin-hall said in WhatsApp's illegal:
Spammers are almost all already violating laws elsewhere
That doesn't mean I have to make the job any easier for them, and also doesn't mean I have to help entities I directly interact with making it easier for them.
@gąska said in WhatsApp's illegal:
or have the politicians pass laws that will protect people against abuses of corporations that make hefty donations to the very politicians writing and voting on those laws.
... and to have any chance of getting politicians to do that we'd have to...
@gąska said in WhatsApp's illegal:
make people care about data privacy at least as much as they care about pet abuse
and, as you said,
@gąska said in WhatsApp's illegal:
good luck with that
@gąska said in WhatsApp's illegal:
unfortunately, it's not people that make these decisions
...? So it's... machines, then?
@laoc said in Big list of software that cannot handle spaces or accents in paths:
In case you can't remember more than five posts back, you said pretty much every file system in existence already supported what you need to have this parallel ID/filename scheme.
That was me, if you're referring to this post. If it wasn't clear, that was more of a quick thought I threw out to see what could come of it, rather than a finalized design spec, so thanks for your feedback!
I wouldn't expect such an implementation to be particularly well-performing, but I suppose with some optimizations (indexing, caching etc) it could reach "usable" levels. Creating a dedicated file system which is actually optimized for this use case would of course be preferable., but more work to get to a first functional prototype.
Concerning
How do things like for f in *.txt *.log; do ... work
First off, this has nothing to do with file names (as others have already pointed out), you want to query by type. If I was to set out to try and actually design such a hypothetical nirvana file system, I'd definitely try to get rid of these bizarre Reverse Hungarian Notation warts at the same time, because the whole point of the exercise is to move file metadata out of the file name to where it actually belongs.
Second off, globbing is IMHO one other very problematic piece of functionality. Apart from the classic "who is responsible for it" Windows-vs-Linux problem, it mixes data and structure, and thus makes it impossible to treat file names as opaque binary blobs. As such it has the exact same issues (plus some more) that paths have and which has triggered this whole discussion.
So probably the goal would be to get something like
for f in glob(cwd, type="text/plain") do ...
which does a look-up in some kind of metadata index which would ideally permit efficient filtering on any type of metadata (names, types, creation/modification dates, permissions etc). cwd
would be an argument passed to the script by the shell, which contains the ID of the working directory.
Yes, this would probably involve some indexing and parallel storing of data to get any kind of production-scale performance, which would probably be hard to get right. But AFAIK so does any kind of efficient lookup in SQL databases.
I'd say the "file names vs. file IDs" debate is essentially the "natural key vs. surrogate key" issue, with many of the same arguments on both sides applying to either discussion.
@Gąska said in Favorite Anti-Pattern:
separately in another context, your non-trivial action has no error conditions because they've been checked earlier and are now invariants. That's both more readable and makes it easier to follow the logic
No it's not, because it's still the same code, at best the level of indenting has changed a bit. However it's now divorced from its context, so if you want to verify what these invariants are that this code block depends on (for example because you need to verify that you didn't miss any), you now need to hunt down the calling site (and pray there's either still only one of them or all of them verify the same set of invariants). Code that doesn't specify what assumptions it's based on is the wurst. The most reliable and explicit way to specify these is by preceding the code with more code that checks them.
The only time separating out parts of a function into a new function actually improves readability is when your original function was mixing up levels of abstractions. In that case, that's your problem and that thing should have been its own, independent function from the start, anyway.
@sebastian-galczynski said in Science and Replication:
whereas I think it comes down to a certain worldview
"dreaming of systems so perfect that no one will need to be good" *
@Gurth said in Tales from Coronavee-rooss Italy, mamma mia!:
Depends on which one it is, I think.
IIRC, it depends primarily on if it's water-soluble or not. For most of those that are (e. g. vitamin C), you can take more or less as much as you want, as any excess intake gets washed out again with the urine. Those that aren't (e. g. vitamin A) take much longer to eliminate and thus they are dangerous. Also, I remember some of the vitamins in the B group are non-soluble, but for these, the vitamin supplement tables contain their water-soluble precursors instead of the "actual" vitamin.
@El_Heffe said in The Official Funny Stuff Thread™:
I hear stories from the chamber
How Christ was born into a manger
And like some ragged stranger
Died upon the cross
And might I say
It seems so fitting in its way
He was a carpenter by trade
Or at least that's what I'm told
@GuyWhoKilledBear said in Another GDPR? Electric googleoo?:
Dude, I said I wasn't going to come liberate you.
Yeah but I'm attributing that entirely to and not to any lack of desire to do so
@dragnslcr said in "Hacking" Teenager in trouble - for downloading public documents:
If your insurance company totals the car, then yes
Most insurance contracts require you to do take reasonable measures to protect the insured item. So if you left the car open with the key on the ignition, even if the incident is considered theft your insurance will probably say "LOL nope" anyway.
@thecpuwizard said in Breach in the defenses:
On one side there is the "mechanical details" of which you listed a few of the key improvements that do make it much easier to implement. At the other side there is the overall design and mindset [not unlike the shift from procedural to OOD, or the transform from OOD to Functional], which to me is a more important aspect of Generic Programming
For me the advances with the "mechanical details" made me start to actually consider and investigate such techniques because they suddenly passed from the realm of "maybe theoretically feasible but way too head-ache inducing to even consider" into "actually practically feasible with usable results without completely giving away my (and my co-workers') sanity".
But yeah, I'll stop derailing this thread now.
@bjolling, @Steve_The_Cynic Both of these seem problematic to me. I agree with bjolling about Notepad, and the same applies with other bundled applications such as GarageBand or iMovie on MacOS.
On the other hand, the secondfirst definition would exclude stuff like Windows Explorer or the Windows Control Panel (or the sound output switching widget ), which just seems ridiculous to me. It's like saying Linux is an OS: this IMHO is bullshit, or maybe just ry to the point of ridicule.
In my book, an OS is a kernel plus all the stuff you get out of the box to interact with it, including any user-space libraries used by applications and any GUI tools to configure system-wide settings.
ED: Thanks @bjolling
@mrl said in Windows 10 vs Sound:
I have a strong feeling that you just like to be angry and bitch a lot.
Well, (s)he's here on the forums, so that's basically a given.
@mrl said in Windows 10 vs Sound:
Or maybe something is keeping you from fixing this gargantuan problem?
I wouldn't want to speak for @carnage, but from the previous posts I'd guess lack of access to the Windows source code is.
@thecpuwizard said in Sonos bricking devices intentionally:
Alas, there have been legal rulings that can cause a company to be exposed to significant liability even for something that is "no longer supported". It would be a great conversation around that, but it is really independent of this specific thread.
On the contrary, I would guess that this exactly is the reason for the "bricking update": they are scared that one of the old batteries goes up in flames, and they get sued over it; so they prefer bricking all devices rather than taking that risk.
@luhmann said in You have the right to 10Mbps:
the place where the popular vote denied citizen ship to a vegan.
Oh, did we do that? Must have missed it... But I'd guess it didn't have that much to do with being vegan, we just deny citizenship to anyone. Heck, we just recently refused to slightly facilitate naturalization to third-generation resident foreigners.
@dkf said in Big list of webapps masquerading as native:
- self is an explicit argument.
I have to agree with @Bulb that this is a good thing.
- Decorators on members of classes can't know what class they're decorating something for.
Not something that has ever been much of a problem to me, and seems consistent with the notion of function decorators. Use decorators to customize functions, metaclasses to customize classes.
That said, a similar thing which always annoys me is that a descriptor's getter or setter can't know by which name it was accessed.
- @staticmethod vs @classmethod…
In practice I just don't use @staticmethod, and I don't really see why it would be a problem that both exist; just take your pick.
- Take a peek at how Abstract Base Classes actually work sometime.
Now that made me go when I first read about it, I perfectly agree on that one. It's true that the notion of "abstract base class" dos not really fit into the language's object model. Still, in practice I don't think I have ever encountered actual problems due to this.
@Dragnslcr said in Rejected Rejection Letters:
@Arantor said in Rejected Rejection Letters:
Lawyers generally have high expectations with respect to communications
Clearly you worked with different lawyers than I did.
I'd say lawyers generally need very good communications skills, just like participants in the Underhanded C Contest generally need very good coding skills.
@Atazhaia said in The Official Funny Stuff Thread™:
interesting music mixes
Wouldn't call that much of an "interesting music mix", sounds just like Backstreet Boys would after taking a few lessons of Japanese.
No, it isn't. AE is alternate spelling, not an upper-case variant.
You're right about that. Happy to finally hear someone actually making a valid argument to refute me rather than just going "nanana not a problem because my text editor thinks you're wrong".
Probably mixed it up because for me this is a similar kind of issue as case sensitivity: different sequences of letters may or may not represent the same word, and the question if they do or not is non-trivial and entirely dependent on locale.
As far as that rant from the OT is concerned (inb4 ), the gripe seems to be that C header files are a poor way to specify an ABI because C does not define an ABI. Well, d'uh.
Riiiiiight. The "
I'm a genius!I have learned German at some point" argument.
FTFY
@hungrier said in Millennial wants to play Red Dead 2, but doesn't want to hurt the poor little animals:
As opposed to animals, who are known for their careful planning
Well, no, but generally speaking I don't think they have the hubris to believe they do, and they have vastly inferior means to cause damage.
And now we're into the thorny problem of what "causing damage" is supposed to mean, which I don't have the intellectual bandwidth to go into right now.
@boomzilla said in WTF Bites:
to_upper("ß")
In German, to_upper("ß") is "SS", there's no uppercase single-letter equivalent.
EDIT: But there's also the lower-case "ss", so to_upper() is a lossy conversion.
@loopback0 said in WTF Bites:
I’m a crepe, I’m a weirdo #radiohead #crepes #pancake
@remi said in TIL (about the Dark Arts of HTML):
inb4: something something Académie something something courriel.
Mais allez, rabat-joie, quoi!
Filed under:
@PotatoEngineer said in A fool and his not-really-money are soon parted:
I would have thought that most water-cooling setups would use a closed, circulating system,
You'd still need to get the heat out of the water. Much easier to just dump the water together with the heat.
I've put spaces in ELF symbol names in the past. What is possible and what doesn't fuck up your tooling
makes easyare two different things.
@Gąska said in Millennial wants to play Red Dead 2, but doesn't want to hurt the poor little animals:
I like that idea!
So you're the "fill the earth and subdue it" kind of type, are you now. No surprise there, I guess.
I thought the various versions of msvcrNNN.dll are not abi-compatible
I was under the impression that Windows at some point had public C++ APIs and because of that the ABI is basically set in stone.
@cvi said in Internet of shit:
They also typically want to keep the ability to do certification, which they would loose if anybody finds that out. That needs to be enforced though.
Yeah well, stories I've heard from the auditing world don't make me very confident in that. Don't remember the specifics though so maybe it's just me being my usual cynical self.
@cvi said in Internet of shit:
I haven't seen anything that supports this assertion - [...] about getting a free pass for doing any of the above (at least not any more than they might already get now).
Well yes, now they are getting a free pass every time. I was comparing to the utopian situation where they are actually held liable. I'm not saying that the proposal explicitly states they will get a free pass, just that it fails to state the contrary.
But the more I hear about Win11 and future MS plans I feel like I want to start making my own all the things.
Welcome to the club!
I think they're stealing it. Time, that is.
So that's where they went! Explains everything.
@boomzilla said in WTF Bites:
I look through logs a lot.
... and I hate it when the log viewers don't have an easy way to see the list of files changed. But that's a problem of the log viewer / generator, not the commit messages.
@PleegWat said in The Off By One Thread:
@Luhmann said in The Off By One Thread:
Since when do we have a porn thread?
Sorry, I don't have any cable porn to hand.
@Gustav said in Re: Shameless Plug - My New Novel:
Neither "decent" nor "cross-platform" were in requirements.
I was just hoping maybe you know something I don't
Not gonna dirty myself with WinAPI any more than I need to. Anyways my primary target (and development) platform is Linux so WinAPI isn't even on the table.
Any experience of using Qt from Rust perchance? Or should I start looking into X11 bindings? Zero experience of that but the general consensus seems to be
@HardwareGeek said in UI Bites:
@dkf Can't not have a Princess Bride reference:
Yeah, means it's not quite time yet to go through the pockets for small change
@levicki said in WTF Bites:
ondering if there is a C++ way of writing this type of casts:
uint8_t Buffer[20];
int a = *(int*)&Buffer[8];
... reinterpret_cast?