Occasionally, I do kikay stuff too! Swimming is something I got into recently, and frequently being in swimsuit, swimming the front crawl stroke which often exposes the armpits, prompts me to keep the underarms hair-free… as much as possible. 😆 For a few months I turned to waxing at Lay-Bare but talking to girl friends […]
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 […]
Swimming with fishes at Camayan Beach Resort (Subic, Philippines)
The unknown scares me. It was what triggered an injury on my toe back when I tried to snorkel in Samal Island. I was wearing a life vest but still felt nervous in the water… not only because I didn’t know how to swim back then, and I did not know what aquatic creatures I […]
Philippine Passport Renewal 2018 – DFA SM Manila (NCR West SM Manila Site)
On April 14, we had an appointment at DFA SM Manila for Philippine passport renewal. The process took 2 hours in total, which wasn’t so bad. We were holders of the older type of e-passport, which were only valid for 5 years. We received our renewed passports via LBC about 10 business days (rush) after […]
Android: SharedPreferences not accessible from SyncAdapter
When I was trying to access a SharedPreferences value from my Android app’s SyncAdapter, I kept on receiving an old value that was saved to the key. Quick solution to inaccessible SharedPreferences from SyncAdapter A quick solution (which may be a short-term one) I tried was to remove android:process=”:sync” from the following code:
|
1 2 3 4 |
<service android:name=".service.SyncService" android:exported="true" android:process=":sync"> |
But […]