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

8:02 PM
I've heard this chatroom was involved in this PPCG answer
 
Indeed. @rayryeng initiated this room after it had died once.
Few of the regulars are active code golfers:)
 
@flawr Hmm yeah, it seemed more on-topic before I joined..
 
@flawr OI!
Thanks for coming by! LOVE your code golf posts.
@flawr yes it was :).
RE: the code golf post.
 
Oh, sorry, I didn't read the fine print on that answer
 
^ He still hasn't figured out that there's a reply button
 
8:04 PM
@Ballbreaker Leave grampa alone!
The arrow icon is too small for his old eyes.
 
see ya later assholes.
 
You sure it's because his eyes are old?
 
@rayryeng Thanks! Even tough I'm a regular matlab user, I learned a lot in this answer=)
 
:D bye @rayryeng
 
@rayryeng I do not feel adressed =P
 
8:05 PM
loool
 
@flawr It's a good answer because it combined a lot of effort from many MATLAB users.
The hexidecimal printing I figured out eventually.
 
It's before my time, sadly;)
Not that I know anything about images
 
@Ballbreaker Keep saying your shit buddy.
go ahead. Wait for the boot.
you too @AndrasDeak
 
Me too what? My linux boots up pretty fast, and I rarely turn my laptop off.
 
HAH. HAH. hahahahaha
 
8:08 PM
BOOM
:D
Well that was fun. I'll wait for him to come back
 
I'm not kidding, search "wait for the boot", you'll see:D
What did you mean?
 
my virtual boot from my virtual foot.
 
Ah OK, that clears it up, thanks.
 
and get kicked out of the room :P
 
Ooooh. I see:D
 
8:09 PM
@Ballbreaker :D lol
 
It's not even snowing
Why you wearin' boots
 
@Ballbreaker It was supposed to snow later tonight or something.
Apparently I have to at work.
 
Ah pro-active boot wearing, I see
 
@flawr I had a hard time understanding the requirements to the recent challenge that you answered with the pseudo-coloring.
It's a wonder how you managed to put that to code.
 
@rayryeng That kick was weird, it basically just refreshed my page lol
 
8:11 PM
@rayryeng Was that also matlab?
 
@Ballbreaker Always wanted to know what it looked like on the receiving end.
I did it to Agawa001 many times.
 
Is it kick-mute?
 
@AndrasDeak yeah, one of the best posts I've seen ever.
 
Because I don't want the mute part
 
@rayryeng reaaally? Hmm
 
8:11 PM
YOU WILL GET THE MUTE PART
 
@rayryeng :)
 
yeah let me find it @AndrasDeak
 
@rayryeng It is really not that difficult=)
 
@rayryeng thanks, man
 
@rayryeng I meant to show you what it's like..
 
8:12 PM
@flawr it was probably due to laziness. the requirements were very involved.
 
And it was inefficient as hell, but hey, it is =)
 
28
A: Black and White Rainbows

flawrMatlab, 255 bytes This expects the image name first, then y and then x. I=@input;i=imread(I('','s'));[r,c]=size(i);m=zeros([r,c]); m(I(''),I(''))=1;M=m;d=m;for k=1:r*c;d(m&~M)=k;M=m;m=~~conv2(m,[0,1,0;1,1,1;0,1,0],'same')+0;m(~i)=0;d(m&~M)=k;endz=max(d(:));v=[1,1,3];imshow(ind2rgb(d,hsv(z)).*re...

 
@flawr sure, efficiency is not on the table:)
 
Are you allowed to use the Image Processing Toolbox? I would have suggested using bwdist to make it run faster
 
(if that makes sense in English)
 
8:13 PM
I guess you can, as I see imshow lol
also imfilter in place of conv2, but that's more bytes.
 
I am not really aware of what belongs to what toolbox=)
 
Oooooh that one
 
imfilter uses the Intel Integrated Performance Primitives.
 
restecp @flawr
 
Yeah one of the processing steps is to colour a pixel based on the Manhattan distance to the closest edge.
 
8:14 PM
yeah bwdist would also work, but you have to consider e.g. the borders of the labyrinth, and I do not think you can do taht with bwdist
 
bwdist performs the distance transform.
oh yeah. damn.
 
This is one of those questions where I'd say "no f*cking way to do that"
 
