« first day (158 days earlier)      last day (3289 days later) » 
00:00 - 23:0023:00 - 00:00

00:00
@TroyHaskin Or if they're trying to explain things through google translate.
@beaker Yeah. But that action by itself I find stupid ... because I'm currently cantankerous. ;)
I really have to google that word...
Oh, being a jerk:P
Hahahaha.
@beaker yeah, language barriers can be very deceiving
I'm pretty sure someone with horrible English will come through as less intelligent.
But then again, people who seem like morons then leave comments proving that they are morons.
So maybe I'm seeing too much into this:D
00:08
Heh, yeah. Smart dude.
I just saw him in Star Trek TNG, interesting episode:P
I assume it was a documentary.
Yeah. I think that was a two-part season finale/premier.
LOL.
@TroyHaskin Indeed:)
Between seasons 5 and 6
Nice. Yeah, I enjoyed that episode a lot. Data as a fish out of water is always amusing.
I was like "Heeey, that's Mark Twain!", then I was like "No, his name's Sam Clemens, but damn, does he look like Mark Twain!":D
@TroyHaskin Yeah, though it always makes me sad when they abuse his abilities
like being effectively dead for 500 years, or forbidding him to disclose a certain chain of events ever, to anyone
@AndrasDeak They were really just ripping off Marvin from Hitchhiker's Guide ;)
00:16
@AndrasDeak Indeed. The 500 years thing is stupid. It's like "stuff doesn't deteriorate over time at all!"
@TroyHaskin not to mention "hacking a message into the android's binary memory" (OMG). Though it did have a day-of-the-tentacle-esque charm
@beaker was he dead or forbidden to disclose something? It's been a while since I've read H2G2:(
no, he just had to wait for them for millions of years
without deteriorating (much)
he did develop a fault in the diodes all down his left side
damn, I have to reread that too
of course, all the time he could see the question for the answer written in Arthur's brain, but nobody would ever talk to him long enough for him to tell them what it was ;)
or so he claimed
@beaker well he is a sneaky bastard
at leat I never trusted him:D
00:22
@AndrasDeak only when it makes him look pitiful and abused
all that brain capacity with all that bitching
At times like this I realize I should really read more and not just on the metro:(
well, you can't blame him... if i had to listen to those chirpy, happy doors wishing me a good day all the time, i'd be a bit grumpy too
one of the websites i read has started coming out with a list of "must-read" science fiction and fantasy books for each month
and there's like a dozen new books for each month!
i don't ready anywhere near that fast ;)
or that often
@beaker yeah I'm not going near that:P
@AndrasDeak I get the following errors:
I was expecting "Undefined variable named ..."
00:32
But shouldn't the errors of the Lax-Wendroff method be smaller since it has a higher order of accurcy @AndrasDeak
@evinda order only gives you the exponent of how the error depends on mesh size, so not necessarily
but I'm not familiar with either of these methods
did you give up on the gif?
@AndrasDeak I will try it tomorrow again... I always get a warning message... :(
Are you sure the Lax-Wendroff error tends to 0? Did you look at the solutions? Are you sure the implementation is OK?
I found a mistake now... @AndrasDeak
@AndrasDeak Now I get the following:
Do they seem right? Why is there such a big difference between the errors of the two methods? @AndrasDeak
Please let's not go through this again.
I'll rather go to sleep.
So good night all
00:49
good night @AndrasDeak
Night @AndrasDeak.
Good night @AndrasDeak
Thanks for your help :)
 
8 hours later…
08:29
@AndrasDeak in case I forget later - Happy (upcoming) Hanuka!! :)
 
2 hours later…
10:54
@AndrasDeak This is interesting, no?
http://www.nature.com/nature/journal/v528/n7580/full/nature15750.html
11:15
@Dev-iL Right back at you (in a few hours)!:)
@Dev-iL indeed
Such experimental tours de force are always amazing
And they generally say "Here was the theory for 30 years, and guess what, it's correct"
:D
Tour de Farce ? ;)
especially that in ultracold gases you can basically model any simple quantum system
so you can reproduce the simple models used in theories
@Dev-iL a bit more interesting:P
Of course I might be quite off; I didn't read the paper and I'm not very familiar with the subject
Is it just me or this questions is borderline off-topic (from the wrong side)
1
Q: How to change efficiently Colormap of big .fig files in Matlab?

MasiI have some 2 GB .fig files where I would like to change colormaps smartly. The initial colormap is colormap(1-gray(1024)); made initially for computers. I would like to change smoothly to Parula etc for visualization purposes. There is a need for changing to many different colormaps efficient...

