-
GETSTR
From
Willowolf@VERT/WOLFGROT to
All on Sat Jan 12 18:07:00 2002
I have been writing some Baja modules for my BBS, and I have had a lot ofãluck with it so far. I have been able to do everything as I have wanted exceptãfor one thing.ãã I would like to be able to get a string using GETSTR or GETLINE, and beãable to print out the STR with the added empty characters afterwards as well asãspaces. For example:ãã GETSTR 40ã PRINT STRãã But, when the STR is printed, have it output all 40 characters, even ifãall aren't used. Is there a way to do this in Baja? So, instead of:ããname - comment - timeãname two - comment - timeãname three - comment - timeããI would have:ããname - comment - timeãname two - comment - timeãname three - comment - timeãã I would like it to lign up nicely and not be left up to the length of theãSTR entered.ããThanks,ã\\/ãã---ã þ Synchronet þ Wolf Grotto = Las Vegas, Nevada USA = wolfgrotto.darktech.orgã
-
From
Amcleod@VERT to
Willowolf on Wed Jan 16 09:23:48 2002
RE: GETSTRãBY: Willowolf to All on Sun Jan 13 2002 02:07 amãã > I would like to be able to get a string using GETSTR or GETLINE, and beã > able to print out the STR with the added empty characters afterwards as wellã > spaces. For example:ã > ã > GETSTR 40ã > PRINT STRã > ã > But, when the STR is printed, have it output all 40 characters, even ifã > all aren't used. Is there a way to do this in Baja? So, instead of:ããUse PRINTF instead of PRINT and you should not have any troubles.ã---ã þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.netã
-
From
Digital Man@VERT to
Willowolf on Wed Jan 16 18:46:57 2002
RE: GETSTRãBY: Willowolf to All on Sun Jan 13 2002 02:07 amãã > I have been writing some Baja modules for my BBS, and I have had a lot oã > luck with it so far. I have been able to do everything as I have wanted excã > for one thing.ã > ã > I would like to be able to get a string using GETSTR or GETLINE, and beã > able to print out the STR with the added empty characters afterwards as wellã > spaces. For example:ã > ã > GETSTR 40ã > PRINT STRã > ã > But, when the STR is printed, have it output all 40 characters, even ifã > all aren't used. Is there a way to do this in Baja? So, instead of:ããprintf "%40s" strãã-Robã---ã þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.netã
-
From
Willowolf@VERT/WOLFGROT to
Digital Man on Wed Jan 16 23:00:00 2002
[Reply to]: GETSTRã[Typed by]: Digital Man to Willowolf on Thu Jan 17 2002ã 02:46 amãã > > But, when the STR is printed, have it output all 40 characters, evenã > > all aren't used. Is there a way to do this in Baja? So, instead of:ã > ã > printf "%40s" strã > ã > -RobããI knew there was a way! Thanks again Rob!ããThis works good, but it prints out the string after the spaces like so:ãã Name One - comment - hoursã Name Two - second comment - hoursã Name Three - third comment - hoursããThe '-' being the beginning of the next string.ããIs there a way to have it print before the left over spaces liks so?:ããName One - comment - hoursãName Two - second comment - hoursãName Three - third comment - hoursããThanks,ã\\/ãã---ã þ Synchronet þ Wolf Grotto = Las Vegas, Nevada USA = wolfgrotto.darktech.orgã
-
From
Digital Man@VERT to
Willowolf on Thu Jan 17 04:27:05 2002
RE: GETSTRãBY: Willowolf to Digital Man on Thu Jan 17 2002 07:00 amãã > [Reply to]: GETSTRã > [Typed by]: Digital Man to Willowolf on Thu Jan 17 2002ã > 02:46 amã > ã > > > But, when the STR is printed, have it output all 40 characters, eã > > > all aren't used. Is there a way to do this in Baja? So, instead of:ã > >ã > > printf "%40s" strã > >ã > > -Robã > ã > I knew there was a way! Thanks again Rob!ã > ã > This works good, but it prints out the string after the spaces like so:ã > ã > Name One - comment - hoursã > Name Two - second comment - hoursã > Name Three - third comment - hoursã > ã > The '-' being the beginning of the next string.ã > ã > Is there a way to have it print before the left over spaces liks so?:ã > ã > Name One - comment - hoursã > Name Two - second comment - hoursã > Name Three - third comment - hoursããprintf "%-40s" strãã-Robã---ã þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.netã
-
From
Amcleod@VERT to
Willowolf on Thu Jan 17 10:40:05 2002
RE: GETSTRãBY: Willowolf to Digital Man on Thu Jan 17 2002 07:00 amãã > > printf "%40s" strã > ã > This works good, but it prints out the string after the spaces like so:ã > ã > Is there a way to have it print before the left over spaces liks so?:ãã PRINTF "%-40s" strããYou might wanna try reading the docu.....ã---ã þ Synchronet þ Vertrauen þ Home of Synchronet þ
[vert/cvs/bbs].synchro.netã
-
From
Willowolf@VERT/WOLFGROT to
Digital Man on Thu Jan 17 17:55:00 2002
[Reply to]: GETSTRã[Typed by]: Digital Man to Willowolf on Thu Jan 17 2002 12:27 pmãã > > The '-' being the beginning of the next string.ã > >ã > > Is there a way to have it print before the left over spaces liks so?:ã > >ã > > Name One - comment - hoursã > > Name Two - second comment - hoursã > > Name Three - third comment - hoursã > ã > printf "%-40s" strã > ã > -RobããRight on! :)ããã---ã þ Synchronet þ Wolf Grotto = Las Vegas, Nevada USA = wolfgrotto.darktech.orgã
-
From
Willowolf@VERT/WOLFGROT to
Amcleod on Thu Jan 17 17:56:00 2002
[Reply to]: GETSTRã[Typed by]: Amcleod to Willowolf on Thu Jan 17 2002ããã > > Is there a way to have it print before the left over spaces liks so?:ã > ã > PRINTF "%-40s" strã > ã > You might wanna try reading the docu.....ãã I have many times... My eyes have glazed over and I'm tierd of readingãit. I turn to the Baja Discussion sub when I get tierd, or just don'tãunderstand it. I appologize for the simplicity of my questions, but I haveãread the docs many times, I guess I skipped over this particular area. I willãgo through them more closely in the future. I don't want to bother anyone. Iãhave no proir programming knowledge and I tend to come here for expert advise.ãI am in no way an expert at programming, I am simply a novice if that. Iãappreciate all your help, and I in no way want to be an annoyance.ãã I run a BBS as a hobby, as many of us do, and I just find it fun to beãable to mess around with the BBS and all its features that Rob has put intoãthem. Sometimes, I just need a little help that's all, more than the Docs canãgive, and I know the answer is usually there, it's just a lot easier when oneãis tierd to come here for the expert knowledge. I know a lot of you code for aãliving, and I have been working on this particular Baja module for a few daysãand have put in a lot of my spare time and hours with it. I am sure it'sãsomething that would take the experts 10 min to write, but not me, it's aãchallenge, and sometimes, I just need a little help getting it to go in theãdirection I want to.ãã I appreciate DOVE-Net for this reason, without it, I wouldn't have foundãthe answer so quickly to a lot of my problems. I have been told many times toã"read the docs" and I have, believe me. I just come here as a last resort, andãwhat may seem very simple to you, may not be so to me. I don't claim to be allãknowing or even to be very smart as many of you are. I just want to haveãa little fun that's all.ãã But, I promise, I will try and find the answer in the Docs before I comeãhere and ask in the future. I really do appreciate all the help that everyoneãhas given me. And, as I said, I in no way want to be an annoyance.ããSincerely,ã\\/ãã---ã þ Synchronet þ Wolf Grotto = Las Vegas, Nevada USA = wolfgrotto.darktech.orgã
-
From
Amcleod@VERT to
Willowolf on Thu Jan 17 22:09:18 2002
RE: GETSTRãBY: Willowolf to Amcleod on Fri Jan 18 2002 01:56 amãã > > > Is there a way to have it print before the left over spaces liks so?:ã > >ã > > PRINTF "%-40s" strã > >ã > > You might wanna try reading the docu.....ã > ã > I have many times... My eyes have glazed over and I'm tierd of readingã > it. I turn to the Baja Discussion sub when I get tierd, or just don'tã > understand it. I appologize for the simplicity of my questions.....ããDon't sweat it -- this is a Friday!ããBut the docu for BAJA is a pretty good REFERENCE (it doesn't pretend to beãmuch of a tutorial). Also I tyake it you are fairly new to programming? ãThe "Print Formatted" command is pretty standard in a number of languagesã(BAJA, C/C++, JS, Perl, etc) so I gather you have not had much exposure...ã---ã þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.netã
-
From
Willowolf@VERT/WOLFGROT to
Amcleod on Fri Jan 18 23:24:00 2002
[Reply to]: GETSTRã[Typed by]: Amcleod to Willowolf on Fri Jan 18 2002 06:09 amãã > But the docu for BAJA is a pretty good REFERENCE (it doesn't pretend to beã > much of a tutorial). Also I tyake it you are fairly new to programming?ã > The "Print Formatted" command is pretty standard in a number of languagesã > (BAJA, C/C++, JS, Perl, etc) so I gather you have not had much exposure...ãã No, not much at all really. I've been a PC tech for more than 10 years,ãbut never picked up a programming language. I've dabbled in BASIC back in theãdays of the Commodore 64, but that was it.ãã What woud be a good "first" language to learn? I have been told that C++ãis the way to go. Maybe Perl is the better way to go for today's needs?ããThanks,ã\\/ãã---ã þ Synchronet þ Wolf Grotto = Las Vegas, Nevada USA = wolfgrotto.darktech.orgã
-
From
Amcleod@VERT to
Willowolf on Sat Jan 19 22:09:10 2002
RE: GETSTRãBY: Willowolf to Amcleod on Sat Jan 19 2002 07:24 amãã > What woud be a good "first" language to learn? I have been told that Cã > is the way to go. Maybe Perl is the better way to go for today's needs?ããYou realise you have just pressed the "Detonate" button on the tickingãbomb of the oldest thread on the internet?ããIf you have a specific job to do, then that will dictate. example, if youãwant to learn programming SOLELY to make additions/modifications toãSynchronet modules, then start with JS or BAJA (JS preferably, becauseãwhile not a complete replacement for BAJA *yet* it is probably theãdirection SBBS scripting will go moreso than venerable BAJA. Also it hasãwider scope -- NON-Synchronet use).ããOtherwise, if just learning for academic reasons, don't start by learningãanything too esoteric. And don't use anything too crippled. C, Pascal,ãJava would be fairly good introductory languages. Ignore syntacticallyãdated and outmoded languages like BASIC, FORTRAN, COBOL <shudder>. If youãcan program in a "good" language you can dumb-down to use BASIC, FORTRANãetc, if the need arises. If you are only schooled in VB, then you will beãdriven insane by Perl. ããSpeaking of Perl, it is a FINE language for many tasks, but I don't knowãif it is a good place to start -- it can be extremely cryptic which mayãgive the rank beginner a problem. I hesitate to mention Python because itãgoes against 40 years of programing experience and makes "whitespace"ãsyntactically significant and the idea is abhorrent to me. I am all inãfavour of innovation, but this idea sucks dust.ããMany languages will cost you something to acquire. Perl is freeã(ActiveState for the Windows people) Python probably the same. There areãfree versions of compilers for C and Pascal out there. ããMy biggest tip to the novice programmer is: get yourself a decentãtext-editor (
http://www.utopia-planitia.de/indexus.html) and learn to useãit.ã---ã þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.netã
-
From
Rocko@VERT/NSTLG to
Willowolf on Sun Jan 20 05:42:00 2002
What woud be a good "first" language to learn? I have been toldã Wi> that C++ is the way to go. Maybe Perl is the better way to go forã Wi> today's needs?ãã I usually don't respond to these since I went through this whole phaseãmyself. As far as C++ is concerned, people say to learn C first. I nowãdisagree and think one should just go straight to the C++. IMO It's muchãeasier to take in object-oriented programming when your programming mind isãstill a clean slate. The only problem is you'll be left with little ideaãabout proper object-oriented design. Few C++ books explain this well,ãalthough there are plenty of software engineering texts on design alone.ã A better idea IMO is to learn Java. It's not as cruel as C++, but itãfollows a very similar format. Java is gaining steady market share forãdeveloping applications. IIRC, the author of the Advanced Perl Programmingãtextbook suggested using Java as the application language, and Perl as aãscripting language.ã Now we're on the topic of Perl. It's a very powerful language, to be sure.ãHowever, it still holds best for writing scripts. That is, something thatãdoesnt have to be lightning fast, but needs to be developed lightning fast.ãThe downside here is the best books for Perl IMO are the O'Reilly books.ãUnfortunately, I feel they don't address Perl too well to people who haveãnever written code before.ã So I would suggest Java right now. It lets you dabble with GUIs andãsockets without having to make big choices in what libraries to use. It isãalso becoming more popular, and can give you an edge. So far, I see that RITãand Cornell are putting their eggs into the Java basket. I dunno if thatãmeans anything to you though.ãã... WARNING: Habit forming, administer conservativelyã--- MultiMail/Win32 v0.42ã þ Synchronet þ My Brand-Spanking New Guinea Pig BBS!ã
-
From
Amcleod@VERT to
Rocko on Sun Jan 20 14:20:23 2002
RE: GETSTRãBY: Rocko to Willowolf on Sun Jan 20 2002 01:42 pmãã > Unfortunately, I feel they don't address Perl too well to people who haveã > never written code before.ããHeh! That's putting it mildly! Some of the docu for some of theãfunctions says "This function does exactly what you would expect."ããWhich is fine, so long as you know WHAT to expect.....ã---ã þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.netã
-
From
Rocko@VERT/NSTLG to
Amcleod on Sun Jan 20 15:53:00 2002
Heh! That's putting it mildly! Some of the docu for some of theã Am> functions says "This function does exactly what you would expect."ãã Am> Which is fine, so long as you know WHAT to expect.....ãã .....Well since I'm so elite and stuck up, I always know what to expectãfrom the Perl functions: It will break the first three times I try to run itãand then it will magically work after a tweak or two. =pãã... He walks down Lover's Lane holding his own hand. ã--- MultiMail/Win32 v0.42ã þ Synchronet þ My Brand-Spanking New Guinea Pig BBS!ã
-
From
Willowolf@VERT/WOLFGROT to
Rocko on Mon Jan 21 23:24:00 2002
[Reply to]: GETSTRã[Typed by]: Rocko to Willowolf on Sun Jan 20 2002 01:42 pmãã > So I would suggest Java right now. It lets you dabble with GUIs andã > sockets without having to make big choices in what libraries to use. It isã > also becoming more popular, and can give you an edge. So far, I see that RIã > and Cornell are putting their eggs into the Java basket. I dunno if thatã > means anything to you though.ãã Great! Another vote to start with Java. I actually have some Java booksãthat were given to me sitting in the corner around here somewhere. I'll haveãto pick them up and pondr them. I appreciate it. Thanks again!ãã\\/ãã---ã þ Synchronet þ Wolf Grotto = Las Vegas, Nevada USA = wolfgrotto.darktech.orgã
-
From
Digital Man@VERT to
Willowolf on Tue Jan 22 05:58:43 2002
RE: GETSTRãBY: Willowolf to Rocko on Tue Jan 22 2002 07:24 amãã > > So I would suggest Java right now. It lets you dabble with GUIs andã > > sockets without having to make big choices in what libraries to use. It ã > > also becoming more popular, and can give you an edge. So far, I see thatã > > and Cornell are putting their eggs into the Java basket. I dunno if thatã > > means anything to you though.ã > ã > Great! Another vote to start with Java. ããJust to clarify, Java and JavaScript are two very different things. Java is aãlanguage and a run-time environment devloped by Sun. JavaScript is strictly aãscripting language with a syntax similar to Java but used for very differentãtasks. JavaScript was developed by Netscape and was originally namedãLiveScript, was renamed to "JavaScript" to ride the hype of Java.ãã-Robã---ã þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.netã
-
From
Darqualan@VERT/DARKRLM to
Digital Man on Tue Jan 22 15:43:00 2002
RE: GETSTRãBY: Digital Man to Willowolf on Tue Jan 22 2002 01:58 pmããThere is one other difference between Javascript and Java, Javascript is easierãto work with and the synax is quite different from what we worked on inãcollege.ãããã---ã þ Synchronet þ Dark Realm BBS - Darkrealm.darktech.orgã
-
From
Tracker1@VERT to
All on Tue Jan 22 18:01:30 2002
Actually, JS is a VERY good place to start, you can test functionalityãin Synchronet, in Client-Side browsers, and Server-Side ASP...ããThe syntax is close to C++/Java which make the transition to these aãbit easier.. and also allow you to learn programming concepts withoutãthe need to learn a more complex language. VB is also a fairly goodãplace, since it supports most object oriented concepts (more in vb.net).ããBut if you want to do anything outside of windows, avoid VB, it's easierãto pick up if you know another language anyways.ãã=======================================================================ãMichael J. Ryan -
tracker1@theroughnecks.comãaim: aztrackr1 - icq: 4935386 - Y!: tracker_1.rm - msn: see emailã=======================================================================ãOne program for aim/icq/yahoo/msn -
http://www.trillian.cc/ããã"Rocko" <Rocko@NSTLG> wrote in message news:1352...ã> Wi> What woud be a good "first" language to learn? I have been toldã> Wi> that C++ is the way to go. Maybe Perl is the better way to go forã> Wi> today's needs?ã>ã> I usually don't respond to these since I went through this whole phaseã> myself. As far as C++ is concerned, people say to learn C first. I nowã> disagree and think one should just go straight to the C++. IMO It's muchã> easier to take in object-oriented programming when your programming mindãisã> still a clean slate. The only problem is you'll be left with little ideaã> about proper object-oriented design. Few C++ books explain this well,ã> although there are plenty of software engineering texts on design alone.ã> A better idea IMO is to learn Java. It's not as cruel as C++, but itã> follows a very similar format. Java is gaining steady market share forã> developing applications. IIRC, the author of the Advanced PerlãProgrammingã> textbook suggested using Java as the application language, and Perl as aã> scripting language.ã> Now we're on the topic of Perl. It's a very powerful language, to beãsure.ã> However, it still holds best for writing scripts. That is, something thatã> doesnt have to be lightning fast, but needs to be developed lightningãfast.ã> The downside here is the best books for Perl IMO are the O'Reilly books.ã> Unfortunately, I feel they don't address Perl too well to people who haveã> never written code before.ã> So I would suggest Java right now. It lets you dabble with GUIs andã> sockets without having to make big choices in what libraries to use. Itãisã> also becoming more popular, and can give you an edge. So far, I see thatãRITã> and Cornell are putting their eggs into the Java basket. I dunno if thatã> means anything to you though.ã>ã> .. WARNING: Habit forming, administer conservativelyã> --- MultiMail/Win32 v0.42ã> þ Synchronet þ My Brand-Spanking New Guinea Pig BBS!ã>ã---ã þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.netã
-
From
Rocko@VERT/NSTLG to
Darqualan on Wed Jan 23 01:46:00 2002
RE: GETSTRãBY: Darqualan to Digital Man on Tue Jan 22 2002 11:43 pmãã > There is one other difference between Javascript and Java, Javascript is easã > to work with and the synax is quite different from what we worked on inã > college.ãã In the grander scheme of things, they're pretty close. I understand thatãfor a Java app to launch it needs a main method contained in an object, andãthat's the big difference right away.ã However, compare it to.. say, scheme, and they're quite similar.ãã Uh oh I got a scheme fancy coming on. Pretty powerful little language, ifãanybody ever gave a damn about it. Still would have had a blast writing SBBSãscripts with it, if that were possible.ã---ã þ Synchronet þ Hot babes us Nostalgia BBS! -- nostalgia.hellskitchen.orgã
-
From
Willowolf@VERT/WOLFGROT to
Digital Man on Tue Jan 22 23:29:00 2002
[Reply to]: GETSTRã[Typed by]: Digital Man to Willowolf on Tue Jan 22 2002 01:58 pmãã > Just to clarify, Java and JavaScript are two very different things. Java is ã > language and a run-time environment devloped by Sun. JavaScript is strictly ã > scripting language with a syntax similar to Java but used for very differentã > tasks. JavaScript was developed by Netscape and was originally namedã > LiveScript, was renamed to "JavaScript" to ride the hype of Java.ãã I understand. Thanks Rob.ããã---ã þ Synchronet þ Wolf Grotto = Las Vegas, Nevada USA = wolfgrotto.darktech.orgã
-
From
Tracker1@VERT to
All on Thu Jan 24 04:18:20 2002
Nod, would be cool to allow various scripting contexts, as a scriptingãenvironment that uses the various runtimes, kind of like ms does to allowãjs, vbs, ps etc for asp, or wsh.ããI like js, and think it is about my fav language though.. also, definingãclasses is different, in js it is done by declaring a variable's property toãa function designed as a class. See below for example.. Most people don'tãknow that JS can be used this way, as well as calling other functions, orãassigning functions as properties.ããJS is actually a pretty complete language, you need to have objects for theãrun-time context (Synchronet), but it's really cool.ãã-------------ãfunction MCAlert(inName,inValue,inMore) {ã alert(inName + ": " + inValue);ã}ããfunction MyClass(inName,inValue) {ã this.name = inName;ã this.value = inValue;ã this.alert = new Function("inMore","returnãMCAlert(this.name,this.value,inMore)");ã}ããvar arrMC_Info = new Array()ãarrMC_Info[0] = new MyClass("location","phoenix")ãã//now you can referenceãfor (var i=0; i<arrMC_Info.length; i++) {ã //print(arrMC_Info[i].name)ã //print(arrMC_Info[i].value)ã}ãããã=======================================================================ãMichael J. Ryan -
tracker1@theroughnecks.comãaim: aztrackr1 - icq: 4935386 - Y!: tracker_1.rm - msn: see emailã=======================================================================ãOne program for aim/icq/yahoo/msn -
http://www.trillian.cc/ããã"Rocko" <Rocko@NSTLG> wrote in message news:1361...ã> RE: GETSTRã> BY: Darqualan to Digital Man on Tue Jan 22 2002 11:43 pmã>ã> > There is one other difference between Javascript and Java, Javascriptãis easã> > to work with and the synax is quite different from what we worked on inã> > college.ã>ã> In the grander scheme of things, they're pretty close. I understandãthatã> for a Java app to launch it needs a main method contained in an object,ãandã> that's the big difference right away.ã> However, compare it to.. say, scheme, and they're quite similar.ã>ã> Uh oh I got a scheme fancy coming on. Pretty powerful littleãlanguage, ifã> anybody ever gave a damn about it. Still would have had a blast writingãSBBSã> scripts with it, if that were possible.ã> ---ã> þ Synchronet þ Hot babes us Nostalgia BBS! -- nostalgia.hellskitchen.orgã---ã þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.netã