Retrieving data from a CDF player

For my skeptic workgroup, I wrote a program in Mathematica to test the dowser's ability to evaluate the status of people shown to them using photographs. For the null dimension, I distributed this document to my group members in the form of CDF (the new V8 Computeable Document Format intended to run from CDF-player ). On my computer (using mma) everything works fine, but others cannot export data (the program exports to an Excel file). When reading small print, I see that the player does not support export. So my question is:

Is there a way to get data from a CDF player?

+6
source share
3 answers

For obvious reasons, the Math / CDF player is very limited both in input and output.

However, Print works, so you can print to TableForm - which creates the TSV - then copy / paste it into Gnumeric (why are you using Excel ?!).

I just tested this in both Gnumeric and OpenOffice, and it worked fine.

Place the following code in a CDF document for testing.

 Button["Press me!", Print[TableForm[RandomReal[{0, 1}, {10, 10}]]]] 

Note that you cannot edit Input , but you can click the button and copy the output. Skeptical groups are usually quite technically competent people, this probably should be an acceptable solution ...

enter image description here

+6
source

I thought that I could encode my data in the picture, and then I would have members of the group who would be copied from the CDF document and sent to me by e-mail. It looked something like this:

enter image description here

The top line is for defining data slots, and the bottom line contains data encoded as color. However, I found that Outlook compresses the images placed in the body of the message, so you get slightly blurry images and, therefore, corrupted data. The next step was to use a more robust code, such as a QR barcode. Fortunately from last week Wolfram | Alpha can generate QR barcodes, for example:

 WolframAlpha[ "QRcode:\"" <> ToString[N[Pi, 100]] <> "\"", {{"QRCodeBarcode", 1}, "Content"}] 

enter image description here

Now I downloaded and installed the CDF player, and it seemed to work in the CDF document as well, although I had to generate a QR code a second time before properly processing the Internet connection. I do not know if this is a false result.

+6
source

For version 7 was Mathematica Player and Mathematica Player Pro. The player was free, but did not have the ability to export. Player Pro demanded a fee, but could export. According to http://www.wolfram.com/cdf-player/ , a CDF player is a descendant of a part of the Player, and I don’t yet know the CDF equivalent for Player Pro, it may not have been released yet. Did you try to write technical support?

+1
source

Source: https://habr.com/ru/post/885485/


All Articles