Community RSS Feed
http://community.wolfram.com
RSS Feed for Wolfram Community showing any discussions in tag Wolfram Cloud sorted by activeMathematica Local WebServer on Mac OS X Failed to Start
http://community.wolfram.com/groups/-/m/t/1269849
I recently watched the video class on [Web Programming and Development][1] and was greatly intrigued by the ability to serve web related work locally before CloudDeploy'ing. In the video class, the StartWebServer function was used so I immediately stopped the on demand video to try it out. After realizing the **StartWebServer** command was not "standard" (at least not found in the standard Mathematica docs), I was able to uncover it lives in **HTTPHandling**.
I'm running Mathematica 11.2.0.0 on Mac OS 10.13.2 and executing the command below fails.
HTTPHandling`StartWebServer[ExportForm["Hello", "HTML"]]
The error message reported is:
WebServer: The HTTP server failed to start with error code None and stderr output:
EndOfFile.
Any ideas what I'm doing wrong? Perhaps there is some other dependency I need.
Regards.
[1]: http://www.wolfram.com/training/courses/wl050.htmlmacrod2018-01-20T21:50:46ZAitchison and angular distances for votes and seats
http://community.wolfram.com/groups/-/m/t/1267872
The following is a notebook in the cloud (1 MB), that one can best download and run on the desktop (see the browser in the lower right). It has initialisation cells for two small packages.
https://www.wolframcloud.com/objects/thomas-cool/Voting/2018-01-18-Aitchison.nb
Readers who recently looked at the Brexit discussion will find the topic familiar, see
http://community.wolfram.com/groups/-/m/t/1221950
The summary of the notebook is:
Votes and seats satisfy only two of seven criteria for application of the Aitchison distance. Vectors of votes and seats, say for elections for political parties the House of Representatives, can be normalised to 1 or 100%, and then have the outward appearance of compositional data. The Aitchison geometry and distance for compositional data then might be considered for votes and seats too. However, there is an essential zero when a party gets votes but doesn't gain a seat, and a zero gives an undefined logratio. In geology, changing from weights to volumes affects the percentages but not the Aitchison distance. For votes and seats there are no different scales or densities per party component however, and thus reportioning (perturbation) would be improper. Another key issue is subcompositional dominance. For votes {10, 20, 70} and seats {20, 10, 70} it is essential that we consider three parties. For a disproportionality measure we would value it positively that there is a match on 70. The Aitchison distance looks at the ratio {10, 20, 70} / {20, 10, 70} = {1/2, 2, 1} and then neglects a ratio equal to 1. In this case it essentially compares the subcompositions, i.e. votes {10, 20} and seats {20, 10}, rescales to {1/3, 2/3} and {2/3, 1/3}, and finds high disproportionality. This means that it essentially looks at a two party outcome instead of a three party outcome. It follows that votes and seats are better served by another distance measure. Suggested is the angular distance and the Sine-Diagonal Inequality / Disproportionality (SDID) measure based upon this. Users may of course apply both the angular and the Aitchison measures while being aware of the crucial differences in properties.
NB. This discussion forms part of a larger framework given most recently by my other paper: "One woman, one vote. Though not in the USA, UK and France". My diagnosis is that "political science on electoral systems" is still in the Humanities and pre-science, notably by relying more upon common language instead of sharp definitions that are relevant for empirics. On the other hand, there are also mathematicians who deal with their definitions abstractly, without a proper grounding in empirical research. My invitation to empirical researchers is to help make a difference, notably in re-engineering the theory on electoral systems.Thomas Colignatus2018-01-18T19:58:05ZConvert a Mathematica Notebook into a fully interactive web page?
http://community.wolfram.com/groups/-/m/t/1266033
I have a Mathematica notebook that contains some animations based on numerical solutions to differential equations, with a few input parameters (either directly typed in or using sliders). I can't find a tutorial (either online or within the Help system) on how to convert this into an online web file that my students can explore for themselves. Ideally, it should show all the same content as the nb, but also be able to actually run the animation, with students being able to change the input. I tried simpleminded commands like "Export", but although a bunch of html files were created, they don't seem to do anything in my browser (Safari). Any hints would be appreciated!Sebastian Kuhn2018-01-15T17:08:09Z