December 27, 2009

Interesting 45 things to ponder about...

Written By Regina Brett, 90 years old, of The Plain Dealer, Cleveland,
Ohio - "To celebrate growing older, I once wrote the 45 lessons life taught
me. It is the most-requested column I've ever written."

1. Life isn't fair, but it's still good.

2. When in doubt, just take the next small step.

3. Life is too short to waste time hating anyone.

4. Your job won't take care of you when you are sick. Your friends and
parents will. Stay in touch.

5. Pay off your credit cards every month.

6. You don't have to win every argument. Agree to disagree.

7. Cry with someone. It's more healing than crying alone.

8. It's OK to get angry with God. He can take it..

9. Save for retirement starting with your first paycheck.

10. When it comes to chocolate, resistance is futile.

11. Make peace with your past so it won't screw up the present.

12. It's OK to let your children see you cry.

13. Don't compare your life to others. You have no idea what their
journey is all about.

14. If a relationship has to be a secret, you shouldn't be in it.

15. Everything can change in the blink of an eye. But don't worry; God
never blinks.

16. Take a deep breath. It calms the mind.

17. Get rid of anything that isn't useful, beautiful or joyful.

18. Whatever doesn't kill you, really does make you stronger.

19. It's never too late to have a happy childhood. But the second one
is up to you and no one else.

20. When it comes to going after what you love in life, don't take no
for an answer.

21. Burn the candles,.
Don't save it for a special occasion. Today is special.

22. Over prepare, then go with the flow.

23. Be eccentric now. Don't wait for old age to wear purple.

24. The most important organ is the brain.

25. No one is in charge of your happiness but you.

26. Frame every so-called disaster with these words 'In five years,
will this matter?

27. Always choose life.

28. Forgive everyone, everything.

29. What other people think of you is none of your business.

30. Time heals almost everything. Give time, time.

31. However good or bad a situation is, it will change.

32. Don't take yourself so seriously. No one else does.

33. Believe in miracles.

34. God loves you because of who God is, not because of anything you
did or didn't do.

35. Don't audit life. Show up and make the most of it now.

36. Growing old beats the alternative - dying young.

37. Your children get only one childhood.

38. All that truly matters in the end is that you loved.

39..Get outside every day. Miracles are waiting everywhere
40. If we all threw our problems in a pile and saw everyone else's,
we'd grab ours back.

41. Envy is a waste of time. You already have all you need.

42. The best is yet to come. – (Always! ;-))

43. No matter how you feel, get up, dress up and show up.

44. Yield.

45. Life isn't tied with a bow, but it's still a gift.

PS: you might also like the following
  • http://matkahtml.blogspot.com/2008/11/sunscreen-by-baz-luhrman.html
  • http://matkahtml.blogspot.com/2007/12/golden-rules-for-career-success-by.html

client side storage: persistjs

Current project that i'm working on, works like a plugin to an existing website. To match to the scale we are targeting, we decided to go the stateless way on the server side; so that we don't necessarily need a sticky behavior on the server side. Now this raised requirement to store state and related data on the client side. On each request client sends the "exactly required" state to the server and server decides on things that need to be done.

If you've read my previous post on cookie size limitations in browsers; you would understand this cannot be done at all. To add to the problem, this project being a web plugin to an existing site, needs to share the cookie space with them and their already existing plugins. We were really concerned if we end up messing with their cookies or they end up messing up with ours (given the size limitation).

And then we found persistjs. You should read all the good reasons why you should use persistjs here. In short, it tries to find multiple possible way to store and retrieve data on the client side. If one method fails, it fall backs to the next available method. The last being cookies and before that flash. This was a relief to us because web stats show ~99% browsers support flash and ~70-80% already have flash plugin installed. In all good/bad probablities, we will end up with a browser which supports one of the client side storage supported by persistjs. It currently supports the following:
  • flash: Flash 8 persistent storage.
  • gears: Google Gears-based persistent storage.
  • localstorage: HTML5 draft storage.
  • whatwg_db: HTML5 draft database storage.
  • globalstorage: HTML5 draft storage (old spec).
  • ie: Internet Explorer userdata behaviors.
  • cookie: Cookie-based persistent storage.

Not only that, if we land up to a backend other than the cookie; minimum supported size is ~100KB. Good enough for us. :-)

Thats it for now. We seem to be in good shape on this side. Soon we will be going for full throttle load testing. Will share the results then. Till then, merry christmas (belated) and happy new year (in advance). [;-)]

December 12, 2009

Quote of the day...

"I do my thing and you do yours. I am not in this world to live up to your expectations, and you are not in this world to live up to mine. You are you and I am I, and if by chance we find each other, then it is beautiful. If not, it can't be helped." - Frederick Perls