HNHacker News
TopNewBestAskShowJobs

bhrgunatha

1,346 karma · joined April 21, 2009

submissionscomments
bhrgunatha··on About GitHub’s use of your data
sigh I moved all my projects (from Bitbucket and Github) to Gitlab. Now it appears Gitlab is feeding its data to Google [1].

I do have a codeberg account so will consider moving my repositories again, although it's probably too late and has all been sucked up by Google already.

[1] https://news.ycombinator.com/item?id=36445526

bhrgunatha··on About GitHub’s use of your data
Could you link to some of the announcements or articles. I only ask because I was totally unaware and would like to learn more.
bhrgunatha··on Coltrane: A music theory library with a command-line interface
> I am going to try to use this utility to help me generate the flashcards instead of writing my own logic. Hopefully it works well as it would save me a lot of time.

My favourite practise tool is slightly more complex than flashcards (but could still be implemented as flashcards). It's better for playing but still works for rote memorisation.

Randomly filled rectangular grids.

They are incredible adaptable and very amenable to generating with scripts or small programs.

e.g. notes of the A major scale:

Shuffle the notes and make them into a grid (here is a 7x7 sample shifting each row 2 places - although any shift of 1 - 6 places would work.)

    C#  G#  A   B   F#  E   D
    E   D   C#  G#  A   B   F#
    B   F#  E   D   C#  G#  A     
    G#  A   B   F#  E   D   C#  
    D   C#  G#  A   B   F#  E   
    F#  E   D   C#  G#  A   B  
    A   B   F#  E   D   C#  G#  

Play the rows from left to right along each row. Then right to left. Plat the columns from top to bottom. Or reverse it. Snake along the rows top to bottom from left to right, then back right to left. Play the grid in a spiral. Clockwise, then the opposite way. Play diagonal slices rising or falling. Concentrate on the first notes in each row/column - play the mode starting from that note. Make it a cloze exercise by removing columns (or rows or just random notes)

    C#  -   A   B   -   E   -
    E   -   C#  G#  -   B   -
    B   -   E   D   -   G#  -     
    G#  -   B   F#  -   D   -  
    D   -   G#  A   -   F#  -   
    F#  -   D   C#  -   A   -  
    A   -   F#  E   -   C#  -  
The adaptability is really limited only by your imagination:

e.g. Chords:

  Bm   D  Fdim C   Dm   G   Am   
  Fdim C  Dm   G   Am   Bm  D  
  G    Am  Bm   D   Fdim C   Dm   
Name the notes, play them (frets 1-5 then frets 5-10), play the triads, inversions, arpeggios...

Or the same idea but using roman numerals/nashville numbers and play them in different keys:

iii V viio IV vi I ii

bhrgunatha··on The beginner's guide to over­complicating coffee
Let's get down to brass tacks. What recipe do you use? [1]

Aeropress is also my favourite method. It's easy to experiment with the main variables than most other devices - water temperature, grind size, immersion time, coffee/water ratio. I find better than the French press - and I think the main factor is that you add some pressure to the process. Aeropress is also easier to clean.

[1] https://aeroprecipe.com/

bhrgunatha··on Wonders of Street View
The Headington Shark has its own tag on Google maps

https://www.google.com/maps/place/The+Headington+Shark/@51.7...

https://www.google.co.uk/maps/@51.7589771,-1.2131488,3a,75y,...

bhrgunatha··on Finally, a Fast Algorithm for Shortest Paths on Negative Graphs
That's odd. I was sure Berkeley provided access to course material to the public.
bhrgunatha··on Lionel Messi Is Impossible (2014)
> I'm barely aware that he was a good player of yesteryear

As an English football fan, that cheered me up (it still hurts). I suspect no English football fan could accept Maradona as the greatest.

Do you know about Pelé?

When I was a kid, it seems everyone (even non fans) knew Pelé was the greatest.

bhrgunatha··on Solving Advent of Code with jq
You would hope so. Saw many people on r/adventofcode using dijkstra or even A* when every path step is just 1. I went with bfs because I'm pretty sure using a priority queue or heuristic function is going to slow those down.
bhrgunatha··on Ask HN: Is Google becoming useless as a search engine, or is it just me?
Annoyingly ddg also ignores +<must include> -<must exclude> and "verbatim" search terms and just shows the results they decide you must want. There are no good search engines any more. At least ddg still has bang searches.
bhrgunatha··on Rereading: The Soul of a New Machine by Tracy Kidder (2017)
I read this long ago, prompted when my dad landed a job lecturing on the later MV/4000 and MV/6000 models.

He'd sometimes work late and we'd go on a short family trip to pick him up. He'd set us up at a terminal to play games, my first journey into colossal caves. What really blew my mind, and I think cemented my love of computers and computing, was space invaders - an arcade game! OK text based sprites, but still the same gameplay as the real arcade machines, just less noisy.

I'm going to find a copy and re-read it as I remember it being compelling and a page-turner.

bhrgunatha··on Paredit 25 released, after 8 years
Yes. It's aimed at languages that use parentheses for structure - so it's _definitely_ helpful for Scheme.

We're generally so used to line-based editing, it may be frustrating but it's well worth the effort and once it clicks, you start to miss the features with other languages.

There's some truth in the old joke "If you think paredit is not for you then you need to become the kind of person that paredit is for."

bhrgunatha··on Paredit 25 released, after 8 years
Here's hoping that type of structured movement and editing will spread much wider now tree-sitter is merged into emacs master. Already quite a few parsers/grammars available for tree sitter:

