« first day (175 days earlier)      last day (3277 days later) » 
00:00 - 23:0023:00 - 00:00

00:02
@AndrasDeak :-DDD
Ahh @LuisMendo 44 bytes for the card pair counting!! :P I don't understand how Pyth is so short though...
Time to sleep, guys. Good night:)
@David It always is :-( :-D
@AndrasDeak G'night!
@David I think I can make it shorter by appending a flipped version of the array, with a 0 in between to avoid false positives. That way I only check one string, not two. BTW, this exploits the fact that strfind works with numbers :-)
strfind works with numbers??
Well that is useful information!!
@AndrasDeak I got my spectacles, finally!
and got 11 hats, thus specialist hatman
00:16
@Adriaan congrats:D
@AndrasDeak go to bed, you idiot :P
you claimed to be going 15 minutes ago
I'm about to:D
I just came here to put my laptop to sleep, but I got pinged:P
@AndrasDeak ping!
good night buddy
kthxbye
7
Q: Break out of proprietary toolbox after a given time

DelyleI am iterating through a large test matrix in MATLAB and calling second-party proprietary software (running in MATLAB) each time. I cannot edit the software source code. Sometimes, the software hangs, so I want to exit it after a certain amount of time and move on to the next iteration. In pseud...

that's plain evil.
Answering two times on a question with a bounty on it
00:31
@David Yes... it seems to be undocumented. However, if the first input is a cell array, it has to contain strings, not numeric vectors
Unfortunately it doesn't seem to help that puzzle though because I have to look for [0 1] and [1 0]
00:56
@David Yes, convolution is better here. That was clever!
01:21
@LuisMendo I wrote an explanation of my code and said "use randsample to get a random permutation of the vector 1:N*M, then thought to myself, that sounds silly! There's a function for that!
 
