f



Possible to block mail from SMTPs whose IPs are in 12345678 form? (not 1.2.3.4 or host [1.2.3.4] )

Hello. I started getting some spam on my network (its basically always 
the same crap - some "doctor" soliciting some drugs...) and I've been 
adding entries to my /etc/mail/access file (and re hashing it of 
course)...

But recently, in the mail source, the "received from" lines have been 
showing a number, like 123456789, instead of a traditional ip (1.2.3.4), 
for the SMTP that relayed the email to me, and I'm wondering if it's 
possible, and a good idea (or RFC legal) to block IP's that aren't 
either in a.b.c.d or "hostname [a.b.c.d]" form. I've never encountered 
an IP in single 32bit numerical form on any non spam email, so it 
doesn't seem it would be a problem.

Or is there a better way to get rid of this spammer without endlessly 
putting new ip blocks, must of which are overseas (mostly asian - china, 
korea, etc) ip blocks in my access db (REJECT.) I know spammers can 
sometimes spoof the domain they are really sending from, it would be 
nice to finally kill this one once and for all (short of changing my 
domain name.)

[One little note, I do have my sendmail checking with online blacklists 
too, which filters out a lotta crap as well, but this spammer has a 
different from header (surprise surprise) as well as recovered from 
addresses.

I'm currently using njabl.org, if there is a better one I'd gladly use 
it instead, or in conjunction - can't ever have too many anti spam tools 
:-) ]

-- 
Stan 


0
10/10/2005 12:57:40 AM
comp.mail.sendmail 13518 articles. 1 followers. jfretby (35) is leader. Post Follow

9 Replies
1171 Views

Similar Articles

[PageSpeed] 32

Stan R. wrote:

> But recently, in the mail source, the "received from" lines have been 
> showing a number, like 123456789, instead of a traditional ip (1.2.3.4), 

Can you post an example?

It might be the HELO argument you are talking about, take
a look at the format of a Received: header.

--
Note: please read the netiquette before posting. I will almost never
reply to top-postings which include a full copy of the previous
article(s) at the end because it's annoying, shows that the poster
is too lazy to trim his article, and it's wasting the time of all readers.
0
Claus
10/10/2005 4:01:42 AM
Claus A�mann wrote:
> Stan R. wrote:
>
>> But recently, in the mail source, the "received from" lines have been
>> showing a number, like 123456789, instead of a traditional ip
>> (1.2.3.4),
>
> Can you post an example?
>
> It might be the HELO argument you are talking about, take
> a look at the format of a Received: header.
>
> --
> Note: please read the netiquette before posting. I will almost never
> reply to top-postings which include a full copy of the previous
> article(s) at the end because it's annoying, shows that the poster
> is too lazy to trim his article, and it's wasting the time of all
> readers.

Here is an example that came in today, with our domain munged for 
obvious reasons.

Its always the same dam email over and over, just different From: and 
Recieved:  domains. Is there a way to block wh oever this is once and 
for all? Or is the only way to block based on content, if thats even 
possible with sendmail?

Return-Path: <atulm@yahoo.com>
Received: from -190819592 ([202.196.177.249])
 by blah.com (8.11.6/8.11.6) with SMTP id j9BMNlI08181
 for <naza@blah.com>; Tue, 11 Oct 2005 15:23:48 -0700
Received: from yahoo.com (-190790520 [-190610864])
 by elturista.com (Qmailv1) with ESMTP id E9B8B9C2E2
 for naza@blah.com; Wed, 12 Oct 2005 06:22:16 -0500
Date: Wed, 12 Oct 2005 06:22:16 -0500
From: Doctor <atulm@yahoo.com>
X-Mailer: The Bat! (v2.00.5) Personal
X-Priority: 3
Message-ID: <9682813375.20051012062216@yahoo.com>
To: Naza <naza@blah.com>
Subject: The Ultimate Online Pharmaceutical
MIME-Version: 1.0
Content-Type: multipart/alternative;
 boundary="----------0626D5372BB1A81"
X-Virus-Scanned: Norton
Status:




 Posted Via Usenet.com Premium Usenet Newsgroup Services
----------------------------------------------------------
    ** SPEED ** RETENTION ** COMPLETION ** ANONYMITY **
----------------------------------------------------------        
                http://www.usenet.com
0
stan53 (9)
10/12/2005 5:31:51 AM
"Stan R." <stan@blznospam.hmrprintnospam.com> wrote in message
news:1129095305_873@spool6-east.superfeed.net

>>> But recently, in the mail source, the "received from" lines have
>>> been showing a number, like 123456789, instead of a traditional ip
>>> (1.2.3.4),
....
>> It might be the HELO argument you are talking about, take
>> a look at the format of a Received: header.
....
> Received: from -190819592 ([202.196.177.249])
>  by blah.com (8.11.6/8.11.6) with SMTP id j9BMNlI08181
>  for <naza@blah.com>; Tue, 11 Oct 2005 15:23:48 -0700

