PatrickT

Dr. Patrick T

2108 Reputation

18 Badges

16 years, 303 days

MaplePrimes Activity


These are replies submitted by PatrickT

@pagan 

how long should I insist while remaining sane and not alienating everyone else?

I've been on this several hours. I dare not say how many.

I can get the bat file to launch standard, but that's about it.

for instance, just a few attempts to give the general flavour:

@echo off

"C:\Program Files\Maple 15\bin.win\maplew.exe" -c'read("tmp.mpl");'

Error, incorrect syntax in parse: reserved word `read` unexpected (near 5th character of parsed string)

@echo off
"C:\Program Files\Maple 15\bin.win\maplew.exe" -c'read("C:/maple/tmp.mpl");'

Error, incorrect syntax in parse: reserved word `read` unexpected (near 5th character of parsed string)

@echo off

"C:\Program Files\Maple 15\bin.win\maplew.exe" -c read("tmp.mpl");

Error, read must have a file name

@echo off
"C:\Program Files\Maple 15\bin.win\maplew.exe" -cread("tmp.mpl");

Error, read must have a file name

@echo off
"C:\Program Files\Maple 15\bin.win\maplew.exe" -c read("tmp");

Error, read must have a file name

@echo off
"C:\Program Files\Maple 15\bin.win\maplew.exe" -c'read`C:\maple\tmp.mpl`;'

Error, incorrect syntax in parse: reserved word `read` unexpected (near 5th character of parsed string)

@echo off
"C:\Program Files\Maple 15\bin.win\maplew.exe" -c'read`tmp.mpl`;'

Error, incorrect syntax in parse: `;` unexpected (near 5th character of parsed string)

 

I'd be grateful for some hints here about these DOS commands!

@pagan 

how long should I insist while remaining sane and not alienating everyone else?

I've been on this several hours. I dare not say how many.

I can get the bat file to launch standard, but that's about it.

for instance, just a few attempts to give the general flavour:

@echo off

"C:\Program Files\Maple 15\bin.win\maplew.exe" -c'read("tmp.mpl");'

Error, incorrect syntax in parse: reserved word `read` unexpected (near 5th character of parsed string)

@echo off
"C:\Program Files\Maple 15\bin.win\maplew.exe" -c'read("C:/maple/tmp.mpl");'

Error, incorrect syntax in parse: reserved word `read` unexpected (near 5th character of parsed string)

@echo off

"C:\Program Files\Maple 15\bin.win\maplew.exe" -c read("tmp.mpl");

Error, read must have a file name

@echo off
"C:\Program Files\Maple 15\bin.win\maplew.exe" -cread("tmp.mpl");

Error, read must have a file name

@echo off
"C:\Program Files\Maple 15\bin.win\maplew.exe" -c read("tmp");

Error, read must have a file name

@echo off
"C:\Program Files\Maple 15\bin.win\maplew.exe" -c'read`C:\maple\tmp.mpl`;'

Error, incorrect syntax in parse: reserved word `read` unexpected (near 5th character of parsed string)

@echo off
"C:\Program Files\Maple 15\bin.win\maplew.exe" -c'read`tmp.mpl`;'

Error, incorrect syntax in parse: `;` unexpected (near 5th character of parsed string)

 

I'd be grateful for some hints here about these DOS commands!

very useful tips, thanks Robert, thanks pagan. I have code doing this in a roundabout manner, this is much better and I will use it.

rtable_scanblock, not exactly a pretty name, not a name I would ever imagine could do something useful for me, how wrong I've been proved. The help page is useful, interestingly it states that:

The rtable_scanblock command is thread-safe as of Maple 15.

And this matters because? I found this explanation:

In computer programming, thread-safe describes a program portion or routine that can be called from multiple programming threads without unwanted interaction between the threads. (A thread is an instance of the program running on behalf of some user or process.) Thread safety is of particular importance to Java programmers, since Java is a programming language that provides built-in support for threads. By using thread-safe routines, the risk that one thread will interfere and modify data elements of another thread is eliminated by circumventing potential data race situations with coordinated access to shared data.

