Itertools Example

July 07, 2017 by Gabe | [mmd] | ℳ↫

This example from Dr. Drang is pretty creative. It uses Python's Itertools to solve a boring math problem in an interesting way.

Older articles

  1. The Terrible Deep Learning List [Link]

    June 21, 2017 by Gabe | [mmd] | ℳ↫

    I'm increasingly fascinated by machine learning. Maybe because it feels like there's more opportunity for machines to learn than for us meat bags. This Github list was really interesting.

    • Gated Conditional Pixel Convolutional Neural Network using TensorFlow (Demo)
    • Value Iteration Networks using TensorFlow — Best Paper Award NIPS ‘16 ...
  2. Bulk Delete Old Slack Uploads

    June 17, 2017 by Gabe | [mmd] |

    While I do pay for a Slack team account, I also manage a frivolous team with a lot of users on the free plan. The Slack free plans are very generous but can run out of storage space fast and that means no one can share dank memes anymore. This ...

  3. Python's New Secrets Module [Link]

    February 18, 2017 by Gabe | [mmd] | ℳ↫

    Python 3.6 adds a new module for creating random values for cryptographic secrets.

    For example, this call:


    generates this unique string: '5t_jLGlV8yp2Q5tolvBesQ'

    Now, if only I could get all of my scripts moved off of Python 2.7 I'd be in business.

  4. Pythonista 3 Available Now

    June 14, 2016 by Gabe | [mmd] |

    Pythonista 3 for iOS is now available on the App Store.

    It's on sale for $5 as a new purchase. If you love Python or just want to take automation to the next level on iOS, there's no better app than Pythonista. Version 3 brings Python 3 as ...

  5. Schwartz For Graphics Code

    January 16, 2016 by Gabe | [mmd] |

    Everything from Todd Ditchendorf is so unique and thoughtful. His groundbreaking app Fluid is known by every longtime Mac user. Todd continues to impress with his new apps too. Schwartz is a vector graphics app that automatically generates templated code in a variety of languages. As with everything under the ...

  6. Holiday Experiments: The Wolfram Programming Language

    December 29, 2015 by Gabe | [mmd] |

    Weeks before my holiday vacation, I refresh a long-standing list — my "things to try" during vacation list. This very Web site began life on that list. This year is no different and I thought I'd share them as I complete them. Today's post is about the Wolfram Programming ...

  7. JavaScript Dates in TextExpander [Link]

    July 26, 2015 by Gabe | [mmd] | ℳ↫

    This post by the good doctor is clever. It's not clever because he does date formatting in JavaScript.1 It's clever because he does it by calling a second JavaScript library (Moment.js) stored as a snippet from within another snippet.

    I usually do my date formatting with ...

  8. Tough Times on the Road to StarCraft [Link]

    January 24, 2015 by Gabe | [mmd] | ℳ↫

    I played the heck out of StarCraft. I'm not sure this essay by Patrick Wyatt makes me feel better about all the crashes, but it does make me feel empathetic toward the developers.

    Working these long hours made people groggy, and that’s bad when trying to accomplish knowledge-based ...

  9. Beer and Soup

    January 12, 2015 by Gabe | [mmd] |

    This is what it's like to be a nerd. As a computer-geek, my friends tend to think I have a lot of "answers" about computers. In reality, I spend more time making up problems than I do solving them.

    For some unknown reason I decided I wanted to extract ...