HNHacker News
TopNewBestAskShowJobs

bhrgunatha

1,346 karma · joined April 21, 2009

submissionscomments
bhrgunatha··on Advent of Code 2019
The scatterlpots [1] of the time taken for the leaderboard (top 100) to finish part 1 (silver) and part 2 (gold) are a better indicator of difficulty.

I'd like to see a plot of average (median or mode) to finish each part but only the site has all that information.

[1] http://www.maurits.vdschee.nl/scatterplot/

bhrgunatha··on Monty Hall Problem
The brilliance of the problem is that you're led to think that the odds have changed.

I think there's a psychological component too. So many probability questions are about random events so you (very naturally) take a position that the revealed door is randomly chosen. It is NOT - you always see one of the goats.

bhrgunatha··on ChocoPy: A Programming Language for Compilers Courses
University Of Washington CSEP501: Compiler Construction http://courses.cs.washington.edu/courses/csep501/

Keith Schwartz Stanford Compiler course CS143 http://www.keithschwarz.com/cs143/

Stanford's Engineering Compiler course on Lagunita https://lagunita.stanford.edu/courses/Engineering/Compilers/...

Matt Might's courses are self educational blueprints http://matt.might.net/teaching/compilers/

Book Introduction to Compilers and Language Design https://www3.nd.edu/~dthain/compilerbook/

I'm not a fan of uncurated link dumps, however: Awesome compilers link aggregation on Github https://github.com/aalhour/awesome-compilers

bhrgunatha··on Psytrance Guide
Some artists truly are unique. and I think Ott falls into that category.

Entheogenic, Slackbaba or Globular are probably the closest you'll find.

bhrgunatha··on We can't get enough of audiobooks
I get far more engrossed with books than listening to audio plus listening to a story makes me feel tired which I think is a hangover from bedtime stories as a kid.
bhrgunatha··on ASCII Art in .NET Code
In C# @"..." are verbatim strings - useful for capturing characters without having to escape them.
bhrgunatha··on Show HN: A live map of sunlight on earth
There used to be a page that showed the view from a webcam located wherever the sun was currently rising as you viewed the page.

Can't find it any more though - probably been removed.

bhrgunatha··on Generating More of My Favorite Aphex Twin Track
I spent a huge amount of time playing around with a demo of SSEYO Koan Pro which Eno used to make Generative Music 1 [1] and which evolved over time into Wotja by Intermorphic [2]. It's about time I tried Wotja out!

[1] https://en.wikipedia.org/wiki/Generative_music

[2] https://intermorphic.com/wotja/

bhrgunatha··on Eating more fruit and vegetables 'improves mental wellbeing'
I like the rough guideline to change from eating vegetables/juicing fruit to juicing vegetables/eating fruit.
bhrgunatha··on Comprehensive Python Cheatsheet (2018)
I love that talk. Raymond Hettinger is a gem. What I took from that is the implementation does preserve order but it isn't guaranteed yet and in theory it could change.
bhrgunatha··on Ending our Medium integration
No need for an extension.

Reader view doesn't always work though (at least in Firefox.) You can use the icon in the URL bar or CTRL + ALT + R to open reader view.

Firefox does some detective work to choose whether to show the reader view icon but using the keyboard shortcut used to work regardless. Recently it seems even the keyboard shortcut doesn't work unless the icon is visible - I think becausethe heuristic for showing the icon is more accurate these days.

bhrgunatha··on Special Cases Are a Code Smell
The amortized cost of prepend (unshift in ruby) is O(1) (since Ruby 2). Of course that means at some point you'll get O(n) prepend.

[1] https://stackoverflow.com/questions/8353026/what-is-the-run-...

bhrgunatha··on Special Cases Are a Code Smell
There are 2 forms of range in ruby: inclusive 2 dots - 1..5 => 1, 2, 3, 4, 5 and exclusive 3 dots 1...5 => 1, 2, 3, 4

It's always felt deeply counter-intuitive to me because .. feels like it represents less than ... but that's a separate discussion.

