<rss xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd" version="2.0">
  <channel>
    <title>MaplePrimes - Questions and Posts tagged with files</title>
    <link>http://www.mapleprimes.com/tags/files</link>
    <language>en-us</language>
    <copyright>2012 Maplesoft, A Division of Waterloo Maple Inc.</copyright>
    <generator>Maplesoft Document System</generator>
    <lastBuildDate>Mon, 21 May 2012 17:27:01 GMT</lastBuildDate>
    <pubDate>Mon, 21 May 2012 17:27:01 GMT</pubDate>
    <itunes:subtitle />
    <itunes:summary />
    <description>The most recent questions and posts on MaplePrimes tagged with files</description>
    <image>
      <url>http://www.mapleprimes.com/images/mapleprimeswhite.jpg</url>
      <title>MaplePrimes - Questions and Posts tagged with files</title>
      <link>http://www.mapleprimes.com/tags/files</link>
    </image>
    <item>
      <title>Maple Packages</title>
      <link>http://www.mapleprimes.com/questions/132463-Maple-Packages?ref=Feed:MaplePrimes:Tagged With files</link>
      <itunes:summary>&lt;p&gt;I want to create a package, lets call it Accellib. I want to be able to load it using the usual with(Accellib); construct.&lt;/p&gt;
&lt;p&gt;So I have created a module, included the option package and right now one procedure, the name of which is exported. Within the worksheet; this works. This package will grow as more stuff gets added. I want to put it into a directory of my choice, which is NOT the directory where Maple stores the packages from its distribution; I like to keep them...</itunes:summary>
      <description>&lt;p&gt;I want to create a package, lets call it Accellib. I want to be able to load it using the usual with(Accellib); construct.&lt;/p&gt;
&lt;p&gt;So I have created a module, included the option package and right now one procedure, the name of which is exported. Within the worksheet; this works. This package will grow as more stuff gets added. I want to put it into a directory of my choice, which is NOT the directory where Maple stores the packages from its distribution; I like to keep them...</description>
      <guid>132463</guid>
      <pubDate>Sun, 01 Apr 2012 01:02:46 Z</pubDate>
      <itunes:author>Mac Dude</itunes:author>
      <author>Mac Dude</author>
    </item>
    <item>
      <title>Text Format or Text???</title>
      <link>http://www.mapleprimes.com/questions/129520-Text-Format-Or-Text?ref=Feed:MaplePrimes:Tagged With files</link>
      <itunes:summary>&lt;p&gt;From http://www.maplesoft.com/view.aspx?SF=87640/0 \ Simple_Harmonic_Moti.mws&lt;br&gt;In several attempts I have downloaded the maple worksheet Simple_Harmonic_Moti.mws.&lt;br&gt;When I try to open I get the following message:&lt;/p&gt;
&lt;p&gt;&lt;a href="/ViewTemp.ashx?f=5794_1326203623/OpenWsMaple.jpg"&gt;&lt;img src="/ViewTemp.ashx?f=5794_1326203623/OpenWsMaple.jpg" alt=""&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="http://www.mapleprimes.com/ViewTemp.ashx?f=5794_1326203623/OpenWsMaple.jpg"&gt;link imagen&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;How to proceed to execute the worksheet?</itunes:summary>
      <description>&lt;p&gt;From http://www.maplesoft.com/view.aspx?SF=87640/0 \ Simple_Harmonic_Moti.mws&lt;br&gt;In several attempts I have downloaded the maple worksheet Simple_Harmonic_Moti.mws.&lt;br&gt;When I try to open I get the following message:&lt;/p&gt;