This is one of the strange cases where a user has high rep owing to questions
11:31
100 gold badges wtf
people in some tags are weird
80 of which are famous questions
He's been on SO for very long
These kinds of people need to start solving their own problems
I can't believe someone can have 800+ legit questions
Lol but why? when there's an army of peons out there fighting for unicorn points?
Maybe close some as off topic...? :D
I've been reading SO for a few years when solving problems, and I've been programming for years (6-7 for work?), and I've only had a single question to ask
And probably not just because I'm so fucking smart:P
There's a saying in Hebrew, that he who is too shy to ask questions will not learn
== לֹא הַבַּיְשָׁן לָמֵד, וְלֹא הַקַּפְּדָן מְלַמֵּד == פתגם חז"ל שמשמעו כי מי שמתבייש לחקור ולשאול סופו שלא יִלמד, ומי שמקפיד על המשמעת ועל חוקי הלימוד וצורתו, עד שבא הדבר על חשבון התלמידים או התוכן הנלמד, איננו ראוי ללמד. === מקור === "וְלֹא הַבַּיְשָׁן לָמֵד, וְלֹא הַקַּפְּדָן מְלַמֵּד." (מסכת אבות ב', ה') "אין הַבַּיְשָׁן לָמֵד, ואין הַקַּפְּדָן מְלַמֵּד" (מסכת דרך ארץ ג')...
Not too helpful of an article unfortunately, but it doesn't exist in any other language :\
11:43
Asking questions is one thing, and asking a question every 3 days for 7 years is another.
0
Q: How to estimate better this O(n2)-time pseudocode?

MasiI am reading an old code about which I need to write a technical report why it is expensive in time-space expenses. Code in Space-sense 1. Duplicate data to separate files having O(n)-space complexity because duplicating data to single files only once and the memory taken, when the input incr...

seriously?
people just won't close-vote a high-rep
which is a shame
> How would you argument better your boss such an algorithm?
(S)He must've gotten some bad question-asking habits from when SO just began
or is just an asking equivalent of a rep hore
12:16
Hello!!!
12:45
*whore
@evinda hello
13:12
I found that the solution is the following:
But this doesn't satisfy u(t,0)=0, but neither u_0(x) does.
So doesn't the problem have a solution?
Or do we use u(t,0)=0 only for the approximation of the solution if we want to apply the upwind-method?
Oh I send the second picture by accident
14:03
@evinda how long are you going to take this numerical PDE course?:P
Don't worry... That's the last exercise... @AndrasDeak
and yes, that is a very shitty (=inconsistent) pair of initial conditions
@AndrasDeak Shouldn't we have $u(t,0)=e^{-\beta}$?
practically the initial u0(x) is 0 at x=0, but not exactly
If beta is huge, the eror is small
but this is a shitty exercise
beta is not given. So I have to take a huge one, for example 1000, right? @AndrasDeak
14:11
not that huge:)
as you said, u0(0)=exp(-beta)
100?
But why not so huge? @AndrasDeak
@evinda if beta is too large, then most of your points will be numerically 0
beta is the inverse width of the peak
@AndrasDeak Yes, that's right...
plot your u0 for a few values of beta to see what I mean
beta=1/2, beta=1, beta=10, beta=100
Ok, I will...
14:13
I think beta>2 should be reasonable, beta=10 should be safe
but the sharper the peak, the denser the mesh you need to get an accurate solution
and of course it is a function of (b-a) in reality, since (b-a) is the domain size, and beta is the inverse width
in case of (b-a)=10, a peak width of beta=1 is cool
so you need something like beta>2/(b-a), where the 2 has to be tested manually to see what makes sense
14:43
For N_x=100, beta=1/2 I get:
For beta=1:
@evinda why not switch to ?
For beta=10:
and for beta=100:
@Dev-iL haha you troll:P
@evinda your analytical solution is wrong
for t=0 you should have a maximum in x=(b-a)/2
but your analytical has x=1
oh, here a=0, b=2...
then your graphs are wrong
they should be maximal for x=1
in t=0
but the width of the peak also seems off to me...just a hunch
That is the plot of u_0 for N_x=100, beta=3:
This for beta=10:
This ffor beta=100:
and this for beta=2:
14:58
Seems right
So for beta>10, you should probably be safe
at beta=10 you have u0(x=0)=exp(-10)=4e-5
that's probably still a bit too much
so let's say 30 or 50
exp(-30)=9e-14 is almost as small as the machine epsilon
For beta=30 we get the following:
So we can pick it since for x=0 is at the most points 0, right? @AndrasDeak
@AndrasDeak What makes you say that?
hg2 has been built into MATLAB for the past 10 years or so
@Dev-iL I wouldn't be so brave as to enable it by hand
@evinda well, because at x=0 the value of the function is practically zero
@AndrasDeak That doesn't say much seeing how you're also not brave enough to leave Yurop ;)
@Dev-iL I've tried it out once, found that all my figures were rasterized when saving to eps, then left it at that
@Dev-iL touché:P
 