8 hours later…
09:46
@Adriaan I think the best solution is multithreading
@Dev-iL make an answer and go get that bounty :P
I'm trying something like that... If it works I'll post it
Does anyone know what the fan-hat-ic hat depicts?
It looks like the niece of the Flying Spaghetti Monster
@AndrasDeak won't get it :P
@Adriaan why? Too mainstream?:D
09:55
@AndrasDeak Maybe it's a necklace
@AndrasDeak nope. Wasn't online last weekend, and won't be at some point this week probably either
@Adriaan Oh:(
sorry to hear that
@Dev-iL could be...
@AndrasDeak at least I have my nerdglasses
< Check out this monstrosity (assuming the hat updated)
This baby Cthulhu fits well with my avater :D
10:37
@Dev-iL oooh, looks great!:D
 
3 hours later…
13:21
Hi, am stuck at this answer. I want to consider the distance also.
-1
Q: Least square distances

Abhishek BhatiaI have two ordered arrays of x(xcor) and y(ycor) values. Joining the first and last points gives a line. I want to compute the perpendicular distances of all points from this line. This is similar to least square distance. Is there a direct way to do this in matlab? Please also note that sign of ...

Please help if possible.
@Adriaan I can't get it to work...
13:55
assigning and eval in the same command
RIP my brain
assignin*
@LuisMendo How about an "implicit input" for MATL, e.g. when you call a function on an empty stack that requires at least one item in the stack, then automatically an input is requested?
PS: How would you go about doing something like for i=1:input('');...end; (I do not even need the counter variable i) but I have difficulty creating the 1:input('') vector.
(It is about this codegolf.stackexchange.com/a/67500/24877 challenge.)
Hi
What's up dillweeds?
Is it appropriate if I called my coworker gay for wanting to get an iphone
Is it worse that I said it loud enough that my other coworker who owns an iphone heard me
14:14
aaaand, thereś another Abishek bounty
@Ballbreaker Post this on Workplace SE and see what the consensus is.
I have an idea of what'll happen
-10 votes, Vote To Close.
lmao
I'll get such a mix of hatred and love
:D
the one upvote will be from me
You'll get people like me loving it
and then like 10k users being like "You can't say gay in this day and age, you faggot"
:D:D
14:16
"What are you, some kind of retard or something?"
lol
I won't lie I'm tempted to post it
But maybe from the overhearing coworkers perspective
@AbhishekBhatia Maybe we'll answer your question this time if you actually award someone a bounty and not let the system do it for you and only give half.
"So I heard my coworker make fun of a different coworker for wanting an iphone, saying that "only gaylords get iphones". I don't know what to do, I have an iphone. Do I lord over the gays?"
lmao
I think people would think I was trolling haha
Might even be worth the loss of reputation..
:D
You could maybe make a burn account
and see how that goes :D
14:19
hahahah it would probably be closed even faster though
at least people would think I was being partly serious by using my real one
lmao
The best part would be, if I feigned being confused once the downvotes started rolling in
"I don't understand why this is getting such negative feedback"
Lol damn, I want to do this, but I'm thinking it might not be good
@Ballbreaker I think you owe us a lecture from yesterday
lmao
"Alright Sharron, shut yer fuckin mouth and we'll start this lecture"
But seriously, I'll need a coffee cigarette and poop first if you weren't kidding lol
@rayryeng Sure, in recent times I am guilty of no follow through later.
14:39
Don't understand the surge of downvotes after the bounty.
@AbhishekBhatia I'm just pointing out what I've seen
point taken.
@AbhishekBhatia I didn't down vote. I didn't up vote either. The question is an interesting one though.
However I don't understand how the answer by Jonas isn't what you're looking for.
It is the correct answer, but I unable to accept due to exclusion of signed distance.
I was hoping he will update it and I will accept it. But am unable to reach him in the comments. Thus, as a final attempt I put a bounty on it.
It's not difficult to include the sign. You have the equation of the line right? Simply substitute the horizontal coordinate into the line and see where the output y value is with respect to the point in question.
If the output is smaller than the vertical coordinate of the test point, assign it a positive distance and negative otherwise.
Jonas also wrote this comment too, which is also valid.
@AbhishekBhatia: augment perpendicularVector and acParallelVector with a column of zeros, take the cross product (cross) and look at the sign of the third column of the result.
15:03
cross([perpendicularVector,zeros(size(perpendicularVector,1),1)],[acParallelVect‌​or,zeros(size(acParallelVector,1),1)]) ?
15:33
@AbhishekBhatia I'm pretty sure that if nagging Jonas in the comments didn't help, then a bounty won't help either.
especially that I don't think you get a notification for a bounty being assigned to a question you answered
@rayryeng way to go in making it appear that the following line is yours:D
If you post a link to a comment, it gets oneboxed nicely
Like so:
@AbhishekBhatia: augment perpendicularVector and acParallelVector with a column of zeros, take the cross product (cross) and look at the sign of the third column of the result. — Jonas Dec 2 at 7:52
@LuisMendo Just another suggestion that popped into my mind (not sure yet whether actually that useful, but I thought I just post it here.) Create a command that iterates an argument n times throu a function,e.g. iterate(f,x,n) would execute f(f(f(f(...f(x)...)))) (n times)
@flawr I'd love to use that on
from
In mathematics, Knuth's up-arrow notation is a method of notation for very large integers, introduced by Donald Knuth in 1976. It is closely related to the Ackermann function and especially to the hyperoperation sequence. The idea is based on the fact that multiplication can be viewed as iterated addition and exponentiation as iterated multiplication. Continuing in this manner leads to iterated exponentiation (tetration) and to the remainder of the hyperoperation sequence, which is commonly denoted using Knuth arrow notation. == Introduction == The ordinary arithmetical operations of addition,...
@AndrasDeak This reminds me too much of spin notation haha
(can't remember the real name of it right now)
Is it bra ket notation I'm thinking of
@ray is it just me, or is linkedin becoming the new facebook.... motivational pictures w/ quotes, infographics, status', articles on bullshit..
15:57
@Adriaan another bounty without a single line of code... smh
@flawr implicit input sounds interesting. it would be a nightmare to debug in a general programming language, but for code golf, it's one less byte :D
16:25
@Ballbreaker lol
bra-ket's the shit
don't you say anything bad about it
It even makes linear algebra palatable
brb
re
I weeded out my firefox tabs. 745 tabs less (+- 10):DD
2.6GB -> 5.6GB free RAM on standby
@Adriaan ^
I feel much better already
And the bejgli is in the oven:
The poppy seed roll is a pastry consisting of a roll of sweet yeast bread (a viennoiserie) with a dense, rich, bittersweet filling of poppy seed. An alternative filling is a paste of minced walnuts, making it a walnut roll. It is popular in parts of Central Europe and Eastern Europe. It is commonly eaten at Christmas and Easter time. It is traditional in several cuisines, including Austrian (Mohnkuchen or Mohnstriezel), Bosnian cuisine (makovnjača), Croatian (makovnjača), Czech (makový závin), Danish (wienerbrød (Vienna bread): [ˈʋiːˀnɔˌbʁœːˀð]), Hungarian (mákos bejgli), Latvian (magonmaizite...
16:50
@AndrasDeak Who the hell would EVER need that many tabs open
I mean, unless you're looking at pr0n JPEGs
Do you ever turn your computer off? lol
@Ballbreaker 51 days uptime:D
Why not?
laptop goes to sleep at night
I always have a bunch of pdf's open for work
and I'm lazy to keep track of them
it's easier to keep everything on
I don't know, I've always been a believer of turning things off when I'm done with them
Maybe it's just a personal preference
@Ballbreaker well, 1. I'm not done with them, and 2. I don't use windows so I can afford not to turn it off:P
I had a bunch of debugging, imdb, scientific and stack overflow tabs open
I've still left like a dozen SO tabs
questions for which I expect an accept/reply/delete
fellow users have a bad habit of not pinging who they're talking to
17:03
I don't know man. I'm just more organized I guess
I suppose it just comes down to what you're used to
yeah, my desk is also full of crap
I like to tidy things up frequently, and come to a firm conclusion (close everything, keep things in folders, etc)
I mean, archaeologic-level crap, before the missus moved in:D
I had a biology experiment from 8th grade when I removed the crap at university
but the system worked: the useful and recent stuff were near the top of the heap:D
and I could even find stuff buried below, when I knew they were there
17:10
hahaha
hoarder
@Ballbreaker not really, I can throw out all the useless crap if I can get myself to work that much:D
and I don't classify most of my crap as "useful"
heh
I find it easy to discard material or sentimental items
but to a lowly by-stander my approach might indeed seem less organized:P
@Ballbreaker I'm not sure you're able to comprehend the concept of sentiments.
:D
@AndrasDeak I'm not the most sentimental person
I'm nostalgic as fuck, but sentimental.. not as much
Something I would never throw away is music
I realize that they can be tied together
I suppose I'm less nostalgic/sentimental about items is what I'm trying to say
@Ballbreaker yeah I get it
but you can still be a droid and enjoy music a lot
So I don't see any contradiction
17:16
hahaha
I tie a lot of memories to music is why
I am indeed the droid you're looking for
17:41
well fuck me sideways, a third answer of the same bloody guy on a single question
7
Q: Break out of proprietary toolbox after a given time

DelyleI am iterating through a large test matrix in MATLAB and calling second-party proprietary software (running in MATLAB) each time. I cannot edit the software source code. Sometimes, the software hangs, so I want to exit it after a certain amount of time and move on to the next iteration. In pseud...

fuck you sideways eh..
Lol jesus christ
1
Q: Colleagues make Fun of me , should i Ignore them or Answer them back?

softsoul22I work in a big team of 50+ people.The working culture of my company is very open and employees do not sit quietly, they make noise all day. People are mostly under 30 years. Even my managers don't mind it. I am a very soft spoken and a sensitive person. I have noticed that many of my Colleagues ...

Is this person 12
@Adriaan Hey, if there are 3 ways to do it, why not?
You know what, nevermind. lmao
@AndrasDeak again I'm on mobile. I have limited powers here.
When I copied and pasted it didn't box in the comment.
I can always stop coming here and can come back in the new year if that's preferable.
17:58
Hey now
Don't take Andras' stupidity personally :)
@Ballbreaker I think you shouldn't underestimate the social akwardness some people are sometimes facing on issues little to our eyes ;)
@HamtaroWarrior You know what, fair enough. I think my comment summed up my feelings on that pretty well
Judging by the way you wrote your post, and your username, this might not be a real option.. but you could always try teasing them back. I'm sorry to say it, but the world is not a bubblegum, rainbow world. People are going to tease you inside and outside of the work place. My suggestion here would be to thicken your skin. From what you said it's hard to say if it's personal or not, or what the context of the teasing is, so it might be harder to "roll with the punches" depending on how personal it is. — Ballbreaker 19 mins ago
@Ballbreaker your comment is quite right about this. But my point is that it is not a 12 year old problem only
@HamtaroWarrior Yeah, no I understand that hehehe
I only said that because to me, it's how someone younger and inexperienced in life would handle the situation
@Ballbreaker yeah I think you're onto something about LinkedIn. I'm keeping a closer eye on activity there because of my company's stability.
18:08
@rayryeng It probably depends who you have as a connection too, some people are way worse thhan others
@Ballbreaker lmao no kidding. I'm following Sir Richard Branson. The guy is a glutton for attention.
He might as well have a Facebook account. I think he already does.
@rayryeng oh, I see
@rayryeng sorry, I didn't want to make you... butthurt is the right word?:P
but seriously, I was just teasing you, don't go:)
although you could watch SO with a desktop user agent, if you really wanted to;D
or are you using the app?
Hahaha
18:23
@Ballbreaker at times like these I'm very happy that "practical joking" is not a thing here
Otherwise I'd probably have a criminal record by now
I dont think the OP understands what I prank is
I'm pretty sure he's just being bullied/teased and doesn't know how to handle it
@Ballbreaker he could also be pranked, it doesn't make a difference if he's not into it
unsolicited pranking is indistinguishable from bullying
@rayryeng oh and I hope your limited powers still include Mjölnir;)
19:07
@AndrasDeak Yeah true, but I wouldn't call pranking as being teased
The definitions are not the same
those dreaded words in response to your answer... "awesome... can you just help me more?"
Welcome to human investing lol
You might as well help him more, you already did it once.. right?
told him to open a new question ;)
Ahh yes. Might as well get rep for it right
he already accepted my first answer
and the new question will require significant changes to the code
19:20
Makes sense
posted on December 23, 2015 by Loren Shure

