« first day (1786 days earlier)      last day (2695 days later) » 

6:08 AM
@WReach Yes, exactly what I meant and I didn't try Query, because I don't understand why I need an ascending operator there.
What I don't understand is the following (let's leave out all confusing parts):
Leaving out Query and not making it ascending operator, why can I not just leave out the All that follows to not make it dive one level deeper?
 
6:27 AM
Hmm, I might have understood it now.
 
 
2 hours later…
8:00 AM
If I want to change the style of inline cells, those entered using Ctrl-9, what do I have to change in the stylesheet?
Just something for TraditionalForm?
 
 
2 hours later…
9:36 AM
Could someone test if they can open this notebook? There is something wrong with it. The first time I try to open it, it doesn't open. The second time it does. dl.dropboxusercontent.com/u/38623/IGDocumentation.nb (3.6 MB)
 
@Szabolcs Same for me.
 
9:57 AM
@C.E. Thanks! Also OS X, right?
 
10:16 AM
@Szabolcs yup
 
@Szabolcs works well on win
 
10:34 AM
@C.E. @Kuba I found the problem. It had Visible -> False set. This happened while evaluating the notebook from the command line with UsingFrontEnd (and an automatically hidden front end) ...
 
10:50 AM
Finnish government is about to have an experiment on basic income, and is selecting 2000 test subjects from group of eligible candidates. They have published source code for selection method (in SAS).
The problem is that the selection method is absurdly broken, by lack of entropy. Code manages to have effective amount of entropy of around 15 bits for the selection process, when they would actually need 20+ kilobits of it, and routines for subset selection which simply aren't there in sufficient fashion when using SAS surveyselect and PRNG it uses internally.
I had to write a violent rant on it to them. I wonder if that selection routine is actually mandated by law to be exactly what they describe...
I'm not saying that anyone would be involved in active wrongdoing, but randomness of subject selection is very illusory.
 
@kirma Don't write them, write the newspapers! But in that case perhaps better not to phrase it in terms of entropy :)
Your experiment has gained attention here in Sweden by the way.
 
11:06 AM
@C.E. The problem in this regard is that the nuances that make the thing broken are subtle enough that they're basically opaque technobabble for the non-initiated.
 
ok :/
 
11:38 AM
I'd say their intent is noble in publishing the sampling code, but sadly instead of increasing confidence in impartiality of the solution, it rather removes trust in professionalism.
 
@Szabolcs Concerning this question mathematica.stackexchange.com/q/15628/78 you have edited it as fixed since V11. But I think that the following plot still shows some symptoms: LogPlot[E^(-1000 x^2), {x, -300, 300}]
If we use -100, instead of -1000 the scale is indeed logarithmic. But with the -1000, in 11.0.1 (windows), I get a linear scale.
I don't have 11.1beta installed, so I haven't checked if it is something underwork. If someone can check on the most recent "released" build, that would be great.
Also, with Frame->True, we can see a bad side effect of this: LogPlot[E^(-1000 x^2), {x, -300, 300}, Frame -> True]
(I get no ticks at all)
Using 1000.0 instead of 1000, changes the behaviour, as nothing is plotted. And this is something that doesn't seem to be correctable with WorkingPrecision.
 
12:32 PM
@P.Fonseca Seems like a different bug, but a bug nevertheless.
 
12:50 PM
0
Q: What does the "Last seen" information mean?

LCarvalhoWhen we are on a user's page, what does the "Last seen" information mean? Does this information indicate that the user (profile owner) logged into the system? Or that any other user saw something from this user? Or does it indicate neither of these things, but something else?

 
1:27 PM
@MichaelE2 Yes,I know what you want to express.It is a constructive thinking.
But it 's seen cannot fit other case.such as:
But it 's seen cannot fit other case.such as:
I mean enven that value is positive,the caculation may be break out.
 