&lt;p&gt;&lt;a href="/ViewTemp.ashx?f=5794_1326203623/OpenWsMaple.jpg"&gt;&lt;img src="/ViewTemp.ashx?f=5794_1326203623/OpenWsMaple.jpg" alt=""&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="http://www.mapleprimes.com/ViewTemp.ashx?f=5794_1326203623/OpenWsMaple.jpg"&gt;link imagen&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;How to proceed to execute the worksheet?</description>
      <guid>129520</guid>
      <pubDate>Tue, 10 Jan 2012 14:04:36 Z</pubDate>
      <itunes:author>herclau</itunes:author>
      <author>herclau</author>
    </item>
    <item>
      <title>importing multiple files.jpg from a map</title>
      <link>http://www.mapleprimes.com/questions/128678-Importing-Multiple-Filesjpg-From-A-Map?ref=Feed:MaplePrimes:Tagged With files</link>
      <itunes:summary>&lt;p&gt;Hello,&lt;br&gt;&lt;br&gt;For a face recognition program I need to import all the jpg files that are in a map&lt;br&gt;on the hard drive. I can already do this by f(i):=Read("C:xxx\\xx\\xxx\\xxx.jpg");&amp;nbsp;&lt;br&gt;that gives f(i) a single jpg file.&lt;br&gt;But this requires every file to be imported separately. Is there a way to import all the jpg&lt;br&gt;files from that map?&lt;br&gt;e.g. f:=Read("...\\*.jpg"); that would give f a list of all the jpg files in the map.&lt;br&gt;&lt;br&gt;KR&amp;nbsp;&lt;/p&gt;</itunes:summary>
      <description>&lt;p&gt;Hello,&lt;br&gt;&lt;br&gt;For a face recognition program I need to import all the jpg files that are in a map&lt;br&gt;on the hard drive. I can already do this by f(i):=Read("C:xxx\\xx\\xxx\\xxx.jpg");&amp;nbsp;&lt;br&gt;that gives f(i) a single jpg file.&lt;br&gt;But this requires every file to be imported separately. Is there a way to import all the jpg&lt;br&gt;files from that map?&lt;br&gt;e.g. f:=Read("...\\*.jpg"); that would give f a list of all the jpg files in the map.&lt;br&gt;&lt;br&gt;KR&amp;nbsp;&lt;/p&gt;</description>
      <guid>128678</guid>
      <pubDate>Mon, 12 Dec 2011 13:35:16 Z</pubDate>
      <itunes:author>K Rond</itunes:author>
      <author>K Rond</author>
    </item>
    <item>
      <title>MW file format specification</title>
      <link>http://www.mapleprimes.com/questions/127524-MW-File-Format-Specification?ref=Feed:MaplePrimes:Tagged With files</link>
      <itunes:summary>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I am currently writing a Python program which takes a Maple Worksheet and evaluate the commands in the terminal version of Maple. However, I have trouble figuring out how the input is formatted. As an example I have following XML code in a .mw file:&lt;/p&gt;
&lt;pre&gt;&amp;lt;Input&amp;gt;&amp;lt;Text-field prompt="&amp;amp;gt; " style="Maple Input" layout="Normal"&amp;gt;&lt;br&gt;&amp;lt;Equation executable="true" style="2D Input" input-equation="A := 4;" &lt;br&gt;display="LUklbXJvd0c2Iy9JK21vZHVsZW5hbWVHNiJJLFR5cGVzZXR0aW5n\&lt;/pre&gt;</itunes:summary>
      <description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I am currently writing a Python program which takes a Maple Worksheet and evaluate the commands in the terminal version of Maple. However, I have trouble figuring out how the input is formatted. As an example I have following XML code in a .mw file:&lt;/p&gt;
