« first day (148 days earlier)      last day (4337 days later) » 

12:01 AM
@acl At that time my tutors were high enough in the food chain to isolate me from mischief :D
 
acl
@belisarius that helps a lot
 
Hey you sitemates
What's a short code to have a number from 0 to 1 out of an image that tells you how bright (white) it is?
 
@acl I am still trying to understand the second comment in my Q on math.se The guy could have been posted a map of Japan for the same effect
@Rojo brightness[x]
naaa
it was a joke
@Rojo What kind of image_
 
Hehe
Capture from webcam
 
RGB?
 
acl
12:05 AM
@belisarius did not understand it either, hence the comment I made
 
Yea
 
@Rojo You can convert it to Grayscale, and then the pic value is the brightness
@Rojo I mean ImageData[img] contains the brightness
 
acl
or HSB, take last element of ImageData, Flatten, Mean? (don't know how well this works though)
 
@acl Works pretty well too
 
Thanks, let's try. I'll prefer the one with the least characters
Hehe
 
12:11 AM
@Rojo lazy !
 
Hehe
I just went to wolfram.com, read about the tech conference, and something about a one liner competitoin, clicked, got a notebook with the first 3 places of last year, and a stupid idea came to mind that I'm checking out
 
@Rojo Tell us!
 
acl
do tell
 
@acl Tested. Grayscale works better
 
acl
@belisarius oh well
 
12:17 AM
Try it `Print[i =
Import@"http://www.jnack.com/micronaxx/wp-content/uploads/2010/02/\
test-pattern-clock_4767.jpg"]; Print@
ColorConvert[i, "Grayscale"]; Image[
ImageData[ColorConvert[i, "HSB"]][[All, All, 3]]]`
@Rojo We want to steal your idea, but we are very honest, so we are telling you in advance
3
 
acl
@belisarius yes, you're right
 
@acl As always :D ... with only a few probable exceptions
 
acl
@belisarius right! ok, off for today
see you all
 
Bye bye
It doesn't work quite well, hehe
probably because the d**n webcam automatically adjusts for exposure
 
@Rojo I am coking ravioles, but I am all ears. What are you trying to do?
 
12:32 AM
Just messing with controlling the window opacity with the webcam brightness. For example, to do a "reflective screen", with something like CreateDialog[{}, WindowSize -> Full, Background -> Black,
"WindowOpacity" ->
Dynamic@(1. - Mean@Flatten@ImageData@CurrentImage[])]
Software e-ink
that works like crap
 
What do you want as output?
 
I just wanted the screen's brightness to be proportional to the brightness it gets on the webcam
 
Have been around Mma SE for a while, but still a newbee. I need to learn how to ensure the Mathematica code in my posts is properly formatted. Can somebody explain how to do that before I earn my self a "nuisance badge".
 
@TedErsek Are you the same Ted of the Verbeia site?
 
@TedErsek, I am no stackexchanged and I was new in here a few months ago. i still get some edits but noone barked at me too much. What I do is, before posting, I see the formatted verision of the post, and try to copy paste and run all code I'm putting in the post
so it's just a copy-paste for others
 
12:38 AM
@Rojo Yeah. That is it
prettifying and testing
 
@belisarius, don't sweat on it, the idea just popped into my head to play around while I was having desert
 
@belisarius Yes I am the same ted on the Verbia site.
 
and it would work if it wasn't because my cam clearly adjusts the exposure automatically
Oh, the Ted that was quoted a few days ago
somewhere I can't remember
 
R.M
hi Ted
 
@TedErsek So I award you a "teacher badge". Your site has been very helpful
sorry, my dinner is crying for help. See you later
 
R.M
12:42 AM
@TedErsek There's plenty of editing and formatting tips (how to use markdown) on this page: mathematica.stackexchange.com/editing-help
 
@R.M. I will go see the editing and formatting tips. I came across them several weeks ago, but couldn't find them today.
 
R.M
No worries... I think it shows you when you're a brand new user, but once you've posted more than a couple of posts, it hides it away from you
If you need it again, click on the yellow circled question mark in the editor window... that should show hints and will have a link to this page
It's hidden by default
 
1:40 AM
@R.M. Well I am working on learning this stuff, so stop harpping about how I need to get better. I would have learned sooner, but I can't find a lot of time for SE.
 
 
6 hours later…
7:33 AM
@VitaliyKaurov - what an awesome answer this is!
@Szabolcs great news about the blog - have we heard any more since yesterday?
 
7:47 AM
@Verbeia Nothing new since yesterday. I think we need to wait until American-morning.
 
7:58 AM
@vitaliykaurov Awesome indeed. Still not clear this is what the OP intended but beautiful. I hope the OP will clarify his question a bit
 
@Verbeia @SjoerdCdeVries Thank you, gentlemen, but indeed awaiting OP clarification.
 
@VitaliyKaurov First I thought that the dots are nodes and they're connected in the graph if they're connected in the image. This is not really doable though.
 
 
3 hours later…
11:07 AM
@VitaliyKaurov - I'm no gentleman :)
3
 
 
2 hours later…
12:39 PM
Hi ... anyone around?? How hide my local debug window?? it's so annoying!!
 
1:11 PM
Which of you guys are currently on a *nix box with Mathematica?
 
1:29 PM
0
Q: can i ask question related to tweaking my window

experimentXPeople seem to ask programming related question of main site. Can I ask following type of question in here? I have this local debug window that is so annoying How can i hide it? What is the purpose of it?

 
1:45 PM
@JM I can try some things, but I don't like Mma on Linux much.
 
@Szabolcs Okay, could you check if Import["ftp://math.nist.gov/pub/MatrixMarket2/Harwell-Boeing/chemwest/west0479.rua.gz"] is working on your Linux installation?
It works on the Windows machine I am looking at, but not on my *nix box.
 
2:01 PM
hi all, first Im writing here, nice to be here
im looking for a post explaining how to use the mathematica debugger, does someone where to find it, i dont find it anymore
 
2:15 PM
@FaysalAberkane Was it here or on SO?
@JM I'll check later on Linux, but for now I can say it doesn't work on this Windows machine. It complains that it cannot find a file in the local temp directory (probably the downloaded file). What error do you get?
 
it was either on stackoverflow or stackexchange i dont remember
 
@Szabolcs I got a FetchURL::conopen error, which is odd since my installation can download from HTTP, and all my other FTP programs work nicely...
 
2:32 PM
@JM On Linux I get the same error that I got on Windows. It's different from yours:
FetchURL::nofile: File /tmp/m00000224131/west0479.rua.gz cannot be opened.
 
@Szabolcs Huh. How about Import["ftp://math.nist.gov/pub/MatrixMarket2/Harwell-Boeing/chemwest/west0479.mtx.gz"]?
 
@JM Same thing ...
 
Okay, definitely the FTP... if I download both files and then Import[] the local copy, things go smooth.
 
@JM Import seems to get confused by the FTP, yes
 
The sucky part is that some of the stuff from ExampleData[] seems to pull from FTP sites.
 
2:38 PM
@FaysalAberkane I remember that, I think it was by Sjoerd, but I can't find it either.
 
(which is how I bumped into this problem)
 
Which one?
@JM Can you write support? Could try to dissect Import and fix it ourselves, but I'm feeling so lazy...
 
Well, I wanted to make sure first that it wasn't my fault...
 
@JM But it's strange that we get different errors.
 
Yeah.
Anyway, I was trying to grab a few test matrices from ExampleData["Matrix"] when I saw a number of $Failed entries in my output... some tracing showed that it was trying to import from a few FTP sites.
 
2:46 PM
10
A: How to find line where error occurred in Mathematica notebook?

Sjoerd C. de VriesApart from the debugger in the Workbench there's also a debugger built-in in Mathematica. You can find it in the Evaluation menu. It is not well documented and rather difficult/unconventional to get it to work. Here is a step-by-step instruction how to use it: Assuming you have the debugger swit...

 
2:57 PM
@JM Step one: the problem on my machine is in Utilities`URLTools`FetchURL. Can you test this function on the URL?
 
@Szabolcs You should be caring your campaign
22 hours ago, by belisarius
Let's do it: "Szabolcs for President of Jamaica"
 
With a Marley's Mellow Mood in my hand? :D
 
@Szabolcs Just an echo. Hmm...
 
@Szabolcs If I use the plain FetchURL[] instead of that version, I get the FetchURL::conopen error.
 
3:19 PM
@Szabolics thanks
 
@JM I strayed into Java land, somewhere in the paclet manager. I give up at this point. I don't know Java.
 
There be dragons there
 
"java.io.FileNotFoundException: pub/MatrixMarket2/Harwell-Boeing/chemwest/west0479.mtx.gz"
 
3:37 PM
Shoot.
I suppose I should be firing off an e-mail...
@Szabolcs: (BTW, did you see the Google Books link with the Risch chapter in my comment?)
 
@JM Let us know what they reply
@JM I did, I can see the first three pages. I'll try to get the book eventually, but it's too big a bite to do it right now
 
Took me a month to finish that chapter... :D
 
Very naive question: travel.stackexchange.com/questions/7663/… Lumping "Europe" together. At least not as bad as talking about the "Western World", and lumping everything together that is not e.g. Chinese
 
(Maybe you can do better.)
 
I doubt it, I know much less math than you do. I intend to change that though, step by step :-)
 
