Pasi Salenius

@pasi@infosec.exchange
482 Followers
681 Following
3.8K Posts

iOS Developer at Elo Health

Also develops Mac and iOS apps:

Proxygen for hacking with HTTP 🤖
https://proxygen.app

Maptrails for hikes in the wilderness 🗺️
https://freshbits.fi/apps/maptrails

Previously spent 10 years securing online banks and mobile apps against attacks.

Websitehttps://freshbits.fi
Proxygenhttps://apps.apple.com/us/app/proxygen/id1602229284
Maptrailshttps://apps.apple.com/app/apple-store/id1524211335
GitHubhttps://github.com/PasiSalenius

Nothing in life is ever simple and neither was this.

Of course things didn’t go *exactly* as planned. The one scenario I didn’t see happened to some folks.

It goes like this
1) launch iPhone app which moves all items to DB
2) launch iPad app which *also* moves all items to DB, before the iCloud sync has happened
3) iCloud syncs already migrated items from iPhone to iPad app, although items have same UUIDs they are different objects in Core Data (i.e. my dupe check when adding doesn’t apply)
4) now we have duplicates

The duplicates are particularly bad as my app is really expecting there to only be one item for each UUID. Now on to deduplicating them on users’ devices.
https://infosec.exchange/@pasi/114862129225905595

Pasi Salenius (@pasi@infosec.exchange)

Say we have two devices that have data in iCloud key-value storage. On app update we want to migrate that to iCloud synced Core Data database. Once the migration is done we mark a bool pref flag. How do we ensure that the following doesn’t happen? 1) iPhone app is first updated and copies KVS data to Core Data 2) iPad app is updated next, copies the same data from KVS to Core Data 3) iPad app syncs items to iCloud, iPhone copies them over and has duplicate items

Infosec Exchange
Severance S02 just kept getting progressively worse. Had to stop to not waste more of my time on it. What a disappointment.
Why is it that smaller car rims are said to roll more efficiently and give a smoother ride, whereas for bicycles it’s the opposite and larger wheels roll better and smoother? 🤨

I don’t know if there’s such a thing as a perfect album but Weval’s Remember gets pretty close

https://open.spotify.com/album/7wfRiLLgR2anjPEaesqAtr

Remember

Weval · Album · 2023 · 11 songs

Spotify

One thing that makes me kinda sad is that I put all the time and effort to make my Proxygen Mac app look just right on the current Mac UI, just before the grand redesign.

I have little faith that Apple will maintain all the small details like drag drop animations etc in the macOS 26 update. They’ll probably break and get left that way until macOS as we know it is finally deprecated or Apple just quits talking about it as if it never existed.

If this big UI redesign did not happen exactly now I would’ve at least got good use of the app for a few years to come before the inevitable decline.

If Daniel Ek decides to fund development of AI drones that help Ukraine fight the horrible attack of Russia, I wholeheartedly welcome that. In fact all billionaires should do the same and make sure Ukraine is able to fight back.

There seem to be some people who don’t get it. Europe is at war with Russia. US aid is uncertain and we’re doing everything we can to fight on our own.

If you find that a reason to change to a different music streaming service, stop to think for a moment.

The good and bad of sleeping with a view like this (sun rises 4.54am here)

☀️😎

Never before in measured history has Finland exceeded 30 °C on fourteen days in a row.
#Finland #weather #climate
I get a feeling that there’s simply too much math in Maptrails for Claude Code to be effective. It goes round and round trying to understand the calculations and makes up a lot of stuff but it doesn’t really seem to work.
Why they don’t have a monthly allocation of tokens which resets first of each month, but instead make you return to it every 6ish hours seems a carefully considered choice to plant the seeds of a mental habit to keep you coming back.