Profile cover photo
Profile photo
Kiran Rao
Techie. Bangalorean. Ever curious about new and emerging technologies.
Techie. Bangalorean. Ever curious about new and emerging technologies.

Kiran Rao's posts

Post has attachment

Post has attachment
Now that Android Architecture components is out, I can in one fell swoop make this repo public and deprecate it [and stop convincing myself that it was ever a useful repo :D ]

Post has shared content
What great insight!
A series of tubes

Before retiring, my father worked his whole career in the cast iron industry, in a way that was always somewhat related to water pipes. He knew the pipes inside and out, literally, because the hardest thing about water pipes is that the inside coatings need to be compatible with the kind of water being transported, while the outside coatings need to be compatible with the soil surrounding the pipes. The story of the water of Flint, Michigan, shows why managing drinking water is harder than it seems.

Over the years, standards for water pipes around the world tightened, while in the USA standards didn't change as much. I don't know what the exact reasons were for the US staying behind, but it's possible that at each step someone thought that keeping looser standards would protect the US industry, either as a goal or as a positive consequence.

Bit by bit, though, US manufacturers of water pipes found themselves unable to sell on non-US markets. This became a major issue when US-manufactured pipes couldn't be made to meet Chinese standards.

Eventually, US manufacturers found themselves so far behind that they couldn't even export unfinished iron shells to be finished overseas to non-US standards, since those US manufacturers had never developed the expertise to cast shells that could be used with the newest coatings.

By not keeping up with worldwide progress, the US severely weakened its own cast iron industry.

I fear that the same thing might happen with environment-related concerns, with Trump pulling the US out of the Paris Agreements. Should the Paris Agreement evolve in a direction that forces signatories to only source their supplies from other signatories, the US will end up in a position that hurts its whole economy. That's why we're seeing states, cities, companies, individuals, all scrambling to continue honoring past US commitments without the federal government: they don't want to be labeled as non-compliant. Imagine if US oil companies can't operate outside the US any longer, of if US-based airlines can't fly to non-US airports any longer, or if US agricultural products can't be exported any longer.

Post has attachment
+Pusher in their tutorial blog post about building an activity feed on android, use my library android-ago !

Post has attachment

If you are using android-ago please upgrade to v1.3.4 - it fixes a major bug in earlier releases:

Post has attachment
New post up on the blog: about gotchas while overriding equals() methods on "value classes" in java

Post has attachment
The most pragmatic approach to cross platform (server, mobile, desktop and web) development so far.

Interesting to see how this progresses.

Post has attachment
So, this is a sample for how to use a logging framework. The sample they chose is a company that turns logs into paper. Two distinct concepts called "log". This line has both. Can you tell from a glance which is which?

os_log("Pulverizing %lu logs into paper.", log: PaperCompany.model_log, type: .debug, logs)

What could go wrong?

Seriously folks. Sample code is not a place for gimmicks. There are other forums suited to show off how smart you are.

With Java 9 around the corner, and no hope for having support for it (especially project Jigsaw) on Android in the foreseeable future, it would be safe for Java to have the slogan "Write once, fragment everywhere"
Wait while more posts are being loaded