Reputation
3,032
Top tag
Next privilege 5,000 Rep.
Approve tag wiki edits
Badges
10 25
Newest
 Revival
Impact
~43k people reached

Jul
20
comment URLFetch Problem with the Size of HTTP Message Body
The content length should reflect the actual length of the body data. If your server has a hard limit of 1024 bytes, then it is expected to fail when sending more content, even if the content length header says something else. Did your test with curl was against the same server?
Jul
20
comment Mma 10.2 `Alphabet` and `LanguageData` give different and both erroneous list of letters
You can use LanguageData["Spanish", "BasicAlphabet"] while it gets fixed.
Jun
22
comment Replacing function in Sum
When using patterns in replacement rules, I recommend the usage of RuleDelayed (that is :>) instead of Rule. It will avoid problems of defined symbols. In your case, if x or y have a definition, your replacement will fail.
May
30
comment Can A Plot Be Overlayed With A Map?
I'm curious too, I would have chosen yours @Mr.Wizard !
May
29
comment Can A Plot Be Overlayed With A Map?
If you want to see the country borders, it has to be at least zoom 2. You can force a particular zoom by using the GeoZoomLevel option, or using an explicit ImageSize that would make the Automatic zoom to be greater than 1.
May
29
comment Shadowing of optional function arguments?
@Guesswhoitis. that's indeed a very good point. Anyway in private functions (if I ever document them :) ), I include the options in the main usage message of the function, and not on each option. But in bigger projects the usage of a Common context is many times necessary.
May
29
comment Shadowing of optional function arguments?
For private options you can also use strings.
Jan
22
comment Why does Mathematica add Hold to the result of my user defined symbol?
Just a small comment, you don't need to Unprotect Times or Plus. It is better if you do: mat /: Times[c_, mat[0]] := mat[0].
Jan
9
comment Computing a sequence by recurrence
Is k1 an arbitrary function? If yes, then FoldList which seemed to be the way to do it no longer works.
Dec
18
comment coordinate system problem
Yes, I think ImageData is the best function if you need to access directly the pixel values. Check the documentation, maybe some of its options are useful for your case of use.
Dec
18
comment coordinate system problem
I see, that's a Graphics tool, and those are "plot" coordinates, so they start bottom left. That means that you have to do height - coordY to get the row number.
Dec
18
comment coordinate system problem
How do you access the pixels of the image? Remember that you can see an image as a matrix, where the first row is the top row of pixels. This is why ImageData[image][[1]] represents the top row.
Dec
18
comment Difference between Association and Dispatch
Association keys cannot be patterns (they behave like they had Verbatim), that's the main difference with common rules. Try _Integer /. Association@{_Integer -> Null}, you will get the Null value.
Dec
18
comment Why is C-compiled (but not WVM-compiled) code so slow in Manipulate?
I don't have anymore M8, so cannot test there, but tested it in 9 and 10 and worked fine.
Dec
17
comment Animate skips frames and hard to control speed.
Also check ArrayPlot, I think it is faster than MatrixPlot, and you might try to precompute stuff, like the Prime[Range[400]], not big overhead, but you can keep the list in a variable. Also writing it all as an expression is slightly faster than with pure functions just applied once.
Dec
1
comment How should I correct in the sintaxis of URLExecute
Second parameter of URLExecute are GET/POST parameters. Your "Method" and "Headers" should be options of URLExecute, not the second parameter.
Dec
1
comment ImportString JSON possible bug
Are you using Windows? I've seen that before in a Windows computer. He got rid of the problem after updating the operative system, but not sure if it was just coincidence.
Dec
1
comment Using SendMail with new Google Security Rules
SendMail uses SMTP, and as far as I see, that protocol is under the "less secure apps" yet.
Nov
27
comment Compact Map of USA with Alaska and Hawaii shown under California
Unfortunate, Inset is the best answer to your question yet. Maybe an improvement could be placing it automatically using GeoDestination + GeoDisplacement instead of writing yourself the coordinates for the Inset.
Mar
7
comment How to completely reinstall Wolfram Workbench on linux
Did you remove the preferences directory /home/.../.eclipse? Maybe it helps to clean it completely.