« first day (148 days earlier)      last day (3065 days later) » 
00:00 - 19:0019:00 - 00:00

12:00 AM
Hahaha. Thanks! Well, bugs will keep showing...
Good night!
I think I should go to bed too
See you too, @rayryeng! Keep it up with the univ application!
 
oh :D ok
thanks very much. I'll keep you posted.
good night you both
 
Oh, maybe change room topic? The linked version is not current anymore. And I wouldn't want to seize the chat room topic :-)
 
ok :)
room topic changed to MATLAB and Octave: Room to discuss MATLAB and Octave related topics - i.imgur.com/EHAPP7J.gif [matlab] [octave]
Until we find a good quote for next time!
 
12:43 AM
I forgot to ping @beaker and @AnderBiguri! Check out the MATL compiler when you can
2 hours ago, by Luis Mendo
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:
Sorry if I'm forgetting anyone else! It's many of you who have showed interest in this... which is appreciated :-)
 
1:15 AM
8
Q: Count sums of two squares

xnorGiven a non-negative number n, output the number of ways to express n as the sum of two squares of integers n == a^2 + b^2 (OEIS A004018). Note that a and b can be positive, negative, or zero, and their order matters. Fewest bytes wins. For example, n=25 gives 12 because 25 can be expressed as ...

itX^Y]t0w-w2$;2^t!+=zD
Woohoo! 23 bytes!
And it would be a bit less with the unary minus operator. I removed it and now I think I should include it back. Maybe for the next update!
It's hard to beat Pyth :-( but at least it beats CJam :-)
Code with automatic comments (this is a compiler feature):
i       % input
t       % duplicate
X^      % square root
Y]      % round towards infinity
t       % duplicate
0       % number literal
w       % swap elements in stack
-       % subtraction (element-wise, singleton expansion)
w       % swap elements in stack
2       % number literal
$       % input specification
;       % vector of equally spaced values
2       % number literal
^       % array power (element-wise, singleton expansion)
t       % duplicate
!       % transpose
+       % addition (element-wise, singleton expansion)
Matlab equivalent code is
n=input('');m=fix(sqrt(n));m=(-m:m).^2;disp(nnz(bsxfun(@plus,m,m')==n))
 
 
7 hours later…
8:47 AM
Hi @AnderBiguri and @TroyHaskin
And @AndrasDeak
:)
 
Hi:)
 
Is there a way to flag a post on SO to tell mods it should go to math.SE ?
0
Q: 10 fold cross validation in matlab with 499 instances

XYZI am doing K-fold cross-validation with K=10 folds.and there i am getting one confusion matrix for each fold. When reporting the results, should I calculate what is the average confusion matrix, or just sum the confusion matrices to find overall accuracy of data set. if we find avg or sum how can...

 
Yup, custom flag
the "flag as off-topic to migrate" has very limited options
hmm
they won't migrate it for you
only very good questions get moved to sister sites
 
Yeah ok
 
most of these are denied
 
8:50 AM
So i just flag as too broad or off topic?
 
The concept is "don't move crap to other sites"
@BillBokeey yup
 
Hehe good concept indeed :)
 
I voted to close as too broad
 
Okay
Do you still see questions you haven't seen before by the way?
Seems to me that 99.9% of them are duplicates
^^
 
@LuisMendo how does "round towards infinity" correspond to "fix"?:)
@BillBokeey No, there's also a truckload of shitty "why this not work help plz" and "do my assignment plz" questions
otherwise yeah, you're right
I believe that if everyone would RTFM and google a bit, 90+% of SO questions would be gone
 
8:54 AM
This should be a S0 gold badge : Ask a new question :D
 
@LuisMendo nice! This looks difficul though...
@BillBokeey LOL. Yeah, Tehre are still time to time some good questions
well, like the one you self answered
 
Wowowoooo it's too early for flattery, didn't even take my first coffee of the day :D
 
9:48 AM
@AndrasDeak how'd your freshmen like your ODE?
 
@Adriaan I didn't dare to ask. But I gave a pretty smooth lecture.
And most of it was recap from the theoretical course, or whatever you call it in English
 
What do you teach them about ODE @AndrasDeak ? I remember a very nice course about ODE quantitative study I had at Uni :)
 
Experimental physics for physicists:) We just use them (ODEs that is).
Though I'd gladly teach (the physicists that is) them maths as well, but we have the mathematicians for that
 
In which university do you teach? (You don't have to answer if you don't want to eh)
 
10:02 AM
Budapest University of Technology and Economics
 
Hi @Dev-iL
 