The IP address is plainly stated in the header. Your Subject: line claims
"not ... host [1.2.3.4]" yet it is clearly so. The "host" as stated in the
HELO is just a simple numeric hostname.

$ echo 202.196.177.249 | jdresolve -r -n -
202.196.177.249.net.edu.cn

It seems like an indicated usage of the access file, perhaps for the class B
domain if you like.

0
ynotssor (750)
10/12/2005 5:57:20 AM
Stan R. wrote:

[please trim your quoting, esp. don't quote signatures]

> Received: from -190819592 ([202.196.177.249])
                              ^^^^^^^^^^^^^^^
There's your IP address, what's the problem?

-190819592 is the HELO argument.

>  by blah.com (8.11.6/8.11.6) with SMTP id j9BMNlI08181
                ^^^^^^^^^^^^^
You want to upgrade...

> Received: from yahoo.com (-190790520 [-190610864])

That's a fake.

--
Note: please read the netiquette before posting. I will almost never
reply to top-postings which include a full copy of the previous
article(s) at the end because it's annoying, shows that the poster
is too lazy to trim his article, and it's wasting the time of all readers.
0
Claus
10/12/2005 6:07:17 AM
> Received: from -190819592 ([202.196.177.249])

190819592 maps to 11.95.173.8
and
-190819592 maps to 244.160.82.248

so those are just numeric hostnames, not related to the ip address.


0
swheeler (3)
10/12/2005 8:09:14 PM
ynotssor wrote:
> "Stan R." <stan@blznospam.hmrprintnospam.com> wrote in message
> news:1129095305_873@spool6-east.superfeed.net
>
>>>> But recently, in the mail source, the "received from" lines have
>>>> been showing a number, like 123456789, instead of a traditional ip
>>>> (1.2.3.4),
> ...
>>> It might be the HELO argument you are talking about, take
>>> a look at the format of a Received: header.
> ...
>> Received: from -190819592 ([202.196.177.249])
>>  by blah.com (8.11.6/8.11.6) with SMTP id j9BMNlI08181
>>  for <naza@blah.com>; Tue, 11 Oct 2005 15:23:48 -0700
>
> The IP address is plainly stated in the header. Your Subject: line
> claims "not ... host [1.2.3.4]" yet it is clearly so. The "host" as
> stated in the HELO is just a simple numeric hostname.

It was a bad example, sorry, the one I got before (that I had deelted 
prior to making my original post) had no ip or hostname, just some 
number, like:

Received: from -190819592

Something like that.

I would really like ot just kill this dang spammer :) 


0
stan53 (9)
10/16/2005 2:43:11 PM
Stan R. wrote:
> Hello. I started getting some spam on my network (its basically always
> the same crap - some "doctor" soliciting some drugs...) and I've been
> adding entries to my /etc/mail/access file (and re hashing it of
> course)...
>
> But recently, in the mail source, the "received from" lines have been
> showing a number, like 123456789, instead of a traditional ip
> (1.2.3.4), for the SMTP that relayed the email to me, and I'm
> wondering if it's possible, and a good idea (or RFC legal) to block
> IP's that aren't either in a.b.c.d or "hostname [a.b.c.d]" form. I've
> never encountered an IP in single 32bit numerical form on any non
> spam email, so it doesn't seem it would be a problem.
>
> Or is there a better way to get rid of this spammer without endlessly
> putting new ip blocks, must of which are overseas (mostly asian -
> china, korea, etc) ip blocks in my access db (REJECT.) I know
> spammers can sometimes spoof the domain they are really sending from,
> it would be nice to finally kill this one once and for all (short of
> changing my domain name.)
>
> [One little note, I do have my sendmail checking with online
> blacklists too, which filters out a lotta crap as well, but this
> spammer has a different from header (surprise surprise) as well as
> recovered from addresses.
>
> I'm currently using njabl.org, if there is a better one I'd gladly use
> it instead, or in conjunction - can't ever have too many anti spam
> tools :-) ]

This is what I was talking about:

Received: from picanteperosabroso.com (143302520 [141126704])
 by ns.mc99.co.jp (Qmailv1) with ESMTP id 88E6073A0A
 for <***@***>; Tue, 25 Oct 2005 19:36:17 -0400

