« first day (208 days earlier)      last day (3013 days later) » 

2:00 PM
but that still doesn't help with grading the submissions
 
Thank you tough for pointing it out.
 
So the element of artsiness might still be held against it
 
What do you mean by grading?
 
@flawr I mean scoring:) Determining the leaderboard.
As I saw, many users are against the whole "subjective scoring" thing, and that's why popcon questions can easily get controversial
that doesn't necessarily mean they're right;)
And I think your proposed challenge is much more well-defined than those painting-encoding ones scrutinized in the meta post
 
You're right, some challenges work better than others, but after all, the "objective winning criterion" is the number of votes.
I think this challenge will work quite well in the popcon format as the submissions should be judged by human eyes, which is probably what is going to happen=)
 
2:04 PM
@flawr Talk about semantics;D
@flawr I agree. Although I expect a very unpredictable outcome, since essentially no two persons will have the same idea of what should be upvoted:)
 
Part of the game=)
 
If it's pretty, if it's twisted, if it's unexpected, if it's closest to the original...
 
We've had (well, quite a while ago) a challenge involving dithering, that has some parallels to my proposed challenge.
16
Q: Dither a Grayscale Image

qwrDither a grayscale image into pure black and white with your own algorithm. Guidelines: You must come up with your own new algorithm. You cannot use pre-existing algorithms (ex. Floyd-Steinburg) but you can use the general technique. Your program must be able to read an image and produce an imag...

321
Q: American Gothic in the palette of Mona Lisa: Rearrange the pixels

Calvin's HobbiesYou are given two true color images, the Source and the Palette. They do not necessarily have the same dimensions but it is guaranteed that their areas are the same, i.e. they have the same number of pixels. Your task is to create an algorithm that makes the most accurate looking copy of the Sou...

278
Q: Images with all colors

Mark JeronimusSimilar to the images on allrgb.com, Make images where each pixel is a unique color (no color is used twice and no color is missing). Give a program that generates such an image, along with a screenshot or file of the output (upload as PNG). Create the image purely algorithmically. Image must ...

@AndrasDeak The criterion I was mentioning is "how well it blends in" and I think there will be at least some consensus among the voters=)
 
omg somw of those are awesome
 
you mean popular
=)
 
2:10 PM
and awesome XD
the last one, the "images with all colors"
 
I did participate in the first two=)
 
Im flipping with that
I saw that!
 
@flawr those animations are insane:D
@flawr ah, I simply missed that in your proposal, sorry:)
 
the fact that this is made will all different colors
 
The one in "American Gothic(..)" was one of my very first submission, and I think my most successful regarding vote count=)
 
2:11 PM
each pixel
is awesome
 
I like pixel (201,152) most.
:D
 
haha I agree
 
I just don't get how the dithering challenge did not really get all that much attention.
Some guy there even improved popular dithering techniques!
 
The one with the dog? that one is cool also
 
My eyes are going to pop out...
too many coloured images:D
 
2:16 PM
Thanks for the upvote, I tried not to beg too much=)
 
@flawr that's what happens when you post your own answers/questions here :p
 
you can beg asmuch as you wish!
 
Need some more upvotes? Go to MATLAB/OCTAVE.chat.SE!
Warning: Addicting! STOP READING THIS MESSAGE RIGHT NOW IF YOU ARE AT WORK! Do you know cookie clicker?
 
not yet
but that warning makes me cautious:P
is this an idle game?
 
What is an idle game?
 
2:22 PM
Yeah
 
(You play alone. There is no goal.)
 
idle games play themselves, basically:D
you can help out, but it goes along by itself as well
 
Oh ok.
Well no, you have to do the first click at least^^
Well you do not have to
but then nothing happens=)
 
yeah, seems like an idle game:)
I made a grandma, everything's gonna be alright.
3
 
That is what I thought too, when all began.
 
2:26 PM
@AndrasDeak Starred out of context
 
That is what stars are here for.
 
Yep
 
@Adriaan I think cookie clicker is somehwat older=)
Well then, back to work.
 
2:45 PM
@AndrasDeak :-D
 
3:13 PM
fuck me I hate MATLAB sometimes
why locate objects from the lower left corner and start text from the top left
And when fitting a border to the text, resize the box based on the text location without repositioning the box
asdfklfjg
 