"you probably never heard of it";)
hipster university
 
Hi Bill :)
 
Tried googling it - Got "top 10 university for hippies and hipsters" as a result :D
 
whut:D
ooooh, I see
:D
 
10:04 AM
Nice advertising! :D
 
@BillBokeey Sweden is chock full of hipsters, especially at universities
 
Oh Dear Sweden. Went there once. Them girls :O
 
you should see the Finns;)
Though it might be a matter of taste.
 
I heard that Danish women beat all
 
@AndrasDeak Yes. And your taste is horrible.
 
10:06 AM
@Dev-iL it's settled. We're going to live around the Baltic Sea
 
Do you have mechanics at your University? Might want to go there to em work
 
:D
 
@BillBokeey I've been meaning to ask...what exactly do you mean by "mechanics"?:)
mechanical engineering?
 
@AndrasDeak Bicycle repairing.
 
@Adriaan those rarely need applied mathematicians
 
10:07 AM
yes, i'm doing a PhD in a research lab in mechanical engineering ^^
 
Graviton collisions
 
@BillBokeey cool. Actually, my university advances in engineering, scientists like me are just impostors at one of the faculties;)
 
Huehue
 
We have a bunch of engineers: mechanical engineers, transport engineers, civil engineers, mechatronics guys
chemical engineers, bioengineers
all sorts of shit diverse studies
 
@AndrasDeak how adorable of you to differentiate "engineers" and "scientists"
 
10:08 AM
@AndrasDeak like those hammering rocks? :P
 
@Dev-iL *natural scientists:D
 
Engineers are also natural scientists ;)
 
are they?
They never told me:P
 
Mostly not
 
Looool
 
10:09 AM
@Adriaan no, no geology
 
I wouldn't let most engineers do engineering, let alone science
 
as I said, engineering+economics+maths/phys
 
The search results are even better if you search "Sweden hispter university" in google :D
 
@BillBokeey :D
 
"What's inside a swedish hipster winter market" :DD
 
10:11 AM
@BillBokeey - You better see the world before ISIS takes over
 
@AndrasDeak Your loss. It's the best department!
 
@Adriaan I'm sure it is.
 
We have lots of contacts with Misckolsj, or however you spell that :P
 
Miskolc, but I'll give you A for effort:P
Well, gotta go guys, see you later
 
@AndrasDeak send the credits to TU Delft, mention A.H. Visser 4202724, at least I'll see the credits :P
 
10:13 AM
Oh well, i saw a pretty funny french tweet after the recent attack (I'm french). It said " If going to bars, football games and concerts are a sign of protest, be careful terrorists because us French people are overtrained" :D @Dev-iL
 
@Adriaan you have a number? So lame. We have a 6-digit alphanumeric, like in prison (as I would assume)
 
@AndrasDeak we're engineers, we like numbers.
 
@BillBokeey :D not bad
@Adriaan you are? I thought you were rock-lovers
 
@AndrasDeak Our department is named "Geoscience and Engineering" :P
 
Oh ha!
paint something on a something and it's still a something something.
reeeeally gotta go now bye
 
10:19 AM
bye!
 
10:33 AM
cya Andras!
 
wait, you hguys wont let me do science ? :(
Im sad now
 
@AnderBiguri *András won't let you do science. He's a theoretical dick like Sheldon Cooper, which is why I am always the butt of his jokes :(
 
I will go to a corner and cry then. No more science for you guys! Hum!
 
I usually just cry cradling my rock collection. They are patient and understanding and do not ask stupid questions or belittle my studies
 
hahaha o damn, I should get a rock collection
 
10:42 AM
@AnderBiguri I usually get into trouble at airports/ferry terminals. My Geological hammer is considered a lethal weapon and I have a couple of piece which are radio active and/or very heavy metals. Airport scanners do not like a nice piece of cadmium ore :D
 
hahaha
and when they ask you why you carry that you answer: "hum... eh... for... science?"
 
We usually bring strange rocks to our mineralogy teacher, who has kept a few. Like a piece of Norwegian Fergussonite, which contained 45% Uranium :D
"not suitable for your bedside table"
 
hahaha
lol
isnt that dangerous?
 
@AnderBiguri Yes. Very.
that's why we keep it locked up in our mineralogy room :D
 
are ou being serious when you say you carry that thing with you?
 
10:45 AM
@AnderBiguri Yes. Found it during a hike on the Fjords north of Bergen. Did put it in my backpack though, not in my trouserpocket.
Good thing was that we went there by car, so no security checks for us :D
 
LOL.
I mean , I work with hihg radiation machine technology
I just havent seen a real one yet XD
I lie, I've seen one once ....
 
11:17 AM
Hi again
Erf.. Nobody here, seems like i'll actually have to work :D
 
11:38 AM
I was wondering if any of you guys creates "backwards" loops instead of preallocating
 
@Dev-iL I sometimes do.
 
I enjoy doing this more than I probably should :P
@Adriaan Why not? It could replace a lamp ;)
(If only radioactive materials would glow in the visible spectrum like they do in movies / games)
 
@Dev-iL it could replace your bed-urn (that thing with hot water to keep you warm in bed), since it is quite warm. You might grow extra testicles though as a side effect
 
@Adriaan Don't think I saw one of those since I was a child (if I understand what you're referring to)
 
@Dev-iL my mom uses them
 
11:48 AM
@Adriaan you can gift something like that to a person, instead of telling them to "grow a pair"
@AndrasDeak have to go, huh? :P
 
@AndrasDeak was that a wish for 5 testicles, or do you have 5 already?
 
I'm baaaack!:P
I was dusting my keyboard and I typed 5
and I mispressed enter instead of a backspace:D
would've been less conspicuous if I edited it to say "hi"
 
@AndrasDeak - you don't seem to self-answer enough - this should be improved.
 
@Dev-iL it's hard to self-answer when you don't have questions
And if I did have an answer, I probably wouldn't post it
 
11:55 AM
Come up with some esoteric problems then
 
@Dev-iL I believe there's enough crap on SO as it is:)
 
Have you seen the last project euler?
 
@AndrasDeak well then I dare you to get the tumbleweed badge ;)
 