http://searchcio-midmarket.techtarget.com/definition/thread-safe

 

 

very useful tips, thanks Robert, thanks pagan. I have code doing this in a roundabout manner, this is much better and I will use it.

rtable_scanblock, not exactly a pretty name, not a name I would ever imagine could do something useful for me, how wrong I've been proved. The help page is useful, interestingly it states that:

The rtable_scanblock command is thread-safe as of Maple 15.

And this matters because? I found this explanation:

In computer programming, thread-safe describes a program portion or routine that can be called from multiple programming threads without unwanted interaction between the threads. (A thread is an instance of the program running on behalf of some user or process.) Thread safety is of particular importance to Java programmers, since Java is a programming language that provides built-in support for threads. By using thread-safe routines, the risk that one thread will interfere and modify data elements of another thread is eliminated by circumventing potential data race situations with coordinated access to shared data.

http://searchcio-midmarket.techtarget.com/definition/thread-safe

 

 

thanks Stefan for sharing this news,

rest in peace Dennis Ritchie.

it's hit and miss here, I too use firefox 7, on windows 7x64. In recent months I've often been successful in copying 2D math from standard gui, but the occasional glitch occurs, usually if I try to copy several lines, and in the last few days I'm getting mapleprimes display all garbled up,

http://www.mapleprimes.com/questions/126581-Mapleprimes-Forum-Display-Problems

thanks pagan, that's been useful to me too. I made your code into a simple procedure, for reference:

MakeLatex := proc(S::evaln)
  local s:
  interface(quiet=true):
  writeto(cat(convert(S,string),".tex")):
  printf("\$\n");
  for s in S do
    latex(s);
    printf("\\\\\n");
  end do:
  printf("\$\n");
  writeto(terminal):
end proc:

### Test Procedure
S12 := S[1..2]:
MakeLatex(S12);

thanks pagan, that's been useful to me too. I made your code into a simple procedure, for reference:

MakeLatex := proc(S::evaln)
  local s:
  interface(quiet=true):
  writeto(cat(convert(S,string),".tex")):
  printf("\$\n");
  for s in S do
    latex(s);
    printf("\\\\\n");
  end do:
  printf("\$\n");
  writeto(terminal):
end proc:

### Test Procedure
S12 := S[1..2]:
MakeLatex(S12);

Alejandro,

thanks, again, how on earth did you find this workaround! it's great to know, and while it's disappointing that a workaround is needed, it does make me feel a lot better to see that, this time, I wasn't doing anything silly.

I suppose that this is an instance of "product limitation" rather than a "bug" (Ref. your recent comment, http://www.mapleprimes.com/posts/126371-Maple-17-Wish-List#comment126509).

EDIT: Is this the content of your batch file to execute Maple Standard?
"C:\Program Files\Maple 15\bin.win\maplew.exe" %1 %2 %3 %4

I gather from your setup that you keep several versions of Maple on your machine? It's probably a very good idea!

I have been using notepad++ as a basic editor under windows and eclipse under linux, both look like they could be set up like medit. I won't try though, I'm happy with medit, I like that it's minimal, thanks for introducing me to it. The latest release is very recent, and I'm sure you know this, a new feature is the two-column view, very nice.

pagan,

thanks, yes, I don't have any embedded components or startup region programmed, using "export as" has worked for me so far, indeed. I was also curious to see if there might be a way to produce an .mw or .mws file from the .mpl from a batch file or by calling a procedure. (As I think about it though, something occurs to me, since the "execution groups" are lost when converting from .mw to .mpl, they would not be recreated when converting from .mpl to .mw. Not a problem if I stop using the GUIs altogether, but a minor annoyance if I retain my old habit of using the GUI. Perhaps Robert's procedure could be adapted for this purpose, as it is based on identifying the execution groups, but it does not appear to be a priority at this moment so I probably won't even attempt it).

thanks for the suggested workaround to read .mpl with Maple 15 Standard GUI, I'll try that when I return to the office (it's like monsoon weather outside today).

