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...
-
Dialogs are useful GUI components that allow you to communicate with the user (hence the name dialog ). They are commonly used for file Ope...
-
This tutorial outlines object oriented programming (OOP) in Python with examples. It is a step by step guide which was designed for people w...
No comments:
Post a Comment