• Posts
  • RSS
  • ◂◂RSS
  • Contact

  • Decoding Internationalised Email Headers

    August 10th, 2010
    email, python
    Every so often someone will email me something where the subject has unicode in it. My naive tools don't know what to do with it, and I see stuff like:
    =?UTF-8?Q?[Sociological_Images]_New_Comment_On:_Satter=E2=80=99s_Hierarch?=  =?UTF-8?Q?y_of_Food_Needs?=
    It turns out python has a module for this, providing email.header.decode_header. This gives me:
    [Sociological_Images] New Comment On: Satter's Hierarchy of Food Needs
    So much nicer.

    I am continually happily surprised at the fraction of the time that what I want is already implemented in the python standard library.

    Comment via: facebook

    Recent posts on blogs I like:

    Interview with Kat Woods: decision-making about having kids

    Realizing what you don't want The post Interview with Kat Woods: decision-making about having kids appeared first on Otherwise.

    via Otherwise July 5, 2022

    Decision theory and dynamic inconsistency

    Here is my current take on decision theory: When making a decision after observing X, we should condition (or causally intervene) on statements like “My decision algorithm outputs Y after observing X.” Updating seems like a description of something you do…

    via The sideways view July 3, 2022

    10x (engineer, context) pairs

    Your actual output depends on a lot more than just how quickly you finish a given programming task. Everything besides the literal coding depends deeply on the way you interact with the organization around you.

    via benkuhn.net June 9, 2022

    more     (via openring)


  • Posts
  • RSS
  • ◂◂RSS
  • Contact