« first day (659 days earlier)      last day (2584 days later) » 

6:28 AM
@gnovice Haha, nice trick :)
 
 
3 hours later…
9:29 AM
>> cos(1/1.3)
ans =
    0.7184
>> cosd(1/1.3)
ans =
    0.9999
am I bonkus? 0.7rad is somewhere like 41 degrees...
I guess you can't use cosd to directly give you the angle in degrees.
 
@Adriaan rad2deg
 
@SardarUsama or *180/pi:p
 
sure, but i didn't get what you were trying
0.7184 is not the angle in your example btw.
1/1.3 is
 
9:48 AM
I might have missed a ^(-1) in the formula in that case, because it should be an angle
 
You mean acos ?
cos(1/1.3)^(-1) ≠ acos(1/1.3)
 
I know
but in maths it's usually written as `cos^(-1)(1/1.2)
\o/ serial downvoter on me :D
@loki thanks for the six downvotes you gave me on my answers. Do realise these will be reverted tonight at 03:00 UTC and you'll simply get a note from a moderator telling you not to do that. — Adriaan 56 secs ago
#MakingFriends
 
 
4 hours later…
1:44 PM
@Adriaan I've had a few serial downvoters in my time.
For many different reasons... from leaving a constructive comment that offends them... to VTC their question lol
@Adriaan ahhh that must have been a great match then!
 
@rayryeng tonight again; they play NL-Japan in another city now. On Sunday for the third time, but then in Belfast on the World Champs for group I-B
 
wow.
I'm sure they'll get sick of each other before then :P
 
probably.
 
2:02 PM
@Adriaan that is most definitely not helpful
 
@AndrasDeak wasn't meant to be
@AndrasDeak First sentence definitely is; the latter I consider to be a comment. Together, not sure.
left the auto-comment for link-only answer w/o flagging
 
I mean, I know you like grinding your balls in the face of others, but one of these comments of yours will make a person take the objective seriously, and fire up some sock accounts that downvote you one at a time scattered along days
I'm not sure it's worth purposefully antagonizing malicious users
 
