« first day (193 days earlier)      last day (4281 days later) » 

12:23 AM
Hello
 
 
4 hours later…
4:39 AM
@Rojo hi
too late?
 
 
3 hours later…
7:39 AM
@Rojo are you here?
 
 
5 hours later…
acl
12:11 PM
@belisarius so I tried helping and was told my attempt was useless :)
OK, can someone ping me when they see this? I am trying to test something
 
1:11 PM
hi @belisarius, @Mr.Wizard
 
 
2 hours later…
2:54 PM
Regarding the question below, given the tutorial the Simon Woods linked in a comment I think perhaps it should be closed.
0
Q: Difference between y[x_]:= and y[x_]=

DSaadI have a problem with defining a function and most of time I get confused by these two. I read the help section but I didn't find out what is the difference between : y[x_] := and y[x_] =

 
3:26 PM
@acl ping
 
acl
@SjoerdC.deVries thanks! I was hoping to be pinged when not here though... but I've tested what I wanted anyway
@Mr.Wizard I don't know, but, by this argument, this should also be closed as there are a couple of tutorials on the same thing.
 
@acl Intriguing. Care to share the objective of your test?
 
acl
eg pages 178 to 218 here
I wrote a routine to inform me when my inbox had messages
 
@Acl mma?
 
acl
@SjoerdC.deVries no, python I'm afraid
but anyway then I found this
(only OS X, but I can't imagine there are no such things for windows)
 
3:30 PM
Heresy!
 
acl
anyway I was just fiddling about on a sunday. It's not that I need this
@SjoerdC.deVries :)
 
@acl I just returned home. A bit sleepy still. My son fell asleep on the couch while watching the Olympic games
 
acl
@SjoerdC.deVries ah yes I'd forgotten about them! back to work this week?
 
Yeah, probably Wednesday. Have to get in the rhythm again
 
acl
@SjoerdC.deVries sounds fun
 
3:44 PM
@acl You will observe that I didn't close the question myself. Also, Leonid when into some detail that IIRC the tutorials do not. Perhaps unless someone posts such an answer this should be closed? I don't know; that's why I asked.
 
 
1 hour later…
acl
5:00 PM
@Mr.Wizard I don't really have a strong opinion either way.
 
R.M
5:18 PM
@Mr.Wizard Closed as what? I agree it is basic and covered in the tutorials, but this is also a common error and rears up in several places (example) that might trip up even those who are aware of the basic difference between := and =. Generally, I think that questions that are mostly syntax errors and very basic mistakes should be closed and eventually deleted, but this is perhaps a good exception.
Perhaps @acl can expand on it a bit more to address how one can end up doing a costly calculation for each plot point if using setdelayed incorrectly (e.g. creating a function from the output of Integrate or D and not evaluating at definition) or an example like in the one I linked to above... That might cover the bases for this site
Perhaps also touch on the fact that a combination of setdelayed and set can be used for memoization (there's a good post on memoization, so can link to it)
 
acl
@R.M yes, that is a good suggestion. I will add an example in a bit.
@Mr.Wizard By the way I must admit I found some of the other 5 (excluding Leonid's and mine) answers to that question at least somewhat useful...
 
5:38 PM
@R.M Okay, I agree. :-)
@acl Agree there too. I'd already voted for your answer, but I somehow missed WReach's, and I really like the concise summary that starts his answer.
 
acl
@Mr.Wizard yes, actually I thought his was the most useful for me
he probably was late and that is why some of us missed it.
 
I try to read new answers, but apparently not hard enough.
 
acl
6:01 PM
@R.M do you have a handy list of questions and answers on that? I updated my answer and tried adding some links to answers on memoization, but I can't find a question I seem to remember
Whenever someone comes here with a very slow program written as if it was a mathematical statement (ie, ignoring the fact that mathematica actually is a programming language and really does have to execute whatever it is you write, using an actual CPU), we should send them to Wolfram Research along with some of the marketing material they distribute.
although I am not sure what that would achieve, apart from a certain amount of schadenfreude
 
acl
6:30 PM
@Mr.Wizard @R.M is it possible to edit the title of a question? I think it makes sense to add Set and SetDelayed somewhere in the title of this
0
Q: Difference between y[x_]:= and y[x_]=

DSaadI have a problem with defining a function and most of time I get confused by these two. I read the help section but I didn't find out what is the difference between : y[x_] := and y[x_] =

But I don't see how to edit it
 
R.M
6:42 PM
@acl I edited it
 
acl
@R.M is it a question of privileges or am I simply being stupid?
 
R.M
huh? The edit link didn't show up? You have more than enough privileges to edit it...
 
@acl Imagine entering into chat and finding "or am I simply being stupid?" being asked two lines above ... tempting.
morning all
 
acl
@R.M ah. I was being stupid. Never mind :)
@belisarius hi!
 
