News for hackers. Stuff that matters.

bitsofpancake

No comment about the paper itself, but note that the first author is Alexander Ioannidis, not the John Ioannidis of Covid infamy.
Re:Overthinking Fizzbuzz with Monoids on Thursday September 14, 2017 @05:31AM (#15246258)
Translation to Python:

    for i in range(100):
      print((("fizz" if i % 3 == 0 else "") +
             ("buzz" if i % 5 == 0 else ""))
             or str(i))
The "+" makes it a monoid.
Re:What Would You Recommend to a Bright 14 Year Old? on Friday March 27, 2015 @12:52AM (#9274817)
Mindset by Carol Dweck. It teaches you how to continue being bright, namely by adopting an attitude of growth and self-improvement.
I noticed this too. It works if you map to the `Media_*` keys, e.g.

    F6::Media_Prev
    F7::Media_Play_Pause
    F8::Media_Next
Re:Ask HN: Do you have a side project you want to sell? on Sunday April 27, 2014 @04:44PM (#7656776)
Check out ShowKnow: a web app that lets you create Khan Academy-style videos, edit them, and upload them to YouTube, all completely in the browser. No users, but everything is functional. Try it!

[https://www.showknow.com/] [https://www.youtube.com/watch?v=qXz8oFOsaGE]

Re:Ask HN: Have you remapped the Caps Lock key? [Poll] on Friday December 27, 2013 @03:59AM (#6969982)
On my laptop, I remapped it to be the left click button, and it changed my life. I used to find dragging windows and files around and selecting text such a pain with a touchpad, but with this remapping, I can do it really, really easily. I just use my left hand to click and my right hand to move the cursor. Try it!

Anyone know how I can remap the Caps Lock key this way on a Mac?