Coding with Titans

so breaking things happens constantly, but never on purpose

HowTo: Using assets in Android unit-test project

You have probably heard already a tremendous number of times that unit-testing your Android code is important. It’s all true and still valid. And there is one recipe I tend to forget quite often, which I also found extremely useful, while writing tests exercising (or relying onto) any external data. In this scenario, all the content is kept outside of the unit-test itself and is simply read at runtime from resources (aka assets). Read more →

HowTo: Get currently active version of Xcode

Sometimes knowing the current version of Xcode used to build the stuff from command line becomes a useful intel. Here is the recipe on how to obtain this information in a clean manner. Easiest command would be to call: $ xcodebuild -version That produces output like: Xcode 12.5 Build version 12E262 As an improvement I could use sed to simply extract the number from a line with the Xcode prefix: Read more →

HowTo: Select running iOS simulator while automating testing

One thing was always a dilemma for me - running iOS automated unit-test from a command line. On the first look the command looks simple, it’s just a call to xcodebuild with a bunch of parameters. What can go wrong there, right? $ xcodebuild -resultBundlePath "$test_results_path" -workspace "$workspace_path" -scheme "$scheme_name" -sdk "$sdk_version" -destination '$destination' -testPlan "$plan_name" -only-testing:'$single_test_path' test Where: test_results_path - describes the path, where to store test outcomes (.xcresult bundle). Read more →

Restoration of Tajfun

Exactly - last week was a good one to fix something. Among all the gray matters that surrounds me I picked up a single task and completed it. It’s really an empowering feeling. I had a hope of restoring my old PC Tajfun from its cyber-grave as it has been more than a quarter since it breathed its last byte. If you’ve read the previous story, you would provably know, that I already took the old and broken Asus motherboard and visited a service workshop. Read more →

HowTo: Find and mark all FIXME / TODO in Xcode project

This time it won’t be a guide I came up myself from scratch. Recently I joined a totally new Swift project and wanted to quickly understand, what it does. Then I had an idea of navigating and finding issues, that were left there by my fellow previous developers. Those specially marked lines are usually left there and aren’t meant to be brought to light. Mentally they can be ignored for years by their creators. Read more →

Power failure due to fried bus bar

This year (and absolutely last month!) seems to be very hard for me. Am I really so much unlucky? Or did it accumulate to balance any earlier happiness? Because today (Sunday!) I experienced a total power failure in my home office. My wife tried to print child’s homework, while we lost power in wall sockets of the room with the printer. However lights remained OK, also other places in my apartment were not affected. Read more →

New PC arises

Plan for today: avoid COVID-19, avoid full lock-down and perform e-learning with my children and myself (with this list). Also as a background task few months ago I started slowly moving towards purchasing my new desktop setup to have something to spare in case of deeper and longer e-learning period. This actually happened and was officially announced last week in Poland (till that I had only the older one with me)! Read more →

Fixing Windows Update “Managed by Organization” in Windows 10 20H2

I did replaced my old PC (with this custom setup), that recently terminated from its service with a brand new one (configuration here). However I have noticed a very strange message displayed on its Windows Update screen, even if Windows 10 Pro 20H2 Edition was installed and activated just minutes earlier: Some settings are managed by your organization (PL: Niektórymi ustawieniami zarządza Twoja organizacja) I am pretty sure I am not a part of any organization, beside my own! Read more →

Flutter for iOS and Push Notifications warning

After publishing a Flutter app to App Store I received following email: Dear Developer, We identified one or more issues with a recent delivery for your app, "pl.codetitans.app" 1.2.3 (4). Your delivery was successful, but you may wish to correct the following issues in your next delivery: ITMS-90078: Missing Push Notification Entitlement - Your app appears to register with the Apple Push Notification service, but the app signature's entitlements do not include the 'aps-environment' entitlement. Read more →

Xiaomi Mi Fit hang at 100% synchronization

Another day another issue… this time related to Xiaomi software and hardware. Please let it stop! I must admit I am really unlucky guy recently. Last week (on 2020-10-25) my Mi Band 4 simply refused synchronization with the Mi Fit app on iOS. There was no warning, nothing, my 90-days long achievement got broken. Device was working fine until that day. It was paired fine. It was even able to display current footsteps on the main app screen, battery level was shown correctly, weather info too, but because of an unknown reason data was not further pushed to Health App nor any of the charts were updated. Read more →