Tag Info

Hot answers tagged

15

Mathematica by default uses its own ssh implementation. You can see it in the dialog of the remote kernel configuration dialog in the advanced options: `java` -jar `mathssh`. As far as I know, you can safely replace that with the local ssh command (most likely /usr/bin/ssh). You have to select the "Advanced Options" radiobutton to do that (if you first add ...


7

Here's one approach, though it's hard to say without knowing the site and what additional information you want for the files. Import["http://kaurov.com", {"HTML", "Images"}] There are several other items you can ask for (including what elements you can ask for!) In[53]:= Import["http://kaurov.com", {"HTML", "Elements"}] Out[53]= {"Data", "FullData", ...


6

If you really want to go this way then the following is a starting point; however in the comments there are good points why this is not the best solution. r = Compile[{{w, _Real}, {h, _Real}, {time, _Real}, {i, _Integer}}, (0.4 (w + h)) Cos[(time + i) (0.05 + Sin[time*0.00002]/Pi 0.2)]/Pi] w = 1.; h = 1.; Manipulate[Graphics[ ...


5

If the OutputForm of your expressions is acceptable for export you might use WriteString as follows: dat = RandomReal[{-9, 9}, {261000, 30}]; str = OpenWrite["speedtest.csv"]; WriteString[str, Row[#, ","], "\n"] & ~Scan~ dat // AbsoluteTiming Close[str]; {15.9369116, Null} The file looks like: ...


5

On Unix you can install rlwrap (~/)> rlwrap math Mathematica 8.0 for Mac OS X x86 (64-bit) Copyright 1988-2011 Wolfram Research, Inc. In[1]:= 1+1 Out[1]= 2 it saves the commands, and you can use up-arrows to access previously typed commands.


4

When loading packages remotely in Mathematica (extension .m) one can use the Import function, which behaves just as Get. However, one must the manually check the need for loading packages (something that is usually dome with Needs). It is possible to use Import also within the imported package. In the examples below one loads package Test using ...


3

Here is my sample code using JLink. It's not a foolproof code, but if someone know haw to do better, please let me know. The following code let Mathematica connect with T3Open Trading Software (Italian Broker WeBank), it expose some api that you can call with tcp socket. In this example I'm going to pass a list of options code (Terna Call) and take the ...


3

I'll just show some screen shots of what it looks like when you run the Mathematica Kernel from within emacs in the Terminal on Mac OS X. This is the purely cursor-driven text terminal, no mouse support: Start emacs type EscxshellReturn type math start entering Mathematica commands, entering them with Shift-Return Do some calculations and backtrack with ...


3

This is most likely due to MathLink. The MathLink protocol can transfer information in several ways, most commonly using shared memory (the default on the local machine) and TCP/IP (when different computers communicate). Even if you just launch an installable MathLink program separately (not using Install), first it will prompt you for the name of a new ...


3

Once setup you should be able to do all of what you want from Mathematica without resorting to shell scripts. This isn't Apple specific, but hopefully this will get you most of the way and uses the Remote Kernel method rather than the lightweight grid manager: Create an ssh key if you haven't already, using ssh-keygen Copy that key to all the remote hosts ...



Only top voted, non community-wiki answers of a minimum length are eligible