2 hours later…
17:26
slow day :)
@beaker yup
Though I just got home
If you're bored, I invite you to examine this piece of wonder:
0
Q: Newton's method in matlab

Paulina I have started answering a question about newton's method in matlab however am not sure if my coding is correct. The question asks to find the zeros of a function f (not defined) using the prototype function [x , res , xvec , resvec ] = newton (f , df , x0 , maxiter , tol ).(xk) is a sequence gen...

already the first 10 lines of code are....just wow
that can't even parse correctly...
nevermind the fact that they're assigning to their function
of course it can't:D
indeed
and trying to overwrite the input function
and trying to differentiate with '
oh! is that what that was :D
i was confused
but i can see that now
and what is that first end for?
oh I didn't get up to that point:D
If it wasn't this bad code I'd suspect that it's no their own
17:36
anyway, there have got to be duplicates
dunno, I didn't even read the question
18:32
I'd just consider it pseudocode to be honest
or some reimagination of Mathematica
@excaza free rep opportunity
Thank you I understand my mistake, problem in math not in code :) How to mark your comment as answer? — linevich 2 mins ago
Yeah, I'm going to CW it in a sec
there's not a "red" colormap in matlab, is there?
@beaker not in R2012b
i don't see it in the documentation either
so i can't figure out what this user means by "call red" stackoverflow.com/questions/34121136/…
18:48
that's what OP wants to achieve, I think
a red colormap:D
aaaah
:D
@rayryeng is like a ninja
stealthy
We never know when he might be on SO
@beaker since if he writes "jet", they will see "all the rgb colors which create jet"
18:49
It's like his data visualization sense is tingling
should i write a function called "redish"?
radish()
totally rad
He's being a smart-ass, I think:P
me?
always
18:54
@excaza No, you're being exceptionally un-rude with that CW:P
@AndrasDeak your command in the English language is probably better than mine. From the piss-poor wording of the question, what I said was how I interpreted the question. What you said makes more sense. However, doing what you said for yellow is less intuitive. — rayryeng 1 min ago
He's also teasing me
nah I'm not teasing at all. What you said make sense.
but applying the logic for the colour of yellow is less intuitive.
I'm not sure what RGB tuples would give you a lighter shade of yellow to dark
mmmm, yellow...
exploding lemons...
dark yellow is not yellow
YEAH IT IS
SUBJECTIVE, SEE?
btw, good morning/evening all.
grass is not green
@rayryeng hey:)
18:57
There is no spoon
I stopped at red
@rayryeng i was agreeing with you ;)
@rayryeng and anyway OP doesn't really give a shit about their own question
judging by its level of sophistication
@beaker oh :)
@AndrasDeak hahahah how true
I think there's a bot out there from some competing web site that randomly posts poorly-worded, ambiguous fire-and-forget questions.
just to drive us crazy
19:01
:D
but then i'm paranoid
:D
It's an emergent property of the universe, trying to compensate for the awesomeness that is Jon Skeet.
^^^ :D
Eddies in the questionverse
as soon as i found out that matlab had a nan command, i was disappointed that it didn't have a naan command
it also has a dos command, but no dosa
i think i'm just hungry
lmao
19:17
anyone familiar with matlab's join/innerjoin?
OP thinks I'm the asshole, I think he is:
1
A: Difference between Matlab JOIN vs. INNERJOIN

Andras DeakLet me manualread that for you. C = join(A,B) join retains all the variables from A and appends the corresponding contents from the nonkey variables of B. C = innerjoin(A,B) The inner join retains only the rows that match between A and B with respect to the key variables. C contains ...

I mean I know I'm an asshole, but the question at hand might be unrelated:P
I'm not, but I didn't think you were an asshole at all
There are times when you are (lol), but this time isn't one of them.
@rayryeng I try to avoid accidental events like that:D
:D:D
Unfortunately I still haven't upgraded
so I don't have tables...
otherwise I'd have checked the first place
it can't be that hard to construct two tables with both common and different keys
Oh I see OP did just that
I think if we all take your behaviour, they'll want to answer their own questions :P
That would be great. Less RTFM questions lol.
but unfortunately less rep for us
19:21
@rayryeng lol:D
Well yeah, I'm not particularly fond of lazy questions
and repwhoring
Well now I'm an asshole:
Do you mean that matlab's innerjoin works exactly as SQL's INNER JOIN? This wasn't clear, and without that info this is not an answer to your question regarding "the difference between matlab join vs innerjoin". — Andras Deak 9 secs ago
hahaha no you're just asking for clarification
19
Q: Sum pyramid of primes

