Reputation
26,428
Next tag badge:
211/100 score
19/20 answers
Badges
2 57 121
Newest
 Nice Answer
Impact
~129k people reached

Dec
23
revised Divide all but the maximal element in a list by 10?
added 352 characters in body
Dec
23
answered Divide all but the maximal element in a list by 10?
Dec
23
comment 10.0.2 another Dataset type system (inference?) warning
@Mr.Wizard I just tried the use case in 10.0.1 and it worked. So it appears to be a regression in 10.0.2.
Dec
20
answered Headings, subheadings, text cells etc and Alt+n
Dec
15
answered ReplacePart equivalent for Associations
Dec
15
answered Filtering Query Nested Data (Dataset and Association)
Dec
10
comment Error when implementing StartProcess[] in loops (Do, While, Table)
The problem with swapped stream names has been fixed in version 10.0.2.
Dec
10
revised Error when implementing StartProcess[] in loops (Do, While, Table)
noted that the swapped stream names have been fixed in version 10.0.2
Dec
8
comment Converting hierarchies of rules to associations
To see this all in action, constrast foo[2, foo[1], 3] /. e:foo[x__] /; (Print[e];True) :> fff[x] to Replace[foo[2, foo[1], 3], e:foo[x__] /; (Print[e]; True) :> fff[x], {0, Infinity}]
Dec
8
comment Converting hierarchies of rules to associations
We know that matching works from the outermost level inward from the documentation statement that after a match no further rules are tried on that part, or on any of its subparts. Example 1 matches foo heads only. As they have no subparts to skip, the inner foo is visited and replaced. Example 2 matches foo[x__] which does have subparts that are skipped, and we can see the inner foo subpart is left unchanged. Examples 3 and 4 give the same results as examples 1 and 2 respectively. Sow/reap tells us nothing here since the values are all being sown before replacement occurs.
Dec
8
answered Rearranging a Dataset
Dec
7
comment Unexpected result from StringReplace
The Details section of StringExpression explicitly, if cryptically, states that Except can be used to match either a single character or a string position. It also implicitly suggests that the only valid arguments are those patterns listed within the sections detailing classes of characters or positions in strings. Experimentation supports this interpretation. All of this requires a pretty close reading -- I would prefer more direct statements of these points within the documentation.
Dec
5
awarded  Nice Answer
Dec
5
revised Where is the old option TraceInternal->True?
added the update concerning the `SetStreamPosition` messages
Dec
5
answered Where is the old option TraceInternal->True?
Dec
4
comment Dataset Query with condition on two subsequent rows
+1 You could also replace 7 with SelectFirst[Length@# >= 2 &] to address it structurally.
Dec
4
comment Select last occurence of key in dataset
@alancalvitti To resolve name collisions, I usually choose one of two strategies. If the number of uses of a colliding name is small, then I just use the fully qualified name. If there are a large number of references, then I define a short alias instead. While I can think a few instances where I have had to deal with a function name collision, I can't think of a case where I have had to deal with colliding global variables. Global variable names tend to be very specialized.
Dec
1
answered How Can Notebook Know When it Called by Another Notebook?
Nov
24
awarded  Good Answer
Nov
24
comment Injecting list of controls into manipulate
V10.0.2? :( I'm afraid I am not aware of a reliable fix. See the chat for another variation of your answer (but it is also flakey on V10).