I was implementing a location services functionality when I (luckily) noticed that my class wasn’t deallocating. I suspected my own code, of course, but a little bit of digging showed that the problem actually seemed to be in CLLocationManager
, specifically it seems to retain the delegate after calling requestLocation()
or startUpdatingLocation()
.
*& backpointer.com
Thoughts & experiences in every day software development
Retain cycles with CLLocationManager
Running Weblate on AWS EC2 spot instance
I have a few ongoing pet projects that are also translated to a few languages, I am using POEditor for managing localizations at the moment. It’s simple enough and works good. However, their free plan is not the most generous for my use case and neither are their paid plans so I started looking for an alternative.
The competition is not great actually, there are a lot of professional full-featured tools most of which provide some kind of added value for bigger companies but not for me. I really just need a simple tool to hold all my strings with a simple interface to change translations and that’s it. An API access is a bonus but most certainly not required. Guess there’s a niche to be filled in here…
Anyway, after some searching I settled on Weblate. It’s more expensive than POEditor but it’s open source, it’s Django and I can self-host it. This will take some of my time but I think it will be worth it. The plan is to run this on a tiniest possible AWS EC2 spot instance to get the lowest cost possible even though they seem to recommend at least t3.small
, I will only utilize 1 user account and I really don’t think more compute power will be needed but we’ll see about that.
UITableView choppy pagination
Have you ever implemented UITableView
infinite scrolling or pagination in combination with the UIRefreshControl
and the scrolling somehow stopped or was laggy right when you were inserting new rows? I was puzzled that this was not happening in all cases and couldn’t figure out what’s causing it.
Hello
👋🏻 hi all! I’m Ian, a freelance software engineer living in Amsterdam and I started this blog where I want to write about my thoughts and experiences about software development and things that surround it.