52,768 reputation
3109220
bio website halirutan.de
location Leipzig, Germany
age
visits member for 3 years, 2 months
seen 6 hours ago

Although I'm quite familiar with Mathematica, I always try to keep an open mind and don't use it as golden hammer. I'm particularly good at things that are fun, for instance


15h
comment How do I correctly embed VerificationTests in my packages?
I'm afraid it is very unlikely, that more experienced programmers are able to give a detailed canonical answer, because this question is not widely applicable IMO. There are good reasons, why most common (I don't know any counter example) programming languages separate their unit-tests from the source code and even put them into a complete different package/directory.
1d
awarded  Nice Answer
Mar
28
awarded  Good Answer
Mar
27
awarded  Popular Question
Mar
27
comment Transform fancy usage messages in 1D string
No, unfortunately it won't work. I could explain it, but this should probably happen in the Mathematica Chat.
Mar
27
comment Transform fancy usage messages in 1D string
It should work and it does for me: Import["http://goo.gl/NaH6rM"]["http://i.stack.imgur.com/6dIjY.png"]
Mar
27
comment Transform fancy usage messages in 1D string
It was just an example to show what I mean. You can use for instance constructs like the following to prevent evaluation until the symbol reaches MessageName. Look here: Function[s, MessageName[s, "usage"], {HoldFirst}] @@ MakeExpression["$CloudRootDirectory"]
Mar
27
revised Mathematica on Raspberry Pi
added 248 characters in body
Mar
26
comment Faster position list construction from a “take instructions” list
@DanielLichtblau Nice! I guess we wouldn't be the worst team in a real brainstorming either. I fixed some of the formatting in your answer.
Mar
26
revised Faster position list construction from a “take instructions” list
added 130 characters in body
Mar
26
comment Transform fancy usage messages in 1D string
Btw, if you write a function that takes a symbol (or the symbol name as string) and returns the formatted usages, be very careful to never evaluate the symbol on its way through your function. Nowadays, we have simple variables that want to connect you to the internet. Try for instance f[s_] := MessageName[s, "usage"]; f[$CloudRootDirectory]
Mar
26
comment Transform fancy usage messages in 1D string
Some of them are not only hard cases, they are plain wrong. I don't remember which exactly, but most of the times it happened with usage strings that itself contained strings with formatting like the StringReplace example I gave. Since I had to convert all of them, I just stopped when errors happened and looked what went wrong.
Mar
26
comment Inline documentation of “Properties”
@chris See my edit at the end of the answer.
Mar
26
revised Inline documentation of “Properties”
added 801 characters in body
Mar
26
comment Faster position list construction from a “take instructions” list
@DanielLichtblau Btw, I think that the timing diagram that 2012rcampoin did shows my approach in a very bad light because jumps are not limited at all and all the examples that rasher gave where very limited in jump-range. I admire the consistent speed of his solution, but I should ask for the input limits next time before digging so deep into a academic problem .
Mar
26
comment Faster position list construction from a “take instructions” list
@DanielLichtblau What bugged me the most with this problem was that it seemed you always have to solve the problem by actually doing the operations on the elements. I simply couldn't believe that it should not be possible to calculate the final position-list without moving/removing elements from a list. I knew that a simple list[[{somePerm}]] would be fast and I had from the beginning a slight feeling that I'm probably able to calculate the positions by simple integer operations and looping. I haven't considered rotating elements because I tried to avoid all list operations.
Mar
25
awarded  Good Answer
Mar
23
comment Palette button with progress bar
It seemed as if the window did not always appear, even if I set the delay to 0. But I would need to look at this in detail to find out why exactly this happened or whether it was something else in my real code.
Mar
23
comment Palette button with progress bar
Very nice. Unfortunately, on Linux this doesn't seem to work very reliable.. +1
Mar
23
answered Palette button with progress bar