(I ***'ed my email address here.)

See how where it doesn't resolve to a quad style IP, but a dword 
instead? (Twice for that matter, and two different numbers to boot.

How can I reject this, as I've only seen it occur in spam. 



 Posted Via Usenet.com Premium Usenet Newsgroup Services
----------------------------------------------------------
    ** SPEED ** RETENTION ** COMPLETION ** ANONYMITY **
----------------------------------------------------------        
                http://www.usenet.com
0
stan53 (9)
10/25/2005 11:40:41 PM
Stan R. <stan@blznospam.hmrprintnospam.com> wrote:

> Stan R. wrote:
> >
> > But recently, in the mail source, the "received from" lines have been
> > showing a number, like 123456789, instead of a traditional ip
> > (1.2.3.4), for the SMTP that relayed the email to me, and I'm
> > wondering if it's possible, and a good idea (or RFC legal) to block
> > IP's that aren't either in a.b.c.d or "hostname [a.b.c.d]" form. I've
> > never encountered an IP in single 32bit numerical form on any non
> > spam email, so it doesn't seem it would be a problem.
> >
> > Or is there a better way to get rid of this spammer without endlessly
> > putting new ip blocks, must of which are overseas (mostly asian -
> > china, korea, etc) ip blocks in my access db (REJECT.) I know
> > spammers can sometimes spoof the domain they are really sending from,
> > it would be nice to finally kill this one once and for all (short of
> > changing my domain name.)

> >
> > I'm currently using njabl.org, if there is a better one I'd gladly use
> > it instead, or in conjunction - can't ever have too many anti spam
> > tools :-) ]
> 
> This is what I was talking about:
> 
> Received: from picanteperosabroso.com (143302520 [141126704])
>  by ns.mc99.co.jp (Qmailv1) with ESMTP id 88E6073A0A
>  for <***@***>; Tue, 25 Oct 2005 19:36:17 -0400

You cannot trust any Received line that was not written by a server
under your administrative control.

They can be forged or use false data. In an attemp to mislead you.
(Which worked here.)

And unless you are using a special milter or spamassassin (or else),
info from the Received lines is not checked againts the access db or any
real time dns block list.

That line doesn't even says the server is sendmail.

If you want to block whole countries, I believe you can find, on the
internet, by country IP blacklist you can use with sendmail (either in a
huge access db or via a real time dns block list).


-- 
Hugo Villeneuve <hugo@EINTR.net>
0
hugo5334 (48)
10/26/2005 3:54:23 PM
Hugo Villeneuve wrote:
> Stan R. <stan@blznospam.hmrprintnospam.com> wrote:
>
>> Stan R. wrote:
>>>
>>> But recently, in the mail source, the "received from" lines have
>>> been showing a number, like 123456789, instead of a traditional ip
>>> (1.2.3.4), for the SMTP that relayed the email to me, and I'm
>>> wondering if it's possible, and a good idea (or RFC legal) to block
>>> IP's that aren't either in a.b.c.d or "hostname [a.b.c.d]" form.
>>> I've never encountered an IP in single 32bit numerical form on any
>>> non spam email, so it doesn't seem it would be a problem.
>>>
>>> Or is there a better way to get rid of this spammer without
>>> endlessly putting new ip blocks, must of which are overseas (mostly
>>> asian - china, korea, etc) ip blocks in my access db (REJECT.) I
>>> know spammers can sometimes spoof the domain they are really
>>> sending from, it would be nice to finally kill this one once and
>>> for all (short of changing my domain name.)
>
>>>
>>> I'm currently using njabl.org, if there is a better one I'd gladly
>>> use it instead, or in conjunction - can't ever have too many anti
>>> spam tools :-) ]
>>
>> This is what I was talking about:
>>
>> Received: from picanteperosabroso.com (143302520 [141126704])
>>  by ns.mc99.co.jp (Qmailv1) with ESMTP id 88E6073A0A
>>  for <***@***>; Tue, 25 Oct 2005 19:36:17 -0400
>
> You cannot trust any Received line that was not written by a server
> under your administrative control.
>
> They can be forged or use false data. In an attemp to mislead you.
> (Which worked here.)
>
> And unless you are using a special milter or spamassassin (or else),
> info from the Received lines is not checked againts the access db or
> any real time dns block list.
>
> That line doesn't even says the server is sendmail.

Sorry, I should of said this: that was the 2nd "recieved from" line in 
the headers, the first (top most) one (mine) of course said sendmail :)

-- 
Stan 


0
10/26/2005 5:12:49 PM
Reply:

Similar Artilces:

Newbie question; why (cons (list 1 2) (list 3 4)) is ((1 2) 3 4) and not ((1 2) (3 4))
Hi, I just started to learn LISP, and stumbled in SICP upon (cons (list 1 2) (list 3 4)) is evaluated to ((1 2) 3 4) I do not understand why this is not: ((1 2) (3 4)) because (cdr (cons (list 1 2) (list 3 4))) is (3 4) and (car (cons (list 1 2) (list 3 4))) is (1 2) Is there a logical explanation? Thank you for your patience. -- Greg Out of order, gregor <gregor@ediwo.com> writes: > Is there a logical explanation? Yes. > I just started to learn LISP, and stumbled in SICP upon But first, let's talk about LISP, Lisp, Scheme and Common Lisp. LISP is the name of the programming language invented in 1959 by John McCarthy and of the first program implementing it written amongst other by Steve Russel, one of his students. LISP 1.5 is a segueing version of that same program dating about 1962 that had some distribution. Then various lisp languages were developed at various places by various teams. Names such as MacLisp, InterLisp, LeLisp, StandardLisp, vLisp, Lisp Machine Lisp, Scheme, GNU Emacs Lisp, etc. It was quite a mess, and people had a hard time sharing programs. So they talked and designed and wrote and voted and produced the ANSI Common Lisp standard (in the USA), meanwhile in Europe they produced the ISO Lisp standard. Nowadays, almost all the other lisps are "dead", with only scheme (current version r5rs, r7r...

[1 1 1 1 1 ;2 2 2 2 2 ;3 3 3 3 3 3;....;n n n n n]
Hi, Anybody knows how to create this matrix but without using any loops? a=[1 1 1 1 1 ;2 2 2 2 2 ;3 3 3 3 3 ;.......;n n n n n ] Thank you. Hana. Hana wrote: > Hi, > Anybody knows how to create this matrix but without using any loops? > a=[1 1 1 1 1 ;2 2 2 2 2 ;3 3 3 3 3 ;.......;n n n n n ] HELP REPMAT - Randy Hana wrote: > > > Hi, > Anybody knows how to create this matrix but without using any > loops? > a=[1 1 1 1 1 ;2 2 2 2 2 ;3 3 3 3 3 ;.......;n n n n n ] > > Thank you. > Hana. Hope this isn't homework. >> repmat([1:n]'...

[0 0 1 1 2 2 3 3 4 4 ... n n]
Is there a way to achieve a vector like the one below without using loops? [0 0 1 1 2 2 3 3 4 4 ... n n] "Ulrik Nash" <uwn@sam.sdu.dk> wrote in message <kp999d$a8e$1@newscl01ah.mathworks.com>... > Is there a way to achieve a vector like the one below without using loops? > > [0 0 1 1 2 2 3 3 4 4 ... n n] You could try this: floor(0:1/rep:n+1-1/rep) where rep is the number of repetitions (2 in your case) Hi, a cool way to do that is using the kronecker product kron(0:n,[1 1]); "Ulrik Nash" <uwn@sam.sdu.dk> wrote in message <kp999d$a8e$1@newscl01ah.mathworks.com>... > Is there a way to achieve a vector like the one below without using loops? > > [0 0 1 1 2 2 3 3 4 4 ... n n] There is another way to achieve that. Do this like the following: >> n=7; u(1:2:2*n+1)=0:n; >> u(2:2:2*n+2)=0:n; The array u seems to be what you want. ...

convert String "1;2;3;4;5;" to Array [1, 2, 3, 4, 5]
I'm trying to convert a String of numbers that are separated by semicolons to an Array---totally for fun, to stretch my ruby understanding, fyi. I use the Array in a while loop which does work when the Array looks like = [1,2,3,4,5,...]---so that part is working. But I want to use ruby to convert a String = "1;2;3;4;5;6;7;8;9;10" into an Array [1,2,3,4,5,...] so that I can use these values. I've tried many a method, but can't seem to get the desired result; I've tried gsub(/\;/, ","), eval (), and others. ########## raw_data = "1;2;3...

Does 4/2/2= (4/2)/2 =1 OR = 4/(2/2)=4
I don't have matlab and I am trying to translate some simple matlab code. Does 4/2/2 = (4/2)/2 = 1 or 4/2/2 = 4/(2/2) = 4 On 9/11/2012 9:43 AM, sarah.englander@gmail.com wrote: > I don't have matlab and I am trying to translate some simple matlab code. > > Does 4/2/2 = (4/2)/2 = 1 yes. At a given precedence level (and obviously two of the same operators are the same level) evaluation proceeds from LtoR. ....snip... <http://www.mathworks.com/help/techdoc/matlab_prog/f0-40063.html#f0-38155> -- dpb <none@non.net> wrote in message <k2njh1$jes$1@speranza.aioe.org>... > On 9/11/2012 9:43 AM, sarah.englander@gmail.com wrote: > > I don't have matlab and I am trying to translate some simple matlab code. > > > > Does 4/2/2 = (4/2)/2 = 1 > > yes. At a given precedence level (and obviously two of the same > operators are the same level) evaluation proceeds from LtoR. > > ...snip... > > <http://www.mathworks.com/help/techdoc/matlab_prog/f0-40063.html#f0-38155> > > -- There are a few thing you need to understand: 1. You need to get matlab in order to translate the simple code 2. You should define your parameters as in what is the expected output of your search based on the equations used: Is it : a) 4/2/2 b) (4/2/2) On 9/11/2012 11:13 PM, Salvinder wrote: .. > There are a few thing you need to understand: > 1. ...