Pretty fun :)
 
@BillBokeey people have too much time on their hands:P
 
11:58 AM
@AndrasDeak which is good, because then I do not have to do my own PDEs
 
Hehe
 
I remember convincing a friend of mine to create an SO account and post a question. He got tumbleweed on his 1st question :D :P
 
at least it wasn't downvoted:D
 
@AndrasDeak I managed to edit it in time ;)
 
@Dev-iL :D
I'm actually working on sportsmanship, but it's hard since my answers are so intimidating to others;))
 
12:00 PM
@AndrasDeak I'm not even halfway to Sportmanship :(
 
I put that badge to track how awful of a person I am... Don't think I'll get this in the foreseeable future :P
 
@Adriaan well me neither
but I won't be getting other badges soon either
 
I was on my way to getting the fanatic one but forgot to check SO one day after a big party :/ ....
 
@BillBokeey guess you're not a fanatic then
 
Yup.. An other possible cause is I like beer too much :D
 
12:08 PM
 
Haha :)
 
@Ballbreaker may I suggest a new avatar? ^^ ;)
 
uhm, I scored 90% on my electromagnetism course, but out of 167 students 36%(!) had the same or higher grade than me o.0
I guess the program director will tell the teacher off for making her exam way too easy
 
@Adriaan haha, cool:D
you're still 50%+, that's something:P
Damn, Randall Munroe went nuts again:
 
But 1/3 of the students getting 90+%, that's way too high. Even if you're a very, very, very, very good teacher I'd not expect more than some 10-15% in that category
@AndrasDeak the level is so infinite :o
 
12:27 PM
@Adriaan In my uni (it is rumored that) they would "normalize" the score distribution to be around 55 in such a case
A so-called "negative factor"
 
Do they do that also if the average is too low?
 
@Dev-iL I think they can't in our case. On your exam it displays the amount of obtainable points per question and sub-question even, and you can directly calculate it, i.e. all points = 90% of the score, with 10% "for free" (writing your name correctly it's called)
so if you make a question which constitutes of 25% of the total score without errors, you will get that 25% score, regardless of the other students
 
@BillBokeey - that's the more likely case, so yes. It is further rumored, that due to all these score normalizations it is possible to get a complex grade in an exam
 
Haha
 
@AndrasDeak I'm exactly midway Sportmanship now :p
 
12:29 PM
@Dev-iL I already see the math geeks trying to have a purely complex average
 
"Imaginary" you mean?
 
Yes Imaginary (English is making my brain fart)
 
It's actually not something to be proud of, because you'd need to get a negative final score in an exam for this to happen
@Adriaan - do you have exams where points are subtracted (possibly from points "earned" in other questions) for wrong answers?
i.e. I have multiple-choice questions: Answer correctly = get 4 points. Don't answer = get 0 points. Answer wrongly = get -1 points
 