@excaza gui is the enemy:(
 
3:29 PM
@flawr but I've been playing clickerheroes for over a year now :p
 
3:40 PM
@Adriaan you mean hero clicks right?
 
@ballBreaker nope
 
3:57 PM
Ohhh an online game hehe
my bad :3
 
4:09 PM
@excaza oooh, I see
stupid matlab
 
4:37 PM
@AndrasDeak You made a grandma.... and its name is MATLAB?
 
@rayryeng ph-LEASE, her name is MATLAB
 
That's not what you told MATLAB last night.
you called her an it.
now you hurt its feelings.... or her feelings
You hurt... her-its feelings.
 
@rayryeng zeir feelings:P
 
@rayryeng being a father does weird things to your brain.
 
I could say being dutch does as well, but I have no idea what that is like.
 
4:39 PM
@ray ! :P Image processing guy: have you seen this? stackoverflow.com/questions/34970064/…
if you have no idea just let it go, but as you have somuch experience maybe you have dealt with this before
 
@AnderBiguri lol, worse than a travelling salesman;D
 
lmao.
let me have a look @AnderBiguri
 
@rayryeng as I have no idea how it is being a father
 
I'd rather be a father than Dutch! :P
 
@AndrasDeak I am NP-hard?
 
4:41 PM
Adriaan: I'd rather be Dutch than a father!
Ray: YOU WILL RUE THE DAY YOU SAID THOSE WORDS
 
@AnderBiguri :D Ask @ballBreaker about that.
 
Adriaan: NO I WON'T
 
@rayryeng have you seen octave's colon()?
 
@AndrasDeak not yet.
 
just to be a bit of a travelling proctologist myself
 
4:42 PM
LOL
 
16 hours ago, by Andras Deak
function r = colon (varargin)
  if (nargin != 0)
    error ('colon: not defined for class "%s"', class (varargin{1}));
  endif
endfunction


%!error colon (1)

## FIXME -- what does colon () mean since it doesn't set a return value?
Octave 3.8.1 from 2013
 
you're shitting me right?
 
@rayryeng the version pre-bundled with the newest LTS ubuntu:D
 
@AndrasDeak LOL just that?
 
What are these Octave developers on?
 
4:44 PM
the function returns undefined
 
@AnderBiguri no, there's also a help which suggests that it actually does something:D
 
hahaha so there is a help sayin: this stuff dies things
but then it doesnt XD
seems like my code
 
octave:1> help colon
'colon' is a function from the file /usr/share/octave/3.8.1/m/miscellaneous/colon.m

-- Function File: R = colon (A, B)
-- Function File: R = colon (A, B, C)
Method of a class to construct a range with the ':' operator. For
example:

a = myclass (...);
b = myclass (...);
c = a : b

See also: class, subsref, subsasgn.
which makes it very fun to find out why MATL sometimes breaks on my Octave:D
I kinda lost it when we found this last night with Luis
 
@rayryeng I reckon I'll be both at some point in the future
 
I've been playing around with my nonlinear SVM, soo much fun=) (I should have been studying instead...)
(Using an RBF kernel.)
 
4:55 PM
@flawr ohh, SVMs :D
 
@flawr Gaussian RBF kernel?
 
Nope, only an approximation
 
@rayryeng random brainfuck kernels are my favourite!
 
k(x,y) := (x.' * y+1)^2
 
@flawr still a very good approximation!
How are you training the SVM? Are you using SMO or some sort of Gradient Descent to minimize the cost function?
 
5:01 PM
I'm using quadprog :D
 
:D. that's good enough for me
 
@flawr but MATLAB's got built-in SVMs :P
 
@Adriaan hey he wanted to minimize the cost function himself :D
0
Q: Outputting Regionprops to csv in MATLAB

Mikkel AstrupI'm currently running some data analysis on a lot of pictures and the code i have running is the following: close all clear all clc A=imread('Ring_1_frame_120.jpg'); %Load picture %A01-A010 = xmin ymin width height ...

This question breaks all of the cardinal rules in MATLAB
1. Dynamic variable names
2. Use of eval.
3. Adriaan's favourite: Using i as a loop variable.
 
@rayryeng at least have the decency to point to my post about DVN :p
 
:D alright. where is it? Let me link it
 
5:14 PM
@rayryeng here
 
done
 
@Adriaan I had to do it myself for a class=)
Builtins are no fun.
=)
 
@flawr but damn useful at work :p
 
@Adriaan I agree=)
 
@rayryeng blègh, I so hate it when someone posts the same answer as I do but without any comments as to why it works and still gets more upvotes
 
5:27 PM
But you must have a fancy job when you have to use nonlinear SVMs fro work.
@Adriaan Let us change that.
 
@flawr I'm working on laserscan data to extract digital terrain models and classify them based on RGB value, intensity of the return and local terrain roughness
 
