Reputation
13,879
Top tag
Next privilege 15,000 Rep.
Protect questions
Badges
27 56
Newest
 notebooks
Impact
~142k people reached

Apr
12
comment How to Import a password protected Excel (XLSX) file?
@PeterRoberge: with the standalone Player Pro you can indeed use NETLink, see e.g. player-pro
Mar
18
comment Cannot start multiple instances of Mathematica after upgrading to 10.4
@Algohi: I would always suggest to keep at least one older version installed. I have never had any problems with parallel installations of Mathematica (currently have about 6 installed on my computer)...
Mar
18
comment How to make a panel disappear?
this is a really useful example for the use of EvaluationBox, which I think I just start to appreciate, so thanks for sharing. One thing I think should be noted is that it won't work with the free CDF Player, most probably because of the NotebookWrite (?). As that use case seems to be closer to Dynamic functionality than to programmatically edit notebooks, do you think there is a chance that WRI will allow NotebookWrite in CDF Player when the first argument is a box in future versions?
Mar
17
comment How to prevent $\text{Quantity}$ calculations from converting units
Actually you don't need the Unprotect at all as you are only making definitions for iqTimes and that is not protected. Of course that doesn't change the fact that you are changing system behavior and that is dangerous, no matter whether the symbol you are manipulating happens to be public and protected or private and not protected ...
Mar
17
comment How to determine where a variable got assigned a value?
OK, I understand now better what you intended adn that indeed seems to not be achieved easily with $NewSymbol. It probably is still good to have $NewSymbol mentioned in the comments to your answers, I think...
Mar
17
comment Inconsistency of WriteString
have seen it, no danger of wasting my time, I do that myself :-)
Mar
17
comment Inconsistency of WriteString
it definitely looks inconsistent and I didn't try to suggest things work as designed, it really was just meant as a hint about where to look for source of problem and workarounds. Especially that it seems to be OS dependent makes it look wrong. As I'm on Windows I don't see the problem and thus my possibilities to understand what happens and how it could be fixed are limited :-)
Mar
17
comment Inconsistency of WriteString
Would that work as expected when you use FormatType -> OutputForm for the OpenWrite? From the documentation WriteString writes OutputForm (which I think it only actully does when the first arg is not a stream), but the default for OpenWrite is InputForm...
Mar
17
comment How to determine where a variable got assigned a value?
I think that $NewSymbol and probably $NewMessage might be of interest, they provide functionality which should (also) make possible what you want...
Mar
14
comment How to deal with repeating usage of same attributes
see the documentation for SetOptions, it will let you do exactly what you ask for. It might be a good idea to remember what the original settings were so you can restore them once you are done. Restarting the kernel will clear those settings as well...
Mar
10
comment What are the most common (usual) ways to make palettes with non-trivial functionality?
I like your question and appreciate all the answers you have provided, but can you explain why you think that uninstall is difficult to implement? It would just mean to close all instances and remove the file. Doesn't sound like rocket science to me (and I have done it for my own palettes and packages, so there is no guessing about what needs to be done)...
Feb
24
comment How to print without having newline added automatically at the end?
documentation of this is not very detailed, actually I think (no reference at hand) that "stdout" is just a shortcut for Streams["stdout"] at that position, which will give you those of all open Streams[] which are called "stdout". Print will print to $Output which is a list of OutputStreams, by default having one entry which is once more "stdout". So using $Output would probably most closely reflect the behavior of Print....
Feb
20
comment Why is ListPlot[] so slow for coordinate pairs? Can we speed it up?
@xzczd: measuring such timings when two communicating processes work together is a science in itself. For all practical purposes I think getting the right order of magnitude with AbsoluteTime[] measurements for a piece of code running at least in the order of one second and trying to keep the machine free of other load is usually good enough. If you need more, it gets difficult...
Feb
19
comment Why is ListPlot[] so slow for coordinate pairs? Can we speed it up?
I think it just needs a Developer`ToPackedArray[Flatten[a,1]] to make it render as fast as ListPlot (have not really measured that...), so it might be that use of packed arrays is all the "hidden" optimization that ListPlot does...
Feb
9
comment Import 'file not found' error. Why?
@Anoldmaninthesea.: If you found a solution which works with the help of other users comments it would be appreaciated if you self-answer your question and accept it. For a good answer you even might get some additional reputation...
Feb
4
comment Unexpected behavior of Set
@Szabolcs: I'd really be interested whether the number of useful suggestions the suggestion bar has ever made to any user is at all larger than the questions about misbehavior it has triggered on this site alone...
Feb
4
comment Notebook Magnification changes - Why?
just a note about the "magical" changes of magnifications: you can change the magnification with Ctrl+Mouswheel, in steps of 10%. While that sometimes is quite handy, it unfortunately is easy to do that without even noticing (e.g. during copy+paste). I would guess that at least some of the cases where you saw the magnification to change unexpecedly might be due to that feature...
Feb
4
comment why MatchQ is fast and Replace slow?
It only seems to happen when the expr is reevaluated. When only reevaluating the last line or the last two lines it is fast on retries. Tried with 10.3.0 for Microsoft Windows (64-bit) (October 9, 2015)
Jan
25
comment What algorithm do the Compress and Uncompress functions use?
@MarkAdler: Sorry, I realized that my own comment was not very precise: the second part was meant to only address the part whether Compress is using zlib or LZW ("currently" is now recognized). What gzip internally uses and about the details of LZW I have no idea so cannot comment and am inclined to believe what you say is true (should be easy enough to check by those interested)...
Jan
24
comment why does ReadString[“fname”,term] open a persistent stream, and how to close it?
I can confirm that the behavior with 10.2.0, 10.1.0 and 10.0.2 (ReadList was new in v10 I think) is as Alan describes while it is as he expects in 10.3.0, both on the same Windows 7 (64bit) machine. So it looks like it is a bug which has been corrected for 10.3.