Soluții

Read a file line by line in Python

Reading line by line using readlines().
readlines() is used to read all the lines at a single go and then return them as each line a string element in a list. This function can be used for small files, as it reads the whole file content to the memory, then split it into separate lines. We can iterate over the list and strip the newline ‘\n’ character using strip() function.

[mai mult...]

How to Disable DHCP in windows 10

Reasons to Turn DHCP Off
But DHCP by its nature means your device may have different addresses over time, and there are some reasons you might not want this. A prime example is if you’re running a server, such as a self-hosted web server. You’ll need a consistent way to contact said server, and the easiest path to achieve that is to give it a static IP address, i.e. you’ll actually configure the machine with an IP address yourself. On the plus side, this means you have control over which address your machine receives. However, you’ll need to be careful with those configurations, especially when it comes to not duplicating any addresses.

[mai mult...]