« first day (147 days earlier)      last day (3080 days later) » 

9:00 PM
Oh yes I just noticed the MATL language=)
 
@flawr since you're here, I think you'll be excited to know that Luis Mendo is making a golfing version of MATLAB.
 
hmm ...
 
I've been working on something similar=)
 
it's in the works, but I reviewed his preliminary document. It's very promising.
 
didn't get that ..
 
9:00 PM
I am looking forward to seeing it in action=)
 
didn't get that ..
 
@Divakar Do you ever get anything?
 
lmao
It's numpy and Python messing with his head.
 
haha
 
@flawr curious. You're on code golf more regularly than StackOverflow. I guess you enjoy solving challenges more than people's noob problems? :)
@flawr oh, did the Frames all thing work?
 
9:06 PM
Nothing flawed in that Ray!
 
hey I never said it was a flaw!
 
@AndrasDeak Then I get the following:
Relative Error of Backward Euler for n=100 is 0.691399646054

Relative Error of Backward Euler for n=200 is 1.876060306476

Relative Error of Backward Euler for n=400 is 7.315829981969
This can't happen... :/ @AndrasDeak
 
Speaking of NumPy/Python, there is one place where eval is god! NUMEPXR - code.google.com/p/numexpr
 
@rayryeng What is stack overflow???? 0.o
Yes frames did work=)
 
that's great@
@flawr please tlel me that's a joke lol.
 
9:15 PM
a place overflown with noobs
 
Well I am really bad at programming, so I am not able to answer any of those questions.
 
@evinda what can't happen? And why? It seems to me that your relative error increases, which makes sense
 
If, then I am active at math.SE
 
comeon don't flaw yourself! @flawr
Yu can duy it! As @rayryeng would put it.
 
9:16 PM
PROGRAMMING SUCKS
 
I agree! They should have more GIFs in programming
 
lmao
 
I thought that it shouldn't increase? Why does it have to? @AndrasDeak
 
@evinda because you make an error in each time step
those accumulate
and also you lose some precision when your solution becomes very small
It should increase
 
Well, I am off, see you guys later!
 
9:25 PM
cu
 
bye @Divakar:)
 
@flawr cu... do you do CUDA? :D
 
duy you duy cuda?
 
CUDA?
 
smh lol
CUDA is nVidia's GPU programming standard
cu is the extension of the files used to create code.
 
9:33 PM
as I said
17 mins ago, by flawr
PROGRAMMING SUCKS
 
I was trying to make a nerdy joke, but that failed.
lmao
says the person who completed a code golf challenge that almost no one understood
 
@rayryeng "I understood that reference!":D
 
@AndrasDeak :D
 
Hm I am trying to make a 3d model out of that gif but matlab is soooo darn slow....
 
how are you doing it with the image slices?
 
9:36 PM
What do you mean?
 
are you trying to make like a 3D mesh using the image slices in the GIF?
 
Well a voxel image first, not sure what to do after=)
 
oh :D
given those image slices, how do you figure out where an output voxel would be?
This I have no experience in, so I may be asking a lot of noob questions
 
That is actually quite intersting: Via radon-transform.
(And surprpisingly easy)
 
Umm...isn't this @AnderBiguri's PhD topic?;)
(He's doing tomography based on the 2d slices)
 
9:40 PM
oh is that what the Radon Transform does?
 
Yes=)
 
I've heard of the name, but I have no idea what it's used for.
That's cool!
 
img = double(ind2gray(squeeze(im),map));

%%
% imshow(img(:,:,27),[]);
r = 200;
kernel = [-1,2,-1];
anglerange = 98.79 -(-101.67);
reconstruct=zeros(numel(img(1,:,1)),numel(img(1,:,1)),numel(img(:,1,1)));
for r = 1:numel(img(:,1,1));
    disp(r/numel(img(:,1,1)))
    reconstruct(:,:,r) = zeros([1,1]*numel(img(1,:,1)));
    tic
    for k=1:360;
        v = conv(img(r,:,k),kernel,'same');
        slc = ones(size(v))' * v;
        reconstruct(:,:,r) = reconstruct(:,:,r) + imrotate(slc,k*anglerange/360,'nearest','crop');
nothing fancy.
I just like playing around with stuff way more than proving stuff.
 
how fast does it run per slice?
I see you have tic/toc there.
 
