Those of you who were at the clinic last night know that I
was asking for help on a weird limitation of Python.
The problem: Consider the function, foo(), in this C program.
#include stdio.h
int foo()
{
static int n = 0;
return ++n;
}
There's an analysis of the topic at developerworks:
http://www-106.ibm.com/developerworks/linux/library/l-pycon?t=grl,l=252,p=iterators
On (10/04/02 08:41), Bob Miller wrote:
Those of you who were at the clinic last night know that I
was asking for help on a weird limitation of Python.
The
I'm trying to get sendmail setup (under RedHat for now) and I'm having
a problem with the X-Authentication warning when I'm sending from a
transient host. Is there something in my setup that I can change that
prevents the warning from showing up in my emails, or do I have to fix
my DNS settings?
Bob Miller wrote:
Those of you who were at the clinic last night know that I
was asking for help on a weird limitation of Python.
The problem: Consider the function, foo(), in this C program.
#include stdio.h
int foo()
{
static int n = 0;
I'm setting up a firewall/gateway at my house.
What should I use? IPchains? What's the other option? Isn't there a
standard packet filter for 2.2 and a different one for 2.4? I'm in the
kernel config for 2.4.19 right now and don't see much.
Pointers to articles to set it up or other info
iptables
On (10/04/02 10:21), Rob Hudson wrote:
I'm setting up a firewall/gateway at my house.
What should I use? IPchains? What's the other option? Isn't there a
standard packet filter for 2.2 and a different one for 2.4? I'm in the
kernel config for 2.4.19 right now and don't see
Use iptables, don't bother with ipchains. Both are in 2.4. Look for ip
netfilter setup under the networking options.
Turn on network packet filter (replaces ipchains)
then into netfilter config
select
connection tracking
ftp/irc (if you plan to use those over nat)
iptables support
packet
There are many options here. Depends on what you want it to do,
really.
My suggestion, if you aren't planning on running anything special
on it would be one of the various firewall boot disks or boot cds. The
reason for this is that a hacker who breaks into a boot cd can't
Here's an well-commented example of iptables setup, that includes info
about loading modules:
http://www.ecst.csuchico.edu/~dranch/LINUX/ipmasq/examples/rc.firewall-2.4
On (10/04/02 10:33), Ralph Zeller wrote:
iptables
On (10/04/02 10:21), Rob Hudson wrote:
I'm setting up a
There we go. That's the kernel stuff I was looking for. :)
Anyone ever try Gibraltar -- a debian based firewall bootable CD?
-Rob
On 20021004.1024, Cory Petkovsek said ...
Use iptables, don't bother with ipchains. Both are in 2.4. Look for ip
netfilter setup under the networking
My suggestion, if you aren't planning on running anything special
on it would be one of the various firewall boot disks or boot cds. The
reason for this is that a hacker who breaks into a boot cd can't change
anything permanently.
Neither can the administrator change anything
toman wrote:
I don't know offhand, but I would look at generators in python 2.x .
Ralph suggested generators too. A generator would work, but the
generator function doesn't do what I want itself, it returns an object
that does what I want. I.e., instead of saying,
print foo(), foo()
Today I installed Debian Woody from the bootable CD. That's the first time
I used it and it went well. Definitely beats throwing away old floppies b/c
of bad sectors when you format them.
I apt-get installed a 2.4.x kernel so it would pull in any other utilities
the 2.4.x series needed. It
I've never had to make one with debian, nor have it ask for one. I've read
that the only thing it does is load modules required at boot. However I
compile filesystem modules into the kernel, and also add in support for the
kernel autoloader. It's never complained about needing an initrd.img.
Rob Hudson wrote:
I'm setting up a firewall/gateway at my house.
What should I use? IPchains? What's the other option? Isn't there a
standard packet filter for 2.2 and a different one for 2.4? I'm in the
kernel config for 2.4.19 right now and don't see much.
If you want to finish the
Rob Hudson wrote:
What is the initrd.img? When you compile a kernel from source, do you have
to concern yourself with making one? How?
initrd == Initial RAMdisk. It's an ext2 filesystem which lilo loads
into memory at boot time. You can look at the contents like this.
jogger-egg ~ mkdir
Bob Miller wrote:
toman wrote:
I don't know offhand, but I would look at generators in python 2.x .
Ralph suggested generators too. A generator would work, but the
generator function doesn't do what I want itself, it returns an object
that does what I want. I.e., instead of
Larry Price wrote:
: return statements that aren't on either the top or the innermost level
of a function are a sign of trouble.
Now that's a weird one. So this code, e.g., is a sign of trouble?
class StatSample:
# ...
def variance(self):
if len(self) == 0:
On Fri, 4 Oct 2002, Bob Miller wrote:
Larry Price wrote:
: return statements that aren't on either the top or the innermost level
of a function are a sign of trouble.
Now that's a weird one. So this code, e.g., is a sign of trouble?
class StatSample:
# ...
def
I have no clue who this person is.
what is this? Is the 'image' tag at the end a means of verifying the
email address for spammers? ie, a php that hits a database. It didn't
show up in mutt, I had to do a 'v'to even see that it was there.
roger
- Forwarded message from Rick Ruben [EMAIL
20 matches
Mail list logo