I'd consider that as a fancy job=)
 
@Adriaan I agree. I was watching though... that person posted 10 seconds after you did
I also took the liberty in editing that user's code formatting. I didn't like it
 
@rayryeng good point
@rayryeng your answer's much better though. Easily loop-able and more general
 
@Adriaan well the inspiration of that is that you guys already took all of the indexing approaches ;P
 
5:31 PM
only 5 votes needed for bronze !
 
I had to figure something else out, but thank you :) I did +1 yours because it is the canonical way
@Adriaan I will help you with that!
 
@rayryeng find me a question?
 
@Adriaan yup
I can also vote on your questions on that tag too
I'll spread my votes out during the day
 
@rayryeng damn, you edit too quick :p
I was just about to say that cell2mat does what you describe!
 
@
@excaza :D. Sorry. We must be on the same wavelength today
 
5:43 PM
That filter answer is really clever
 
@excaza Yes.
 
thanks :)
 
you should somehow incorporate a map container to mess with @Adriaan
 
@excaza I'd be crying then
@AndrasDeak Got a retirement home by now!
 
@Adriaan Nope, could easily be fixed.
 
@beaker he still asks for "the best way of doing this" -> opinion based. Otherwise "too broad" would also cover it without seeing any other attempts
 
@Adriaan And the other people who ask clearly-defined questions with provided inputs and desired outputs are not seeking "the best way of doing this"?
 
6:26 PM
@beaker Some say it specifically, not that it matters at all :D
Also, consider "do mah h0m3wrkz plizzz" .. these guys don't care about the "best" way
 
@Dev-iL whoa, your ability to speak the illiterate's way of English is absolutely astounding
 
@Adriaan Practice makes perfect
 
@Dev-iL experientia docet. But I'd rather spend my time on learning useful things ;)
 
@Adriaan you can start by setting your google language to "hacker" if this is still available :D
 
@Adriaan repetitio est mater studiorum?
 
6:32 PM
@Dev-iL that hurts my eyes
@AndrasDeak that'd work as well, but my one's shorter :P
 
m04R :D
 
0
Q: How do I normalize the finance data sets in matlab?

s.yazdienter image description hereI have an excel file as finance data with 300 samples(companies) in rows and 24 feature in column. i want to normalize finance data how we can do this ? my data is finance data . i want use ANN but before i must normalize my data .

how'd his edit help?
 
@AndrasDeak That reminds me of GTA3's chatterbox radio
 
@Dev-iL how so?
 
A bit vague but.... There's some caller that talks about how he's "latin", and so the host asks 'Where are you ... "Latin"'s a big place, you know"
or something like that
 
6:37 PM
OK...:)
It'd probably help if I were familiar with GTA3:D
I lost track at 2
 
Hahaha oh man, I got put through the crucible this weekend lol
 
@ballBreaker oh boi. What happened?
 
I will spare you guys the details, but my situation has resolved itself finally lol, in (almost) the worst way possible
 
Con/Dom's mom showed up?
 
lool
 
6:45 PM
Mutual stabbination? (< I absolutely don't care that there's no word like that.. it just sounds more dramatic)
 
Nah, but my friend betrayed me, and I lost both him and Dom in the same night
I don't think he was expecting me to know it was him that betrayed me though, it wasn't pretty lol
I've known him for 10 years, and know all of his many insecurities and flaws.. I don't think I've ever cut someone so deep in my life
 
@ballBreaker Looks like I hit the spot with the "stabbination"
 
Anyways, I'm over everything now haha. The universe very plainly told me it wasn't meant to happen, I mean you can only look a gift horse in the mouth so many times
@Dev-iL lmao yeah
 
@AndrasDeak xkcd.com/404
 
I got stabbed in the back, then stabbed in the heart, connie got stabbed in the heart, Dom got stabbed in the heart
 
Then I ended up cutting my "friend"'s head off with my words
I don't think I've ever resorted to such deep cuts on a person before, like probably to-the-soul kind of deep
I'm not proud of it, but I don't regret it :')
Anyways, that's all there is to this situation now. Just figured I would give you guys the dramatic conclusion we all knew was imminent!
Now to write my screenplay and make millions
 
@ballBreaker the question on everyone's mind now is: Who's next on your to-do list?
@rayryeng I understood only 50% of the words in that sentence :D
That's the job of backpropagation and training. The weight matrix is automatically inferred when you provide training examples and expected labels. — rayryeng 1 min ago
 