abou 6 seconds
 
9:44 PM
@flawr May I suggest using convn instead of looping from k = 1:360?
this way, the kernel can get independently applied to each row.
then perhaps some bsxfun to compute slc.
I'm just theorizing. I don't know if it'll work
 
Oh, I was not aware that convn exists!
 
yup :)
convn is N-D convolution
 
Let's finish the calculation that is running right now first=)
It is already at 20%
 
I use it all the time when I have to apply like a 3 x 3 x 3 averaging kernel on image volumes.
 
What field are you working in when you have to use voxel images?
 
9:47 PM
None actually :)
I've answered several StackOverflow questions where the questions are with voxel images.
There was one question where someone wanted to produce intermediate voxel slices in a volume. I said to use interp3.
Then another question was to take the average of 3 x 3 x 3 volumes, which is why I used convn.
The only exposure I have to it is answering questions. I normally don't deal with voxel images!
 
@rayryeng Fearless Ray!
 
but a great way to apply a 1D kernel to multiple rows independently is to use convn.
It beats having to loop over each row independently.
not to mention that it basically boils down to a native FFTW call, not having to do use multiple FFTW calls.
@Dev-iL haha :) hello sir.
 
Sometimes I just have difficulty to imagine arrays with more than 2 dimensions=)
Thats why I often stick to for loops=)
 
@flawr me too :D
Divakar doesn't have that difficulty
in fact, he used bsxfun/permute in 7 dimensions once to answer a question
It was wild. I've never seen anything like it
@Divakar is like the Ramanujan of MATLAB. How he comes up with stuff... I have absolutely no idea how, but it WORKS.
 
Well if I have to optimize it I can do it, but if the computer can do it for me, I do not want to waste my brain power. At least not so late in the evening=)
 
9:52 PM
oh :D
But I do agree with your approach.
Get it working first, then optimize after.
 
@flawr are you in Switzerland?
 
@AndrasDeak shhh!
 
Switzerland? :D
 
shhhh
 
9:57 PM
....it?
shhhh....it
 
shhhwitzerland
 
"shwitzer" means "somebody who brags" in HE ;)
 
Shmeckle means penis
That's all the hebrew I know or need to know
 
It's a shame that's not hebrew :) Maybe yiddish ;)
 
Yeah probably yiddish then
I thought they were the same thing
 
10:01 PM
Shmeckle lmao
 
Nah, just using the same letters
 
57%
 
@flawr oh my god.
Do you have the Parallel Computing Toolbox?
can you maybe parfor that bad boy?
 
Yes, I tried parfor.
But that is slower=)
 
is it?? pfft
 
10:02 PM
@Dev-iL Yeah it's yiddish
 
And I cannot save the progress.
 
Dustin, Yiddish is something like: German----Yiddish---------------------Hebrew
 
^ nice visualization=)
 
tnx :)
 
:D:D
 
10:03 PM
wtf skype@matlab ?!
 
@Dev-iL Can you speak yiddish?
 
@flawr nope, but I can probably understand quite a lot
....and I can obviously read it, but that doesn't count :)
 
meshuge!:D
 
@Dev-iL So you're saying German is closer to yiddish than hebrew is?
 
@Dev-iL I can also understand some yiddish but I obviously cannot read it=)
 
10:05 PM
I hate that I have to google this now
Why couldn't you have just perpetuated my ignorance
 
@Ballbreaker fo sho
 
66%
 
@flawr Is that the percentage of Yiddish you understand? ;)
 
I got to the point of the article where it says yiddish translates to jewish
Boom, done.
Article summarized.
 
Jewish as an adjective
 
