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

Aug
27
comment Select Cells to End of Notebook
Thanks for the information about the source, not exacty where one would actively search, but at least it's there:-). But isn't what you describe in the comment what already is in your answer and the "SelectNextLine" would allow to select the current cell and then extend to the end of the notebook? Something like: SelectionMove[InputNotebook[], All, Cell]; FixedPoint[(FrontEndTokenExecute[InputNotebook[], "SelectNextLine"]; SelectedCells[InputNotebook[]]) &,{}]
Aug
27
comment Select Cells to End of Notebook
very good find, turns out there is also a FrontEndToken "SelectNextLine" which would allow to select the rest of the notebook from top to bottom instead from bottom to top. Both seem to be quite useful, would you mind to share where you did find them?
Aug
22
comment User defined packages don't load with $\mathtt{Needs}$ or $\mathtt{Get}$
I think the pointer that Jack gives in his answer is correct, but you can achieve the same effect without using a notebook. Just select all cells in the package file opened in Mathematica as shown in your screenshot and convert everything to code cells (use the menu "Format" -> "Style" -> "Code or just Alt-8). Your code seems to be all in one input cell which is only contained as comment in the package file.
Aug
21
comment best practices for saving Datasets and TemporalData to a SQL database
@LeonidShifrin thanks for the extra information, it is appreciated. So we can now only hope that that stuff will officially appear in an future version soon...
Aug
21
comment best practices for saving Datasets and TemporalData to a SQL database
One important advantage that hdf5 in principle would support (though not the current Import implementation) would be to write and access only parts of huge numeric arrays at a time, e.g. read/write only some columns or rows of a 100000x100000 double array. That would make it possible to work with data even if it does not fit (or hardly fits) into memory and I think that would be an important feature for a system like Mathematica which is not specifically memory efficient. Am I correctly guessing that the new Dataset/Streaming stuff will allow such functionality as well?
Aug
21
comment Why does this LibraryLink example of LinkObject based passing not work? Bug or user error?
OK, thanks for the information, that all sounds interesting. I just was wondering, but it is good to know who to ask when having questions :-). I have myself used LibraryLink only to pass around largish numeric arrays in pure C and found that working very well and efficient and I think for that purpose LibraryLink is better suited than MathLink. So far I have no experience with anything else, though...
Aug
21
comment Why does this LibraryLink example of LinkObject based passing not work? Bug or user error?
as you are asking many LibraryLink related questions lately, may I ask what you are working on?
Aug
21
comment best practices for saving Datasets and TemporalData to a SQL database
From some leftovers in the documentation I guess that the long term goal for datasets is (was?) to support SQL databases as a kind of backend. Of course that only makes sense / will work (well) for certain kinds of datasets. As for TemporalData-like data the common knowledge is that SQL databases are in general not well fitted to hold data which is purly numeric arrays. There are projects to extend SQL databases to have special support for arrays but the current best practice is to store such data in other ways, and I think hdf5 has become a quasi standard for such data in recent years...
Aug
19
comment How to reference StringExpression named parts from a package without full Context path?
everything always takes too much time, but I'm enjoying the freedom to waste my time as I like :-)
Aug
19
comment How to reference StringExpression named parts from a package without full Context path?
@LeonidShifrin: I didn't actually plan to give an answer, but your comment made me feel I have to :-)
Aug
18
comment How to reference StringExpression named parts from a package without full Context path?
many of the symbolic Mathematica functions have the same problem, the standard way to solve it is to pass the symbols to be used as variables in a second argument...
Jul
3
comment Deleting a line from a file
for that application I would strongly suggest to only delete after writing. If your job terminates/crashes during "backup" all efforts will be lost. So if your quota allows two copies, it would make much more sense to write first and only delete when writing has succesfully finished...
Jul
3
comment Graphics3D artifact in Mathematica 10.1 64bit Home Edition - Windows 7?
I don't get those extra lines with 10.1 on Windows 7, both 64bit. So I think it is not a general problem with that version on Windows 7...
Jun
29
comment Problem with NDSolve: derivative interpreted as square
@jon: the only answer so far suggested that this might be a formatting issue. It can happen in rare cases (e.g. by accidentially using some unknown keyboard shortcuts) that some of the formatting gets into a state where it is difficult to understand what happens. Could you select the cell which contains the equations and then choose the menu entry Cell -> Show Expression? This will show the plain box expression in the FrontEnd. If you would copy that and put it here as code we could probably understand what has happened...
Jun
26
comment Convert spreadsheet (Excel) to *.csv during import
I've seen you have accepted my answer. Would you mind to let us know what you ended up to do and if that worked? I think this kind of feedback is what makes the site valuable and keeps people motivitated to answer questions. It is also encouraged to answer own questions in such cases describing in more detail what you did. My answer is kind of vague and probably only of limited value, so I would even be happy if you'd accept your own answer instead of mine :-)
Jun
26
comment Convert spreadsheet (Excel) to *.csv during import
@SjoerdC.deVries: I added that link to my answer, thanks for the hint, I was too lazy to do the obvious and search this site...
Jun
26
comment Manipulate code crashes V10.1
it doesn't crash for me (10.1 on Windows 7), but it does continuously update as Aloghi mentioned. I think chances are good that this will not crash if you avoid that continuous updating. That can easily be achieved by extracting the body into a function which only has the actual parameters as arguments and use that instead: Manipulate[calculate[ts,f, Z0, RL,T],...]. If you need this inclosed in the Manipulate use SaveDefinitions. Would you let us know if that solves your problem?
Jun
25
comment What is the role of the pattern object in this implementation?
@abrentonc: Mathematica is at its core a symbolic system, so it will evaluate a function for non-numeric arguments, e.g. f[x_]:=x^3;y=.;f[y]. If you call something like NDSolve which only handle those parameters as numeric input, then you have to restrict the function pattern to numeric parameters.
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...