« first day (1192 days earlier)      last day (3282 days later) » 

12:09 AM
@everybody Rasher has added an explanation to his profile now.
"Mike Richter has it right - for me it's no longer fun nor interesting when the correlation between "rep" and reality goes negative."
 
 
4 hours later…
4:21 AM
@halirutan looks good...thanks!!
 
4:35 AM
Excuse me....anybody help me to solve rotation algorithm please? mathematica.stackexchange.com/questions/80750/…
 
@HendryTanaka Seems like this isn't the right group for that question. This groups is for the Mathematica computation environment by Wolfram Research.
 
Um...sorry...I'm so sorry
 
@HendryTanaka The C language folks hang out on stackoverflow.com, and they might be able to help. Or there are computer graphics people at gamedev.stackexchange.com
 
5:05 AM
@sblom I hope somebody may help me here. But...hey...thanks by the way
 
 
2 hours later…
6:44 AM
@Mr.Wizard it seems there is an explanation posted now. :-/
 
 
4 hours later…
11:02 AM
What's the best way to extract a particular number from a large chunk of text? I've got some formatted text returned from a program via stdout, and there's a line in it with the number I want. Currently I'm doing this:
StringCases[stdout, "Total lattice energy" ~~ __ ~~ "eV"];
First@Flatten@StringCases[%, x : NumberString :> ToExpression[x]]
which gives me "{"Total lattice energy = -1072.49430231 eV"}" on the first line
and then I'm taking the number from that, i.e. -1072.49
how can I do that in a single line, rather than using two StringCases?
(I've not really worked with strings in any depth before)
 
 
1 hour later…
12:29 PM
@blochwave How about
s = "Total lattice energy=-1072.49430231 eV. I have 3 cats, 2 dogs, and 2.4 children";
ToExpression@StringCases[s, NumberString]
 
What if the number is not "-1072.49430231"?
for example, the "Total lattice energy" and "eV" parts are constant
but I want to extract the number in between which will change depending on the simulation
(Im not actually near a computer with MMA so apologies if your example does exactly that...)
 
1:08 PM
@blochwave Just create a regexp, that narrows it down as much as possible and use StringReplace:
s="Total lattice energy=-1072.49430231 eV. I have 3 cats, 2 dogs, and 2.4 children";
ToExpression[StringReplace[s,StartOfLine~~__~~"energy="~~n__~~" eV"~~___:>n]]
 
1:58 PM
@halirutan Amazing thank you!
 
@blochwave Be aware that you cannot simply write ToExpression[n] inside StringReplace. For more information look at the details section in the StringReplace documentation.
 
2:58 PM
Hi all, I have some Graphics3D that render fine on my desktop, which has a decent video card, but crashes my laptop, which is just an integrated graphics chip. I was thinking maybe I could use a different renderer on the laptop, which might be a lot slower but at least wouldn't crash? Anyone have experience with this?
I've tried both the "BSPTree" and "Software" options, both lead to crashes.
 
@Guillochon Raspberry Pi is proof that you can render Graphics3D on cheap graphic cards, however slowly. I wonder if this is really your problem.
 
@Pickett If what is really my problem?
I also disabled anti-aliasing in the options to see if that helps, it doesn't seem to.
OK, "HardwareDepthBuffer" works, but not "HardwareDepthPeeling"!
So that's the setting I'll have to use on the laptop I suppose
 
@Guillochon I don't know what your problem is exactly, but I'm just saying that one has to keep an open mind as to what the problem can be. I never figured out why MMA9 crashes frequently when I was using ListAnimate, for example, but it wasn't because of weak hardware.
 
@Pickett The point was that I'm using the same notebook on the desktop, and that doesn't crash
@Pickett I literally do a DumpSave on the desktop, load that in, then run the rendering function, lead to a crash on the laptop but not the desktop
It does appear that "HardwareDepthBuffer" works, but the results aren't as pretty as the default renderer. For me that's OK because I just want a quick glance on the laptop, but it's still a bit unfortunate that it crashes.
 
 
2 hours later…
5:27 PM
1
Q: paste code greek letters

leosenkoWhen I post code here that contains greek letters, they are displayed as \[Beta], then some good people modify my post to change to proper display. But how do I do this myself (and without having to write a function in mathematica that converts the something to unicode which someone suggested, I ...

 
6:23 PM
An open note to those who flagged this post for attention:
0
A: Is there an open source implementation of Mathematica-the-language?

ximikI would recommend checking out SageMathCloud (https://cloud.sagemath.com/). Note it has recently migrated from sagenb.org/. Great benefit is the cloud-based computing option. Love to prototype here. I just started playing around with it, so not super familiar, but claims are pretty powerful and...

I apologize for dismissing your flags. I think I misread either the question or the answer that day as now it seems apparent to me that this is not an answer to the question that was asked.
 

« first day (1192 days earlier)      last day (3282 days later) »