Source: http://www.reddit.com/r/gaming/comments/17iw9q/so_we_built_kings_landing_in_minecraft_heres_a/
ViewPager, PagerAdapter, and Recycling
PagerAdapter is more general than the adapters used for AdapterViews. Instead of providing a View recycling mechanism directly ViewPager uses callbacks to indicate the steps taken during an update. A PagerAdapter may implement a form of View recycling if desired or use a more sophisticated method of managing page Views such as Fragment transactions where each page is represented by its own Fragment.
As PagerAdapter does not handle view recycling, I tried to make one with an android.widget.Adapter like interface: getCount(), getItem(int position), and getView(Object object, View convertView, ViewGroup parent).
The code is on github https://gist.github.com/4551304.
The view-data binding is queued until finishUpdate instead of getting done in instantiateItem. So no matter destoryItem is called before instantiateItem or not (swiping direction will cause different calling orders), we always have a chance to try recycling the detached views.
Conversation exclusivity
Seems only the places where conversations happen exclusively will become a platform. They can only collapse from inside, and others just cannot steal conversation from them.
Why the middlemen still exist?
Months ago, I kept hearing discussions about greedy academic publishers, and recently the talk of how GDSs (Global Distribution Systems, a.k.a. computerised reservation systems) are devouring airliners is having my attention. Both are accused for taking an unfair share of profit by providing little contribution to any party.
What behind them are peer review system, which is supposed to be a quality stamp, and travel agents, which connects businesses with airliners.
That’s something to disrupt.
Kudos to Pinterest
Very nicely done Android app. It looks nicer than the iPhone version.
https://play.google.com/store/apps/details?id=com.pinterest
Marvellous
Curiosity touched down on Mars
http://www.nasa.gov/multimedia/videogallery/index.html?media_id=146903741
Nexus 7 v.s. Amazon
I guess Nexus 7 is eating into Amazon’s pie: not only Kindle Fire, but the whole Kindle family.
It’s rational for consumers: you still get Kindle as an app.
But that’s fine for Amazon: they don’t earn money on Kindle hardware anyway.
UPDATE: no, it matters, taking the payment part under control is vital to Amazon. They had already lost that on iOS.
Art from code
Yahoo! is a shame
When you’re growing up, it’s good to try a bunch of stuff. Then as you get older, you can figure out what you’re great at (or at least realize where the potential is) and focus on that. Maybe you can even be the best.
Keypad S released
I was trying to do this 2 years ago. After several ons and offs, it’s finally released.
Introducing the super dialer for Android phones: Keypad S

S is named after my girlfriend. Happy Birthday Sunny!