I could've been a bit more tactful, agreed, but the main message is that it's pointless to serially vote, as it will be reversed. All I can do is hope that (s)he's too stupid to realise one can make socks.
(All socks'd need to go to 115 rep and keep earning rep, since I barely have questions to DV)
 
To downvote you'd need 150 rep.
BTW, someone from Math SE got busted for serially making many sock puppets.
Even worse than user natan.
gotta find him... can't remember his name
 
I can never understand high-rep abusers
 
2:14 PM
I can understand me trying to sock my way with the last 750 rep to 10k, but there's indeed not much of a point socking yourself to tens of thousands of rep
 
Soooooo I just turned down a job offer that had all but been officially signed because one came through at the last minute. Now I feel like a dick
 
@Suever lol what?
and is this other one better than the other job offer?
 
Wow! Don't feel like a dick, it wasn't signed. Do you have probation in the US? If so, it would even be non-dick to leave during that. Right?
(important word addition in edit)
oops, probation is a criminal thing:D
 
what I meant is a fixed time interval (here it's 3 months) during which both parties can discontinue the employment arrangement (applies to non-fixed-term employment contracts)
 
2:18 PM
If you see all of his recent answers, the questions were given by accounts that are no longer there.
 
> I am a high school student intending to pursue pure mathematics.
nuff said
 
hahaha :D
he has a lot of time on his hands. Many of his answers come from OPs who have been removed.
 
@rayryeng India. Point proven.
 
Not everyone from India is bad. What about Avinash Raj?
Or our recently elected moderator? :D Bhangrav Rao?
ooooook
 
Yes the new offer is a Software Engineer role whereas the previous one was more data analytics
 
2:20 PM
Yea, good point. My thesis supervisor is from India.
 
Better team and cooler work
 
there's just a buttload of users from there altogether, plus power distance
 
seeing India anywhere on SE just triggers all spam alarm bells in my head, as almost all spam comes from there
 
@Suever Yeah I see you as a person who's more interested in implementation than research. You've done that enough already
 
looking for a specific SE-related post
 
2:21 PM
@AndrasDeak lmao
 
And yes there is a probation period of 6 months so I can legally do it, but I asked a lot of them during the process
@rayryeng Yea and research is a natural part of any job that you'll get if you want
I don't need a job explicitly for that
Also, I ultimately wanted to go the software route and the other job was more of a "pivot" that would take 2 years
This way I just jump straight to what I want to do
Still difficult though because the previous company's CEO is my buddy :(
 
1 message moved to Trash can
too many brain farts on that sentence
 
@Suever It's really tough working for a friend dude. I know I've been there.
 
Also you guys will likely benefit as I'll become more of a consumer of SO rather than a contributor because 1) I need to brush up on my Ruby and 2) I'll hopefully love my job so much that I won't spend all day on SO answering questions.
 
the second last job I had... I worked for a buddy of mine... for about 2 months. It was a transition job.
 
2:24 PM
@rayryeng the user you mentioned also had -140 rep from a deleted user in March. I'm surprised they're only suspended for a week now
 
Yea I think that's another reason why this is a good move. I just got out of one of those situations in PA (working for a friend) and it'll be good to have something a little different
 
@AndrasDeak I'm surprised that's all they caught. There are at least 20 different users whose accounts were removed from those he answered.
 
because the accepts are there
reverted rep is only from upvotes
1-rep socks can't upvote
 
booooooo
 
Also I can take the subway to my job :) (Which is so rare in Atlanta)
 
2:26 PM
@Suever He severely underpaid me, but I didn't have a choice as I didn't have anything lined up. It was a job where I was an algorithms developer for some software in digital pathology.
 
Also, there was another road issue in Atlanta today fox5atlanta.com/news/246921845-story
 
I was basically bored. He underutilized me so I started slacking... he took that as me being distracted... which yeah I suppose he was right to a point
 
@Suever hope you'll get out of it sane and unstressed
 
@Suever oh, that's where they're voting in a democrat on a 40 year old republican seat right?
 
but when I found Bubl (previous job), I resigned immediately.
That's how our friendship dissolved. He was pretty pissed off and let me go immediately... didn't let me finish my two weeks.
I haven't spoken to him since.
 
2:26 PM
@Adriaan Yes!
 
Although it has to go to a runoff :(
 
I didn't know the bubl thing was a friend-boss
 
@rayryeng Yea thankfully this guy isn't like my closest friend
 
no Bubl was through my supervisor. I didn't know these peeps before.
 
2:27 PM
I basically did his entire PhD for him
 
The one before Bubl was my friend-boss. The company's name is PathCore.
@Suever oh wow LOL
 
But I also am an extremely loyal person so turning my back on someone that I know is very painful
Even if it's toxic for me
 
I feel ya there
 
@AndrasDeak but yeah I haven't spoken to him in about 4 years. I left around December 2013. I was only employed for two months.
 
@Suever you've got to think of yourself, and this is no little thing
 
2:28 PM
Same with my relationships :D
 
so I found out from my supervisor that this friend-boss wants to reconcile and said he's sorry for treating me like a dick.
to which I said "If he wants to apologize to me, he can do it himself."
 
You're not even indebted to the guy; more like the opposite. So don't beat up yourself about it too much!
 
@Suever It's hard when you have a big heart for people you care about
 
@rayryeng +1
 
Using my supervisor as a conduit because he's too chicken shit to do it personally doesn't mean anything to me.
 
2:29 PM
watch out everyone, ballBreaker found a self help book!! :PPP
 
anyway @Suever I feel yeah man... but honestly, you have to look out for yourself.
 
Yup I have definitely come to learn that
 
Ask yourself what would happen if the situation was reversed... would he have any qualms leaving?
 
And I KNOW that this is a better job option
 
@AndrasDeak hehe I've always cared about people close to me, maybe a little too much for my own good...it's strangers idgaf about
brb meeting
 
2:30 PM
@ballBreaker have fun
 
The compensation is even a little less, so I wouldn't take it for any reason except that I think it's right
 
@ballBreaker I know:)
 
The answer is probably no. It's hard to see it this way, but every job is a business transaction... it has to be neutral... if you decide to leave, they should really respect your decision. You have to look out for yourself.
@Suever A buddy of mine recently got a job at Amazon... a Java developer. He did his PhD in image processing and was bored out of his skull.... he took a paycut to go back to be a post doc.
I'm not sure about what your situation is, but if you are able to, take the job that fulfills you more intellectually.
 
I couldn't sleep the last two nights so I actually wrote up a long letter explaining why I did what I did to make sure it was clear that it wasn't personal
 
he took a serious paycut. Almost half.
 
2:31 PM
So if actually reads it and realizes it was for me then he'll be fine
 
Resignation letters need to be as neutral as possible. You don't need to owe an explanation to anybody.
 
Also I needed to be honest because who wants an employee that doesn't 100% want to be there
That's not good for either party
 
It depends on your situation of course, but when I left my previous job.... I felt that I didn't owe them any explanation. You are more personally involved with the company so yeah that's different.
 
@rayryeng Well this is where the friendship side of things gets tricky. Oh well
It's for my own sanity
 
I understand.
 
2:32 PM
This way I can justify to myself that although I gave them shitty notice, I was honest with them and they can take it however they want
 
I think that's right
 
Well if that's how you did it... then you did your part in leaving in the most non-intrusive way possible.
and if they take offense to that, then it's their problem.
 
Yea. I try to do right (but often fail)
 
nah you're fine man.
0
Q: Color Code MatLab Histogram Based on a Condition of a 2x2 Matrix

Displayif I have a 2x2 Matrix such as 1 2 4 7 And I want to plot a histogram based on the condition that the diagonals should be the color green, and everything else except the diagonals should be red, how do I do that in Matlab. I have tried separating the 2x2 matrix into two different vectors rep...

What does this person want????
 
Also hats off to the new company, they got me an offer < 24 hours after an impromptu interview
The old company took 8 months to get me a written/signed offer
 
2:36 PM
nice.
My company took a little bit. They took two weeks but they were in the middle of interviewing other candidates.
 
they probably want you :P
 
Well so these guys had been interviewing since December for this position
And they are exactly the type of company I want to work for. Interview was more like a PhD qualifier (i.e. can you think through an unfamiliar problem) rather than just wrote memorization of programming trivia
They did have one question about finding the number of elements in an array that sum to k
And they said I could do it however I wanted
np.count_nonzero((data + data.T) == k)
But then I told them that was cheating and went through the normal way
It is amazing how working with matrices your entire life makes you think about stuff comletely differently
Like writing out for loops was painful
 
3:03 PM
@Suever bahahaha that's awesome.
That only considers pairs of elements right?
 
@rayryeng it will indeed
 
I interpreted that question to be any number of elements satisfying the sum.
Because if that is, then that's an intractable problem. NP Hard.
 
@rayryeng Yea so I tried to clarify that with them and they didn't really have a preference
they were more interested in how I got to the answer rather than the answer itself
When I talked about dimension broadcasting to create a matrix they were like "OHHHH"
Apparently hadn't thought about it that way before
 
hahahaha, love it.
when you teach the interviewer something
 
Yea and that is good because it's always good to have some new ideas and approaches on a team
I'm sure I'll learn a metric shit ton from them but maybe they'll learn something from me
 
3:18 PM
@Suever is that more or less than an imperial shit ton?
 
@Suever I've also taught the guys here a thing or two as well.
 
Just a different mindset
 
These developers before I came had the distinct impression that MATLAB was slow.
then when I introduced them to vectorized code, some of my MATLAB code was even faster than their C++ implementation
 
So I accept job offer this morning. Already have an email, Slack access, and a reading list
 
Basically what they wanted to do was accumarray.
nice. They're on the ball.
 
3:21 PM
@rayryeng That is some advanced MATLAB right there
I didn't know about accumarray until I hung out here
Now old code that doesn't use it makes me cringe
 
@Suever Me too actually.
I learned accumarray through gnovice and also from Loren Shure from her post in 2008.
then to test to see if I really know how to use it... it was that mutual information answer I gave.
and since then, accumarray and I have been good friends.
 
I still can't make accumarray output a table...
not that it's relevant now, as I haven't been at the company I wrote that code for for over a year
 
@Adriaan Like an actual table (stupid abstraction) or a 2D output?
 
2D
 
You have to output a cell array and then cat it
 
3:24 PM
2
Q: Letting accumarray ouput a table

AdriaanAccumarray uses two rows of indices to create a matrix with elements on the location of valid index pairs with a value assigned by the specified function, e.g.: A = [11:20]; B = flipud([11:20]); C = 1:10; datamatrix = accumarray([A B],C); This way datamatrix will be a 20x20 matrix with value...

Shai's answer doesn't work; it's an interesting approach, but the order of elements is all screwed up and it's slower than the original as well
 
@Adriaan Oh interesting
 
I guess the question could benefit from some retagging and possibly rewording, but I'm no longer invested in finding an answer as I already fixed the code another way (I already no longer remember how)
 
Also just found out that they pay for my unlimited subway pass. Yessssss
 
nice.
@Suever May I ask what company this is?
 
@Suever subway as in: the underground or the sandwich company?
 
3:32 PM
@rayryeng abs(texturedata) would be safer, IMO.
 
@SardarUsama noted.
@SardarUsama I said real because you don't know where the data is coming from. For example, if it's the inverse of the FFT, then you shouldn't factor the complex residuals into the solution.
You cannot assume. That's why I left it as real, but I can add that into my answer.
 
3:47 PM
@rayryeng Oh yea, good question. rigor.com
@Adriaan Yes the train that runs somewhat underground
Here it's above ground like 80% of the time
It is very useless in general because it doesn't hit most of the city
But if you get luck and live and work near stations, you're golden
 
@Suever as does it in Amsterdam
 
LOL... we have 1 underground station. But then they don't call it a subway, so I guess that's okay. :)
 
