Reputation
29,928
Next tag badge:
478/400 score
65/80 answers
Badges
2 66 146
Newest
 Nice Answer
Impact
~292k people reached

Jun
22
revised How to Set parts of indexed lists?
edited body
Jun
22
comment Using a built-in symbol as a variable
@Jens, weird he hasn't put it in his own answer...
Jun
22
answered Using a built-in symbol as a variable
Jun
22
comment How to Set parts of indexed lists?
Thanks! @grw, I just saw a tiny bug in the first solution (the one with MakeExpression) and fixed it. Be sure to use the new one.
Jun
22
revised How to Set parts of indexed lists?
added 20 characters in body
Jun
22
comment How to manipulate 2D plots?
@IstvánZachar, great that you're improving this :) :). It seems I lose all interactivity after replotting. Am I doing something wrong?
Jun
22
comment How to Set parts of indexed lists?
Leonid, this got me thinking about how I would have done it. Posted it as an answer because the code got long for a comment, with the appropriate warnings, and an extra idea to ease my conscience on posting it as an answer
Jun
22
answered How to Set parts of indexed lists?
Jun
22
comment How to Set parts of indexed lists?
Right, and furthermore you avoid creating a different symbol every time a certain index is reassigned a new value, leaking memory. My yet-non-DownValues-user instinct would have led me to tackle both issues differently. Using explicit DownValues is something that doesn't come straight to mind
Jun
22
comment How to Set parts of indexed lists?
+1, nice one! What's the purpose of setting the DownValue by hand only when there's no other downvalue associated with the symbol, versus simply sym[index]=ref?
Jun
22
comment Happy 2K prime question
Hehe, can't fight knowledge with brute force. +1!
Jun
21
revised Dialog inside dialog not DialogReturn-ing properly
added 21 characters in body
Jun
21
comment Dialog inside dialog not DialogReturn-ing properly
What did that change?
Jun
21
comment Dialog inside dialog not DialogReturn-ing properly
That doesn't seem to work... I'm on 8.0.0 right now, and that prevents the failed return but doesn't prevent the early return. Changes $Failed to Null
Jun
21
asked Dialog inside dialog not DialogReturn-ing properly
Jun
21
comment ShearingTransform and Dynamic
Naive InheritScope->True doesn't seem to survive the full synch. How would you deal with that? DynamicModule[{x}, {Slider@Dynamic@x, Button["h", CreateDialog@DynamicModule[{}, Dynamic[x], InheritScope -> True]]}]
Jun
21
comment Happy 2K prime question
Thanks @Szabolcs, fixed
Jun
21
revised Happy 2K prime question
deleted 2 characters in body
Jun
21
comment Happy 2K prime question
You just made me look for an alternative to Total[IntegerDigits[#]^2], and since what I found seems to be faster than that one, I used it myself, hehe. But I hereby, on the record, grant you the exclusive license to use it #.#&[IntegerDigits[#]]
Jun
21
awarded  Nice Answer