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
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
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>(); } }); |
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.

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 for our food at a buffet where food is supposed to be served nonstop fails expectations. When the food was served, it was not even properly cooked!
A fellow grill and steak lover invited our barkada to have dinner at Impressions restaurant the other night. It’s at Maxim’s Hotel, near Resorts World Manila. We were so excited about it because the cost is only P888 per person, and that is for unlimited order of grilled foods such as lamb, steak, French duck, praws, tuna, and salmon.

The waitresses were pretty and polite. They had complementary bread and soup, which helped us like the restaurant at first.

There were white bread, walnut bread, and what we think was whole wheat bread. They’re warm and chewy, served with butter. I love bread and butter! I liked Impressions’ breads so much that I was able to ignore the restaurant’s mosquitoes helping themselves on my blood that night. They were all feasting on my feet. Argh!
Bowls of pumpkin soup with bacon bits were served after. There were 3 of us enjoying the bread and soup while waiting for the rest of the gang. When they arrived, we asked for their pumpkin soup bowls to be served but that took a long while. Our barkada‘s conversations got us through the long wait just fine and our seafood platter and meat platter were served. Take note: when the first platter was served, we ordered another batch of those platters immediately because we realized the ones already served were not enough for our group. It took ages for Impressions to serve the new batch, but I’ll get to that later. I’ll comment on what their foods taste like first. :p

The prawns were delicious. The salmon was yummy too but I realized then that I personally prefer raw salmon over cooked. 😀 The tuna was a bit sour but we thought that might be because Impressions marinated it in vinegar or lemon juice before cooking.

The steak at Impressions was too salty while the lamb was very enjoyable when eaten with the mint jelly sauce. The mint jelly sauce’s flavoring is a bit sour, which played the role of pantanggal-umay in my mouth. It’s hard to find the French duck in the platter, but they tasted great! They were the ones sliced into small pieces.
My favorite grilled foods that night at Impressions were the French duck, the lamb with mint jelly, and the prawns.

So… I mentioned that we ordered the next batch of platters right after the first batch was served. We sat there at the table at Impressions for about an hour waiting for that second batch. Impressions call this “unlimited servings” of various grilled foods but it seemed to me like they were stalling the serving of foods on purpose so that they would not run out of food supply.

