ADF: EntityImpl.refresh(…) has no effect

Many times we use entity.refresh(REFRESH_FORGET_NEW_ROWS | REFRESH_UNDO_CHANGES) to prevent any changes we made to that entity from getting committed to the DB. What the refresh() method effectively does is change the post state of the entity. (See difference between entity-state and post-state.) The post-state is later used to decided which DML operation to use for […]

Create a Tag field using Django-Select2.

The excellent framework – Select2, have had support for tags for a long time, but Django-Select2 lacked that, until now (version 4.2.0). Tag fields are very much like any multiple value input field except that it allows users to enter values which does not exist in the backing model. So, that the users can add […]

Lessons learned from PhoneGap (Cordova) and jQueryMobile on Android

I recently created my first Android app – JustTodo. This is a simple app but took considerable time to finish due many unexpected problems. Google wasn’t too helpful either. Here is a list of issues I faced and their solutions I discovered. General tips Zooming and Scaling I presume that you have already encountered suggestions […]

How to register your Aadhaar number with your bank (ICICI) without the physical Aadhar card

If you are one of those unfortunates who need to register their Aadhaar number with your bank to get LPG gas subsidy, but you lost your Aadhaar card or did not receive that, then read on… About two years back I enrolled for Aadhaar. I never received that, but I did not bother checking, since […]

Securing the WordPress Login page

Of late I have seen quite a lot of brute force attempts to login into the admin account of this blog. The source IPs are wide and varied, ranging from Istanbul, Germany, Greece, US and more. In fact according to ArsTechnica article this has been happening for sometime now on a huge scale. I see a […]

Configure your Belkin N150 router for BSNL broadband

Login to your router dashboard. It should usually be at http://192.168.2.1. Now under “Inertnet WAN” click on “Connection Type”. Here select “PPPoE” and click on Next. Provide your BSNL username and password. Leave the “Service Name” field blank. For “VPI/VCI” field provide 0 and 35 as values. For “Encapsulation” field choose “LLC”. Leave all other […]