Well, it's about that time. What time? It turns out that this is my 400th post. In 10 years! It's been a lot of fun for me; and I hope you've learnd a lot. So time to talk about time again.... read more >>

@Ballbreaker hmm...investing in humans might be a good idea. Cheap soylent green
19:56
@AndrasDeak LOL... and after all that I ended up giving him the updated code
@beaker You were already too invested!
The perils of SO
20:13
posted on December 23, 2015 by Yair Altman

Matlab Desktop shortcuts can be programmatically accessed and customized. Related posts:Customizing menu items part 3 Matlab menu items can easily display custom icons, using just a tiny bit of Java magic powder. ...JMI wrapper – local MatlabControl part 1 MatlabControl is an open-source wrapper of JMI that allows an easy and documented way to communicate from Java to Matlab. This article

@AndrasDeak Let's hook them up to a matrix computer!
20:27
oh my god
412
Q: How should I deal with an employee who has slept with my wife?

Waiter JohnI'm the owner of a business with about 30-40 employees. Recently, I found out that one of my employees has been having an affair with my wife. The employee has worked for me for 4 years. I felt like I was his mentor, since I recruited straight from university, taught him the ropes, and promoted h...

lmao
Wow haha scary
@Ballbreaker busted, are you?
21:05
@AndrasDeak I was hoping you wouldn't connect the dots..
lmfao
36
Q: Jokingly told my boss "I quit" on April Fools, and I think I just got fired

