I've got another installment in my series about @codemirror–this one is about connecting CodeMirror to ANTLR (@the_antlr_guy). There was enough info here that I felt the need to separate this into two posts. First, building a TS language server with ANTLR
https://t.co/ABQZvp9qy6
I wrote this Format dialog back on a rainy Thursday morning at Microsoft in late 1994, I think it was.
We were porting the bajillion lines of code from the Windows95 user interface over to NT, and Format was just one of those areas where WindowsNT was different enough from Windows95 that we had to come up with some custom UI.
I got out a piece of paper and wrote down all the options and choices you could make with respect to formatting a disk, like filesystem, label, cluster size, compression, encryption, and so on.
Then I busted out VC++2.0 and used the Resource Editor to lay out a simple vertical stack of all the choices you had to make, in the approximate order you had to make. It wasn't elegant, but it would do until the elegant UI arrived.
That was some 30 years ago, and the dialog is still my temporary one from that Thursday morning, so be careful about checking in "temporary" solutions!
I also had to decide how much "cluster slack" would be too much, and that wound up constraining the format size of a FAT volume to 32GB. That limit was also an arbitrary choice that morning, and one that has stuck with us as a permanent side effect.
So remember... there are no "temporary" checkins :)
Follow me for more random code musings!
@ChrisEsplin Any guesses on when you will need testers? I have my library in an awkward half migrated state and I’m hoping to get it figured out in the next couple of months.
@ChrisEsplin 👋 started using your Google Photo downloader and so far it's been pretty great! Wanted to make you aware of a funny edge case that I discovered–if you are backing up photos to an external drive and the drive goes to sleep, the process pauses.
I spent *a lot* of time trying to get operability between CM6 and ANTLR as part of my work on the ShopifyQL code editor (which I've written about before). I didn't have any guide for how to do any of this before working on it, so my hope is that these help somebody. Enjoy!
@ChrisEsplin Amazing to hear you are working on it! If you want a beta tester, I would love to test it for you, I am currently spread between Google Photos and iCloud Photos and would love to finish the migration.
Over the last year or so I have spent *many* hours working on the ShopifyQL editor within Notebooks. I decided to share my experience on the @ShopifyEng blog and dig in to one particular challenge I faced and how I solved it:
Our app, ShopifyQL Notebooks, equips every merchant with a powerful ShopifyQL code editor. To ensure a delightful code editing experience, we turned to @CodeMirror. Learn about how we built support for ShopifyQL in CodeMirror in this post by @thetrevorharmon 👇
https://t.co/GrNGk88fnO
@ChrisEsplin Had another question—does Quiver preserve Live Photos? I was looking at the files saved/exported and saw that they are all in .jpg format instead of the original HEIC format
@ChrisEsplin Yeah, I was impressed when I saw that you had versions for Linux, Mac, and Windows. I thought "wow, I would definitely only support Mac if I were making this".
And will do! I am hopeful that there are zero kinks and the only feedback is "thank you for making this so easy".
@ChrisEsplin and then run a program against them?
I was going to go that route (following this guide: https://t.co/CjDngG9UGc) but I decided to go with your solution because it was less hassle.
@ChrisEsplin Wow. That is amazing that the web app is more reliable than the API! That makes a lot of sense for why I’m seeing this bug.
Did you ever consider making this something that worked with Google Takeout? E.g. you download your Google takeout zips, stick them in a folder,
@ChrisEsplin Decided to go with the nuclear option and remove everything, including everything in the __data folder. Started again, this time it found 43k records to start with and I’m seeing that it’s importing photos back from the 90s (which is when my library starts). Strange!
@ChrisEsplin Another interesting quirk: I scanned my library and it came up with ~2k records. Hit import and it imported them, and showed 2023 & 2024 as the years.
Re-scanned and found 43k records. Went to import them but the importer didn’t do anything with the new records found 🤔