« first day (210 days earlier)      last day (4271 days later) » 

2:01 AM
a funny bug that took me 3 hrs to find: I wrote If[x>= distance, doThis,doThat] and it turned out it never executed any of these branches becuase I have not initialized distance to a numerical value ! So it was bypassing the whole thing. The THEN and the ELSE parts. oh well. it was only 3 hrs this time. One time I wasted 8 hrs to find one bug. So I am getting better :0
 
 
2 hours later…
3:51 AM
@NasserM.Abbasi Right. If has three possibilities: True, False, and who knows. A way around this is to use If[TrueQ[ test ], doThis, doThat] which guarantees a true/false answer. However, it hides the fact that test may not be initialized, and will likely result in other bugs. :P
 
Mathematica needs a good spring function. To use to draw mechanical springs in 2D or 3D. Currently all what I see is little bit of ad-hoc code here and there, and no clear API to use the code. We need a good robust function with good API, at least for 2D case.
@rcollyer, thanks. the variable was initialized and numerical. I just moved code around and the IF statment moved above, and so it became un-initialized. This is the cost one pays for using Dynamic interpreted code I guess vs. compiled languages. One gets the speed to try things, for the price of the user having to be much more carful.
 
4:18 AM
In[42]:= Integrate[1/s, s] + Integrate[-1/s, s]
Integrate[1/(s - 1), s] + Integrate[-1/(s - 1), s]

Out[42]= 0

Out[43]= -Log[1 - s] + Log[-1 + s]
waht's going on? why is the second not 0?
 
4:45 AM
0
Q: Should [math]/[mathematics] be blacklisted tags?

J. M.(I had been meaning to ask this a few months ago, but only got around to it today.) Should math and mathematics be blacklisted? Ostensibly, these tags are as redundant as mathematica, but if any of you guys have dissenting opinions, I'd want to hear them.

 
CHM
5:28 AM
@Matthew7.7 I don't think this has to do with Mathematica ;)
 
CHM
5:44 AM
Actually, there might be a way to tell Mathematica which solution you want...
Because this result is not false, it just depends on the value of s
 
there is a branch cut for ln. ln(z) = ln(abs(z)) + K, where K =Pi*I if z<0, otherwise 0, where I is sqrt(-1).
Simplify using assumption z>1 to see.
 
CHM
Integrate[1/(s - 1), {s, 0, .99}] + Integrate[-1/(s - 1), {s, 0, .99}] Works.
@NasserM.Abbasi Yes that's why Mathematica gives the full form I guess
 
or can just help Mathematica a little, and take the minus sign out yourself: Integrate[1/(s - 1), s] - Integrate[1/(s - 1), s] , this gives zero now :)
 
CHM
Oh, heh.
 
6:03 AM
I'm confused. How does this ahve notthing to do with amtheamtic?
I did integrate f, -f
added them up, and Mathematica gave me a non-zero expression
so now, I'm looking at it, and I can't help but wonder wtf
 
CHM
@Matthew7.7 Well, what I meant was, it's not a wrong computation.
 
so the error is between the chair and the keyboard?
 
CHM
No no no
Read what Nasser and I wrote
He provided a fix
And I, an approximation.
 
his fix is to move the - sign out
but I need symbolic expressions that I cna plug into other computations
and it bothers me that they're not canceling out on this simple example
 
CHM
@Matthew7.7 I found it surprising too
But that's a good question, you could ask it on the site.
Why does it choose one symbolic representation over another.
 
6:33 AM
Mathematica simplifies -1/(s-1) to 1/(1-s) and this causes the -ln(1-s) to come up. To prevent Mathematica from doing this simplification: Integrate[1/(s - 1), s] + Integrate[Hold[-1]/(s - 1), s]; ReleaseHold[%] now the result is zero.
Basically, the result is zero, ONLY when ln(s-1)=ln(1-s). And this is only true when s=1. Special case. Mathematica gives answers for general cases, not special cases.
 
7:34 AM
I dislike this one too much
-1
Q: Different Data Types in Big Endian

kk_139Solution: As pointed in the answer, I used following command: M = BinaryReadList[ "dat_1.dat", {"Real32", "Real32", "Real32", "Real32", "Real32", "Real32", "Real32", "Real32", "Real32", "Integer32", "Integer32"}, ByteOrdering -> -$ByteOrdering]. It gave the desired output. My understandi...

It is a personal problem, I guess
 
7:56 AM
@Verde is there any reason this shouldn't be on our site?:
3
Q: Remove image background of headshot in Mathematica?

Philip MayminFor example, using ExampleData[{"TestImage", "Girl2"}]: what's a general way to make the background transparent? I've tried various combinations of EdgeDetect and Threshold and ImageAdd but can't figure it out. Thank you.

A DSP mod is asking if he may migrate it.
 
@Mr.Wizard I think it's OK if they are asking for it
 
Apparently it's a flag from the question's author. I'm going to agree to the migration.
 
@Mr.Wizard Good
I should improve my answer then :)
 
