Top all-time · #7196
David Jones
Personal blog · drj11.wordpress.comprogrammingsystems
David Jones writes code monk, a personal blog at drj11.wordpress.com about programming and systems. Since 2009, 11 different Hacker News readers have linked it 14 times. The last post was in 2016, but the archive is still widely read.
Too few sampled comments (5) to say how often HN recommends it.?
Why HN links it
HN readers link David Jones's blog for posts on "shell armour" against truncated curl-to-sh installs, a codemonk series on the J language, and a C calloc overflow discussion.
Summarised by Claude from a sample of 5 HN comments that link here. Each comment is marked recommending, critical or neutral (citing without judging); how this works.
hacking habits
What Hacker News says?
I don't know what I'm talking about, but according to [1] (2008): > So naturally every existing calloc out there performs this overflow check and doesn’t just multiply its arguments together? Oh no. Even I was surprised. > On OS X (10.4.11) calloc(65537, 65537) returns a non-NULL pointer. This is a bug. > PHK’s code in NetBSD is typical, it just multiples the two arguments and uses the result, reckless to overflow.…
Comment linking /2008/06/04/calloc-when-multiply-overflows/
on “Write a Shell in C”Submitted On compiling 34 year old C code as a story · 145 points
HN discussionThat's what shell armour is for ;-) http://drj11.wordpress.com/2014/03/19/piping-into-shell-may-...
Comment linking /2014/03/19/piping-into-shell-may-be-harmful/
on “Show HN: Sysdig, a tool for Linux system exploration”Submitted Sizeof(char) is 1 as a story · 34 points
HN discussionCareful though, that might have repercussions. http://drj11.wordpress.com/2012/05/17/bosch-the-constructor/
Comment linking /2012/05/17/bosch-the-constructor/
on “Why Are Lego Sets Expensive? ”Submitted Piping into shell may be harmful. Bring armor. as a story · 2 points
HN discussionI found the codemonk series on J very entertaining as well: http://drj11.wordpress.com/category/j/ Does anyone on the board use J / K daily? What for?
Comment linking /category/j/
on “A look at the J language: the fine line between genius and insanity”Submitted Self-assembling Duplo - is my Washing Machine an AI? as a story · 2 points
HN discussionAnother method to protect against malformed output due to the connection being cut short - "shell armour": http://drj11.wordpress.com/2014/03/19/piping-into-shell-may-... { echo { && curl https://thing && echo } ; } | sh
Comment linking /2014/03/19/piping-into-shell-may-be-harmful/
on “Protect yourself from the hidden dangers of `curl – sh`”Submitted Python: Some Naughty Features as a story · 2 points
HN discussionSubmitted Dither and gamma (David Jones) as a story · 2 points
HN discussionSubmitted PNG with palettes as a story · 2 points
HN discussionSubmitted All I need to learn R as a story · 1 points
HN discussionSubmitted How to beat out OptiPNG by one byte. as a story · 1 points
HN discussion