Tony Scida
Archive About Also on Micro.blog
  • This week I was assembling a sizzle reel for a client of their recent media coverage. One of the clips looked fine when I previewed it in Finder and even when I opened it in QuickTime, but was stuttery in Premiere Pro. It seemed to be a problem with the frame rates, but I couldn’t seem to resolve it in a satisfactory way. Neither Premiere Pro nor Media Encoder could create a version that worked. Saving from QuickTime caused the quality to deteriorate unacceptably. I was about to give up, when I decided to try using Final Cut Pro, which I don’t much know how to use.

    Ultimately I managed to figure out how to open the file in a project, place it in a timeline and save it out as a new version which worked great in the Premiere Pro project. I’m so used to only using Premiere for everything. This is a good reminder to try out some of the other tools I have laying around rather than banging my head against something for too long.

    → 3:16 PM, Apr 18
  • Adapting iPhone views to Dynamic Type Sizes

    I’m still making progress towards getting my app, Scale Shuffle, ready to submit to the App Store. (The app displays a random scale as a music practice tool.) Today I spent some time making sure it looks good (or at least ok) at various text scaling sizes. This required changes to every screen. At first I thought I was going to have to lose the icons on the Resources screen, and then my friend Ben pointed me towards the documentation for the Dynamic Type Size environmental variable.

    → 5:55 PM, Jan 23
  • Because this tripped me up, even though it’s maybe obvious to everyone else. There are two Property List options that mention encryption, and if you want the prompt in App Store Connect about encryption exporting to go away, you need the second one.

    → 5:19 PM, Jan 16
  • Django {% regroup %} and dictsort

    I ran into an issue using Django’s {% regroup %} template tag where sometimes a group would be shown twice. It turns out that I needed to use the dictsort filter on the object list, as noted in the documentation, becasue I didn’t have the model ordered by the property I was grouping on.

    Here’s the example from the documentation:

    {% regroup cities|dictsort:"country" by country as country_list %}
    

    In my case, I needed to filter by a property of the related model:

    {% regroup employee.request_set.year|dictsort:"request_type.name" by request_type as type_list %}
    
    → 2:27 PM, Jan 8
  • Getting the unique years from a Django query

    For the same project I previously posted the custom model manager for, I needed to get a list of just the years for all the entries in a queryset. After a bit of experimentation and going down a few dead alleys, I found my answer in the excellent Django documentation, with the .dates() method.

    → 1:29 PM, Jan 3
  • RSS
  • JSON Feed
  • Surprise me!