HNHacker News
TopNewBestAskShowJobs

kroger

873 karma · joined June 11, 2009

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/
submissionscomments
kroger··on The Calendar of Sound of Hermeto Pascoal (2020) [pdf]
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)

kroger··on Sorting in Emacs
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
kroger··on A Narrative History of BSD
Since we are celebrating 30 years of FreeBSD, I thought some people would be interested in this highly entertaining talk by Kirk McKusick.
kroger··on Ask HN: Was anyone working at Apple during Steve Jobs' return in 1997?
Maybe that's the book? (by Jim Carlton):

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

kroger··on Consfigurator 1.0: Common Lisp based declarative configuration management system
Link to the manual as it has more information: https://spwhitton.name/doc/consfigurator/
kroger··on Rails 7 will have three great answers to JavaScript in 2021
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."

kroger··on SICL – A new Common Lisp implementation
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

kroger··on SICL – A new Common Lisp implementation
HN discussion from 2014: https://news.ycombinator.com/item?id=8284835
kroger··on The Musical Ruby
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
kroger··on Csound: A sound and music computing system
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

kroger··on Quickly create a nested folder structure via Terminal
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."
kroger··on Tcl: Everything Is a String
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

kroger··on iTerm2 beta adds Python API
> 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)

kroger··on Creating a Faster Jekyll
The Jekyll team is listed here: https://jekyllrb.com/team/ I'd contact the project lead.
kroger··on History of Lisp (1979) [pdf]
"The Evolution of Lisp" by Guy Steele and Richard Gabriel is also a good related paper: https://www.dreamsongs.com/Files/HOPL2-Uncut.pdf
kroger··on Music Theory: An Education from First Principles
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/

kroger··on 'Music' from /dev/urandom
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 ;-)

kroger··on Why Every Country Has a Different Plug (2009)
Type I used to be common in washing machines and air conditioning (in Brazil). Now they are using the new one.
kroger··on I am Mt. Gox's first employee – AMA
https://www.reddit.com/r/Bitcoin/comments/3fe92x/im_ashley_b...
kroger··on Show HN: Modern Python Development with PyCharm
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.

kroger··on Ask HN: What's the best technical eBook you have read?
He used troff:

"Real Unix books are written using troff and this book follows that time-honored tradition. Camera-ready copy of the book was produced by the author using the groff package written by James Clark. Many thanks to James Clark for providing this excellent system and for his rapid response to bug fixes. Perhaps someday I will really understand troff footer traps."

http://www.troff.org/pubs.html#apue

kroger··on Captchas are Becoming Ridiculous
I got one in Hebrew once:

http://twitpic.com/8u8un4

kroger··on OS X Command Line Utilities
Nice! You can do something like:

    python -c "print 'foo ' * 26" | say -v cellos
kroger··on Things I learned by pretending to be blind for a week (2013)
w3m was (is?) the most popular way read html pages in emacs http://emacs-w3m.namazu.org
kroger··on How To Become Uber Productive While Working For Yourself
Which ones? I sometimes work in the Swiss Cottage library and the Internet connection is usable and they don't seem to block ports. One alternative is to get a 3G/4G usb dongle.
kroger··on Announcing Stack Overflow in Portuguese
Wow, I'm surprised by some of the comments here and on SO. Talk about promoting diversity!

For people saying that programmers need to know English. I agree, I speak English as a second language myself. However, learning English is not easy for everybody as isn't learning programming. Some people find easier to learn something in their native language. They can learn English later. Also, you can be a good programmer without speaking English at all, provided you have access to learning material. (Naturally, speaking English will be a huge advantage)

In the 1600s you had to speak Italian fluently if you wanted to be a musician. Today you can learn the meaning of words like "forte" and "stringendo", without having to really speak Italian. Programming is pretty much the same; one can learn the meaning of things like "if" and "function" and learn the big concepts (abstraction, algorithms, etc) in their language.

EDIT: formatting

kroger··on How to Get Started with PyCharm and Have a Productive Python IDE
Thanks! Let me know if you need help.
kroger··on How to Get Started with PyCharm and Have a Productive Python IDE
OP here. I'm curious to know what people think about the post.

I'm specially interested to know what you think of the screenshots (too many?, too few? too small? too big?) and if you prefer the animated gifs (there are a couple) or a video (there's a short one).

kroger··on Ask HN: Help. I need to go away from here
Do you have a link to you blog post? I'm super curious about your story. I can relate to you wanting to go back to Italy; it may not be the best place to have a startup (bureaucracy, etc) but it can be a fantastic place to live in! (I spend a couple of months in Italy every year, and I always can't wait to come back!)
kroger··on Ask HN: Help. I need to go away from here
As people mentioned, as an EU citizen, you can move to another European country (much easier than moving to the USA).

Since you are a student, you may want to enroll in the Erasmus Programme [1] and use it as a stepping stone.

Also, I'm curious to know where you are in Italy. Does it make sense to move to bigger cities like Milano or Roma? You'll have a better chance to meet like-minded people in a bigger city (for instance, there is a Python meetup in Milano [2]). If this makes sense, you may use this a stepping stone before moving abroad. (bigger cities are also good to meet people from other countries living in Italy, as they may help you with contacts, etc)

[1] http://www.erasmusprogramme.com [2] http://www.meetup.com/Python-Milano/events/160502642/

Page 1 of 9Next →