how to "(1-3*x^2)/(1-3*x+x^2+2*x^3) => 1/(1-2*x) + x/(1-x-x^2)"?
hi normal(1/(1-2*x) + x/ (1-x-x^2),expanded); 1/(1-2*x) + x/(1-x-x^2) => (1-3*x^2)/(1-3*x+x^2+2*x^3) how to do the reverse? dillogimp@gmail.com writes: > normal(1/(1-2*x) + x/ (1-x-x^2),expanded); > 1/(1-2*x) + x/(1-x-x^2) => (1-3*x^2)/(1-3*x+x^2+2*x^3) > how to do the reverse? convert(%,parfrac,x); -- Joe Riel ...

ANN: Openstep for Zaurus: mySTEP-1.4, myPDA-3.1a5 ANN: Openstep for Zaurus: mySTEP-1.3, myPDA-3.1a4, Zaurus-gcc-2.95.3X10.3a1 ANN: Openstep for Zaurus: mySTEP-1.4, myPDA-3.1a5
Dear all, again new releases for the GNUstep clone "mySTEP" for the Sharp Zaurus and its runtime environment "myPDA" (X11 + window manager) as well as an update for the gcc cross-compiler development kit hosted on MacOS X 10.3 are available. The system is becoming more and more mature - although it is not yet ripe enough for productivity. It allows you to take the source of Cocoa applications, add a simple shell-script build phase, and compile into a "fat binary" .app bundle that runs verbatim on MacOS X as well as on a standard Zaurus on which myPDA is...

MIME encoding change in Python 2.4.3 (or 2.4.2? 2.4.1?)
I have an application that processes MIME messages. It reads a message from a file, looks for a text/html and text/plain parts in it, performs some processing on these parts, and outputs the new message. Ever since I recently upgraded my Python to 2.4.3, the output messages started to come out garbled, as a block of junk characters. I traced the problem back to a few lines that were removed from the email package: The new Python no longer encodes the payload when converting the MIME message to a string. Since my program must work on several computers, each having a different version of Pyth...

PHPBB2, PHP 4.3.4, MySQL 4.1.1, Apache 2.0.49, Fedora 2
My combination is: PHPBB2, PHP 4.3.4, MySQL 4.1.1, Apache 2.0.49, Fedora 2 Anyone out there has a successful combination of newer versions ? fr gr Erik ...

qt-3.2/kde-3.1.4/XFree-4.2
I've build qt-3.2/kde-3.1 on a redhat 7.3 box (w/XFree-4.2.1/Xft1), and have run into a little problem wrt fonts. In KDE, the only available fixed-width font listed is named "fixed". Ack. With qt-3.1/kde-3.1.4, the list of available fixed-width fonts was *much* longer, including ones like: Luxi Mono LucidaTypewriter Courier Any ideas (other than the recommending a painful upgrade to XFree-4.3/fontconfig)? -- Rex ...

[RELEASED] Python 3.2.4 rc 1 and Python 3.3.1 rc 1
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On behalf of the Python development team, I am pleased to announce the first release candidates of Python 3.2.4 and 3.3.1. Python 3.2.4 will be the last regular maintenance release for the Python 3.2 series, while Python 3.3.1 is the first maintenance release for the 3.3 series. Both releases include hundreds of bugfixes. There has recently been a lot of discussion about XML-based denial of service attacks. Specifically, certain XML files can cause XML parsers, including ones in the Python stdlib, to consume gigabytes of RAM and swamp the CPU. These releases do not include any changes in Python XML code to address these issues. Interested parties should examine the defusedxml package on PyPI: https://pypi.python.org/pypi/defusedxml These are testing releases: Please consider trying them with your code and reporting any bugs you may notice to: http://bugs.python.org/ To download Python 3.2.4 or Python 3.3.1, visit: http://www.python.org/download/releases/3.2.4/ or http://www.python.org/download/releases/3.3.1/ respectively. Enjoy! - -- Georg Brandl, Release Manager georg at python.org (on behalf of the entire python-dev team and all contributors) -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.19 (GNU/Linux) iEYEARECAAYFAlFRRIoACgkQN9GcIYhpnLD6jACgnzYdYRKZ4kwkKeN3zSLSZ3Zr M/IAn17vlpxI3a3xk+i/ODOrCkMnRZro =B5sA -----END PGP SIGNATURE----- ...