We all just say "MARTA" and it's implied what is meant
 
In Amsterdam there's a very wide tram network, and metro is sort-of different
 
Funny story though, so there's the gold line that goes up to the northeast. Initially it was the yellow line but people got offended because that's where the majority of the Asian population lives...
 
3:52 PM
mainly in that it goes underground in the centre and that it has it own track, instead of sharing the road with the rest of the traffic
@rayryeng ijshockeynederland.nl/gamecenter game starts in 2 hours if you want to watch :p
 
@Suever our subway system sucks. Let me show you the map.
It's the most pitiful system ever made
 
@rayryeng Their comment clarifies everything:
So, in this 2x2 matrix I want to somehow overlay in different colours the frequency of the values. So, each bar of the histogram in the diagonal (i.e. 1/7) should be the colour green, the rest of the bars should be red. This means somehow overlaying a bar on another bar. For example, say I have 7 instead of 2, then I'd have to somehow show that it had one value that was red/ the other green. Honestly, I think this sort of data I want to represent is better suited to a scatter plot but my supervisor wants a histogram — Display 9 mins ago
o_O
 
poor excuse of a subway system
@beaker I have absolutely no idea wtf that means.
 
@rayryeng But I've used it to get around!
 
LOL
 
3:56 PM
@Adriaan :(... in 2 hours, I'm attending a webinar from MathWorks
 
It seems to get to many of the touristy places at least
 
Their Deep Learning webinar.
 
Keep the damn tourists off the road
 
@rayryeng I doubt you'll miss much :P
 
@rayryeng ooh cool, that sounds like fun :D
 
3:59 PM
@beaker I don't even know where to begin.
 
@rayryeng You notice I haven't responded to them... I got no clue. ;)
 
@Display I have absolutely no idea what it is you're asking. Would it be possible for you to actually draw out a real example? You don't need code as I'm not even sure where I'd begin to implement. Please illustrate with an actual graphical example. — rayryeng 6 secs ago
 
I mean, what does a histogram of a 2x2 matrix even show?
Technically it can be plotted, but what does it tell you practically?
 
I don't even think they're using the right terms... I don't think histogram is what they're looking for.
 
4:24 PM
@Adriaan I think I have a better answer for you. Incoming...
 
@gnovice :D:D
 
@Adriaan: There you go...
0
A: Letting accumarray ouput a table

gnoviceYou can first use unique with the 'rows' option to find the indices of the unique pairs of X and Y coordinates, then instead use those indices as the subscript input in your calls to accumarray (you'll have to call it separately for each column, since accumarray doesn't handle matrix inputs): [x...

 
@gnovice I noticed. Lemme check
as I said: I haven't been at the company employing this code for over a year now, but for the sake of the question I'll see
ah, right, problem is: I don't have the full code to check whether the image is correct :D
basically this is "not reproducible" now, unless I ask my former boss for the code
 
@Adriaan Lol, well, it works for the example. I guess that's something. :)
 
4:40 PM
:D
I used this code on geospatial data, and I have to run a full area through it, to see whether any areas have been scrambled, as per Shai's answer. So appologies in advance, I simply can't see whether it's fully correct anymore >.<
 
 
1 hour later…
5:56 PM
you suck
 
God damn this man is a disgusting human being
 
6:15 PM
@ballBreaker How do those guys end up with such a perfectly tuned kick?
I also like how that's from an instructional video....as if you can learn anything from that apart from "I'm not that good"
 
@Suever lmao yeah exactly, I'm sure in the actual video (he's selling on his website, or whatever) he breaks it down slowly and goes through the parts individually
A lot of musicians do that..will put the whole playthrough up on youtube, then break it down in the instruction video
Also it's nuts how good recording artists are at tuning ..
 
6:35 PM
I don't think I've ever been happy with how I've gotten a kick drum to sound
 
Do you drum?
 
I used to all the time, yes
 
I had no idea
 
Since 6th grade, haven't really played much in the last 4 years because I haven't had the space to setup my set
 
I've gotten good kick drum sounds in the past 2 years, but snare ... fuck
 
6:37 PM
I've got an empty corner in my new apartment so it may be time to whip out the kit
 
Snare alludes me.. well the sound I managed to get in the past week is actually really nice
first good sounding snare in what... 8 years now
 
Yea too many different tensions to worry about
 
Yeah, good sounding snare is so dependant on the shell imo
 
And hopefully pick a tension that doesn't resonate every time you hit anything else
 
I've only had crappy aluminum shells
 
6:37 PM
Same
I'm actually tempted to sell my old premier kit and buy a completely new kit
 
My kit itself is I think over 30 years old now lol once I have money I'll save up for a proper one
^yeah same
 
I've got Zildjian A Customs so those should still be suitable
 
oh don't get me started on cymbals lmao
Such a money sink
 
Oh god, yes
I probably have 3 full sets
I used to ebay that shit all the time in undergrad
The shitty thing about live drums is that it's as much the venue as your gear
Whereas with a guitar you just crank that shit up to 11 and play
 
6:45 PM
@Suever lmao so true
But yeah, I need to get some cymbals again..
Kijiji is good for that too, not sure if you have it in the US
It's like craigslist but less sketchy
But yeah, I go through cymbals like no tomorrow, it's sooooo frustrating but I refuse to hit them lightly
 
Well I've only broken a handful but it's more just that there's always something nicer to buy
I pick expensive hobbies
Cycling is notoriously terrible for that exact same reason.
You could spend $10k on ONE wheel
 
posted on April 20, 2017 by Steve Eddins

Today I want to tackle a classic algorithm puzzle known as the Eight Queens Problem. In this problem, your task is to arrange eight queens on a chessboard so that none of the queens is attacking any of the others. Here is one solution.... read more >>

 
@Suever lool yeah I pick expensive ones as well
But shit eh, mail me some cymbals :p
I break them into shreds of metal lmao
 
I don't even remember what all I have, they're all at my parents'
 
I'm too cheap to buy new ones so I'll play them until they're dangerous
shrapnel flying all over the place
 
6:59 PM
Better wear eye protection
 
I once felt the breeze of a piece fly by me and embed itself 2 inches into the wall
I had a knick of it across my jugular vein
lmao, could have actually died by it
I try to learn my lesson where applicable..but you know.
but yeah I"ve heard biking is expensive
at least your expensive hobbies involve physical activity
 
7:36 PM
that last line coming from ballBreaker sounded really dirty
3
 
7:46 PM
hahaha
xD
 
 
1 hour later…
8:52 PM
For a MATLAB user, which language is easier to learn, python or c++ ?
 
python by far
 
yeah, I'd say python.
 
python+numpy is a good replacement for matlab functionality, and python's similarly high-level
consequently it's quicker to learn python too, I think
though you should sooner or later familiarize yourself with one of the more low-level languages, in the c++/java family
because they're just so much different from these other two
and you should be aware even if you learn python that it's pretty unique in many ways, and you shouldn't expect other languages to behave like python:)
 
