February 5th, 2019

My desire to be able to run my plugin didn’t come through even today. I uninstalled Java 11 and installed 8. It turns out that I need the same version of IntelliJ IDEA as my Android Studio to be able to run the plugin. Now, I have to installed the older version of IntelliJ IDEA.

And finally it worked.

February 4th, 2019

An action is basically what happens when you click on a toolbar or a menu item.

Write an Android Studio Plugin Part 1: Creating a basic plugin

I set out to learn how to develop plugin for JerBrains IDE. Initially, I have issue figuring out path to my Android Studio installation for Linux. I figured it out eventually and it is supposed to be following.

Another major issue is that I have Java 11 installed on my system but I came to know that IntelliJ IDE can only be opened on Java 8. Considering everything plays well with Java 8 I might switch back to it for time being.

Eventually, I was able to build the project by setting JAVA_HOME to IntelliJ’s JRE folder. But the plugin didn’t appear.

November 5th, 2018

I enrolled in the Data Structure and Algorithm specialization at Coursera. I hope to finally finish it this time. I went through the week one course material of the course. There were two problems in the week one. Solution and how to approach them were provided in the PDF form.

Solving an algorithm involves the following step.

  • Read the problem
  • Design algorithm
  • Implement algorithm
  • Test and debug the algorithm

The second part of week one explains the concept of stress testing. The steps of it is as follows.

  • Implementation of an algorithm.
  • A naive implementation of the same problem.
  • Testing against a large set of input.
  • Check if both fast and naive implementations results in the same solution.

October 31st, 2018

It’s the last day of the tenth month of twenty eighteen. The statement has sufficient weightage to deserve its own space on this daily log.

Today, I worked on the paging library for my Genius app. One of the issues that I am facing is that the data on main list changes frequently and I want to make sure that I am not force downloading data more than it needs to be. As I don’t have control over the data I have limited options on how to fix this issue.

The paging sample from the codelab has quite an interesting code. It uses lambda function extensively, implements infinite scrolling and also implements the network state for retrofit.

While searching for a solution for my issue I also came across Etag which means that data is returned only if any changes have been done on the backend otherwise 304 is returned.

October 6th, 2018

I happen to revisit the concept of properties in Kotlin. Parameter, property, backing field, backing property, etc. make the complicated landscape of Kotlin variable declaration.

Backing properties in Kotlin has done a good job explaining all the terms mentioned earlier.

Google has also released a Coroutine codelab at the KotlinConf 2018.

September 15th, 2018

Yesterday, I happen to attend the BlrKotlin September Meetup. We learned Spek framework for testing and for the later half we delved into the Kotlin Coroutines.

I can see myself use Spek framework now that I know basics of it even if it takes a little bit extra time. It’s code pretty much looks like English.

The focus of the meetup was solving Conway’s Game of Life. This was the first time I looked into how the Game of Life worked. I plan to implement the code myself at some point of time.

September 14th, 2018

I released the movies and TV shows application I was working on. The link can be found below.

https://play.google.com/store/apps/details?id=com.sudhirkhanger.genius

The app is a work of several months of learning several new concepts like Kotlin, Dagger 2, MVVM, Android Architecture Components, Data Binding, etc.

The release process was also interesting. Naming, short, and long description should be both common and clear so that it can be found easily via search and be easily understood. Same goes for the icons and various images that are needed for the Google Play.

May 19th, 2018

I have recently started doing Sudarshan Kriya. I went to a three day Art of Living’s Happiness Project camp. I can’t really believe in anyone unless that person defeats me in logic. Osho had that effect. Recently, Jordan Peterson seems to have the same effect on me. I am not of a bhakt kind who likes dancing, and positive affirmations. I was mostly interested in their Yoga technique.

I did learn Sri Sri Ravi Shankar’s Sudarshan Kriya well. I think it has made me a bit more alert. The stress is still there but I am not so tired these days.

November 8th, 2017

In my dreams, that I watch awake with open eyes, I see myself riding a motorcycle in a thick dense forest. I wanted a bike which looked great, has a brand name, and would do well in long distance riding. I didn’t want a commuter bike. I am a first time rider. It makes sense for me to invest an amount which I can’t be sour about if I didn’t enjoy riding. I narrowed down to KTM Duke and Royal Enfield Stealth Black.

KTM Duke with its striking orange looked a bit childish. It’s a powerful bike with very little weight.

Royal Enfield Stealth Black is reasonably priced, a lot of people ride it for long distance, has a good look and a brand behind it. I finally booked one for myself.

October 20th, 2017

A large horde of people visit a small temple near my native town Datia. It’s called Ratangarh Mata.

These people walk, ride on motorcycles, travel in tractors and trucks like cattle.

Along the way you would find other religious minded people serving them with water and food.

What was unfortunate in this whole charade was them ruining the environment by throwing away the plastic trash.