Consider the following piece of code: The code above produces the following output: Strange, isn’t it? The values which end with “5” should be rounded up! This is a common…
Tag: Python
In my previous post, I wrote about the quick way to generate Excel export from the database using Python. This was a simple report, but in fact, I had to…
If you are thinking of a quick way to prepare an Excel report from the data you have in your database, you can use Python. In order to achieve this,…
This issue is related to MySQL (I’m using mysql-connector-python). Surprisingly, when I was changed my query to a stored procedure, my code stopped working. It looked like this: And it…
AWS CloudFront is a widely-used content delivery network service and as most of Amazon Web Services elements can be configured programmatically in many ways. For beginners, the easiest way leads…
A few weeks ago, I started my security camera timelapse project which resulted in a lot of files being captured (my camera takes a photo every minute). I moved the…
Here is the story: as the result of my security camera timelapse project, I ended up with a ton of files stored in a single directory. I want them to…
More than two years ago, I wrote a “how-to” post about the Amazon AWS Instance Scheduler that was based on the pieces provided by the AWS team. I notice that…
I know, I know, this is not the best practice. The instance should be configured so it will work properly and status checks will always pass. The problem is that…
Yes, I know that the easiest way to receive some output from my Python script is to use a print statement. Nice and easy. But is it? It can be…