• Activity
  • Votes
  • Comments
  • New
  • All activity
    1. My random notes for Nim lang

      -> Nim notes <- Some background I am learning a new programming language Nim. As many would do, I also take my own notes as I am learning it, running little example by myself, etc. .. but I doing...

      -> Nim notes <-


      Some background

      I am learning a new programming language Nim. As many would do, I also take my own notes as I am learning it, running little example by myself, etc.

          .. but I doing that a bit differently.

      • I take notes in Emacs Org mode. Org mode has a feature set called Org Babel. That allows one to document the code snippets, and also run them directly in that document, and insert their output results below them -- Notes in Org

        This also helps me document regression of the language behavior between different Nim versions of any, as the exact outputs are documented too. After each major Nim update, I press a single binding (C-v C-v b) in Emacs, and all the output blocks get recalculated.

      • But not everyone uses Emacs and Org mode. So to be able to share them to a wider audience, I need to export (Org term) that to a format like HTML, PDF, or Markdown..

      • Hugo is a really fast static site generator that uses Markdown as one of the primary content formats. It parses that to HTML using a Go Markdown library called Blackfriday.

      • As my notes are in Org mode, and converting them to HTML via Hugo needs them to be in Blackfriday compatible Markdown (which is almost like GitHub flavored Markdown), I starting working on an Emacs Org mode package ox-hugo about a year back. Using that, this Markdown file is generated. Hugo natively supports a subset of Org, but I needed to write this package to use the full power of Org mode.

      • Hugo then takes that Markdown and generates the final Nim notes page in HTML.


      In the end, I have something that ties together all things of my interest: Nim, Emacs, Org mode and Hugo :)

      8 votes
    2. Childish Gambino - This Is America is still #1 on YouTube Trending 5 days after dropping. 59M views.

      The video, in case you haven't seen it yet. WaPo had an interesting breakdown a few days ago on most of the shots in the video and theories as to their meaning that is worth reading. However, one...

      The video, in case you haven't seen it yet.

      WaPo had an interesting breakdown a few days ago on most of the shots in the video and theories as to their meaning that is worth reading.

      However, one thing I noticed they (and most other people so far) missed was that you can see Glover's back in the beginning since he is facing away from the camera and there is clearly no gun in his pockets or in his waistband... so it simply materializes when he reaches behind him after he slowly dances towards his first victim.

      They also don't mention how during the third to last scene everyone screams and scatters even though he is only making a gun shape with his hands which, when contrast against the actual scenes of murder causing no reaction by anyone, says a lot.

      I am also currently addicted to Reaction videos on YouTube of people watching the video for the first time. Peoples' initial shock and their different interpretations of the video are fascinating to watch. In one of them, someone even mentioned something nobody else seemed to notice... that after the first murder, the gun is carried away by someone else with an almost reverence while the body is simply dragged away like garbage and again after the second murder scene as well.

      Anyone else notice any other interesting elements worth noting?

      10 votes
    3. CSRF error on registration page

      Hi, I got a CSRF error on the registration page, probably a timeout because I read the terms and privacy policy before going on with the registration. :) That's a bad first impression for users...

      Hi,

      I got a CSRF error on the registration page, probably a timeout because I read the terms and privacy policy before going on with the registration. :)

      That's a bad first impression for users and should be avoided.

      Chris

      7 votes
    4. Familiarity: upvote arrows vs tapping on the votes

      It took me a few seconds to realize that tapping on the # of votes would count as an upvote. The usual arrows would be nice, even Facebook is experimenting with those now. update: Just realized...

      It took me a few seconds to realize that tapping on the # of votes would count as an upvote.

      The usual arrows would be nice, even Facebook is experimenting with those now.

      update: Just realized this suggestion was already raised 4 days ago.

      8 votes
    5. Suggestion: tag limiting

      Gotta limit the tags; I added maybe 5-6 tags on a submission, I know Instagram has a limit of 30 or so hashtags, if tags are going to be searchable or used for surfacing content in other contexts,...

      Gotta limit the tags; I added maybe 5-6 tags on a submission, I know Instagram has a limit of 30 or so hashtags, if tags are going to be searchable or used for surfacing content in other contexts, limiting the hashtags would limit abuse of it.

      Or maybe this already exists and I just haven't hit the limit... ;p

      7 votes