I am currently using ROS (which uses python or C++ for coding). I have not used C++ in a very long while and I have to google for simple tasks.
So I was wondering if python is the way to go
 
you don't need to be fluent; I just meant it helps a lot to be generally aware of how declarations, compiling, pointers, perhaps classes work
my impression is that learning python first leaves you a bit handicapped when it comes to more traditional languages later
but I wouldn't know since I learned more traditional languages first
As someone who migrated from matlab to python: python's great:)
I find python+numpy more flexible than matlab, although this is a bit less true since matlab too has broadcasting now
 
9:00 PM
I'll try that
 
and a few of the guys here also know it
and there's a pretty active python room on SO, although it's much more formal than this room
so make sure to read the rules page since you're there now :P
 
haha :D
thanks for the tip
 
no worries
 
9:43 PM
@TroyHaskin (and anybody else) have you debugged fortran with gdb or something similar? I did that a few days ago, and first I thought that I had a mismatched function declaration vs call and my references were messed up, because a logical of mine was a 6-digit integer instead. Then it turned out that all my .true.-s were large integers, while my .false.-es were .false.-es when printed in gdb.
I was wondering if you knew anything about this; I'm somewhat lazy to look at the fortran standard
guess I could see whether gfortran does the same thing; this was ifort
weirdly when I assigned .true. to a logical inside gdb it stuck
 
11:17 PM
:-)
 

« first day (659 days earlier)      last day (2584 days later) »