Hacker News new | past | comments | ask | show | jobs | submit | atomicstack's comments login

Quantising the oscillator pitch into discrete steps like this is pretty common when it comes to synthesisers. Generally there is also a fine-tuning control that allows the user to offset the output by up to an octave. Makes it easier to not be out-of-tune with other instruments.



About a year ago I stayed in a hotel and the door lock started misbehaving one morning while I was at breakfast. Went to the front desk, got a new card, went back to the room and discovered it still didn't work. After doing that two more times, someone was sent up to the room with a mysterious, palm-sized device with a USB cable hanging off it, which they plugged into a well hidden USB port on the bottom of the lock. The device performed some black magic, and after about 30 seconds a light on the lock changed colour from orange to red and it started functioning correctly again.


I use `ts` quite often in adhoc logging/monitoring contexts. Because it uses strftime() under the hood, it has automatic support for '%F' and '%T', which are much easier to type than '%Y-%m-%d' and '%H:%M:%S'. Plus, it also has support for high-resolution times via '%.T', '%.s', and '%.S':

  echo 'hello world' | ts '[%F %.T]'
  [2023-12-30 16:25:40.463640] hello world


Assuming semi-recent bash(1), you can also get away with something like

    while read -r line; do printf '%(%F %T %s)T %s\n' "-1" "${line}"; done
as the right-hand side/reader of a shell pipe for most of what ts(1) offers. ("-1" makes the embedded strftime(3) format string assume the current time as its input).


I recommend zmwangx/ets package, it is the modern version of ts. I'm using it in CI/CD pipeline in gitlab for debugging performance.


Thanks a lot for the link, I needed an improved `ts` for a long time now.


The ‘logger’ command can also be useful.


This is a very impressive integration of fzf's speedy fuzzy-match CLI, with zsh's completion menus for command line parameters:

https://github.com/Aloxaf/fzf-tab

https://asciinema.org/a/293849


I like this one, it has more options and also features a JS-based offline version: http://donjon.bin.sh/5e/dungeon/index.cgi


Not quite... the first 30% of your salary is tax-free:

https://www.belastingdienst.nl/wps/wcm/connect/bldcontenten/...


I started running some games of Paranoia last winter, and found this tool to be quite useful for generating layouts: http://donjon.bin.sh/fantasy/dungeon/

There is also a pure-JS version which works offline, downloadable from here: http://donjon.bin.sh/apps/


It's also now illegal to sell kebabs past midnight:

http://stoneyroads.com/2016/01/there-is-now-a-lockout-law-fo...

Native Sydney-sider, lived there for 25 years, not sure I'd enjoy living there any more.


Slight errata: This part of the pipeline: `bind -l | sed 's/.*/bind -q \0/' | /bin/bash 2>&1 | grep -v warning:`

...can be replaced with `bind -P`.

Also, \e represents ESC; tab is represented by \t.


nice!

Have updated. Schoolboy error with tab/escape...

However, do you know why tab-tab works as complete?


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: