Roll & Rock

[ Roll & Rock ] [ Main Menu ]


  


21442


Date: June 06, 2020 at 10:53:36
From: EQF, [DNS_Address]
Subject: Earthquake Forecasting Update June 6, 2020


EARTHQUAKE FORECASTING UPDATE
Posted by EQF  June 6, 2020

       A considerable amount of work is being done in preparation for letting governments etc. around the world know about the data that are available on my Data.html Web page, and how those data can be used to forecast earthquakes.

       It might take until perhaps June 9, 2020 to update all of the information available on that Web page.  But, here is a summary of some of the latest information.

       As many people are aware, the following strongly felt earthquake recently occurred in the California area:

2020/06/04 01:32:11 35.61N 117.43W   8 5.5 "17km S of Searles Valley, CA"
NEIS Data

       What surprised me the most about that earthquake was the fact that on June 3, 2020 an EM 9 electromagnetic signal was detected.  That is the strongest type of signal that I work with.  And perhaps only 2
or 3 of them are detected in a given year.  The nature of the signal indicated that the expected approaching earthquake would likely occur in just a day or two.  And it did!

        My computer programs show that the CA earthquake was an exact match for the EM 9 signal  What was so surprising is the fact that the signal was apparently pointing to an approaching earthquake that had a magnitude of only 5.5.

       In general, these signals are stronger for earthquakes that are closer to where the signals are being detected.  And they are stronger for earthquakes that occur near the surface and I believe ones that occur near large bodies of water such as oceans.  Still, I was quite surprised that such a strong signal could be generated by an approaching 5 magnitude range earthquake.

       My data also indicate to me that that CA earthquake had triggering characteristics that were similar to the following earthquake:

2020/05/15 11:03:27 38.16N 117.87W   3 6.5 "56km W of Tonopah, Nevada"

       Those similar triggering characteristics should not be too surprising as the two earthquakes occurred relatively close to one another as compared with ones occurring 5 or more longitude degrees apart from one another.

A NEW WEB PAGE IS BEING PREPARED

       People visiting my Data.html Web page can see a number of "Multiple Windows Chart Viewers."  They are html resources that let people view several picture files at the same time such as .png files, and compare data on the files with one another.

       To use those Chart Viewers, earthquake forecasters etc. presently need to actually visit that Data.html Web page.

       A new Web page is being created that will display a number of Chart Viewers that Web page visitors can download and store on their personal computers.  Then if they are connected to the Internet and click on that stored Web page it will automatically download my latest picture charts for them.  They won't need to visit the Data.html Web page.

       This should be a significant advance for the following reason:

       Also available on my Web site there will be .png picture files that focus on past significant earthquakes that have occurred in specific countries.  Those data are already available on my Significant Earthquakes Sorted By Date And By Longitude picture files.  But each of those files displays more than 800 earthquakes.  These individual country files will have as few ad 10 earthquakes to as many as 100.  And they will make it easier for people to see if the latest forecast data matched any of the past significant earthquakes in their individual countries.

       Those individual country files have now been created for Significant past US and Canada earthquakes, ones that occurred in Mexico, and ones that occurred in the People's Republic of China.  I was surprised by the large number of past significant earthquakes in China.  My present list for China has 89 earthquakes in it.

