Better HN
topnewbestaskshowjobs
Log inSign up

kroger

873 karma · joined Jun 11, 2009 (17y ago) · 293 submissions

My name is Pedro Kroger and I'm a programmer, composer, professor, and entrepreneur. I'm the author of "Music for Geeks and Nerds". I blog about programming, Python, Lisp, and computer music at http://pedrokroger.net/
Submissions

comment 2y ago · link · parent

Hermeto Pascoal is a fantastic Brazilian musician and composer. Maybe this Youtube video will serve as an introduction for English speakers: https://www.youtube.com/watch?v=461qtZqpOtc

(I have no affiliation with the above channel)

2.

Rediscovering Ancient Greek Music: A performance reconstructs the past [video](youtube.com ↗)

1 points · by kroger · 3y ago · discuss

comment 3y ago · link · parent

I found this on the Emacs Wiki [1]. It seems to work:

    (defun sort-symbols (reverse beg end)
      "Sort symbols in region alphabetically, in REVERSE if negative.
    See `sort-words'."
      (interactive "*P\nr")
      (sort-regexp-fields reverse "\\(\\sw\\|\\s_\\)+" "\\&" beg end))
[1]: https://www.emacswiki.org/emacs/SortWords

comment 3y ago · link · parent

Since we are celebrating 30 years of FreeBSD, I thought some people would be interested in this highly entertaining talk by Kirk McKusick.

5.

A Narrative History of BSD(youtube.com ↗)

2 points · by kroger · 3y ago · 1 comment

comment 4y ago · link · parent

Maybe that's the book? (by Jim Carlton):

https://www.amazon.com/Apple-Jim-Carlton/dp/0887309658

comment 4y ago · link · parent

Link to the manual as it has more information: https://spwhitton.name/doc/consfigurator/

comment 5y ago · link · parent

I'm very excited about this direction (I'm no JavaScript expert, but I didn't like the huge node_modules directory). I think this is noteworthy:

"We've been running a version of HEY on this stack for a few weeks, and it's a peach (full report and rollout coming soon!). No separate watch process needed for builds, no wrestling with configs, instant reloads, none of the node tooling needed at all, with no overall loss of performance or capability. It's the best of all worlds – for us at Basecamp."

9.

Rails 7 will have three great answers to JavaScript in 2021(world.hey.com ↗)

9 points · by kroger · 5y ago · 1 comment

comment 5y ago · link · parent

I didn't know much about it, so I googled a little bit:

Robert Strandh is also the author of McCLIM, the free implementation of the Common Lisp Interface Manager. [1]

I found this to be interesting: "So, one example that appears to baffle people is that SICL LOOP uses LOOP for its implementation. But there is no contradiction here, because the LOOP macroexpander runs at, well, macroexpansion time, which will happen in the host Common Lisp system during bootstrapping. After that, there is no trace of the LOOP macro." [2]

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

[2] https://cliki.net/SICL

comment 5y ago · link · parent

HN discussion from 2014: https://news.ycombinator.com/item?id=8284835

comment 5y ago · link · parent

It's an interesting presentation by Jan Krutisch at the 2019 European Ruby conference. He shows how to generate electronic music with pure Ruby.

There's a related web site [1] and all code is on GitHub [2]:

  - https://ruby-synth.fun
  - https://github.com/halfbyte/rubysynth

13.

The Musical Ruby(youtube.com ↗)

3 points · by kroger · 5y ago · 1 comment

comment 6y ago · link · parent

You can use different ways to enter pitch [0]. A common way is to use the "octave.pitch" format, such as 08.04, where 08 is the central octave (if I remember correctly) and 04 is the note E. It's common to use a score generator such as PythonScore [1, 2], and some people (myself included) like to use a regular programming language to generate the scores. I've used Common Lisp, Tcl, and Python in the past. Csound has a few frontends [3] that people may like. AFAIK, Csound can read notes from a MIDI keyboard as well.

[0] http://www.csounds.com/manual/html/PitchTop.html

[1] http://jacobjoaquin.github.io/csd/pysco.html

[2] http://write.flossmanuals.net/csound/methods-of-writing-csou...

[3] https://csound.com/frontends.html

EDIT: remove some repetition

comment 6y ago · link · parent

I didn't know about:

    {A..C}{0..3}
"This sequence creates every combination of A to C and 0 to 3—i.e. A0, A1, A2, A3, B0, B1, etc."

And:

    echo {a..z..2}
    a c e g i k m o q s u w y
"The ..2 bit tells the expansion to only output every second letter."

16.

Quickly create a nested folder structure via Terminal(robservatory.com ↗)

3 points · by kroger · 6y ago · 1 comment

17.

FreeBSD Toolchain Modernization(freebsdfoundation.org ↗)

18 points · by kroger · 6y ago · discuss

comment 7y ago · link · parent

A nice article to quickly understand Tcl defining features is "Tcl the Misunderstood": http://antirez.com/articoli/tclmisunderstood.html

And some previous HN discussion on the article:

https://news.ycombinator.com/item?id=7069642

https://news.ycombinator.com/item?id=4920831

Edit: grammar

comment 7y ago · link · parent

> Clicking on links in the terminal is a nice feature. If you press cmd + click it opens your browser or finder. I occasionally enjoy this convenience.

On Terminal.app you can cmd + double click to open a link on the browser. (it doesn't open a path on finder though)

comment 8y ago · link · parent

The Jekyll team is listed here: https://jekyllrb.com/team/ I'd contact the project lead.

comment 8y ago · link · parent

"The Evolution of Lisp" by Guy Steele and Richard Gabriel is also a good related paper: https://www.dreamsongs.com/Files/HOPL2-Uncut.pdf

22.

Automatically test your database backups(marco.org ↗)

2 points · by kroger · 9y ago · discuss

comment 10y ago · link · parent

Shameless plug: I wrote a book a couple years ago that people in this thread may find interesting: "Music for Geeks and Nerds". It's a short book that uses Python to teach music concepts:

http://pedrokroger.net/mfgan/

comment 10y ago · link · parent

I wrote something similar (but using Python), on how one can generate music using mathematical sequences such as Fibonacci's:

http://pedrokroger.net/pascals-triangle-sound/

I used to spend a lot of time on The On-Line Encyclopedia of Integer Sequences ;-)

comment 11y ago · link · parent

Type I used to be common in washing machines and air conditioning (in Brazil). Now they are using the new one.

comment 11y ago · link · parent

https://www.reddit.com/r/Bitcoin/comments/3fe92x/im_ashley_b...

27.

Tarsnap Mastery(michaelwlucas.com ↗)

4 points · by kroger · 11y ago · 2 comments

28.

PyCharm as the Ultimate Python Debugger(pedrokroger.net ↗)

1 points · by kroger · 11y ago · discuss

comment 11y ago · link · parent

I finally finished my book about PyCharm!

I'd like to offer 20% off for the next 36 hours for Hacker News readers. Use the discount code "HNEWS1" (without quotes).

I'll be around for the next few hours if you guys have questions.

12345
10