enderlandI jokingly told my manager "I quit" via email (it was longer than that) as an April Fools joke. We get along pretty well normally. Well, it seems my joke was taken a bit too seriously as I just got an automated email from HR with checkout procedures and an invite to a few "checkout" meetings la...

hahahahahahahah
@Adriaan I've found some bad news for you:
8
Q: More on using i and j as variables in Matlab: speed

Luis MendoThe Matlab documentation says that For speed and improved robustness, you can replace complex i and j by 1i. For example, instead of using a = i; use a = 1i; The robustness part is clear, as there might be variables called i or j. However, as for speed, I have made a simple test in...

@Ballbreaker serves them right:D
the accepted answer is perfect
Gaaah, an april fools' joke about april fools? That belongs on meta. — thejh Apr 1 '13 at 20:37
The Q seems to be extracted directly from Dilbert, but I've just joined The Workplace so I could upvote this A ;) Excellent selection of reading material! — brasofilo Apr 9 '13 at 18:00
@AndrasDeak Hahahaha yeah I loved it
explains a bit
I'm reading through the linked posts now
lol, OP is a mod now
21:20
hahahahahha I know
I'm so amused by this
This one's really good
10
Q: How should I deal with being slapped at work?

Warren van RooyenAfter arriving back at the office from a work party, a young woman, who was drunk at the time, slapped me following a comment I made. There were no witnesses willing to support my story or security cameras in that area of the building. The witness didn't support my story because he slapped me...

