Re: @-codes
By: The Millionaire to Digital Man on Thu Sep 19 2019 05:20 am
How would "Comm dir" be specified to the @-code? Via argument (e.g. @tfile:comm@) or just use the "current" directory that the user previous changed to? I'm not clear how it'd be used (e.g. in a prompt, a menu file, or waht).
digital man
This Is Spinal Tap quote #35:
Jeanine Pettibone: You don't do heavy metal in Dubly, you know.
Norco, CA WX: 73.3°F, 56.0% humidity, 0 mph ENE wind, 0.00 inches rain/24hrs
Hey DM, how about @-codes for the following:
1. Total files in File Area (eg. there are 12 files in Comm dir)
2. Total file area size (eg. there is 670 mb in Comm dir)
Just a suggestion here.
Let’s say for example:
There are 12 files in the graphics file area.
@-code for # of files in file area.
There is 670 mb total in the graphics file area.
@-code for # of total number of megabytes in the file area.
Re: @-codes
By: The Millionaire to Digital Man on Thu Sep 19 2019 05:20 am
How would "Comm dir" be specified to the @-code? Via argument (e.g. @tfile:comm@) or just use the "current" directory that the user previous changed to? I'm not clear how it'd be used (e.g. in a prompt, a menu file, or waht).
digital man
This Is Spinal Tap quote #35:
Jeanine Pettibone: You don't do heavy metal in Dubly, you know.
Norco, CA WX: 73.3°F, 56.0% humidity, 0 mph ENE wind, 0.00 inches rain/24hrs
Re: @-codes
By: The Millionaire to Digital Man on Thu Sep 19 2019 05:20 am
How would "Comm dir" be specified to the @-code? Via argument (e.g. @tfile:comm@) or just use the "current" directory that the user previous changed to? I'm not clear how it'd be used (e.g. in a prompt, a menu file, or waht).
Ignore comm dir for a moment. That was part of an example.
Tfile:areasize
Tfile:areanum
Re: @-codes
By: The Millionaire to Digital Man on Thu Sep 19 2019 05:20 am
How would "Comm dir" be specified to the @-code? Via argument (e.g. @tfile:comm@) or just use the "current" directory that the user previous changed to? I'm not clear how it'd be used (e.g. in a prompt, a menu file, or waht).
Let's say for example:
There are 12 files in the graphics file area.
@-code for # of files in file area.
There is 670 mb total in the graphics file area.
@-code for # of total number of megabytes in the file area.
Re: @-codes
By: The Millionaire to Digital Man on Thu Sep 19 2019 11:45 am
Okay, again, how is the "graphics file area" specified in the @-code? As a parameter or just the fact that's it's the "current" file area that the user selected?
digital man
This Is Spinal Tap quote #43:
I feel my role in the band is ... kind of like lukewarm water.
Norco, CA WX: 78.9°F, 51.0% humidity, 6 mph NE wind, 0.00 inches rain/24hrs
Re: @-codes
By: The Millionaire to Digital Man on Thu Sep 19 2019 11:45 am
Okay, again, how is the "graphics file area" specified in the @-code? As a parameter or just the fact that's it's the "current" file area that the user selected?
@NUMFILES@ = Total number of files in file area
@FILE_AREA_SIZE@ = Total number of bytes/kbytes/megabytes/gigabytes in file area
From Newsgroup: alt.bbs.synchronet
Okay, again, how is the "graphics file area" specified in the @-code? As a parameter or just the fact that's it's the "current" file area that the user selected?
It's not. It's just used as an example. The @-code would be the # of files hence @NUMFILES@.
Re: @-codes
By: blueboy46464 to alt.bbs.synchronet on Thu Sep 19 2019 05:22 pm
<sigh>
So are you wanting to display the total files in a *specific* area (directory) or the total files in a the user's currently selected directory?
digital man
Synchronet "Real Fact" #37:
Synchronet's Windows Control Panel is built with Borland C++ Builder.
Norco, CA WX: 69.8°F, 72.0% humidity, 8 mph NE wind, 0.00 inches rain/24hrs
Re: @-codes
By: blueboy46464 to alt.bbs.synchronet on Thu Sep 19 2019 05:22 pm
<sigh>
So are you wanting to display the total files in a *specific* area (directory) or the total files in a the user's currently selected directory?
Yes I want to tell the user in the ansi:
There are @NUMFILES@ files which total @FILE_AREA_SIZE@ in file area.
There are 12 files which total 670 mb in file area.
Re: @-codes
By: The Millionaire to Digital Man on Thu Sep 19 2019 06:43 pm
Okay, so the question still remains: in *which* file area (directory) are you want to tell the user those details?
A. A specific directory which you (the sysop) specify, i.e. as part of the @-code
B. The user's currently selected directory
Choose one: A or B, which are you asking for?
digital man
This Is Spinal Tap quote #13:
Nigel Tufnel: You can't really dust for vomit.
Norco, CA WX: 67.9°F, 75.0% humidity, 8 mph ENE wind, 0.00 inches rain/24hrs
Is it easy to write an @-code?
Re: @-codes
By: The Millionaire to Digital Man on Thu Sep 19 2019 06:50 pm
I don't understand the question. If you're asking if it's easy to add an @-code to the C/C++ source of Synchronet, yes, pretty easy. It does depend on what the @-code is actually going to do/expand-to.
digital man
This Is Spinal Tap quote #14:
The Boston gig has been cancelled. [Don't] worry, it's not a big college town. Norco, CA WX: 67.9°F, 75.0% humidity, 8 mph ENE wind, 0.00 inches rain/24hrs
I just looked at atcodes.cpp and it looks difficult.
Hey DM, how about @-codes for the following:
1. Total files in File Area (eg. there are 12 files in Comm dir)
2. Total file area size (eg. there is 670 mb in Comm dir)
Just a suggestion here.
What if the file is less than 1K like 790 bytes? Then is it rounded off to 1K?
Hey DM, how about @-codes for the following:
1. Total files in File Area (eg. there are 12 files in Comm dir)
2. Total file area size (eg. there is 670 mb in Comm dir)
Just a suggestion here.
What if the file is less than 1K like 790 bytes? Then is it rounded off to 1K?
Re: @-codes
By: The Millionaire to The Millionaire on Fri Sep 20 2019 09:55 am
What if the file is less than 1K like 790 bytes? Then is it rounded off to 1K?
It looks like Digital Man added a code called FILEBYTES that will report file size in bytes if you want to see that.
Though if there are such @-codes, it might be handy to have one that automatically chooses a representation - For example, if less than 1K, then show it in bytes; if above 1K but below 1MB, then show in kilobytes; if at least 1MB but below a GB, then show in MB, etc..
I love all of your @-codes, DM. They are superb work and if you or I find anymore that needs to be added, I'll be there to support you on them either way. Thank you so very much from the bottom of my heart. :-)
Re: @-codes
By: The Millionaire to Digital Man on Fri Sep 20 2019 01:24 pm
Nah, not that hard. The main thing was supporting an alternate format modifier syntax so that you can have multiple format modifiers (e.g. right-justified *and* thousands-separators) and combine format modfiers with arguments (e.g. @filesize:path/filename@).
Right now, I have the new/alternate format modifier as a pipe (|) symbol followed by one or more modifiers (i.e. L, R, C, Z, etc.) followed by an optional length value. Still deciding if I like that syntax.
digital man
This Is Spinal Tap quote #38:
Artie Fufkin: I'm not asking, I'm telling with this. Kick my ass.
Norco, CA WX: 82.3°F, 41.0% humidity, 0 mph NW wind, 0.00 inches rain/24hrs
Re: @-codes
By: The Millionaire to The Millionaire on Fri Sep 20 2019 01:16 pm
You're welcome.
I'm working on an enhancement to optionally add thousands-separators (e.g. commas) to any numeric @-codes.
digital man
Synchronet "Real Fact" #94:
Synchronet v3.15b was released in October of 2011 (5 years after v3.14a). Norco, CA WX: 80.1°F, 45.0% humidity, 0 mph WNW wind, 0.00 inches rain/24hrs
Re: @-codes
By: The Millionaire to The Millionaire on Fri Sep 20 2019 01:16 pm
You're welcome.
I'm working on an enhancement to optionally add thousands-separators (e.g. commas) to any numeric @-codes.
That's going to be a lot of work. But it's a good idea though. Keep up the good work! :-)
Right now, I have the new/alternate format modifier as a pipe (|)
symbol followed by one or more modifiers (i.e. L, R, C, Z, etc.)
followed by an optional length value. Still deciding if I like that syntax.
How about only using 1 @ code instead of 2 For example: @BBSNAME
instead of @BBSNAME@
Or would that even be possible? Just a suggestion. Might cut down on room on multiple @-codes used on one line in an ansi file.
On 2019 Sep 20 14:42:50, you wrote to The Millionaire:
Right now, I have the new/alternate format modifier as a pipe (|) symbol followed by one or more modifiers (i.e. L, R, C, Z, etc.) followed by an optional length value. Still deciding if I like that syntax.
ahhhhhhhh... this sounds exquisite! like it eliminates the reentry/looping problem when trying to do something like
@center@@foo-l........@@bar-r10@
kinda stuff??
or will that still not be able to be done so the line is
centered on any width terminal?
that's one thing that i miss as some of my
screens are centered but not where i have to use -L and -R modifiers to make nice columns... so i had to do them for 80 column screens and suffer looking at yuck when using my 200+ column terminal...
make nice columns... so i had to do them for 80 column screens and suffer looking at yuck when using my 200+ column terminal...that's one thing that i miss as some of my
screens are centered but not where i have to use -L and -R modifiers to
JavaScript, baby. :-)
Re: @-codes
By: Digital Man to mark lewis on Sat Sep 21 2019 01:59:28
that's one thing that i miss as some of my
screens are centered but not where i have to use -L and -R modifiers to make nice columns... so i had to do them for 80 column screens and suffer looking at yuck when using my 200+ column terminal...
JavaScript, baby. :-)
so executing a .js from within an asc/msg file?
like server side includes on
web servers? will that also work with sbbs' web server? :thinking:
Sysop: | sneaky |
---|---|
Location: | Ashburton,NZ |
Users: | 28 |
Nodes: | 8 (0 / 8) |
Uptime: | 192:15:13 |
Calls: | 2,006 |
Calls today: | 3 |
Files: | 11,114 |
Messages: | 942,303 |