@flawr question and I hope you don't mind me asking... would it be possible to post the ungolfed version of that code?
 
Uhm I can try to write some comments=) sure!
 
Though I do see the bullet points you used for the processing steps, I'd love to see the actual logic being implemented more coherently :)
that's up to you!
I don't want to be an imposition to that already beautifully crafted answer.
 
8:16 PM
The idea is really simple: Start from a seed pixel, and extend that mask step by step. By extending I mean: add the neighbouring pixel s of the pixels of the current mask (4-neighbours)
 
flood fill?
 
which is the same as a 2d convolution with a 4-neighbourhood kernel
 
@rayryeng just use "sed 's/;/;\n/g " on that one-liner;)
 
yes exactly, flood=)
 
ohhh... are you iteratively convolving with a 4 cardinal neighbourhood to expand the mask?
 
8:17 PM
But the convolution makes it very inefficient
Exactly
 
that's brilliant actually.
who cares about inefficient? it works lol
 
I thought that is quite a basic computer-graphics concept, isn't it?=)
 
yup!
BTW, I love the function handle to input trick to get multiple inputs.
Best way to get multiple inputs with the least amount of bytes
 
whispers in Andras' ear Hey did you notice that ray was trying to show off to his matlab crush by threatening to kick us?
 
@Ballbreaker haha lol, you'll get busted again
 
8:22 PM
no I kicked you because you were just pissing me off in general.
 
Hi!!! Could I ask you something about a graph?
 
Andras had a close call. He redeemed himself later.
 
@rayryeng :( I feel bad.
 
Suppose that we implement the backward euler method at an initial and boundary value problem and we get the following graph:
 
:D I was just joking.
 
8:23 PM
@evinda Oh, I thought you meant graph graph
let me know when it's no longer backward euler;D
 
Oh that kind of graph.
 
Programmers...
 
@Ballbreaker I don't mind the odd joke, but when it comes to racism, it stems deep. I've had a lot of that shit growing up.
and it's not funny.
 
Why when the time gets bigger, the approximation tends to the exact solution?
 
8:24 PM
@rayryeng Ahhh I was wondering if that was it, sorry mate
 
@AndrasDeak It's not like my previous questions, is it?
 
I probably should have been more forthcoming.
but I tend to get a bit emotional. Sometimes I act before I think and this was one of those times. I apologize.
 
@evinda Well......
 
I went to a primary school that was predominantly white. I was the minority.
 
@evinda Is the time your x-axis?
 
8:25 PM
They were pretty merciless. It varied from hiding my lunches, to hiding the toilet paper in the bathroom.
 
If you have approx=C*exact, then the absolute error will go to 0 as your solution goes to 0
 
^
 
try plotting the relative error, (approx-exact)/exact
 
@rayryeng It's okay man, I get it, some people react differently to it. I can't really empathize so I forget how touchy it can be. I never say these things out of trying to demean or bully people, but I understand that it would stir those feelings if it happened in the past
 
@flawr he has a solution wrt (x,t)
the x axis is spatial
 
8:26 PM
@Ballbreaker I would think that I'm mature enough now to deal with that shit and I've overcome all of those feelings, but there are times where they really creep up out of nowhere and I get angry.
 
various time steps are plotted, n stands for time steps
 
Oh ok, now i see!
 
@Ballbreaker for sure. I know you get it.
 
@rayryeng Where do you live? (If I may ask)
 
@rayryeng I don't think you're supposed to cope with it. It's equally easy to not have assholes being assholes:P
 
8:27 PM
@rayryeng To be honest, I'm having one of those days too
Sorry duder, I'll try not to say shit like that in the future
 
@flawr I live in Toronto now, but I lived in a more rural town when I was growing up
 
Everyone's on their periods (just to chime in with my political correctness;)
 
@Ballbreaker it's fine. I can handle it. Just the eyes thing took me a bit overboard.
It reminded me of a time where some kid brought floss to school and said that they could blind me with it.
 
@rayryeng I didn't even get it, to be honest. But I have quite a bit different history
 
Jesus :/
 
8:28 PM
It ended with me kicking him in the nuts and punching him in the face.
 
@rayryeng :D
 
and I got suspended lol
I guess it makes sense. I was the one who caused physical harm
 
That's an acceptable response in my opinion
 
:D lol
coming from the Ballbreaker
 
@rayryeng well it can't be easy facing enmity on a daily basis
especially as a child
 
8:30 PM
yeah it was constant adversity squeezed into a classroom.
 
Children are ruthless
 
It got to a point where I had to transfer schools.
 
Kids can be assholes.
Then they grow up to be @Ballbreakers:D
 
@AndrasDeak I didn't do shit like that man lol
 
lmao.
 
8:30 PM
Assholedom comes in many forms, does it not?
 
@rayryeng
img = imread('your_image.png');
mask = zeros(size(img));
mask(10,11)=1; %seed pixel, here I set it manually
mask_old = mask; %copy
d=mask;          %this is going to be the distance matrix
for k=1:r*c*.6;
    d(mask&~mask_old)=k; %set the distance of the newly added pixels (from previous step)
    mask_old = mask;
    mask = ~~conv2(mask,[0,1,0;1,1,1;0,1,0],'same')+0; %extend the mask with 4-neighbourhood
    mask(~img)=0;                                      %set the invalidly extended pixels back to zero
 
Yeah I made fun of my phillipino friend for having a moustache in grade 5
 
@flawr @AndrasDeak Why does the approximation get better for bigger n?
 
And my fat friend for being fat
 
pinned. Thanks @flawr :)
 
