Christopher2222

MaplePrimes Activity


These are replies submitted by Christopher2222

I tried to see the differences between showstat(Maplets[Elements][TextField]) and showstat(Maplets[Elements][PasswordField]) but I could find none.  As far as I could tell both codes were exactly the same. 

I had access to a newer version of Maple and discovered Maplets[Elements][PasswordField] it is similar to what I am after and I thought it would hold a key to what I am after.

I used showstat but the code is long and I was unable to locate which part of the code could help me.  Anyone?

Okay so here's a bit of code, the idea was so that any onlookers couldn't read the input.

with(Maplets[Elements]):
maplet:=Maplet([["Enter string to be hashed:", BoxCell(TextBox['S1'](1 .. 32, foreground = white))], Button("OK", Shutdown(['S1']))]):
result:=Maplets[Display](maplet):
StringTools[Hash](result[1]);

The simplest way was to change the fontcolor to white so you can't see it, password hiding really, but the intention is to display different letters and not just *'s.

 

 

From a maplet in the standard GUI.

Say for example each character I push a different letter is displayed. 

@acer Yes, the m format file I am trying to look at is not mine.  Although using m files makes code faster, I suppose an unintended side effect of using m files is that the code remains slightly cryptic.

Although seeing that the m files are just a collection of assignment statements or procs the order is not that important.  I think using anames() before and after loading the m file and getting the differences should lead someone to find the important contents within the m file.  Originally I thought simply opening an m file would simply display the procs within the file.

(Unfortunately I was not reviewing the HYPERG question.)

To be more clear ... (thanks for anames)  Is there any way to extract the code from a .m file so I can see how it works?

I can use anames() to find out what commands are already available.  Then load the m file

read("g:/somefile.m")

then use anames() again to compare and see what new commands are available and use showtat() to examine some of the contents of the code. 

Is that generally what is done to explore and redesign files stored in a maple internal format?

Actually, probably, what I should have asked is how do I modify the contents of an .m file?

This is interesting.  It touches on, and could be extended to, cluster analysis.  Funnily enough, or sadly, the only two cluster analysis questions asked here in mapleprimes were by someone in 2006 (and it was never really answered) and by me which garnered zero response - of course a project I had started, abandoned and since dormant until now as we speak.

Strange, executing the with(StringTools[PatternDictionary]) produces a dictionary command.  Is it undocumented???

with(StringTools[PatternDictionary])
                             [Create, Factors, Get, Search, Size, dictionary]

dictionary is in the list of commands which is undocumented and appears to not have a use.  Executing the with command does bring up all useable commands within the package right?  If so, ,why is dictionary there?  and why is there no mention of it in the help file?

@soechristian Make sure you've highlighted all of the graphs with your mouse and not just selecting to export in which case it can only export one section at a time. 

Not sure about the problem you experience with pdf but a workaround is to highlight the full 4 graphs and first paste them into microsoft Word then copy from there. 

@soechristian Make sure you've highlighted all of the graphs with your mouse and not just selecting to export in which case it can only export one section at a time. 

Not sure about the problem you experience with pdf but a workaround is to highlight the full 4 graphs and first paste them into microsoft Word then copy from there. 

An interesting observation showed (in M12 at least anyway) that creating the module manually produced a minor different result on execution however does not appear in M14 I have discovered.

word := module ()
  option unload =free,dictionary;
  local did, stringlist, free;
  export get, size, search;
end module

results in :
                    word:= module() option unload=free,PatternDictionary:-dictionary; local did, stringlist, free; export get, size, search;  end module

as opposed to
                  word:= module() option unload=free, dictionary; local did, stringlist, free; export get, size, search;  end module

when the word:=Create('builtin') command is used


The slight difference only the reference to Pattern:-dictionary instead of just dictionary.  Perhaps that represents part of the reason?  but maybe not, just thought I'd point it out.

It would be interesting to know how to insert this as an option in the command, in any case..

using the mouse

Right click on the graph -> Table -> Properties...  and select none for both interior and exterior borders.

 

It would be interesting to know how to insert this as an option in the command, in any case..

using the mouse

Right click on the graph -> Table -> Properties...  and select none for both interior and exterior borders.

 

ospd3 exists in the code but doesn't work prior to M15

with(StringTools):
with(PatternDictionary):
> bid := Create('ospd3');
Error, (in create) argument must be a list of strings, or the special name `builtin'

> bid := Create(something); #just to see what Maple is loooking for
Error, invalid input: StringTools:-PatternDictionary:-Create expects its 1st argument, dict, to be of type {list(string), identical(builtin), identical(ospd3)}, but received something

It shows in the error that type ospd3 is there, but doesn't recognize when it's used for some reason.  How can we get it to work?

Indeed, and there is a story behind it. 

Work started on that project as early as June 22, 2010 initiated by me when I contacted the author about how to download earthquake data using the internet on a different site named seismon using sockets.  I then asked about using HTTP[Get] which, was undocumented, when I had a problem downloading from the site in my application.  Apparently the key was hidden control characters in the loaded information causing errors.  Simply getting Maple to find and remove the control characters worked nicely.  He sent me his complete application on Aug 4, 2010 which later appeared, to his full credit as you know, in the application center on April 14, 2011 for Maple 15. 

Finding the control character problem was the key, and allowed me to complete and continue with my applications one of which I had roughly completed Aug 17, 2010 (the application as above).  The author had mentioned it would make a great blog and that he would make reference to me in the post, I don't think that happened.  Of course that application is all of his work, but having my name attached to the originality of the idea for Maple was gone.  In any case thumbs up to his work on the project and thanks to him, the error Maple kept throwing with HTTP[Get] for certain data was solved.

First 99 100 101 102 103 104 105 Last Page 101 of 155