R.M
always the simpler (and correct) answer :)
 
6:49 PM
@acl Hi! Hi R.M
 
R.M
Hi Argentina Sr!
Rojo is Jr
 
Rojo? Who is Rojo?
 
R.M
The Maoist on mma.se
 
oh, yes, I remember. The Red Danger
 
R.M
btw, yet another difference between 8.0.0 and 8.0.4: mathematica.stackexchange.com/q/8837/5
 
6:53 PM
@R.M Yep. I saw it
there are a lot
 
R.M
Way too many subtle things screwed up in 8.0.0...
Although I'm not a big fan of "list" questions, I kind of think that a controlled CW list of subtle differences between 8.0.0 and 8.0.4 might be useful.
 
@R.M I will grow too large :) ... besides, Mr. will ask about his right to post a V7 vs V8
 
R.M
Yes yes, which is why it has to only be between minor revisions of the current version (8 will soon become old). So no questions on differences between 5 and 5.2 or 7 and 7.1 (or whatever)
Perhaps it's better to not go in this direction...
 
R.M
7:18 PM
@acl You use WB, right?
 
acl
@R.M yes
 
R.M
Could you check if you can install egit on it? I can install it only on the latest Eclipse (Juno) and not the version in WB (Galileo)
You don't have to actually install it if you don't want to... just go to the very last step and see if you get any errors along the way
 
acl
@R.M let me check
@R.M meanwhile, could you not use the eclipse plugin instead of the customised eclipse installation WRI provides?
 
R.M
Well, I didn't know that when I bought it... I'm not sure if I can change it now
 
acl
@R.M got a bunch of things like this:
(as I don't program in Java and don't use eclipse for python, I don't know what this means)
 
R.M
7:38 PM
huh... that's a whole buch of different problems then. I keep getting some file X not found in the repository, but it is there
anyway, thanks for trying :)
 
acl
well, mine found them all, apparently...
 
