Year: 2013
-
ADF: Entity-State vs Post-State
There are lots of blog posts on this but all copy and paste the content of EntityImpl javadoc, which is very obscure. I finally found a sensible explanation in Dive into Oracle ADF, but that is usually buried deep in Google results. I will restate the Dive into Oracle ADF post here, and will add […]
-
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 […]
-
Find one’s complement of a decimal number.
One’s complement of a binary number (1001_{2}) is (0110_{2}). That is, we simply flip the bits. This is easy to do in binary. However, if the number is in base 10, then do we do that. Convert that to base 2 then flip the bits and change it back to base 2? Maybe, but if […]
-
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 […]