Colm MacCárthaigh

@colmmacc

AWS, Apache, Crypto, Irish Music, Haiku, Photography

Seattle
যোগদান করেছেন এপ্রিল ২০০৮

টুইট

আপনি @colmmacc-কে ব্লক করেছেন

আপনি কি এই টুইটগুলি দেখতে চাওয়ার বিষয়ে নিশ্চিত? টুইটগুলি দেখা হলে @colmmacc অবরোধ মুক্ত হবে না।

  1. পিন করা টুইট
    ২৪ অক্টোবর, ২০১৬

    After using wifi in 3 airports and 4 planes this weekend, I've created to make logging on a little bit easier.

    পূর্বাবস্থায়
  2. ১৬ জুলাই

    Happy Prime Day! Shout out to all of the and folks who are on-call over the next two days handling an unknowably and unprecedentedly large number of packets and packages. It's an incredible operation!

    পূর্বাবস্থায়
  3. ১৫ জুলাই

    Jesus christ iTunes, maybe, just maybe, numeric sort, rather than lexical, would have been a better order in which to download and permanently store these tracks.

    পূর্বাবস্থায়
  4. ১৫ জুলাই

    This took me a while of figuring out the IPA, but here's my name in SSML, and an MP3 from Amazon Polly saying it! <speak> <phoneme alphabet="ipa" ph="'kʊlʊm">Colm</phoneme> <phoneme alphabet="ipa" ph="'mak'arhi">MacCárthaigh</phoneme></speak>

    পূর্বাবস্থায়
  5. ৭ জুলাই

    Three weeks ago we raised $21,693 for to help families who were cruelly separated and detained. In spite of the scale of the challenge, they're making positive progress!

    পূর্বাবস্থায়
  6. ২৯ জুন

    Not to single out Alex here, because randomness is hard and counter-intuitive, but I've gotten this response twice already ... and NO! There are *two* *different* bugs in this suggestion.

    পূর্বাবস্থায়
  7. ২৯ জুন

    Last tip: always measure your little random functions with a histogram or whatever. I still code these wrong and have to check. Thanks for reading!

    এই থ্রেডটি দেখান
    পূর্বাবস্থায়
  8. ২৯ জুন

    Another exception is games, where you may want to generate content and play based on a small seed value, BUT UNDERSTAND THAT THIS IS NOT SECURE.

    এই থ্রেডটি দেখান
    পূর্বাবস্থায়
  9. ২৯ জুন

    Third: always use a secure RNG, your language or programming environment should have one. *Don't* ever seed an RNG yourself. One exception: for fuzz inputs and other tests, where you may want repeat deterministically for debugging. But DON'T LET IT LEAK INTO PRODUCTION.

    এই থ্রেডটি দেখান
    পূর্বাবস্থায়
  10. ২৯ জুন

    Second: if you find yourself building a whole RNG, it's really very hard, again, get deep in the weeds and learn about DRBGs, fork-safety, thread-safety, /dev/urandom, getrandom() and so on. Avoid if you can!

    এই থ্রেডটি দেখান
    পূর্বাবস্থায়
  11. ২৯ জুন

    O.k. some parting thoughts before ending this thread. First, if you need to generate random numbers in constant time, or exotic distributions, get super deep into this stuff. There are seriously rough weeds to tackle.

    এই থ্রেডটি দেখান
    পূর্বাবস্থায়
  12. ২৯ জুন

    Here's a picture from Wikipedia, but basically we're throwing darts at a square and if they land in a circle we're good. It's amazing how much low-level stuff is dumb-as-rocks.

    এই থ্রেডটি দেখান
    পূর্বাবস্থায়
  13. ২৯ জুন

    With Box-Muller, we choose two random values, between -2^^31 and 2^^31 say, we plot them as x and y on a two dimensional plane. If (x,y) lies within the circle of radius size 2^^31, we keep the point, otherwise we go again. r is the distance from the origin to (x, y) squared.

    এই থ্রেডটি দেখান
    পূর্বাবস্থায়
  14. ২৯ জুন

    A cool, though not common any more, way to generate normally distributed numbers is called the Box-Muller transform, , and it combines the "Just throw the bad crap away" (aka rejection sampling) and two-dimensional approaches we've seen already.

    এই থ্রেডটি দেখান
    পূর্বাবস্থায়
  15. ২৯ জুন

    It's ok because STATISTICS DOESN'T MAKE SENSE. They work really well, but if you think about them for too long and too deeply, you fall into a transcendent state. That's also how we know that statistics are pure science. Anyway, back to the topic ...

    এই থ্রেডটি দেখান
    পূর্বাবস্থায়
  16. ২৯ জুন

    That probably didn't make any sense. Here's a Wikipedia page that also won't make much sense: . It especially doesn't make sense that those totally differently looking lines are supposed to be "the same". That's ok though.

    এই থ্রেডটি দেখান
    পূর্বাবস্থায়
  17. ২৯ জুন

    A normal distribution is a super common statistical distribution, it describes the distribution of lots of phenomena and the central limit theorem says that basically any distribution is secretly just one step removed from the normal distribution.

    এই থ্রেডটি দেখান
    পূর্বাবস্থায়
  18. ২৯ জুন

    How do we generate numbers that honor a normal distribution?

    এই থ্রেডটি দেখান
    পূর্বাবস্থায়
  19. ২৯ জুন

    You can read it for yourself, but it uses a 2d approach to do weighted selection in O(1) time with O(n) space. MAD THAT THIS WORKS. And it reminds me of something else, the last and BONUS randomness item I'll get into ...

    এই থ্রেডটি দেখান
    পূর্বাবস্থায়
  20. ২৯ জুন

    Sadly, this one is too long for a tweet until next year when twitter decides that we need more space to offend one another, so for now, bookmark this page , or print it out and frame it in case the Internet ever dies. It's one of the best bits.

    এই থ্রেডটি দেখান
    পূর্বাবস্থায়
  21. ২৯ জুন

    Well you could build a set or an array that just repeats elements in them w times, where w is the weight. Eats a lot of space though! and gets super inefficient if you don't want to have duplicates. The COOLEST answer here is to use Vose's Alias.

    এই থ্রেডটি দেখান
    পূর্বাবস্থায়

লোড হতে বেশ কিছুক্ষণ সময় নিচ্ছে।

টুইটার তার ক্ষমতার বাইরে চলে গেছে বা কোনো সাময়িক সমস্যার সম্মুখীন হয়েছে আবার চেষ্টা করুন বা আরও তথ্যের জন্য টুইটারের স্থিতি দেখুন।

    আপনিও পছন্দ করতে পারেন

    ·