I don't know why, but I always seem to have a really hard time configuring dynamic dns. There are weird issues with ddclient. Anyway, I got it working for my domain on domains.google.com. Here's the working config file:
protocol=dyndns2
cache=/tmp/ddclient.cache
pid=/var/run/ddclient.pid
use=web, web=checkip.dyndns.org/, web-skip='IP Address'
ssl=yes
server=domains.google.com
login=your_login
password='your_password'
your.domain.name
Saturday, October 07, 2017
Thursday, January 19, 2017
Essential Nested-Loop Convention in Python
AFAIK, this is the pythonic way to ripple breaks up through multiple loops in python. It works in the scenario where we're trying to prove something, not to negate something, I think.
my_data = {'a': (1, 2, 3), 'b': (4, 5, 6), 'c': (7, 8, 9)}
for key, vals in my_data.items():
for val in vals:
if some_condition(val):
break
else:
continue
break
print "found", val, "at", key, "!"
Subscribe to:
Posts (Atom)