10:06 PM
(I'm kidding)
 
@Dev-iL Nope, it is the progress of my program (69%)
 
It was the first line of the wiki article
"Yiddish (ייִדיש, יידיש or אידיש, yidish/idish, literally "Jewish"; in older sources also "Yiddish-Taitsh" (Judaeo-German)"
Okay, I am englightened
Article's finished. Cool stuff.
 
@AndrasDeak Why do they accumulate?
 
@evinda why don't they?
Everybody needs friends...
 
@evinda - ever heard of INS or AHRS ?
 
10:11 PM
@Dev-iL flawr took the skull slice X-Ray that @AnderBiguri made and is trying to make a 3D model of it using the Radon Transform
that's the progress of it being completed currently.
 
No, I haven't... @Dev-iL
 
@rayryeng (Yeah I know, I was joking)
 
oh :D
 
@evinda these are types of systems that can provide navigation abilities when GPS signal is unavailable, relying on accelerometers, gyros, magnetometers and the such
 
@Dev-iL Interesting...
This is called gyros in Greece :D @Dev-iL
 
10:13 PM
@evinda oh you're Greek! cool!
My PhD supervisor is greek.
 
Simply put, it integrates your acceleration (twice) to find your position relative to some reference you set at the beginning
 
@AndrasDeak And why, when the relative error is bigger then the approximation is better?
@rayryeng How is he called?
 
He did his education in Toronto, but his supervisor did it at NTUA
 
@evinda IT IS NOT BETTER.
 
Dimitrios Androutsos
and his supervisor was Anastasios Venetsanopoulos.
 
10:15 PM
I love gyros btw. The best gyros I've ever had was in an authentic Greek restaurant in Germany.
 
Gyros is great.
 
With the best tzatziki I've ever had...hmmmmm
 
The best I've had was in this run-down shack near the lake in Toronto.
 
Helloooo!
 
@AndrasDeak what is this highly unkosher food?! ;)
 
10:15 PM
Hi @LuisMendo:)
 
@Ballbreaker the place I'm talking about is right at the end on Queen's Quay at Lower Jarvis.
 
Nice to see @flawr here!
 
@LuisMendo OI OI OI OI OI OI OI
 
Hola!
 
@AndrasDeak But why isn't then the difference of the approximation from the exact solution visible at the graph?
 
10:16 PM
Hi all!
 
@Dev-iL well it's supposed to be lamb
 
Hahaha. What a welcome
 
@AndrasDeak Are you from Germany?
 
here it's usually chicken or pork:P
@evinda nope. Hungary
 
Yes he's from Germany... the Hungarian section of Germany... known as Hungary.... Hungary
 
10:16 PM
@LuisMendo Hey, I just discovered MATL, looking forward to that=)
 
Oh yes, you told me already.... @AndrasDeak
 
Germa-Hungary
 
My mother is from Germany...
 
@evinda - the reason I mentioned this INS, is related to your question about error accumulation
 
@rayryeng I'm afraid the MATL document is not being (:)-ed. Rather it's being permuted a bit :-P
 
10:17 PM
@Dev-iL I assume evinda can ignore corrections due to general relativity:P
 
@flawr Did you see the document in Esolangs? Anyway, I'll publish a new version tomorrow. And the compiler, which more or less works
 
@evinda if you have uexact=1e-10 and uapprox=6e-10, then you have a factor of 6 difference, which is bad, but you have an absolute difference of 5e-10, which seems small on a plot. That's why. If you don't understand this, then I can't help you with this.
@rayryeng I'm pretty sure you meant Russia:P
 
@LuisMendo :D
 
@LuisMendo Yay!
 
has the document changed since the last time? Please send me an update when able.
 
10:19 PM
@LuisMendo have you considered porting the compiler to octave?
 
It currently can't be.
There are functions unique to R2015b that can't be run on Octave.
 
@rayryeng oh.
OH.
 
I'm willing to work with Luis to overcome that hurdle.
 
@rayryeng Wow!! Did he? :-O
 
R2015b only? What a shame:P
 
10:20 PM
@LuisMendo oh yes. I need to find it
 
@rayryeng and pin it
 
I stand corrected, it's 6 dimensions
4
A: vectorizing a nested loop where one loop variable depends on the other

DivakarIn one of your comments to the accepted solution of the previous question, you mentioned that successive bsxfun(@times,..,permute..) based codes were faster. If that's the case, you can use a similar approach here as well. Here's the code that uses such a pattern alongwith tril - B1 = tril(bsxfu...

2
 
@AndrasDeak I hope with time that won't be that much of a hurdle. And it probably works in older versions, except for some specific functions
 
@rayryeng Ahhh I'm raaarreeely ever down that far
 
lol no worries.
I used to live on the Quay so I'd go to that place often
 
10:20 PM
@rayryeng Uaaaah
Ramanujan-esque indeed!
 
Oh yes. I have NO idea how he came up with that.
To this day, I still don't understand what it's doing
 
permute(v2,[5 6 4 3 1 2])). That makes one shudder
 