[RELEASED] Python 3.2.4 rc 1 and Python 3.3.1 rc 1
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On behalf of the Python development team, I am pleased to announce the first release candidates of Python 3.2.4 and 3.3.1. Python 3.2.4 will be the last regular maintenance release for the Python 3.2 series, while Python 3.3.1 is the first maintenance release for the 3.3 series. Both releases include hundreds of bugfixes. There has recently been a lot of discussion about XML-based denial of service attacks. Specifically, certain XML files can cause XML parsers, including ones in the Python stdlib, to consume gigabytes of RAM and swamp the CPU. These releases do not include any changes in Python XML code to address these issues. Interested parties should examine the defusedxml package on PyPI: https://pypi.python.org/pypi/defusedxml These are testing releases: Please consider trying them with your code and reporting any bugs you may notice to: http://bugs.python.org/ To download Python 3.2.4 or Python 3.3.1, visit: http://www.python.org/download/releases/3.2.4/ or http://www.python.org/download/releases/3.3.1/ respectively. Enjoy! - -- Georg Brandl, Release Manager georg at python.org (on behalf of the entire python-dev team and all contributors) -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.19 (GNU/Linux) iEYEARECAAYFAlFRRIoACgkQN9GcIYhpnLD6jACgnzYdYRKZ4kwkKeN3zSLSZ3Zr M/IAn17vlpxI3a3xk+i/ODOrCkMnRZro =B5sA -----END PGP SIGNATURE----- ...