@Dev-iL don't think so. On EM you were forced to put vector arrows correctly, put tildes on difference vectors, hats on unit vectors etc; if you forgot that points were subtracted, but only to 0 on that (sub-)question. So if you'd get 10 points for a question, messed 4 vector arrows each subtracting 2 points, you'd still get 2 points for the question. If you'd get 6 points however, you end up with 0 score for that question, but you can't go negative afaik.
Perhaps when writing a report and you use MS Word (God forbid) and mess up equations in that and have horrendous grammar you get so much points subtracted you end up with 0, but never negative
 
@Dev-iL we have physics for engineers courses like that
true/false, correct is +2, empty is 0, wrong is -1 points
 
12:40 PM
@AndrasDeak you and engineering physics? o.0
 
I only supervise and grade them:)
and it's not engineering physics, but indeed physics for engineers
usual EM
nothing engineerish about it
 
@AndrasDeak If there ain't a hammer involved, it ain't engineering.
@AndrasDeak so much fun this:
Self-gravity is the gravitational force exerted on a body, or a group of bodies, by the body(ies) that allows it/them to be held together. Self-gravity (self-gravitation) has important effects in the fields of astronomy, physics, seismology, geology, and oceanography. Self-gravity has important impacts in regard to the physical behavior on large scale (planet size or larger) objects, such as the oceans on Earth or the rings of Saturn. The equation to calculate the effects of self-gravitation were made exact by Lynden-Bell for the purpose of giving an exact description of models for rotating flattened...
 
is that so?
 
@MyUserName hello
 
12:49 PM
@AndrasDeak Yes. I tells you that if you do your pirouettes very fast, you'll get shorter and fatter :D
 
@Adriaan hard to eat pizza while spinning, so I don't believe you
 
@AndrasDeak You want a demonstration? :P
 
@MyUserName very specific profile you've got there:D
@Adriaan no thanks
 
1
A: Labelling scatter data points

horseshoeok now I got it: use set(gca,'SortMethod','childorder') I added an example below close all clear all name={'point1','point2','point3','point4','point5'}; co=[0 0 0]; X = repmat([1:10],1,10); Y = sort(repmat([1:10],1,10)); Z = X.*Y; X2 = repmat([1:10],10,1); Y2 = X2'; Z2 = X2.*Y2; figure hol...

this is so cool, why did I not know this!
 
interesting
although if you have text in matlab then you'd taken a wrong turn somewhere:P
 
1:08 PM
@AndrasDeak Well, it doesn't :-) But both work here
 
OK;)
 
1:46 PM
@Adriaan You don't play around with MATLAB enough
@AndrasDeak Which alternative do you suggest?
 
@Dev-iL probably tikZ/pgfplots;)
 
I was worried there for a second that you'd say annotation
 
Hi @LuisMendo !
 
2:03 PM
6 upvotes in a 'RTFM question
thats how so works
 
Unfortunately I'm somewhat angry right now, since I was asked by a friend to help find a bug in some code... And this code is abysmal (i j as loop variables with complex number computations; virtually no comments; 1-,2- and 3-character variable names that mean nothing to anybody who isn't the coder {and possibly nothing at all}; code duplication due to not using functions; and this list goes on)
And what's worse is this person refuses to acknowledge that there's anything wrong with their code, and I'm being blamed for not trying to solve the problem but rather commenting on how the code sho
 
people dont realise that wrong code often comes from wrong programming practices, not ust from a wrong equation
 
@AnderBiguri the problem is making such people acknowledge this simple fact
 
it is indeed dificult
unless you find some errors generated by that, and yo ushow them: see, you used xval for 4 diferent things, you could have saved loads of time by writting CubeXval_weigthed
 
I understand you so much on that @Dev-iL .. Doing the same thing at the moment :(
 
2:15 PM
@Dev-iL You could just abandon hope
Let these people sink into the abyss
 
Hi @Ballbreaker
 
@Ballbreaker "don't ask me for help until you do some major refactoring to your code"
 
Hehe
 
@BillBokeey Good morning
@Dev-iL Say this instead "Don't ask me for help until you take a good long look in the mirror, reflecting on your past life choices that led you up to this moment. This very moment, of posting this garbage on SO, and ask yourself 'Should I just give up? Or should I refactor my code?'"
Cut them deep!!
 
@Ballbreaker hehehe it wouldn't last long on SO
 
2:20 PM
hehe :) Would be funny though
If I read that, my jaw would probably drop
 
Oh lol, I meant the code I was looking at
 
Why did that dude accept the edit on this question? He removed relevant tags and claims to revise a misspelled title, but misspells it himself...
 
@Dev-iL lmao
 
