Skip Navigation

Posts
52
Comments
1004
Joined
2 yr. ago

  • I think you underestimate the cost of shooting a real guy sitting at a table. Casting, lighting, filming, makeup, props, location, color correction all cost money. And I probably forgot about a few things. Film is ridiculously complex.

  • Deleted

    Permanently Deleted

    Jump
  • Latest theory I heard was:

    A 2014 study found a correlation between striping and overlap with horse and tsetse fly populations and activity. Other studies have found that zebras are rarely targeted by these insect species. Caro and colleagues (2019) studied captive zebras and horses and observed that neither could deter flies from a distance, but zebra stripes kept flies from landing, both on zebras and horses dressed in zebra print coats. […] White or light stripes painted on dark bodies have also been found to reduce fly irritations in both cattle and humans.

    https://en.wikipedia.org/wiki/Zebra

  • In a little town in the Netherlands life was good. The planning committee actually had smart people who made sure to plan the town according to the people’s needs. Kosher butchers, for instance, were placed near Jewish community centers. They could do that because the town had kept records on who lived where, including the people’s religion. It really was a utopia.

    Then the nazis invaded, got their hands on those registries, and with utmost efficiency cleared the town of all jews.

    I don’t know if this story is true. I read it (probably much better worded) a few years ago. But it honestly doesn’t matter if it’s true.

  • Deleted

    Permanently Deleted

    Jump
  • Sounds like a regular programmer today.

  • Deleted

    Permanently Deleted

    Jump
  • Darwin was famously seasick, but also wanted to really look at birds and shit. Bad combination.

  • Deleted

    Permanently Deleted

    Jump
  • What distinguishes zebras from horses is that zebras live in anonymous herds. That is, they like to clump together to ward off predators, but they don’t know or like each other. They are not a uniform group with a leader. Horses on the other hand do have authorities and followers among them. And humans can hijack the role of the leader.

    CGPGrey: The Real Reason We Don’t Ride Zebras (6:23)

  • But I can critisize it for having only one sharp edge instead of 2. Or for being too short or too long. Or for having a handle that’s not shaped well for my hand. (That last metaphor is probably the correct one for the sentiment I’m going for.)

  • Error: Too many unprocessed floats.

  • No; since every user defines the perfect program differently. Which should be the default behaviour(s)?

  • You can, but you shouldn’t. You don’t know what else relies on Math.random. That’s why there’s the wrapper function. That you can override in unit tests without worrying about other, unrelated code.

  • “You ain’t gonna need it”. It means: Build the thing you need now and don’t try to predict what you’ll need in 3 years. You ain’t gonna need it anyway.

  • For anyone else having trouble parsing the lower part: “Seeing a shooting star [is] itself a wish for many.”

    If you want to see shooting stars, the next good opportunity is around April 22, where the Lyrids produce about one shooting star every three minutes (in good conditions).

    If you’re patient but very easily distracted, wait for the Geminids around December 14 producing about 2 shooting stars per minute; or the Perseids around August 12 with slightly fewer.

    All of the above assumes you’re in the Northern hemisphere.

    https://en.wikipedia.org/wiki/List_of_meteor_showers

  • If I understand correctly, you want to check the current domain (eg. w3schools) against api.w3schools and www.youtube, and return true for the first and false for the second (or the other way around)

    Then technically it’s possible without string splitting:

      javascript
        
    const href = 'retrieved-from-the-anchor-element';
    (new URL(href, location.href).hostname).endsWith(location.hostname)
    
      
  • Thanks for the write-up. Your use case is different from all I’ve ever had. It’s good to be reminded that my world view isn’t universal.

  • Personally, I would be fine if GIMP had just said, “too many operations, shrinking Undo history” or something like that. No amount of optimization gets rid of this issue. At some point, the machine’s resources are just exhausted.

  • I see your point regarding global scope. But personally, I’ve never encountered an issue with it. And it’s kinda nice not to have to import fetch every time you need it.

    Regarding subdomains, if you’ll humor my curiosity: What’s the use case? I also wonder what an API for this might look like.

     javascript
        
    const {domain, subdomains, rootDomain} = new URL('https://wikipedia.org/')
    //       'wikipedia.org', [], 'wikipedia.org'
    const {domain, subdomains, rootDomain} = new URL('https://foo.bar.baz.net/')
    //       'foo.bar.baz.net', ['foo.bar.baz.net', 'bar.baz.net'], 'baz.net'
    
      
  • Pretty sure OP’s image is hyperbole.

  • I was waiting for this comment. No, I won’t troubleshoot magical hardware that only fails in GIMP.

  • One way in which this could have come about is that Math.random wasn’t supported in all relevant browsers when the library author wrote the library. So they had to roll their own randomness with blackjack and hookers. Later the web standards evolved and the author was able to remove the custom code, but now had people relying on his library’s exposing a getRandom function.