HNHacker News
TopNewBestAskShowJobs

thedjinn

295 karma · joined January 19, 2011

Freelance software consultant with a particular interest in performance optimization, signal processing and dataflow programming.
submissionscomments
thedjinn··on Show HN: App to create object detection projects without coding
How many images does your app typically need to avoid overfitting?
thedjinn··on The End of OS X
Most people probably don't even refer to the macOS versions by number but by codename.
thedjinn··on Cleaning My MacBook After 16800 Hours of Use
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.

thedjinn··on A personal story about 10× development
That will make you a 10x developer today but a 0.01x developer when shit hits the fan.
thedjinn··on Ask HN: What do you do with your Raspberry Pi?
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).

thedjinn··on Ask HN: What do you do with your Raspberry Pi?
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.
thedjinn··on Show HN: Guitar Dashboard – Open source music theory explorer for guitarists
Looks decent. I would suggest adding more tunings for us metal players that play lower tunings (for example, I play 2 whole steps down)
thedjinn··on Ask HN: What is one Vim trick most people don't know?
That's more keystrokes. ;)
thedjinn··on Ask HN: What is one Vim trick most people don't know?
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.
thedjinn··on Middle name initials enhance evaluations of intellectual performance (2014)
That's great, now I need a middle name. Any good suggestions?
thedjinn··on Bitcoin Surges Past $7,000 to Extend Record Rally
Well, please enlighten us then!
thedjinn··on Dictionary and Set Improvements in Swift 4.0
Looks fine to me. What's wrong about that syntax?
thedjinn··on Show HN: MidiPad 2 – A customizable Midi Pad Controller
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.

thedjinn··on Show HN: MidiPad 2 – A customizable Midi Pad Controller
Exactly. The general idea is that you get a measurement of the applied force, so integrating that value gives you an approximate velocity.
thedjinn··on Show HN: MidiPad 2 – A customizable Midi Pad Controller
3D touch is not supported on all devices unfortunately.
thedjinn··on Show HN: MidiPad 2 – A customizable Midi Pad Controller
The accuracy is a trade-off between latency and precision. The touch event arrives as soon as you touch the screen, but the actual force of your touch still needs a few milliseconds to actually put the device into motion. Waiting a little bit while collecting measurements gives you quite an accurate indication of the force used, but the increased latency makes it harder to play.

Sliders and knobs will be added in a future version. I wanted to put an MVP on the app store first before adding additional features.

thedjinn··on React v15.6.0 Released
I have been using React Native for a year now on a large project and came to the same conclusion. I find using Redux can quickly lead to over-engineered software.

As goes with every extra dependency: don't use it until you actually need it.

thedjinn··on Real-Time Music Visualization on the iPhone GPU
Most music is mixed not to have any useful spectral information below that frequency anyway. And if you want beat then a better thing you can do is look at the half-wave rectified difference between the sums of two FFT frames (with optional lowpass). This results in an onset graph that is the basis for a lot of real-time beat detection algorithms.
thedjinn··on Real-Time Music Visualization on the iPhone GPU
Pretty boring if it's just FFT based. I'd love to see music visualizations make use of more sophisticated musical feature detection, like polyphonic note recognition or tempo/rhythm analysis.
thedjinn··on All AMD ThreadRipper CPU's will have 64 PCIe Lanes
I wonder if it's possible to use some kind of translator, like Apple did with Rosetta to run PowerPC code on x86. This is of course not interesting for the Surface but it might be a nice solution for a desktop transition to ARM.
thedjinn··on UIDebuggingInformationOverlay
Don't forget there's also Xcode's built-in view debugger. Very useful tool!
thedjinn··on Vancouver bans whales and dolphins at aquarium
A while ago I read about the DMZ between North/South Korea being a place where endangered species thrive again.
thedjinn··on One month with React Native
No, such a claim would be complete nonsense.

We are using a local database as a mirror for offline use, which is a key requirement. Profiling (a forgotten art nowadays) shows that most time spent during queries is in this bridge and not in the actual queries.

thedjinn··on One month with React Native
Our app is used by people working in remote areas without mobile/wifi reception. Therefore we maintain a local copy of the user's state.
thedjinn··on One month with React Native
We are using SQLite. The performance bottleneck is not the database itself but conversion between the Java and JavaScript environments.
thedjinn··on One month with React Native
I have been working on a large React Native project for several months now. It's great for quick prototyping but once we started doing heavy database stuff it got really slow, especially on Android. Of course we could have ported that part to native code, but that kind of defeats the purpose, doesn't it?
thedjinn··on Simon Tatham's Portable Puzzle Collection
From the guy that wrote PuTTY
thedjinn··on Show HN: I made an app for creating fancy app store screenshots
This was a bug in the build process and has been fixed now. Thanks for reporting!
thedjinn··on Show HN: I made an app for creating fancy app store screenshots
Yes! Over time I will add new templates and more device images. Android support is also planned for a future version.
thedjinn··on Show HN: Summarise all code annotation like TODO or FIXME
For those not working with JavaScript here's the same thing made with 40 lines of Ruby and no external dependencies.

https://gist.github.com/thedjinn/17c68d1e62b5594581625c016b0...

Page 1 of 3Next →