Reputation
13,844
Top tag
Next privilege 15,000 Rep.
Protect questions
Badges
27 55
Newest
 Nice Answer
Impact
~142k people reached

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...
Jan
4
revised How do I copy files to the clipboard?
added instructions about how to make this work for a list of files
Jan
4
answered How do I copy files to the clipboard?
Jan
2
awarded  Nice Answer
Dec
30
comment LibraryUnload fails
@halirutan: yes, but that seems to not work, at least not for me on Windows. I'm not sure whether that is a shortcoming of LibraryLink` or of Windows, though. When I try to unload LibraryUnload gives an error message and the kernel still keeps a handle on the corresponding file...
Dec
30
comment LibraryUnload fails
@halirutan: you mention that LibraryLoad is needed to pre-load libraries which own libs depend on. This is what I currently need to do, but then I can't unload those libraries (there is no LibraryFunction to load from those). Do you have a solution how I can Unload those dependencies so I can remove them without closing the kernel? I'm afraid that won't work, which I consider an oversight (bug?)...
Dec
20
comment If I have a very large Popup Menu list how can I make that searchable?
very nice, but I think there is a typo which made my mathematica complain: there is a double ';;' after EvaluationBox[];; in the Initialization which makes Mathematica complain and the widget not work.
Dec
17
revised Notebook cells space on disk profiler
added progress bars for things which might take a while
Dec
17
comment Notebook cells space on disk profiler
@P.Fonseca: a progress bar would certainly make sense. Difficulty might be to count the total number of cells without reading the complete Notebook expression into kernel memory. I might add that when I have more time to look at this. Good to hear it was helpful, and yes, I think 1 minute is probably OK for the purpose it serves and such large notebooks...
Dec
17
comment Notebook cells space on disk profiler
@P.Fonseca: good to hear. Do you remember what exactly was taking long? I would expect the creation of cell ids to last long - it is somewhat ad hoc. But that would only have to be done once per notebook, if you keep the CreateCellID set to True for that notebook, new cells will also get a unique id. The generation of the list could probably be made faster by reading the whole notebook at once, but that will take some effort and probably become a memory problem as we then would load the whole notebook content into kernel memory...
Dec
15
answered Can TabView be modified to show images for navigation instead of vector art or text?
Dec
15
comment How to load to Mathematica functions linking to MKL with LibraryLink on OSX
@ilian: as I said, don't know OSX very well. So these are statically linked into another dynamic library? Is this so just on OSX? Interesting construct, certainly outside of the limits where I understand what actually will be used and why :-)
Dec
15
answered Defining a list of functions
Dec
15
comment How to get Matlab data imported with the same dimensions?
As for the extra dimension: I think this is there just because you can put more than one matrix into a .mat file. They will then be imported into Mathematica in a list of arrays. In matlab, content = load('file.mat') will return a struct with a field for every variable name in that case, a simple load('file.mat')will create/overwrite the corresponding variables in the current workspace...
Dec
15
comment How to load to Mathematica functions linking to MKL with LibraryLink on OSX
Not sure as I don't know OSX very well, but when it works (only) when DYLD_LIBRARY_PATH is changed as indicated before Mathematica is started looks to me like now Mathematica itself will also find and use your versions of mkl libraries, which could cause problems in internal functionality. I'd check whether that's the case. If it is the case I'd feel safer try to use the mkl libraries versions provided with Mathematica for my own functions than force Mathematica to use another version internally...
Dec
9
comment How to export heterogeneous data to single file?
If you think about access/dbase/sqlite I'd think they are not a very good fit, your data seems to be hierarchical rather than relational by nature. If you don't want to reorganize it, I'd rather think one of the scientific formats (FITS, NetCDF,HDF5) or even a zip-archive might be a potential fit. Of the scientific formats I have only experience with HDF5 which would even support image data but unfortunately that is one of the features that I think Mathematica does not really support. A good choice depends very much on what you are using to read those files...
Dec
9
comment List consisting of positions of the matrix elements and the elements themselves
@J.M.: good point, yours is not only slightly shorter but also somewhat faster (still slower than Table for me, though)...
Dec
9
comment How to export heterogeneous data to single file?
you could as I mentioned use some JSON-compliant encoding to store binary data in JSON as a string, but as JSON doesn't per se know anything about pictures the "receiving" side would have to know how to decode the corresponding strings and how to interpret the binary data. If you write or define the receiving side yourself that is no problem, otherwise JSON probably is not the format to choose. Can you give more specific requirements of "some standard format"? Maybe someone can suggest an alternative then...