News for hackers. Stuff that matters.

kroger

Re:The Calendar of Sound of Hermeto Pascoal (2020) [pdf] on Sunday August 25, 2024 @11:28PM (#41353762)
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)

Re:Sorting in Emacs on Saturday August 12, 2023 @08:48AM (#37099648)
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
Re:A Narrative History of BSD on Monday July 31, 2023 @04:37PM (#36948426)
Since we are celebrating 30 years of FreeBSD, I thought some people would be interested in this highly entertaining talk by Kirk McKusick.
Link to the manual as it has more information: https://spwhitton.name/doc/consfigurator/
Re:Rails 7 will have three great answers to JavaScript in 2021 on Monday September 06, 2021 @04:11PM (#28437524)
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."

Re:SICL – A new Common Lisp implementation on Tuesday April 13, 2021 @01:46PM (#26796212)
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

Re:SICL – A new Common Lisp implementation on Tuesday April 13, 2021 @01:42PM (#26796147)
Re:The Musical Ruby on Sunday April 04, 2021 @04:15PM (#26692497)
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
Re:Csound: A sound and music computing system on Sunday April 05, 2020 @04:04PM (#22788204)
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

Re:Quickly create a nested folder structure via Terminal on Saturday April 04, 2020 @02:22PM (#22780271)
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."
Re:Tcl: Everything Is a String on Monday October 28, 2019 @01:18PM (#21379120)
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

Re:iTerm2 beta adds Python API on Sunday March 24, 2019 @11:22AM (#19476831)
> 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)

Re:Creating a Faster Jekyll on Friday September 28, 2018 @06:10PM (#18097468)
The Jekyll team is listed here: https://jekyllrb.com/team/ I'd contact the project lead.
Re:History of Lisp (1979) [pdf] on Sunday August 26, 2018 @01:59PM (#17846989)
"The Evolution of Lisp" by Guy Steele and Richard Gabriel is also a good related paper: https://www.dreamsongs.com/Files/HOPL2-Uncut.pdf
Re:Music Theory: An Education from First Principles on Tuesday October 25, 2016 @10:10PM (#12793375)
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/

Re:'Music' from /dev/urandom on Monday March 07, 2016 @11:02AM (#11239576)
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 ;-)

Re:Why Every Country Has a Different Plug (2009) on Monday October 12, 2015 @12:49PM (#10375686)
Type I used to be common in washing machines and air conditioning (in Brazil). Now they are using the new one.
Re:Show HN: Modern Python Development with PyCharm on Wednesday February 11, 2015 @07:39AM (#9032494)
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.

Older »