A PROPOSED COMPUTER PROGRAMMING PROJECT FOR ROGER

        When all of that work is done I am planning to see if I can interest Roger in creating a relatively simple TrueBasic program that can create those Chart Viewers for individual earthquake forecasters.  Then they can have one that is specifically designed for their own computer monitor screen size.

       When the program started running it would ask the user how many Windows he or she wanted in the Chart Viewer, how large each of the Windows should be, and what picture files to display in the various windows.  If the earthquake forecasters weren't happy with the results they could just run the program again.  It would save their previous selections in a text file that would reload each time the program was run.  They could then just make an easy adjustment to their selection data.

       I could create a Perl program that would do that.  But it would be rather large.  I believe that TrueBasic would create a much smaller .exe [rogram.  When the program got finalized it could be translated to Python.

       These are personal opinions.

EQF


Responses:
[21443] [21460] [21463] [21464] [21470] [21471] [21472] [21473] [21474] [21475] [21476] [21477] [21478] [21479] [21486] [21487] [21488] [21489] [21490] [21491] [21492] [21493] [21494] [21496] [21502] [21495] [21497] [21498] [21499] [21500] [21501] [21503] [21504] [21505] [21506] [21509] [21511] [21513] [21579] [21580] [21583] [21586] [21585] [21584] [21594] [21598] [21521] [21507] [21444] [21445] [21446] [21447]


21443


Date: June 06, 2020 at 11:59:40
From: Roger Hunter, [DNS_Address]
Subject: Re: Earthquake Forecasting Update June 6, 2020


Ed;

That sounds interesting but I don't know if I'm up to
it.

There are so many different OS choices out there, from
Win 7 to 10, then innumerable Linux distros. I don't
think it would be possible to write something in TB
that would handle all the possibilities.

Roger


Responses:
[21460] [21463] [21464] [21470] [21471] [21472] [21473] [21474] [21475] [21476] [21477] [21478] [21479] [21486] [21487] [21488] [21489] [21490] [21491] [21492] [21493] [21494] [21496] [21502] [21495] [21497] [21498] [21499] [21500] [21501] [21503] [21504] [21505] [21506] [21509] [21511] [21513] [21579] [21580] [21583] [21586] [21585] [21584] [21594] [21598] [21521] [21507] [21444] [21445] [21446] [21447]


21460


Date: June 09, 2020 at 12:12:25
From: EQF, [DNS_Address]
Subject: Re: Earthquake Forecasting Update June 6, 2020


Posed by EQF June 9, 2020

Thanks to all for the comments so far.

Hi Roger,

This is a nice, easy programming project. It should actually be fun.

After the original program work got completed, board visitors could comment on the program and make recommendations for features to add.

HOW THE PROGRAM WOULD WORK

An existing text file that is roughly 50 lines long would be read into a program array.

3 numbers would be located in the array. That will be easy to do.

Your program would present 2 of those numbers to the user and ask for new numbers.

Those two numbers represent the pixel sizes of the upper and lower Chart Viewer windows in the html file.

After the user typed in the 2 new numbers the program would do a simple calculation:

C = A + B + K

K is a constant.

A and B are the two window sizes.

A, B, and C would be replaced at the appropriate locations in the array.

The program would then dump the entire array into a new text file that would end in ".html"

That is it. Very, very simple!

That would be less than 1 hour of work for someone who presently works as a professional programmer.

For the casual programmer it might take a day of time between meals, coffee breaks, watching the news, texting, posting notes to this forum etc.

ADDITIONS

The first addition would be to have the program ask the user for a file name for the new .html file.

Other additions would range from being that simple to somewhat more complex.

TrueBasic should be fine. The .exe program should run on all DOS - Windows systems, old and new.

My Web page will also have instructions for how people can do those number substitutions using a text editor such as Windows Notepad plus a hand calculator.

Based on past experiences, earthquake forecasting scientists would likely use the text editor approach. The general public would probably prefer to use the TrueBasic program rather than bother with html code and file creation.


Responses:
[21463] [21464] [21470] [21471] [21472] [21473] [21474] [21475] [21476] [21477] [21478] [21479] [21486] [21487] [21488] [21489] [21490] [21491] [21492] [21493] [21494] [21496] [21502] [21495] [21497] [21498] [21499] [21500] [21501] [21503] [21504] [21505] [21506] [21509] [21511] [21513] [21579] [21580] [21583] [21586] [21585] [21584] [21594] [21598] [21521] [21507]


21463


Date: June 09, 2020 at 19:23:06
From: Roger Hunter, [DNS_Address]
Subject: Re: Earthquake Forecasting Update June 6, 2020


EQF;

What is the purpose?

Why should I bother?

Where is the 50 line file?

What is the value of the constant?

I don't work as a professional programmer.

There are no scientists forecasting earthquakes.

Roger


Responses:
[21464] [21470] [21471] [21472] [21473] [21474] [21475] [21476] [21477] [21478] [21479] [21486] [21487] [21488] [21489] [21490] [21491] [21492] [21493] [21494] [21496] [21502] [21495] [21497] [21498] [21499] [21500] [21501] [21503] [21504] [21505] [21506] [21509] [21511] [21513] [21579] [21580] [21583] [21586] [21585] [21584] [21594] [21598] [21521] [21507]


21464


Date: June 09, 2020 at 19:29:28
From: Roger Hunter, [DNS_Address]
Subject: Re: Earthquake Forecasting Update June 6, 2020


EQF;

How can you describe the size of a window with one
number?

Roger


Responses:
[21470] [21471] [21472] [21473] [21474] [21475] [21476] [21477] [21478] [21479] [21486] [21487] [21488] [21489] [21490] [21491] [21492] [21493] [21494] [21496] [21502] [21495] [21497] [21498] [21499] [21500] [21501] [21503] [21504] [21505] [21506] [21509] [21511] [21513] [21579] [21580] [21583] [21586] [21585] [21584] [21594] [21598] [21521] [21507]


21470


Date: June 12, 2020 at 08:12:24
From: EQF, [DNS_Address]
Subject: Re: Earthquake Forecasting Update June 6, 2020


Posted by EQF June 12, 2020

That Web site file might be done today, Friday. Or it could require a few more days.

The window width always remains the same. Only the window height changes.

You might want to work on the project because the results should be helpful to people around the world and because it should be a fun type of programming effort that keeps the brain cells moving.

"Use them or lose them," as the saying goes.

I am a scientist. I also generate earthquakes forecasting data as my Web sites show.

Regards,

EQF


Responses:
[21471] [21472] [21473] [21474] [21475] [21476] [21477] [21478] [21479] [21486] [21487] [21488] [21489] [21490] [21491] [21492] [21493] [21494] [21496] [21502] [21495] [21497] [21498] [21499] [21500] [21501] [21503] [21504] [21505] [21506] [21509] [21511] [21513] [21579] [21580] [21583] [21586] [21585] [21584] [21594] [21598] [21521] [21507]


21471


Date: June 12, 2020 at 09:27:58
From: EQF, [DNS_Address]
Subject: Practice Example Of HTML File June 12, 2020


Posted by EQF June 12, 2020

Hi again Roger,

The following is a PRACTICE example of the text of the type of html file that needs to be created depending on the computer user's screen size.

The actual first line in the file contains the word DOCTYPE

Before storing this as an html file, a text editor such as Windows Notepad should be used to replace each {{ with < and each }} with >

{{ had to be substituted for < etc. to get the text to display correctly on this forum page.



{{!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"}}
{{html}}{{head}}
{{title}}Chart Viewer{{/title}}
{{meta http-equiv="content-type" content="text/html; charset=windows-1252"}}
{{meta content="MSHTML 6.00.2900.5512" name="GENERATOR"}}
{{/head}}
{{body style="background-color: rgb(207, 230, 154);"}}

{{br}}

{{div align="center"}}{{/a}}

{{!--############################### C = A + B + 105 #############################################--}}

{{!--############################### C IS THE PX HEIGHT NUMBER ON LINE BELOW #############################################--}}
{{div style="align: center; height:505px; width:1025px;

overflow:auto; border:3px solid blue"}}
{{div style="height:45px;overflow:auto" align="left"}} {{img src="top_axis.png"}}{{/div}}

{{!--############################### A IS THE PX HEIGHT NUMBER ON LINE BELOW #############################################--}}
{{div style="height:200px;overflow:auto" align="left"}}

{{img src="Earthquakes-1D.png" alt="Earthquakes Sorted By Date"}}{{/a}}
{{img src="Earthquakes-1L.png" alt="Earthquakes Sorted By Longitude"}}{{/a}}
{{img src="Earthquakes-2D.png" alt="Earthquakes Sorted By Date"}}{{/a}}
{{img src="Earthquakes-2L.png" alt="Earthquakes Sorted By Longitude"}}{{/a}}
{{img src="Earthquakes-3D.png" alt="Earthquakes Sorted By Date"}}{{/a}}
{{img src="Earthquakes-3L.png" alt="Earthquakes Sorted By Longitude"}}{{/a}}

{{img src="Significant-Date.png" alt="Significant Earthquakes Sorted By Date"}}{{/a}}
{{img src="Significant-Longitude.png" alt="Significant Earthquakes Sorted By Longitude"}}{{/a}}
{{img src="Chart-C.png" alt="Chart-C"}}{{/a}}
{{img src="EQ-EMS.png" alt="EQ-EMS"}}{{/a}}
{{img src="EMS.png" alt="EMS"}}{{/a}}
{{img src="Year_Chart.png" alt="Year Chart"}}{{/a}}

{{/div}}
{{div style="height:1px; overflow:auto" align="left"}} {{img src="Line.png" alt="Line"}}{{/div}}

{{!--############################### B IS THE PX HEIGHT NUMBER ON LINE BELOW #############################################--}}
{{div style="height:200px;overflow:auto" align="left"}}

{{img src="Chart-C.png" alt="Chart-C"}}{{/a}}
{{img src="EQ-EMS.png" alt="EQ-EMS"}}{{/a}}
{{img src="EMS.png" alt="EMS"}}{{/a}}
{{img src="Year_Chart.png" alt="Year Chart"}}{{/a}}
{{img src="Significant-Date.png" alt="Significant Earthquakes Sorted By Date"}}{{/a}}
{{img src="Significant-Longitude.png" alt="Significant Earthquakes Sorted By Longitude"}}{{/a}}

{{/div}}
{{div style="height:50px;overflow:auto" align="left"}}{{img src="bottom_axis.png"}}{{/div}}
{{/div}}
{{/div}}

{{/body}}{{/html}}


Responses:
[21472] [21473] [21474] [21475] [21476] [21477] [21478] [21479] [21486] [21487] [21488] [21489] [21490] [21491] [21492] [21493] [21494] [21496] [21502] [21495] [21497] [21498] [21499] [21500] [21501] [21503] [21504] [21505] [21506] [21509] [21511] [21513] [21579] [21580] [21583] [21586] [21585] [21584] [21594] [21598] [21521] [21507]


21472


Date: June 12, 2020 at 10:04:11
From: Roger Hunter, [DNS_Address]
Subject: Re: Practice Example Of HTML File June 12, 2020


EQF;

Done.

Roger


Responses:
[21473] [21474] [21475] [21476] [21477] [21478] [21479] [21486] [21487] [21488] [21489] [21490] [21491] [21492] [21493] [21494] [21496] [21502] [21495] [21497] [21498] [21499] [21500] [21501] [21503] [21504] [21505] [21506] [21509] [21511] [21513] [21579] [21580] [21583] [21586] [21585] [21584] [21594] [21598] [21521] [21507]


21473


Date: June 12, 2020 at 11:13:03
From: Roger Hunter, [DNS_Address]
Subject: Re: Practice Example Of HTML File June 12, 2020


EQF;

OK, the program reads the file and writes an output
file.

What information should the user input and what should
be done with it?

Roger


Responses:
[21474] [21475] [21476] [21477] [21478] [21479] [21486] [21487] [21488] [21489] [21490] [21491] [21492] [21493] [21494] [21496] [21502] [21495] [21497] [21498] [21499] [21500] [21501] [21503] [21504] [21505] [21506] [21509] [21511] [21513] [21579] [21580] [21583] [21586] [21585] [21584] [21594] [21598] [21521] [21507]


21474


Date: June 13, 2020 at 12:13:45
From: EQF, [DNS_Address]
Subject: Re: Practice Example Of HTML File June 12, 2020


Posted by EQF June 13, 2020

Hi Roger,

It looks like things are moving along. As I stated, this would be a very simple programming project.

Also as I have stated, because of my schedule, at times it can take me a few days to respond to any forum posts.

The next step in this program development effort is to find a way to locate the three numbers, A, B, and C in the html code so that the program user can substitute new values.

That required some thought.

The following should work. And there are other possible ways to do this.

Within the html line where each of the three values is located, an identifier such as "C Value" can be stored in the line. So the line would look like the following: Remember that {{ has been substituted for <

{{div style="align: center; C VALUE; height:0505px; width:1025px;

html apparently allows the user to store information in a line like that without affecting anything. The new material might just need to be followed by a ; to show where the next true code information starts.

Your program would search for "C VALUE" in the array text.

The C number would be the 4 digits following "C VALUE; height:"

IN this case the C VALUE number would be 0505

There will always be 4 digits in that number.

The same would be done for A and B.

After the user entered the new values, the program would substitute them in the appropriate array lines and then store the array as a new html file.

If the program user did not like the layout of the new Multiple Window Chart Viewer html file, then he or she could run the program again using new values for A and B.

The value for C would be calculated each time using the equation:

C = A + B + 105

FINALLY

That should be enough for you to create the entire original program. To get started, just choose whatever input and output html file names that you like.

Regards,

EQF


Responses:
[21475] [21476] [21477] [21478] [21479] [21486] [21487] [21488] [21489] [21490] [21491] [21492] [21493] [21494] [21496] [21502] [21495] [21497] [21498] [21499] [21500] [21501] [21503] [21504] [21505] [21506] [21509] [21511] [21513] [21579] [21580] [21583] [21586] [21585] [21584] [21594] [21598] [21521] [21507]


21475


Date: June 13, 2020 at 12:44:49
From: Roger Hunter, [DNS_Address]
Subject: Re: Practice Example Of HTML File June 12, 2020


EQF;

I understand. I've been distracted lately by
family matters and whatnot.

It's settling down now so I'm back on the PC.

Is it possible to have the user enter A and B?
That would save the program searching for them

Roger


Responses:
[21476] [21477] [21478] [21479] [21486] [21487] [21488] [21489] [21490] [21491] [21492] [21493] [21494] [21496] [21502] [21495] [21497] [21498] [21499] [21500] [21501] [21503] [21504] [21505] [21506] [21509] [21511] [21513] [21579] [21580] [21583] [21586] [21585] [21584] [21594] [21598] [21521] [21507]


21476


Date: June 13, 2020 at 15:34:08
From: EQF, [DNS_Address]
Subject: Re: Practice Example Of HTML File June 12, 2020


Posted by EQF on June 13, 2020

Hi Roger,

Remember that this program is supposed to evolve with time. So, that has to be taken into account as decisions are made regarding how the original version will work.

If more advanced versions the program are created it will store the user's choices in a file or files that will be read back in when the user wants. So the program will need to know what values for A and B were used with the earlier version.

The program has to locate those A, B, and C numbers anyway as it has to replace them before it creates the new version.

When the first version of the program is run it will say to the user:

Here are the original values for A and B.

What new values would you like?

When they give it a certain command it will create the new html file and instruct it to run.

If they don't like the appearance, the TrueBasic program will still be there running in the background. And they can exit the html file and tell the TB program to try some different values.

When they have created an html file that they like they can tell the TB program to exit.

Regards,

EQF


Responses:
[21477] [21478] [21479] [21486] [21487] [21488] [21489] [21490] [21491] [21492] [21493] [21494] [21496] [21502] [21495] [21497] [21498] [21499] [21500] [21501] [21503] [21504] [21505] [21506] [21509] [21511] [21513] [21579] [21580] [21583] [21586] [21585] [21584] [21594] [21598] [21521] [21507]


21477


Date: June 13, 2020 at 17:01:07
From: Roger Hunter, [DNS_Address]
Subject: Re: Practice Example Of HTML File June 12, 2020


EQF;

Got it.

Roger


Responses:
[21478] [21479] [21486] [21487] [21488] [21489] [21490] [21491] [21492] [21493] [21494] [21496] [21502] [21495] [21497] [21498] [21499] [21500] [21501] [21503] [21504] [21505] [21506] [21509] [21511] [21513] [21579] [21580] [21583] [21586] [21585] [21584] [21594] [21598] [21521] [21507]


21478


Date: June 13, 2020 at 21:39:42
From: EQF, [DNS_Address]
Subject: Re: Practice Example Of HTML File June 12, 2020


Posted by EQF on June 13, 2020

Hi Roger,

When the first version of the program is fully operational I will store a copy on my Web site along with the program code.

People can then download both, test the program, and make recommendations for features to add etc. You can add those features and others if and when you have the time and interest.

It should be something of a fun project.

QUESTIONS

Can TrueBasic detect keyboard key presses with something like a GETKEY command that does not require that the ENTER key be pressed?

Can it go into a PAUSE or WAIT mode for some period of time or until a key is pressed so that it does not keep a processor running continuously?

Regards,

EQF


Responses:
[21479] [21486] [21487] [21488] [21489] [21490] [21491] [21492] [21493] [21494] [21496] [21502] [21495] [21497] [21498] [21499] [21500] [21501] [21503] [21504] [21505] [21506] [21509] [21511] [21513] [21579] [21580] [21583] [21586] [21585] [21584] [21594] [21598] [21521] [21507]


21479


Date: June 13, 2020 at 21:51:06
From: Roger Hunter, [DNS_Address]
Subject: Re: Practice Example Of HTML File June 12, 2020


EQF;

As far as I know, getkey requires a response but yes,
it can be inside a timed loop such that the program
would continue anyway.

Programming is on and of with me right now because I'm
working on the hardware and looking for a backup PC

Roger


Responses:
[21486] [21487] [21488] [21489] [21490] [21491] [21492] [21493] [21494] [21496] [21502] [21495] [21497] [21498] [21499] [21500] [21501] [21503] [21504] [21505] [21506] [21509] [21511] [21513] [21579] [21580] [21583] [21586] [21585] [21584] [21594] [21598] [21521] [21507]


21486


Date: June 30, 2020 at 12:32:26
From: EQF, [DNS_Address]
Subject: Re: Practice Example Of HTML File June 12, 2020


Posted by EQF on June 30, 2020

Hi Roger and all,

This highly complex Web page that is being developed will probably be done in early July.

It has been and is still being delayed by the time and energy that has to be spent on another important project not related to earthquakes.

Regards to all,

EQF


Responses:
[21487] [21488] [21489] [21490] [21491] [21492] [21493] [21494] [21496] [21502] [21495] [21497] [21498] [21499] [21500] [21501] [21503] [21504] [21505] [21506] [21509] [21511] [21513] [21579] [21580] [21583] [21586] [21585] [21584] [21594] [21598] [21521] [21507]


21487


Date: June 30, 2020 at 18:57:02
From: Roger Hunter, [DNS_Address]
Subject: Re: Practice Example Of HTML File June 12, 2020


EQF;

I'm bogged down in the program.

I don't know how to have the program invoke another
program.

I'll have to do some research on it.

Roger


Responses:
[21488] [21489] [21490] [21491] [21492] [21493] [21494] [21496] [21502] [21495] [21497] [21498] [21499] [21500] [21501] [21503] [21504] [21505] [21506] [21509] [21511] [21513] [21579] [21580] [21583] [21586] [21585] [21584] [21594] [21598] [21521] [21507]


21488


Date: July 02, 2020 at 12:56:51
From: EQF, [DNS_Address]
Subject: Re: Practice Example Of HTML File June 12, 2020


Posted By EQF on July 2, 2020

Hi Roger,

The TB program does not need to call any other programs for its first version. It only needs to read in a text file. File.html can be renamed File.html.txt

Anyway, what is the TB "system" command that lets the user execute a DOS command?

Regards,

EQF


Responses:
[21489] [21490] [21491] [21492] [21493] [21494] [21496] [21502] [21495] [21497] [21498] [21499] [21500] [21501] [21503] [21504] [21505] [21506] [21509] [21511] [21513] [21579] [21580] [21583] [21586] [21585] [21584] [21594] [21598] [21521] [21507]


21489


Date: July 02, 2020 at 14:58:21
From: Roger Hunter, [DNS_Address]
Subject: Re: Practice Example Of HTML File June 12, 2020


EQF;

Like what?
READ, WRITE, PRINT, etc are part of TB

Roger


Responses:
[21490] [21491] [21492] [21493] [21494] [21496] [21502] [21495] [21497] [21498] [21499] [21500] [21501] [21503] [21504] [21505] [21506] [21509] [21511] [21513] [21579] [21580] [21583] [21586] [21585] [21584] [21594] [21598] [21521] [21507]


21490


Date: July 04, 2020 at 03:59:49
From: EQF, [DNS_Address]
Subject: Re: Practice Example Of HTML File June 12, 2020


Posted by EQF on July 4, 2020

Virtually every programming language has some type of "system" command that enables the program to drop down to the DOS level and tell the computer to do things such as start a program running. I am sure TB has one.


Responses:
[21491] [21492] [21493] [21494] [21496] [21502] [21495] [21497] [21498] [21499] [21500] [21501] [21503] [21504] [21505] [21506] [21509] [21511] [21513] [21579] [21580] [21583] [21586] [21585] [21584] [21594] [21598] [21521] [21507]


21491


Date: July 04, 2020 at 05:13:53
From: EQF, [DNS_Address]
Subject: Re: Practice Example Of HTML File June 12, 2020


Posted by EQF on July 4, 2020

Hi again Roger,

See if TB has a "shell" command.

I seem to remember that some versions of BASIC use that command to do what the "system" command does with Perl.

Regards,

EQF


Responses:
[21492] [21493] [21494] [21496] [21502] [21495] [21497] [21498] [21499] [21500] [21501] [21503] [21504] [21505] [21506] [21509] [21511] [21513] [21579] [21580] [21583] [21586] [21585] [21584] [21594] [21598] [21521] [21507]


21492


Date: July 04, 2020 at 08:42:43
From: Roger Hunter, [DNS_Address]
Subject: Re: Practice Example Of HTML File June 12, 2020


EQF

Nope.
no shell

Roger


Responses:
[21493] [21494] [21496] [21502] [21495] [21497] [21498] [21499] [21500] [21501] [21503] [21504] [21505] [21506] [21509] [21511] [21513] [21579] [21580] [21583] [21586] [21585] [21584] [21594] [21598] [21521] [21507]


21493


Date: July 04, 2020 at 08:53:09
From: Roger Hunter, [DNS_Address]
Subject: Re: Practice Example Of HTML File June 12, 2020


EQF

But I don't have a manual for the latest version that
you sent me so maybe it's in there.

The Silver book has a reference to it but the page
listed doesn't have any information.

Roger


Responses:
[21494] [21496] [21502] [21495] [21497] [21498] [21499] [21500] [21501] [21503] [21504] [21505] [21506] [21509] [21511] [21513] [21579] [21580] [21583] [21586] [21585] [21584] [21594] [21598] [21521] [21507]


21494


Date: July 04, 2020 at 09:02:42
From: Roger Hunter, [DNS_Address]
Subject: Re: Practice Example Of HTML File June 12, 2020


EQF;

TB can CHAIN to an external program but it has to be a
TB program.

Roger


Responses:
[21496] [21502] [21495] [21497] [21498] [21499] [21500] [21501] [21503] [21504] [21505] [21506] [21509] [21511] [21513] [21579] [21580] [21583] [21586] [21585] [21584] [21594] [21598] [21521] [21507]


21496


Date: July 05, 2020 at 01:53:10
From: EQF, [DNS_Address]
Subject: Re: Practice Example Of HTML File June 12, 2020


Posted by EQF on July 5, 2020

Roger,

The Internet Web site TB manuals state that CHAIN will start anything running.

Give this a try:

10 Let Prog$ = "Notepad.exe"
20 CHAIN Prog$

A notepad window should appear. TB will then either go into a pause condition or stop running.

That "CHAIN" resource is actually not essential to the development of this program. It has to do with getting the program to do some things besides text editing. For example, once a new html Web page has been created the TB program could command it to open.

Regards,

EQF


Responses:
[21502]


21502


Date: July 08, 2020 at 05:28:57
From: Roger Hunter, [DNS_Address]
Subject: Re: Practice Example Of HTML File June 12, 2020


EQF;

As I said before, it cannot find notepad even if I
tell it where to look.

Roger


Responses:
None


21495


Date: July 04, 2020 at 22:02:48
From: Skywise, [DNS_Address]
Subject: Re: Practice Example Of HTML File June 12, 2020


Roger, according to the following it can be any program.

https://www.truebasic.com/node/479

Seems like an awfully complicated way to achieve what
was originally described as a "simple programming
project". But then, I can't quite figure out from what's
in this thread just what the project actually is.

Don't mind me. I'll just go back to my own thing....

Brian


Responses:
[21497] [21498] [21499] [21500] [21501] [21503] [21504] [21505] [21506] [21509] [21511] [21513] [21579] [21580] [21583] [21586] [21585] [21584] [21594] [21598] [21521] [21507]


21497


Date: July 05, 2020 at 07:07:50
From: Roger Hunter, [DNS_Address]
Subject: Re: Practice Example Of HTML File June 12, 2020


Skywise;

It's confusing. In some places it says "any TrueBasic"
program while other places mention Excel.

I may just have to try it to see if it works.

Roger


Responses:
[21498] [21499] [21500] [21501] [21503] [21504] [21505] [21506] [21509] [21511] [21513] [21579] [21580] [21583] [21586] [21585] [21584] [21594] [21598] [21521] [21507]


21498


Date: July 05, 2020 at 07:28:41
From: Roger Hunter, [DNS_Address]
Subject: Re: Practice Example Of HTML File June 12, 2020


It says "Program not available for CHAIN"

Roger


Responses:
[21499] [21500] [21501] [21503] [21504] [21505] [21506] [21509] [21511] [21513] [21579] [21580] [21583] [21586] [21585] [21584] [21594] [21598] [21521] [21507]


21499


Date: July 05, 2020 at 22:46:32
From: EQF, [DNS_Address]
Subject: Re: Practice Example Of HTML File June 12, 2020


Posted by EQF on July 6, 2020

Give this a try:

10 Let Prog$ = "C:\WINDOWS\System32\notepad.exe"
20 CHAIN Prog$

or

10 CHAIN "C:\WINDOWS\System32\notepad.exe"

or

10 SET DIRECTORY "C:\WINDOWS\System32"
20 Let Prog$ = "notepad.exe"
30 CHAIN Prog$

If that doesn't work they try to get TB to open any other TB program. That should work. Then try to get it to open a TB program in some other directory using the full program and directory address.

Something has to work!

EQF


Responses:
[21500] [21501] [21503] [21504] [21505] [21506] [21509] [21511] [21513] [21579] [21580] [21583] [21586] [21585] [21584] [21594] [21598] [21521] [21507]


21500


Date: July 06, 2020 at 09:33:28
From: Roger Hunter, [DNS_Address]
Subject: Re: Practice Example Of HTML File June 12, 2020


EQF;

It won't chain to notepad in any configuration.

Testing a TB program next.

Roger


Responses:
[21501] [21503] [21504] [21505] [21506] [21509] [21511] [21513] [21579] [21580] [21583] [21586] [21585] [21584] [21594] [21598] [21521] [21507]


21501


Date: July 06, 2020 at 10:14:31
From: Roger Hunter, [DNS_Address]
Subject: Re: Practice Example Of HTML File June 12, 2020


EQF;

It won't chain to a TB program either.

The error message says there is no program to chain to
at line 10 in the program.

But the program is only 6 lines long.

Odd.

Roger


Responses:
[21503] [21504] [21505] [21506] [21509] [21511] [21513] [21579] [21580] [21583] [21586] [21585] [21584] [21594] [21598] [21521] [21507]


21503


Date: July 09, 2020 at 00:59:37
From: EQF, [DNS_Address]
Subject: Re: Practice Example Of HTML File June 12, 2020


Posted by EQF on July 9, 2020

There must be something wrong with the format of the statements. I will take a look at the TB Web site some time to see if they have any examples of CHAIN commands that do work.

Formatting problems are common. One of the reasons I continue to work with Perl, DOS, and GNUPLOT is that over the years I have learned how to get past their formatting limitations. That took LOTS of time and trying different things.

That CHAIN command is not needed to work on the original text editing program. That just involves opening and closing files and reading information from and to them. We already know how to do those things.

Regards,

EQF


Responses:
[21504] [21505] [21506] [21509] [21511] [21513] [21579] [21580] [21583] [21586] [21585] [21584] [21594] [21598] [21521] [21507]


21504


Date: July 09, 2020 at 01:31:53
From: ryan, [DNS_Address]
Subject: Re: Practice Example Of HTML File June 12, 2020


PHP


Responses:
[21505] [21506] [21509] [21511] [21513] [21579] [21580] [21583] [21586] [21585] [21584] [21594] [21598] [21521] [21507]


21505


Date: July 09, 2020 at 08:45:02
From: ryan, [DNS_Address]
Subject: Re: Practice Example Of HTML File June 12, 2020


and javascript and CSS


Responses:
[21506] [21509] [21511] [21513] [21579] [21580] [21583] [21586] [21585] [21584] [21594] [21598] [21521] [21507]


21506


Date: July 11, 2020 at 05:27:13
From: EQF, [DNS_Address]
Subject: Re: Practice Example Of HTML File June 12, 2020


Posted by EQF on July 11, 2020

With humor intended, ancient GWBasic might be more DOS friendly than True Basic, in my opinion.

My experience has been that Roger is forever "joined at the hop" with True Basic.

As he is doing the work for free, any work that he does should be considered a "gift." One should "Never look a gift horse (or dinosaur) in the mouth" as the saying goes.

Regards,

EQF


Responses:
[21509] [21511] [21513] [21579] [21580] [21583] [21586] [21585] [21584] [21594] [21598] [21521] [21507]


21509


Date: July 11, 2020 at 09:38:31
From: Roger Hunter, [DNS_Address]
Subject: Re: Practice Example Of HTML File June 12, 2020


EQF;

That's easily explained. My first language was
FORTRAN on government mainframes.

I switched to TrueBasic when graphics became
necessary. That was a LONG time ago. TB served me
well until now and at 85 years old I'm not about to
dive into Perl, Python or such.

I'll do what I can for you because I enjoy the
mental exercise but if TB won't do it, it won't get
done.

The main problem now is that TB is supposed to do it
but fails and I don't know any way out of it.

Roger


Responses:
[21511] [21513] [21579] [21580] [21583] [21586] [21585] [21584] [21594] [21598] [21521]


21511


Date: July 11, 2020 at 12:29:28
From: EQF, [DNS_Address]
Subject: Re: Practice Example Of HTML File June 12, 2020


Posted by EQF on July 11, 2020

Hi Roger,

It you are trying to get TB to read a .html file that might be the problem.

Try changing the extension to .txt or even .dat You know that TB will always read a text file.

Regards,

EQF


Responses:
[21513] [21579] [21580] [21583] [21586] [21585] [21584] [21594] [21598] [21521]


21513


Date: July 11, 2020 at 12:58:37
From: Roger Hunter, [DNS_Address]
Subject: Re: Practice Example Of HTML File June 12, 2020


EQF;

TB reads the html files just fine as long as the
extension is changed to .txt

It's just CHAIN that isn't working.

Roger


Responses:
[21579] [21580] [21583] [21586] [21585] [21584] [21594] [21598] [21521]


21579


Date: July 26, 2020 at 16:25:17
From: EQF, [DNS_Address]
Subject: Re: Practice Example Of HTML File June 12, 2020


Posted by EQF on July 26, 2020

Hi Roger,

Could you download and take a look at this program? It is a freeware version of BASIC that will work with DOS and is apparently being actively supported.

http://robhagemans.github.io/pcbasic/

It does have a "shell" command. I don't know too much more about it such as if it uses 100% of a processor time while waiting for a key press.

Regards,

EQF


Responses:
[21580] [21583] [21586] [21585] [21584] [21594] [21598]


21580


Date: July 26, 2020 at 16:54:55
From: Roger Hunter, [DNS_Address]
Subject: Re: Practice Example Of HTML File June 12, 2020


EQF;

Here's all it says about SHELL

SHELL
SHELL [command]
Starts an operating system subshell on the console.
If command is specified, the command is executed on
the shell and execution returns to the program.

To enable this statement, the shell option must be
set to a valid command interpreter.

Parameters
command is a string expression.
Notes
Be careful when enabling this command, as it allows
the running BASIC program full access to your files
and operating system.
Errors
shell option is not specified: Illegal function
call.
command has a number value: Type mismatch.
All output from the operating system subshell,
including error messages, is displayed on the PC-
BASIC screen.

TB has SHELL too but only for other TB programs.

Roger


Responses:
[21583] [21586] [21585] [21584] [21594] [21598]


21583


Date: July 26, 2020 at 21:21:45
From: EQF, [DNS_Address]
Subject: Re: Practice Example Of HTML File June 12, 2020


Posted by EQF July 26, 2020

The question is, can YOU use it to write Basic programs instead of using TB? It is supposed to be GWBasic compatible.

Some of its advantages would be:

--- It is freeware, so anyone can use it.

--- It is actively supported by some group or individual. So if there is a problem there is a way to get some action taken.

--- It appears to have a graphics package that will work with DOS and Windows.

I don't yet know:

--- Does it compile the program or run one line of code at a time? That can make a tremendous difference on how fast a program will run.

--- Can it create a .exe version of a program?

--- Can it send characters to the operating system as if they were typed on the keyboard.

--- Does it use 100% of a processor's time while it is waiting for a key press?

My recommendation is to download it and give it a try. I plan to do that myself some time this coming week.

Regards,

EQF


Responses:
[21586] [21585] [21584] [21594] [21598]


21586


Date: July 27, 2020 at 12:11:38
From: Roger Hunter, [DNS_Address]
Subject: Re: Practice Example Of HTML File June 12, 2020


EQF;

Your best option is to use Skywise, if he's willing.

C++ is the proper language to use and it would take me
a year to learn it IF I was willing (I'm not).

Roger


Responses:
None


21585


Date: July 27, 2020 at 11:14:20
From: Skywise, [DNS_Address]
Subject: Re: Practice Example Of HTML File June 12, 2020


One can meet and exceed all those requirements with
C/C++.

I use Code::Blocks as the IDE with GCC as the compiler,
wxWidgets as the GUI library for Windows apps. There are
free versions of MS's Visual Studio as well.

All this is free and actively maintained.

Can do both DOS and Windows apps.

Also cross-platform capable Windows/Linux/Mac. (not
Visual Studio)

Compiles to fast exe. And depending on the app and the
programmer skill, really effing fast.

Yes, it isn't as easy to learn. But you get what you
pay for. Easy programming means limited programs. Which
is what finally drove me to bite the bullet and learn
'real' programming. I regret not doing it much much
sooner.

Sending keypresses is accessed at the OS level. I've not
done that exact thing but a quick google search found
within a minute, examples of how to do it.

A properly written program will not use up 100% cpu just
to wait. In fact, that could be considered obsolete and
wasteful. Bad programming. Current programs and OS's are
event driven. Nothing happens until an event happens.

I'm not sure what you are trying to accomplish but the
very notion of shelling to other programs and simulating
keypresses sounds like you're trying to do things
exactly the wrong way.

You need to seriously examine the end goal and determine
the best approach to meet it. Then pick the right tools
to implement that approach.

It sounds like you are trying to fit a Cummins diesel
engine into a Ford Pinto in order to tow an airplane
on railroad tracks across the ocean in order to deliver
a message to a coworker in the next cubicle.

My point is, you seem to be trying to take different
bits of programs and code and smush them all together
to accomplish some simple task.

It might be much more efficacious to write a single
program to do all the tasks from beginning to end.
Try a post-it note, or intranet email.

But you are so secretive about yourself and what you
are doing, it's very difficult for anyone to actually
help you. Which also begs the question, if you want to
keep it all a secret, why elicit others to do the work
for you? You seem to know enough and have the time to
tell others exactly how to do the task, so why not do
it yourself.

I still can't figure out what you are actually trying
to accomplish.

Brian


Responses:
None


21584


Date: July 27, 2020 at 07:00:14
From: Roger Hunter, [DNS_Address]
Subject: Re: Practice Example Of HTML File June 12, 2020


EQF;

As I said, it is an interpreter; it executes one
line at a time.

It does not compile to an exe.

Yes, I could learn to use it in maybe 6 months.

I did download it. It looks very much like DOS.

I don't know about sending characters to the OS
or using all the CPU time.

Roger


Responses:
[21594] [21598]


21594


Date: August 01, 2020 at 21:48:22
From: EQF, [DNS_Address]
Subject: Re: Practice Example Of HTML File June 12, 2020


Posted by EQF on August 1, 2020

This discussion is beyond belief. We are talking about an EXTREMELY simple computer program. It could be written using GWBasic in a matter of hours.

It is no wonder that nothing ever gets done with the science of earthquake forecasting.

The discussion will continue using E-mail until there is something positive to report.

Regards to all,

EQF


Responses:
[21598]


21598


Date: August 02, 2020 at 21:05:48
From: Skywise, [DNS_Address]
Subject: Re: Practice Example Of HTML File June 12, 2020


"This discussion is beyond belief. We are talking
about an EXTREMELY simple computer program. It could be
written using GWBasic in a matter of hours."


If that's the case, then why not give it a go yourself?
Seriously. You've spent weeks posting about how simple
this task is and how to do it. You could have had it done
by now. Seems like an inefficient use of your precious
time.

Brian


Responses:
None


21521


Date: July 12, 2020 at 03:19:57
From: EQF, [DNS_Address]
Subject: Re: Practice Example Of HTML File June 12, 2020


Posted by EQF on July 12, 2020

If the CHAIN command cannot be made to work no matter what format is used then there is another way to get around the problem. It is too complicated to discuss at this time.

EQF


Responses:
None


21507


Date: July 11, 2020 at 05:28:57
From: EQF, [DNS_Address]
Subject: Re: Practice Example Of HTML File June 12, 2020


That should have been "Joined at the hip."

Small text. Imperfect vision.


Responses:
None


21444


Date: June 06, 2020 at 21:27:53
From: Skywise, [DNS_Address]
Subject: Re: Earthquake Forecasting Update June 6, 2020


Speaking from a purely programming point of view...

Such a project would be about as complex, or more, as
the one I've been working on. Roger knows what I've been
doing.

If the intent is to be able to have such a program
available to different OS's, then it would have to be
written in a language for which a compiler is available
to all those OS's. The code would have to be OS agnostic,
meaning it cannot depend on system specific behavior as
much as possible. It would also require any support
libraries to be available on all target platforms as
well. To do otherwise would result in inventing the same
wheel over and over again for each target. The idea is to
share the same code for all targets as much as possible.

As such, that is partly why I use the tools, libraries,
and development environment that I do, even though all
the programs I write are for myself on Windows.

I program in C/C++, which is widely available on so many
platforms it's uncountable. Certainly Windows, MacOS, and
Linux to be sure. I've even used C on the microcontroller
I toy around with.

The IDE I use is Code::Blocks, which is available for
Windows and Linux. It is available for MacOS but is an
older version due to lack of developers on that platform
and Apple specific issues.

The graphical user interface library I use, wxWidgets can
be compiled for all three of these platforms as well. It
provides for a native look on all platforms while using
the same commands for each.

Retrieving data from a website would require the use of
a networking library. I recently started using libcurl as
it supports encrypted HTTPS (required by my current
project). It is, of course, available on all three of
these platforms. Although the application suggested may
not require HTTPS, it is highly recommended if the web
host supports it.

If I had access to the other OS's, I could certainly
develop code for both Windows and Linux with minimal
difficulty. MacOS would be more difficult due to the lack
of any Mac hardware and the relatively weak development
of my chosen IDE on that platform.

A serious contender is the mobile phone market. The big
platforms here are, first Android, then IOS. However,
development on these devices is not so cross platform
with desktop/laptop OS's, and would require a parallel
development effort. Different languages, libraries, and
IDE's. Pretty much everything is different.

BTW, more than half of all personal computer usage is on
mobile devices - phones, tablets, etc....

BTW2, the number one web client usage to websites is
Android, followed by Windows, then IOS.

Writing code for one's personal use is one thing. Writing
code for other's to use is an entirely different animal
and requires making many decisions and locking them in
before even the first line of code is written.

Probably the most platform independent method is simply a
website. Any browser on any platform that supports a
given standard will be able to provide the application to
the user. For example, this forum works on any OS on any
device that has a web browser and internet connectivity.
Be that Windows, Linux, MacOS, Android, IOS, MacOS,
ChromeOS, etc... using Edge, Safari, Firefox, Chrome,
Explorer, Opera, etc... on a desktop, laptop, smartphone,
tablet, etc....And Mr. Bopp doesn't have to do
anything special to support them.

So, it may be worth considering a serious website
development effort instead. However, you may need to
switch to a paid web host in order to achieve results.

Brian



Responses:
[21445] [21446] [21447]


21445


Date: June 06, 2020 at 22:43:30
From: ryan, [DNS_Address]
Subject: Re: Earthquake Forecasting Update June 6, 2020


i'm pretty much out of the game but php is pretty powerful...good database/sql support plus lots of modules to deal with web display...i haven't done much though since html moved away from tables and such to screen positioning...


Responses:
[21446] [21447]


21446


Date: June 07, 2020 at 09:38:20
From: Skywise, [DNS_Address]
Subject: Re: Earthquake Forecasting Update June 6, 2020


Yep. PHP on the server side and javascript on the
client side. HTML5 is pretty powerful. Combine that
with Ajax and you can do just about anything in the
browser. Even real time 3d graphics.

I don't do any of this type of programming, but am
aware of it. Especially since I use a script blocker
and had to figure out what scripts were ok/necessary.
Although, I have dabbled with PHP a bit when toying
with a redesign of my own websites.

Perl, although not 'dead', and probably quite capable
of accomplishing the task, is probably not the best
choice. Especially if one is looking to acquire a
developer. Perl currently ranks 16th on the TIOBE index
of languages, well behind the likes of C, Java, Python,
C++, JavaScript, PHP, and SQL - respectively ranked
1st, 2nd, 3rd, 4th, 8th, and 10th.

https://www.tiobe.com/tiobe-index/

Basically, the more popular and used the language is,
the more developers and developer resources there will
be. IE, easier to find answers to your problems. I
almost never have to ask questions in a forum for my
programming needs. Any problem I've had in C/C++, a
million other people have already published solutions
for. Google is my friend. (BTW, I don't just cut &
paste other's code. I search for concepts and techniques
to grok then write my own.)

Brian


Responses:
[21447]


21447


Date: June 07, 2020 at 12:34:04
From: ryan, [DNS_Address]
Subject: Re: Earthquake Forecasting Update June 6, 2020


yah, javascript is really a powerful tool for pages being viewed in a browser...dynamic and instantaneous, usually without page refreshing...PERL was always a language devised for text manipulation...these boards run on PERL...but it is a clumsy language for web stuff...PHP is much better suited because the web is mainly what it has been developed for...don't count out pre-made scripts...there are a lot of good ones out there written by really good coders...just need to beselective and know enough to recognize a good one...


Responses:
None


[ Roll & Rock ] [ Main Menu ]

Generated by: TalkRec 1.17
    Last Updated: 30-Aug-2013 14:32:46, 80837 Bytes
    Author: Brian Steele