3:43 PM
@Szabolcs Maybe an old person... the kind who'd use the adjectives "Oriental" and "Occidental".
@bel:
 
@JM I saw that Plot[] before :)
 
4:33 PM
posted on June 14, 2012 by Paul-Jean Letourneau

Wouldn’t it be cool if you never had to remember another password again? I read an article in The New York Times recently about using individual typing styles to identify people. A computer could authenticate you based on how you type your user name without ever requiring you to type a password. To continue our [...]

 
4:43 PM
 
@Szabolcs You just did this?
 
@JM It's from the WRI blog post!
 
How to solve this on Mathematica y'' - y^2 - 2y = 0, y(0)=0, y'(0) = 0.0001
 
@Szabolcs Oh. I haven't read it yet. :D
@experimentX You've seen DSolve[]?
 
4:46 PM
@JM It's a CDF that measures the time between the consecutive letters as you type them. I'm curious if the distribution is really specific to a person. The screenshots on the site have a long time for f-r while that's the shortest interval in mine
 
yeah ... i know that,, but how to put ... y(0)=0 and y'(0) = 0.0001
currently i'm doing DSolve[y''[x] - (y[x])^2 - 2 y[x] == 0, y[x], x] and getting something elliptic function
Hmm ... should i post a question??
 
@experimentX Yes, elliptic functions tend to pop up in nonlinear DEs like that. No surprises there.
 
