05 November 2021

26 February 2017

Cloud from aeroplane window

Here is a photo i took from a recent trip from HKG->BLR; not that the matters because you cannot identify from the photo itself. The clouds look cool; i thought.

08 January 2017

Book list

Here is my book-list. I plan to keep this updated with suggestions. I can read Hindi, English, Bengali and Tamil. If you like to make suggestions, please drop a comment.

20 November 2016

Caffe using anaconda or miniconda

I have been spending some time in installing the machine learning software caffe on Slackware. I have a modest GPU card, the GE Force GT 730. Slackware version is 14.1. For installing caffe, there are a few requisites which can be easily installed from source. These are: gflags, glog, leveldb, lmbd, snappy and protobuf. Also, users of Python scientific computing packages would be aware of Anaconda or miniconda, which offers a bunch of scientific computing software(and maybe much more besides) in one package or an installer. This is a Very Useful Thing. However, I have had massive trouble compiling caffe using the Anaconda python. The only reason is that the final linking step throws up this kind of error . That is, libboost_python looks for a different version of python that provided by Anaconda(which we specified in the Makefile.config file prior to starting the build. One solution is to re-build the entire boost using the Anaconda python distribution, but it could mean making more changes systemwide. However, I do with that it would be easy to know which python version the built libboost_python.so links to. This information is not available from ldd. There is also an explanation to this in some thread, but practically I found that it is best to use the system python. With the availability of pip, it is no more tedious to install multiple packages.

25 September 2016

Adding existing header files in Eclipse project

I am facing a strange problem when I add existing header files to an existing Eclipse. I have added the files using Import->File System->Directories and then choosing the necessary files. This works for making the IDE aware of these files and for symbol resolution. Unfortunately, when the project is attempted to be built, there is a failure due to these included header files. I have taken a look at the forums but the only solution provided is to include these new directories in the c/c++ properties of eclipse. strangely, this problem does not happen in visual studio. I felt that Eclipse can also do this, i do not now why this is not done. This can be considered to be a "wishlist" by the respected Eclipse developers.

10 May 2015

Motion by curvature example in 2D

Here is a simple set of Octave/MATLAB files to help anyone understand or visualise motion by curvature for a 2D planar curve. I am yet to find out how to embed code in HTML; but in any case it is easier to pack and zip files in one place. The above plot shows a random curve green which has been evolved by its curvature for some iterations and the resultant curve is shown in red. 
One problem I faced was that if i increase the number of curve points to a very large number, say 150 or above, the evolution is not so stable any more and we get unexpected results. My guess is that this is a numerical stability issue rather than a bug in the code but do feel free to correct me by emailing or leaving a comment in this web-log entry or from where you downloaded the code or by emailing me.

09 May 2015

Our Lady of Alice Bhatti Quick review

I bought this book from Amazon.
Below is review:

I have read Mohammed Hanif's "A case of exploding mangos" for maybe 150 rupees. That was an amazing book; unbelievable. So I bought this book. This is also an amazing narrative of Christian suppression in Pakistan. Salute to the author. Also the protagonist is a woman; add that to her troubles as well. This is a much darker book than the Case of exploding mangoes. This is worth a read definitely. And the courage of Shri Mohammed Hanif is not to be trivialised.

Amuktamalayada translation by Srinivas Reddy

I bought the book from Amazon and posted the review below:
Amazed to read the history of this book. The original version is written by a Kannada king in Telugu language and is about a Tamil saint and describes Madurai with great zest. Amazing, that despite cut-throat warfare in the South the people still managed to praise something or the other from other regions. As a translation, obviously it looks kludgy but the author has made best effort and called this his labour of love. Praiseworthy. My prime reason for liking this book is it notes and annotations. Very nice.

02 May 2015

MICR code for SBI

Why is it so difficult to get MICR code for SBI from official SBI website? Getting teh IFS Code or IFSC is easy.