Printing 2^1, 2^2, 2^3, 2^4 and 2^5
Hi, When I use a while loop, the output is: 2 4 8 16 32, as desired: <?php $c=1; while($c<=5) { $d = newpow(2, $c); print "$d "; $c++; } function newpow($base, $power) { // statements... } ?> The But when I use a for loop, the output is: 64: <?php for($c=1; $c<=5; $c++); { $d = newpow(2, $c); print "$d "; } function newpow($base, $power) { // statements... } ?> Why is this?? Many thanks, Michael mejpark wrote: > When I use a while loop, the output is: 2 4 8 16 32, as desired: [...] > The But when I use a for loop, the output is: 64: > > <?php > > for($c=1; $c<=5; $c++); Here your loop ended right at the ; After the loop comes this: > { > $d = newpow(2, $c); > print "$d "; > } Heiko -- http://portal.richler.de/ Namensportal zu Richler http://www.richler.de/ Heiko Richler: Computer - Know How! http://www.richler.info/ private Homepage On 18 Mar, 11:02, Heiko Richler <heiko-rich...@nefkom.net> wrote: > mejpark wrote: > > When I use a while loop, the output is: 2 4 8 16 32, as desired: > [...] > > The But when I use a for loop, the output is: 64: > > > <?php > > > for($c=1; $c<=5; $c++); > > Here your loop ended right at the ; > > After the loop comes this: > > > { > > $d = newpow(2, $c); > > print "$d "; > > } > > Heiko > > --http://portal.richler.d...

Updates to sysback 4.2.1.4 on AIX 4.3.3?
Having had a mksysb transfer of a system fail I need to build a 4.3.3 from the ground up on a p660 with a number of software products installed. I have a licensed and installed copy of sysback.rte 4.2.1.4 installed on the "new" box but have issues with this. IBM, sometime in since the release of this software image more than four years ago appear to have superceeded the product with Tivoli storage manager, which sysback became a module of. I am trying to find a sysback.rte 4.2.1.35 or later (preferably later). Can anyone provide a link to a suitable update? TIA Ian On 28 Jul 2...

How to integrate gcc 3.4.4 to Tornado 2.2.1 for VxWorks 5.5.1
Hi, all. Did anybody tried to integrate the gcc 3.4.4 to Tornado 2.2.1, whose native compiler is gcc 2.96 ? I know that the gcc 3.4.4 is delivered as part of Workbench IDE with VxWorks 6.x and generally it is supported by WindRiver. If you tried and, hopefully, succeeded to integrate the compiler, please outline the procedure or, alternatively, point me to a resource explaining this issue. If you tried and not succeeded, please give me an indication - whether, in your opinion, it is possible at all. We have an application written under VxWorks 5.5.1 with Tornado 2.2.1 and now we trying to e...

RE: [tao-bugs] Compiling TAO1.4.4 with AIX5.2 and g++3.3.1 #2
Hi, > > I am not sure but I think I have seen this with VxWorks and > then we found > > this is a bug in the compiler. Could you try a newer > version of the GCC > > compiler. > > We don't have a newer GCC compiler at the moment, sorry. But > I will try > to convince our system administrator to install a newer. > But is this warning to take it seriously? > Nevertheless, TAO is working :-) I would advice to search on google, but what I remember we didn't take it seriously. Regards, Johnny Willemsen Remedy IT Leeghwaterstraat 25 2811 DT Reeuwijk The Netherlands www.theaceorb.nl / www.remedy.nl ...

ANN: ActivePython 2.6.2.2, 3.1.0b1.0, 2.5.4.4 is now available
I'm happy to announce that ActivePython 2.6.2.2, 3.1.0b1.0 and 2.5.4.4 are now available for download from: http://www.activestate.com/activepython/ This is a patch release that updates ActivePython to core Python 2.6.2 and 3.1b2. This release also contains updates to Tcl/Tk 8.5.7 and Tix 8.4.3. We recommend that you try 2.6 version first. See the release notes for full details: http://docs.activestate.com/activepython/2.6/relnotes.html What is ActivePython? --------------------- ActivePython is ActiveState's binary distribution of Python. Builds for Windows, Mac OS X,...

SQLObject 1.3.2 and 1.2.4
Hello! I'm pleased to announce versions 1.3 2 and 1.2.4, minor bugfix releases of SQLObject. What is SQLObject ================= SQLObject is an object-relational mapper. Your database tables are described as classes, and rows are instances of those classes. SQLObject is meant to be easy to use and quick to get started with. SQLObject supports a number of backends: MySQL, PostgreSQL, SQLite, Firebird, Sybase, MSSQL and MaxDB (also known as SAPDB). Where is SQLObject ================== Site: http://sqlobject.org Development: http://sqlobject.org/devel/ Mailing list: https://lists.sourceforge.net/mailman/listinfo/sqlobject-discuss Archives: http://news.gmane.org/gmane.comp.python.sqlobject Download: http://pypi.python.org/pypi/SQLObject/1.3.2 http://pypi.python.org/pypi/SQLObject/1.2.4 News and changes: http://sqlobject.org/News.html What's New ========== * Fixed a bug in sqlbuilder.Select.filter - removed comparison with SQLTrueClause. * Neil Muller fixed a number of tests. For a more complete list, please see the news: http://sqlobject.org/News.html Oleg. -- Oleg Broytman http://phdru.name/ phd@phdru.name Programmers don't die, they just GOSUB without RETURN. ...

vm 2.1/3.9/4/4.3/4.6 now cheap!!!
Hi, We are offering full functional voip billing software which is lates and all modules Is complete there. Deferent type�s of soft ware like-V (2.1-3.9-4.05-4.03-4.6) SM, MVTS, vps, ALEPO, PORTA ONE, and TALIKIN SIP etc also available with us. With voip related all kinds of fil with cheap price&100% workable guarantee. Here some futures of our software: Key features: I) High call capacity, II) Unlimited rate table, III) Real time monitoring& alerts IV) Multiple authentication methods, V) Advanced management of calling cards VI) Selection of call legs for billing purposes, VII) Comprehensive reporting VIII) Standard voice billing functional Billing and rating features: I) Ability to define call legs for billing purposes, II) Support for prepaid and postpaid billing models, III) Full support for radius billing signals, IV) Unlimited number of rate tables, V) Initial time, maintenance, and other charges per call, VI) Management of rating increments, VII) Management of rating increments, VIII) Management of call time and per call adjustments, IX) Automated import of provider rates CRM Features: I) Support for multiple languages on the CRM, II) Choice of multiple CRM templates III) History of successful/unsuccessful calls, IV) Enable/disable display of ANI/Caller ID on the CRM, V) Monthly statements to users via email VI) Email notifications to users when they register, VII) Purchase time, change password, etc Call...

HoldForm[1*2*3] should give 1 x 2 x 3 not 2 x 3
HoldForm[] is loosing the 1* when it apparently should not: In[1]:= HoldForm[1*2*3] Out[1]= 2 x 3 In[2]:= HoldForm[1*1*1] Out[2]= 1 x 1 x 1 In[3]:= HoldForm[3*2*1] Out[3]= 3 x 2 In[4]:= HoldForm[2*2*2] Out[4]= 2 x 2 x 2 In[5]:= HoldForm[2*1*3] Out[5]= 2 x 3 In[6]:= HoldForm[1*2] Out[6]= 1 x 2 In[7]:= HoldForm[1*2*1] Out[7]= 1 x 2 x 1 Q.E.D. Indeed, the same happens with Hold and HoldComplete. I'd say this is a bug. Cheers -- Sjoerd On Feb 25, 11:07 am, "Q.E.D." <a...@netzero.net> wrote: > HoldForm[] is loosing the 1* when it...

(??] [2/4]
begin 644 TEST2.txt 186YO=&AE<B!T97-T+BXN+BX` ` end Posted Via Usenet.com Premium Usenet Newsgroup Services ---------------------------------------------------------- ** SPEED ** RETENTION ** COMPLETION ** ANONYMITY ** ---------------------------------------------------------- http://www.usenet.com ...