AdnanGiven a number N, the challenge is to get the sum of the pyramid of N primes. To clarify things, here is an example: Input: 4 We will list the first 4 primes, and then compute the sum of them. After that, we will compute the sums of the sums, and so on: 2 > 5 3 > 13 > 8 >...

MATL: 33 bytes:
it1T`1+tYpn4B$t<]Ypw1-:"TToX+]w)E
Hello all!!
@LuisMendo I was wondering if there was a better way to generate N primes rather than having to brute force primes until you get the desired length
New version will have final E implicit, so 32 bytes!
that's where I stopped with that challenge.
19:26
I don't think there is. That's one of the central problems of number theory
BTW, that sequence is well known. It's the binomial transform on primes.
You can only refine brute force
ahahah well I was hoping there'd be some MATLAB function that did that under the hood :P
less byte count.
help primes doesn't offer many more functions
yeah that's where I stopped
btw, I was gonna tackle that with a convolution with [1 1] as the kernel
then loop until we have a single element left.
I think that would take the same byte count as yours though
19:28
I did that. But it took more bytes
yeah see? lol
that's why I stopped.
That MATL program does that actually
The byte count was getting unrealistic.
@LuisMendo interesting.
X+ is convolution
TTo is [1 1]
right :)
19:30
I dumped 'valid' and took the central element at the end. Less bytes
Efficiency may well go out the window when that saves one byte! :-P
hahaha true.
@LuisMendo works for 4:)
@rayryeng Actually my Matlab code with conv took the same number of bytes as explicit summing because I used 'valid'. Replacing 'valid' by a final indexing with the central element saved a few bytes
@AndrasDeak Good! Thank youuuu
no, thank youu!;D
I never realized that there's an active tag. lol
When do you start fiddling with stacks? :-) @AndrasDeak
19:35
If only we were in Octave. You could get rid of the temporary variable.
@AndrasDeak yeah Divakar is there often.
@rayryeng Post an Octave answer maybe?
@LuisMendo I think I may do that.
It would essentially be what you did though
@LuisMendo not yet, not yet, thank you:P
19:52
Very nice answer! — Luis Mendo 2 mins ago
@LuisMendo thank you again!:)
LOL @rayryeng did you downvote the SQL guy's answer?:D
no!.... it was someone else.
I swear!
he'll never believe that it wasn't me:P Serves him right, anyway:D
20:11
@AndrasDeak "active"
Some people just have no brain in their gray cells.
-2
Q: Solve Global Optimization in MATLAB

zshaI have to find x that minimizes the following unconstrained optimization problem: f(x) = sigma{k}(x'A_kx - b_k)^2; where A_k are 4 x 4 positive definite matrices (A_1, A_2,...A_k), x is 4 x 1 vector and b_k are scalars (b_1,b_2,...b_k). I have solved this problem by using Nelder-Mead and Newton...

Funny how even in code golf languages you can use tricks for (further) code golfing, like TTo instead of [1 1]
Are you refering to MATL? Is there some kind of documentation?
@flawr yikes
21:18
@flawr yes, it's on esolangs.org
@flawr Oh, didn't I tell you about that? There's a compiler already. It's also in the link Ray posted
21:40
This is my conversation on Codementor
Diego: Hi, I just want to know how to translate given instructions into python code. is there a way to know how to do it?
Ray: What given instructions are you referring to?
Diego: Just in general, when you are given a problem, doesnt matter if it is a simple one that requires little amount of code or a complex one where it asks you to do a lot of things, how can you translate those instructions into code?
Ray: Take a programming course.
like.. .what more do you want? lol
The best way to take instructions and translate them to code... is to take a programming course.
@rayryeng that's why they pay you the big bucks
@AndrasDeak Could I ask you something? Why if we pick a greater beta do we get a greater error ?
21:55
@LuisMendo I did find the complier but no documentation!=)
@AndrasDeak "I don't see the point of replicating the manual pages, as I'm already looking at them." Then why couldn't he answer his own question? It's pretty clear from the quotes you provided.
@flawr It's the link under Most Recent Version
@AndrasDeak I mean for the first problem, where I implement the upwind method.
there's gotta be some sadistic professor out there asking his students "can you do it in one line in MATLAB? no temp variables?"
otherwise i have no clue what this recent obsession is
@beaker Thx!
22:18
@TroyHaskin heh, good read, right?:D
anyway, he's right that I was a bit of an asshole
though he still hasn't confirmed that my answer is useless, despite that I asked him to
If the argument beta of the code that I have written is 100 I get the following numbers for the order of accuracy for the upwind method:

0.5307 , 0.6752 , 0.7978, 0.8844

For beta=500 I get these ones:

0.2400 , 0.3469 , 0.4821 , 0.6292


So the order of accuracy converges slower to 2 for beta=500. Why does this happen?
It's just that at 2AM his question seemed like a shitty one, and he also seemed like an asshole
I was also pissed that he assumes that two matlab functions do the same as some SQL functions of the same name
but anyway, that doesn't mean that I should be an asshole; and he's right that I don't actually know what he's talking about
FWIW I would've checked the functions if my matlab was new enough
@evinda for large beta you have a sharp peak, and large changes in your function can easily give stronger sensitivity to errors
I can't tell you any math for this, it just seems intuitive
@evinda Yes, a sharper peak requires a denser mesh to properly capture the curvature at all points in the computational domain. Also, since the peak is sharper, the error between the analytical solution and first-order upwind approximation will be very evident due to its extremely diffusive nature (flattening out of the bump) at a fixed mesh density.
@TroyHaskin What do you mean with diffusive nature?
22:33
@evinda In general, numerical methods based on finite volumes and differences do not solve the true PDE but a modified version of it stemming from the conversion of a continuous problem to one over a finite one. The modified equation of the first-order upwind method applied to an advection equation introduces a spurious diffusive term that causes the method to smooth out solutions over time.
See page8 in this pdf.
For this reason, second-order methods, like Lax-Wendroff, introduce flux correction terms to eliminate this diffusive character. However, in so doing, they introduce a spurious dispersive term (third derivative vs. the diffusive second derivative) that makes the methods unsuitable for nearly discontinuous data, which leads to Gibbs phenomena in solutions if a flux limiter is not used.
TL;DR: it's complicated and a lot of fun.
@TroyHaskin good to know:)
@AndrasDeak No problem. I took an entire graduate math course on finite volume methods for hyperbolic PDEs and my thesis is based around solving a system of nonlinear hyperbolic equations. ... I find this stuff fun.
@TroyHaskin I can understand why:) Nonlinear hyperbolic as in Burgers, and shock waves?
@AndrasDeak That is in future work. For now, I'm just trying to get my first-order method working, so I don't have to worry about shocks (they just diffuse away :D ).
:D Discretization error saves the day!
22:47
It make everything so stable and smooth.
I see @TroyHaskin @AndrasDeak
So how is this exactly related to Nuclear Engineering? Anything plasma-y?:)
For ν=0.2 I get the following:
@AndrasDeak In directly related. I'm studying the linear stability of a next generation cooling system. And the system of PDEs is a conservation of mass, momentum, and energy.
Why is it like that although the method should be stable if 2ν<=1 ?
22:50
@evinda It looks like you only have ten data points. You need to increase the mesh density to overcome the diffusive nature of the solution./
And with that, I'm heading to dinner. Later, y'all.
@TroyHaskin have a nice dinner:)
or bon appetit or I don't know what you guys say:P
@TroyHaskin awesome:)
I just didn't know whether it was the nuclear or the engineering part that related to the hyperbolic PDEs:P
@LuisMendo I am very impressed, I just read some parts of your doc=)
I do not get every detail yet, but I love it so far=)
@flawr I was the first one to see his proposal. It's a great thing he made.
Only one suggestion: It would be nice to have a function that returns the first n primes or the n-th prime.
@flawr OOOO
22:56
@flawr watch out, soon you'll be jonesing and won't be able to contain yourself from golfing in MATL:P
@AndrasDeak I have tried several values for the Courant number ν , and I think that when it is closer to the upper bound of the cfl condition, the difference between the exact solution and the approximation is smaller. Is this right?
@AndrasDeak I am sure I'll be golfing in MATL soon=)
@evinda I'm afraid I have very limited knowledge about this area
Who is owner of this room?
@evinda But I would expect that getting closer to a numerical stability bound would make the method less stable. Dunno what that says about the error though... But did you increase your mesh to be able to resolve that bump?
(it's @rayryeng :P)
22:59
nah, there are many owners here lol. I was the one who created it.
Where can you find the owners?
00:00 - 23:0023:00 - 00:00

« first day (158 days earlier)      last day (3289 days later) »