« first day (1630 days earlier)      last day (2855 days later) » 

2:45 AM
@J.M. I disagreed, too, but I can't edit or vote to reopen because it's locked.
 
 
3 hours later…
6:10 AM
Gaia data release coming: sci.esa.int/gaia/…
 
6:25 AM
I must confess I don't get something in Condition docs:

> lhs:=Module[{vars},rhs/;test] allows local variables to be shared between test and rhs

or

> Share a variable between a condition and function body:

> f[x_] := Module[{u}, u^2 /; ((u = x - 1) > 0)]

I mean, what is the deal? Why shouldn't it be shared?
 
7:07 AM
@MichaelE2 I see you, help me :P
 
Since CDF's no longer work on browsers, I am thinking of removing all the javascript code to embed them in the web page and just have a link to download the CDF. Sad state of affairs that one can no longer run CDF on a web page :(
 
8:06 AM
Isn't there CloudCDF or something like that?
Frankly, everybody has known for years that browser plugins, even Flash, are going to go away through browser vendor deprecation. I just hope WRI (or whatever it's called nowadays, Wolfram Group?) has actually prepared for this in sufficient detail...
 
8:26 AM
@kirma It is not so smooth. It won't look the same (100% you will have to make edits to fix misplaced labels etc.). People using it will eat your CloudCredits.
@kirma so it is not worth converting that in this case probably
 
8:51 AM
@Nasser It will continue to work in Firefox until the end of this year, and it will continue to work in Internet Explorer and Safari after that.
It never was a natural part of the browsing experience, since people had to install the CDF player. If you have to require the user to install the player, then I think you can also require the user to open a specific browser.
 
@Pickett I think Safari is dropping plugin support in the next release.
Ah, no, it won't quite drop support yet. It just discourages their use. appleinsider.com/articles/16/06/14/…
 
@Szabolcs I wrote new documentation for CDF embedding with my WordPress plugin last week, so I researched this stuff ;)
There is no final deadline for the CDF player in Safari/Internet Explorer that I could find.
Then again, they could very well remove at next year's WWDC.
 
Is this really off topic? mathematica.stackexchange.com/q/120024/12 It's not unlikely that there's someone here who has M7 installed in W10 and could at least say whether it starts up and whether basic commands work.
 
Something I would like is the option to bundle the CDF player with the CDF. When I was young I was into programming games with Game Maker. It uses an interpreted language, and in order to distribute the game it would simply bundle the interpreter with game code into an .exe file. Users just saw the .exe file, they never knew what the game was made with or had to download anything.
Nowadays you can write games in Game Maker and deploy them to iOS, Android, OS X, Windows... the interpreter is bundled with the game so again the user doesn't have to do anything.
The only downside is that it makes the file size larger but I could definitely live with that.
 
9:09 AM
@Pickett How much larger though? Mathematica s unfortunately not very modular, so it seems hard to strip out unused components. Is it at all possible to keep the runtime below 100 MB (which is already very large for something that does as little as a typical CDF)?
 
I really think WRI has dropped the ball on the whole CDF thing. Instead of CDF taking over, I see very few using it. At school I tell the teachers about it and show them some demos and they can't believe it, and they never heard of it, yet no body uses it there. They spend so much time on Matlab GUI, when the same thing can be done in M much easier.
 
@Nasser And papers like this get shared 100+ times as if they had anything new in them ...
The only idea there is: "let's publish interactive plots!". But they don't even comment on how to make creating such plots accessible to everyone.
 
@Szabolcs I think hundreds of mb is ok to require someone to download if you have put effort into an app.
If I see an app that I really want to test and it's 400mb, I'm not going to not download it because it's 400mb.
But if it's just a small demonstration then that's another thing, then the CDF player makes more sense.
 
There is a lot of new stuff starting to compete with CDF's out there now,. Python Jupyter notebooks and few other things based on Javascript. Still nothing as advanced as Manipulate and Mathematica Graphics.
 
The is nothing inherent in Jupyter that makes it good for CDF-like things.
I haven't seen any interactive examples with Jupyter.
And each language plugin is responsible for its graphics, so the abilities there vary according to language. There is no unified effort on behalf of Jupyter as I understand it.
 
9:26 AM
@Pickett I was going to take a course at school in optimization. I found the teacher insists on us using Python and Jupyter notebooks. After trying it for few days, I dropped the course :) It is still work in progress. But there is a lot of interest in it out there.
At school, students can not download and install anything on the PC's. So in libraries, labs, study places, one can't use CDF's since one can't install player on them or any software. But many use laptop pc's these days and they can install it on the laptop. The problem is that they do not even know about CDF's. WRI need to do more to make it more known.
 