@Verde By the way, why the name change?
And isn't that avatar the wrong color? :^)
 
@Mr.Wizard I'll go back to my old self as soon as the site allows me. It was a joke for @Rojo
 
8:06 AM
@Verde Do you want me to change it?
 
@Mr.Wizard Nah, don't bother. What is in a name after all?
but thanks!
 
@Verde if you have a minute, regarding this question could you give me the v8 output of CayleyGraph[SymmetricGroup[3]] and CayleyGraph[SymmetricGroup[4]] please?
Even better if you would edit that into the question, I guess.
Looks like the OP just made a ninja edit and added one of them himself.
 
let me see
@Mr.Wizard Mmm I have troubles understanding the last edit revision reasoning. I'd better keep away from touching it
 
 
5 hours later…
12:56 PM
Hmm, nobody around...
 
R.M
1:15 PM
@J.M. nice! Why do the tusks seem to come out from under the ears?
 
@R.M Hmm, you're right. The Bézier patches came that way, but there's no reason I can't tweak...
(If you're familiar with RenderMan, this is the elephant they always use for examples.)
Here's a rendering by different software:
 
R.M
ah, those look correct :)
 
Well, it's not the same angle
 
1:32 PM
@Rojo:
Hmm, I guess there is something wrong with the importing.
 
@J.M. Yeah, the teeth aim too forward
 
Tsk, RenderMan files are a bitch to Import[]. Apparently the coordinate conversions aren't always what you'd expect...
 
2:09 PM
2
Q: How to make clear that this site is not about maths?

konturThis might sounds trivial to anyone familiar with Mathematica, the software, but to an unsuspecting user, this stack exchange looks like a very odd collection of maths related questions. Could there be a way to point out, prefereably right on the front page, that this Q&A site is not about m...

 
I'm trying to use DatabaseLink to build up a table
I have the table in a MMA matrix
so I partition it and start inserting. But it gets slower and slower until it gives an error about the java garbage collector
"GC overhead limit exceeded"
 
2:31 PM
Ideas?
 
Sorry, no experience with DatabaseLink...
 
2:50 PM
any one understand how this new demo published here is supposed to work? demonstrations.wolfram.com/FunctionIdentificationGame I can't make sense of it. One is supposed to select the function that matches the plot shown. But it only shows names of functions, not the definitions of the functions? (ps. how does one insert a small image here?) the upload button to the right does not work
that is not even f(x)=x ? so I really do not understand it. No explanation at all given even.
@Rojo need more memory for your Java VM :).
 
@NasserM.Abbasi ¬¬
 
3:30 PM
@Rojo you there?
 
Hey @Verde
Whats up
 
brb,
@Rojo Be careful with the DB commit mode
 
@Verde I'll give it a shot wrapping the code in SQLBeginTransaction and SQLCommitTransaction. Is that what you mean?
 
yep, that is one. checking docs now
 
3:47 PM
@Verde what did you mean by ByteOrdering -> -$ByteOrdering?
 
@Verde It doesn't fix it. It still gets slower and slower until it shows the GC message
 
@OleksandrR. +1 corresponds to big endian (appropriate for PowerPC and many other processors); -1 corresponds to little endian (appropriate for x86 processors).
 
@NasserM.Abbasi Do you know how to assign more memory to the Java VM? Seems like a partial hack anyway even if it works, right?
 
@Rojo are the rows being insterted?
 
Yes, at least up to the point of the errors
 
3:53 PM
@Verde okay, I appreciate that. But I regard the use of -$ByteOrdering as an unportable assumption and of dubious mnemonic value. I thought you might have been suggesting that was a significant detail of the question, but it had no bearing at all on the answers given.
 
@Rojo, try java -Xms256m -Xmx1g -jar myapp.jar as an example. Did not use for long time. But it should work. this from the net as an example. look at the options
 
@OleksandrR. Without that, the OP can't read his data. It is absolutely relevant.
 
@Verde but it was part of the question to start with; it's not like he was asking "what to do with a big-endian file?" and expecting to be pointed to the ByteOrdering option. It didn't influence the answers at all and turned out to be a red herring.
 
@OleksandrR. Since he uploaded the data, and the data can't be read without that option, I understand that it is relevant,yes
 
@Verde I guess I still don't follow. Relevant in this specific case, yes, but purely incidental. It doesn't justify keeping this question open, IMO, just because someone happened to be trying to import a big-endian file when they fudged the arguments to BinaryReadList.
 
4:02 PM
@OleksandrR. Now I am lost in our little discussion. I voted to close the question, and also downvoted it. So ... what are we discussing about?
 
@Verde good question. I thought your comment to me was meant to point out an aspect of the question that would justify not closing it. But clearly that's not the case. Are you saying you also don't like the use of -$ByteOrdering rather than +1?
 
@OleksandrR. of course, that makes the code platform dependent. I was only pointing out that the endianess are playing a role there
nothing else
 
Okay.
 