&lt;pre&gt;&amp;lt;Input&amp;gt;&amp;lt;Text-field prompt="&amp;amp;gt; " style="Maple Input" layout="Normal"&amp;gt;&lt;br&gt;&amp;lt;Equation executable="true" style="2D Input" input-equation="A := 4;" &lt;br&gt;display="LUklbXJvd0c2Iy9JK21vZHVsZW5hbWVHNiJJLFR5cGVzZXR0aW5n\&lt;/pre&gt;</description>
      <guid>127524</guid>
      <pubDate>Tue, 08 Nov 2011 13:20:35 Z</pubDate>
      <itunes:author>tfr@nanophysics.dk</itunes:author>
      <author>tfr@nanophysics.dk</author>
    </item>
    <item>
      <title>Unable to open these maple files, please help</title>
      <link>http://www.mapleprimes.com/questions/126744-Unable-To-Open-These-Maple-Files-Please-Help?ref=Feed:MaplePrimes:Tagged With files</link>
      <itunes:summary>&lt;p&gt;Unable to open these maple files, please help&lt;/p&gt;</itunes:summary>
      <description>&lt;p&gt;Unable to open these maple files, please help&lt;/p&gt;</description>
      <guid>126744</guid>
      <pubDate>Mon, 17 Oct 2011 21:13:17 Z</pubDate>
      <itunes:author>yanin</itunes:author>
      <author>yanin</author>
    </item>
    <item>
      <title>Plot zeros of an ODE</title>
      <link>http://www.mapleprimes.com/questions/123932-Plot-Zeros-Of-An-ODE?ref=Feed:MaplePrimes:Tagged With files</link>
      <itunes:summary>&lt;p&gt;I want to plot the zeros of an ODE dependent on the change of a parameter of the ODE. My idea is to make a loop where i save the zeros to the given parameter into a file, so that i get multiple files with the zeros in it, and then make a plot with the parameter as x coordinate and the zeros as y coordinates. How can i make this possible in Maple? How can i set a variable filename, for example "parameter name = value".txt?&lt;/p&gt;</itunes:summary>
      <description>&lt;p&gt;I want to plot the zeros of an ODE dependent on the change of a parameter of the ODE. My idea is to make a loop where i save the zeros to the given parameter into a file, so that i get multiple files with the zeros in it, and then make a plot with the parameter as x coordinate and the zeros as y coordinates. How can i make this possible in Maple? How can i set a variable filename, for example "parameter name = value".txt?&lt;/p&gt;</description>
      <guid>123932</guid>
      <pubDate>Mon, 18 Jul 2011 14:41:06 Z</pubDate>
      <itunes:author>vicaut</itunes:author>
      <author>vicaut</author>
    </item>
    <item>
      <title>suppress warnings using writeto</title>
      <link>http://www.mapleprimes.com/questions/121205-Suppress-Warnings-Using-Writeto?ref=Feed:MaplePrimes:Tagged With files</link>
      <itunes:summary>&lt;p&gt;I've got the problem of warnings polluting my text outputs.&lt;/p&gt;
&lt;p&gt;If I use&amp;nbsp;interface(warnlevel = 0) the warnings are suppressed in the terminal but not in the files exported by the writeto command.&lt;/p&gt;
&lt;p&gt;A sample:&lt;/p&gt;
&lt;p&gt;&amp;gt; restart;with(CodeGeneration); with(plots); with(ListTools); with(FileTools);&lt;br&gt;&amp;gt; Matlab(u(1) = 3);&lt;br&gt;Warning, the function names {u} are not recognized in the target language&lt;br&gt;cg = u(1) == 3;&lt;br&gt;&amp;gt; interface(warnlevel = 0); Matlab(u(1) = 3);</itunes:summary>
      <description>&lt;p&gt;I've got the problem of warnings polluting my text outputs.&lt;/p&gt;
