Reputation
22,890
Next tag badge:
189/100 score
18/20 answers
Badges
8 71 173
Impact
~277k people reached

Apr
17
comment How to synchronize the display of dynamic objects?
It is enough if the Dynamic is moved to wrap the Line, no need to make the full content dynamical as well. I assume, SpehericalRegion cannot pre-determine the full region because of the dynamical content and that is why the explicit plot range is required.
Apr
15
comment Bug in MovingMap (breaking change between version 10.1 and 10.0.2)?
This returns an error for me (v10.1.0, 64bit, Win7): Quantity::unkunit: Unable to interpret unit specification Events. >>
Apr
14
comment Faded output is printed from dynamic object
@John, I am ashamed that all the way since v6 I have not realized this at all. I guess my setting of Manual was a frozen bad habit. Thanks for the help, setting was removed from my init.m!
Apr
13
comment How to map over inner keys of nested Associations?
@Mr.Wizard You might be right: while there are some examples (like Associations as keys), now that I scanned the docs I do have the feeling that an association is meant to be (used mainly as...) one-dimensional. And of course, there is this, which might indicate that the 1D-approach is intentional. But on the other hand, labeled data is automatically used by charting functions as labels/legend...
Apr
12
comment How to map over inner keys of nested Associations?
@Mr.Wizard Look around Dataset, under Applications > Associations of Associations, e.g. ExampleData[{"Dataset", "Planets"}].
Apr
12
comment How to map over inner keys of nested Associations?
@Mr.Wizard BTW, do you have any idea why these functions are not applicable at different levels? Association is not meant to be a single-level vector, even the documentation has many nested examples, so I wonder.
Apr
12
comment How to map over inner keys of nested Associations?
@Mr.Wizard I consistently get the unevaluated result; could this be a bug? Or am I overlooking something about the internals of associations?
Apr
12
comment How to switch from array to string?
Elegant! You can use StringDelete[..., "{" | "}" | ","] instead of StringTake.
Apr
10
comment How to set focus of a dialog window?
@Kuba This seems interesting, but do you possess any further information about where, how, and who uses ReferenceBox* and BoxReference* functions? It is hard to experiment with them without any pointer on what they do.
Apr
9
comment Building a 1 page “Scorecard” in mathematica
How to Work with Tables; Grids, Rows, and Columns overview; Layouts & Tables; User Interface Structuring & Layout; Grids & Tables;
Apr
7
comment Compile, “global variables” and recursion
@Marius No, unfortunately. My usual approach nowadays is to just write computation-intense code in C and only do top level or data-analysis under Mathematica.
Apr
7
comment How to stop Mathematica from turning .02 into 0.019999999999999997`
@MichaelE2 Perhaps a duplicate of this: The difference between 0. and 0? It has a lot of good answers patternmatching-wise.
Apr
7
comment Compile, “global variables” and recursion
Perhaps related: Compile recursive function modifying global variables.
Apr
6
comment Faded output is printed from dynamic object
... Later on at some point, the behaviour has been changed, but I don't know when. Perhaps version 7?8? It indeed groups now as one would expect when set to Automatic, and it does not mess up my files as it happened with previous version. Was this change documented? Or am I completely missing something here?
Apr
6
comment Faded output is printed from dynamic object
@John Years ago when I started to use it the mainstream approach was not to group cells at all (at that time, it wasn't even possible to collapse an input-output-pair to show the output only). By manual grouping I could group the way I liked. Ultimately, I've put the option into my autoload init.m. Also, when I've set it to Automatic globally and opened a notebook with previously set and saved cell grouping, it was gone and had to either regroup cells, or close and open the nb after resetting FE-level grouping to manual (e.g. after version upgrades where my settings were not kept)....
Apr
6
comment How to stop Mathematica from turning .02 into 0.019999999999999997`
If you want exact numerics, use exact numbers: 2/1000 instead of 0.002 and avoid N.
Apr
3
comment Faded output is printed from dynamic object
@YvesKlett Could you please test/confirm whether CellGrouping->Manual triggers the behaviour at your end?
Feb
2
comment How to typeset a system of equations
True, I've just realized that myself. +1 for your more robust solution!
Feb
2
comment How to typeset a system of equations
Why not use the built-in align-to-character option? DisplayForm@RowBox[{StyleBox["{", SpanMaxSize -> Infinity], Column[eqs, Alignment -> "\[Equal]"]}]
Jan
22
comment Real Numbers in the Wolfram Language
Also related: How to check if an expression is a real-valued number.