Reputation
12,541
Top tag
Next privilege 15,000 Rep.
Protect questions
Badges
22 50
Newest
 Necromancer
Impact
~111k people reached

Jun
25
answered ToExpression in Manipulate
Jun
25
comment Disabling a Button
if the data is just numeric values I think either would work well. I guess that csv is probably somewhat faster to load (importing excel has somewhat more overhead, especially for the first import in a session)...
Jun
25
comment Disabling a Button
@user38498: Ah, ok then the question makes more sense: xls/xlsx vs. csv. I don't think it is easy to give general advice for xls/xlsx vs. csv. I think both can be imported reasonably well in Mathematica, at least for "standard" content, that is not very large, only numbers and strings etc. It should be easy to test whether your data can be imported in either format and how long that tests...
Jun
25
comment Disabling a Button
my comment wasn't meant as critizism: when I saw your answer I just was seeing advantages (concerning robustness and flexibility) if one would not restict the check to an exact match of the initial value as I did. Of course your solution also has the advantage fo being shorter, but I wouldn't trade that for robustness. Concerning that I noticed that you'd actually need something like TrueQ@Quiet@DirectoryQ@DirectoryName[b1] as DirectoryQ doesn't comply with the usual *Q function conventions as it gives a message and returns unevaluated in certain cases...
Jun
25
comment Disabling a Button
but that would start disabled if b1 happend to have a value, for whatever reason. To be more robust one could test for something like: StringQ[b1]&&DirectoryQ[DirectoryName[b1]], which would also keep the button enabled if the user cancelles the file choose dialog. I think the most robust solution would be to use that test and still initialize with something well defined :-).
Jun
25
comment Disabling a Button
@user38498: I don't understand how an .exe (typically an executable program) and a .csv (comma separated values file format for tabular data) could replace one another? An executable can be used to do part of calculations outside of Mathematica, but .csv could only be used to store and load data you need for your calculation or generate with it. What is it that you want to do?
Jun
25
revised Pure Function that adds all arguments
added 594 characters in body
Jun
25
answered Pure Function that adds all arguments
Jun
24
answered Disabling a Button
Jun
24
comment Wolfram Script Not Completing when ran as cron job
so if you throw away the sudo it works even with UseFrontEnd? Interesting but good to known. As for the answer: it is welcomed to self-answer on this site in cases like that, I'm happy if you do that.
Jun
24
awarded  Nice Answer
Jun
24
answered HDF5 importing large arrays
Jun
24
answered How to trim out sequence of blank-spaces?
Jun
24
revised Why doesn't ParallelTable work on this very simple example?
added note about V10.1
Jun
22
revised HDF5 importing large arrays
added remove data and note about being careful
Jun
22
revised HDF5 importing large arrays
deleted 48 characters in body
Jun
22
revised HDF5 importing large arrays
deleted 48 characters in body
Jun
22
revised HDF5 importing large arrays
added example for import of integer dataset via LibraryLink
Jun
22
answered HDF5 importing large arrays
Jun
20
comment Wolfram Script Not Completing when ran as cron job
I think it could also be good enough to unset the $DISPLAY environment variable, but I have no possibility to test that at the moment...