Skip to main content

Segmenation fault

Morning, I tried continuing the binary tree deletion program. I wrote some code and gcc-ed it and executed it. To get segmentation fault.

I got up and went straight to kitchen, telling myself "I do not have time for segmentation faults now".

Of course, I do not have time for segmentation faults, but I have time for googling for funny quotes to be set as my whatsapp dp. I have time to watch "Friends" millionth time. And I have time to sit and ruminate past, present and future bad scenarios.

And my spouse will be wishing me more segmentation faults so that I will spend some time in the kitchen.


On a relevant topic, segmentation fault is renamed as null pointer exception in Java. And we get these a lot. So much so that, after I make any small changes to my android program and I run it, and I do not get null pointer exception, I start searching on my desk. Where did NPE go?

I relish these errors. I savor them. Because, unlike in C, where program crashes with line segmentation fault, android studio IDE shows us which exact line caused the program to crash. So I resolve these errors one after another like a warrior slaying the demons.

I never say why do these errors come in my programs. I never blame others for making my programs erroneous. I don't shout, I don't fret. I get to action mode instead.

Does that mean, my life problems are like segmentation faults in a command line C program where I do not know what is going wrong, where and how. Is that making me scared, worried and thinking that I may never be able to solve them?

So God, please provide us a nice IDE for this technology called Life, so that we can find where the errors and try to fix them, one segmentation fault at a time. 

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 ,…

How to get straight hair

Straight hair, silky and shiny hair, lustrous hair!!! How do these terms matter to us, who have crossed the expiry date? But when I saw that one of the prizes is Galaxy Tab, I decided anything for a Galaxy tab.

Step 1: Head out in my scooty which also looks tired and aged. Come near a Kirana store and stop. But where is the Kirana store, it has changed into a super market. There goes the plan of asking the shop keeper to give me one bottle of Sunsilk straight hair shampoo.

Step 2: Go to a super market and head for the shampoos section and take out a bottle and move it close to your eyes and then far, then again near and again far. Shoppers around me wonder if I am looking at some optical illusion. No I can read only it is sunsilk, but is it straight hair shampoo or ordinary or anti-dandruff or some thing else. Why do I always forget to wear glasses when out shopping?

Step 3: Ask the sales girl whether this is straight hair shampoo from sunsilk, giving her the bottle. She first stares…

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…