8:31 PM
@evinda did you read what I wrote?
 
@evinda Better in what way? Relative or absolute error?
 
lmao well that stuff is pretty harmeless.
moustache I could laugh at.
Telling someone they could blind you with a piece of floss... that's fucked.
@Ballbreaker nah man, don't change for me. I'm cool.
 
The thing is that at the end of the day they were my friends and knew I was kidding. If they actually got upset about it (on a deep level) and told me, I would stop
 
@flawr be careful, we've been through similar things several times in the past few weeks, and there are some difficulties:)
evinda needs a patient person's touch
 
@rayryeng I agree man, there's funny then there's just downright cruel
 
8:32 PM
@Ballbreaker bullshit
 
@AndrasDeak lmao.
 
@AndrasDeak I said deep level! okay!
 
@Ballbreaker bullshit
 
LOL
 
It's the typical case of "haha, yeah, I'm fat as hell, funny."
 
8:33 PM
For example, my fat friend we would rile up to the point of where he would chase us around and want to kill us, but it was all surface layer anger, it wasn't like "hey lets make him feel like a shitty human being"
 
Peer pressure and oppression doesn't work that way
 
oh lol. well that stuff is fun.
There's making fun of someone because you value being their friend
and making fun of someone because you think they're a piece of shit.
I got to a point where I could tell the difference.
 
^Yeah exactly
 
@Ballbreaker you are in the first category and I like to jab back too :D it's all fun.
 
There was a group of ~6 of us that were best friends
 
8:34 PM
the eyes thing though just brought back a lot of bad memories and I acted out. so I'm sorry
 
I don't think you should ride your friends' ass in a subject that can hit home
 
See that's why I was confused haha, but I get it
 
haha sorry man.
 
@AndrasDeak It depends, honestly. He was perfectly okay with it
 
@Ballbreaker No, I mean you should not try and assume that he's perfectly okay with it
 
8:36 PM
wtf lol
@flawr OK, well we're mostly on topic here :P
 
@AndrasDeak You should not assume that I'm making assumptions here
This is directly from his mouth
On many many occassions
Both during, and up to years later
 
@Ballbreaker yeah, I know. I was trying to make another point:)
I don't think I could explain it properly.
 
No I understand what you're trying to say, trust me
 
I'm not sure I could explain it in Hungarian, for that matter.
 
@Ballbreaker It shouldn't have resorted to a kick-mute lol. That's pretty childish.
 
8:37 PM
I would say I agree in most circumstances
 
@rayryeng and @Ballbreaker is the epitome of adult behaviour:P
 
@flawr OH OH you shortened the code by 10 bytes!
it's just the Canadian humour we exhibit.
 
Sorry, I didn't see it before. So is it like that?

|approx-exact|=|c*exact-exact|=|exact(c-1)|

So if exact->0, approx-> exact.
 
@rayryeng Well I just noticed that I had the same line twice in there when I revisited the code now=)
 
oh :D
 
