How to create a ramdisk?
Whether you have SSD with NVME Protocol or good old HDD, It is not going to make you feel superior than your Random Access Memory or RAM.
By creating a ramdisk, you can use your unused memory as a super fast disk space and work with it. I do need to use nginx and for caching, I always go to tmpfs which is filesystem type that typically uses ram. How do I create one?
How to run Python Flask Application?
I mostly use Python Flask when I need to develop a Web App or API.
Why? Because it is:
- lightweight
- Very Flexible
- Micro-Service Friendly
- Fast Development
These are one of the main reasons I choose Flask. But mostly I love to code with Flask. There are so many ways to run flask applications. I will write some of them here with code examples.
Development Environment with Docker Compose
There are a lot of tools I need to work with. Installing some tools in my workstation and bloating the system is not an option with limited memory capacity, specially in MacBook Air M1 with 8GB of ram. So, I am using docker when using those tools. The day to day life depends on these DB tools –
Apache Kafka in Docker Container and Implement it’s Functionalities with Python
According to the website, Apache Kafka is an open-source distributed event streaming platform used by thousands of companies for high-performance data pipelines, streaming analytics, data integration, and mission-critical applications.
In this post, I am going to share a basic way to start using Apache Kafka with python.
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?
GetDockerized: An Initiative to Learn Docker as Deep as Possible, Once Again
Raspberry Pi and Docker Registry
Recently I have been using a Raspberry Pi 3B+ bought from a classified advertisement site called Bikroy.com. A student wanted to sell this, as his final college project was done. It was cheaper with an acrylic casing and a fan. However, I wanted to use this Pi for several pet projects. Initially I did install Pi-Hole for network wide adblocker and along with samba with a spare portable hard disk. It was working OK. No extra pressure in this 1GB ram Pi. I thought Why not give it a little bit more pressure?
Thus, I planned to install docker registry in it for my “local private docker hub” type of need. Let me share what I had to do.
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?
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.