7:05 PM
I have some really cute girl on tinder talking to me :3 but I think she's a catfish because her behaviour is extremely suspicious:
1) has only one picture
2) Is 25 on profile, but admits to being 27
3) Is gorgeous from her one picture, but asks really insecure (and weird) questions
4) Keeps saying she'll put up more pictures but doesn't
 
Maybe its me :D
 
Hahahaha :D
I hope so
Lmao, like how weird is this as a question "Would you date a 35 year old? ;)"
 
@AnderBiguri that is one gorgeous picture indeed!
 
rofl
"Did you ever see my original picture?"
Me: "No"
Her: "Okay lol good"
hahahahah the worst cat fishing I think
Was her original picture, your picture @Ander ?
 
:D
naked
 
7:12 PM
heh
 
@Dev-iL lol:D
 
@Adriaan :D sorry that's neural network talk
 
@ballBreaker whoah...tough stuff, man
 
@Adriaan his edit was stupid. I removed the image because it doesn't help in explaining the question... but the duplicate is all the OP needs to consult.
@ballBreaker sounds like catfishing to me bro. Drop it like it's hot.
or... ask her to take a picture of her doing a ridiculous pose that can't be faked.
 
@ballBreaker gorgeousness and self-esteem don't go together necessarily
still catfish, probably:D
@rayryeng like sporting @Ander's beard
 
7:14 PM
:D
 
@ballBreaker there was some catfish compilation on 9gag (I know...) a while back
one was a snapchat saying "Got catfished, but she got weed so we cool."
 
lol!
Yeah I know, I've met super self-conscious girls who were amazingly beautiful
 
@AndrasDeak 4.8M cookies per second
 
It was just the weirdness behind the conversation ..
@rayryeng lmao I will
@AndrasDeak Hahah yeah it was rough, but it at least showed me where my loyalties lay, and concluded things in a way I wasn't expecting, but not too upset about
I was really mad for about a day, and looking at it, it's really fuckin funny actually haha
 
my rep on Code Golf is now 666... thinking about drawing horns and a goatee on my avatar
i just hope i don't get any more upvotes
 
7:22 PM
@Adriaan heh, good for you:D
@beaker >:)
@beaker *hovers mouse over uparrow*
 
lol
MUPPETS CAN BE CVLT!!!
@LuisMendo Here's something that I've been thinking about for MATL that would have been useful here...
18
Q: Matching Adjacent Words

Nathan MerrillIn this challenge, you are passed two words: Your job is to determine if they are adjacent. Two letters are adjacent if: They are the same letter, or They are lexicographically adjacent. For example, J is adjacent to I,J, and K only. Z is not adjacent to A Two words are adjacent if: They...

Do you think would be useful to be able to assign a vector (say v1 = 1x3) to longer vector (v2 = 1x4) so that the v2(1:3) = v1 and v2(4) = the previously assigned value or zero?
 
7:44 PM
oh I love cookie hunter! That click game is awesome :D
I remember leaving it on for one month straight.
 
I first though of solving this question with find(abs(A-x),3)or something, but I'm not sure about the required logical in the find...
 
less than infinity?
that wouldn't sort though
 
find(abs(A-x)<max(abs(A-x)),3)?
 
@Adriaan nah, i think your sort solution is better
 
@Adriaan you'd still need to sort that
 
7:48 PM
sort is better. don't complicate with find.
and yes you still need to sort to find the closest three values.
 
@rayryeng yea, just found that out by trying
@beaker I just wanted to try more ways :P
@rayryeng pff, you couldn't leave me an answer now could you? :p
 
mine uses toolboxes :P It's not a valid answer.
but I wanted to throw one in just because.
 
how fast is knnsearch with respect to sort?
@rayryeng ... because you're a repwhoring dickwhore?
 
@Adriaan LOL... knn is big-time overkill ;)
 
that's not the way you talk to someone who's trying to help you get a bronze badge
@beaker :D. overkill I like.
 
7:52 PM
O(n^2) vs O(n log n)
 
@Adriaan could try setdiff but it's still a 2 liner
tmp = setdiff(A, 5, 'sorted')
yclosest = tmp(1:3)
 
@beaker k-nearest neighbour implemented in the most efficient manner is O(n log n)
 
er...
 
that's actually what is done under the hood. so efficiency isn't a topic of discussion.
you just don't like me using the function :)
 
tmp = fliplr(setdiff(A, 5, 'sorted'));
 
7:54 PM
@excaza oo that works!
 
@rayryeng okay, if you're searching for the neighbor of 1 element
 
or tmp(end-2:end) without fliplr
 