Hey folks
> Actually, there's one very big Wolfram Alpha installation which will be coming out - it probably won't say it's a Wolfram Alpha installation but it's a big, consumer-facing retail-type thing that's coming out in a few months that's based on Wolfram Alpha.
Anyone know what Wolfram is talking about?
Would this be an on-topic question for the main site?
 
9:41 AM
@EmilioPisanty Probably not, but you can try Community.
 
@Szabolcs Yeah, I guess that could work, never been there but this might be a good cue. Thanks.
Any ideas what he's on about?
 
I can't even guess.
But I haven't been following these things.
 
10:04 AM
@Pickett @Nasser What is the status about using Manipulates variables inside other controllers spec?
e.g. Manipulate[{x, y}, {x, 0, 1}, {y, 0, 5 + x}]
it works, but should it? is this documented?
 
10:19 AM
@Kuba I've got no clue, sorry
 
@Pickett fyi, this breaks when deployed to cloud: `Manipulate[

{ "n = ", n}
,
{{a, 200}, ControlType -> None}, {{n, 20}, 1, a, 1}

]`
n get's Null
While this works:
Manipulate[{x, y}, {x, 0, 1}, {y, 0, 5 + x}] //
CloudDeploy[#, Permissions -> "Public"] &
Don't know what ot think about that
 
@Kuba it seems that Dynamic[x] is added automatically when x is there. If you try
Dynamic[y];
y = 5;
{Slider[Dynamic@x, {0, Dynamic[y]}], Dynamic[x]}
and then change y in new cell, you'll see that now you can move slider more, up to the new y dynamic value. But if you do this
Dynamic[y];
y = 5;
{Slider[Dynamic@x, {0, y}], Dynamic[x]}
then it will not work.
 
@Nasser yep, the question is why n -> Null in my example.
@Nasser and whether it is a bug in cloud or just not finished feature
 
@Kuba I do not know about cloud. I do not do cloud :)
Last time I tried Mathematica Manipulate on the cloud was 2 years ago. Too many problem, so did not look at it again.
 
@Nasser Ok :)
 
 
1 hour later…
11:41 AM
@Nasser For me CDF already died when browsers became 64bit. There are 5 up to date browsers installed on my PC. CDF works in none of them.
D3.js (Data-Driven Documents) is another up-and-coming technology.
 
11:59 AM
How do you write a function f, that 1) enters the function's RHS to perform an argument-test and 2) returns f[arg...] unevaluated (with error message) if the test does not pass? Like Solve[x + Log[5 + x^2] == 0., x] does. Clearly, the test is not simply a f[arg]/;argTest:=body. Anyone has an idea about the standard (Wolfram) way to do this?
 
@IstvánZachar I'd have to look up the details as I don't often do this, but it's something like f[arg] := Module[{}, ...; ...; ... /; argTest]. Check Module, Block, etc. docs.
 
@Szabolcs, I've found it:
13
Q: How do I get Mathematica to return a function call unevaluated?

CharlesHow do I get Mathematica to return a function call (conditionally) unevaluated? I expect this may use the slightly-mysterious Hold function. As a toy example, suppose I want to define AlgebraicQ such that AlgebraicQ[x] returns True or False when Element[x, Algebraics] evaluates to True or False,...

Though I had to modify it for my needs.
@Szabolcs THe same here: since I rarely do things like this, I tend to forgot how to achieve.
 
Is anyone familiar with
> FrontEndObject::notavail : A front end is not available; certain operations require a front end
error in Cloud? :)
I was deploying heavy stuff and it went wrong. Now Every Manipulate gives that error
 
Nope, I don't really use the cloud.
But let me ask something like that too:
Is anyone here experienced with Wolfram Knowledgebase queries and the Missing["QueryTooSlow"] result?
For example, EntityList[EntityClass["Star", {EntityProperty["Star", "DistanceFromSun"] -> TakeSmallest[10]}]]
With "DistanceFromEarth" it works just fine.
@Kuba You have a cloud subscription?
 
12:17 PM
@Szabolcs don't everyone with mma license have access?
 
@Kuba Hm, not sure ... I think my access is pretty limited.
Have to check.
I was actually thinking of having some cool dynamic community ads made with Wolfram Cloud, but who has enough cloud credits for that?
E.g., show ISS position live, or some such demo.
This could also have been set up with it: meta.mathematica.stackexchange.com/a/1904/12
 
@Szabolcs I see, I don't know who, my are limited too ;-)
 
