Category: Uncategorized

  • Attempting to keep blog traffic afloat in the AI Era

    I’ve been so “heads down” at my Android App Dev job in the past few years that I didn’t know what’s going on in the SEO scene anymore.

    Today I learned that SEO is not all there is anymore. Well, I knew something was off because my blog traffic dropped significantly in the past couple of years, in time with the introduction of AI Overview when one searches for something on Google. GEO (Generative Engine Optimization) is a specific concept I learned about today. The way I understand it, it’s optimizing your web pages not for search engine, but for AI (the “generative engine”).

    I picked 1 popular (relatively) blog post and optimized its structure for GEO:

    • Added an <h2> tag “Quick Guide Summary” to a popular post
    • Converted the entire WordPress post content into “block” format (it’s a very old blog post!)
    • Converted list items that were only pieced together by asterisks (*) preceding each line, into semantic HTML lists
    • Wrapped important texts in <strong> tags, optimizing them for both human and AI readers
    • Added a FAQ at the bottom of the post to help AI find answers easier on my blog post
    • Added publish and last update dates to each blog post

    Non-GEO specific: Added navigation “helpers” to the loooong blog post, such as jump-to-top and jump-to-section links/buttons.

    Not sure yet how this will affect the blog post. I’m still re-learning the ropes here. GEO, huh? Interesting..

  • Spoofing Battery and Forcing Sleep (Android Development)

    I wanted to do something with my Android phone using ADB commands, while keeping it plugged in to run the said commands. However, the thing I wanted to test was related to the idle (dozing or asleep) mode of Android devices. The workaround was to spoof the battery state to bypass Android’s charging restrictions.

    Spoofing Battery Charging Status and Forcing Android Device to Sleep (Idle Mode)

    • Turn off the device screen using the physical power button.
    • Trick Android into thinking the device is running on battery power: adb shell dumpsys battery unplug
    • Force the device to step into deep Doze mode: adb shell dumpsys deviceidle force-idle
    • Verify the device is successfully spoofed and asleep: adb shell dumpsys deviceidle get deep (This should return IDLE).

    Can also do:
    adb shell dumpsys battery unplug && adb shell dumpsys deviceidle force-idle && adb shell dumpsys deviceidle get deep

    Device Cleanup for Spoofed Battery and Forced Sleep (Crucial!)

    1. Once testing is done, you must tell the OS to start reading the actual battery state again, otherwise it won’t charge properly: adb shell dumpsys battery reset
    2. Bring the device out of idle: adb shell dumpsys deviceidle unforce

    Can also do:
    adb shell dumpsys battery reset && adb shell dumpsys deviceidle unforce && adb shell dumpsys deviceidle get deep

  • Shorter ADB commands for Android Studio Emulator Device targeting

    To target my specific emulator devices on Android Studio with my ADB (Android Debug Bridge) commands, I usually need to type long ones, like in the commands below where i wanna list the contents of a directory:

    adb -s emulator-5554 ls /sdcard/Android/sub/directory/
    adb -s emulator-5556 ls /sdcard/Android/sub/directory/

    When I am working on a new feature or a bug-fix ticket, I try to avoid typing long commands and args over and over again, especially args that are as error-prone as emulator-5554.

    How to shorten the ADB commands that target emulators (Mac OS):

    Open your Zsh config file with an editor. Mine by habit is Vim. Like so:
    vim ~/.zshrc

    Use your arrow keys to go to the very bottom of the file and copy-paste below exact code:

    adbs() {
      port=$1
      shift
      adb -s "emulator-55$port" "$@"
    }


    What it does is creates a new command adbs. I think the addition of s at the end is appropriate because the flag we are trying to work with is the -s flag which stands for “Serial”, for identifying specific emulators.

    The way the new command works is,

    • the $1 captures the first argument you type after adbs and saves it — for example, the 54 in adbs 54.
    • The shift bit removes the first argument from the front so that the actual command to be run will NOT be adb -s "emulator-5554" 54 logcat (wrong!)
    • Finally, the last line adb -s "emulator-55$port" "$@" runs the correct command, inserting the first argument (54 in our example) where $port is, followed by "$@" which grabs the rest of the command after the 54

    Save the changes to the config file and then exit the editor. In Vim I press Esc key, then type :wq! and hit Enter. IIRC my partner questions something about my :wq! usage, but what he points out, I can’t remember.

    After saving the config file, run the following command to make the new shortcut work immediately:

    source ~/.zshrc

    Usage Example:

    Instead of typing the long version:
    adb -s emulator-5554 ls /sdcard/Android/sub/directory/

    We can just type:
    adb -s 54 ls /sdcard/Android/sub/directory/

    Extra: to know what serial numbers of running devices you got, run below command

    adb devices

    Random thoughts: I am grateful to my very first team lead as a software developer (Peng) because he’s the one who inspired me to become comfortable with command line interfaces. Remembering how much I grew as a dev in that team due to high-traffic production databases that we were managing and debugging in realtime. Oh, the source command on the other hand, was something I learned from my current team lead, Maru. I like how much I am growing in this current team, not only as a dev, but also as a person.

    Credit goes to Google Gemini for the above adbs custom command. I had no idea how to write that until today. hehe

  • Fountain pen inks & papers least sensitive to hand cream or oil

    I have been using fountain pens these days to reduce the pressure on my hand, as I hand-write quite frequently, both for work (for problem solving and work journaling) and for personal (journaling, planning, common-placing, etc.).

    But as someone who needs to apply moisturize the hands often due to skin issues, the lotion, cream, or oil on my hand often get in the way of fountain pen inks! The inks would skip or feather on paper, and it can be distracting or frustrating sometimes.

    So, in this post I’ll be listing down what inks and papers I found to be least sensitive, or least affected by hand cream or hand oil when writing with fountain pen ink. Just note that what works for me may or may not apply to you because of varying factors, including the type of lotion, cream, or oil we’re dealing with.

    Fountain pen ink that hold up well against hand oils:

    List of specific inks:

    • Platinum Carbon Black
      It doesn’t budge as I write on lotion-smeared MD Paper. Based on experience with this ink in a LAMY Safari EF, there’s no skipping or feathering at all. Currently the most reliable fountain pen ink to me when writing with lotiony hands!
    • Sailor Seiboku
      When writing with a Sailor HighAce Neo F or a Sailor Profit Jr. F on a sheet of MD paper, there was barely noticeable skipping of ink, with no observed feathering.
    • Pilot Iroshizuku inks:
      I have observed minimal feathering with no skipping on MD paper as I wrote with these specific inks:
      • Tsuki Yo
      • Kon Peki
      • Yama Guri
      • Yama Budo

    Fountain pen-friendly paper that I find “less sensitive” to hand oils:

    • Rhodia
    • Traveler’s Notebook refills
      • Dot Grid
      • Lightweight Paper

    Comparison notes:

    • Rhodia paper vs MD Paper “Cream”
      Rhodia paper seems to be less susceptible to skipping inks and feathering inks, compared to the MD Paper. Rhodia absorbs the ink I wrote with faster, unlike in MD Paper where the ink seems to sit there longer before it dries.
    • Traveler’s Notebook refill papers
      • 013 MD Paper Cream – The surface of this paper is smooth to the touch, as if it is finished with a coating. It takes longer for inks to dry here, from my experience, compared to the “Dot Grid” MD Paper and Lightweight Paper.
      • 014 Dot Gridย  – They call the paper used in here an “MD Paper”, and from my understanding, the only difference should be the color (this is white) plus the dot grids, of course. But to me, the “Dot Grid” MD Paper is rougher to the touch, and absorbs my fountain pen inks better than the “MD Paper Cream” one.
      • 005 Lightweight Paper – Like the Dot Grid notebook’s paper, this one absorbs ink better than MD Paper Cream. However, I feel that it absorbs a bit too much ink that there’s tendency to feather. I like sticking to extra fine nibs when writing or drawing on this lightweight paper. Although not mentioned in the official website, people say that the paper in “Lightweight Paper” inserts of Traveler’s Notebooks is Tomoe River paper.

    My go-to paper is still MD Paper Cream despite not being very tolerant of hand oils. ๐Ÿ˜… I just really like how easy it is on the eyes to gaze at that cream-colored paper, during moments when I ponder what I should write on my journal. To avoid frustration from skipping or feathering inks caused by my inkzema* hands while using MD Paper Cream notebooks, I simply reach for the inks I listed under “Fountain pen ink that hold up well against hand oils”, or use a pencil board for my hand to rest on while writing. Pencil boards are also known as shitajiki, underlay, or writing mat.

    Bonus: Non-fountain pens whose inks don’t seem affected by hand oils

    When I don’t want to bother with fountain pens, often when problem-solving at work, I reach out for:

    • Zebra Sarasa 0.5 in black

    * Ink on hands + eczema on hands = inkzema on hands, so now I use inkzemic instead of eczemic. Makes no sense? That’s fine, pay me no mind. ๐Ÿ˜Œ

  • XCEL Driving School review & rates

    After sorting things out, I finally enrolled myself to a PDC (practical driving course) at XCEL Driving School.

    I chose to take the PDC at XCEL Driving School in Makati City because the location is accessible from my place, the branch representative Ms. Alma is easy to communicate with, and I already trust them because I did my TDC (Theoretical Driving Course) with them in the past.

    I only took an 8-hour beginner course and thought I’d just add more hours as needed. Automatic car was my choice because I think that my differently-wired brain won’t be able to do its best driving a manual one. I took 2-hour driving sessions with XCEL for 4 days. After that, I chose to practice with my partner instead as he gave me more liberty to sharpen my driving skills in ways I learn best.

    XCEL Driving School review

    I will be sharing short information on each 2-hour driving session with XCEL. I will probably miss a lot of details, but I’ll try to add more later once I am able to go through my notes (I wrote down what I learn after each session, lest I forget about them).

    Day 1 of XCEL Driving School PDC Session:

    The first day involved familiarization with car parts that you’ll have to be concerned about while driving, such as tire-check, side and rear view mirror check, and also getting the feel of car controls while you’re in the driver’s seat. The most important tip from the instructor was to:

    Keep your eyes focused far ahead on the road. This gives you more time to anticipate and react to what’s happening up ahead, improving your ability to respond safely.

    Day 2 of XCEL Driving School PDC Session:

    Based on my experience at XCEL’s 2nd-4th hours of driving lessons, I think the focus at this level was properly aligning one’s vehicle on the road and getting a better feel for controlling the vehicle. For me, the trick to alignment is — again, focus your eyes far ahead on the road, and do quick glances at side mirrors to see if your vehicle’s aligning to the road’s lines/markings.

    I liked how “chill” this session’s instructor was. He mostly let me try things my way, although honestly I didn’t learn a lot of new things that day. Maybe that was the intention of XCEL driving school for this session — let the student be more confident behind the steering wheel, and then fine-tune the driving skills with a detail-oriented instructor on the next session! ๐Ÿ˜ฎ

    Day 3 of XCEL Driving School PDC Session:

    The instructor for XCEL’s 5th-6ths hours was, as I mentioned earlier, detail-oriented, and also kinda strict! It was uncomfortable how he sort of micro-managed my movements, but I’m not really complaining because I learned a lot from this person (and I am the oddball who has difficulty in learning things the “normal” way).

    There were soooo many things that this session’s instructor taught me. From adjustment of the seat to make it more comfortable, various driving maneuvers, why going slow is best, etc.

    My favorite tip from this session: Before making a turn, focus on where you want to go. Turn your head and direct your gaze toward that part of the road, looking through the side window if necessary. Keep turning the vehicle until the road you’re focused on comes into view through the front windshield.

    Day 4 of XCEL Driving School PDC Session:

    My 7th to 8th hours of driving lessons with XCEL was mostly fine-tuning of driving skills. The instructor aimed to observe how well I was able to drive, and to correct each mistake that he noticed.

    The instructor helped me practice the driving skill I sucked at the most — how much to turn back the steering wheel after making a turn. We drove countless times around blocks in the area until I got a better feel for it.

    I was advised to wait for XCEL Driving School Makati’s representative to contact me regarding biometrics capture, and was encouraged to practice as often as I can. I finished and passed my 8-hour beginner driving course!

    XCEL Driving School rates (Makati branch)

    See below images for prices of PDC at XCEL Makati branch. These were the rates as of May 2024.

    xcel driving school rates fees price review makati

    What’s next?

    I’ve been practicing during my days off work, when I am able to. My partner says that I have improved significantly and that it’s likely that I will pass the LTO driving exam. Although I am not yet sure when I will give it a go, since that will require me to be on leave from work, and from what I hear, many applicants take a whole day to get through the entire process at LTO. ๐Ÿ˜ซ The recent work days have been crazy! Well, maybe not “crazy” for other people, but I take it really seriously (maybe *too* seriously) so I have been spending a little more time and exerting extra effort. ๐Ÿ’ช๐Ÿค–

    Questions and Answers:

    • Can student drivers practice in their own personal time without an accredited instructor?
      • To be allowed to drive, the student must:
        • Bring their LTO Student Permit including the Official Receipt as well as
        • Be accompanied by a licensed professional or non-professional driver (XCEL instructors themselves told me that my partner, who has a driver’s license, is allowed to be my companion while I practice as a student driver).
  • Renew BDO debit card – requirements, cost, and experience at Southgate Mall EDSA Branch

    Renewing 1 expiring and 1 expired BDO debit card was easier and quicker than anticipated. I was even able to update one of the accounts’ civil status and name despite being from a different branch of account.

    I was running errands near Alphaland Southgate Mall EDSA, Makati, so I thought that I might as well get my expired and expiring BDO debit cards renewed here.

    Today is the 14th and is already payday for some employees, which is why I expected that I might wait for a long while to finish my transaction. But to my surprise, no one was in the counter that handles debit card renewals when I arrived around 10AM. Lucky!!

    BDO Debit card renewal requirements

    I called the branch before going there. The BDO staff told me I had to bring these to renew my BDO card:

    • 2 valid IDs
    • The expired/expiring debit card
    • 150 pesos, if card is already expired (free if not yet expired on the day of your visit to BDO)

    My transaction today was a bit complicated. I wanted to renew two BDO debit cards: one expired and its branch of account is BDO Southgate Mall EDSA itself, while the other one was just about to expire and its account was created in a different branch. Aside from card renewal, I also wanted to have one of the accounts’ information updated because I haven’t done so after getting married.

    Actual documents that I brought to BDO Southgate Mall EDSA branch were:

    • 1 x SSS UMID card, bearing my maiden name
    • My passport
    • Original copy of marriage certificate (presented but not surrendered to BDO)
    • Original copy of birth certificate (just in case)
    • The 2 BDO debit cards I wanted to renew

    How much does it cost to renew a BDO debit card?

    The renewal of BDO debit card is free if it’s not yet expired, but if it’s already expired then they will charge you 150 pesos.

    The process – BDO customer info update and debit card renewal

    I was asked to fill out several forms. As I filled them out one by one, the staff started preparing to send a customer info update request to the branch of my other account. Upon finishing the form fill-out, I was asked to get my biometrics taken at a different counter.

    One thing I’d like to note is that I updated my employment information but they did not ask me for a certificate of employment. Maybe it’s only required when opening a BDO account!

    I asked for a debit card without name for one account, and a debit card with name for the other. Note that if your BDO debit card does not bear your name, you won’t be able to retrieve it should a starving ATM devours your debit card. ๐Ÿ˜… (Trivia: The staff at BDO calls the card without name an “embossed card”.)

    The entire process took me around 50 minutes. I think it wasn’t bad for that relatively complex transaction.

    How many days before I can get my renewed BDO ATM card?

    For BDO debit cards without the cardholder’s name, they will be able to release it on the same day. The card with the customer’s name on it, on the other hand, will be available 7 days from the day of your visit to the BDO branch.

    Questions?

    I don’t work at BDO so, if you have questions, please contact BDO directly!! ๐Ÿ˜

  • Coping during the COVID-19 Outbreak in the Philippines

    This is a hard time not only for us Filipinos, but for everyone throughout the world. There are much more cases in other countries such as Italy.

    Some people call this virus outbreak a “blessing” for various reasons such as less pollution, the opportunity to bond with family, the perfect chance to learn new skills at home… I know that these people are only trying to look at the bright side of things as they try to cope in this difficult time. Even I, for a moment, thought that it was somehow a blessing. But that’s only from the perspective of a person of privilege.

    I am one of the privileged Filipinos who are able to stay at home with food on the table, with a roof above my head, not worrying where to get money the next day. That is thanks to the money I saved up through the years, and to the support of my husband. But outside these walls, many people probably have a difficulty sleeping at night, worrying where to get money to put food in the table on the next day. I used to be generous in trying to financially help people, but my financial status is terrible, also thanks to COVID-19.

    Okay, I may be privileged, but not by much. There are things that keep me awake at night too. I have savings, but it’s going to be depleted soon. There’s an apartment unit that I’ve been renting for my baking business, and it’s become inaccessible to me since the COVID-19 quarantine. Before the virus outbreak in our country, I was still struggling to reach breakeven in the business. My expenses were greater than my profit. Despite not being able to generate any profit through the rented unit since quarantine, I need to pay my rent. My landlady couldn’t waive the rental fee because she also needs the money, which I understand. Each of us need all the financial support that we can in this difficult time with the COVID-19 virus outbreak. I’ll see if I could do any profit-generating activities from home…

    How are you coping during the COVID-19 pandemic?

    To me, the important things right now are physical distancing, eating nutritious food, exercise, getting enough sleep, minding our mental health, and a free mass testing for COVID-19 nationwide.

    Physical distancing

    Stay at home, and go out only if really necessary. Do grocery shopping only once a week or once every two weeks. Why? The COVID-19 spreads easily with so many people outside — you may be one of the unfortunate ones to catch it! And what if you’re a carrier of the virus? Think of the people you might pass the virus on to. Some people who carry the virus do not exhibit any symptom, and yet spread the virus to other people.

    Eating nutritious food

    Give your body the nutrients it needs to boost your immune system, and your immune system shall fight the infection for you. Try to eat fruits and vegetables everyday, but if you can’t, make sure to take multivitamins, ideally with zinc.

    Berocca is a good example of multivitamins with zinc, but it’s out of stock in nearby establishments. If it’s out of stock, try Centrum Advance, which has less zinc.

    Exercise

    Moderate exercise keeps our bodies healthy, and improves our mood. I know that for most of us, being locked up at home can get really stressful. Exercising helps release happy hormones, and it will help us maintain a healthy weight during COVID-19 home quarantine period. I know most of us have been eating extra, without moving around too much!

    You don’t need any equipment to exercise. Try this exercise video that I frequently follow:

    It’s from my favorite workout channel, BodyFitByAmy. She often has various options for all levels, whether you’re already fit or just a beginner in workouts. ๐Ÿ™‚

    Getting enough sleep and minding our mental health

    Okay, I combined these two items because personally, I think they are closely connected.

    Sleep helps increase antibodies and cells that can fight infections, so to me, this one will help keep us safe from COVID-19. Try to get at least 7 hours of sleep every night.

    When I get very anxious, I can’t fall sleep. If your anxiety levels are skyrocketing before bed time, try to address what’s bothering you during the day. Sometimes it gets overwhelming; we need to tackle a mountain of issues at the same time. The solution is going to be reach if you take one step back, take a deep breath, and begin solving one problem at a time.

    All the bad things happening around us — people dying due to the virus, our frontliners (doctors, nurses, utility workers, grocery store staff, food prep staff, among others…) who are overworked and at most risk of getting infected, the unruly situation handling of the government, our personal issues brought on by the virus outbreak… these are taking toll on our mental health. Let’s try to keep in touch with family and friends through texts, calls, video calls. Talk to them about things that bother you, you’ll feel better. If that’s not enough, you may talk to a healthcare professional through the following contact details:

    NCMH Crisis Hotline:

    Mobile: (+63) 917 899 8727

    Landline: (02) 7989 8727

    Hope Line Philippines:

    Globe: (+63) 917 558 4673

    Smart: (+63) 918 873 4673

    PLDT: (02) 8804 4673

    Free mass testing for COVID-19 nationwide

    My wish for the Philippines is a free mass testing for everyone, so we can pinpoint who are infected with COVID-19. Though I was in doubt at first, I believe that the current community quarantine helps slow down the spread of the virus. But it’s not enough! To stop the spread, instead of simply slowing it down, we need to know who are infected, isolate them, and treat them. What is holding the government back? Is it the lack of money? If only we still had the 10 billion pesos health budget, huh…

    Stay safe everyone!

    Stay safe, stay healthy. I really hope this crisis ends soon so that individuals and business may finally bounce back.