&lt;p&gt;If I use&amp;nbsp;interface(warnlevel = 0) the warnings are suppressed in the terminal but not in the files exported by the writeto command.&lt;/p&gt;
&lt;p&gt;A sample:&lt;/p&gt;
&lt;p&gt;&amp;gt; restart;with(CodeGeneration); with(plots); with(ListTools); with(FileTools);&lt;br&gt;&amp;gt; Matlab(u(1) = 3);&lt;br&gt;Warning, the function names {u} are not recognized in the target language&lt;br&gt;cg = u(1) == 3;&lt;br&gt;&amp;gt; interface(warnlevel = 0); Matlab(u(1) = 3);</description>
      <guid>121205</guid>
      <pubDate>Tue, 07 Jun 2011 09:42:49 Z</pubDate>
      <itunes:author>hubertbauer</itunes:author>
      <author>hubertbauer</author>
    </item>
    <item>
      <title>How do I update  Maple 5 version  files ( or  programs)  to the Maple 14  version ?</title>
      <link>http://www.mapleprimes.com/questions/120031-How-Do-I-Update--Maple-5-Version--Files--Or--Programs?ref=Feed:MaplePrimes:Tagged With files</link>
      <itunes:summary>&lt;p&gt;How do I update&amp;nbsp; Maple 5 version&amp;nbsp; files ( or programs)&amp;nbsp; to the Maple 14&amp;nbsp; version ? . I mean I've done a lot of programs in the&amp;nbsp; Maple 5 version many years ago and now ( using&amp;nbsp;&amp;nbsp; Maple 14 version) I can't visualize my&amp;nbsp; complete equations and worst my graphics .Could you help me ?&lt;/p&gt;</itunes:summary>
      <description>&lt;p&gt;How do I update&amp;nbsp; Maple 5 version&amp;nbsp; files ( or programs)&amp;nbsp; to the Maple 14&amp;nbsp; version ? . I mean I've done a lot of programs in the&amp;nbsp; Maple 5 version many years ago and now ( using&amp;nbsp;&amp;nbsp; Maple 14 version) I can't visualize my&amp;nbsp; complete equations and worst my graphics .Could you help me ?&lt;/p&gt;</description>
      <guid>120031</guid>
      <pubDate>Thu, 19 May 2011 03:00:17 Z</pubDate>
      <itunes:author>kikin2011</itunes:author>
      <author>kikin2011</author>
    </item>
    <item>
      <title>upgradet to Maple 15, can I now uninstall Maple 11?</title>
      <link>http://www.mapleprimes.com/questions/119625-Upgradet-To-Maple-15-Can-I-Now-Uninstall?ref=Feed:MaplePrimes:Tagged With files</link>
      <itunes:summary>&lt;p&gt;He guys!&lt;/p&gt;
&lt;p&gt;I had Maple 11 installed on my Mac, and yesterday upgraded to Maple 15, which was installed in a separate folder. My question is if I now can uninstall Maple 11 from my computer, or will Maple 15 need the files, since it was an upgrade, and no full version?&lt;/p&gt;
&lt;p&gt;If I can uninstall it: How do I do it properly? I'm on a Mac with OS X 10.6. Maple 11 is installed in a separate folder in the applications folder. There is no uninstall file however. Is just dragging...</itunes:summary>
      <description>&lt;p&gt;He guys!&lt;/p&gt;
&lt;p&gt;I had Maple 11 installed on my Mac, and yesterday upgraded to Maple 15, which was installed in a separate folder. My question is if I now can uninstall Maple 11 from my computer, or will Maple 15 need the files, since it was an upgrade, and no full version?&lt;/p&gt;
&lt;p&gt;If I can uninstall it: How do I do it properly? I'm on a Mac with OS X 10.6. Maple 11 is installed in a separate folder in the applications folder. There is no uninstall file however. Is just dragging...</description>
      <guid>119625</guid>
      <pubDate>Wed, 04 May 2011 16:59:32 Z</pubDate>
      <itunes:author>Britzel</itunes:author>
      <author>Britzel</author>
    </item>
    <item>
      <title>save varibles created in do loop to separate files.</title>
      <link>http://www.mapleprimes.com/questions/98444-Save-Varibles-Created-In-Do-Loop-To?ref=Feed:MaplePrimes:Tagged With files</link>
      <itunes:summary>&lt;p&gt;I Have a proc that creates some very long lists.&lt;br&gt;I would like to be able to store each of these lists with the same name in different indexed files.&lt;br&gt;&lt;br&gt;What I would like to do looks something like...&lt;br&gt;&lt;br&gt;fd:=["file1.m", "file2.m", ..., "filen.m"]&lt;br&gt;&lt;br&gt;for i from 1 to n&lt;br&gt;do&lt;br&gt;proc(user defined variables)&lt;br&gt;save variable1,vaiable2, ...,variablem, fd[i]&lt;br&gt;end do:&lt;br&gt;&lt;br&gt;This however doesn't work. &lt;br&gt;&lt;br&gt;I would then like to be able then to run proceedures on these variables from each file.</itunes:summary>
      <description>&lt;p&gt;I Have a proc that creates some very long lists.&lt;br&gt;I would like to be able to store each of these lists with the same name in different indexed files.&lt;br&gt;&lt;br&gt;What I would like to do looks something like...&lt;br&gt;&lt;br&gt;fd:=["file1.m", "file2.m", ..., "filen.m"]&lt;br&gt;&lt;br&gt;for i from 1 to n&lt;br&gt;do&lt;br&gt;proc(user defined variables)&lt;br&gt;save variable1,vaiable2, ...,variablem, fd[i]&lt;br&gt;end do:&lt;br&gt;&lt;br&gt;This however doesn't work. &lt;br&gt;&lt;br&gt;I would then like to be able then to run proceedures on these variables from each file.</description>
      <guid>98444</guid>
      <pubDate>Mon, 01 Nov 2010 16:24:27 Z</pubDate>
      <itunes:author>rtodd</itunes:author>
      <author>rtodd</author>
    </item>
    <item>
      <title>Fast writing to and reading from a disc</title>
      <link>http://www.mapleprimes.com/posts/98083-Fast-Writing-To-And-Reading-From-A-Disc?ref=Feed:MaplePrimes:Tagged With files</link>
      <itunes:summary>&lt;p&gt;A couple of days ago I found out that gzread from the zlib library can be used for fast reading of binary files in Maple from the disk to memory - about 100 times faster than readbytes - something like in the following simplified example,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;A:=Array(1..2^26,99,datatype=integer[1]):&lt;/p&gt;