The second answer is perfect
I've just read that one
The question's revision history is insane
hahahahah ayeah
I love when he talks about the anguish he's facing from it
Well he was harassed by HR if I understood correctly
facing 2 people lying about the event
Yeah it wouldn't be a fun situation
Then again lol... I dunno man
Seems like he kind of deserved it in some ways
though I guess he started it
21:28
should have just taken the slap and moved on
neither the woman nor the other guy could've flagged themselves
I didn't bother to read all through it, but I don't think HR is the right answer
No haha
The guy ended up telling a manager the situation saying "I don't want to work with her anymore"
which blew up into the HR ordeal
oh, LOL:D
good manager outsources the problems
hahahaha
@rayryeng regarding the "complex numbers' relation" question: I think OP also wants to know "what's the relation between a=1+i and b=1+2i, since all of a==b, a<b, a>b are false :O"
so I'm not sure they will be satisfied with the dupe (but their question is stupid, so doesn't really matter, I just thought I'd explain what they don't get:D)
21:45
@Ballbreaker Boss is onto you, huh?
@Ballbreaker @AndrasDeak did you see the question linked in the comment to this question?
@Dev-iL Lmao yeah that one was jokes
I've slapped my coworker before
but we're buddies so its fine
He's slapped me too
22:03
@andras I got myself into some trouble here.. oh boy hahahaha. I won't go into details, but let's say con is aggravating me to get her to meet up with dom. lmfao
I'm afraid I might cause world war 3 with this one
@Ballbreaker LOL
I'd be worried that I'd end up with my wang up my butt, if I were you
Guys - question. Suppose I have some script which accepts an input and then returns the input with the lower precision that was actually used (I give it a `double` but it has a `float` inside, proabably). Few examples:
675E-6 => 6.747999577783048E-4
1350E-6 => 0.001349800033495

What could be the "precision-lowering-algorithm" ?
If I do `cast(cast(1350E-6,'single'),'double')` I get 0.001350000035018
@AndrasDeak Hahahahahhaa yeah, this situation is hilariously worrisome
So there must also be some rounding somewhere
Oh now I see that the script actually expects ULONG somehow
@Dev-iL isn't ULONG an integer type?
and are you sure the script only performs some rounding, and nothing else?
22:19
Yeah I am just confused because the documentation doesn't mention a "setFloat" method, but a method like that is used in an example! :[
@Dev-iL undocumented method?:P
Per-definition
maybe some custom-size float?
2 bytes?:D
C single precision
but you said that's not it, is it?
22:20
I have my own documentation that reveals the true nature of the beast
I'm not sure I get your question then
ok so I input some double value into a COM object that accepts single. Then I retreive the value that was actually set, and I get something strange, and I want to figure out how they get it
OK
so there shouldn't be anything computed? some normalization or whatever?
just pure set then get?
well we're talking about hardware, which is a bit unpredictable
there is some rounding down that takes place
to a multiple of something I suspect
have you tried comparing the difference between actual and expected to eps(something)?
and don't forget that your input isn't exact either
there's misrepresentation already when you input
then casting
and do C and matlab represent floats the same way?
that error you get is HUGE
22:25
What I actually input is a value that looks like "1350" and what I get back is this value multiplied by 1E-6 and converted back and forth, possibly rounded in the process
Let's say that for practical purposes this difference is meaningless
what's the closest power of 2 to 1E-6?
ok so 2^20 (to the inverse)
@Dev-iL well that makes a huge difference
I guess...
but I'm horribly unfamiliar with machine precision:)
if the script throws around magnitudes, I could imagine some loss of precision along the way
if for some reason it would divide by a huge number, you could get errors this large
1350/2^20 = 0.001287460327148 => too low for what comes out
yup
I think you should sweep over a range of input values, then plot the difference and see if you recognize a pattern:)
oooh ok so:
double(single(2E-7)*single(1350/0.2-1)) => 0.001349800033495
That's mystery #1
22:51
double(single(2E-9)*single(675/0.002-100)) => 6.747999577783048e-04
That's mystery #2... See any pattern?
this is {my reconstruction of} what happens internally to obtain the numbers in the examples
does that make any sense?
@AndrasDeak that's what I asked :D
22:53
I need some floating point expert
I don't get the "-1" and "-100" bits
probably some rounding
when the input number is smaller, the "error" is smaller as well, because you have more precision bits available in the mantissa
I guess
the -1 and -100 correspond to E-7 and E-9 somehow (they cancel out)
00:00 - 23:0023:00 - 00:00

« first day (175 days earlier)      last day (3277 days later) »