Welcome Guest! To enable all features please Login. New Registrations are disabled.

Notification

Icon
Error

Login


16 Pages«<34567>»
Options
Go to last post Go to first unread
Offline mkraska  
#81 Posted : 11 March 2014 23:55:51(UTC)
mkraska


Rank: Advanced Member

Groups: Registered
Joined: 15/04/2012(UTC)
Posts: 1,985
Germany

Was thanked: 1124 time(s) in 721 post(s)
You are right, that is a bug in the translation (already in the Todo in SVN). Kay is on vacation...
Martin Kraska

Pre-configured portable distribution of SMath Studio: https://smath.com/wiki/SMath_with_Plugins.ashx
thanks 1 user thanked mkraska for this useful post.
on 12/03/2014(UTC)
Offline mkraska  
#82 Posted : 30 March 2014 14:40:19(UTC)
mkraska


Rank: Advanced Member

Groups: Registered
Joined: 15/04/2012(UTC)
Posts: 1,985
Germany

Was thanked: 1124 time(s) in 721 post(s)
Originally Posted by: kilele Go to Quoted Post
Originally Posted by: mkraska Go to Quoted Post

  • Due to registring a path to Maxima during setup, SMath is not really portable any more unless you can use the same Maxima path on different systems
    [/list]


  • Thank you very much, Kay and Martin!!
    You may want to contact the author of the portable version of Maxima at portableapps.com
    http://portableapps.com/node/23391

    There is now a workaround to use SMath and Maxima on a portable storage device http://smath.info/bts/Issues/IssueDetail.aspx?id=94
    Remaining problems:
    • Path to Maxima must be edited by hand in maxima.xml
    • X-Maxima must be launched at least once on a given host system in order to create temp directories on the host system (portable Maxima is just configured like that)

    Martin Kraska

    Pre-configured portable distribution of SMath Studio: https://smath.com/wiki/SMath_with_Plugins.ashx
    thanks 2 users thanked mkraska for this useful post.
    on 30/03/2014(UTC),  on 30/03/2014(UTC)
    Offline omorr  
    #83 Posted : 30 March 2014 16:08:36(UTC)
    omorr


    Rank: Administration

    Groups: Registered, Advanced Member
    Joined: 23/06/2009(UTC)
    Posts: 1,740
    Man
    Serbia

    Was thanked: 318 time(s) in 268 post(s)
    Hello Martin,

    Thank you for this one Good

    I did not managed to make temporary file by starting X-Maxima, and I just made it myself and it works this way.

    Regards,
    Radovan
    omorr attached the following image(s):
    smath-maxima-portable.png
    When Sisyphus climbed to the top of a hill, they said: "Wrong boulder!"
    thanks 1 user thanked omorr for this useful post.
    on 30/03/2014(UTC)
    Offline mkraska  
    #84 Posted : 30 March 2014 17:02:07(UTC)
    mkraska


    Rank: Advanced Member

    Groups: Registered
    Joined: 15/04/2012(UTC)
    Posts: 1,985
    Germany

    Was thanked: 1124 time(s) in 721 post(s)
    Originally Posted by: omorr Go to Quoted Post
    I did not managed to make temporary file by starting X-Maxima, and I just made it myself and it works this way.

    Radovan, can you please show the output of SettingsDirectory()? Perhaps you do not use portable SMath.
    Martin Kraska

    Pre-configured portable distribution of SMath Studio: https://smath.com/wiki/SMath_with_Plugins.ashx
    Offline omorr  
    #85 Posted : 30 March 2014 17:44:56(UTC)
    omorr


    Rank: Administration

    Groups: Registered, Advanced Member
    Joined: 23/06/2009(UTC)
    Posts: 1,740
    Man
    Serbia

    Was thanked: 318 time(s) in 268 post(s)
    Originally Posted by: mkraska Go to Quoted Post
    Originally Posted by: omorr Go to Quoted Post
    I did not managed to make temporary file by starting X-Maxima, and I just made it myself and it works this way.

    Radovan, can you please show the output of SettingsDirectory()? Perhaps you do not use portable SMath.

    Here it is. USB Stick is on F: . I started X-Maxima.exe few times (seen on the screenshot) and wxMaxima opened. I just closed it then. As I could see no plot when opening the test file, on the debug window was a message of unexisting X-Maxima temp folder. Just created it manually, and then it worked.

    Hmm..., should I run F:\SMath\Maxima\Bin\Maxima\bin\xmaxima.exe ? I run it, it does not help it.

    Look at this video please

    Anyway, I have to make X-Maxima folder manually.

    Regards,
    Radovan

    Edited by user 30 March 2014 18:31:59(UTC)  | Reason: Not specified

    omorr attached the following image(s):
    Stick-Smath.png
    When Sisyphus climbed to the top of a hill, they said: "Wrong boulder!"
    thanks 1 user thanked omorr for this useful post.
    on 30/03/2014(UTC)
    Offline mkraska  
    #86 Posted : 30 March 2014 19:31:34(UTC)
    mkraska


    Rank: Advanced Member

    Groups: Registered
    Joined: 15/04/2012(UTC)
    Posts: 1,985
    Germany

    Was thanked: 1124 time(s) in 721 post(s)
    Radovan, thanks for the feedback.

    Perhaps I found a way to tell Maxima not to use the host system. You might give it a try

    Comment out the four lines immediately above the win9x label in maxima.bat

    rem if "C:\Users\Kraska" == "" goto win9x
    rem if "%MAXIMA_USERDIR%" == "" set MAXIMA_USERDIR=G:\SMath\Maxima\User\Maxima
    rem if "%MAXIMA_TEMPDIR%" == "" set MAXIMA_TEMPDIR=D:\tmp\X-Maxima
    rem goto startparseargs
    :win9x

    Edited by user 30 March 2014 19:50:49(UTC)  | Reason: Not specified

    Martin Kraska

    Pre-configured portable distribution of SMath Studio: https://smath.com/wiki/SMath_with_Plugins.ashx
    Offline omorr  
    #87 Posted : 30 March 2014 21:01:50(UTC)
    omorr


    Rank: Administration

    Groups: Registered, Advanced Member
    Joined: 23/06/2009(UTC)
    Posts: 1,740
    Man
    Serbia

    Was thanked: 318 time(s) in 268 post(s)
    Originally Posted by: mkraska Go to Quoted Post
    Perhaps I found a way to tell Maxima not to use the host system. You might give it a try

    Comment out the four lines immediately above the win9x label in maxima.bat

    rem if "C:\Users\Kraska" == "" goto win9x
    rem if "%MAXIMA_USERDIR%" == "" set MAXIMA_USERDIR=G:\SMath\Maxima\User\Maxima
    rem if "%MAXIMA_TEMPDIR%" == "" set MAXIMA_TEMPDIR=D:\tmp\X-Maxima
    rem goto startparseargs
    :win9x

    Ha - it works Good . I've noted that X-Maxima temp folder was not needed anymore (I deleted it). I tried your sample file and could see that the temporary graphics files resides in th USB stick inside Maxima plugin temporary gnuplot.output foder. It disappears when SMath was closed.

    I also tried your Drw2D3D example. Unfortunately, there are some problems here. I've noted that the graphics files appear inside SMath install folder (not in the file folder - here F:\Temp) but they do not appear in the Worksheet. See the video please. I might missed something here of course.

    I also changed the path for Maxima - it is relative path inside maxima.xml now (you deleted the post about it, but I saw it before that Wink )

    - <MaximaPlugin>
    - <Settings>
    <PathToMaxima.bat>Maxima\Bin\Maxima\bin\maxima.bat</PathToMaxima.bat>


    One more thing. I just used maxima.xml from my regular install because I could not find it on the stick.

    Regards,
    Radovan

    EDIT: I updated the plugins from the the Gallery for USB Stick SMath+X-Maxima. The sample file is Ok, but there might be some mess because Draw2D3D file can not be opened with SMath from the stick - here is the error
    EDIT2: I tried some more files with Maxima and draw and USB Stick SMath+X-Maxima. Some of them are Ok and some of them are not. I suppose some time will be needed to stabilize the things.

    Edited by user 30 March 2014 22:08:02(UTC)  | Reason: Not specified

    omorr attached the following image(s):
    maxima-error.png
    When Sisyphus climbed to the top of a hill, they said: "Wrong boulder!"
    Offline mkraska  
    #88 Posted : 31 March 2014 01:53:48(UTC)
    mkraska


    Rank: Advanced Member

    Groups: Registered
    Joined: 15/04/2012(UTC)
    Posts: 1,985
    Germany

    Was thanked: 1124 time(s) in 721 post(s)
    Radovan, thanks for your patience with the plugin.

    Originally Posted by: omorr Go to Quoted Post
    One more thing. I just used maxima.xml from my regular install because I could not find it on the stick.
    The file appears when Maxima is first called in the given installation. Updates of the plugin take care of your local settings, therefore, this is normally not an issue.

    Originally Posted by: omorr Go to Quoted Post
    - <MaximaPlugin>
    - <Settings>
    <PathToMaxima.bat>Maxima\Bin\Maxima\bin\maxima.bat</PathToMaxima.bat>
    You can install Maxima side by side to SMath and use a relative path like ..\Maxima. Thus no need to interfere with the SMath directory.

    I can open and execute the Draw2D3D examples except some of them (using 0.97.5189 both ordinary and portable).

    Could you please inspect and show the log messages for failing plots and operations? Just issue MaximaLog() next to the plot.
    Martin Kraska

    Pre-configured portable distribution of SMath Studio: https://smath.com/wiki/SMath_with_Plugins.ashx
    Offline omorr  
    #89 Posted : 31 March 2014 14:15:59(UTC)
    omorr


    Rank: Administration

    Groups: Registered, Advanced Member
    Joined: 23/06/2009(UTC)
    Posts: 1,740
    Man
    Serbia

    Was thanked: 318 time(s) in 268 post(s)
    Hello Martin,

    It seems I figured out something. I used the USB version and wanted to get a plot with the previously saved graph file. It appeared that the formed graph files were saved in the SMath folder but there were no pictures in the SMath Worksheet. When I restarted Maxima, then plots appeared and the plot files in the same folder where the file SMath file resides. Now, after recalculation SVG is reloaded but PNG is not - that was strange. I am not sure this behavior is expected. Anyway, see this video file please. I hope you could see it because I used large portion of the screen.

    The same error with your Draw2D3D examples file and the USB version. I could not opened it here on my office computer (Win7 x64) and therefore could not produce Log file. I have the impression that for the moment this portable version on the stick is working quite good.

    Regards,
    Radovan

    Edited by user 31 March 2014 14:28:22(UTC)  | Reason: Not specified

    When Sisyphus climbed to the top of a hill, they said: "Wrong boulder!"
    Offline mkraska  
    #90 Posted : 31 March 2014 16:12:51(UTC)
    mkraska


    Rank: Advanced Member

    Groups: Registered
    Joined: 15/04/2012(UTC)
    Posts: 1,985
    Germany

    Was thanked: 1124 time(s) in 721 post(s)
    Some remarks:
    - load(draw) is not required, when using Draw2D() and Draw3D()
    - when no image file names are given, then the names are randomized and the files reside in a temporary directory in the plugin dir, regardless what the current directory is.
    - when image file names are given, then they are relative to the current directory. This may or may not be the directory of the current document. Check or set this using CurrentDirectory().
    - You can set the current directory to the document directory using CurrentDirectory(DocumentDirectory())=, that is what I recommend to do when using explicit file names.
    - In order to identify the SMath-version and current directory in videos, I recommend to show the output of SettingsDirectory() (which tells portable from standard) and CurrentDirectory()
    - I observed problems with the image files. They are not written by Maxima if they are in use by the image region. I don't know, if that is an image region problem or a Maxima problem and when exactly this emerged. If you slightly change the name, then the image is updated. For randomized names, this problem does not occure, because the name changes upon each re-calculation.

    @uni: Do you have any idea, what recent change could stop another program to write files that are opened in the image region? If not, we have to search for reasons inside Maxima or inside the plugin.

    Edit: The image region is perhaps not to blame. The problem is limited to png files (svg files can be written locally and also be updated when they are open in the image region).
    I filed this as issue SS-97 in the bug tracker.

    Edited by user 31 March 2014 17:13:57(UTC)  | Reason: Not specified

    Martin Kraska

    Pre-configured portable distribution of SMath Studio: https://smath.com/wiki/SMath_with_Plugins.ashx
    Offline omorr  
    #91 Posted : 31 March 2014 20:02:00(UTC)
    omorr


    Rank: Administration

    Groups: Registered, Advanced Member
    Joined: 23/06/2009(UTC)
    Posts: 1,740
    Man
    Serbia

    Was thanked: 318 time(s) in 268 post(s)
    Thank you Martin for the reply,

    I figured out what happened and I will take care on your remarks. It seems that the *.png bug is a bit problematic. I think that crashes on my office machine happened due to this problem - not sure.

    Moreover, I figured out that I had to put:

    MaximaControl(restart)=

    in order Draw2d() to write files inside document directory, otherwise they will be written in SMath folder.

    The command

    CurrentDirectory(DocumentDirectory())=

    did not help at all.

    Regards,
    Radovan
    When Sisyphus climbed to the top of a hill, they said: "Wrong boulder!"
    Offline mkraska  
    #92 Posted : 04 April 2014 22:53:48(UTC)
    mkraska


    Rank: Advanced Member

    Groups: Registered
    Joined: 15/04/2012(UTC)
    Posts: 1,985
    Germany

    Was thanked: 1124 time(s) in 721 post(s)
    Under http://billinghurst.cust...net.au/maxima-5.33.0.exe you find a preliminary
    installer for Maxima-5.33.0

    This version seems to work with SMath including the Draw features.
    Martin Kraska

    Pre-configured portable distribution of SMath Studio: https://smath.com/wiki/SMath_with_Plugins.ashx
    Offline omorr  
    #93 Posted : 05 April 2014 00:17:45(UTC)
    omorr


    Rank: Administration

    Groups: Registered, Advanced Member
    Joined: 23/06/2009(UTC)
    Posts: 1,740
    Man
    Serbia

    Was thanked: 318 time(s) in 268 post(s)
    Confirmed,

    It seems that png still does not reload

    Regards,
    Radovan


    When Sisyphus climbed to the top of a hill, they said: "Wrong boulder!"
    Offline mkraska  
    #94 Posted : 06 April 2014 22:54:58(UTC)
    mkraska


    Rank: Advanced Member

    Groups: Registered
    Joined: 15/04/2012(UTC)
    Posts: 1,985
    Germany

    Was thanked: 1124 time(s) in 721 post(s)
    Plugin updated.

    Changes:
    - diff(1) fixed
    - extended logging functions, including export to wxm (wxMaxima file)
    - New function MaximaDefine() to set variables in Maxima.
    - SS-84 implemented. Draw2D/3D now can handle units (expressions with units do not
    freeze maxima any more)
    - SS-90 implemented. Warnings of float to rational conversions are suppressed.
    - SS-87 implemented. Maxima sets can be specified (mainly for use in draw options)
    - SS-57 fixed. Names with multiple separators are translated correctly

    Edited by user 06 April 2014 23:07:24(UTC)  | Reason: Not specified

    File Attachment(s):
    Update11.sm (72kb) downloaded 73 time(s).
    Plugin Maxima Test.sm (470kb) downloaded 77 time(s).
    Martin Kraska

    Pre-configured portable distribution of SMath Studio: https://smath.com/wiki/SMath_with_Plugins.ashx
    thanks 1 user thanked mkraska for this useful post.
    on 07/04/2014(UTC)
    Offline omorr  
    #95 Posted : 07 April 2014 00:05:21(UTC)
    omorr


    Rank: Administration

    Groups: Registered, Advanced Member
    Joined: 23/06/2009(UTC)
    Posts: 1,740
    Man
    Serbia

    Was thanked: 318 time(s) in 268 post(s)
    Just opening the PluginMaximaTest.sm file. The plot2d was not presented.



    Everything else seems to be correct.

    Regards,
    Radovan

    Edited by user 07 April 2014 00:07:25(UTC)  | Reason: Not specified

    When Sisyphus climbed to the top of a hill, they said: "Wrong boulder!"
    Offline Davide Carpi  
    #96 Posted : 07 April 2014 00:53:23(UTC)
    Davide Carpi


    Rank: Advanced Member

    Groups: Registered, Advanced Member
    Joined: 13/01/2012(UTC)
    Posts: 2,647
    Man
    Italy
    Location: Italy

    Was thanked: 1329 time(s) in 875 post(s)
    Originally Posted by: omorr Go to Quoted Post
    Just opening the PluginMaximaTest.sm file. The plot2d was not presented.

    it works for me (Maxima 5.30.0)


    Best regards,

    Davide

    Edited by user 07 April 2014 00:55:04(UTC)  | Reason: Not specified

    If you like my plugins consider to support SMath Studio buying a plan; to offer me a coffee: paypal.me/dcprojects
    Offline mkraska  
    #97 Posted : 07 April 2014 22:33:27(UTC)
    mkraska


    Rank: Advanced Member

    Groups: Registered
    Joined: 15/04/2012(UTC)
    Posts: 1,985
    Germany

    Was thanked: 1124 time(s) in 721 post(s)
    Originally Posted by: omorr Go to Quoted Post
    Just opening the PluginMaximaTest.sm file. The plot2d was not presented.
    That seems to be a path or current dir issue. Has the png file been generated at the location indicated by the plot command? Then, using this path for the image region should do the job.
    Martin Kraska

    Pre-configured portable distribution of SMath Studio: https://smath.com/wiki/SMath_with_Plugins.ashx
    Offline omorr  
    #98 Posted : 07 April 2014 23:30:46(UTC)
    omorr


    Rank: Administration

    Groups: Registered, Advanced Member
    Joined: 23/06/2009(UTC)
    Posts: 1,740
    Man
    Serbia

    Was thanked: 318 time(s) in 268 post(s)
    Originally Posted by: mkraska Go to Quoted Post
    Originally Posted by: omorr Go to Quoted Post
    Just opening the PluginMaximaTest.sm file. The plot2d was not presented.
    That seems to be a path or current dir issue. Has the png file been generated at the location indicated by the plot command? Then, using this path for the image region should do the job.

    You are right. I just used the full path and there is png files saved there. Should it be this way?

    Regards,
    Radovan

    omorr attached the following image(s):
    testpng.png
    When Sisyphus climbed to the top of a hill, they said: "Wrong boulder!"
    Offline mkraska  
    #99 Posted : 08 April 2014 01:35:05(UTC)
    mkraska


    Rank: Advanced Member

    Groups: Registered
    Joined: 15/04/2012(UTC)
    Posts: 1,985
    Germany

    Was thanked: 1124 time(s) in 721 post(s)
    Originally Posted by: omorr Go to Quoted Post
    You are right. I just used the full path and there is png files saved there. Should it be this way?

    Definitely not, because this is not portable. Send the sheet to someone else and it will fail. Somehow the current directories in SMath (where the image region acts) and Maxima (where the image is generated) do not match.

    Kay and me, we discussed the issue of how to match the paths in a reliable way and we decided to leave everyting that depends on current directory settings in the responsibility of the user. Thus, if you set a relative file name for the image, you must make sure yourself that you find the image.

    Normally I find using CurrentDirectory(DocumentDirectory()) or just opening the sheet by doubleclick in the file manager (thereby starting an SMath session with current dir where the file is and a clean new maxima session) being sufficient to avoid path problems.

    If you do not need the image as a separate product but just want to display it, then we offer the temporary storage in the plugin dir, using dynamically created absolute paths. If you still badly need matching current directories in SMath and Maxima, then you might file a feature request. However, this might not be easy going to implement.
    Martin Kraska

    Pre-configured portable distribution of SMath Studio: https://smath.com/wiki/SMath_with_Plugins.ashx
    Offline omorr  
    #100 Posted : 08 April 2014 08:11:20(UTC)
    omorr


    Rank: Administration

    Groups: Registered, Advanced Member
    Joined: 23/06/2009(UTC)
    Posts: 1,740
    Man
    Serbia

    Was thanked: 318 time(s) in 268 post(s)
    By the way, Draw2D will work with temporary picture and a named one correctly. If you use "grün.png" in Draw2D then it will be saved in the current directory. As we mentioned before, this picture could not be deleted from the current directory until we close the SMath file. Moreover, if we named it as "grün.png" it will be saved as png file named "grün.png.png" and if we named it like "grün" it will be save as svg file named "grün.svg".

    Regards,
    Radovan
    When Sisyphus climbed to the top of a hill, they said: "Wrong boulder!"
    Users browsing this topic
    Similar Topics
    Error implementing ToolboxGroup for the maxima plugin (Questions)
    by fakemoses 31/07/2023 20:09:47(UTC)
    Maxima Plugin Feedback Survey: Share Your Ideas and Report Bugs (Feature Requests)
    by fakemoses 16/06/2023 13:27:33(UTC)
    MAXIMA PLUGIN expand (Questions)
    by Angel695 21/05/2023 10:43:40(UTC)
    Solve Function Stuck (46/47) with Maxima Plugin (Questions)
    by Albedo 30/08/2022 05:24:23(UTC)
    [Maxima Plugin] Text exportation issue (Questions)
    by SteelCat 11/01/2022 12:47:31(UTC)
    Maxima Plugin problem (Bugs & Problems)
    by FT_PENG 23/12/2021 23:49:19(UTC)
    Text characters not passing correctly to Maxima plugin (Bugs & Problems)
    by gurro 15/08/2021 00:14:03(UTC)
    [Maxima Plugin] is a custom Maxima function call-able in SMath (Questions)
    by 007.000 22/05/2018 13:06:49(UTC)
    [Maxima Plugin] least common multiple (Questions)
    by 007.000 22/05/2018 12:13:20(UTC)
    news for Maxima Plugin (Questions)
    by oscampo 27/01/2016 18:39:35(UTC)
    Maxima plugin error (Bugs & Problems)
    by olik 30/11/2015 10:17:28(UTC)
    16 Pages«<34567>»
    Forum Jump  
    You cannot post new topics in this forum.
    You cannot reply to topics in this forum.
    You cannot delete your posts in this forum.
    You cannot edit your posts in this forum.
    You cannot create polls in this forum.
    You cannot vote in polls in this forum.