The Apple Photos app sometimes corrupts images when importing from my camera.| Tenderlove Making
Name Last modified Size Description| tenderlovemaking.com
Name Last modified Size Description| tenderlovemaking.com
The Apple Photos app sometimes corrupts images when importing from my camera. I just wanted to make a blog post about it in case anyone else runs into the problem. I’ve seen other references to this online, but most of the people gave up trying to fix it, and none of them went as far as I did to debug the issue. I’ll try to describe the problem, and the things I’ve tried to do to fix it. But also note that I’ve (sort of) given up on the Photos app too. Since I can’t trust it to impo...| Tenderlove Making
I haven’t blogged in a while, so I figured I should do that. Jet lag has blessed me with some free time this morning, so I figured I would make some content in order to feed the AI bots. I’ve been messing around with pre-allocating files on the file system on macOS. This is useful in cases where you have a large file you need to copy, and you want to copy it quickly. For example, a tar implementation where the tar file might contain large files you need to copy.| Tenderlove Making
My last post detailed one way that CRuby will eliminate some intermediate array allocations when using methods like Array#hash and Array#max. Part of the technique hinges on detecting when someone monkey patches array. Today, I thought we’d dive a little bit in to how CRuby detects and de-optimizes itself when these “important” methods get monkey patched. Monkey Patching Problem The optimization in the previous post made the assumption that the implementation Array#max was the original ...| Tenderlove Making
Lets mess around with serial ports today!| Tenderlove Making
Lately I’ve been messing around with writing a GraphQL parser called TinyGQL.| Tenderlove Making
I’ve been working my way through Engineering a Compiler.| Tenderlove Making
I do most of my text editing with MacVim, but when I pair with people I like to use tmate.| Tenderlove Making
The Ruby community has lost a giant.| Tenderlove Making
I hate writing if statements.| Tenderlove Making
Hi everyone! I finally upgraded to an M1. It’s really really great, but the| Tenderlove Making
The recent compromise of ua-parser-js has put the security and trust of published packages at the top of my mind lately.| Tenderlove Making
I hope nobody runs in to a problem where they need the information in this post, but in case you do, I hope this post is helpful.| Tenderlove Making
This is just a quick post mostly as a note to myself (because I forget the jq commands).| Tenderlove Making
Encoding issues don’t seem to happen frequently, but that is a blessing and a curse.| Tenderlove Making
Recently I gave a talk at RailsWorld (hopefully they’ll post the video soon), and part of my presentation was about eliminating allocations in tokenizers. I presented a simple function for measuring allocations: def allocations x = GC.stat(:total_allocated_objects) yield GC.stat(:total_allocated_objects) - x end Everything in Ruby is an object, but not all objects actually make allocations. We can use the above function to measure allocations made in a block. Here are some examples of code ...| Tenderlove Making