Posts

Showing posts from October, 2017

Coaching: What you need to know

TED talk: My take on the video about " Everyone needs a coach ": 1/3 of top performers has a coach, and 2/3 are open to be coached. The best performers all have coach, why don't you? Lifelong learning, even on your own, is kind of "coaching", you are coached by the books you read, the video you watch, and the blog post you are reading (like this one!) Not only in your business, but it is also OK to have a coach for your life, or called "life coach" Even if all that, people are too scare to ask for help. People, especially top performers/CEOs, don't ask for coaching because "They are supposed not to".  It is a Face-value problem and may be seen as "Not up to the job". :) If you need a coach, look for one.  Or don't limit to a human coach, read books, get all the materials you need, coach yourself. Don't stay here and waiting for help, go ask for it if you need. Everybody needs help, and asking for it is

Android/iOS webview jQuery.animate({scrollTop: y}) position problem - Solved

Problem: This is not obvious in iOS but very obvious in Android. Assume that you have a checkbox on the top of the page.  And the page is so long that you need to scroll to the bottom to see it all.   Moreover, there are so many long text that a line will be wrapped to another new line.  (Like a Terms and Conditions page) Now, assume that you have a button at the bottom of your page that will use jQuery.animate({scrollTop: <some_number>}) to scroll to that checkbox.  <some_number> is the offset().top position of that checkbox element. Now open your Android webview in app, load that page Manually scroll to the bottom of the page, and then tap the button to scroll to the checkbox element at the top. You will not be able to see the checkbox element.  Because the scrollTo position is incorrect. Let me say that again: this would not happen (at the time of this writing) in iOS webview. Solution: My colleague found that the reason is simply because: your line is t