bhrgunatha··on FizzBuzz in ten languages
My favourite Fizzbuzz articles 50 Fizzbuzzes [1] and Fizzbuzz in Tensorflow [2].

[1] http://vihart.com/fifty-fizzbuzzes/

[2] http://joelgrus.com/2016/05/23/fizz-buzz-in-tensorflow/

bhrgunatha··on Advent of Code 2018
I use Stylus with a set of rules to increase contrast and change the font. Just changing the font (with default weight 400) has a huge effect on legibility.

Stylus - https://add0n.com/stylus.html

bhrgunatha··on Dropping Acid
Sorry I didn't mean equipment, I meant artist recommendations.
bhrgunatha··on Dropping Acid
Any recommendations for modern artists?
bhrgunatha··on How to Land on Mars
I vividly remember a sense of total awe watching it, thinking here we are, watching a broadcast from inside the JPL - as it happens! - of a craft in a totally new, complex method of landing after travelling and being guided millions of kilometres.

What struck me in particular was the sense of wonder at being able to see that first image of the wheel - transmitted across the globe live as they received it.

Such a privilege and accomplishment.

bhrgunatha··on Ask HN: Best Command-Line Applications?
The oh-my-zsh git plugin [1] aliases have become second nature.

No need to install oh-my-zsh you can just take the file or cherry pick (!) the useful ones.

I may drop oh-my-zsh completely and just set up zsh with the small subset of plugins I use.

[1] https://github.com/robbyrussell/oh-my-zsh/tree/master/plugin...

bhrgunatha··on October 21 post-incident analysis
Freakonomics podcast had an episode on apologies recently - http://freakonomics.com/podcast/apologies/ - one of the more interesting things discussed was how the start and end of the apology has a dominating impact. It seems people are incredibly sharp at recognising insincerity too. I'd say github did a great job here.
bhrgunatha··on CSS Layout cookbook
Dev tools to fix sites during one off visits and Stylus for regular visits. Stylus is an absolutely essential add-on for me in recent years.

It's useless trying to convince the world to have sane, readable text size and contrast on desktop. Firefox reader view doesn't work well with interactive pages.

bhrgunatha··on Asterisks in Python
According to Rosetta Code Algol 68 had string interpolation. [1]

It'd be interesting to see if there are any older languages that supported it too.

https://rosettacode.org/wiki/String_interpolation_(included)...

bhrgunatha··on Plus codes: addresses for everyone
Futility Closet podcast Ep 218 had a section on plus codes this/last week, including what3words and parodies like what 2 numbers - Lat, Lon! They have the full list of links.

https://www.futilitycloset.com/2018/09/24/podcast-episode-21...

bhrgunatha··on DuckDuckGo Traffic
!bang is more helpful I think

!bang hacker news

!bang stack exchange

!bang hoogle

...

bhrgunatha··on Alphabet Backs GitLab's Quest to Surpass Microsoft's GitHub
What about user lock-out?
bhrgunatha··on Show HN: Guitar Dashboard – Open source music theory explorer for guitarists
Natural minor scale as opposed to harmonic or melodic.

https://en.wikipedia.org/wiki/Minor_scale

bhrgunatha··on Firefox 62.0 Released
It usually means the main, default or preferred application.
bhrgunatha··on Show HN: Select Star SQL, an interactive SQL book
Same here - the front matter page mentions web components - perhaps the support is different /disabled in Firefox?

The <sql-exercise data-question...> elements aren't visible in Firefox at all.

bhrgunatha··on RssHub – A feed aggregator that can generate feeds from pretty much everything
I'm not sure what the relationship between channels and users is. I think it's many-to-many and I'm aware of 3 feed types:

    https://www.youtube.com/feeds/videos.xml?user=<username>  
    https://www.youtube.com/feeds/videos.xml?channel_id=<channel id>  
    https://www.youtube.com/feeds/videos.xml?playlist_id=<playlist id>  

Would love to hear if there are more.
bhrgunatha··on Music and Machine Learning
I agree the transcription is awful, but would you say it's unrecognisable?
← PreviousPage 4 of 14Next →