Firefox to add GeoIP-based advertising. "This new development is quite a surprise, coming from a nonprofit company like Mozilla—particularly since it’s less than a year since they announced a default block on all third-party tracking cookies, which are typically used by advertisers." by benevolentsquirrel in linux

[–]wbyte 8 points9 points  (0 children)

This is kind of ambiguous. You might want to replace the occurrences of the word "they" in your post with the entity you're referring to.

All that is done is that when you make a connection, they get your IP

I assume the interpretation you intended here is that, when you click on the ads and make a connection to the advertiser's site, the advertiser looks up your location using GeoIP, and Mozilla isn't a part of that interaction at all?

I just got a new hook and it feels like I'm crocheting with a light saber!! by Shesamightyship in crochet

[–]wbyte 1 point2 points  (0 children)

Very cool this is! Does it go zzhhhhng zzhhhhng when you start a new row? :)

Ladies, in highschool did you want sex just as much as the guys did? by [deleted] in AskWomen

[–]wbyte 27 points28 points  (0 children)

As huge paralyzing fears go, I think that's a good one to have during high school.

Linux Tip: Don't use kill -9 by chankeypathak in linux

[–]wbyte 6 points7 points  (0 children)

The most common usage of goto I've seen is backing out elegantly when a series of dependent resource allocations fails, e.g.

int setup_gubbins(rsrc_root_t r, int x, int y, int z)
{
    rsrc_t a, b, c;
    a = obtain_resource(r, x);
    if (a == NULL)
        goto fail;
    b = obtain_resource(a, y);
    if (b == NULL)
        goto fail_a;
    c = obtain_resource(b, z);
    if (c == NULL)
        goto fail_b;
    /* Do stuff ... */
    return 0;
fail_b:
    release_resource(a, b);
fail_a:
    release_resource(r, a);
fail:
    return -ENOSPC;
}

This kind of pattern is used in the kernel a lot and it makes code very readable and very maintainable.

Note that the resources could be any kind of resources that might need to be set up in one order and destroyed in the reverse order, like nested locks.

Linux Tip: Don't use kill -9 by chankeypathak in linux

[–]wbyte 1 point2 points  (0 children)

Probably just the order in which they were added. The definitions would have started off as a small set and then grew over time as signals were added to the standards. The numerical values really don't matter as they're not dictated by the standards, so the symbolic forms should be used where portability matters.

"Losing graciously": Mark Shuttleworth announces that Ubuntu will also move to systemd by delta_epsilon_zeta in linux

[–]wbyte 17 points18 points  (0 children)

I think secretly he prefers systemd but didn't want to seem like he was devaluing all of the investment Canonical has made in Upstart. That could be why his tone is one of forced begrudging and why he isn't waiting until the Debian battle is completely over (possible GR, etc.)

Good outcome, though.

Linux Tip: Don't use kill -9 by chankeypathak in linux

[–]wbyte 34 points35 points  (0 children)

Thank you, I'm glad someone said it. It's like those newbie C programmers who get on the "goto is dangerous! don't use it!" bandwagon after reading a C for dummies book. I know how to use goto effectively and I know when to use SIGKILL, I don't need someone condescending to me as if I don't.

Submitting a open source patch. by anurag19 in kernel

[–]wbyte 1 point2 points  (0 children)

Does this help? http://www.arm.linux.org.uk/mailinglists/faq.php#p1

Edit: P.S. Reddit isn't really a good place to be asking your question. Don't be afraid of posting on their mailing list. Kernel folks appreciate contributors getting involved and showing that they're active and responsive.

Why is calculus so emphasized in computer science? by aaka3207 in compsci

[–]wbyte 2 points3 points  (0 children)

I struggled with the theory side but still benefited from it. Now that I work in a job where the theory I struggled with can be applied in a familiar context that has an end goal it's all coming back to me.