4:18 PM
@OleksandrR. See? Settled! Another victory of civilization over the "kill your fellow community member" attitude :D
2
 
@Verde sorry if I came across as bellicose. I'm fairly stressed at the moment as I have 6 weeks until my thesis deadline and a lot to do.
 
R.M
Is this a dupe? I feel like I've seen a lot of these...
 
@OleksandrR. OK! enjoy your thesis. It's a landmark in your life
@R.M new users are not able to catch up MMa's idiosyncratic way to write expressions until much later
 
R.M
So... move my comment to an answer? I thought it was a dupe, but I can't find any
 
@Verde Yes, it took me a while to get used to Mathematica spitting out -a + b instead of b - a, but such is the convenience of normal forms...
@R.M Yes, move it.
 
4:29 PM
@R.M ups ... I was about to say "let's close it" :D
 
R.M
@Verde that's what I was thinking of too... but you seemed to think it was a legitimate question that would often be asked
 
@J.M. hehe I remember one of my first nights with Mma ... she was doing everything I wanted, but in weird ways
@R.M Seems my writing is worst than usual today
 
@Verde Yes, the kinks took a while to warm up to... :D
 
4:56 PM
This here
0
Q: Very Strange Behaviour With Solve[]

hgbretonI'm trying to solve a simple equation with Mathematica (in fact it's one of their examples). Solve[x^2 + a x + 1 == 0, x] When I type this in I get an extremely long output including Solve[{1 + a ({{{{{{{{{{{{{{<<1>>}} -> 5.}} -> 5.}} -> 5.}} -> 5.}} -> ...

makes me wonder whether we should put very big in the FAQ to try things on a restarted kernel..
 
@halirutan Good idea. Wanna draft something I could append to the FAQ later?
 
@J.M. yes, let me reread the FAQ and think how to put it.
But after dinner.. which is here in about 1-2 hours..
 
 
1 hour later…
6:23 PM
Joel Spolsky on July 20, 2012

It’s summer here at StackHQ. Have a flower!

You’re welcome. Now on to some serious work. Can we talk about cultural anthropology for a minute? I’d like to talk about what happens when a community (online or off) gets to be about… oh, three or four years old.

Every community starts out needing to recruit members, so they tend to be very friendly to newcomers.

After a few years, an insider group of old-timers forms. They get to know each other. They know the rules. They know the history and the legends of the community. And it’s only natural to get little bit irritated when newbies show up who don’t know the rules. …

Recommended
 
6:35 PM
@SjoerdC.deVries I suppose that is meant for me. Well, I personally do not see a parallel between rudeness/unfriendliness to newbies and simply stating that a question won't benefit anyone in the future. It is not as if I voted to close until the user had got an answer, and I didn't even downvote. There is nothing wrong with having asked. What is wrong, IMO, is keeping a lot of cruft about the site that will never benefit a single other person.
There are a lot of questions lately with 0, 1, or 2 net upvotes and I am seriously concerned that if things carry on like this then they will overwhelm the site, just like they do MathGroup. Unlike MathGroup we have the ability to close and eventually delete such questions, and I think we should use it.
 
6:56 PM
I will note that Szabolcs already raised this subject here and, while most answers seem to assume the question was somehow malformed, got a lot of support for the idea that RTFM-type questions should be discouraged.
The issue of closing as TL was dealt with more directly here, albeit for the case of syntax rather than usage errors. I don't see that "forgot a semicolon" is much different than "forgot part of an argument", really, so the general sentiment probably generalizes.
 
7:24 PM
@OleksandrR. No, this wasn't particularly aimed at you. I have been noticing a growing unfriendliness towards new users and have been posting messages about it earlier. It isnt always easy to stay civil and I know for sure I havent always been that either. Tidying up the site is fine, and I guess essential (in fact I think l rank very high in the closers list), but I feel that making it an educational experience instead of a turn off is important.
 
7:40 PM
@SjoerdC.deVries I think we're in agreement then. The main reason I commented before voting was because someone else had already voted to close as NaRQ which I felt was unfair on the user, and IMO there is no shame in having your question closed as TL. On the other hand, I see your point that new users might not understand this yet so in retrospect perhaps I ought to have phrased the comment more encouragingly.
@SjoerdC.deVries I wonder if there is a correlation here? More questions from newbies (not so much to the site as to Mathematica itself) --> Less interesting content on the site/lower signal to noise ratio --> Less inclination to be polite to people asking marginal or poor questions. I wonder if more people voting to close (albeit after the questions are answered in most cases), removing some of the clutter, would help to restore the average question quality and so people's mood?
On the other hand, exhortations to remember to be polite are probably a more direct approach.
 
 
3 hours later…
10:52 PM
Why is Mathematica foum called the 'funnest' one at Stackexchange? :)
May be because Mathemetica is so much fun!
 
@NasserM.Abbasi Mathematica is called the 'funnest' site at Stackexchange because we are here
 

« first day (210 days earlier)      last day (4271 days later) »