8:38 PM
@evinda in a sense, yeah
if both tend to 0, then they converge in a Cauchy sense
to be fancy about it
so it's always the relative error which you should consider
that can tell you if the approximation gets better
It shouldn't: errors should creep in with increasing time steps
 
sorry what are we talking about now?
I see a pretty graph. What's going on there?
 
@evinda taking a single spatial vector for a given time step, say, approx(i,:) and exact(i,:), then try plotting (approx(i,:)-exact(i,:))/max(abs(exact(i,:)))
@rayryeng solution to the heat equation starting from a sine profile
x is space, n is time steps
the heat profile diffuses to 0 with time
evinda has a recurring problem with errors:)
 
@AndrasDeak at least evinda's problems are interesting.
Abishek's problems suck.
 
@rayryeng that's how they get to you:D
I wouldn't give a shit otherwise
And the method is sound, and well-implemented
it's just a question of interpreting the results
Abhishek's like "Me write program. Me want it work. Why not work? UGH!"
 
@AndrasDeak :D
 
8:45 PM
(Like I said, I'm not quite mod material:D)
 
oh I'd vote for you as mod in a heartbeat.
 
lol:D Break the system!
 
BTW: Does anyone know how to extract single frames from a gif in Matlab?
 
@flawr yeah imread does that for you.
 
@flawr From this particular gif?
 
8:47 PM
If the GIF is animated, you should get a 4D image
so doing im(:,:,:,1) gives you the first slice.
 
or Flame probably
GIF as in Girl In Frame?
 
@flawr make sure you run it through ind2rgb though, because GIF will be an indexed image.
 
yeah! There you go, that's a Girl In Frame @Ballbreaker
 
curious. I'm gonna double check with that twerking image
 
@Ballbreaker No that one here:
Nov 19 at 18:20, by Ander Biguri
user image
 
8:50 PM
@flawr yup, try this
 
@Divakar hahaha we're on the same page
 
[im,map] = imread('http://i.imgur.com/i5aROGt.gif');
This is my workspace
>> whos
  Name        Size               Bytes  Class     Attributes

  im          4-D             84672000  uint8
  map       128x3                 3072  double
 
we are!
 
@rayryeng for science!
 
then, to get the first image, do: out = ind2rgb(im(:,:,:,1), map);
 
8:51 PM
I only get a 2d image =/
 
@AndrasDeak lol!
 
Nice graphics there @flawr! For performance I would have loved to made bsxfun of you though, instead of those repmats :)
 
you sure? I get 4-D
 
@Divakar =P
 
@rayryeng does that actually work? With a URL?
wtf
 
8:52 PM
@AndrasDeak yes.
 
URL as in UnRelated Lady?
 
As I said, I'm clueless about image-related matlab:)
@Divakar it's hard to tell with @Ballbreaker
lot of ladies are related:P
 
O_O
 
:D
 
@AndrasDeak yes it does.
imread checks to see if the beginning starts with http://
if it does, it uses urlread to download the image to a temporary directory and performs imread on this saved image.
 
8:53 PM
lol
I wonder if it could be exploited
 
@AndrasDeak The twin sisters was just a one time thing!
 
@rayryeng It seams my matlab version is too old=(
 
exploit URL? Damn!
 
It's good to know, thanks, I'm often too lazy to download things, but I might just drop in a URL
 
You really need new MATLAB to exploit URLs I think.
 
8:54 PM
Yes, totally drop in the URL. It also makes code reproducible without having to download anything
 
@Divakar I mean somehow making matlab download something dangerous
 
If you download the file and imread can't read it, it'll just give you an error.
 
@Divakar like a Miley Cyrus dvd
 
It did not get me an error, but just loaded one frame
 
Yeah don't download an URL that you don't know much about! URL as in ..
 
8:56 PM
@flawr really?
 
I'm now trying 'Frames','all')
 
ok. I'm using MATLAB R2015a though
maybe that's what's different.
 
R2010b
 
yeah that's probably it.
 
already 4d in 2012b @flawr
 
8:56 PM
they must have changed it over the versions.
 
My favourite Matlab command: squeeze
 
:D
 
Mine is (:) : Graphic way of saying squeeze.
 
hahahaha.
@Divakar you know what I said to Luis Mendo?
I said "Luis, I think you need to x(:) some more out of your MATL document"
 

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