∞
VersionedSchema Protocol Updates
After updating to Xcode 15 beta 7, I got a VersionedSchema error saying that
1 does not conform to protocol 'VersionedSchema' Previously, the variable versionIdentifier was of the type String.
1 static var versionIdentifier: String = "v1" On the latest Xcode 15 beta 7, versionIdentifier is now of the type Schema.Version.
1 static var versionIdentifier: Schema.Version = Schema.Version(1, 0, 0)
∞
Build Go programs with GitHub modules present
I was hit with an error when I try to run a Go script, go run somescript.go. This is a note to my future self, in case I totally forgot.
1 no required module provides package github.com/gofrs/uuid: go.mod file not found in current directory or any parent directory; see 'go help modules' I need to run the command below.
1 go mod init somescript.go Then it will output the following lines.
∞
Throwback Android Developer Google Group
Out of the blue, I remember that I was in a Google Group community of Filipino Android developers back in 2011-ish. After some quick Googling, I found the group. This was in 2011? Wow.
I am surprised the link is still alive, knowing Google’s history of shutting down things.
Yeah, the post feels kinda lonely. There weren’t that many Android developers in my area back then. At this point in time I am not even entirely sure if I could make a living out of this profession.
∞
That Annoying Xcode 15 IDELogRedirectionPolicy
This issue will cause debugging on either device or simulator to slow down to a crawl.
For future reference, here’s how I fixed it.
Edit the current scheme by going to Manage Schemes.
In your run scheme, add the environment variable IDELogRedirectionPolicy with a value of oslogToStdio. It should fix that issue now.
∞
Chess Milestone: Advanced to Legend
A few days ago, I was able to advance to the most elite division of chess.com, the legend division. After playing a few games from this division, as I predicted, the games are so hard to win.
Previously: https://law.gmnz.xyz/2023/04/25/chess-milestone
∞
Sharing from Linux to macOS
Note: The OS versions I used here are macOS Sonoma 14 Beta 3 and Fedora Workstation 38.
On the first try, I was supposed to enable file sharing from macOS and access it on my Fedora machine. But Apple’s Samba did not work. So, I tried the opposite instead.
Install and Setup Samba on Fedora 1 2 3 4 5 sudo dnf install samba sudo systemctl enable smb --now firewall-cmd --get-active-zones sudo firewall-cmd --permanent --zone=FedoraWorkstation --add-service=samba sudo firewall-cmd --reload Make sure the user already exists in fedora, in my case lwgmnz@fedora.
∞
Last.fm API
I recently recovered my Last.fm account, which was one of the top music services before Spotify or streaming in general. It says my account has been around since 2010, thus the cringy username xthekingisdeadx. My profile picture and username still stay the same.
I want to retrieve my Last.fm data, particularly from my top artists and albums I have listened to for the past week or month. So I could share it somewhere.
∞
WWDC 2023
I just realized that I have not written something or anything about Apple’s WWDC 2023. I was too busy catching up with the WWDC sessions and some fatherly stuff I have to deal with.
Overall, I am impressed by the event and the news coming out of it. I just want to write down a couple of thoughts before I forget.
Xcode 15 Xcode 15 is buggy as hell. Running an emulator or preview makes my machine overheat.
∞
Thoughts on Stack Overflow 2023 Survey
Note: I always participate in this survey every year.
Developer Type On the developer type question, there is only 3.38% that consider themselves mobile developers. This is good I think? It means less competition for me. It has almost the same percentage as students.
Geography The Philippines has only 0.4% of the respondents who participated in this survey.
Age My age bracket is still a significant percentage of the professional developer category.
∞
Stack Overflow Keycap Reward
My tiny reward from Stack Overflow arrived yesterday, a small single keycap. I won it when I answered their Saved the Day story. I did not remember when, it was a long time ago.
Initially, I told them to not even bother shipping a small item overseas, the Philippines' Customs are not worth the trouble.
But they insisted. Thanks!
∞
r/BusinessPH will be going dark
The sub r/BusinessPH will join the Reddit blackout on June 12 - 14, 2023, this is in solidarity with developers of third-party clients who will have to pay a hefty price for access to Reddit’s APIs.
For more details, you can read it here.
As a mobile developer myself and an Apollo app user, I feel and understand very well their current plight. If you have any questions, or comments don’t hesitate to contact the mods.
∞
dSYM workaround in Xcode 14
Starting with Xcode 14, Bitcode has been deprecated. So, in our team’s case, it is impossible to download dSYM files for debugging crash logs. If you are using Crashlytics or Bugsnag, this is a requirement to make sense of the received crash logs from iOS.
But there is a workaround. Previously, all you have to do was go to App Store Connect and download the dSYMs directly from there. But that option is not available anymore.
∞
Underwhelming Google I/O 2023
After watching half of the Google I/O Keynote, I had to close the video because it was starting to bore me. There was no excitement for me, AI/ML is a topic I am not interested in. I took notes of the keynote while watching, and I just wanted to publish it here for keepsake purposes.
Google IO 2023 Notes Keynote
So many AI/ML keynotes and features. Not interested. Bard? Does not interest me.
∞
SwiftUI Tap Anywhere
Today I learned how to implement tap anywhere to dismiss the keyboard on SwiftUI.
In your parent stack, either VStack or HStack, add the following code.
1 2 3 4 .contentShape(Rectangle()) .onTapGesture { UIApplication.shared.sendAction(#selector(UIResponder.resignFirstResponder), to: nil, from: nil, for: nil) } The most important thing to take note here is the contentShape modifier or tap gesture will not work.
∞
YouTube Coding
3 days ago I uploaded on YouTube my coding in SwiftUI, working on a couple of simple bug fixes for my hobby project.
My wife gave me this idea and also I remember I have some coding sessions in Loom from 2 years ago, where I did a coding demo for a client. And, looking back at those videos is really cool and nostalgic.
So, I decided why not upload it on YouTube.
∞
Chess Milestone
I achieved a very rare milestone last night. I had a 10-game winning streak in a “Champions” Division. I am not entirely privy to the division but I am pretty sure this is not a beginner’s division.
My new routine for the past several months is to play a couple of chess games before going to sleep or after putting our son to sleep at night.
And I am also currently no.
∞
Xylophone App
In roughly an hour or two, I created an iOS app for our son who loves playing his Xylophone. I came upon this old repo for inspiration and reference. This was still developed using Storyboard and UIKit. So, I set out to write my own using SwiftUI.
I also borrowed their sound files. The owner of these files belongs to them.
The code looks like this initially.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 // // PlayerView.
∞
Fedora 38 Released
Just installed Fedora 38. So far, no issues found.
The default wallpaper sucks though.
∞
Sound of Metal Movie
Just finished watching the movie Sound of Metal. It was a great film and just found out that it was nominated for best picture back in 2021.
If you watch the film, Ruben the main character was wearing a Youth of Today hoodie several times throughout the movie. It was revealed that he was recovering addict. 4 years drug-free he said.
For the uninitiated, Youth of Today is a hardline vegan straight-edge (refrain from drugs and alcohol movement) band.
∞
New MacBook Air M2
My new Macbook came in today, from my sister in Houston. Thank you!
Coming from Macbook Pro 2015 (won’t run the latest Ventura or Xcode 14.3 anymore), this is a huge leap for me.
I just want to take note of the software and applications I initially installed for future reference.
Applications Installed in order Firefox Dashlane Grammarly Xcode Android Studio Homebrew git Todoist iTerm2 Sublime Text 4 Fantastical
∞
Early Birthday Gift
My wife gifted me an early present, a Fitbit. Thank you so much! I love you!
I used to have a Huawei smartwatch but lost it and hopefully, I can find them. This is my first Fitbit device. I always enjoy tracking my health data, especially my sleep pattern and steps.
And as someone who’s getting older by the day, tracking my health is something I am planning to take seriously.
∞
Jetpack Compose Journey Part 1
This will be my first time delving into Jetpack Compose for a rewrite of our existing app. I believe I have no time to study or do a full Google code lab for this one, due to the constraints of the timeline and deadline. So I will have to go head first and rely on my > 11 years of experience.
Setup So with every new Android project, I created one.
∞
Belated Happy Birthday To My Wife
After a very busy day yesterday, there was not enough time to post a greeting here.
Happy birthday to the best person I have ever known and my lovely wife! I love you so much!
∞
Google I/O 2023
It’s that time of the year. I’m surprised that Google announced the event this early.