Thanks @Szabolcs anyway!
Hi @Kuba!
@Szabolcs Perhaps we could set up a fund where anyone can contribute some credits. I certainly not using mine as anything that I plan to put in the cloud fails due to heavy package-dependencies.
 
12:52 PM
@IstvánZachar Hello :)
 
@IstvánZachar Given that this would really be an ad for WRI, it wouldn't be inappropriate if they ran it ...
 
@Szabolcs I was going to suggest that
 
 
2 hours later…
2:43 PM
Cloud CDFs are not scoped, if you forget about DynamicModule they will share variables! Which may be unexpected since desktop CDFs were using Notebook context by default.
 
@Kuba FrontEndObject::notavail is a very generic error. It just means you're doing something that involves image or graphics or something that normally has code in the front end which isn't available.
Sometimes you can get around it with Developer`UseFrontEnd, but I'm not sure how that would work in the cloud.
 
@Searke It was returned from the simplest objects from then on. It stopped when I've reopened browser
 
@Kuba that's stange
 
ctrl+f5 refresh didn't fix that
 
that's probably just a serious bug that no one knows about? Any chance you know what caused it?
 
2:56 PM
@Searke not really, I was testing a lot of things and yes, when one particularly heavy Manipulate, with couple of simple bitmaps was deployed, first there was a timeout and then each deployment was givin me that messages.
 
huh. That's very strange.
 
@Searke Don't have time now but I will try to reproduce it and will report you/support.
@Searke have to go now. Cya.
 
@Szabolcs It's strange that "DistanceFromSun" doesn't work. If I had to guess it'd be that Entity["Star", "Sun"][EntityProperty["Star", "DistanceFromSun"]] returns Missing["NotAvailable"]. Which is a strange fluke.
@Kuba Thank you.
 
I've set up a new PackageData.net ad that runs in the Wolfram Cloud, check it out.
We can consider it an experiment, I had 1250 cloud credits when it started and I'll tell you how many I have in a week. That way we'll know approximately how expensive it is to run this type of ad in the Wolfram Cloud.
 
3:16 PM
@Szabolcs "QueryTooSlow" is just a heuristic that stops queries that aren't going to work for some reason. There was a false positive for this with "Star" in the past. I filed a bug report about it.
 
3:55 PM
Can someone explain why ReplaceList[Range[10], {Longest[a___], Shortest[___]} :> {a}] gives the result it does?
I'd expect it to give only one solution.
 
4:14 PM
@kirma The documentation says: "If no explicit Shortest or Longest is given, ordinary expression patterns are normally effectively assumed to be Shortest[p]", so most patterns would only give one result if ReplaceList didn't ignore Longest and Shortest
 
@Pickett What documentation, exactly?
 
@kirma Sorry, the one for Shortest
 
Or rather, why ReplaceList ignores them? I can't spot a mention on documentation. (Might be that I have had too many beers...)
 
I think it's just how it's meant to work. If you look at the "basic example" under ReplaceList you see an example that would be exactly identical to just normal Replace if it didn't ignore Longest and Shortest.
But I don't know of any explanation in the docs about this either.
 
I could see situations where not ignoring them would make sense. Like that "longest repeating pattern" question today.
That behaviour ignoring greediness preference caused amount of intermediate results to grow too much, and to cause an answer candidate I considered to become quite inelegant.
 
 
2 hours later…
6:03 PM
Is there a way to fit a data like this:
{{0, {1., 1., 1.}}, {1, {0., 0., 0.717647}}, {2, {0.00392157, 0.,
0.862745}}, {3, {0., 0.00392157, 0.984314}}, {4, {0., 0.141176,
1.}}, {5, {0., 0.286275, 0.988235}}, {6, {0., 0.419608,
1.}}, {7, {0., 0.568627, 0.996078}}, {8, {0.00392157, 0.717647,
1.}}, {9, {0.00784314, 0.854902, 1.}}, {10, {0.00392157, 1.,
1.}}, {11, {0.141176, 1., 0.866667}}, {12, {0.278431, 1.,
0.709804}}, {13, {0.419608, 1., 0.576471}}, {14, {0.568627,
0.996078, 0.427451}}, {35, {0.992157, 0.85098,
0.00392157}}, {96, {1., 0.137255, 0.00392157}}}
this data represent that legend of this thread: mathematica.stackexchange.com/questions/119666/…
Since Nonlinear fitting didn't work, I tried interpolation and got some result but I am not confident of what I got
Since I am trying to extract data from the graph, I want a function that would give a count number when I color from the graph.
 
@Kuba Hi, I was actually asleep. (I closed the compute without "leaving the room" and I guess I stayed logged in.)
 
6:19 PM
 

« first day (1630 days earlier)      last day (2855 days later) »