https://tree-sitter.github.io/tree-sitter/#available-parsers

bhrgunatha··on Programmimg Pearls (1985)
The analysis of comparisons was both brilliant and illuminating.
bhrgunatha··on Wiby.me: curated search engine for content-first suckless sites
It's so refreshing to be able to tab through search results without hitting a thousand irrelevant images or ads or menu items.
bhrgunatha··on Hex Triplet Words
Similar possibility for guitar tunings. I once looked for faux 12-string guitar tunings and "caged cabbage", "faded feedbag" and "defaced badge" were my favourites.
bhrgunatha··on Show HN: Carefulwords.com, a more inspiring thesaurus
I just added a keyword search in firefox* for inspiration when I'm searching for a replacement word.

* Assign a keyword (e.g. care) to a regular bookmark but place %s in the url (https://carefulwords.com/%s). It gets substituted for whatever is typed after the keyword.

So my keyword is care and I can type "care joy" into the url bar which opens https://carefulwords.com/joy.

bhrgunatha··on Liberating the Smalltalk lurking in C and Unix (2014) [video]
That's a blow, it's such a good conference. This post led me to check and the 2022 videos have started being uploaded to youtube:

https://www.youtube.com/playlist?list=PLcGKfGEEONaDO2dvGEdod...

bhrgunatha··on Maigret: Collect a dossier on a person by username from thousands of sites
I'm subscribed to so many informal church groups in Alabama originally but "I've" since moved to Texas. I tried quite hard to clear up the confusion but with virtually no action ever taken, so now I just observe.

From those emails, it's nice seeing how people support each other and apparently I'm in demand giving scripture classes.

bhrgunatha··on Tuned Mass Damper of Taipei 101
Are you misremembering the 6.4 from 2018 in Hualien?

There were no 7+ magnitude quakes in recent years. [1] The closest is 2016 at 7.1 which took out some undersea internet cables the caused a reduction in spam worldwide of 50%. [2]

[1] https://en.wikipedia.org/wiki/Taiwan_earthquakes [2] https://en.wikipedia.org/wiki/2006_Hengchun_earthquakes

bhrgunatha··on My goal of closing 10% of Emacs bugs (2020)
The introspection via all the commands bound to C-h <key/s> is a major thing I miss from any other system. That includes the ability to view and debug the source code - including the base level commands written in C if you've configured it to do so.

Plus, it's all right there _in emacs_ with all its facilities and your customisations while you're using it.

bhrgunatha··on Trending tabs are being deprecated due to low usage
Absolutely.

Many here are saying how much they like the feature.

I'd much prefer a "similar repos/projects/people" once I'm visiting a project or person I've _chosen_ to view.

I've already expressed my interest by visiting, why not exploit that?

bhrgunatha··on Show HN: Countle
Another similar problem from earlier in the show

https://www.youtube.com/watch?v=pfa3MHLLSWI

Can I ask why you don't just link directly to youtube?

bhrgunatha··on We're improving search results when you use quotes
I've also found DDG ignore quotes often too.
bhrgunatha··on Cold-brewing of coffee by picosecond-pulsed laser extraction
It's a pour over method [1]

You can also use a regular drip machine though. Use half the normal water. Add the equivalent ice (by weight) to the flask. Brew as normal, but turn it off as soon as it's finished. The slow drip of hot coffee is cooled immediately as it hits the ice.

Since the brewed coffee is cold, you can add extra ice to your cup without it melting and diluting the taste too much.

Adjust the water / ice ratio as desired.

[1] https://www.youtube.com/watch?v=Y3jxJv5UiPg

bhrgunatha··on Ask HN: Do you maintain a list of RSS links of GOAT blogs?
My utility format the feed url by extracting the relevant suffix from the url slug when it includes:

"/user/"

"/channel/"

"/playlist?list="

I think the newer slug format for channels is "/c/" in which case I think you do have to extract it from the HTML source, but they now include the feed URL anyway.

<link rel="alternate" type="application/rss+xml" title="RSS" href="FEED_URL">

bhrgunatha··on Ask HN: Do you maintain a list of RSS links of GOAT blogs?
I think of it as a hybrid summary/index of posts from people/blogs I'm interested in.

If there's a post that piques my interest, I'll read the full post - or visit the web page.

bhrgunatha··on Ask HN: Do you maintain a list of RSS links of GOAT blogs?
In fact there are 3 RSS feed types

User : https://www.youtube.com/feeds/videos.xml?user=<XXX>

Channel : https://www.youtube.com/feeds/videos.xml?channel_id=<XXX>

Playlist : https://www.youtube.com/feeds/videos.xml?playlist_id=<XXX>

bhrgunatha··on It's normal to play the same song over and over again (2016)
I have what feels like an infinite backlog of bands and albums I want to listen to.

My quirk is deep dives. I'll discover a new band or style to me, then listen to as much of it as I can. Very often someone's whole catalogue at a time.

I'll occasionally repeat an album many times - recent examples are both Pixvae's albums or Ott's new album Heads (after 8 years waiting)!

bhrgunatha··on Oh Shit, Git
Learning the underlying model behind git is well worth the effort. For me watching Steve Smith's talk - Knowledge is Power: Getting out of Trouble by Understanding Git - was a lightbulb moment.

Here's a 2019 presentation of that talk.

https://www.youtube.com/watch?v=fHLcZGi3yMQ

bhrgunatha··on OCaml Programming: Correct and Efficient and Beautiful
On the schedule page, there are links to further material. I don't think you can do the drills or exams, but you _can_ do the homework if you have a github account.
Page 1 of 14Next →