Live data from Hacker News

Show HN: Blink my keyboard lights when you visit this page

lelandbatey.com

11–20 of 23 posts

Re: Show HN: Blink my keyboard lights when you visit this page

#11

Btw, if you want your keyboard lights to blink whenever my server receives an HTTP request, you can do that like so: go install github.com/lelandbatey/watchserver/... sudo watchclient --host lelandbatey.com You have to run sudo for that binary to function correctly, since the syscall to light up keyboard buttons requires root.

Cool! It doesn't keep your current status of the leds after it finishes blinking, right?

Re: Show HN: Blink my keyboard lights when you visit this page

#13
Keyboard lights were pretty useful for debuging back in Turbo Pascal days.

XT had only 640K memory. Borland managed to fit IDE into this memory with code assistant and interactive debugger. But if your program consumed too much memory, IDE would not fit and you had to use other means for debugging; there was speaker, printer and keyboard lights.

Re: Show HN: Blink my keyboard lights when you visit this page

#15

This is very neat! I created an Erlang script that allows you to send messages by morse code to the keyboard like this: ./remote_morse "HI,IAMSAM." (Spaces don't appear to be used in morse code?) The messages won't be differentiable while the site is under HN-level traffic, but in a few months, you should be able to send arbitrary messages to @lelandbatey using this. The code is available here: https://gist.github.co…

Spaces are represented as a pause between two characters.

Ah, thanks. That makes sense.

Re: Show HN: Blink my keyboard lights when you visit this page

#16
This is quite fun. You can do something like this (here, playing click.wav for every request) quite simply:

  ssh user@example.com tail -n0 -f /var/log/nginx/access.log | while read; do aplay click.wav & done
Works best with a short wav file.

EDIT: Might be fun to run a separate pipeline that plays a cash register noise every time someone pays :)

Re: Show HN: Blink my keyboard lights when you visit this page

#18

Reminded me the Das Keyboard Q5 which is better than Apple's TouchBar imho. http://www.daskeyboard.com/p/5q-cloud-connected-rgb-mechanic...

Look at the pricing though. pretty doubtful that it'll take off with a $230 pricetag. there'll never be enough developers keeping the plugins up-to-date to actually leverage it with all your software. And you'll constantly need to (re-)configure it... and forgetting what letter color symbolizes what will be the next problem.

this is a prime example of a product that looks really nice in theory, but would really suck in practice.

Re: Show HN: Blink my keyboard lights when you visit this page

#19
post #18

Reminded me the Das Keyboard Q5 which is better than Apple's TouchBar imho. http://www.daskeyboard.com/p/5q-cloud-connected-rgb-mechanic...

Look at the pricing though. pretty doubtful that it'll take off with a $230 pricetag. there'll never be enough developers keeping the plugins up-to-date to actually leverage it with all your software. And you'll constantly need to (re-)configure it... and forgetting what letter color symbolizes what will be the next problem. this is a prime example of a product that looks really nice in theory, but would really suck…

Well, you may be quite right. We'll see if they can create a critical mass to keep going.

Re: Show HN: Blink my keyboard lights when you visit this page

#20
post #9

Btw, if you want your keyboard lights to blink whenever my server receives an HTTP request, you can do that like so: go install github.com/lelandbatey/watchserver/... sudo watchclient --host lelandbatey.com You have to run sudo for that binary to function correctly, since the syscall to light up keyboard buttons requires root.

Now I've got a stupid urge to write a SELinux policy for this so you can safely run it setuid (I need some practice anyway).

Is there a setcap for it instead?
Post reply on HN