Slashdot Mirror


User: psmears

psmears's activity in the archive.

Stories
0
Comments
486
First seen
Last seen
Profile
(view on slashdot.org)

Comments · 486

  1. Re:I beg to differ on Why There Is No Such Thing as 'Proper English' · · Score: 1

    There's nothing wrong with "cancelled" - it's the correct spelling outside the US!

  2. Re:A Language With No Rules... on Why There Is No Such Thing as 'Proper English' · · Score: 1

    but for example the american A in words like "cat" and "path" is historic, unlike the British pronunciations which match the a in "father"

    You make some interesting points, but you clearly have some very strange ideas about British pronunciation :) For example, the vowel in "cat" (in "standard" British English - what, for example, most announcers would use on the BBC) is nothing like the vowel in "father". And many British accents are rhotic, too!

  3. Re:A Language With No Rules... on Why There Is No Such Thing as 'Proper English' · · Score: 1

    "So being lazy and using improper English is impolite to the extreme."

    Motes and beams, people! If you're going to moan about "improper" English, it's best not to make lots of errors yourself: - you started your sentence with "So". The word you ought to have used was "Thus". - you missed out the comma that should have followed the "So" - the expression is "in the extreme", not "to the extreme" - even had you used "in the extreme", it would still have made for an awkward and inelegant sentence, compared to the obvious alternate of "... is extremely impolite."

    Do you have a credible source for any of these so-called rules? In particular:

  4. Re:Not ready for primetime on Ubuntu To Officially Switch To systemd Next Monday · · Score: 1

    This because it is Linux or the GNU toolchains that has issues with multiple lib versions (the major source of "dependency hell"), it is the package managers.

    Actually the package managers can handle it just fine (well, I know RPM can, and I *think* dpkg/apt can too); usually the problem is that the libraries are packaged in a way that doesn't support this. If two versions of a package share no files (e.g. if you provide "libxyz.so.1.0.0" in one package, and "libxyz.so.1.1.0" in another version of the same package, RPM can handle having both versions of the package installed with no problems at all. This is used, for example, to support having multiple kernel versions installed on RedHat-type systems. What becomes a problem is if you have (say) binaries in the same package, with the same name in each version, but different contents: naturally RPM will report a conflict if you try to install both.

  5. Re:Incredible on "Exploding Kittens" Blows Up Kickstarter Records · · Score: 1

    Doesn't make any of it "incredible."

    I dunno, I find most anti-science hard to believe! ;-)

  6. Re:You didn't upgrade systemd. on Live Patching Now Available For Linux · · Score: 2

    You didn't upgrade systemd. You upgraded the systemd package. You won't actually start using the new version of systemd until you do a reboot.

    No, that's completely wrong. The new version will run if the package upgrade script tells the daemon to re-exec itself. Which (at least in the case of RHEL7), it does.

  7. Re:GOTO is a crutch for bad programmers on Empirical Study On How C Devs Use Goto In Practice Says "Not Harmful" · · Score: 1

    What would you propose as a better alternative to this idiom in a language that lacks exceptions:

    I propose this; namely using variables to keep track of the state of resources, and then cleaning up based on the values of those variables. In my experience this is much less error-prone than the "goto" equivalent - for example, reordering the code is much less likely to break the cleanup.

  8. Re:Its all about the noise? on $10K Ethernet Cable Claims Audio Fidelity, If You're Stupid Enough To Buy It · · Score: 1

    Ethernet packets do not have error correction, just error detection.

    Wrong - Gigabit ethernet (over copper) does have a form of error correction.

  9. Re:If it's accessing your X server, it's elevated on Why Screen Lockers On X11 Cannot Be Secure · · Score: 1

    Adding a registry entry to remap keys is pretty trivial, too.

    You need to be an administrator to do that. That makes it pretty non-trivial.

    It would, except that users having Admin access is much more common on Windows systems. (Being an Administrator on Windows does not (in theory, at least) have the complete "game over" privileges that "root" traditionally does on Unix-based systems, so there are still further privilege levels to be escalated to.)

    is running a different OS which doesn't treat Ctrl+Alt+Del in a special way

    Now your suggesting what exactly? That the attacker is going to throw in a linux live CD, boot it, run his 'fake login screen' that looks like the usual windows screen?

    Ok... yes I guess that is a theoretically possible attack; although you'd probably get caught as soon as the user isn't actually able to log-in and IT gets called in...

    Why would IT get called in? After the user's entered their password, you just display a simulated BSOD and then reboot into the genuine OS; no user will be remotely suprised ;-)

  10. Re:If it's accessing your X server, it's elevated on Why Screen Lockers On X11 Cannot Be Secure · · Score: 1

    Deliberately conflating, but not confused.

    It's hard to tell the difference from here ;-)

    I can trivially run a program to throw up a screen that looks like the login screen on a PC at work. TRIVIALLY.

    Adding a registry entry to remap keys is pretty trivial, too... as, for that matter, is running a different OS which doesn't treat Ctrl+Alt+Del in a special way! Thus any extra security provided is minimal. Which is fine - as you say, security doesn't have to be perfect in order to be useful - but in my view overselling the effectiveness of a measure is counterproductive.

    Nobody here is arguing ctrl-alt-delete is some magical super thing,

    Alas that is exactly what Microsoft claimed for years (possibly still claim?)...

  11. Re:If it's accessing your X server, it's elevated on Why Screen Lockers On X11 Cannot Be Secure · · Score: 1

    You aren't going to be tampering with or installing of ANY of that from user land.

    I think you're confusing the user vs administrator distinction with the userland-vs-kernel-mode distinction... but never mind...

    And if you have root... you can just install a keylogger be done with it. Why bother with dorky fake lock screens?

    What I'm saying is that the "Ctrl+Alt+Del protects your password" claim is overblown; the suggestions you give only amplify that, as they are even more ways to circumvent it...

  12. Re:Government agit-prop on The Quantum Experiment That Simulates a Time Machine · · Score: 1

    at nauseum

    I think you possibly mean ad nauseam?

  13. Re:If it's accessing your X server, it's elevated on Why Screen Lockers On X11 Cannot Be Secure · · Score: 1

    You're tricking yourself into security theater. You can't intercept an actual ctrl-alt-del, but you can read the ctrl and alt keys, and just unlock your fake lock a couple seconds later.

    This. Or the fact that there are registry entries that allow remapping of any key to any other, including (as far as I remember) the Ctrl, Alt and Del keys. The "security" of Ctrl+Alt+Del has always been over-hyped :-)

  14. Re:Modula-3 FTW! on Ask Slashdot: Is Pascal Underrated? · · Score: 1

    [1] It could be a macro, but most coding conventions require macros that can't be used as if they were functions to be all-caps.

    Or x could be an array... in which case the called function can modify the value of the variable. The point you're making is valid, but C isn't 100% consistent in this regard :)

  15. Re:Modula-3 FTW! on Ask Slashdot: Is Pascal Underrated? · · Score: 1

    IIRC, pascal begin/end are not optional.

    If body of the "if" (or "while" etc) is a single (simple) statement, then "begin" and "end" are optional - so you can write either

    if cond then
    begin
    do_stuff()
    end

    or

    if cond then do_stuff()

  16. Re:Modula-3 FTW! on Ask Slashdot: Is Pascal Underrated? · · Score: 1

    For example, you can compare the readability of Arabic numbers vs Roman numerals by asking two people proficient in each to perform the same arithmetic calculations, and you time them.

    That would measure how easy it is to perform arithmetic in the two systems... which is not the same as readability. Similarly it's a good idea not to confuse "easy for a computer to read (and execute)" vs "easy for a human to read (and understand)" - both are important in different ways, but they are entirely separate concerns!

  17. Re: a better question on Why Run Linux On Macs? · · Score: 1

    Perhaps you should once google what QMX actually is, so you relize it has nothing to do with 'process control'.

    QNX, not QMX. It's a hard-realtime microkernel OS. That doesn't mean it can do process control on its own, but the realtime features are handy if that is what you want to do with it.

  18. Re: Fuck Me on SystemD Gains New Networking Features · · Score: 1

    RISC OS had (limited) support for pre-emptive multi-tasking too, in the form of the TaskWindow stuff.

  19. Re:Programs people want to use... on How We'll Program 1000 Cores - and Get Linus Ranting, Again · · Score: 1

    Why haven't you written such a thing before? Because it's too much hassle. Which is the very reason threading is underused.

    LOL. Actually there's a better reason such a thread launch facility doesn't commonly get written - which is that, in most circumstances, it really doesn't help performance that much, if at all - and the added complexity makes for a big net minus. There are a number of issues:

    Firstly, spawning threads is expensive. Yes, on Linux it's "cheap", but that's "cheap" compared to other implementations - it's still a lot compared to doing a modest amount of work on the local CPU. (Why is it so expensive? Basically because there's a lot of housekeeping to do. In addition to the kernel creating new kernel structures for the new thread of execution (similar to creating a process), the process's thread library must allocate a stack for the new thread (involving modifying the process's page tables), iterate through all loaded shared libraries in order to allocate any thread-local storage they require, and so on, requiring multiple syscalls, a TLB flush, at least one context switch, and so on. To some extent the impact of this overhead can be reduced by maintaining a pool of ready-created threads, but this either takes away control of performance (if done automatically by your language/library) or substantially increases complexity (if you implement it yourself, since you then have to synchronise the threads carefully).

    The second problem is that, unless you're very careful, extra threads don't buy you much performance, and can indeed hurt. Take the example you gave - doing some processing on each struct in an array, where each such struct contains an int and a double (16 bytes total, including alignment padding). With 64-byte cache lines (typical on x86), there are 4 such structs per cache line. If you distribute the processing over threads running on different cores, then instead of one core waiting for the cache line to come in to main memory, and then processing the 4 structs very rapidly (since they're now all in cache), you'll have 4 cores each waiting for the data to be available - i.e. up to a 4x slowdown for memory-bound tasks. And that's assuming the structure is only read from; if it's written to as well then the cache line will have to bounce between cores, and the multithreading slowdown will be many times worse. Now, if you ensure that structs in the same cache line get processed by the same core (ideally in sequence, and by the same kernel thread), then you do potentially get a big speedup - provided you don't hit any other gotchas - but the C++ code you're promoting doesn't seem to guarantee this in any way.

    Third, and perhaps most importantly, data dependencies matter. In your example you're detaching all the threads; this is not realistic, because that means you cannot ever depend on their operations having finished. In the vast majority of cases you do need to know when an operation has finished: you're generally doing work for a reason - i.e. that you're going to use the result - and you can't begin to use that result until you know it has been produced. That, in of itself, adds complexity: you have to analyse your program's dataflow much more carefully in the presence of threads, because C/C++ will quite happily let you use a variable before another thread has finished assigning to it, without any sort of warning or exception. The analysis can certainly be done, and synchronisation put in place to eliminate the problems - but that is further overhead, both in the program's performance but also in the complexity of the program itself, and hence the time taken to write it (and especially to enhance it later, when the synchronisation model may not be so fresh in one's mind).

    Used correctly and in the right circumstances, threads on an N-core system can give a N-times speedup (or greater, due to caching effects). Used badly, at best they'll reduce performance, and usually they'll increase complexity and lead to subtle bugs that are hard to debug.

    The new thread features in modern C++ are very cool, but the fact they didn't exist before is not what's been preventing competent programmers from using threads all over the place :)

  20. Re:Contracts on UK Hotel Adds Hefty Charge For Bad Reviews Online · · Score: 4, Interesting

    Retail or not, contracts are binding.

    Contracts tend to be binding even when both parties don't read--most contracts are not read but are binding

    Are you sure about that? Note the following (from the American Law Institute):

    Where the other party has reason to believe that the party manifesting such assent would not do so if he knew that the writing contained a particular term, the term is not part of the agreement.

    i.e. if you put terms into a contract that you know your customers aren't likely to agree to, then they're not binding, even if the contract is signed.

  21. Re:Yeah, right... on Black IT Pros On (Lack Of) Racial Diversity In Tech · · Score: 1

    Vegan pizzas seem like a waste of time (iirc Vegans don't do cheese?).

    Vegetarian pizzas? Fine, no problem.

    The majority religion in India is Hinduism; many adherents do not eat meat or eggs, but will generally eat dairy products, including cheese. So yes, vegetarian rather than vegan :-)

  22. Re:Not this shit again on How To End Online Harassment · · Score: 1

    Thanks - that didn't come up in my search results for some reason :-/

  23. Re:Not this shit again on How To End Online Harassment · · Score: 1

    None of it, expect of course that the University of Utah confirmed it, and a lot of people there have received this message. Read it for a fine example of crazy reactionary misogyny.

    University of Utah confirmed that threat was completely un-credible and there was no credible threat to the students or anyone else. Once again you are so woefully uninformed about the most basic of facts that I wonder if you even so much as googled any of this before posting.

    I couldn't find a source to back that up; instead, googling showed that the University of Utah prepared to enhance their security as a direct result of the threat. Or did I miss something? It's admittedly quite hard to search for without the results getting swamped with gamergate coverage of one sort or another...

  24. Re:You REALLY want to go down that road? on How To End Online Harassment · · Score: 1

    I lost count at 30 people doxxed by those that claim to stand for "feminism" and against gamergate, starting with the black developer who lost his job to racists harassing his boss and going downhill from there to people's bank accounts getting hacked, their utilities turned off, their income held up by fraud, a couple attempts at SWATting, and even syringes, knives, and dead animals in the mail.

    I've missed all this... do you have any links?

  25. Re:Additional... both sides are showing bad behavi on How To End Online Harassment · · Score: 1

    Many of the journalists and supporters of the anti GG side have doxxed people... with their main accounts in the clear. Not sock puppet accounts that could be anyone. But they did it directly.

    I haven't seen any of this; do you perhaps have a link?

    I don't know why people keep bringing up harassment like this helps the anti GG side because the anti GG side has harassed far more.

    Who said "we should bring back bullying" was that GG or anti GG? Anti GG. Every single fucking time.

    I did see that one (only once though); at least the idiot in question apologised...

    So they have no moral high ground there and I just thought that should be made very fucking clear. To the contrary, it is they that should be apologizing and explaining their own behavior which has been far worse.

    People prominent in GG have received death threats, have had people call their work and tell their employers they're pedophiles, have had things mailed to their homes like knives or syringes...

    Do you have any links about these?