-
Loading data to a Mongo database for further processing
Hi, Since I needed my data to be available for further processing in a centralized manner, I have decided to store the first draft as well as further queries to location API in a Mongo database. Here is the short code snippet that was used for this task: From the concatenated file, my interest is…
-
Start of the traffic project
So, I managed to gather about 1 GB of records from the pfsense installation and grab them from the box (filter.log files that you can find under /var/log). And I have a list of 16 logs that I need to concatenate. I had a lot of trouble concatenating it since I tried multiple times to…
-
Microsoft Teams blocked by pfBlockerNG
Hi, One short tip to remember. I’ve been struggling for a while now with the fact that pfBlockerNG was blocking my Teams connection for whatever reason. I couldn’t understand what was the correct way to fix this until today. I should have known that there isn’t a range of IPs that can be whitelisted to…
-
Python Kata on Codewars
Hi, Since I pretty much broke the internet trying to solve the following “kata” with pieces of code, lets paste it also here cause it makes me proud. Here is the link to the kata: https://www.codewars.com/kata/5977ef1f945d45158d00011f And also here is my “solution” which took quite a long time to fix: That is all. Cheers!
-
Traffic statistics – new project
Hi, For some time I wanted to understand how the traffic on my networking is actually shaped. To that purpose, at first I purchased a Synology router but it seems that it hasn’t that much traffic logging capabilities, so I kept it and put in front of it the following box. It’s a cool toy…
-
Enable time sync on Manjaro
So I wanted for a while to use and to learn Manjaro and I grabbed Cinnamon 21.1.0 Installation process is pretty straight forward, I setup the correct time zone and installed all of the default packages. Guess what, after rebooting the laptop the timezone was set correctly but the actual time was way off. I…
-
SASL config issue on latest Kafka versions
Hello, Today I want to share with you a problem that we needed to fix when we decided to activate SASL. Normally, the steps are pretty straight forward and you can use Confluent doku or the general Apache Kafka. The main catch is that if you have a certain property in your config file, the…
-
Plot a math function in Python
Hi, I just started a recap of calculus and wanted to know how and if it’s hard to plot functions in a programming language. Searching this topic I found this article, which gives an elegant approach: https://scriptverse.academy/tutorials/python-matplotlib-plot-function.html After trying the code here is the result Surely there are even more complex cases but at least…
-
No workpath update on Jupyter admin started instance
Hi, Just a very small update. I saw that when you run the CMD under Administrator rights under Windows, the Jupyter working directory is automatically set to C:\Windows\System32…..which is not great at all. I tried the standard method which is listed here but it does not work. Even after I save the file, it doesn’t…
-
Recover swap file in vim
Hi, This is a problem that I had since my virtual machine was not stopped properly and my ssh connection was ended prematurely. https://superuser.com/questions/204209/how-can-i-recover-the-original-file-from-a-swp-file/205131 If you have a file.swp and you want to recover it, do as they say. Open the file in VIM and then type recover. Cheers