@LuisMendo cool, thanks:)
 
@rayryeng I know what you mean. That happens to me with A.Donda's tiling
18
A: For loop to split matrix to equal sized sub-matrices

A. DondaWell, I know that the poster explicitly asked for a for loop, and Jeff Mather's answer provided exactly that. But still I got curious whether it is possible to decompose a matrix into tiles (sub-matrices) of a given size without a loop. In case someone else is curious, too, here's what I have co...

 
This solution reminds me of Ramanujan. I have absolutely no idea how in hell you came up with that answer. — rayryeng 24 secs ago
racist
 
10:22 PM
I've used it a lot, and I still don't see how it works
 
@AndrasDeak hey they're both Indian. How is that racist?
 
the main difference between GPS and INS is that GPS provides you with an unbiased albeit possibly noisy (see "DOP") estimate of position that is updated usually not faster than 10Hz, while INS can give you an update rate of KHz or more. Now, since your only reference in INS is at the start of your navigation, and to get your position you must integrate many acceleration readings, you end up including many measurement errors in your integration, which is why INS are said to "drift" over time
 
@rayryeng you sometimes randomly throw in "racist", I thought it was something we do:D
 
Hey @rayryeng, be nice to sister @AndrasDeak :-D
 
10:24 PM
@AndrasDeak :D:D lol
 
he's already almost booted up my computer for me earlier today
 
yes I did.
 
@rayryeng That's like saying my solution reminds you of Hitler! I'm super offended. JUST BECAUSE WE'RE WHITE?!
 
GO NIC ON BOOT
@Ballbreaker that's exactly right.
 
@Ballbreaker and aryans...no?
 
10:24 PM
but race aside, Ramanujan was someone who came up with mathematical theories and formulations that did not make any sense.
but they work
 
I mean you. Hitler wasn't, come to think of it
 
it's how I feel when I read Divakar's code sometimes.
 
@AndrasDeak Well technically speaking, yes I would be aryan
 
My favourite one by Ramanujan (and it earned me a gold badge at Math.stackexchange!):
175
A: Surprising identities / equations

Luis MendoThis one by Ramanujan gives me the goosebumps: $$ \frac{2\sqrt{2}}{9801} \sum_{k=0}^\infty \frac{ (4k)! (1103+26390k) }{ (k!)^4 396^{4k} } = \frac1{\pi}. $$ P.S. Just to make this more intriguing, define the fundamental unit $U_{29} = \frac{5+\sqrt{29}}{2}$ and fundamental solutions to Pell e...

 
100%!!
 
10:28 PM
Here's my easy question of the day
0
A: Octave 4 unpack.m errors for Linear-algebra install

rayryengI think you meant: pkg install -forge linear-algebra The linear-algebra package has a dash in between the two words.

 
@flawr ooooh. How'd it turn out?:)
 
yeah how does it look like?
@LuisMendo yeah I've seen that one.... I have NO Idea how the hell that came to be
 
@AndrasDeak I do not know yet=)
 
Well, I saw that post of yours @Luis before I started answering MATLAB questiions on here or must had been my early days on here
 
@Divakar Which one?
 
10:29 PM
@LuisMendo wtf:D
 
175
A: Surprising identities / equations

Luis MendoThis one by Ramanujan gives me the goosebumps: $$ \frac{2\sqrt{2}}{9801} \sum_{k=0}^\infty \frac{ (4k)! (1103+26390k) }{ (k!)^4 396^{4k} } = \frac1{\pi}. $$ P.S. Just to make this more intriguing, define the fundamental unit $U_{29} = \frac{5+\sqrt{29}}{2}$ and fundamental solutions to Pell e...

 
@Divakar Oh! So you also visit Math.stackexchange
Me, only ocassionally
 
*math
 
Whoops :-)
 
Nah I followed you there :)
 
10:30 PM
And are we sure it's really 1/pi and not just almost?
 
@flawr Corrected!
 
Goodnight everyone!
 
I think I was answering MATLAB questions on here and seeing the top answerers profiles
 
night @Ballbreaker
 
cya Ballbrokers!
 
10:31 PM
@Divakar Hahaha
Bye @Ballbreaker!
 
@Divakar I only broker the best of quality balls!
 
