(Please note all text below is my opinion, and written by an enthousiast, not someone who has understanding of all rules!) I like a good crash. A good crash for me is when the driver of drivers step out of… Continue Reading →
When i started collection about 20 years my first scale model was a 1/18 car of Jos Verstappen (dad of Max Verstappen). The detail of 1/18 were great and are still. The 1/43 were good and 1/64 were almost quality… Continue Reading →
Got a question today from a colleague. He had an application that could create a diagram for a database. This was an old program (last release in 2009) and it worked with Java. If i was able to install the… Continue Reading →
This week i found out that Gmail started supporting a function in their email system where you can use a + in your email account. The nice thing about it, is that you don’t have to create an additional email… Continue Reading →
I’m having issues with my internet connection lately. My modem seems to reset it self from time to time. It can work days without issues and then it starts to reset a couple of times without any warning. The internet provider… Continue Reading →
I wanted to write a script for expanding my Python knowledge. I ussually create small scripts to accommodate my “problems” or wishes. If you want use it.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 |
import socket FQDN = [] ACC = [] ACC_FILE = open('/var/log/nginx/access.log') for LINE in ACC_FILE: ACC.append(LINE.split(' ')[0]) ACC.sort() ACC = set(ACC) for LINE in ACC: ADDR = socket.getfqdn(LINE) FQDN.append(ADDR) FQDN.sort() for SERVER in FQDN: print(SERVER) |
A couple of weeks back was my birthday and although i don’t really celebrate, my daughter wanted to get me a gift. Because we’ve gotten a new second hand car with an old tape deck that doesn’t support aux or… Continue Reading →
Sometimes when you make a SQL script, that loops through a lot of records, you want to print a status. When you do this using print (or select), this will only display the content when the buffer is full. To… Continue Reading →
This weekend our standby had issues with our backup shares, and mainly with the backups from MongoDB. These weren’t compressed or something. When we started using MongoDB we were at version 3.0, so compression (–gzip) wasn’t implemented yet. Now we… Continue Reading →
After a while it was time to reinstall my Raspberry pi OSMC installation. The installation was corrupt after some testing with different pieces of software. Well it was time to do a new installation. After a while i found out that… Continue Reading →
© 2021 Project 34 — Powered by WordPress
Theme by Anders Noren — Up ↑