(??] [3/4]
begin 644 Untitled.txt -2&5L;&\@5V]R;&0A(0`` ` end Posted Via Usenet.com Premium Usenet Newsgroup Services ---------------------------------------------------------- ** SPEED ** RETENTION ** COMPLETION ** ANONYMITY ** ---------------------------------------------------------- http://www.usenet.com ...

building GCC 3.3.2 or 3.2.3 on Unixware 7.1.1
Has anybody done this successfully? I'm running into problems with the C++ library. AFAICT, the compiler is built ok (bootstrapping all succeeds), but the C++ library chokes. It seems to mostly be complaining about the 'volatile' keyword in pthread.h. I'm using binutils, btw. The ccs based build fails to bootstrap for me. Best regards, Brent Brent Eagles wrote: > Has anybody done this successfully? > > I'm running into problems with the C++ library. AFAICT, the compiler is > built ok (bootstrapping all succeeds), but the C++ library...

[Slackware 9.1, GCC 3.2.3, wxGTK 2.4.2] Segment fault on db sample
When running the ODBC sample, I get a lovely error "Unable to open the parameter 'dbtest.cfg' for reading.", then it segfaults. Here's the back trace: /bin/sh -c /home/kaze/dbtest/debug/libtool gdb /home/kaze/dbtest/debug/src/dbtest -fullname -nx -quiet (gdb) set edit off (gdb) set confirm off (gdb) (gdb) (gdb) set print static-members off (gdb) tty /dev/pts/3 (gdb) set width 0 (gdb) set height 0 (gdb) set stop-on 1 (gdb) handle SIG32 pass nostop noprint (gdb) handle SIG43 pass nostop noprint (gdb) set print asm-demangle on (gdb) cd /home/kaze/dbtest/debug/src (gdb) run [New Thread 16384 (LWP 2300)] Stopped due to shared library event Current language: auto; currently c (gdb) continue [Switching to Thread 16384 (LWP 2300)] Stopped due to shared library event (gdb) continue Stopped due to shared library event (gdb) continue Stopped due to shared library event (gdb) continue Stopped due to shared library event (gdb) continue Stopped due to shared library event (gdb) continue Stopped due to shared library event (gdb) continue Stopped due to shared library event (gdb) continue Stopped due to shared library event (gdb) continue Stopped due to shared library event (gdb) continue Stopped due to shared library event (gdb) continue Program received signal SIGSEGV, Segmentation fault. 0x40716290 in _int_free () from /lib/libc.so.6 (gdb) info thread * 1 Thread 16384 (LWP 2300) 0x4071...

Web resources about - Possible to block mail from SMTPs whose IPs are in 12345678 form? (not 1.2.3.4 or host [1.2.3.4] ) - comp.mail.sendmail

U.S. indicts 7 Iranians for hacking dozens of banks, New York dam
(Reuters) – Seven Iranian hackers broke into computers of dozens of U.S. banks, causing millions of dollars in damages, and tried to shut down ...

Apple Announces Details of Its First Original TV Series
Complex Apple Announces Details of Its First Original TV Series Complex It wasn't that long ago we heard reports that Dr. Dre would be starring ...

Garry Shandling: American actor and comedian, The Larry Sanders Show star dies aged 66
Comedian, writer and actor Garry Shandling dies aged 66 after suffering an apparent heart attack.

Elizabeth Olsen Opens Up About Tom Hiddleston Dating Rumors
Tom Hiddleston waves to fans as he arrives at NBC Studios on Thursday (March 24) in New York City. The 35-year-old actor was stopping by the ...

How the internet manipulated Microsoft's AI chatbot into learning and repeating hate speech
Alex Kantrowitz / BuzzFeed : How the internet manipulated Microsoft's AI chatbot into learning and repeating hate speech — How The Internet Turned ...

Was Adam Johnson really given the right sentence?
Shamed footballer Adam Johnson was handed six years in jail after pleading guilty to sexual grooming and kissing a 15-year-old girl. But questions ...

It sounds like buying Nest has been a total disaster for Google
Back when Google bought Nest in 2014 , many people expected great things to come from the partnership. More than two years later, however, the ...

'Bogus Beggar' Pleads Guilty to Fraud Charges
A Kentucky man who claims to have made as much as $100,000 annually by panhandling while pretending to be disabled has pleaded guilty to similar ...

Microsoft may help finance Yahoo takeover amid board changes
Yahoo’s sale is moving slowly, but new money from Microsoft may help accelerate it. A new report from Kara Swisher in Re/code today said that ...

The Oculus Rift Has Finally Begun Shipping
It’s been four years since Oculus Rift fired up its first Kickstarter , but the long wait is nearly over: Rift headsets will start landing in ...

Resources last updated: 3/25/2016 6:26:11 AM