There’s no more photos of the dining area after that because I was no longer in a good mood. I ordered a glass of lemon iced tea and that took a long while plus follow-ups to be served too. 🙁
After a decade, the second batch of grilled platter was finally served by Impressions but to our dismay, the steak that we ordered medium-rare was rare and very hard to chew. Of course, we requested that they send it back to the kitchen and have it cooked longer but it was so frustrating because we waited so long for that, only to find that it’s undercooked.
Obviously, I’m not coming back to Impressions at Maxims Hotel anytime soon. When I dine at restaurants, especially when considered “fine dining” restaurants, I expect to enjoy the ambience and get good service so I can relax, instead of getting stressed out waiting for almost an hour for food that they label as “unlimited”.
This Facebook post from Impressions says “Delight in unlimited servings of grilled lamb chop, rib eye, duck breast, salmon, tuna, prawns and more with Impressions’ Grill All You Can!”
Impressions should stop calling it unlimited when they just plan to stall the servings of food on purpose.
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 Git branch that is named “static-pages”:
![]()
In Ubuntu, here’s how I did it.
Create .bash directory in Home:
mkdir ~/.bash
Go to the new directory
cd ~/.bash
Clone the git-aware project from GitHub:
git clone git://github.com/jimeh/git-aware-prompt.git
Edit your .bashrc file. I use Vim editor for this:
vim ~/.bashrc
Add the following to the top of your .bashrc:
|
1 2 |
export GITAWAREPROMPT=~/.bash/git-aware-prompt source “${GITAWAREPROMPT}/main.sh” |
If you want colored prompts, add the following to the bottom of your .bashrc:
|
1 |
export PS1=”\${debian_chroot:+(\$debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\] \[$txtcyn\]\$git_branch\[$txtred\]\$git_dirty\[$txtrst\]\$ “ |
Otherwise, if you doon’t like colors, use this instead:
|
1 |
export PS1=”\${debian_chroot:+(\$debian_chroot)}\u@\h:\w \[$txtcyn\]\$git_branch\[$txtred\]\$git_dirty\[$txtrst\]\$ “ |
Open a new Terminal tab or restart Terminal. Navigate to any directory that has a Git repository and your Ubuntu’s Terminal prompt should now show the current Git branch’s name.
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 date and I wanted to upgrade, as this resource Getting Started with Rails recommends version 2.2.2 or higher.
First step I took was to get RVM (Ruby Version Manager):
curl -sSL https://get.rvm.io | bash -s stable --ruby
Then I received this message:
” * To start using RVM you need to run
source /Users/catzie/.rvm/scripts/rvm
in all your open shell windows, in rare cases you need to reopen all shell windows.”
And so I ran:
source /Users/catzie/.rvm/scripts/rvm
Then:
rvm install 2.4
Which returned this message:
Already installed ruby-2.4.0.
To reinstall use:rvm reinstall ruby-2.4.0
Finally, I ran this:
rvm use 2.4 --default
My next step was to install SQLite3 on my OS X as per instructions found here on SQLite – Installation.
I got this message after following the instructions:
SQLite version 3.17.0 2017-02-13 16:02:40
Enter “.help” for usage hints.
Connected to a transient in-memory database.
Use “.open FILENAME” to reopen on a persistent database.
sqlite>
More on this in the future.
Reference: Can I upgrade to the current version of Ruby (2.2.3) on OS X v10.6.8?

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 processes, you may then visit any NBI Clearance branch to go through Step 3 (biometrics scanning) and Step 4 (release). Of course, you may also do Step 1 and 2 right there in the NBI Clearance branch too, but I highly recommend that you do it online to avoid an even longer waiting time. Those who do not have Internet access at home may use computers at the main branch in United Nations, Manila for free.
By the way, NBI Clearance is one of the requirements to get a Postal ID so you might as well look into applying for it. We applied for our Postal ID at SM North EDSA.
If you plan to apply for NBI Clearance at Robinson’s Place Ermita branch in Manila too, scroll down and check out my Step 3, because I’m going to show a few photos of what that NBI branch looks like. 🙂

First thing you need to get a new or renewed NBI Clearance online is to get an account at nbi-clearance.com. Login if you already have one, or register if you don’t have any yet.
Fill out all necessary details then when you see the screen below, click on “APPLY FOR CLEARANCE”:

Enter the name of the ID that you will show the NBI staff when you go to their branch, for example “SSS UMID” or “PSA copy of birth certificate”. I was surprised that the NBI staffs did not ask for any ID when we renewed our NBI Clearance. Could it be because they’re not strict about renewals?
Then you will reach a page with a calendar – it’s the NBI Clearance appointment system.

If you choose AM, you may go to the NBI branch of your choice any time before noon. And if you choose PM schedule, you may arrive anytime after noon before the closing time of your NBI branch, which in my case at Robinson’s Place Ermita was 5PM. The NBI Clearance branch at Robinson’s Place Ermita is located at Basement 1 or “Basement Parking”, which is reachable via a stairway beside National Bookstore (Enter via Sta. Monica Street or Padre Faura entrance.
You’ll notice that there are less remaining slots for AM schedules than PM, but the difference is not significant.
My mom and I renewed our NBI Clearance for “local employment” and “ID purposes” and each costed us P140. The base price is P115 for the NBI Clearance only, and added to this is additional P25 fee for online payment.
Instructions for online payment:
Initially, I was trying to pay for my NBI Clearance application via online banking at 11:31PM. But I couldn’t proceed with payment because according to the NBI Clearance online system, online banking payment is only available until 11:30PM daily! It was frustrating because it was only a minute past the cutoff. I was able to pay the next day without any problem anyway.
By the way, you should enter your “reference number” as “remark” on your online money transfer. Enter nothing else aside from the reference number.
The branch that we chose for our NBI Clearance application is Robinson’s Place Ermita in Manila City. If Robinson’s Ermita is the same branch you’d like to go, then I can show you a few photos.
This is the entrance to the Basement Parking. Find it beside National Bookstore near Padre Faura or Sta. Monica entrance:

If unsure, don’t hesitate to ask someone at the information booth about the location of NBI at Robinson’s Ermita.

Once you are downstairs at Robinson’s basement, you’ll see that this area is “Lingkod Pinoy Center”. Some of the other government services you’ll find there are for SSS, Philhealth, and Pag-IBIG.
Ask a guard where you should fall in line after registering and paying online. The guard should ask you to enter the parking area and find the queue (there are seats!) for NBI Clearance. What you are actually going to fall in line for in that area is the NBI Clearance Center’s biometrics scanning.
A guard will call 2-3 rows at a time for another queue, closer to the biometrics scanning counter. At first, the progress was quick. Each batch of about 30 people were done in 10 minutes. But when it was nearly our turn, instead of 10 minutes waiting after the previous batch was called, we were called 40 minutes after! 🙁
When our batch was called to fall in another line, it was in this place:

There were no seats here, but the queue should be processed quickly because the NBI staffs at the counter — though a bit mean when dealing with some applicants, move very quickly. Maybe there was technical problem earlier, that’s why our batch took 40 minutes to be called instead of 10 minutes. There are 2 biometrics capture counter, but you fall in only 1 line. Whichever counter finishes with an applicant first will call on to the next one in line.
And oh, I hope you don’t get discouraged in choosing Robinson’s Ermita as your branch just because I said that the staffs were kind of mean. In my experience in getting an NBI Clearance (this was my 3rd time), the NBI staffs who attend to biometrics are always intimidating no matter which branch it is. I understand that it might be due to stress though. We can only imagine how many applicants they handle everyday.
Observe the people before you – do they present any ID to the staffs with their application forms? In our case, none of the people who went before us presented any ID — only application forms. If you see the same thing then hand over your application form to the NBI staff and simply prepare your valid ID for easy access, just in case the NBI staffs as for it.
The NBI staffs capture biometrics data such as finger prints (all fingers), signature, and photo — all in digital form! Hurray for using technology. 🙂
To the left of the 2 NBI biometrics counters is the “RELEASE” counter. Go straight there UNLESS the person who assisted you at biometrics counter said you need to come back at a later date to claim your NBI Clearance — this means you got a “hit”. A hit means your name matched another person with the same name and NBI needs more time to verify if you have a clear record with them.

I applied for NBI Clearance on Feb. 6 (Monday) and can only claim it on Feb. 17 (Friday) — that’s a total of 11 days! The heck?
You see, I know someone with a very unique foreign-sounding name and yet he got a “hit” with NBI! We were thinking, what if getting a hit doesn’t really mean you have the same name as someone else, but the NBI staffs just don’t feel like releasing your NBI Clearance right away? Or what if it’s NBI’s way of reducing printout loads during busy days?
The things I liked about the current NBI Clearance process are these:
And of course, because I like complaining: Things I hate about the current NBI Clearance process as of February 2017: