thedjinn

Joined 16 years ago

Karma
295
Submissions
83
Member since
Jan 19
Freelance software consultant with a particular interest in performance optimization, signal processing and dataflow programming.
View on Hacker News

Recent submissions

Comment · 6 years ago
How many images does your app typically need to avoid overfitting?
Comment · 6 years ago
Most people probably don't even refer to the macOS versions by number but by codename.
Comment · 6 years ago
I'm on a 2012 MBP with similar experiences. Every year I think about finally replacing it, but hold off on it because everything still works fine apart from some increased fan noise and reduced battery capacity (which doesn't concern me too much). If you treat your laptop with care it really does last a long time.

At some point I expect I will stop getting MacOS updates which will force me to upgrade to a newer model.

Comment · 7 years ago
That will make you a 10x developer today but a 0.01x developer when shit hits the fan.
Comment · 7 years ago
It's basically a Pi, a buck regulator, a tiny COB USB audio interface and an SSD1306-based 128x32 display. Removed all connectors and replaced them with soldered wires so it packs neatly into a tiny box.

The software is all custom and written in C, using Jack for low latency audio and my own driver for the display (Adafruit makes a Python driver but it eats half of your CPU and is not optimized for i2c bandwidth or high framerates).

Comment · 7 years ago
I built a guitar stomp box using a Raspberry Pi Zero to trigger samples with a foot switch. Runs on 9 volts and has a very bright OLED display so I can still see what it's doing when I'm playing in a dark venue.
Comment · 8 years ago
Looks decent. I would suggest adding more tunings for us metal players that play lower tunings (for example, I play 2 whole steps down)
Comment · 8 years ago
That's more keystrokes. ;)
Comment · 8 years ago
Not really a trick of Vim itself, but when using Vim from the terminal I find ctrl-z very useful to background Vim, type in a few shell commands for git or whatever and then use "fg" to hop back into Vim.
Comment · 8 years ago
That's great, now I need a middle name. Any good suggestions?
Comment · 9 years ago
Well, please enlighten us then!
Comment · 9 years ago
Looks fine to me. What's wrong about that syntax?
Comment · 9 years ago
Yes, that works. However, you would be facing the same problems. You can read out the pressure of a touch but the initial pressure is not the strongest since the finger is still in motion. Additionally, 3D touch is not supported on all devices.

Another interesting thing is that there are also private APIs for reading out the estimated finger size of a touch. This can give you even more information to determine the velocity from, as light touches are usually done with the fingertips.

Comment · 9 years ago
Exactly. The general idea is that you get a measurement of the applied force, so integrating that value gives you an approximate velocity.

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton