ftnpl-develop Mailing List for Perl for FTN Systems (Page 3)
Brought to you by:
jame
You can subscribe to this list here.
| 2001 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
(51) |
Sep
(33) |
Oct
(27) |
Nov
(3) |
Dec
(2) |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 2002 |
Jan
|
Feb
|
Mar
(8) |
Apr
|
May
|
Jun
|
Jul
|
Aug
(6) |
Sep
|
Oct
|
Nov
|
Dec
|
|
From: Robert C. <JC...@te...> - 2001-09-24 12:49:12
|
Russ,
As it turned out, I didn't have a chance to really look at that =
subroutine (findhighmsg) this weekend. And either my ISP's DNS or mail =
servers are down, because I couldn't get to he mail server (or news =
server), which was a major pain.. (The connection was down altogether =
for awhile...)=20
>>> Russ Johnson <ru...@di...> 09/21/01 01:15PM >>>
I'm considering simplifying that particular script.. Had a muse visit =
me=20
last night in bed.
I'll stay off of it for a few days. Let me know when you're done.
|
|
From: Russ J. <ru...@di...> - 2001-09-21 18:57:52
|
Yes, that's it exactly. The one less part is to take into account the link to the index. At 01:43 PM 9/21/2001 -0400, you wrote: > Am I correct in thinking that what it returns is either the current > highest msg number; or in the case of html files, one less than the > current highest msg number? And that "$areas" is a hash, keyed by the > echo area name & holding the current highest msg number? Russ Johnson Stargate Online http://www.dimstar.net telnet://telnet.dimstar.net ICQ: 3739685 |
|
From: Russ J. <ru...@di...> - 2001-09-21 17:15:36
|
I'm considering simplifying that particular script.. Had a muse visit me last night in bed. I'll stay off of it for a few days. Let me know when you're done. At 12:31 PM 9/21/2001 -0400, Robert Clay wrote: >Russ, > > I found some example code for doing numerical sorts on an array > containing numeric values; unless you're already working on something > for this, I'll be working on this. Just in the "findhighmsg" > subroutine, btw, as I think that should be tweaked before anything else > is looked at... Russ Johnson Stargate Online http://www.dimstar.net telnet://telnet.dimstar.net ICQ: 3739685 |
|
From: Robert C. <JC...@te...> - 2001-09-21 16:35:50
|
Russ,
I found some example code for doing numerical sorts on an array =
containing numeric values; unless you're already working on something =
for this, I'll be working on this. Just in the "findhighmsg" subroutine, =
btw, as I think that should be tweaked before anything else is looked =
at...
Jame
>>> "Robert Clay" <JC...@te...> 09/20/01 01:29PM >>>
And I agree that part of the problem is how that "findhighmsg" =
subroutine is running; I don't think it's really finding the highest =
numbered file name... For tossing, that's all it needs to be able to =
do; find the actual highest numbered filename there, & start with the =
next highest after that. And it shouldn't care about gaps in the =
numbering... Perhaps a reverse sort of some sort that would put the =
highest number in the first entry of an array? (Hmm... How easy is it =
to do a actual numerical sort?) Or is there perhaps already available =
some kind of Max function that could find the largest number in a set of =
numbers?
|
|
From: Robert C. <JC...@te...> - 2001-09-20 17:33:20
|
Russ,
I'll admit that I do consider pkt2txt pretty much done for now; =
except for the maintenance side of things... I think some kind of =
maintenance needs to be available; either as function(s) in pkt2txt.pl =
or as a separate script that is distributed along with it...
And I agree that part of the problem is how that "findhighmsg" =
subroutine is running; I don't think it's really finding the highest =
numbered file name... =20
For tossing, that's all it needs to be able to do; find the actual =
highest numbered filename there, & start with the next highest after that. =
And it shouldn't care about gaps in the numbering... Perhaps a reverse =
sort of some sort that would put the highest number in the first entry of =
an array? (Hmm... How easy is it to do a actual numerical sort?) Or =
is there perhaps already available some kind of Max function that could =
find the largest number in a set of numbers?
Then could also have some kind of simple deletes by date and/or number =
of existing msgs, along with some kind of re-numbering routine...=20
>>> Russ Johnson <ru...@di...> 09/15/01 11:26PM >>>
The problems I'm running into are several. The biggest of which is=20
maintenance. If I set up a limit to the number of messages, much depends =
on how the OS reads the directory from the drive, and how the entries =
are=20
sorted. In addition, this is causing problems with tossing messages,=20
because once some messages are deleted, it reuses those entries, so the=20
high message routine always finds the same message as the high message.
|
|
From: Robert C. <JC...@te...> - 2001-09-20 17:21:02
|
Russ,
It's not a question of "heading in the wrong direction"; it's more =
one of what is being worked on at any one particular time... Although I =
will admit, you've taken pkt2txt further than I originally expected...<g>
>>> Russ Johnson <ru...@di...> 09/15/01 11:26PM >>>
I think we might be heading in the wrong direction.=20
While these problems can be overcome, I think we need to figure out if=20
that's actually a direction we want to go,=20
|
|
From: Robert C. <JC...@te...> - 2001-09-17 18:43:57
|
>>> Russ Johnson <ru...@di...> 09/15/01 11:26PM >>>
>In addition, this is causing problems with tossing messages,
>because once some messages are deleted, it reuses those entries,
Then it must not really be finding the highest numbered message =
file...<g>
All that the tossing part of it should worry about is what is the =
highest numbered message file; & it then starts with the next one after =
that. There's got to be a way to figure that properly; so that it =
doesn't care what might not be there, only what the highest numbered =
filename might be...
> so the high message routine always finds
> the same message as the high message.
I had been wondering about that, because I seem to recall deleteing =
some older files before tossing & it didn't seem to work properly; but =
hadn't really had a chance to look at how the high numbered filename was =
being done .... How are you expecting that "findhighmsg" subroutine to =
work? I was just looking at it (haveing the cvs browsable is so =
useful...<g>), & I'm not sure just what's going on in that subroutine...
Jame
|
|
From: Robert C. <JC...@te...> - 2001-09-17 18:31:21
|
Russ, >>> Russ Johnson <ru...@di...> 09/15/01 11:26PM >>> >..., I think we need to figure out if that's actually a direction we want = to go,=20 >or if we want to pursue the mySQL stuff. Eh? As I've mentioned before, I did get a start on that; see the = bbsdbpl package. It's at a testing stage now, which I haven't had a = chance to really do much of... Jame |
|
From: Russ J. <ru...@di...> - 2001-09-16 03:26:37
|
I think we might be heading in the wrong direction. Rather than spend a week on problems I'm coming up with for the current method, I think we should go back to the original idea of pumping these messages into mySQL. The code to split the message into variables is solid. I just need to know how to write to the db. The problems I'm running into are several. The biggest of which is maintenance. If I set up a limit to the number of messages, much depends on how the OS reads the directory from the drive, and how the entries are sorted. In addition, this is causing problems with tossing messages, because once some messages are deleted, it reuses those entries, so the high message routine always finds the same message as the high message. While these problems can be overcome, I think we need to figure out if that's actually a direction we want to go, or if we want to pursue the mySQL stuff. Russ Johnson Stargate Online http://www.dimstar.net telnet://telnet.dimstar.net ICQ: 3739685 |
|
From: Russ J. <ru...@di...> - 2001-09-06 00:16:57
|
I think the messages are /supposed/ to be addressed to my node number, from my uplink. That way, I can do validation checking on the messages, and only toss messages to a valid node number (yet another feature that I don't have written yet.) You are correct that the tossing routine skips the packet header. There's probably something to be done there too. Russ Johnson Stargate Online http://www.dimstar.net telnet://telnet.dimstar.net ICQ: 3739685 |
|
From: Russ J. <ru...@di...> - 2001-09-03 18:44:24
|
Yeah, I'll need to figure out what to do in a Windows environment. That should work on just about any .*nix environment. At 12:23 PM 9/3/2001 -0400, you wrote: >Russ, > > > I was thinking about this, and I believe I can make a link to the area >list > > when a message is created, and just overwrite the link when the next > > message is tossed. > > Ah, I see what you mean; not very portable (which may not be much of an >issue for now), but it certainly works and that's what counts for now... > > >Jame > > > >_______________________________________________ >Ftnpl-develop mailing list >Ftn...@li... >https://lists.sourceforge.net/lists/listinfo/ftnpl-develop Russ Johnson Stargate Online http://www.dimstar.net telnet://telnet.dimstar.net ICQ: 3739685 |
|
From: Robert J. C. <rj...@ho...> - 2001-09-03 16:25:10
|
Russ, > I was thinking about this, and I believe I can make a link to the area list > when a message is created, and just overwrite the link when the next > message is tossed. Ah, I see what you mean; not very portable (which may not be much of an issue for now), but it certainly works and that's what counts for now... Jame |
|
From: Robert J. C. <rj...@ho...> - 2001-09-02 22:08:24
|
Russ, > It's probably not a big change to fix this, but I have to figure out where > the message node numbers are stored, rather than the packets node numbers. Well, that's what has me confused a bit 'cause I thought the packet header was being skipped over altogether... 'Course, it could be that the original origin & destination node info is getting lost along the way; at least, out of the packets... Jame |
|
From: Robert J. C. <rj...@ho...> - 2001-09-02 21:57:53
|
Russ,
> That was just adding a space in the template. I didn't want to cause it to
> increment the version number for that...
Oh, I agree; was just wondering if you'd already caught it... The
actual fix for it can be just part of whenever you do the next update (or
import) to the cvs...
Jame
|
|
From: Russ J. <ru...@di...> - 2001-09-02 18:28:45
|
That was just adding a space in the template. I didn't want to cause it to increment the version number for that... At 12:23 PM 9/2/2001 -0400, Robert J. Clay wrote: >Russ, > > > I made more changes to pkt2txt. It now creates a sorted area list, > > Have you already made changes that you haven't yet posted back to cvs? >Reason I ask is that I notice that in the version of the main index page >that's getting created here, there is no space between the link to the msg >area & the description of the area; but on your current online version of >the main index, there is such spaceing... > > >Jame > > > > >_______________________________________________ >Ftnpl-develop mailing list >Ftn...@li... >https://lists.sourceforge.net/lists/listinfo/ftnpl-develop Russ Johnson Stargate Online http://www.dimstar.net telnet://telnet.dimstar.net ICQ: 3739685 |
|
From: Russ J. <ru...@di...> - 2001-09-02 18:26:24
|
I noticed that too. Just haven't looked at it. But then, I can't make areas in the bug tracking system yet. :) I wanted to enter it as a bug, but we need to create some areas (and possibly sub areas) in there first. It's probably not a big change to fix this, but I have to figure out where the message node numbers are stored, rather than the packets node numbers. At 12:07 PM 9/2/2001 -0400, Robert J. Clay wrote: >Russ, > > This is in regard to the actual reading of packets, I think... >(pkt2txt, or also pkt2html)... > > > I have it set up for testing now, although I still need to decide how >to > > add it to the apache configs... > > As I mentioned, I finally got around to adding the html bbs message >areas to the apache config; had been reading the html pages using lynx, >which is what mc calls for html pages... > Don't how long it's been there or what's causeing it, but now that I'm >viewing the pages from a gui browser I noticed that the node numbers in the >To: and From: lines seem to be the same node numbers... In fact, they >seem to be the To/From node numbers for the packets, rather than the To/From >node numbers in the messages... > > I thought at first that it might be an artifact of my system somewhere; >but I checked your online version & noticed the same issue. And I checked >my 1:120/545 node again; that node uses the husky utilities & msged, & the >messages there shows up with what seems to be much more reasonable From node >numbers in the messages.... > > Not a major issue, perhaps, but it does need to be looked at... > > > >Jame > > > > > > >_______________________________________________ >Ftnpl-develop mailing list >Ftn...@li... >https://lists.sourceforge.net/lists/listinfo/ftnpl-develop Russ Johnson Stargate Online http://www.dimstar.net telnet://telnet.dimstar.net ICQ: 3739685 |
|
From: Russ J. <ru...@di...> - 2001-09-02 18:22:42
|
Yeah, what I'm trying to do is make things as generic as possible for now. So that others may customize to their liking. When I get closer to a fully functional system, I'll set up another test system that's customized and looks more like the rest of my site. At 11:47 AM 9/2/2001 -0400, Robert J. Clay wrote: >Russ, > > > > > I have pkt2txt tossing web pages at http://www.dimstar.net/msg/. Take a > > look. It's a very simple interface at the moment, but I'm going to start > > working on indexes tonight. > > I've now done much the same thing, except that I'm using "hbbs" as the >path instead of "msg" like you're doing... > > >Jame > > > > >_______________________________________________ >Ftnpl-develop mailing list >Ftn...@li... >https://lists.sourceforge.net/lists/listinfo/ftnpl-develop Russ Johnson Stargate Online http://www.dimstar.net telnet://telnet.dimstar.net ICQ: 3739685 |
|
From: Russ J. <ru...@di...> - 2001-09-02 18:20:43
|
I was thinking about this, and I believe I can make a link to the area list when a message is created, and just overwrite the link when the next message is tossed. That should accomplish what I want there. At 11:21 AM 9/2/2001 -0400, you wrote: >Russ, > > > I also need some suggestion on how to gracefully handle the last message. > > It's ugly when you hit the "next" link on the last message. > > I figure the link itself in that last message could just be the same as >the one for the area list; thing is, I'm not so sure that determining >which is the last message can be done within the tosser... > > >Jame > > > > >_______________________________________________ >Ftnpl-develop mailing list >Ftn...@li... >https://lists.sourceforge.net/lists/listinfo/ftnpl-develop Russ Johnson Stargate Online http://www.dimstar.net telnet://telnet.dimstar.net ICQ: 3739685 |
|
From: Robert J. C. <rj...@ho...> - 2001-09-02 16:24:57
|
Russ,
> I made more changes to pkt2txt. It now creates a sorted area list,
Have you already made changes that you haven't yet posted back to cvs?
Reason I ask is that I notice that in the version of the main index page
that's getting created here, there is no space between the link to the msg
area & the description of the area; but on your current online version of
the main index, there is such spaceing...
Jame
|
|
From: Robert J. C. <rj...@ho...> - 2001-09-02 16:09:36
|
Russ,
This is in regard to the actual reading of packets, I think...
(pkt2txt, or also pkt2html)...
> I have it set up for testing now, although I still need to decide how
to
> add it to the apache configs...
As I mentioned, I finally got around to adding the html bbs message
areas to the apache config; had been reading the html pages using lynx,
which is what mc calls for html pages...
Don't how long it's been there or what's causeing it, but now that I'm
viewing the pages from a gui browser I noticed that the node numbers in the
To: and From: lines seem to be the same node numbers... In fact, they
seem to be the To/From node numbers for the packets, rather than the To/From
node numbers in the messages...
I thought at first that it might be an artifact of my system somewhere;
but I checked your online version & noticed the same issue. And I checked
my 1:120/545 node again; that node uses the husky utilities & msged, & the
messages there shows up with what seems to be much more reasonable From node
numbers in the messages....
Not a major issue, perhaps, but it does need to be looked at...
Jame
|
|
From: Robert J. C. <rj...@ho...> - 2001-09-02 15:49:08
|
Russ, > > I have pkt2txt tossing web pages at http://www.dimstar.net/msg/. Take a > look. It's a very simple interface at the moment, but I'm going to start > working on indexes tonight. I've now done much the same thing, except that I'm using "hbbs" as the path instead of "msg" like you're doing... Jame |
|
From: Robert J. C. <rj...@ho...> - 2001-09-02 15:23:46
|
Russ, > I also need some suggestion on how to gracefully handle the last message. > It's ugly when you hit the "next" link on the last message. I figure the link itself in that last message could just be the same as the one for the area list; thing is, I'm not so sure that determining which is the last message can be done within the tosser... Jame |
|
From: Robert J. C. <rj...@ho...> - 2001-09-02 13:51:51
|
Russ,
> I made more changes to pkt2txt. It now creates a sorted area list, and the
> pages have links to the previous and next message, as well as the message
> list and the area list. I think I'll need to rename this thing. It's not
> just making text files. :)
I agree there are great possibiltitys; but what needs to be done is
to split it, rather than simply rename it... Because I think pkt2txt.pl
still has possibilities by itself; but I also agree that what seems to be
an html bbs has large possibilities also.
So, pkt2txt gets's split to two different packages; pkt2txt continues
on by itself, & the other package becomes the new package htmlbbs, or
something like that...
It would be fairly easy to get it started too. Either copy over your
existing pkt2txt working directory to another directory without that CVS
subdirectory, or simply remove that CVS subdirectory from it. Rename the
pkt2txt* files to something like pkt2html* files, since this version of it
will emphasize the html output. Then update the contents of the other
files as neccessary, referenceing the new name and/or purpose...
Then you do an initial import of it, to scripts/htmlbbs, to start the
new package off. Then do a checkout of that, & continue on under the new
package name...
Jame
|
|
From: Russ J. <ru...@di...> - 2001-09-02 07:48:48
|
I made more changes to pkt2txt. It now creates a sorted area list, and the pages have links to the previous and next message, as well as the message list and the area list. I think I'll need to rename this thing. It's not just making text files. :) I also need some suggestion on how to gracefully handle the last message. It's ugly when you hit the "next" link on the last message. I'm also thinking about the maintenance end of things. I'm thinking we should set a configurable maximum number of messages in an area. While tossing, it's not hard to get rid of old messages. The hard part will be removing the line from the index.html file. I want to start on that part, but I haven't puzzled out how it will work. Another thing to puzzle over is entering new messages. I was thinking new messages should be written to a packet, and then tossed during the next run. Making the packet should mostly be done for us, in the other perl source we have. I only want authenticated users to be able to post, however, apache should be able to handle that. I suppose that too should be configurable. I do not, however, want to make it too easy to pollute fido with crap. :) Russ Johnson Stargate Online http://www.dimstar.net telnet://telnet.dimstar.net ICQ: 3739685 |
|
From: Robert J. C. <rj...@ho...> - 2001-09-01 15:05:18
|
Russ,
> I actually have this tossing on the same machine that BBBS is running on.
As do I at the moment, although I'd rather have BBBS running on a
dedicated machine...
Btw, haven't had a chance to check either the original BBBS related
script, or the 'new' ones you added to the repository. I will eventually
<g>, but haven't decided yet on how I want to do it...
Jame
|