Posts

Showing posts from October, 2018

Bali honeymoon trip

I went to Bali for honeymoon in the month of November 2017.  It was a memorable trip. We stayed one km away from Jimbaran beach in Hotel Astari Villa. Jimbaran beach we felt is the best beach in Bali. This was my first foreign trip. So I was initially apprehensive that if we would face any problem during the trip. But we faced no problems during the trip. Makemytrip had booked cab and a guide for us who took us to hotel from the airport. We converted american dollars to local currency during our trip to hotel. In many shops you can use your credit card if you have international spending enabled. For travelling within Bali, Uber or local taxis can be used. Uber is much cheaper than local taxis. For using mobile, we had taken international roaming plan of airtel. You can also buy local sim. They contain 1-2 gb of mobile data. Using that one can talk to home using whatsapp. Whatsapp is very popular in Bali. During our stay in Bali, we visited many places. But three places a...

Python-docx vs Pywin32

I have recently made a python program which reads  stock trade log data and creates report in word format automatically. When you want to automate reading and writing data to Ms-word, you can use among two python libraries, either python-docx or pywin32. Before making the decision on which library to chose for my program, I did research on internet. I observed that most of examples on automatic handling of ms-word used python-docx library. There are lot of resources, documentation and tutorial available for python-docx library. But when I searched for documentation for pywin32, there are almost no documentation or tutorials. The examples of use of pywin32 library that I found were more than 5 years old. So I chose python-docx library for my project.  Anytime your project of word automation is small then python-docx library is one to chose due to its better documentation. However python-docx libary does not implement many feature of word. For example you cannot change cell...