Pythons datetime of a timezone

In python, we can use datetime module from standard library for manipulating dates and times. From the documentation, we can say, date and time objects may be categorized as “aware” or “naive” depending on whether or not they include timezone information. How can we get a datetime?

Continue reading Pythons datetime of a timezone

Again Fibonacci Series and Python

I have already wrote a piece about generating Fibonacci series in BASH, here in my blog. But today I am gonna do some practice stuff with Python.

We all I guess know about Fibonacci. It is connected to nature through the golden ratio and the spirals. It is a very interesting series to learn or research deeply. However, I came to know that there is a day declared as “Fibonacci Day” which is every 23rd, November. But why?

Continue reading Again Fibonacci Series and Python

Multi line Log Parser in Python

So, I have a log file that is not single line log. It is kind of java stack trace. What I needed to do is read those log files and create some actions depending on them. I could use already built tools. But I thought why not just do this as simply as printing strings.

This is an example of the log format I wanted to play with. It seems too simple to pile up the Filebeats or elastic stack.

Continue reading Multi line Log Parser in Python

Some coding practice with Json, Itertools and Lambda in Python

I enjoy coding and solving problems. But as I go forward, I find myself in a sea of unknowns. Thus I decided to learn as much as possible to be confident. So, I am learning even the simplest it seems.

Continue reading Some coding practice with Json, Itertools and Lambda in Python