Reputation
8,266
Top tag
Next privilege 10,000 Rep.
Access moderator tools
Badges
30 54
Newest
 Informed
Impact
~33k people reached

Sep
13
comment The dangers of SaveDefinitions — should this really happen?
@Szabolcs All SaveDefinitions does is to auto-construct an Initialization option for you. I'm a control freak. Let me construct my own Initialization option.
Sep
12
comment Possible bug with second argument of Dynamic
I was considerably less confident than Rolf. Especially when I tried it in a development build, and it behaved worse. But then I fixed it. So I guess my confidence matches Rolf's, now. :) Beta testers should see this in the next beta build.
Sep
12
comment The dangers of SaveDefinitions — should this really happen?
More people should use the InputForm technique. Bravo to you.
Sep
12
comment The dangers of SaveDefinitions — should this really happen?
I never use SaveDefinitions. Just never. It's terribly convenient, but for my purposes, it is just not sufficiently predictable. And it can sometimes be incredibly inefficient (e.g., when it stores ridiculous amounts of definitions which were hidden behind a Needs or Get).
Sep
12
comment undisputed FrontEndTokenExecute
I'm very happy to see answers using the under-utilized Cells function. But I'm not sure what you mean by your statement that this "doesn't use the front end". Both Cells and NotebookDelete require a front end to work properly, and they're implemented by causing the kernel to issue commands to the front end. Incidentally, code very similar to this is in the Applications Examples section of the Cells documentation.
Sep
12
answered How to correctly disconnect from the kernel?
Aug
31
comment Incorrect information displayed when slider is moved (intermittent)
@Mr.Wizard Localizing t would require throwing multiple Blocks into the code to preserve the output form (which would not be preserved by DynamicModule, etc.). I agree that this would be the proper thing to do, but I didn't want to complexify the answer by focusing on points the author didn't ask. Nonetheless, I will point out for posterity that Mr.Wizard is right in saying this is not the code as I would have written it.
Aug
28
answered Incorrect information displayed when slider is moved (intermittent)
Aug
28
comment Automatically close Mathematica
@Kuba it's not possible to do anything like what you're asking for globally for arbitrary Mathematica commands. If you're sticking to fully documented Mathematica functions, you shouldn't ever see interactive prompts unless that's the purpose of the function (e.g., Input). But many of the FE tokens were implemented only for the purpose of user interaction through the menu system, and do not represent the gold standard of end-to-end design that we generally apply to fully documented functions.
Aug
26
comment Automatically close Mathematica
@Kuba, if you run the front end with the -server command-line option, then it will not prompt dialog boxes. But it will also not be usable by the user. This is, for example, how the kernel command UsingFrontEnd launches the kernel. Since you don't provide very much context for your question, it's not clear to me whether this is a useful answer to your question.
Aug
24
awarded  Nice Answer
Aug
24
awarded  front-end
Aug
23
answered Automatically close Mathematica
Aug
20
comment How to do computations simultaneously in multiple notebooks?
If you're using a second kernel, it is not necessary to set the notebook's default context. It's not harmful...the two items are simply not related to one another.
Aug
16
awarded  Nice Answer
Aug
13
awarded  Enlightened
Aug
13
awarded  Nice Answer
Aug
10
answered How to set font color for display formula to be same as the cell in which the display formula resides?
Aug
10
comment Alternative to NotebookLocate or NotebookFind
The v8 solution has another problem. It fails to find cells with multiple cell tags. E.g., a cell with CellTags->{"tag", "abc"}.
Aug
10
comment Alternative to NotebookLocate or NotebookFind
Surely, you want instead NotebookRead /@ Cells[EvaluationNotebook[], CellTags -> "CellTag"]. By using First, you're only getting the first of many cells, or generating an error condition when you try to get the first of zero cells.