I have a router which seems to "take the day off" every once in a while, and this started after I filled up all 4 Ethernet ports.
Rebooting, the only fix I've found so far, fixes the problem, so that all 4 Ethernet ports start working again.
Rebooting the router gets boring and annoying after a while, so I decided to write a script to automatically reboot the router every hour.
That script is here:
https://github.com/morphex/netgear_reboot/
Didn't need to write any Python 2 or 3 specific hacks to make it work on either Python 2 or 3 either.
I was reading a Python 2-3 cheat sheet here:
http://python-future.org/compatible_idioms.html
And after getting used to using for example print(1), I like the idea of making things simpler and more consistent, an easier to learn syntax.
An added benefit is that I, and other who use two or more keyboard layouts, don't have to remember where the backticks are located on no_nb and en_us keyboard layouts.
from Planet Python
via read more
Subscribe to:
Post Comments (Atom)
TestDriven.io: Working with Static and Media Files in Django
This article looks at how to work with static and media files in a Django project, locally and in production. from Planet Python via read...
-
Podcasts are a great way to immerse yourself in an industry, especially when it comes to data science. The field moves extremely quickly, an...
-
Graph traversal algorithms are used to perform various operations on a graph data structure. In this article, we will use the breadth-first ...
-
In an earlier tutorial we've already covered how to open dialog windows. These are special windows which (by default) grab the focus o...
No comments:
Post a Comment