57,625 reputation
5141334
bio website
location ND
age 31
visits member for 2 years, 7 months
seen 1 hour ago

contact details

Visit Mathematica.SE


May
24
comment How safe is the use of Block and Internal`InheritedBlock
A question with remarkably many votes and remarkably few responses. While doing things like this are exciting, and sometimes seem promising for solving some problems, it's very difficult to come up with bullet-proof patterns. What I don't like about Mathematica is that it's so difficult to foresee the consequences of doing something non-standard. Personally I avoid these as much as I can ... (but it's difficult to resist the temptation sometimes).
May
24
comment How to declare a 3D vector variable?
You can start here.
May
24
comment How to calculate the volume of a convex hull?
It does provide a feasible numerical solution though.
May
24
reviewed Approve suggested edit on How can i get the solution of complicated equation?
May
24
comment Using anonymous functions instead of module or block. Bad idea?
As rm said, this is a typical use for With, not Block or Module. Block/Module create mutable local variables, With/Function only allow using constants. Function is also a closer analog of With because both can inject expressions into a held expression. Personally I find With more readable than Function but I know that some people would use Function... Regarding performance, why don't you just measure? My hunch is that With will be marginally faster than Module/Block because it spares some evaluation steps, but I might be wrong.
May
23
comment Is the TCPIP link type compressed?
I have to correct myself. They're compressed after being sent, not before.
May
23
comment Is the TCPIP link type compressed?
My naive guess is that it is not. The guess is based on the fact that large enough GraphicsBox expressions get compressed explicitly before being sent to the kernel.
May
23
revised Explicit asterisk or @ sign in string patterns
deleted 43 characters in body
May
23
answered Explicit asterisk or @ sign in string patterns
May
23
revised Explicit asterisk or @ sign in string patterns
added 9 characters in body
May
23
answered Is it possible to Import urls not type “”
May
23
comment Mapping multiple functions
The title is a bit misleading---here you are mapping a single function onto a list of functions.
May
23
comment String encoding issue with Pythonika
I wrote to the author once in the past but got no reply. If it will be the same this time, we should collect these fixes somewhere. I was also just playing with it and was planning to put it here (haven't pushed the changes yet).
May
23
comment String encoding issue with Pythonika
Excellent, thanks! (and +1 for the answer)
May
23
revised String encoding issue with Pythonika
edited title
May
23
reviewed Approve suggested edit on Is it possible to import data from Google Analytics?
May
23
comment String encoding issue with Pythonika
Anyway, can you please give a full but minimal example that reproduces the problem? Post the precise code that you used, but reduce it to the essentials (a few lines). I'll take a look then.
May
23
comment String encoding issue with Pythonika
It sounds like this is a Pythonika problem/bug in the C layer connecting Mathematica and Python. Have you contacted the author of Pythonika? I'd say the question is on the border of being off-topic ... Unfortunately Pythonika is a bit sloppily implemented. It is a useful package, but it's a quick and dirty implementation. It would take considerably more work to implement a proper link.
May
23
comment How can I conveniently call igraph through RLink?
Thanks to Leonid for showing me how to use an external R installation on Mac!
May
22
comment Why is StringExpression faster than RegularExpression?
I tried time pcregrep --buffer-size=100000000 '(?ms)(?:(?ms)\(ICD-9-CM (.+?)\))' test.txt >/dev/null with pcregrep 8.32. This doesn't replace, it only matches, so it may not be correct. It takes 0.09 s here.