Slashdot Mirror


User: UOZaphod

UOZaphod's activity in the archive.

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

Comments · 95

  1. Re:Article might not be all wrong on Forbes Goes After Bloggers · · Score: 1
    FUD flows in both directions, and businesses should be at least aware of the blogosphere, and that bloggers may be spreading misinformation, and how to counter it with the truth.

    The problem is, when small companies (or even individuals) are attacked unfairly, it can spread so fast that there is no way to "counter it with the truth". The sheer mass of lies drowns out the small voice of the innocent victim.

    I am wondering how many legitimate, honest businesses may have been crushed by anonymous smear campaigns that they did not have the resources to fight.

  2. Re:Gee, that's too bad on Forbes Goes After Bloggers · · Score: 1

    I can't believe how many people are forgetting about laws regarding slander and libel.

    Do we have free speech? Yes.

    Can we use it to spread lies about people in order to hurt their reputation? No.

    Regardless of how badly the article miscommunicated this point (i.e. mixing up the facts in some of the stated examples), I think that was the gist of what they were saying.

  3. Re:How dare people have the temerity... on Forbes Goes After Bloggers · · Score: 1

    Free speech is perfectly legal.

    Slander and libel, however, are generally not.

    Anonymous slander and libel are even worse.

  4. Re:Blog Bashin' Fools on Forbes Goes After Bloggers · · Score: 1
    Before you bash the article in its entirety, consider the following paragraph:

    But if blogging is journalism, then some of its practitioners seem to have learned the trade from Jayson Blair. Many repeat things without bothering to check on whether they are true, a penchant political operatives have been quick to exploit. "Campaigns understand that there are some stories that regular reporters won't print. So they'll give those stories to the blogs," says Christian Grantham, a Democratic consultant in Washington who also blogs. He cites the phony John Kerry/secret girlfriend story spread by bloggers in the 2004 primaries. The story was bogus, but no blogger got fired for printing the lie. "It's not like journalism, where your reputation is ruined if you get something wrong. In the blogosphere people just move on. It's scurrilous," Grantham says.


    I'm sure the next time some candidate is attacked unfairly in the blogs, people will be screaming about it.

  5. Re:Unctuous on Price of Power in a Data Center · · Score: 1

    Yes, in an ideal world the U.S. government could "stick it to the man" and pass all kinds of new laws to try to force gas prices to be lower.

    However, we as a nation are really at the mercy of the oil industry, and the people in the government know this.

    Recently, a bill (the Senate version) was squashed that would have encouraged the oil industry to build new refineries. The opponents claimed it would relax too many environmental regulations, and that oil companies have been voluntarily shutting down refineries. Perhaps this is true, but now the oil industry has been handed an excuse not to build new refineries.

    How do we force the companies to sell oil at a cheaper price? Does the government rush in and take control of the companies? We can pass laws that "encourage" alternative energies, but does that reduce the cost of oil right now?

  6. Re:Read it again on VOIP Tappings Under Scrutiny · · Score: 5, Funny

    I don't like this special edition.

    In the original, the FCC shot first.

  7. Re:Not so sure about this - I stil "don't get it" on What is Ruby on Rails? · · Score: 1

    I too have to admit that I just don't get it, but I'm willing to learn. However, I want a true explanation of the concept, not just a testimonial. Telling me, "It's the best thing out there", doesn't cut it.

    From the beginning, I've been wanting a simple explanation of the structure of RoR. It is almost as if people are afraid that if you dig deeper into the design, you will discover something that will turn you away before trying it out. People shouldn't be afraid of the truth.

  8. Re:TFA is a Troll on Arrays vs Pointers in C? · · Score: 1

    I submitted the article because I am genuinely interested in the idea (which opposes my original thinking) that I can get away with using arrays and not take a performance hit.

    I am happy if it is true, because using arrays results in code that is easier to maintain and read.

    When submitting the article, I made it a point to avoid using inflamatory language, and went out of my way to present both sides of the issue, even going as far as making a case for the opposing view.

    In fact, when I brought the idea up the first time in the other thread, my own posts were met with a harsh remark about why I was wrong. That comment, while not as friendly as I would prefer, is what got me interested in the idea. I posted to Ask Slashdot because I wanted to hear some more level-headed opinions on the matter that didn't include inflamatory language.

    From the replies I've seen so far, I can see there are indeed some critical thinkers reading this site who are nice enough to respond in kind.

  9. Re:Unfortunately, the 2000s answered... on Arrays vs Pointers in C? · · Score: 1

    Isn't the entire Linux kernel written in C?

    I wasn't talking about database front ends and other softcore programming when I submitted the article.

  10. Re:GCC experimental results on Arrays vs Pointers in C? · · Score: 2, Insightful

    What is used to compile the Linux Kernel?

  11. Re:there is a difference... on Arrays vs Pointers in C? · · Score: 1

    Since the original ended up using registers, it couldn't be any more efficient.

    Before I even posted it, I tried it with the XOR swap. The code ended up looking very convoluted. I don't think the compiler recognized the XOR swap design.

  12. Re:How will the religious establishment react? on Distant Planet Imaging Project Gets More Funding · · Score: 1

    Have you even read the bible?

  13. Re:good programmers on Java Urban Performance Legends · · Score: 1

    Hmm... I guess I just don't think of things that way. I don't think of pointer usage as being "tricky". In fact, I consider array indexing to be inefficient, especially when an expression is being used as the index. When compiled, the resulting code has to evaluate an extra expression every time the array is indexed, which it then adds that to base address of the array. Thus you have extraneous computations, to say nothing about the temporary storage that needs to be used. Even when using a straight variable as the index, it still has to be added to the base address.

    I would find it extremely uncomfortable to be forced to use array indexing when using pointers would be faster and more efficient (and, to me, very easy to understand).

  14. Re:good programmers on Java Urban Performance Legends · · Score: 1
    Well, this is about as readable as I can make it while sticking with the original concept of using pointers (it appears slashdot likes to mess with my formatting though):
    void ReverseString(char *phead)
    {
      char *ptail;
      char temp;
     
    // check for NULL pointer or zero-length
     
      if (phead && *phead)
      {
     
    // find tail of string
     
          for (ptail = phead; *(++ptail); );
     
    // work from outside toward middle
     
          for (--ptail; ptail > phead; ++phead, --ptail)
          {
     
    // swap head and tail
     
            temp = *ptail;
            *ptail = *phead;
            *phead = temp;
          }
      }
    }
  15. Re:good programmers on Java Urban Performance Legends · · Score: 1

    What, are you sore you didn't think of it yourself?

    Look, the stipulation was to allocate the least amount of memory as possible. It didn't say anything about local variables being an exception to the rule.

    You can eliminate one more local variable using an XOR swap.

    If I knew I could have two local variables I would code it like the final revision of my own solution.

  16. Re:good programmers on Java Urban Performance Legends · · Score: 1
    Extra byte, more readable... (and should actually be fairly fast as well) :)
    void ReverseString(char *phead)
    {
      char *ptail;
      char ch;
     
      if (phead && *phead)
      {
          for (ptail = phead; *(++ptail); );
     
          for (--ptail; ptail > phead; ++phead, --ptail)
          {
            ch = *ptail;
            *ptail = *phead;
            *phead = ch;
          }
      }
    }
  17. Re:good programmers on Java Urban Performance Legends · · Score: 1
    How's this:
    void ReverseString(char *ptr1)
    {
      char *ptr2;
     
      if (ptr1 && *ptr1)
      {
          for (ptr2 = ptr1; *(++ptr2); );
     
          for (--ptr2; ptr2 > ptr1; ++ptr1, --ptr2)
          {
            *ptr1 ^= *ptr2;
            *ptr2 ^= *ptr1;
            *ptr1 ^= *ptr2;
          }
      }
    }
    I think I've been using post-increment too much... using pre-increment seems to generate code that is more readable.
  18. Re:good programmers on Java Urban Performance Legends · · Score: 1

    If I recall, the only stipulation was "code a function to reverse the order of a string with allocating as little extra memory as possible".

    It doesn't say anything about being fast, efficient, easy to understand :)

    So I coded something in which the only allocation is a single local pointer.

    I think one of the other posters was right though about (x++) expanding to (x = x + 1)

    I'm thinking about refactoring the code to use pre-increment/decrement only.

  19. Re:good programmers on Java Urban Performance Legends · · Score: 1

    As a side note... using a local char variable as temporary storage for the swap would likely be faster than the XOR swap, considering all the pointer dereferencing that has to be done.

    However, the rules specified allocating the least amount of memory as possible, so I assumed even local variables would count against it.

  20. Re:good programmers on Java Urban Performance Legends · · Score: 1
    Here's my variation on the ReverseString. It uses the XOR swap as well (like the other guy--beat me to the punch), but uses pointers instead of all the arithmentic inside of array indices.

    It also doesn't require a length to be passed, and checks if the pointer is not NULL.
    void ReverseString(char *ptr1)
    {
      char *ptr2;
     
      if (ptr1 && *ptr1)
      {
          for (ptr2 = ptr1 + 1; *ptr2; ptr2++);
     
          for (ptr2--; ptr2 > ptr1; )
          {
            *ptr1 ^= *ptr2;
            *ptr2 ^= *ptr1;
            *(ptr1++) ^= *(ptr2--);
          }
      }
    }
  21. Paranoid much? on Fast, Accurate Detection of Explosives · · Score: 1

    The last time I checked, Bush can only serve two terms. So much for the Hitler comparison, unless he somehow gets 75% of the country to vote for a constitutional amendment.

    You really shouldn't worry so much. I mean, considering how much value the average American places on their constitutionally protected right to watch porn and smoke dope in the privacy of their own home, there would be a violent revolution as soon as there was even a hint that people might be deprived of such fundamental necessities.

  22. Re:I fear not your rootkits! on No Defense Against Windows Rootkits? · · Score: 1
    Actually, on Windows 2000 and later, services running under the local System account can access network resources, as long as the machine is a member of a Windows 2000/2003 Active Directory domain. It uses the credentials of the machine account, and authentication is via Kerberos only, so authentication will fail if the Service Principal Names are not registered correctly on both the client and server systems.

    I've used this feature many times to run startup scripts (which run as the local System account) that download files or write logs to network shares.

  23. Re:My experience with topcoder on Introduction to Competitive Programming · · Score: 1

    For some reason, that particular example sounds more like a mathematics problem than a programming challenge.

    Solving the "secret" of that problem had nothing to do with programming, and everything to do with mathematics and geometry.

    Yes, I know that there are a lot of mathematics involved in programming, but being good at math doesn't always involved being good at programming. Having a greater understanding of mathematics certainly doesn't hurt either; one wouldn't want to undertake designing a 3d game without a good understanding of the geometry involved.

    To me, a true programming contest would use real-world tasks as a basis for the challenges, and would judge the results based on efficiency, documentation (important in the real world!), creativity, and overall style. To heck with 90 minute time limits... I think a whole day would be needed to really draw out the best in the programmers, and give them the time to add the documentation.

  24. Re:String Theory is a joke on Evidence of 6 Dimensions or More? · · Score: 1

    Looks like you've hit a very sensitive nerve :)

  25. Re:America has a choice.. on The Decline of Science and Technology in America · · Score: 1

    I agree that excessive taxation undermines private funding. I think taxes are too high as it is, and need to be reduced to allow/encourage people to make their own economic decisions.

    At least that way, we couldn't blame everything on the government, or look to the government to be our great saviour.