If you prefer to apply for a postal ID at one of the PHILPOST branches in malls, then I think you’ll get valuable information from this page. We chose to get our postal ID from SM North EDSA; it wasn’t an easy process for us because of things we didn’t know beforehand. And now, I’d […]
Android app dev: Intent extras set in onBackPressed() misssing when back to onActivityResult()
It’s funny how we spent about an hour trying to figure out why the Intent extras that we’re setting are not being sent back to onActivityResult(). If we only knew that the solution was as simple as moving one line of code. The call to super.onBackPressed() should be placed after setting Intent extras and after […]
Android app dev: Missing import org.apache.commons.lang3.text.WordUtils;
I use a few instances of WordUtils.capitalizeFully() on an Android app that I’ve been working on. And there are times when the import org.apache.commons.lang3.text.WordUtils; breaks, sometimes after merging with some of my git branches. To fix this, what I do is open app/build.gradle and add the following line under dependencies:
|
1 |
compile 'org.apache.commons:commons-lang3:3.4' |
Hope this saves somebody […]
Something to avoid when using Android RecyclerView
When using Android’s RecyclerView, don’t use the same inflated XML layout file for items you intend to shuffle on the fly! Their contents will overlap. -CK
Android RecyclerView notifyItemChanged() IllegalStateException “Cannot call this method while RecyclerView is computing a layout or scrolling”
If your Android app is crashing with error IllegalStateException “Cannot call this method while RecyclerView is computing a layout or scrolling”, you may try placing your notifyitemchanged inside a Runnable. Assuming you have a call to notifyItemChanged() inside onBindViewHolder() that is making your app crash with IllegalStateException, you may try something like this:
|
1 2 3 4 5 6 7 8 9 |
myRecyclerView.post(new Runnable() { @Override public void run() { myArrayList.remove(position); myArrayList.add(something); recyclerViewMainScreenHeader.getAdapter().<code>notifyItemChanged</code>(); } }); |
Aventus Makati Doctors Schedule
Most people in my family are Intellicare card holders, and we frequent Aventus Makati because of that. Do you often go to Aventus in Filomena Building too? I scanned a copy of Aventus Makati Doctors’ schedule for our convenience: Click the image above to enlarge. You may even print it! Hope that helps.
Not impressed at “Impressions” restaurant at Maxims Hotel: nice ambience but horrible food service
So we tried the sit-down buffet at Impressions in Maxims Hotel, but we sat down eating nothing for a long while. They say Impressions is a fine dining restaurant, but the food service is not so fine. I could ignore the hungry mosquitoes of Impressions feasting on my feet that night, but waiting so long […]
Ubuntu: Show current Git branch on Terminal prompt
There are times when I keep running git status or git branch to check which branch I’m on and I just found that I could do something to show the name of my current Git branch on my Terminal prompt, thanks to a colleague. In the following screenshot I’m working in the directory “sample_app”, on […]
Setup/update Ruby on OS X El Capitan 10.11.5
I need to learn Ruby on Rails for my new job. I’m a little thrilled about this chance to learn a new language, and I’m trying to get started with it on my Macbook which runs OS X El Capitan 10.11.5. I already have Ruby here, I don’t remember if pre-installed though. It’s out of […]
NBI Clearance online registration 2017 (Robinson’s Place Ermita and other branches)
Not that I remember exactly what the NBI Clearance renewal/application was like when I last tried to get one (4 years ago) but I can say that the current process is not so bad because Step 1 (filling out the application form) and Step 2 (payment) can already be done online. After completing the online […]