Skip to main content

Pocket reading stats

Using the same Python code I used to look at my bookmarks, I looked at my reading habits using Pocket and here are the results.


I installed the app in 2014 and therefore, the number of articles I read in 2014 are fewer in number than those I read in 2015. The 2015 numbers should probably be my benchmark from this point on.

These are monthly reading habits. Apparently, I didn't read as much in Feb and March as I did in the following months. Well, I dug myself deep into two of my courses, General Relativity and Ultrafast lasers at that time, which could be the reason. And I might have read less in September/October than in August or November because I was apping those months. Maybe.


Now we come to days of the month. I can't write anything meaningful about this. It'll be better if I get weekly behavior i.e Monday through Sunday and, if I'm correct, see that I read a lot more on Friday/Saturday/Sunday than on the other days of the week.


And we finally come to hourly habits. Note that the time stamps are with respect to GMT and that they need to be corrected given that I live in Chennai (+0530) i.e shift the whole thing left by 5. It makes sense that there are fewer articles in the bins 19-23 as they correspond to just after midnight and just before 6. Something interesting is the dip in bin 10, corresponding to 3/4 PM. This, I don't understand. Maybe it's because i'm mostly out having coffee with friends at that time. I'll have to think about it.

Again, like I've said before, I need to figure out how to get weekly behavior i.e Monday through Sunday. I also want to figure out how to make something similar to Github's commit visualization, which is an awesome way to represent daily activity. So, that's for tomorrow and the coming week I guess.

Popular posts from this blog

Animation using GNUPlot

Animation using GNUPlotI've been trying to create an animation depicting a quasar spectrum moving across the 5 SDSS pass bands with respect to redshift. It is important to visualise what emission lines are moving in and out of bands to be able to understand the color-redshift plots and the changes in it.
I've tried doing this using the animate function in matplotlib, python but i wasn't able to make it work - meaning i worked on it for a couple of days and then i gave up, not having found solutions for my problems on the internet.
And then i came across this site, where the gunn-peterson trough and the lyman alpha forest have been depicted - in a beautiful manner. And this got me interested in using js and d3 to do the animations and make it dynamic - using sliders etc.
In the meanwhile, i thought i'd look up and see if there was a way to create animations in gnuplot and whoopdedoo, what do i find but nirvana!

In the image, you see 5 static curves and one dynam…

Pandas download statistics, PyPI and Google BigQuery - Daily downloads and downloads by latest version

Inspired by this blog post : https://langui.sh/2016/12/09/data-driven-decisions/, I wanted to play around with Google BigQuery myself. And the blog post is pretty awesome because it has sample queries. I mix and matched the examples mentioned on the blog post, intent on answering two questions - 
1. How many people download the Pandas library on a daily basis? Actually, if you think about it, it's more of a question of how many times was the pandas library downloaded in a single day, because the same person could've downloaded multiple times. Or a bot could've.
This was just a fun first query/question.
2. What is the adoption rate of different versions of the Pandas library? You might have come across similar graphs which show the adoption rate of various versions of Windows.
Answering this question is actually important because the developers should have an idea of what the most popular versions are, see whether or not users are adopting new features/changes they provide…

Adaptive step size Runge-Kutta method

I am still trying to implement an adaptive step size RK routine. So far, I've been able to implement the step-halving method but not the RK-Fehlberg. I am not able to figure out how to increase the step size after reducing it initially.

To give some background on the topic, Runge-Kutta methods are used to solve ordinary differential equations, of any order. For example, in a first order differential equation, it uses the derivative of the function to predict what the function value at the next step should be. Euler's method is a rudimentary implementation of RK. Adaptive step size RK is changing the step size depending on how fastly or slowly the function is changing. If a function is rapidly rising or falling, it is in a region that we should sample carefully and therefore, we reduce the step size and if the rate of change of the function is small, we can increase the step size. I've been able to implement a way to reduce the step size depending on the rate of change of …