Reputation
13,541
Top tag
Next privilege 15,000 Rep.
Protect questions
Badges
25 52
Newest
 Yearling
Impact
~133k people reached

13h
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.
Jan
23
comment What algorithm do the Compress and Uncompress functions use?
@MarkAdler +1 for your answer, but I think it is not the comment of MarcoB which is wrong but the content of what he is quoting. As the source seems to be from 2009 it might even be the case that it was correct back then. Have you checked whether this has changed from older versions? The real shame is that this is not more clearly documented...
Jan
23
comment why does ReadString[“fname”,term] open a persistent stream, and how to close it?
which version are you seeing this with? For me with 10.3.0 on Windows 7 it gives 6 times "test1" as expected (well it gives me "test1\r" but that's no surprise as I created the file on windows...)
Jan
19
awarded  Yearling
Jan
18
comment Annoying display truncation of numerical results
I have just seen that this was asked again. As this is a question which presumably beginners are asking I think it would make sense to mention that you can change that setting in the "Preferences" dialog (menu entry "Edit" -> "Preferences") in the Numbers tab of the Appearance tab...
Jan
18
comment Clearing a global variable from inside a Module
You should be aware of the fact that a Module without a local variable doesn't change anything to what you are trying to do. If you want to remove a symbol whose name is stored in a variable as a string, you could use: ClearMyX3[] := Module[{s}, s = "X"; Clear[Evaluate@s]]. (note that I have localized s, so in that case the Module isn't useless which is what you probably want to do in the long term and it shows that this will also work...). In general I would never suggest to write code which needs to clear globals, can you explain why you think you need this?
Jan
15
comment Import Excel data from within Manipulate
I think the trick is to use a Button with Method->"Queued" to open the SystemDialogInput. You will find detailed examples and explanations on this site when searching for Queued...
Jan
15
comment Void elements / self closing tags export to HTML
@Kuba: The other way round seems to be even easier, as Picketts solution shows. I think I'll leave my answer anyway, then we have a workaround in both directions. I still think you might clarify that this seems only necessary for purly aesthetical reasons. If that would not be true, I think an example of when it matters would make sense as it would give the question somewhat more relevance...
Jan
15
comment Void elements / self closing tags export to HTML
I think you probably don't need to care. A potential problem might be that some code (presumably javascript) might want to deal with the result, e.g. put something into the empty element or otherwise manipulate it. But I'd be very surprised when that wouldn't work with either form as such code (if reasonably written) doesn't rely on the text representation but works with a DOM like structure...
Jan
15
answered Void elements / self closing tags export to HTML
Jan
15
comment Void elements / self closing tags export to HTML
I think in your "ugly" solution you are missing the closing tag. Can you elaborate why this is important for you? Both forms that ExportString produced seem to be valid html and equivalent in meaning, so why do you favour the two tags variant?
Jan
12
comment Temporary/popup Output Progress Boxes
I think you probably just want PrintTemporary ??? Replace your Print with it and see whether that does what you want...
Jan
5
awarded  Pundit
Jan
4
answered Working with ScheduledTasks inside DynamicModules
Jan
4
comment How do I copy files to the clipboard?
@PeterMortensen: in fact it is almost trivial to add this, as the SetData method wants a list of strings even for a single filename (which was the only tricky part to find out in the original code). For details how you can make the function work for multiple files see my edit. I don't fully understand the magic which makes this work automatically, but most probably a list of strings is just transfered into something that happens to implement the interface which the method expects...