[26038] in Perl-Users-Digest

home help back first fref pref prev next nref lref last post

Perl-Users Digest, Issue: 8246 Volume: 10

daemon@ATHENA.MIT.EDU (Perl-Users Digest)
Wed Jul 13 06:05:35 2005

Date: Wed, 13 Jul 2005 03:05:05 -0700 (PDT)
From: Perl-Users Digest <Perl-Users-Request@ruby.OCE.ORST.EDU>
To: Perl-Users@ruby.OCE.ORST.EDU (Perl-Users Digest)

Perl-Users Digest           Wed, 13 Jul 2005     Volume: 10 Number: 8246

Today's topics:
        Are there any other GUI toolkits for perl than perl/Tk? <ngoc@yahoo.com>
    Re: Are there any other GUI toolkits for perl than perl <zen13097@zen.co.uk>
    Re: Earthquake Forecasting Program  July 11, 2005 <edgrsprj@ix.netcom.com>
    Re: Earthquake Forecasting Program  July 11, 2005 <horedson@earthlink.net>
    Re: Net::FTP problem (lain)
        Replace exactly match of a number <noaddress@nodomain.com>
    Re: Replace exactly match of a number <1usa@llenroc.ude.invalid>
    Re: Replace exactly match of a number <zen13097@zen.co.uk>
    Re: Win32::Process->Create, can't get right syntax <kevin@vaildc.net>
        Digest Administrivia (Last modified: 6 Apr 01) (Perl-Users-Digest Admin)

----------------------------------------------------------------------

Date: Wed, 13 Jul 2005 08:17:32 +0200
From: ngoc <ngoc@yahoo.com>
Subject: Are there any other GUI toolkits for perl than perl/Tk?
Message-Id: <42d4b1f6$1@news.broadpark.no>

Hi
There are some limitations of perl/Tk. I am Looking for other toolkits 
better than Tk.
Thanks
ngoc


------------------------------

Date: 13 Jul 2005 09:53:43 GMT
From: Dave Weaver <zen13097@zen.co.uk>
Subject: Re: Are there any other GUI toolkits for perl than perl/Tk?
Message-Id: <42d4e4a7$0$24082$db0fefd9@news.zen.co.uk>

On Wed, 13 Jul 2005 08:17:32 +0200, ngoc <ngoc@yahoo.com> wrote:
>  There are some limitations of perl/Tk. I am Looking for other toolkits 
>  better than Tk.

There's WxPerl:
    http://wxperl.sourceforge.net/

Whether or not its 'better' then Perl/Tk is up to you to decide.


------------------------------

Date: Tue, 12 Jul 2005 22:20:05 GMT
From: "edgrsprj" <edgrsprj@ix.netcom.com>
Subject: Re: Earthquake Forecasting Program  July 11, 2005
Message-Id: <pmXAe.9096$aY6.3897@newsread1.news.atl.earthlink.net>

"Hank Oredson" <horedson@earthlink.net> wrote in message
news:7%UAe.4148$BK1.174@newsread3.news.pas.earthlink.net...
> "edgrsprj" <edgrsprj@ix.netcom.com> wrote in message
> news:upBAe.1915$oZ.930@newsread2.news.atl.earthlink.net...
> > "edgrsprj" <edgrsprj@ix.netcom.com> wrote in message
> > news:D7qAe.21003$eM6.9503@newsread3.news.atl.earthlink.net...
> >> PROPOSED EARTHQUAKE FORECASTING
> >> COMPUTER PROGRAM DEVELOPMENT EFFORT

> What observational data are used?
> What are the sources of that observational data?
> How are those sources accessed?
> Is there a database to hold historical plus current data?
> If so, is it centralized or distributed?
>
> The project might be of interest if the data sources are
> rich enough, complete enough, and current enough.
>

July 12, 2005

Thanks for the response and questions.

The following are my personal opinions on this.

       Briefly, the amount of data available for this type of effort is
virtually limitless.  And more of those data than most people could even
deal with can be obtained for free.

You don't have to build a new laboratory filled with expensive equipment.

A reasonably powerful computer,
Access to the Internet,
At least some knowledge of science
Some computer programming ability
And a little imagination

Are all that are required.

       Researchers have been attempting to do this type of work for probably
as far back as we have historical records.  The reason that previous efforts
that I am aware of have not been successful is because two key discoveries
needed to be made.  They are referred to on my 90-05.html Web page as the
"Gravity Point" and "Earthquake Triggering Symmetry."  Now that those
discoveries have been made the door should be open to tremendously rapid
advances in our understanding of how and why earthquakes occur and how to
forecast them.

       Much of this research could be easily done by computer programmers.
You don't need to be a geophysicist.  If the data you are generating look
statistically significant then they are probably important whether or not
you actually understand the geophysical theories behind them.

       To actually forecast earthquakes using the procedure I have developed
you need both warning signal data and earthquake data along with some ocean
tide and Solid Earth Tide data.  But one of the really great parts of this
particular research project is the fact that many of the basic discoveries
can be made by simply comparing earthquakes with one another.  You don't
need any warning signal data at all.  And there is certainly no shortage of
earthquake data!

       At my Web site there is a discussion of a concept called "Earthquake
Pairs."  They are two or more earthquakes which were apparently triggered in
the same manner.  My data indicate that the two highly destructive 1998
earthquakes in Afghanistan would represent an Earthquake Pair.  And the two
highly destructive 1999 earthquakes in Turkey would represent another pair.
Important discoveries can be made by determining what the similarities are
between the two or more earthquakes in an Earthquake Pair and how they
differ from other earthquakes.  And since the group of earthquake warning
signals that I am presently working with is being controlled by the same
forces that are responsible for earthquake triggering, significant
discoveries regarding earthquake triggering processes could be immediately
applied to forecasting efforts.

       One of the reasons that geologists have not yet taken an interest in
this particular effort could be because it is heavily reliant on celestial
mechanics.  And most geology researchers appear to me to prefer to focus on
measuring forces within the ground.  I presently suspect that astronomers
would be a more likely group to take an interest in this science at first.
And I am planning to contact some of them about that.




------------------------------

Date: Tue, 12 Jul 2005 23:37:33 GMT
From: "Hank Oredson" <horedson@earthlink.net>
Subject: Re: Earthquake Forecasting Program  July 11, 2005
Message-Id: <1vYAe.2575$dU3.2553@newsread2.news.pas.earthlink.net>

"edgrsprj" <edgrsprj@ix.netcom.com> wrote in message 
news:pmXAe.9096$aY6.3897@newsread1.news.atl.earthlink.net...
> "Hank Oredson" <horedson@earthlink.net> wrote in message
> news:7%UAe.4148$BK1.174@newsread3.news.pas.earthlink.net...
>> "edgrsprj" <edgrsprj@ix.netcom.com> wrote in message
>> news:upBAe.1915$oZ.930@newsread2.news.atl.earthlink.net...
>> > "edgrsprj" <edgrsprj@ix.netcom.com> wrote in message
>> > news:D7qAe.21003$eM6.9503@newsread3.news.atl.earthlink.net...
>> >> PROPOSED EARTHQUAKE FORECASTING
>> >> COMPUTER PROGRAM DEVELOPMENT EFFORT
>
>> What observational data are used?
>> What are the sources of that observational data?
>> How are those sources accessed?
>> Is there a database to hold historical plus current data?
>> If so, is it centralized or distributed?
>>
>> The project might be of interest if the data sources are
>> rich enough, complete enough, and current enough.
>>
>
> July 12, 2005
>
> Thanks for the response and questions.
>
> The following are my personal opinions on this.
>
>       Briefly, the amount of data available for this type of effort is
> virtually limitless.  And more of those data than most people could even
> deal with can be obtained for free.

I guess my question was not specific enough.
What I wanted was the exact sources, so I could access the data.
The exact data sets you used.

> You don't have to build a new laboratory filled with expensive equipment.
>
> A reasonably powerful computer,
> Access to the Internet,
> At least some knowledge of science
> Some computer programming ability
> And a little imagination

I'm a retired physicist with a great deal of experience in data
transformation, verification and analysis. Also plenty of computers.
Fast internet connection.

> Are all that are required.

I have all those things.

>       Researchers have been attempting to do this type of work for 
> probably
> as far back as we have historical records.  The reason that previous 
> efforts
> that I am aware of have not been successful is because two key discoveries
> needed to be made.  They are referred to on my 90-05.html Web page as the
> "Gravity Point" and "Earthquake Triggering Symmetry."  Now that those
> discoveries have been made the door should be open to tremendously rapid
> advances in our understanding of how and why earthquakes occur and how to
> forecast them.

References please, I found some simple description, but no
mathematics or references to the data sets used or the equations
you used to do your analysis. Point me to that stuff.

>       Much of this research could be easily done by computer programmers.
> You don't need to be a geophysicist.  If the data you are generating look
> statistically significant then they are probably important whether or not
> you actually understand the geophysical theories behind them.

No problem understanding the physics (geo or otherwise).
No problem writing software to do the analyses.
Might even be fun.

>       To actually forecast earthquakes using the procedure I have 
> developed
> you need both warning signal data and earthquake data along with some 
> ocean
> tide and Solid Earth Tide data.  But one of the really great parts of this
> particular research project is the fact that many of the basic discoveries
> can be made by simply comparing earthquakes with one another.  You don't
> need any warning signal data at all.  And there is certainly no shortage 
> of
> earthquake data!

Yes, I understand all that.
Where are the data sets?
Where is the description of the "procedure"?
URLs would be nice, journal article references are ok.

>       At my Web site there is a discussion of a concept called "Earthquake
> Pairs."  They are two or more earthquakes which were apparently triggered 
> in
> the same manner.  My data indicate that the two highly destructive 1998
> earthquakes in Afghanistan would represent an Earthquake Pair.  And the 
> two
> highly destructive 1999 earthquakes in Turkey would represent another 
> pair.
> Important discoveries can be made by determining what the similarities are
> between the two or more earthquakes in an Earthquake Pair and how they
> differ from other earthquakes.  And since the group of earthquake warning
> signals that I am presently working with is being controlled by the same
> forces that are responsible for earthquake triggering, significant
> discoveries regarding earthquake triggering processes could be immediately
> applied to forecasting efforts.

I would rather do my own data analysis, but for me to do that
there must be published data sets, that I can use.
Doing the various coorelations, power spectra, convolutions is easy.
So what is needed is the data sets, and the specific things you think
make prediction possible. Then I can test those things, along with
others that I might find interesting.

>       One of the reasons that geologists have not yet taken an interest in
> this particular effort could be because it is heavily reliant on celestial
> mechanics.  And most geology researchers appear to me to prefer to focus 
> on
> measuring forces within the ground.  I presently suspect that astronomers
> would be a more likely group to take an interest in this science at first.
> And I am planning to contact some of them about that.

So point me to the equations then.
Doing some analysis sounds like fun.
Celestial mechanics is no problem, easy stuff.
There is a copy of Bowditch on the shelf over there.
I know a good astrologer. Also several astronomers.
But which exact data sets did you use?

-- 

  ... Hank

http://home.earthlink.net/~horedson
http://home.earthlink.net/~w0rli




------------------------------

Date: 12 Jul 2005 21:28:24 -0700
From: volantecho@gmail.com (lain)
Subject: Re: Net::FTP problem
Message-Id: <d5329f0a.0507122028.425b2cf1@posting.google.com>

volantecho@gmail.com (lain) wrote in message news:<d5329f0a.0507092112.2ef31899@posting.google.com>...
> John Mason Jr <notvalid@cox.net.invalid> wrote in message news:<11cun4a2g9kqn7f@news.supernews.com>...
> > lain wrote:
> > > Hi all,
> > > 
> > > I have big trouble on Net::FTP, could you please give me some idea??
> > > 
> > > My ftp server is on Win2K Prof, IIS.
> > > 
> > > First, I tried ftp on my linux server , it works fine.
> > > 
> > > Then I created a cgi script, run the script manually on linux server,
> > > to get the file from that Win2K and put on my linux server, it works
> > > fine too.
> > > 
> > > However, while i was on my php web system, submit the php POST to the
> > > cgi-script, it show me the internal error.
> > > I go to error log, it shows me the error:
> > >     cant open the file, permission denied.
> > > 
> > > I really do not know what's wrong, is it my ftp problem? coding
> > > problem or network prob??
> > > 
> > > 1. i have set the full permission on ftp folder in win2k.
> > > 2. chmod 777 on my cgi-script
> > > 3. the ftp folder located in C://inetpub/ftproot/test (created as
> > > virtual directory)
> > > 
> > > any suggestions, comments, helps are all welcomed.
> > > I'm going to try an alternative to do the task.
> > > 
> > > Thanks a lot!!
> > 
> > 
> > Make sure your directory listing style is Unix not MS-DOS on the IIS FTP
> > server
> > 
> > 
> > John
> 
> 
> Hi John,
> 
> That's correct, the directory listing was MS-DOS on my FTP server.
> Then I changed to Unix, but it doesnt work...still the same error
> message : permission denied T_T
> Do you have ny other idea??

Hi all,

I'd solved the problem already!! 
I would like to answer here in case somebody else need the reference
in future, as me, I searched many similar topic but without the proper
answer!!
Maybe there got something else can solve it out, but this is my
solution :

First, the reason I got the 'permission denied' while i run my cgi
script on the browser is because I act as end user, not the root as
well.

Read from the Net/FTP.pm, when you get the file, it would store the
file in the current directory,in case if you haven't specified the
location. Therefore it would store in the cgi-bin folder, and do you
think it is possible?? :D (MUST read the module file properly, while i
havent read detail b4 :P)

So I'd made this : 

1. create a folder in public_html, lets say 'temp' (havent tried out
if can store the file besides public_html, but i think possibly can)
2. chmod 777 temp ( i m not that sure if 755 is enough)

my code:
$ftp->get("file1.txt", "/home/server/public_html/temp/file1.txt");

before i was trying to locate it as "../public_html/temp", but it is
really bad idea!

simple right??

Anyway, i do believe there got better solution out there. If you do
have any comments and anything else, please share with me :)


------------------------------

Date: Tue, 12 Jul 2005 22:11:04 -0500
From: "Tambaa Hapa" <noaddress@nodomain.com>
Subject: Replace exactly match of a number
Message-Id: <db20oa$68$1@home.itg.ti.com>


I am trying to replace a number with some string. For example, replace &1
with hello. However using s/&$num/hello/g where $num = 1 also replaces &10
to hello0. Anyone have any ideas on how to do this?

Thanks in advance
TH




------------------------------

Date: Wed, 13 Jul 2005 03:59:47 GMT
From: "A. Sinan Unur" <1usa@llenroc.ude.invalid>
Subject: Re: Replace exactly match of a number
Message-Id: <Xns9691F41AEBB9Aasu1cornelledu@127.0.0.1>

"Tambaa Hapa" <noaddress@nodomain.com> wrote in
news:db20oa$68$1@home.itg.ti.com: 

> I am trying to replace a number with some string. For example, replace
> &1 with hello. However using s/&$num/hello/g where $num = 1 also
> replaces &10 to hello0. Anyone have any ideas on how to do this?

Isn't it a little too tedious to write your own templating system?

-- 
A. Sinan Unur <1usa@llenroc.ude.invalid>
(reverse each component and remove .invalid for email address)

comp.lang.perl.misc guidelines on the WWW:
http://mail.augustmail.com/~tadmc/clpmisc/clpmisc_guidelines.html


------------------------------

Date: 13 Jul 2005 09:37:12 GMT
From: Dave Weaver <zen13097@zen.co.uk>
Subject: Re: Replace exactly match of a number
Message-Id: <42d4e0c8$0$24082$db0fefd9@news.zen.co.uk>

Tambaa Hapa <noaddress@nodomain.com> wrote:
>  I am trying to replace a number with some string. For example, replace &1
>  with hello. However using s/&$num/hello/g where $num = 1 also replaces &10
>  to hello0. Anyone have any ideas on how to do this?

s/&$num(?!\d)/hello/g;

see "perldoc perlre" for details.




------------------------------

Date: Wed, 13 Jul 2005 04:26:26 GMT
From: Kevin Michael Vail <kevin@vaildc.net>
Subject: Re: Win32::Process->Create, can't get right syntax
Message-Id: <kevin-308D39.00262713072005@news.verizon.net>

In article <8hUAe.60179$Ph4.1777077@ursa-nb00s0.nbnet.nb.ca>,
 "Shea Martin" <sheam@hb-studios.com> wrote:

> I have the following line in my code:
> 
>  Win32::Process->Create($proc, "C:\\WINDOWS\\system32\\notepad.exe",
>            'nodepad text.txt', 1, DETACHED_PROCESS, "." );
> 
> It keeps generating the following error:
> 
> Usage: Win32::Process::Create(cP, appname, cmdline, inherit, flags, curdir) 
> at D
> :\my\path\test.pm line 535.
> 
> 
> Any ideas?

I've gotten this to work before.  Is it Win32::Process->Create or 
Win32::Process::Create?  Look in the POD to see how it's done there, but 
the usage message kind of implies that Create is not a method call.
-- 
boss, sometimes i think           |  kevin michael vail
that our friend mehitabel         |  kevin@vaildc.net
is a trifle too gay               |
        -- archy                  |  wotthehell wotthehell


------------------------------

Date: 6 Apr 2001 21:33:47 GMT (Last modified)
From: Perl-Users-Request@ruby.oce.orst.edu (Perl-Users-Digest Admin) 
Subject: Digest Administrivia (Last modified: 6 Apr 01)
Message-Id: <null>


Administrivia:

#The Perl-Users Digest is a retransmission of the USENET newsgroup
#comp.lang.perl.misc.  For subscription or unsubscription requests, send
#the single line:
#
#	subscribe perl-users
#or:
#	unsubscribe perl-users
#
#to almanac@ruby.oce.orst.edu.  

NOTE: due to the current flood of worm email banging on ruby, the smtp
server on ruby has been shut off until further notice. 

To submit articles to comp.lang.perl.announce, send your article to
clpa@perl.com.

#To request back copies (available for a week or so), send your request
#to almanac@ruby.oce.orst.edu with the command "send perl-users x.y",
#where x is the volume number and y is the issue number.

#For other requests pertaining to the digest, send mail to
#perl-users-request@ruby.oce.orst.edu. Do not waste your time or mine
#sending perl questions to the -request address, I don't have time to
#answer them even if I did know the answer.


------------------------------
End of Perl-Users Digest V10 Issue 8246
***************************************


home help back first fref pref prev next nref lref last post