People keep approving that edit... "Symbolic" is correct, "Symbolyc" is not. Neither is "Matlab" and A and B are definitely variables in that question. Man, this pisses me off
 
@Adriaan if I can tell you anything based on the conversation of the past 15 minutes, is that looking at what other people wrote is usually bad for your sanity
 
2:30 PM
Haha @Dev-iL !
 
@Dev-iL just go reject that edit, we can still beat the approvals...
then at least I do not have to roll it back
 
Can't vote for edits yet :/
Or can I?
 
@Adriaan done
 
@BillBokeey No. You need 2k rep for that
 
Erf, i don't think I can earn 1.225 rep while I can still make a difference on that post :D
 
2:32 PM
Don't worry. We need 1 more reject, and otherwise I'll just instantly rollback the edit
@BillBokeey is "Symbolic" spelled "Symbolyc" in French? Both approvals came from French speakers
 
It's "Symbolique" so pretty much the same as in English.
I think it's actually french stubborness that's illustrated there ;)
 
@BillBokeey stubbornness to misspell English and approve of anything that defaces that gorgeous language? :P
 
Yup it's pretty much like it
It has to fit the accent you know
:D
 
@Dev-iL it's rejected! Houraa!
 
gg!
 
2:55 PM
@AndrasDeak I watched an interview with the Eagles of Death Metal last night.. it was super heavy shit. Hearing their recount of the Paris shooting was messed up
 
3:42 PM
 
Looks like he's just about to slap her
 
@Ballbreaker but not with his dick, ANdrás-style
 
Such a shame..
 
4:07 PM
Looool
-1
Q: How to show the x and y coordinates of a matlab plot

programI have a matlab plot and I want to use the mouse to read the x and y coordinates of my plot .. Do you know any matlab command for showing x and y coordinates by clicking on the plot by mouse .. thank you

I love these guys
 
@BillBokeey Should be deleted. Just piles crap on the site
 
Yeah I know, I might have too much hope for people to edit their questions ..
What's funny, though, is that there is the answer on the link i gave him, he says it doesn't work, and then says he found the solution, which is the same than the one on the link I provided
I might have to build a facepalm machine in order to lose less energy in these situations
 
It's going to sound cynical, but my solution to these issues was to just stop using SO for the purpose of obtaining rep and helping people
I heard a good quote today that is somewhat relevant
 
@BillBokeey this is unedittble. It's in essence a crap question, however fancy you word it
 
I'm not even obtaining rep i'm answering dumb questions in comments ^^
(I think that's the saddest part :D
)
 
4:14 PM
"Don't argue with an idiot, because they will just bring you down to their level, and will win out of experience"
 
Nice one, i'll keep it somewhere @Ballbreaker
Hi @rayryeng
I don't have to gain rep anymore now that I have a proof that @rayryeng said :
xD
 
Hahaha
 
@BillBokeey you do know you can use the permalink on comments instead of making screenshots?
 
Good to know @Adriaan :) But if i used permalink how could I print it to display in my office :D
 
@BillBokeey as plain text, obviously
 
4:25 PM
Wait actually I don't know how to use the permalinks
Can you tell me how @Adriaan
 
@BillBokeey go to a comment -> click on the time, e.g. "4 hours ago", then your address bar will give you the permalink to the comment. Alternatively you could of course RMB on the time and click "copy link address"
 
Nice, thanks :)
 
4:57 PM
Gotta go now, have a nice day/evening guys :)
 
@BillBokeey lol
damn, marking computer graphics students: Some of them do not know how to draw a cube. Some of them create procedurally generated textures and plot them as faces of the cube
 
This is the result of a torrent search using the innocent query of "2160p"
 
because 2160p is the 5th topmost category in porn webpages. Everyone knows that
 
5:14 PM
What's the easiest way to get the folder path of the currently executing file? (this is not the same as cd)
This is what I currently have:
[pth,~] = dbstack('-completenames'); pth = pth.file(1:find(pth.file=='\',1,'last'));
 
5:35 PM
@Dev-iL use mfilename
Calling the function with no inputs will return the full path of the currently executing M file
You can also use mfilename('fullpath') to return the full path of the file.
@BillBokeey :D
 
6:32 PM
God I love this band ahaha
Cheers me up everytime
 
haha nice.
 
Classic nineties
 
6:49 PM
@Dev-iL screw them
 
@Dev-iL yes, forget about them. If they're not willing to change, don't waste your effort on them.
 
@AndrasDeak Only if they are attractive females
 
00:00 - 19:0019:00 - 00:00

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