Today I encountered the following error as I was building an Android app: Turns out, there’s an error in the related XML file, activity_main.xml! 😂 For other possible solutions, this StackOverflower answer may help: android: data binding error: cannot find symbol class
Technology
Cannot access ‘‘: it is private in ‘MoshiConverterFactory’ //Android Kotlin Dev Diary
I’m starting a new category on my blog — Dev Diary, to document some of the errors that I encounter and what I did to fix them. I’m doing this in hopes of helping developers (including my future self!) as they work with code (and to get more blog visits! LOL). It’s nice to save […]
Get “order” object/details from Thank You page of WooCommerce (WordPress)
It’s been a long while since I last posted anything related to coding. I haven’t really stopped, but from Android app development, I switched back to PHP. Life has become occupied with other things, but when I do code, it’s in WordPress with WooCommerce. It’s for my online shop. In my opinion, WordPress is not […]
Git/Bitbucket: Resolving “fatal: unable to create thread: Resource temporarily unavailable” error during push
I’ve been trying to push a new WordPress site’s codebase to my Bitbucket Git repository but it kept on failing with the following error messages: I was trying to push my codebase from my server (hosted by Namecheap) to Bitbucket. The solution to make the push work was to enter the following through command line […]
GCash Customer Service – Does it even exist?
I run a small baked-per-order goods business and many of my customers wanted to pay in GCash so granted them their wish to make payment more convenient. Prior to this, we used to accept bank transfer/deposit only, but when my husband showed me that he could cash-out money from his GCash account by sending it […]
Samsung Galaxy S8 stuck on model name screen / SM Megamall SAMSUNG Service Center
One afternoon, I was playing an “action” game on my Samsung Galaxy S8 when the phone suddenly froze — no button responded to my presses, whether it’s a soft button or hard button, with the motionless screen of my game still on display. After a few seconds, the phone turned off. I noticed that my […]
Android Kotlin: ‘getter for position int’ is deprecated. deprecated in java
Today I encountered a deprecation warning as I’m coding the app: ‘getter for position int’ is deprecated. deprecated in java And I was like, whoa, this wasn’t deprecated a couple of months back when I last touched Android code… this is how long I’ve missed out! 😂😂😂 I haven’t touched any app code for a […]
Android Kotlin: “overrides nothing” error appears on instantiateItem() function of PagerAdapter
I just began learning Kotlin for work and one of the first errors I encountered is “overrides nothing” pointing at the overrides of the function instantiateItem() for my PagerAdapter The function/method signature was like this: override fun instantiateItem(parent: ViewGroup?, position: Int): Any { To fix the error, I simply removed the question mark from the […]
Laravel 5.X directory permissions / ownership setup
According to the Laravel docs, “After installing Laravel, you may need to configure some permissions. Directories within the storage and the bootstrap/cache directories should be writable by your web server or Laravel will not run”. After running this command to install Laravel via Composer:
1 |
composer create-project --prefer-dist laravel/laravel blog |
Change directory ownership by running these commands:
1 2 |
sudo chown -R www-data:www-data /path/to/your/project/storage sudo chown -R www-data:www-data /path/to/your/project/bootstrap/cache |
Then you […]
Android: Facebook SDK “Invalid Key Hash” on Ubuntu
I kept getting a different Facebook key hash from the one being actually generated by my debug app when it runs. Turns out I’ve been entering the wrong keystore password. To get your key hash for Facebook SDK on Ubuntu, run the following command:
1 |
keytool -exportcert -alias androiddebugkey -keystore ~/.android/debug.keystore | openssl sha1 -binary | openssl base64 |
In case you don’t have the keytool program yet, you’ll […]