&lt;p&gt;time(writebytes("A",A));close("A");&lt;br&gt;&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 9.360&lt;br&gt;&lt;br&gt;B:=Array(1..2^26,1,datatype=integer[1]):&lt;br&gt;time(readbytes("A",B));close("A");&lt;br&gt;&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 8.065&lt;br&gt;B[1],B[-1];&lt;br&gt;&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 99, 99&lt;br&gt;&lt;br&gt;myreadbytes:=proc(f)&lt;br&gt;local gzopen, gzread, gzclose, n, p, A;&lt;br&gt;gzopen:=define_external('gzopen',&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'path'::string,&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'mode'::string,&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'RETURN'::integer[4],&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'LIB'="zlibwapi.dll");&lt;br&gt;gzread:=define_external('gzread',&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'file'::integer[4],&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'buf'::REF(ARRAY(datatype=integer[1])),&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'len'::integer[4],&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'RETURN'::integer[4],&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'LIB'="zlibwapi.dll");&lt;br&gt;gzclose:=define_external('gzclose',&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'file'::integer[4],&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'RETURN'::integer[4],&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'LIB'="zlibwapi.dll");&lt;br&gt;n:=FileTools:-Size(f);&lt;br&gt;A:=Array(1..n,datatype=integer[1]);&lt;br&gt;try p:=gzopen(f,"rb");&lt;br&gt;if gzread(p,A,n)=n&lt;br&gt;then return A end if&lt;br&gt;finally gzclose(p)&lt;br&gt;end try&lt;br&gt;end proc:&lt;br&gt;time(assign(C=myreadbytes("A")));&lt;br&gt;&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0.062&lt;br&gt;&lt;br&gt;C[1],C[-1];&lt;br&gt;&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 99, 99&lt;/p&gt;
&lt;p&gt;'time(myreadbytes("A"))'$5;&lt;/p&gt;
&lt;p&gt;&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0.078, 0.062, 0.046, 0.046, 0.046&lt;br&gt;&lt;br&gt;E:=Array(1..2^26,2,datatype=integer[1]):&lt;br&gt;time(ArrayTools:-Copy(A,E));&lt;br&gt;&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0.093&lt;/p&gt;
&lt;p&gt;That needs some tweaking, because that works only on uncompressed files. If a file ("A" in this example) was gzipped, then the gzread would ungzip n (uncompressed) bytes in it in this example, instead of copying it into the memory - but it is not a big deal, in general.&lt;/p&gt;
&lt;p&gt;Does anybody know about a similar replacement for writebytes? gzwrite doesn't work for copying (it compresses the array.)&lt;/p&gt;
&lt;p&gt;I used the zlibwapi.dll library from &lt;a href="http://www.winimage.com/zLibDll/index.html"&gt;http://www.winimage.com/zLibDll/index.html&lt;/a&gt;, it is a version of zlib 1.2.5 (written by Jean-Loup Gailly and Mark Adler) built by Gilles Vollant. The code is for a 32-bit system (Windows). That should work in 32-bit Linux after replacing that dll with standard libz.so.1, as well as on 64-bit systems after replacing integer[4] with integer[8] in most places.&lt;/p&gt;
</itunes:summary>
      <description>&lt;p&gt;A couple of days ago I found out that gzread from the zlib library can be used for fast reading of binary files in Maple from the disk to memory - about 100 times faster than readbytes - something like in the following simplified example,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;A:=Array(1..2^26,99,datatype=integer[1]):&lt;/p&gt;