EDIT: would you mind writing explicitly the code for your workaround, do you mean something like this:

read "C:\Program Files\Maple 15\bin.win\maplew.exe" -c

do you execute this from a batch file or from the command line or elsewhere? thanks!

Patrick.

Alejandro,

thanks, again, how on earth did you find this workaround! it's great to know, and while it's disappointing that a workaround is needed, it does make me feel a lot better to see that, this time, I wasn't doing anything silly.

I suppose that this is an instance of "product limitation" rather than a "bug" (Ref. your recent comment, http://www.mapleprimes.com/posts/126371-Maple-17-Wish-List#comment126509).

EDIT: Is this the content of your batch file to execute Maple Standard?
"C:\Program Files\Maple 15\bin.win\maplew.exe" %1 %2 %3 %4

I gather from your setup that you keep several versions of Maple on your machine? It's probably a very good idea!

I have been using notepad++ as a basic editor under windows and eclipse under linux, both look like they could be set up like medit. I won't try though, I'm happy with medit, I like that it's minimal, thanks for introducing me to it. The latest release is very recent, and I'm sure you know this, a new feature is the two-column view, very nice.

pagan,

thanks, yes, I don't have any embedded components or startup region programmed, using "export as" has worked for me so far, indeed. I was also curious to see if there might be a way to produce an .mw or .mws file from the .mpl from a batch file or by calling a procedure. (As I think about it though, something occurs to me, since the "execution groups" are lost when converting from .mw to .mpl, they would not be recreated when converting from .mpl to .mw. Not a problem if I stop using the GUIs altogether, but a minor annoyance if I retain my old habit of using the GUI. Perhaps Robert's procedure could be adapted for this purpose, as it is based on identifying the execution groups, but it does not appear to be a priority at this moment so I probably won't even attempt it).

thanks for the suggested workaround to read .mpl with Maple 15 Standard GUI, I'll try that when I return to the office (it's like monsoon weather outside today).

EDIT: would you mind writing explicitly the code for your workaround, do you mean something like this:

read "C:\Program Files\Maple 15\bin.win\maplew.exe" -c

do you execute this from a batch file or from the command line or elsewhere? thanks!

Patrick.

By calling cmaple.exe in the batch file, classic maple is run on the .mpl file. And it works properly.

Unfortunately I haven't been able to get standard maple to work yet.  I created a batch file that is identical to the previous one expect that it calls maplew.exe instead of cmaple.exe, as I thought that would be the way to run standard maple. But nothing seems to happen: no output is shown in the output window, but the windows task manager does show that maple.exe is running.I tried to point to Maple 15/jre/bin/maple.exe instead of Maple 15/bin.win/maplew.exe, but this doesn't work either.

Any ideas? Thanks!

In the meantime I've googled on version control systems and it looks like git (git-scm.com) is receiving rave reviews, so I'll try to set that up.

By calling cmaple.exe in the batch file, classic maple is run on the .mpl file. And it works properly.

Unfortunately I haven't been able to get standard maple to work yet.  I created a batch file that is identical to the previous one expect that it calls maplew.exe instead of cmaple.exe, as I thought that would be the way to run standard maple. But nothing seems to happen: no output is shown in the output window, but the windows task manager does show that maple.exe is running.I tried to point to Maple 15/jre/bin/maple.exe instead of Maple 15/bin.win/maplew.exe, but this doesn't work either.

Any ideas? Thanks!

In the meantime I've googled on version control systems and it looks like git (git-scm.com) is receiving rave reviews, so I'll try to set that up.

I just timed it, it's 20 seconds (my laptop is i-7, recent, fast). Longer than what some elevators take to go up 20 floors...

The .mpl file size is 81,929 versus 166,061 for the .mw file with output removed and "restart" executed.

I just timed it, it's 20 seconds (my laptop is i-7, recent, fast). Longer than what some elevators take to go up 20 floors...

The .mpl file size is 81,929 versus 166,061 for the .mw file with output removed and "restart" executed.

First 32 33 34 35 36 37 38 Last Page 34 of 93