there i made it into IVP, y(0)=0 and y'(0) = 0.0001
 
DSolve[{y''[x] - (y[x])^2 - 2 y[x] == 0, y[0] == 0, y'[0] == 10^-4}, y[x], x]
 
.. million thanks @JM
lol ... i guess it's not solvable ... wolfram alpha also does not seem to do it :(
 
4:50 PM
I thought you said you got an elliptic function solution? Then it's solvable...
Why were you expecting an elementary answer?
 
Hmm ... it was a question asked by a High School student
 
...and how did he come up with that DE?
 
Let me upload it ..
i said it does not have a solution ...
 
@experimentX So it's $s'' - 2s^2 - s=0$ then?
 
isn't it supposed to be $$ \frac{d^2s}{dt^2} = s^2 + 2s , y(0)=0, y'(0) = 0 $$
 
R.M
4:55 PM
what is s?
 
displacement
 
a letter
Sorry. was not following the discussion:)
 
@experimentX eh? why is it $s^2 + 2s$?
 
R.M
@belisarius belidisplacementariudisplacement
 
A(s) = s^2 + 2s (given)
A(s) = s'' ( with time)
 
4:57 PM
@experimentX Nope. Read it again.
 
Hmm ... did i misread??
Oh ,,, or misunderstood??
 
There's a difference between $s^2 + 2s$ and $2s^2 + s$...
 
Oh ... sorry :(
sorry :( ... i try wolframing again
 
Somehow "Wolframing" doesn't have quite the same ring as "Googling", but oh well...
 
Hmm ... we use a this work a lot in my other place
 
R.M
5:02 PM
@JM Mathematicaing?
 
@RM That's even more painful on the ears... :D
 
R.M
It's weird... repeating that word in my head reminds me of a piece of chalk screeching on the board
 
For `DSolve[{y''[x] - 2 (y[x])^2 - y[x] == 0, y[0] == 0, y'[0] == 10^-4},
y[x], x]` I am getting `DSolve::bvimp: General solution contains implicit solutions. In the boundary value problem these solutions will be ignored, so some of the solutions will be lost. >>`
and output = {}
what does that mean??
 
R.M
Try clicking the >>
 
It choked on your nonlinear DE... happens rather frequently with these things.
 
5:11 PM
It gives ,,, some kind of examples
 
5:23 PM
I guess's i'll be asking question
 
@experimentX the equation is separable, have you tried integrating twice?
 
yeah ...
how do you separate it??
 
Divide both sides by $\frac{1}{2 s^2 + s}$ and multiply by $dt^2$.
Then both sides will only contain a single variable.
 
Hmm ... we get something like this $$ \frac{d^2s}{2s^2 + s } = dt^2$$
Can we integrate it twice??
 
Exactly. Now, double integrate both sides.
 
5:35 PM
Oh ... i never thought I could do that!!
BTW what do we do about constants??
 
Mathematica won't include the constants, but you can insert them at the end, in the form $c_1 s + c_2$.
Or, $k_1 t + k_2$.
Note, this gives an implicit function of $s$ in terms of $t$.
 
Let's see what we can do right here RHS is $ \frac 1 2 t^2 $
 
You could stop after a single integration to get the velocity, also.
@experimentX a differential equations class is useful for something. :P
 
hmm ... then i wold get something like this $ f(s) ds = t dt + k_1 $ ... how would I insert velocity :(
 
@experimentX Instead of solving for $s$ in terms of $t$, you could use ContourPlot to plot it: ContourPlot[ lhs == rhs, {s, -5, 5}, {t, -5, 5}].
@experimentX right. didn't think that all the way through.
 
5:40 PM
does it work with differentials??
 
I meant after the second integration, where there should no longer be any differentials.
 
@experimentX Don't take that kind of differential manipulation too seriously. It's physicist slang. A mathematician could kill you
 
@experimentX correction. You should get $f(s) ds = (t + k_1) dt$.
@belisarius I was taught this by a mathematician.
 
@rcollyer Perhaps he is committing suicide
 
@belisarius nope. leader in his field.
 
5:43 PM
Hmm .. yes
 
@rcollyer Is there a Math book (not for physicists) using that kind of math?
 
From mathematica i got $$ -x+\frac{c x^2}{2}+\frac{1}{2} (1+2 x)+x \text{Log}[x]-\frac{1}{2} (1+2 x) \text{Log}[1+2 x] $$
For input $$ \text{Integrate}[ \text{Integrate}[ 1/(2x{}^{\wedge}2 + x) + c, x], x] $$
 
I get $$-s+\frac{1}{2} (2 s+1)+s \log (s)-\frac{1}{2} (2 s+1) \log (2 s+1)$$.
@experimentX You have to get rid of the $c$.
 
Hmmm ... our answer's look similar ... I thought i put up a constant
 
nope. But, likely it should go in the denominator.
 
5:48 PM
Thanks ... i guess my problem is 80% solved
Please do me a last favour
 
From: `Integrate[Integrate[1/(2 s^2 + s + c), s], s] // Expand //
Simplify[#[[;; 2]]] + #[[3]] &`

I get $$\frac{(4 s+1) \tan ^{-1}\left(\frac{4 s+1}{\sqrt{8 c-1}}\right)}{2 \sqrt{8
c-1}}-\frac{1}{4} \log \left(c+2 s^2+s\right)$$
@experimentX sure.
 
How to evaluate function for particular value ... in mathematica??
let f(x) be some function, i want to calculate f(2) = ??
 
That's a loaded question. There are several ways. For something like x^2, I'd consider using ReplaceAll (or its shorthand /.), like x^2 /. 2. To create a callable function, though, I'd write f[x_]:=x^2, then f[2] gives you what you want. For some extra info, I'd read this question.
 
Thank you @rcollyer ... i was about to make a fool out of myself ... you saved me :)
 
You're welcome. We've all been there. Glad I could help.
Incidentally, in the last integrations I did, the simplification steps are a little non-standard. Specifically, I ran it through once, didn't like what I got (in form) and fed only the first two terms into Simplify and added third.
 
5:56 PM
It's all right ... now i know the method :) i can do the simplification
 
Look up Part and Span for additional explanations, if needed.
 
And one last thin ... how to plot x^2 + y^2 = 5^2 directly ??
Okay ..i'll do that
 
@experimentX ContourPlot works very well for that.
 
Hmm ... this did not work CountourPlot[x^2 + y^2 = 25]
 
Two things. Use == not =, they have different meanings. Second, you have to specify limits: ContourPlot[x^2 + y^2 == 25, {x, -6, 6}, {y, -6, 6}].
 
6:01 PM
Ah thank you ... that worked perfectly fine ... :)
 
You're welcome. I have to go, but I'm glad I could help.
 
although i went little further and experimented ContourPlot[x^2 + y^2 + z^2 == 25, {x, -6, 6}, {y, -6, 6}, {z, -6, 6}] :D ... which did nor work
 
@experimentX ContourPlot is 2D only. Try ContourPlot3D, but that's the limit in dimensionality.
 
actually, i was looking for some function like ezplot(expression) in MATLAB
yeah my stupid ..
 
@experimentX Nothing quit that simple here. But, better graphics, overall.
 
6:03 PM
so that i could plot curves like wolframalpha does :)
 
yes, as WolframAlpha is Mathematica under the hood.
 
Hmm ... really?? i wanted to plot ellipsoid ... okay, i'll search google
 
WolframAlpha will handle ContourPlot3D.
Gotta run. Bye.
 
seeya ... thank you for helping me :)
 
 
2 hours later…
8:28 PM
fyi, i've made a legending tag
 
 
1 hour later…
9:49 PM
@Mr.Wizard How did you modify the way your user name is displayed at the end of a comment? I have in mind the one where you reversed the order of letters in your user name.
 