&lt;p&gt;time(writebytes("A",A));close("A");&lt;br&gt;&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 9.360&lt;br&gt;&lt;br&gt;B:=Array(1..2^26,1,datatype=integer[1]):&lt;br&gt;time(readbytes("A",B));close("A");&lt;br&gt;&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 8.065&lt;br&gt;B[1],B[-1];&lt;br&gt;&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 99, 99&lt;br&gt;&lt;br&gt;myreadbytes:=proc(f)&lt;br&gt;local gzopen, gzread, gzclose, n, p, A;&lt;br&gt;gzopen:=define_external('gzopen',&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'path'::string,&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'mode'::string,&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'RETURN'::integer[4],&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'LIB'="zlibwapi.dll");&lt;br&gt;gzread:=define_external('gzread',&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'file'::integer[4],&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'buf'::REF(ARRAY(datatype=integer[1])),&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'len'::integer[4],&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'RETURN'::integer[4],&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'LIB'="zlibwapi.dll");&lt;br&gt;gzclose:=define_external('gzclose',&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'file'::integer[4],&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'RETURN'::integer[4],&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'LIB'="zlibwapi.dll");&lt;br&gt;n:=FileTools:-Size(f);&lt;br&gt;A:=Array(1..n,datatype=integer[1]);&lt;br&gt;try p:=gzopen(f,"rb");&lt;br&gt;if gzread(p,A,n)=n&lt;br&gt;then return A end if&lt;br&gt;finally gzclose(p)&lt;br&gt;end try&lt;br&gt;end proc:&lt;br&gt;time(assign(C=myreadbytes("A")));&lt;br&gt;&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0.062&lt;br&gt;&lt;br&gt;C[1],C[-1];&lt;br&gt;&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 99, 99&lt;/p&gt;
&lt;p&gt;'time(myreadbytes("A"))'$5;&lt;/p&gt;
&lt;p&gt;&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0.078, 0.062, 0.046, 0.046, 0.046&lt;br&gt;&lt;br&gt;E:=Array(1..2^26,2,datatype=integer[1]):&lt;br&gt;time(ArrayTools:-Copy(A,E));&lt;br&gt;&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0.093&lt;/p&gt;
&lt;p&gt;That needs some tweaking, because that works only on uncompressed files. If a file ("A" in this example) was gzipped, then the gzread would ungzip n (uncompressed) bytes in it in this example, instead of copying it into the memory - but it is not a big deal, in general.&lt;/p&gt;
&lt;p&gt;Does anybody know about a similar replacement for writebytes? gzwrite doesn't work for copying (it compresses the array.)&lt;/p&gt;
&lt;p&gt;I used the zlibwapi.dll library from &lt;a href="http://www.winimage.com/zLibDll/index.html"&gt;http://www.winimage.com/zLibDll/index.html&lt;/a&gt;, it is a version of zlib 1.2.5 (written by Jean-Loup Gailly and Mark Adler) built by Gilles Vollant. The code is for a 32-bit system (Windows). That should work in 32-bit Linux after replacing that dll with standard libz.so.1, as well as on 64-bit systems after replacing integer[4] with integer[8] in most places.&lt;/p&gt;
</description>
      <guid>98083</guid>
      <pubDate>Sun, 24 Oct 2010 19:17:08 Z</pubDate>
      <itunes:author>Alec Mihailovs</itunes:author>
      <author>Alec Mihailovs</author>
    </item>
    <item>
      <title>Graphics output</title>
      <link>http://www.mapleprimes.com/questions/96487-Graphics-Output?ref=Feed:MaplePrimes:Tagged With files</link>
      <itunes:summary>&lt;p&gt;Whilst I am glad that Maple have finally fixed their pdf and eps plot output with version 13 (corrupted on the Mac since version 10), I would like to re-ask the question asked by peterschmid 4 in 2006: how can I control the output size of the plot? &amp;nbsp;The&amp;nbsp;plotsetup options axiswidth, axisheight, width, height, appear to have no effect.&lt;/p&gt;
