Application Not Responding (ANR)

Demystifying Android rendering: Jank and ANR

Almost everyone developing an Android app has seen something like this in their device logs. Bash 1 I/Choreographer(1200): Skipped 60 frames! The application may be doing too much work on its main thread. On most devices, the Android platform tries to render a new frame every 16 milliseconds (60 fps). The rendering requires that whatever work is happening on the UI thread should finish in that timeframe. Any unit of work (== Runnable) scheduled on the UI thread has to fit in that. When the work takes longer, then frames are skipped. One skipped frame is 16 ms of the hung screen. The UI looks janky and unresponsive and if the user interacts with the screen and the application does not respond in time ( 5 seconds) then Application Not Responding (ANR) shows up. ...

Built-in "Developer options" in Android

Android has a few good settings built right into the platform for debugging under a hidden “Developer Options” menu. You can turn them on via Settings -> About Phone -> Build Number (tap 7 times). The steps will be similar but might vary a bit across OEMs. In older versions of Android, this used to be an explicit option under the Settings tab. I find the following options to be useful for the development ...

The Lean Startup by Eric Ries

Book summary: The Lean Startup by Eric Ries

The book consists of the learnings which the author had while working on his startup IMVU. The book focuses on the concept of validated learning and the build-measure-learn feedback loop. It tries to bring in a systematic approach to measuring the progress of a startup. A startup has a true north, its vision. It employs a strategy that includes a business model, a product roadmap, and a view of partners, competitors, and customers. The product is the result of the strategy. Products constantly change ( engine tuning). Strategy changes occasionally ( pivot). Vision rarely changes. In general management, failure to deliver results is caused by failure to plan or failure to execute. Both are frowned upon. But in the modern economy, both are useful tools for testing new ideas. ...

Chicago Bean

Chicago in 2 Days

Day 1 We started our trips with Willis (Sears) Tower at 9 AM, the 40$ on the spot ticket was worth it, the tower provides some really beautiful views of Chicago. We spent about two hours there. From there, we continued our journey to Art Institute of Chicago. At 23$ the price felt slightly steep but if you are into arts, I would recommend 1-2 hours here as well. ...

The Android-Chrome merger saga

Articles with the following titles would be considered a joke “BMW is planning to merge its series i5 cars and Motorrad bikes” “P&G is planning to merge tissue paper and toilet paper” “Arm and Hammer is working on merging face wash, body soap, shampoo, laundry detergent, and dish cleaner” Not that these combinations can’t be made or have never been made but consumers would just not buy them. They are usually inferior or more convoluted, or even worse, both. ...

USS Constitution

Boston in 2 Days

We traveled there in the month of October and the weather was really nice and cool at that time. Day 1 At 10AM, we started with a 30-minute guided tour called Decisive day, it’s a nice introduction to the struggle of American colonies against the British rulers. More so for the foreigners like us. From there we continued onto another hour long tour called Freedom Trail: Meetings, Mobs & Martyrs which talks about how individuals took sides in the revolution. We were running out of time, so, we had to skip the other Freedom Trail tour, but I would highly recommend doing both. All these tours are limited in capacity, therefore, show up well in advance to collect the free entry tickets. ...

Thermal hot springs

Ecuador in 4 days

Day 1 I landed in Quito and started the journey with Mitad Del Mundo which apart from being a monument near the equator line has some nice short scientific demonstrations. Expect to spend about 2-3 hours there. Then I headed to Telefrico (“aerial lift”). The ride is nice and gives a beautiful view of Quito city. Highly recommended. ...

Front of the queue effect

You are standing in a queue waiting to buy food, order drinks, or buy tickets. The queue is long and is moving slowly. You are grumbling about the people standing in the front, why are they asking so many questions, why can’t they make choices beforehand. And then your turn comes. You are prepared. You know what you want. But it took so long to reach here. why not confirm your choices? After all, you stood for so long, at least you can spend a minute or two confirming that you are making the right choice. If you made an incorrect or an incomplete order, who would stand again in this long queue to correct it? ...

July 16, 2016 Â· 1 min      Misc
Remote - office not required

Book summary: Remote - office not required

The authors are founders of 37Signals. The book talks about how to go about remote work, its advantages and pitfalls. Here are some key takeaways from the book.

Seattle Space Needle

Seattle in 2 Days

Day 1 We started our journey with Chihuly Garden and Glass, it consists of amazing glass sculptures of various sizes. Worth every penny. Highly recommended for everyone. From there we continued to Bill and Melinda Gates Foundation Visitor Center, half of it feels like a publicity stunt but the other half is insightful and worthy of a visit. ...