10:08 PM
@MichaelWijaya My wild guess would be that he somehow typed a Unicode right-to-left override character
 
10:23 PM
@MichaelWijaya Basically, the character that allows you to write, say, Arabic text, in the midst of English...
 
@JM @sblom If I were to recreate that effect, what would I type in the comment box?
@JM @sbloom Here he applied that to his user name.
 
Let's see if this ‮ works.
Nope.
Hmm. Thinking.
♦ one more thing to try
Okay--yeah, I totally give up.
One more ‮test
Okay--copy and paste my last line into something, and you'll notice that if you type after the word "test", it'll append the chars in a funny place. But remember, with great power comes great responsibility.
 
10:44 PM
@sbloom That works. Thanks! Learned something new today.
 
To bring this back on topic, it appears that when I paste the right-to-left override character into a Mathematica notebook, the character is there, but doesn't cause an RTL mode change.
:)
 
@EliLansey Is really a word now? I'd prefer the tag be , but...
 
11:12 PM
@EliLansey I think we all noticed... :-)
@JM Mathematica has Legended... And anyway could ambiguously apply to things by Leonid, Mr.Wizard, etc...
 
R.M
@JM goes well with Mathematicaing ;) (runs)
 
@RM :D
 
R.M
speaking of autocompletions, I've always wanted the FE to be able to autocomplete file paths...
does anyone know which function/file to start hacking to mess with the autocompletions?
[I promise not to tell anyone if you violate some NDAs ;)... ]
3
 