&lt;p&gt;Please note that I use Maple for academic publishing, and I wish to automatically generate graphs and export them as eps files....</itunes:summary>
      <description>&lt;p&gt;Whilst I am glad that Maple have finally fixed their pdf and eps plot output with version 13 (corrupted on the Mac since version 10), I would like to re-ask the question asked by peterschmid 4 in 2006: how can I control the output size of the plot? &amp;nbsp;The&amp;nbsp;plotsetup options axiswidth, axisheight, width, height, appear to have no effect.&lt;/p&gt;
&lt;p&gt;Please note that I use Maple for academic publishing, and I wish to automatically generate graphs and export them as eps files....</description>
      <guid>96487</guid>
      <pubDate>Mon, 30 Aug 2010 08:22:52 Z</pubDate>
      <itunes:author>RNiven</itunes:author>
      <author>RNiven</author>
    </item>
    <item>
      <title>Over 1000 files recovered</title>
      <link>http://www.mapleprimes.com/posts/94507-Over-1000-Files-Recovered?ref=Feed:MaplePrimes:Tagged With files</link>
      <itunes:summary>&lt;p&gt;I was able to find over 1000 files that were missing from the new MaplePrimes. I did some spot checking and it appears that the vast majority of files are now intact.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I did see some posts where the files are still missing. If I come across a backup containing additional files, I will restore them as well and post about the recovery here.&lt;/p&gt;
</itunes:summary>
      <description>&lt;p&gt;I was able to find over 1000 files that were missing from the new MaplePrimes. I did some spot checking and it appears that the vast majority of files are now intact.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I did see some posts where the files are still missing. If I come across a backup containing additional files, I will restore them as well and post about the recovery here.&lt;/p&gt;
</description>
      <guid>94507</guid>
      <pubDate>Fri, 25 Jun 2010 19:31:43 Z</pubDate>
      <itunes:author>Will</itunes:author>
      <author>Will</author>
    </item>
    <item>
      <title>More Updates</title>
      <link>http://www.mapleprimes.com/posts/90001-More-Updates?ref=Feed:MaplePrimes:Tagged With files</link>
      <itunes:summary>&lt;p&gt;I have just published a new update to MaplePrimes. This fixes a number of issues and ads a couple of new features.&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Autocompletion of tags now works. When you are typing a tag in, a list of possible completions appears, you can click or arrow down to select one of these tags.&lt;/li&gt;
&lt;li&gt;We have added a new &lt;a href="http://www.mapleprimes.com/products"&gt;Products&lt;/a&gt; list. This shows all Maplesoft products that have Posts or Questions associated with them. This link has been added to the top bar, the &lt;a href="http://www.mapleprimes.com/tags"&gt;Tags&lt;/a&gt; link has been moved to the "More" drop down.&amp;nbsp;&lt;/li&gt;
&lt;li&gt;The ordering on the &lt;a href="http://www.mapleprimes.com/recent"&gt;Recent&lt;/a&gt; pages has been fixed to sort by last action date descending.&lt;/li&gt;
&lt;li&gt;You can now view tags such as &lt;a href="http://www.mapleprimes.com/tags/2Dmath"&gt;2Dmath&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;Paging has been fixed for many sections of the site including the tag details page&lt;/li&gt;
&lt;li&gt;If you choose to upload files when editing an item, the new file will now work correctly.&lt;/li&gt;
&lt;li&gt;If you choose to convert your Comment into an Answer, you now have the ability to choose the correct parent for that comment.&lt;/li&gt;
&lt;/ul&gt;
</itunes:summary>
      <description>&lt;p&gt;I have just published a new update to MaplePrimes. This fixes a number of issues and ads a couple of new features.&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Autocompletion of tags now works. When you are typing a tag in, a list of possible completions appears, you can click or arrow down to select one of these tags.&lt;/li&gt;
