Skip to main content

Move

Move.

I am not referring to the president of a country who is asking all immigrants to move out of the country. I am not even referring to our own people who think that others - which includes minorities, pseudo(!) intellectuals, students and any one else who dare to disagree with their party and its propaganda, should move out of the country.

I am referring to simple move statement in android sdk which will move a cursor record to a given position. So I copied and pasted the statement from another activity - which was working fine, and tried to click on a record, expecting it to show the contents of the record.

No, instead, it is showing some null pointer exception. I modified the code - that is I corrected the code, but no change. I cleaned the project, thinking some how the new code is not being run. I disabled instant run. I tried running the code on an actual phone.

Nothing could take away the null pointer exception.

After removing gradle files and re-downloading them for what seemed like an eternity, I realized gradle is not the problem.

The problem was moveTo which is absolute, instead of move which is relative.

For one hundredth time I re-re-realized that solutions to many problems would be simple.

Comments

Popular posts from this blog

Someshwara shataka

ಚರಿಪಾರಣ್ಯದ ಪಕ್ಷಿಗೊಂದು ತರು ಗೊಡ್ಢಾಗಲ್ ಫಲಂ ಈವಿದಾ
ಮರಗಳ್ ಪುಟ್ಟವೆ ಪುಷ್ಪವೊಂದು ಬಳಲಲ್  ಭ್ರಂಗಕ್ಕೆ ಪೂವಿಲ್ಲವೆ
ನಿರತಂ ಸತ್ಕವಿಗೋರ್ವ ಗರ್ವಿದಂ ನೃಪ ತಾಂ ಲೋಭಿಯಾಗಲ್ ನಿಜಂ
ಧರೆಯೊಳ್ ದಾತರು ಪುಟ್ಟರೆ ಹರ ಹರಾ ಶ್ರೀ ಚೆನ್ನ ಸೋಮೇಶ್ವರ

Will a bird in the wild go hungry just because one fruit tree dries up? If one flower withers, will not the bee get any flowers? If one haughty king is miserly, will there be no patrons (of poetry) on this earth?


ಕೆಲವಂ ಬಲ್ಲವರಿಂದ ಕಲ್ತು ಕೆಲವಂ ಶಾಸ್ತ್ರಂಗಳೋದುತಂ
ಕೆಲವಂ ಮಾಳ್ಪವರಿಂದ ಕಂಡು ಕೆಲವಂ ಸುಜ್ಙಾನದಿಂ  ನೋಡುತಂ
ಕೆಲವಂ ಸಜ್ಜನಸಂಗದಿಂದಲರಿಯಲ್ ಸರ್ವಜ್ಞನಪ್ಪಂ ನರಂ
ಪಲವಂ ಪಳ್ಳ ಸಮುದ್ರವೈ ಹಾರ ಹರಾ ಶ್ರೀ ಚೆನ್ನ ಸೋಮೇಶ್ವರ

Learning from wise men, reading from good books, observing others  work and learning from good company, these are the ways a man becomes omni-scient (sarvajna - one who knows everything). Just like many streams join together to make an ocean.

P.S.
1) If you find some of my wordings in this shataka is wrong, please let me know. It is a 40 year old memory.
2) There are also many tripadis(poems with 3 lines ,…

Art therapy?

The other day, I was feeling little bit off. That happens most of the time, doesn't it? Well, that day I was feeling more off than usual. And was trying to fill the gigantic void with television shows, dumb mobile games and of course food.

Then I got up and took my color kit and started painting. OK, I am not an artist and am quite bad at it. But still I paint plain colors on empty jam and sauce bottles now and then. And it helps. And mind you, I started this much before these the "art therapy" became hip.

I even try to do some sewing. But that is more time consuming and needs better eyes. I may have patience and attention span of a two year old. So sewing is not for me.

So, the question arises, why don't I use this form of meditation - for the lack of better word, every time? I would have been ten kgs lighter and much much calmer. I don't have an answer. Here is my work from that day.

Again the photo has another story - I took the photo on old dining table clu…

Shantam papam

I plucked some leaves from my kitchen garden for (cooking) making tambuli in the evening. Imagine, I who can not read small letters, even in broad daylight, plucked some dodda patre leaves in the dark kitchen garden. I tried dry roasting them with coriander leaves. Suddenly I saw something whitish. A worm? What sin I was about to commit? I was about to feed non-veg, that too a worm, to two pious brahmins. Threw out the whole thing. Should I wear glasses even when I am cooking?
I hate these chalis. So never wear them. It hurts my nose. I go to a super market. I read a box of something to buy. I can not read its price. I ask the sales boy/girl, what is the price. They will think that I am illiterate. But see, I can't help it. Can't these people print atleast prices in large print for forty plus people.
After a long time today, I tried reading my daily horoscope from newspaper. Could not read anything. At this exponential decay rate, the day is not far when my vision would be zer…