which is what we're doing here.
 
yes
 
and suddenly we're golfing!
 
7:55 PM
did someone say golf?
 
so how would you do it in MATL?
 
^My girlfriend just sent me that saying: "that's exactly what you'd say". I'm glad I have such a good reputation.
 
hahahaha
 
@Adriaan yours is less characters I think
 
7:59 PM
A = [0.75, 0.6, 0.62, 0.51, 0.53, 0.48];
x = 5; % Distance point
y = 3; % Values to choose

% 1
[~,c] = sort(abs(A-x)); yclosest1 = A(c(1:y))

% 2
t = setdiff(A,x); yclosest2 = tmp(end-(y-1):end)

% 3
t = fliplr(setdiff(A,x)); yclosest3 = tmp(1:y)
% 4
c = knnsearch(A,x,'K',y); yclosest4 = A(c)
 
@excaza make a new gist!
 
I think @rayryeng wins, though he cheats with a toolbox :p
 
Yes :'( lol. what's the timing?
 
0
Q: how to save the matlab workplace variable inculding original file name?

mee meeHi I would like to know how I can save the matlab output files (i.e. matlab workplace variables), by including original file name. e.g. I open a file (filename.matlab) with load filename.matlab. Then I run a code to do calculation and I get some workplace variables (e.g. flow, pressure). I want...

.matlab file? What's that?
 
8:05 PM
sweet :) Would this be considered as a commit to the SO MATLAB Github repo?
 
@rayryeng I don't think so, let me google if you can make Gists in the organization namespace
 
I was just curious if this would be a good entry for it
 
Doesn't look like it
though we could make a golf repo with a bunch of subfolders
Gimme a sec
 
oh! cool. sure.
0
Q: Difficulty manipulating instance of MATLAB class

BazmanI wrote a MATLAB class called Curve (or which curve below is an instance). Right now when the class runs it can produce zeros and or nan's which I don't want. I tried to get rid of them using: curve.Last( :, isnan(curve.Last,1) ) = []; But this only produced: 'Curve' must be accessed f...

OP has a problem with a MATLAB class definition... but can't post the class.
what do we look like? MATLAB whisperers?
 
8:23 PM
@rayryeng He must've been confused by that gold Mentalist badge ;)
 
@beaker :D
 
I had to figure out how to commit with 2 factor authorization on, furious googling required...
 
2 factor authorization? Is this a new feature?
 
I don't think it's new, I just enabled it for my GH account last week
 
8:28 PM
ahhhh. is it an additional mode of security? What is its purpose?
 
Yes, I've been enabling it on my various accounts that support it
You either get an SMS or use an app/hardware key to generate a verification code
 
@excaza just like gmail's "two-step verification"
likey
 
ohhhh yes
Google Authenticator stuff. nice.
I like that.
 
@rayryeng at least I got the accept on that find 3 minima thing :D
 
9:03 PM
@Adriaan :D very nice.
need two more upvotes for 200 rep! c'monnnn people :D
 
@excaza thanks for the fileparts function. I hope I got the correct syntax
 
fileparts is a great function... same with fullfile.
 
I'm at only 125 :(
 
@Adriaan I'm spacing out my votes for you. I don't want the system to trip.
 
@rayryeng rather give me questions to answer and make me think I earned them myself :P
 
9:05 PM
@Adriaan aha :) alright. let me see
 
@AndrasDeak I can see the shiny new "Bingo centre/Research facility" for grandma's now :D
"Grandma-operated science lab and leisure club"
 
9:49 PM
@beaker Assuming v2 and v1 are already in the stack, you can achieve that with four bytes: tn:(. I could define two-character function to do that, but I don't think it's used that often?
 
thanks @excaza !
 
@beaker A useful Matlab/MATL trick in that challenge is char({'abc' 'de'}). That gives a 2D char array, automatically padding with spaces
If it wasn't because diff('abc') doesn't work in Octave (it requires numeric input --- solved already for next MATL release), I would have beaten Dennis' CJam answer!
 
10:16 PM
@LuisMendo (consulting handy MATL reference chart)
okay, so you're effectively doing v2(1:numel(v1)) = v1, right?
I agree, I think that's short enough. I've seen a few code golf challenges and SO questions where a shorthand version of that would have been useful
 
@beaker Yes, that's the exact Matlab translation
 
10:57 PM
Interesting, Gnovice has been online a minute ago, but hasn't answered any questions since 25 September
 
@Adriaan lol:D
I'm glad you're making good use of your time;)
 

« first day (208 days earlier)      last day (3013 days later) »