&lt;li&gt;We have added a new &lt;a href="http://www.mapleprimes.com/products"&gt;Products&lt;/a&gt; list. This shows all Maplesoft products that have Posts or Questions associated with them. This link has been added to the top bar, the &lt;a href="http://www.mapleprimes.com/tags"&gt;Tags&lt;/a&gt; link has been moved to the "More" drop down.&amp;nbsp;&lt;/li&gt;
&lt;li&gt;The ordering on the &lt;a href="http://www.mapleprimes.com/recent"&gt;Recent&lt;/a&gt; pages has been fixed to sort by last action date descending.&lt;/li&gt;
&lt;li&gt;You can now view tags such as &lt;a href="http://www.mapleprimes.com/tags/2Dmath"&gt;2Dmath&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;Paging has been fixed for many sections of the site including the tag details page&lt;/li&gt;
&lt;li&gt;If you choose to upload files when editing an item, the new file will now work correctly.&lt;/li&gt;
&lt;li&gt;If you choose to convert your Comment into an Answer, you now have the ability to choose the correct parent for that comment.&lt;/li&gt;
&lt;/ul&gt;
</description>
      <guid>90001</guid>
      <pubDate>Tue, 22 Jun 2010 15:21:59 Z</pubDate>
      <itunes:author>Will</itunes:author>
      <author>Will</author>
    </item>
    <item>
      <title>some missing uploads available via maplenet</title>
      <link>http://www.mapleprimes.com/posts/89694-Some-Missing-Uploads-Available-Via-Maplenet?ref=Feed:MaplePrimes:Tagged With files</link>
      <itunes:summary>&lt;p&gt;Some Posts and Questions contain broken links to files uploaded in the "old Mapleprimes". We've heard that some files (eg. image files) may be irretrievably gone.&lt;/p&gt;
&lt;p&gt;But &lt;a href="http://www.mapleprimes.com/questions/36865-Procedure"&gt;here&lt;/a&gt; is a curious page. It had an associated .mw worksheet uploaded. And the &lt;a href="http://www.mapleprimes.com/files/11162_test_CG.mw"&gt;link&lt;/a&gt; to the uploaded .mw is now broken/stale, at the moment that I write this. But the &lt;a href="http://mapleoracles.maplesoft.com:8080/maplenet/primes/worksheet/11162_test_CG.mw"&gt;link&lt;/a&gt; to view it with the maplenet viewer, in one's browser, still works. Not only that, but the .mw worksheet can be saved from within that viewer (via a &lt;a href="http://mapleoracles.maplesoft.com:8080/maplenet/util/download.jsp?filepath=/primes/worksheet/11162_test_CG.mw&amp;amp;wsURL=/maplenet/primes/worksheet/11162_test_CG.mw"&gt;URL&lt;/a&gt; distinct from the broken link on the Post).&lt;/p&gt;
</itunes:summary>
      <description>&lt;p&gt;Some Posts and Questions contain broken links to files uploaded in the "old Mapleprimes". We've heard that some files (eg. image files) may be irretrievably gone.&lt;/p&gt;
&lt;p&gt;But &lt;a href="http://www.mapleprimes.com/questions/36865-Procedure"&gt;here&lt;/a&gt; is a curious page. It had an associated .mw worksheet uploaded. And the &lt;a href="http://www.mapleprimes.com/files/11162_test_CG.mw"&gt;link&lt;/a&gt; to the uploaded .mw is now broken/stale, at the moment that I write this. But the &lt;a href="http://mapleoracles.maplesoft.com:8080/maplenet/primes/worksheet/11162_test_CG.mw"&gt;link&lt;/a&gt; to view it with the maplenet viewer, in one's browser, still works. Not only that, but the .mw worksheet can be saved from within that viewer (via a &lt;a href="http://mapleoracles.maplesoft.com:8080/maplenet/util/download.jsp?filepath=/primes/worksheet/11162_test_CG.mw&amp;amp;wsURL=/maplenet/primes/worksheet/11162_test_CG.mw"&gt;URL&lt;/a&gt; distinct from the broken link on the Post).&lt;/p&gt;
</description>
      <guid>89694</guid>
      <pubDate>Tue, 15 Jun 2010 03:08:59 Z</pubDate>
      <itunes:author>acer</itunes:author>
      <author>acer</author>
    </item>
  </channel>
</rss>
