[Eug-lug]solution to python puzzle

2002-10-04 Thread Bob Miller
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; }

Re: [Eug-lug]solution to python puzzle

2002-10-04 Thread Ralph Zeller
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

[Eug-lug]Sendmail setup question

2002-10-04 Thread Ralph Zeller
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?

Re: [Eug-lug]solution to python puzzle

2002-10-04 Thread toman
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;

[Eug-lug]linux firewall

2002-10-04 Thread Rob Hudson
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

Re: [Eug-lug]linux firewall

2002-10-04 Thread Ralph Zeller
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

RE: [Eug-lug]linux firewall

2002-10-04 Thread Cory Petkovsek
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

Re: [Eug-lug]linux firewall

2002-10-04 Thread Peter Bailey
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

Re: [Eug-lug]linux firewall

2002-10-04 Thread Ralph Zeller
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

Re: [Eug-lug]linux firewall

2002-10-04 Thread Rob Hudson
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

RE: [Eug-lug]linux firewall

2002-10-04 Thread Cory Petkovsek
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

Re: [Eug-lug]solution to python puzzle

2002-10-04 Thread Bob Miller
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()

[Eug-lug]new kernel initrd

2002-10-04 Thread Rob Hudson
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

RE: [Eug-lug]new kernel initrd

2002-10-04 Thread Cory Petkovsek
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.

Re: [Eug-lug]linux firewall

2002-10-04 Thread Bob Miller
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

Re: [Eug-lug]new kernel initrd

2002-10-04 Thread Bob Miller
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

Re: [Eug-lug]solution to python puzzle

2002-10-04 Thread toman
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

Re: [Eug-lug]solution to python puzzle

2002-10-04 Thread Bob Miller
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:

Re: [Eug-lug]solution to python puzzle

2002-10-04 Thread Larry Price
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

[Eug-lug][Ri50ck5462R@yahoo.jp: hi]

2002-10-04 Thread Roger
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