Reputation
67,273
Next tag badge:
185/100 score
19/20 answers
Badges
19 188 326
Newest
 Good Answer
Impact
~943k people reached

Aug
10
comment Formatting a complex ArrayPlot
Your code is complicated. Try this: ArrayPlot[{{0, 1, 0}, {1, 1, 1}, {0, 1, 0}}]. Now just hand-code the 3x3 matrices for each of these, map ArrayPlot and wrap in Row and you should be pretty close to done (except for some minor tweaks). This will be far easier and faster than trying to come up with a clever algorithmic/programmatic way to generate those images.
Aug
8
comment Awkward DatabaseLink JDBC Error
Also, are you trying to insert TIMESTAMP into a DATE field? Is this error in the middle of a transaction? If so, does rolling back fix the issue (at least the "it apparently looses the capability of handling dates correctly." part)
Aug
8
comment Awkward DatabaseLink JDBC Error
You might not be able to share the code, but could you please update your post with 1) OS version 2) Mathematica version and 3) Database backend (PostgreSQL/MySQL/SQLite/etc.) 4) Some context around what your app is doing when this error occurs (is it a read/write/update?). Some contextual code snippets would be helpful
Aug
7
awarded  Announcer
Aug
7
awarded  Nice Answer
Aug
7
answered What naming conventions are used for functions?
Aug
6
comment Fastest way to sum the upper triangle
Another way Total@Flatten@UpperTriangularize[a, 1] (or Total[..., 2] w/o Flatten). Probably not as fast as the Total - Tr route, but easier to read perhaps.
Aug
6
comment Mathematica 10 doesn't support path containing Chinese characters
@MichaelE2 That is weird. I got the same error as well. I think it's some change that was introduced after this post was written/edited. Digging in meta SE, I found this and the SE developer's response was that it's related to some OS X unicode kiss of death issue. Not sure if they extended that to certain chinese characters as well. Probably worth asking on our meta so that we can forward it to the dev.
Aug
1
comment Returning ancillary computation results from a function
@unlikely I hadn't seen this question and your update earlier, but I had asked a similar before (re: multiple outputs matlab style) mathematica.stackexchange.com/q/314/5 I would not recommend it though... the question was purely for curiosity sake :)
Jul
11
comment Export Graphics using Move in Optica
I've created a new tag optics and tagged this question with it. You should be able to retag other questions that are optics related :)
Jul
11
revised Export Graphics using Move in Optica
edited tags
Jul
5
awarded  Guru
Jul
5
awarded  performance-tuning
Jun
24
awarded  Nice Answer
Jun
23
awarded  Enlightened
Jun
23
awarded  Nice Answer
Jun
21
comment Any solution to transfer data between Python and Mathematica
You can import MAT files in Mathematica. Have you tried that?
Jun
17
comment Mathematica vs Python - how does it compare to Python's scientific computing suite?
@halirutan sympy
Jun
13
comment What's the function that takes X[Y[z___]] to Y[X[z___]]? (“swap heads”)
In addition to what Yves said, I think OP wanted only the outer two heads to be swapped. So for f[g[f[g[x]]]], the desired output would be g[f[f[g[x]]]] rather than g[f[g[f[x]]]] which this answer returns.
Jun
13
revised Prepare mathematica output to be parsed in Python
added 154 characters in body