acl
hey all. is anybody using emacs to edit mathematica code?
if yes, which mode?
I searched the site for answers and just found some old ones (including mine)
so, anybody else actually using emacs now apart from me, and is there anything that's being updated?
(also hi @halirutan, @Szabolcs and people I don't know :) )
 
1:50 PM
@yode I don't know why you're concerned about positive and negative values. It's greater than and less than that matter in determining more and less complex.
@acl Hi!
 
@MichaelE2 Yes,I have realized I made a wrong thought.Thanks for your answer.
 
@yode You're welcome. Have a nice day :)
 
acl
@MichaelE2 oh hi didn't see you.
not an emacs user I suppose?
 
2:16 PM
No, not an emacs user. I muddle on with notebooks. I don't do much with packages.
 
2:38 PM
Folks, can I ask you to test if ConstantArray[0,{}] returns unevaluated in any combination of OS and/or MM version?
 
acl
2:56 PM
@EmilioPisanty it does not, it generates ConstantArray::ilsmn
mma 10 on OSX
 
@acl and returns unevaluated?
that's so bizarre
 
acl
@EmilioPisanty no
or rather yes, it spits it back unevaluated
 
the docs say it's unchanged since v7
but on v11 it returns 0
and no error code
 
acl
well, 0 is a 0-dimensinoal array I guess
 
@acl yeah, that was what I was designing for
and it worked on my system
 
acl
3:05 PM
for example Array[0 &, {}] does what you'd expect
so I guess it's a bug in older versions
@EmilioPisanty oh I see you're at Imperial. I did my PhD there!
 
@acl was but am no longer ;-)
moved out in February
 
acl
ah
still in physics?
(also, maybe replacing by Array is more robust across versions)
 
@acl still in physics.
@acl any particular reason?
 
acl
@EmilioPisanty Array seems to work. If it really is a bug, then it probably is only in ConstantArray
 
@acl yeah, but how do I know that there isn't some other bug in Array, or that it's not going to have some other funny interaction with my existing code?
 
acl
3:12 PM
@EmilioPisanty no idea. there is a reason I stopped using mathematica for larger projects and switched to python which I don't know nearly as well
 
3:29 PM
The above, questionified:
0
Q: On what versions and OS's does `ConstantArray[0, {}]` work?

Emilio PisantyI've been using the combination ConstantArray[0, {}] (* 0 *) in my code for some time, as a way for returning zero (i.e. a zero-dimensional array of zeroes) inside scalable code that can be made to produce empty arrays of arbitrary dimensions but also zeros. On my system (currently v11 over l...

 
@halirutan I think we have every right to be confused about cases like this. The problem is that the query has an operator of the form descending /* ascending /* descending. The documentation is silent on how such forms are treated and the actual interpretation has been changing across releases.
Presently, such forms are treated as pure ascending operators:
    Query[GroupBy[#x&]/*KeySort /* Values, f] // Normal

    (* Map[f] /* GroupBy[#x&] /* KeySort /* GeneralUtilities`Slice[Values] *)
But by converting Values to be ascending, the operator takes the form descending /* ascending /* ascending which is a form that is documented to preserve the descending character of the first operator:
    Query[GroupBy[#x&] /* KeySort /* Query[Values], f] // Normal

    (* GroupBy[#x&] /* Map[f] /* KeySort /* GeneralUtilities`Slice[Values] *)
So, the upshot is that by converting the trailing operator to be ascending, the leading operator becomes descending. Hardly intuitive.
I think it would be more intuitive (less unintuitive?) if descending /* ascending /* descending were treated as descending /* ascending /* ascending. But that would mean yet another behavioural change. Sigh.
 
4:02 PM
@WReach Yes, the crucial point I was missing is how this particular combination of operators is interpreted as a whole. Your explanation is very illustrative and I knew that you are the one who knows a great deal about this. Thank you again for taking the time.
 
 
1 hour later…
5:30 PM
@R.M. Do you know if a chatroom is frozen if there appear blogposts attached by RSS regularily?
 
 
2 hours later…
7:21 PM
@halirutan The PackageData chat room was closed six days after an automated RSS message, which was fourteen days since the last message by a user. In other words, automated messages do not count as activity in the sense that it will prevent the room from being frozen.
 
 
1 hour later…
8:25 PM
@C.E. OK, thanks. That clears things up.
 

« first day (1786 days earlier)      last day (2695 days later) »