and that post of yours got stuck in my head I guess @ Luis :)
haha good luck with the balls! Don't break them though, cherish them ;)
 
@Ballbreaker later bro
 
gnite
 
How do you make a contour plot of 3d data?
 
10:34 PM
contour3 ?
 
Well Ray, when dealing with multi-dimensional arrays, mostly I just imagine the sizes of the given input case rather the input elements themselves. That's sort of my "technique" with them.
 
@flawr isosurface?
 
I was wondering if you had some spatial visual acuity or something
because I can't imagine how to visualize these large dimensional matrices
 
nah, just that and I see those sizes playing with each other based on the problem
 
@Divakar having synesthesia is cheating:P
 
10:36 PM
@Divakar I usually get dizzy beyond three dims :-)
 
stop and smell the bsxfun
 
I dearly wish I had that! @AndrasDeak
 
Hahaha. I do have that. A little
 
@AndrasDeak THX!
 
wow! That;s a gift Luis!
 
10:37 PM
sound -> color, and letters -> color
It's funny
But I only have a mild form of it
 
@LuisMendo isn't it confusing?
 
this is taking forever 0.o
 
@AndrasDeak I think it's the way around. You get richer experiences, so to speak. And sometimes it helps
 
agreed Luis!
 
Things get serious when you have to use the task manager to kill matlab.
 
10:38 PM
Listening to music for example. Some sounds for me are orange. That's a new dimension that adds to it
@flawr It should be more responsive when you overpass the memory size
 
@flawr :)
 
What does that mean?
 
I am happy to say that in my latest battle with colorbars, I've actually managed to find something that isn't documented on the interwebs.... 'ColorbarPeerHandle'
 
My laptop just freezes with disk thrashing
 
I have a special track for solving questions on SO :)
 
10:39 PM
@Dev-iL congrats:D
Apply peer pressure to the PeerHandle @Dev-iL. That will turn your colorbar:D
 
@flawr please tell me you saved your data somewhere.
 
@AndrasDeak I wonder what that'll do :P
 
@LuisMendo mine does too
and if I set a ulimit -Sv, it won't start
 
@LuisMendo Actually, in machine learning they've been experimenting with that stuff... rewiring of the brain
For example, there was one experiment done where they hooked up the sensors in your brain that are responsible for light perception onto your tongue.
 
@rayryeng I did=)
 
10:41 PM
Haha. That sounds crazy!
 
if you stick your tongue out and it's facing a very bright light, the tongue undergoes one sensation
 
Neuro-plasiticity.. the term? Ray
 
and if it's dark, it goes through another sensation. it's crazy!
I think that's what it is, yes.
 
@Divakar Wouldn't that refer to the brain's ability to form new connections (especially when related to traumas)?
 
Yeah its a general term I guess @Dev-iL
But not necessarily bad I think @Dev-iL
gotta go guys, be awsome!
 
10:49 PM
Stay bsxfunny!
 
Ok matlab is taking way too long, have a nice day!
It's been fun sticking around here=)
 
@flawr please come back and visit :)
thanks for coming by. Take care!
 
I think this is about time. Please find the MATL compiler in https://esolangs.org/wiki/MATL

Sorry in advance for bugs!

Please send bugs, comments here:
Nov 13 at 22:35, by Luis Mendo
My email is: my initial, my last name, all lowercase, no dashes etc, at Google's email
 
log(1+2+3) = log(1)+log(2)+log(3) i am out of here
 
Bye, @Divakar! Check the compiler when you can! I just published it
Yes, come back soon, @flawr! And I hope you'll like MATL! Link above
 
10:56 PM
@LuisMendo Great!
so does this mean we can start code golfing?
@LuisMendo BTW, what's the process of putting an entry on esolangs.org?
Do you have to be approved, or can anyone add in an entry?
How do they verify that the language put in is legitimate?
 
A friend asked me to find some 4K (AKA "UHD" or "2160p") movies for him to test out... Interestingly, the vast majority of such content belongs to a very specific genre of cinema................
 
:D
@Dev-iL yes... it's a very perverted world
 
@rayryeng I'd say we first sandbox it here a little. Changes will very likely be required. If we start posting answers and some feature of the language changes, the answers will not be valid anymore
 

« first day (147 days earlier)      last day (3080 days later) »