Slashdot Mirror


User: Malc

Malc's activity in the archive.

Stories
0
Comments
5,397
First seen
Last seen
Profile
(view on slashdot.org)

Comments · 5,397

  1. Re:Next up... on Breakpoints have now been patented · · Score: 1

    If you're going to use C++ (for the exceptions), use new and delete. You can safely pass a null pointer to delete. Oh, other pet-peeve: a & b aren't boolean, so don't treat them as such.

    int allocstuff()
    {
            char *a = 0, *b = 0;
            int iRetVal = -1;

            a = new char[100];
            b = new char[100];

            if (0 != a && 0 != b)
            {
                  iRetVal = 0;
            }

            delete [] a;
            delete [] b;

            return iRetVal;
    }

  2. Re:Next up... on Breakpoints have now been patented · · Score: 1
    Ugh: allocating on the heap AND using goto.

    int allocstuff()
    {
        try
        {
            std::string a, b;
    // Not exactly necessary in most situations, but ensure the buffer is 100
    // chars like the OPs (whose was 99 actually)
            a.reserve(100);
            b.reserve(100);
        }
    // Catch ... is bad, but can't be bothered to look up which exception is thrown. Most
    // of the time don't even bother with this try/catch and let the app die in out of memory
    // situations as it's too much work to try to continue and let the user clean up their machine.
        catch (...)
        {
            return -1;
        }
        return 0;
    }
  3. Re:I'd like to say... on Digg.com Attempts To Suppress HD-DVD Revolt · · Score: 1, Flamebait

    My mother works in a clinic for the mentally ill. Tell her that's she's spreading government disinformation when she mentions how she's seen a massive increase in the number of referrals for people who smoke cannabis. What is it with pot smokers that seem to turn them blind to the negative effects of their drug of choice, and how its effects are changing as the ratios of the active ingredients has changed over the years? I hope you don't have a psychotic episode or develop schizophrenia, as an increasing number of pot smokers do. Your choice.

  4. Re:biggest issue is filesystem on Microsoft Says Other OSes Should Imitate UAC · · Score: 1

    Re: modify & write

    Yep, it's not obvious what the difference is - I think write is a subset of modify. In fact you're only looking at a summary page there, which can used for quickly setting a whole bunch of security attributes. I suspect somebody thought modify as opposed to write was something that would be wanted enough that they created this item in this dialog. KB article 308419 tabulates the differences.

  5. Re:biggest issue is filesystem on Microsoft Says Other OSes Should Imitate UAC · · Score: 1

    I meant to add that the ACL stuff in NTFS is consistent across all objects in the system. As a UNIX user where everything is a file, you should appreciate that. The UI in regedit is very similar to Explorer for managing permissions. A simplified (more limited) version exists for SMB shares. As a programmer, I've dealt with the same concepts with process handles, thread handles, mutexes, etc. Yes, I've run threads inside a process with different and elevated permissions to the process, but it's the same model everywhere, and I like it.

  6. Re:biggest issue is filesystem on Microsoft Says Other OSes Should Imitate UAC · · Score: 1

    Ls (Cygwin build) shows UGO permissions (but I don't think it conveys all of the info). They're so limited though. I'd go as far as calling them obsolete, or obsolescent at best. NTFS also supports denied access, which overrides all access grants. How do you give access to multiple groups under Linux - hack around in /etc/group and it's unscalable syntax and create a group-of-groups and chown the file (been a few years since I tried this)? Gotta say I've come to prefer NTFS's ACLs to fighting old school UGO permissions. I think there's also finer-grained control of particular permissions (edit but not delete, instead of just write) under NTFS, but don't quote me. Also, when I see an s in a UGO file listing... how can I tell from looking at that what exactly's going on? I seem to recall it can mean more than suid root.

  7. Re:Let the market speaks on Lone Programmer Writes 352 Webcam Drivers For Linux · · Score: 1

    "I'm not talking about tools available to a programmer, I'm talking about tools available to a normal user. Besides, how does that data help you in Windows when it's of no use to anybody but MS or the hardware manufacturer?

    I've actually reported bugs in a few drivers in the kernel, and got mail from the author asking to provide the required details, then a patch with a fix. In less than a week everything was working the way it should."


    What do you mean: tools available to a programmer? It's a free download, and there is a KB article with instructions. Clearly from your comment there is an expectation that a normal user under Linux is different to a normal user under Windows. If Linux were more popular and more of these normal Windows users were Linux users instead, can honestly image they'd be reporting bugs in drivers in the kernel. Sounds a little like you're a programmer.

    "In Windows though? Good luck getting that sort of service. It's very common for a manufacturer to make hardware, release a buggy driver, then forget about it and go work on something newer. Even if you can get the info that would be needed to diagnose the problem, there's really not much point in it, as MS doesn't care unless it's in their code, and if the manufacturer doesn't care, you're screwed. If you do manage to report a bug and get it fixed, you might finally get it when they release the service pack 4 months later."


    As a matter of fact I reported a bug to Microsoft that was breaking our apps a couple of weeks ago. They were very responsive. They have a KB article and will be fixing it in IE8 (doesn't need to be sooner as they gave me a perfectly reasonable work around). Your point? It's not Microsoft's fault that third parties are releasing their drivers closed source - they could just as easily do the same thing under Linux (and in fact that happens sometimes). No difference between Windows and Linux then.
  8. Re:Let the market speaks on Lone Programmer Writes 352 Webcam Drivers For Linux · · Score: 1

    "Windows on the other hand, gets more and more obscure with each passing day. Starting from XP it reboots instead of letting you see the BSOD, so without considerable effort you can't even find what went wrong."


    That's not true. Windbg + minidump file (and maybe the NT event log) have a lot of information that can help here. It's not a considerable effort either. It's a much much better solution than what you're probably referring too: looking at the minimal amount of information that NT4 used to put on the BSOD screen.
  9. Re:Things to learn from Windows and OSX. on Virtues of Monoculture, Or Why Microsoft Wins · · Score: 1

    Huh? If I have spare time then I get to take on more projects. I'm paid for my time, so if I waste it doing needless research it's wasted money, whether one is cash strapped or not. I don't work for the government when I can't be fired for being lazy being inefficient or suckling too long on the money teat of the taxpayers.

  10. Re:Require maths A-level for acceptance? on Encouraging Students to Drop Mathematics · · Score: 1

    RTFA


    You must be new here.
  11. Re:Require maths A-level for acceptance? on Encouraging Students to Drop Mathematics · · Score: 1

    That was in 92. I took S-level physics classes on the off-chanced they'd be required, until Cambridge made me an offer that didn't require them. Ended up deciding to go to the University of Extreme Apathy in Norwich for the N. American exchange courses, married a Canadian, and haven't looked back!

  12. Require maths A-level for acceptance? on Encouraging Students to Drop Mathematics · · Score: 1

    Why are they giving extra lessons instead of making maths A-level a requirement for placement on a science course? Cambridge gave me a conditional offer to study Computer Science on the condition I had an A in Maths, and an A in Further Maths (as well as an A in Physics [more maths]). Other universities expected grade A-C at Maths A-Level. What's the problem here? Not enough science candidates if they require this A-level?

  13. Re:Things to learn from Windows and OSX. on Virtues of Monoculture, Or Why Microsoft Wins · · Score: 1
    Setting the record straight before some wise guy gets an opportunity...

    10 years as a software developer and many more as a teenage hobbyist


    That should be read as many more years beyond the 10 as a teenage hobbyist, and not that I was a teenage for more than 10 years.
  14. Re:Things to learn from Windows and OSX. on Virtues of Monoculture, Or Why Microsoft Wins · · Score: 1

    I don't want to have to do research. I don't have time any more. When I'm working, it's a waste of money. When I'm not working, well, I want to get away from computer and live life a bit. Don't get me wrong, I like my job, but after 10 years as a software developer and many more as a teenage hobbyist, I've spent enough time at the keyboard.

    So your one hour research has to be added to all the other hours researching. All of which will be lost soon. It's annoying, like upgrading the kernel Debian suddenly broke the mouse support under X... I had to spend a few figuring out just WTF went wrong and which configuration files I needed to edit. That's ridiculous! The mouse should always just work. It's so basic and simple. If I chose Microsoft, they've made mostly reasonable choices, and most things (especially a standard mouse) works. Apple seems to do it even better. Maybe it's not perfect, but I don't have to spend an hour here and there researching how to use my computer. I just want to get on with using it to accomplish the task at hand. It's a tool for doing things, not a task itself.

  15. Re:Wrong on Microsoft Responds to EU With Another Question · · Score: 3, Insightful

    That's the prevailing attitude in the US. It's not the prevailing attitude of EU citizens (but I'm sure a large number of Europeans would side with American stance). Microsoft is free to choose not to do business in the EU if it doesn't like this.

    In this situation Americans seem to be telling the Europeans how to run their markets and economies. Turn it around: as American, how do you feel about Europeans telling you how to run your justice system (e.g. death penalty and gun control?) and health care systems? Both sides think their approach is correct and that the other butt out and mind their own business.

  16. Re:I think you answered your question already. on QuickTime .MOV + Toshiba + Vista = BSOD · · Score: 0, Redundant

    Using up all available graphics resources will cause things to fail. If the desktop environment crashes because it can't get enough resources (be it X11 or Windows) then all apps tend to go down with resultant data loss. From my perspective as a desktop (not server) user, there's no difference.

  17. Re:I think you answered your question already. on QuickTime .MOV + Toshiba + Vista = BSOD · · Score: 1

    Instead of posting here, can't "Question Guy" install WinDbg and load the Windows' minidump. The callstack at the moment of BSOD is usually useful for determining who might be at fault. I used this approach recently for a colleague whose computer was crashing. She uninstalled her Logitech webcam drivers and software and problem was immediately solved. 30 minutes effort - that's quicker than reading the responses to this /. story, which probably won't elicit the answer anyway.

  18. Re:Title error... on QuickTime .MOV + Toshiba + Vista = BSOD · · Score: 2, Insightful

    QuickTime could be doing something bad like consuming and not releasing inordinate amounts of graphics resources. Not that I'm going to bother benchmarking it. Look at the way the app looks and behaves - the devs obviously have no clue how to develop for Windows.

  19. Re:I think you answered your question already. on QuickTime .MOV + Toshiba + Vista = BSOD · · Score: 3, Interesting

    I've heard that BS before, from the Mozilla devs. That was a couple of years before the they admitted to a huge resource leak with images that caused some computers to BSOD. Perhaps you want to blame the graphics driver... but Mozilla was the only app that triggered it. They claimed it was impossible for an application to cause a BSOD so there couldn't be anything wrong with Mozilla. Turns out they were wrong and their pig-headedness meant a massive bug sat their for years.

  20. Re:No, Sony will have a $600 player shortly on Wal-Mart Begins Massive Push For HD DVD · · Score: 1

    That's not the only one. The Samsung BD-P1000 is $500. Of course, it's so shit I'm surprised it is even allowed to carry the BD logo.

    A quick look at the list of players on Blu-ray.com indicates four players below $1000. The Philips BD-P9000 seems to work well, but is a little woeful on CPU. The new Samsung BD-P1200 performs really well, as does the Panasonic. The PS3 is like a super-computer compared with them though. Sony must have lost $1 billion on it already. The PS3 is the only one with enough horse-power at the moment for decent BD-J authored titles to load in under a minute.

    My personal choice right now (in order) would be: PS3, Samsung BD-P1200 and then Panasonic DMP-BP10 (this last one is rather pricey though).

  21. Re:MMMhm... on Samsung to Launch Dual Blu-ray HD DVD Player · · Score: 1

    The use of terms like M$, Mickey$oft, etc aren't just getting old, they're childish too. They devalue what somebody is trying to say as they come across as some sort of juvenile with no credibility. I for one start skipping comments like that, or don't take them seriously - if others do the same then the person who wrote it has sort of wasted their time.

  22. Re:Photo Radar on Police Objecting to Tickets From Red-Light Cameras · · Score: 1

    Perhaps one possible solution is to use a distance/average speed test with license/number plate recognition. Some toll roads already have cameras at entrances and exits with this system. If you're in the UK, there are cameras everywhere anyway! However - the kinetic energy thing aside - I have a greater problem with people speeding in residential areas than I do on freeways/motorways. The difference between 25 and 35mph is the 80% versus 20% fatality rate of collisions with pedestrians. I'm not sure how to crack down on dickheads speeding in those areas as I dislike passive traffic calming methods.

  23. Re:Where do you live? on Police Objecting to Tickets From Red-Light Cameras · · Score: 1

    They're responsible for their car. If somebody else was driving, they should step forward and take the rap. If they don't, then they're not somebody who should have been given permission to drive the car in the first place.

  24. Re:Photo Radar on Police Objecting to Tickets From Red-Light Cameras · · Score: 1

    KE = 0.5 * mv^2

    So in a collision, there's considerably less energy to dissipate at lower speeds. Also at lower speeds there is more time to react. Why don't they teach and test drivers on stopping (thinking & breaking) distances on in N. America?

  25. Re:Great. "Equal protection" will then... on Police Objecting to Tickets From Red-Light Cameras · · Score: 1

    And I've seen a police car T-boned after doing this! The police car was halfway across the intersection before the other vehicle entered, and all the other vehicles in the other lines of traffic (busy, multi-lane one-way street) were stationary (i.e. the driver had many clues to slow-down). It's dangerous crossing against a red, even when taking the precautions you mentioned.