Tech
Connecting to firewalled hosts using PuTTY SSH
Posted December 4th, 2007 by matt in
Maybe this fits your description:
- You have a network of computers (or one computer) protected by a firewall of some sort
- You want to be able to ssh into those computers
- Your firewall runs Linux or some other OS that has OpenSSH on it.
If your personal computer that you’re running SSH from is Linux or has OpenSSH on it, this is a piece of cake (I’ll explain further below). But if you’re using Windows and PuTTY then it can be a bear to get setup.
Scenario:
- You’re using Windows and PuTTY SSH.
Simple Iterable Objects in Python
Posted August 28th, 2007 by matt in
Sometimes the python documentation can give too many details such that its difficult to get answers to simple questions. One that I’ve just worked through is “[iterable objects][0].” For example, if you have an object called Family and you want to display a list of all the members of that family, you might use this code:
family = Family('Nuzums')
for person in family:
print person['first_name']
Shouldn’t be hard, right? Its not, once you figure it out. You start out with your usual class definition, then you need to add the following methods:
Bearfruit