R.M
(also, the word "registry" reminds me of windows and wouldn't have expected to see it in mac)
 
acl
as I said, I have no idea how eclipse works, so...
 
8:13 PM
@R.M Do you understand what the archeologist wants?
 
8:24 PM
Aloo
 
@Rojo why the solid red gravatar?
 
@Mr.Wizard I just wanted to change it, and didn't take the time to decide on a definitive one. Rojo means red in Spanish, but it's very shocking to the eye so it will change soon
 
@Rojo I just realized I've been mentally mispronouncing your moniker all this time. :-o
 
@Mr.Wizard Roudjou?
 
@Mr.Wizard It's a homage
Mao Zedong, also transliterated as Mao Tse-tung , and commonly referred to as Chairman Mao (December 26, 1893September 9, 1976), was a Chinese Communist revolutionary, guerrilla warfare strategist, anti-imperialist political philosopher, and leader of the Chinese Revolution. He was the architect and founding father of the People's Republic of China (PRC) from its establishment in 1949, and held authoritarian control over the nation until his death in 1976. His theoretical contribution to Marxism–Leninism, along with his military strategies and brand of policies, are collectively kn...
@Rojo Rucucu
 
8:33 PM
@Rojo ROW-joe
 
Hehehe
Understandable
Hey, does any of you know if it's possible to programatically launch events?
such as a mouse click in a certain screen position
 
Probably not from top level Mathematica, but it should be possible with LibraryLink.
Or Java, perhaps.
 
Right...
@belisarius how've you been
 
@Rojo Hi my red friend! All ok!
Designing your avatar. Takes an awful lot of time to get it right, capturing all your personality subtleties.
 
Haha
A lifetime
 
8:38 PM
@Mr.Wizard Did you understand what the archeologist wants?
 
@belisarius Pardon, who?
Oh, right, this?
0
Q: non-linear trend reduction using thresholds

HaraldDoing some mappings of the earth magnetic field results in the left-hand figure below (which consists of 181 profiles): To improve this I tried a non-linear trend reduction using, for example, lm = LinearModelFit[data, {a, a^2,a^3,a^4,a^5,a^6,a^7,a^8,a^9},a]; (middle figure) and lm = L...

 
@Mr.Wizard The archeologist
yep that one
 
I think so. I put a link in a comment below the question.
This PDF paper (from the link) has better examples.
 
@Mr.Wizard Noise reduction?
 
@belisarius Of banded, structured noise, yes.
 
8:43 PM
ok! I got confused by the wording
 
You seem to be pretty good with image processing. I look forward to reading your answer.
 
9:11 PM
@Mr.Wizard Not this time. I am still doing this
 
acl
@Rojo from within mathematica?
@Mr.Wizard how did you work that out from the question?
 
@acl Yeah. I would like to press buttons and stuff programatically
 
@Rojo Es el colmo de la fiaca.
 
9:28 PM
@belisarius Hehe
Actually, I'm trying to add hotkeys to some GUI
Certain keys do the same as pressing certain buttons
without needing to get into the internals
 
@Rojo I guess the better way is to use some external "macro" evet driver
 
and, what the buttons do, sometimes require variables in a DynamicModule
so I can't happily put the button handlers as an external function
which is called by the button as well as by the hotkey
 
@Rojo sounds difficult in Mma without some internal knowledge of the EvenHandler
 
@belisarius Yeah...
 
@acl From the comments:
"there are small stripes (parallel to the direction of measurement, i.e. from bottom to the top) in the figure, which should be removed. The "background" (all the area outside of the strong anomaly) should be smoothed by this way, so when enhancing the contrast of the picture no small artefacts are disturbing the background. I have to enhance the contrast to be able to detect weak archaeological features, if there are any... – Harald"
 
9:35 PM
I can make a variable control when a button is pressed however
 
@belisarius What a minute, is that his own image reprocessed or did he post data somewhere?
 
perhaps
if the button is set up that way
 
@Mr.Wizard I captured the image, got the data, removed color inconsistencies, segmented, recognized same altitude level areas and relabeled them, reassembled and colorized. Fun and futile
 
acl
@Mr.Wizard ok I see. I think he should be encouraged to explain this better in the question then. At the moment it's unclear that he wants to remove patterned artifacts from an image (and as @R.M points out in a comment, the question is posed in a domain-specific way).
@belisarius didn't catch that
(if you meant for it to be caught)
 
@acl sorry, tangled themes
 
acl
10:17 PM
@Mr.Wizard I now have a 16-character attempt at this
(assuming the question doesn't now suddenly become more specific)
oh it's almost the same as @R.M's way of rounding
 
R.M
10:36 PM
@acl almost all possible ways are in the question mr.w linked to in his answer. This is a proper duplicate.. I think I'll delete my answer and vote to close
I don't think the difference between doing this for tick marks (verbeia's) and doing it for printing (Alexey's) is significant enough
 
acl
@R.M Well I am not actually serious, I just wanted to use the \[LeftFloor]x\[RightFloor] thing
 
R.M
I sometimes wish there was a built-in for round and abs
 
acl
I mean, what could possibly be sillier than spending 10 minutes to save 5 characters, in a Mathematica program?
@R.M (I admit I hadn't thought about Floor failing for numbers slightly below an integer, though)
@R.M how is round different from Round?
 
R.M
One has uppercase R and the other has lowercase r :)
I meant a short-form representation for it... Like say |x|==Abs[x] yielding True
 
acl
it's strange that |x| doesn't work but there is an analogous shorthand for Floor
 
10:58 PM
@acl maybe because Abs and Det both use \[LeftBracketingBar] and \[RightBracketingBar]
 
acl
@Silvia could be, good point
 
R.M
11:15 PM
I wonder when that's releasing...
 

« first day (193 days earlier)      last day (4281 days later) »