11:27 PM
Quick question for everybody: most of the curated data functions support something like CityData[All, "Preload"] if you want all the data loaded up on your system in advance. How do you do this for ExampleData[]?
 
R.M
@JM I thought all the data in ExampleData shipped with mma, so it's there somewhere on your system
 
@RM Nope. Some of the "Matrix" data try to download from FTP sites (which is what me and Szabolcs were talking about many lines ago).
 
R.M
hmmm
 
Try ExampleData[{"Matrix", "FIDAPM05"}] for instance.
(Mathematica is basically trying to download from here.)
 
R.M
Well, the simplest would be to run ExampleData /@ ExampleData["Matrix"]; once. It saves the downloaded data to $UserBaseDirectory/Paclets/Repository/ExampleData_Matrix-6.0.2/Data
FWIW, I get errors with some of the matrices, so might not necessarily be due to linux (I'm on a mac)
 
11:45 PM
Map[ExampleData, ExampleData /@ ExampleData[], {2}].
Oh dear. :D
 
R.M
lol... See you next week!
 
I didn't actually execute it, but apparently that's how to load everything...
 
R.M
Next: Do it with all the *Data functions :P
 
...then Wolfram starts wondering why there's a crazy amount of data transfers coming from one IP... :D
 

« first day (148 days earlier)      last day (4337 days later) »