从 CDF 播放器中获取数据
我为我的怀疑论者工作组在 Mathematica 中编写了一个程序,以测试探矿者评估通过照片向他们展示的人的状态的能力。对于空测量,我以 CDF 形式(新的 v8 可计算文档格式,旨在使用 CDF 播放器)。在我的计算机上(使用 mma)一切正常,但其他计算机无法导出数据(该程序会导出到 Excel 文件)。在阅读细则时,我发现播放器不支持导出。所以我的问题是:
有什么方法可以从 CDF-player 中获取数据吗?
For my Skeptics working group I wrote a program in Mathematica to test a dowser's ability to assess the status of persons shown to them by means of photographs. For a null measurement I distributed this document to my group's members in CDF form (the new v8 Computable Document Format, meant to be run with the CDF-player). On my computer (using mma) it all works fine, but the others can't export the data (the program does an export to an Excel file). On reading the fine print I see that the player doesn't support Export. So my question is:
Is there any way to get data out of CDF-player?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
出于可以理解的原因,数学/CDF 播放器在输入和输出方面都受到严格限制。
但是,
Print
可以工作,因此您可以在TableForm
中打印 - 这会生成 TSV - 然后将其复制/粘贴到 Gnumeric ('因为为什么要使用 Excel?!)。我刚刚在 Gnumeric 和 OpenOffice 中对此进行了测试,效果很好。
将以下代码放入CDF文档中进行测试。
请注意,您无法编辑
输入
,但您可以按下按钮并复制输出。怀疑论者团体通常是技术上相当有能力的人,这可能是一个可行的解决方案...For understandable reasons, the math/CDF player is severely limited in both input and output.
However,
Print
works, so you could print inTableForm
- which produces a TSV - then copy/paste it into Gnumeric ('cause why would you use Excel?!).I just tested this in both Gnumeric and OpenOffice and it worked fine.
Put the following code into a CDF document to test.
Note that you can't edit the
Input
, but you can press the button and copy the output. Skeptics groups are normally fairly technically competent people, this should probably be a workable solution...我认为我可以将我的数据编码在图片中,然后让小组成员从 CDF 文档中复制并通过电子邮件发送给我。它看起来像这样:
顶行定义数据槽,底行包含编码的数据作为颜色。但是,我发现 Outlook 会压缩电子邮件正文中的图片,因此图片会稍微模糊,从而导致数据损坏。下一步是使用更强大的代码,例如 QR 条形码。幸运的是,自上周以来,Wolfram | Alpha 能够生成 QR 条形码,如下所示:
我现在已经下载我自己安装了 CDF 播放器,它似乎也可以在 CDF 文档中工作,尽管我必须在正确处理互联网连接之前再次生成 QR 代码。不知道这是否是一个虚假的结果。
I thought that I could encode my data in a picture which I then would have the group members copy from the CDF document and email to me. It looked something like this:
The top row to define the data slots and the bottom row contains the data encoded as color. However, I found that Outlook compresses pictures placed in an email body, so you get slightly blurred pictures, and hence corrupted data. The next step was to use a more robust code like the QR barcode. Luckily, since last week Wolfram|Alpha is able to generate QR barcodes, like so:
I have now downloaded and installed the CDF-player myself and it seemed to work in a CDF document as well, though I had to generate the QR code a second time, before it handled the internet connection correctly. Don't know whether this is a spurious result.
对于版本 7,有 Mathematica Player 和 Mathematica Player Pro。该播放器是免费的,但没有导出功能。 Player Pro 需要付费,但可以导出。根据 http://www.wolfram.com/cdf-player/ CDF 播放器是Player部分的后代,我还不知道CDF相当于Player Pro,它可能还没有发布。您是否尝试写信给技术支持?
For version 7, there was Mathematica Player and Mathematica Player Pro. The Player was free, but had not Export capabilities. Player Pro required a fee, but could do export. According to http://www.wolfram.com/cdf-player/ the CDF player is descendant from Player part, and I am unaware of CDF equivalent to Player Pro yet, it might have not been released yet. Did you try writing to tech-support ?