« first day (251 days earlier)      last day (2992 days later) » 

6:01 PM
for i = 1:n_stairs
    eval(['str1 = {''Lead Stair Edge ' num2str(i) ''';''SE' num2str(i) '_LD''};']);
    eval(['str2 = {''Lead Front Tread ' num2str(i) ''';''SF' num2str(i) '_LD''};']);
    eval(['str3 = {''Trail Stair Edge ' num2str(i) ''';''SE' num2str(i) '_TL''};']);
    eval(['str4 = {''Trail Front Tread ' num2str(i) ''';''SF' num2str(i) '_TL''};']);
    eval(['str5 = {''Lead Stair Edge ' num2str(i) ''';''SE' num2str(i) '_LD''};']);
    eval(['str6 = {''Lead Stair Tread ' num2str(i) ''';''ST' num2str(i) '_LD''};']);
oh god
LOL
 
EW EW EW EW!
what happened to structures? lol
 
who knows
I was making something to process and compile my friend's thesis data
no wonder it was so slow...
 
hehehe
 
eval(['task_output.' struct_string1{ii} num2str(jj) '.' struct_string2{kk} ' = [];']);
there are the structures!
test = isempty(regexp(temp2(jj).name,'(IN|LAND|OUT)','match'));
if strcmp(temp2(jj).name,'SWING') == 1
    test = 1; % Catch bug with regexp the lazy way
end
this was only 3 years ago...
 
6:16 PM
eval('fprintf(''OMG a moron wrote me!'')')
4
 
eval('disp(sprintf(''%s'', ''OMG a moron wrote me!''));');
 
:D lol
 
@excaza wait, did you write that?
 
6:18 PM
yeah
 
lol:D
sorry
evals don't lie though
 
for i = 1 : 100
    eval(['str', num2str(i), ' = ''I AM A MORON'';');
end
 
this is what happens when you learn MATLAB as a "tool to get things done" instead of as a programming language
 
indeed!
 
Agreed!
 
6:19 PM
and when nobody tells you that eval=evil
I could imagine the same thing: "hey, this goto is neat, I don't have to use a big-ass if!"
still a carnal sin
 
I'm afraid to share my Python code with folks, I just put in some parallel processing and I'm not sure if it actually does anything :p
in parallel, that is, it definitely works
 
@excaza multiprocessing module?
 
yeah
 
I've done that recently
I'm a python noob, so you can share with me:)
have you timed it?
 
No, it was to give itself time to get read permissions for a monitored file without making other files wait
if you copy files into a folder it triggers when the file first starts writing, not when it's finished writing, so sometimes you get IO errors if Windows doesn't copy it fast enough
so I put in a timeout and also theoretically parallel processing but I'm not sure which one fixed the problem :p
 
6:36 PM
Girlfriend found a great song which I can point meta users to:
@ballBreaker ^
 
Has it anything to do with perfume spraying?
 
nope, much better
@excaza but with parallel you could still get a race condition, right?
if the spawned process still isn't fast enough
is it some asynchronous thingy?
 
each process waits for read access before parsing the data
I was thinking of just having a list of things that were finished reading but trying to figure out how to coordinate that just made my brain hurt
 
oh, I see
hmm
Well, you can still remove the timeout and see if it works. If they do wait for their own files, it should still work, right?
 
yeah, the problem is the files are so small that it's hard to replicate the error haha
programming is hard :(
 
6:44 PM
dummy large ones for testing?
as in DVD iso image?:D
 
stackoverflow.com/questions/35874973/… everything in this question is great
@AndrasDeak I'll probably concatenate one of the CSV files together a few dozen times
 
oh my God lol
 
@excaza that should do as well
 
hey Guys!
 
@Divakar OI
 
6:46 PM
if you were on linux, I'd tell you to dd if=/dev/zero of=tmpfile ...
 
Mr. Cloud Tag!
 
@Divakar hey!:)
how's it going?
 
That team thing looked interesting!
Going great, peeking in :)
 
Great :)
yeah I'd like to get one started... but we should probably have something we're working on :P
show people we aren't just around for fun... or are we?
 
@rayryeng syntax highlighting?
 
6:48 PM
OH
 
yeah
 
Well Since we have an Image Proc. Guru here in Ray, we can do some image processing projects that are vectorized?
 
that's a nice crusade, keeps us occupied for years to come
 
@excaza that too :)
@Divakar I have some already on Github
I have Laplacian Blending, and some spherical imagery stuff
 
6:48 PM
Yeah something on those lines Ray!
 
you with your fancy projects :(
 
Probably one of my more "famous" ones
I get emailed about this code often.
Either thanking me, or asking me about certain aspects of it
People also ask if they can use it for presentations lol. I don't have a problem with it
 
Hmm, would give it a look Ray, thanks!
 
@Divakar cool :)
 
@rayryeng imRGB = cat(3, im, im, im); % im is the monochromatic matrix of intensitie values <- spelling mistake
 
6:50 PM
@Adriaan you can submit a pull request.
I can't be bothered to change it for one spelling mistake.
I probably had my French brain on at some point
 
@rayryeng a what? :P
 
Hehe. I guess you don't use Git :D
I'll change it later.
@Divakar it's a nice piece of code. It's a way of blending two images together to make it look as natural as possible.
 
@rayryeng don't bother for me, I won't see that page again unless you link it :P
 
nice repo @rayryeng is this for your course? Or are we free to use it?
 
Lovely!
 
6:51 PM
This was before I started coding on SO though lol
@GameOfThrows It's for a separate issue all together.
I wrote that code while I was in my PhD. Not related to my course at all. Yes feel free to use it
The license is MIT.
 
I had one on file-exchange which I did ages ago. I called it MATLAB fotoshop, was meant to simulate Adobe photoshop at a basic level. It has few Image proc. enabled. I guess its functionality could be extended if people are willing to collaborate on such a thing. Here's the link -
 
ooo nice!
 
lol, that screenshot is awesome
 
that is impressive
 
So, being open source could be nice I thought.
:D @excaza
 
6:53 PM
@divakar you can link GitHub repositories to FEX submissions
 
yeah, open source is definitely the way to go now a days
 
@Divakar look at all of those windows :D lol
 
I'm not sure which branch it monitors
 
hmmm, I think I might go and watch some Family guy tonight, just got my S13 box set
 
I'm assuming the most recent commit on the default branch
 
6:57 PM
My net being grumpy as usual ..
 
hehe :)
@excaza @GameOfThrows ironically, the most active repo I have isn't in MATLAB. It's in Java
 
@rayryeng are you aware that the mobile chat interface got a facelift, and now you can see replies?
 
I dunno about the app...
 
yeah at one point you could have three layers of windows open in it
 
6:58 PM
@AndrasDeak I haven't tried it yet!
 
I wish they put chat in the app
 
for sure
it'd make life a lot easier
 
Oh, I assumed it just didn't show it to me on account of me not logging in with the app
I just tried it out, didn't like it
 
I am thinking if the main theme stays with Image Proc., we could call our team "Imagine".
If loops are to be frowned upon in such a team - "Imagine fucked loops" ;)
 
Image Vectorization?
Imagine*
 
7:05 PM
@AndrasDeak lmfao
 
I think just "Imagine" would be nice. But we gotta decide on the kind of projects we would want to deal with and name accordingly ?
My net officially hates being here apparently.
 
lmao aw
 
:D
Ray I see some vectorization scope in one of your github repo funcs - github.com/rayryeng/laplacianBlend/blob/master/blend.m
 
That might be possible... but each image in the cell array is of different dimensions
It is a pyramid of images where each image is a different resolution
 
hmm I see, so maybe not
 
7:14 PM
vectorization may not be possible.
Yeah the basis of the blending is that you decompose the image into multiple resolutions
Create what is known as a pyramid of images
You perform the blending at the smallest scale, then propagate those results to the next scale, then the next scale until you reach the final scale... the original resolution of the image
BTW, if you can vectorize it... then I'm of course open to suggestions :)
 
Makes sense all that!
Though I wish my net had some manners.
I will go through those later and see if there's any scope of vectorization.
 
hehe please do :) thanks
it's quite fast for medium sized resolution images
What do you think of this question guys? Specifically my comment
0
Q: Adding a sparse vector to a dense vector in Matlab

user1189053Suppose I have a high dimensional vector v which is dense and another high dimensional vector x which is sparse and I want to do an operation which looks like v = v + x Ideally since one needs to update only a few entries in v this operation should be fast but it is still taking a good amount ...

 
is the result really sparse?
 
@rayryeng I think:
5
A: Fast way to set many values of sparse matrix

AdriaanThis should be faster: idxToReplace=sparse(x_idx,y_idx,ones(size(x_idx),size(matrix,1),size(matrix,2)); % Create a sparse with ones at locations network=network+idxToReplace; % Add the two matrices I think your solution is very slow because you create a 1.26e6 logical array with your points an...

 
@Adriaan OH
 
7:23 PM
not sure if it's a full dupe
 
@Adriaan They could adapt that and change it so that what is set is the addition of terms
It's not a full dupe, but it's a start
The code would have to be adapted where what is being set is the addition of the affected terms
 
@rayryeng Troy already answered
 
let me read
 
> If S is sparse and F is full, then S+F, S*F, and F\S are full
told ya, farty!
 
I already knew that lol
 
7:24 PM
@AndrasDeak you go play the nice guy in the SOCVR again laddy :P
 
I thought your comment said otherwise
 
One of the vectors was dense and so of course the result will be dense.
oh really?. Yeah I mistyped.
I meant to say full, not sparse. I'll remove the comment
 
> What is happening is that the sparse vector gets temporarily converted to a dense vector, the addition is performed then the result is converted back to a sparse vector.
@Adriaan actually, I'm a disruptive element:P
 
He's just a perfume spraying pervert. Don't mind him at all
 
@rayryeng I was polishing off the test function when you comment indication came up ... I decided to finish the answer before loading the comment, which said what I thought would be.
I hope that's not rep whoring too much. :D
 
7:27 PM
no not at all.
It pretty much confirmed what I thought.
Be careful of that user though. All of his StackExchange profiles, he hasn't accepted a single answer
 
@rayryeng have you tried instructing them?
I have very positive experience in this matter
 
@AndrasDeak no this is the first time I've seen this user.
If you look at the profile, he just made a SO account today
never mind sorry
I'm reading something else.
 
Ray, if you think any IP algorithm could be sped up with GPUs, that could be interesting too. We could pull in Ander on it.
 
but still no accepted answers lol
@Divakar The Laplacian stuff may be of interest.
I'd like to see what happens if I use gpuArrays.
 
you think there's some GPU cope?
scope*
 
7:30 PM
I'm not sure of the bottleneck when transferring from host to device though
I think so. Many of the DIP functions in MATLAB are gpuArray supported
 
if dealing with huge data, might not be worth it
 
that's true
 
for porting to GPU, compute has to be justified
that always the play with GPU : Port when compute > memory bound
nets not helping, I will see you guys later! Keep me posted on the Team thing!
 
@rayryeng time for a new room topic I'd say
 
@Adriaan what do you suggest?
@Divakar aw ok! take care!
 
7:38 PM
not a clue
 
Team name suggestions?
 
@rayryeng "We won't do you bloody homework"
 
hahahaha
OK
room topic changed to MATLAB and Octave: Room to discuss MATLAB and Octave related topics - "We won't do your bloody homework" - Adriaan ... and never forget: i.imgur.com/EHAPP7J.giff [matlab] [octave]
 
@rayryeng I'm totally not surprised, even on stackoverflow, there are more questions in JS, Scala, Ruby and Bash then Matlab
 
yeah those languages are more popular of course... and not proprietary :D
They don't have to pay to use it
 
7:41 PM
@GameOfThrows Problem with MATLAB is mainly that it's costly and most of the questions come from students having their first course in it
 
yep, and they do find jobs
 
yup
 
@rayryeng what do you think of this question specifically the other upvoted answer... I pointed out his main point was flawed and the answer stayed around regardless
 
I guess Matlab should consider making its Edu version free to use
 
@GameOfThrows uni's pay for it anyway, no reason for TMW to make it free.
 
7:43 PM
yeah, but work often do not pay for it..
 
-4
Q: Why is my Angry Professor code not working?

govind yadavThe first line of input contains T, the number of test cases. Each test case consists of two lines. The first line has two space-separated integers, N (students in the class) and K (the cancelation threshold). The second line contains N space-separated integers (a1, a2, …, aN) describing the ar...

that title
 
@GameOfThrows but an educational version would not be licensed to be used for commercial goals
 
and it is a brilliant thing to have, you test your theory in Matlab, and then transfer it to more efficient/deployable in JAVA C++ and Ruby
yeah true, but I guess my point is - Matlab is being used in high tech research labs, but not in small businesses because they will not invest in it, and that's why Python is over taking its importance in Unis
 
Angry professor lol
 
I mean, my friend in Computing science at Imperial told me they replaced all Matlab courses with Python
 
7:45 PM
@GameOfThrows I use Python at work. My work doesn't pay for a MATLAB license so I don't code in MATLAB at work
 
@GameOfThrows they're starting with that in Delft as well
uni doesn't have to pay license fees and the student knows a free language upon graduating. win-win I'd say
 
I agree
 
(Though I'd have missed out on this room then. That'd be sad)
 
I wish my company would pay for Matlab...
hard to convince my boss since only 2 guys write in it... damn..
 
Oh! Period 3 started #goes back to wacthing hockey
 
7:49 PM
@Adriaan and the other benefit is that've seen how other languages are good at things besides matrix operations.
 
@Adriaan I'll be teaching my class how to use SVMs from MATLAB tomorrow. Do you have a simple example that I can use or should I just RTFM?
 
Just that exposure is important to understand that there are better tools for many jobs
 
@rayryeng gimme a minute
 
@Adriaan fantastic. Thanks man
 
@rayryeng got an email address for me? I'll sent you my lecture notes
 
7:50 PM
Just enter in the numbers you see in the captcha and you'll see it :) thanks!
 
@rayryeng are these Master students? I didn't remember the Bachelor course covered SVMs in my uni, the hardest we ever got to was adaptive filtering.
 
@rayryeng Darn. Slide 54 says "Support vector machines - not this year" >.<
#lame
 
@GameOfThrows This is a combined senior level undergraduate and graduate course
 
I can ask the dude who teaches the course whether he's got old lecture notes lying about for me
 
7:52 PM
I won't be talking about how to optimize the cost function. That is too advanced. I'll give some insights on how the cost function looks and what the terminology is for SVMs, but I'll get them to use MATLAB to do the classification
@Adriaan aw man lol. that' sok
I talk about Neural Networks in detail because those are now easily trainable.
 
@rayryeng I'm pretty sure I got that subject somewhere though, and that bloke must have taught me how to use them
 
hehe np. I can read up on MathWorks. I'm looking at the fitcsvm docs.
 
Lots of stuff on PCA though :D
 
I'll only show the linearly separable case. The non-linearly separable with kernels will be part of their assignment
@Adriaan hahahaha... did you see my chat profile message?
"If you are studying PCA, please learn how to use it properly."
 
@rayryeng Brilliant. Just misses a link to my question ;)
 
7:55 PM
OH. link? Let me update
 
6
A: PCA in matlab selecting top n components

AdriaanForeword I think you are falling prey to the XY problem, since trying to find 153.600 dimensions in your data is completely non-physical, please ask about the problem (X) and not your proposed solution (Y) in order to get a meaningful answer. I will use this post only to tell you why PCA is not ...

 
man, I wish you taught my uni course @rayryeng , not to be ungrateful to my teacher, but our course was way too simplified - teaching in the UK has been going down hill, easier to attract more students and easier to get them passing..
 
@GameOfThrows oh :) thank you so much
I taught them only a few topics so far.
Linear Regression - univariate and multivariate case, logistic regression - binary and multi-class
 
@GameOfThrows and I was deliberating doing a PhD there... :D
 
Bayesian Decision Theory
 
7:56 PM
So Dom just called me her boyfriend, and Connie has no idea I'm even seeing her lol
 
Gradient Descent
Regularization
 
I need to tell her tonight. This is going to be so much fun
 
@ballBreaker which one?
 
I just started Neural Networks - forward and backprop. I'll be finishing that up tomorrow as well as an intro to SVMs
 
high fives himself for getting into these situations
 
7:57 PM
hehe PhD is different though, it was tough to step from a simple degree to independent study, and my tutor set 1 goal for us, IEEE transactions only, any other paper will be binned
 
wow.
@GameOfThrows many of my papers were submitted to IEEE conferences.
 
@ballBreaker shakes head, murmuring "had it coming"
 
I only have one IEEE Transactions journal paper.
My Masters was submitted to CVIU - Computer Vision and Image Understanding... an Elsevier publication
 
@rayryeng same here, I had a journal in Neural networks and another in TASLP
 
@rayryeng speaking about SVMs...
 
7:58 PM
Elsevier is good though, I read Elsevier journals a lot
 
@Adriaan I think not telling Dom anything about connie is the smartest idea. I need to tell Connie.. I'm just unsure how much to tell her
 
you're all old :(
 
considering she saw Dom liked something on my facebook on Saturday, and absolutely lost her mind
 
@ballBreaker as I've suggested some time ago: tell both everything, probably get burned, move on and don't get yourself in this situation again
 
@GameOfThrows The SURF detector was submitted to CVIU too
 
8:00 PM
wow
 
@Adriaan I suggested that too lol
@GameOfThrows yeah, it's one of CVIU's most popular papers
 
we all did
 
a lot of very well respected papers were published to noname journals lol
Ever heard of Intelligent Scissors?
 
I use it
to shop my dog with gimp
 
I don't use it, but heard of it
 
8:01 PM
@Adriaan Agh it would have been the smart thing to do
 
it's not highly intelligent...
 
I always ignore that scenario until it's too late, and way worse
 
@ballBreaker you can still do that
 
@ballBreaker well you had been warned:P
 
@GameOfThrows It was one of the foremost interactive image segmentation techniques at the time
you click around an object and it traces along the boundary of the object and snaps, accurately extracting out the object
 
8:02 PM
Here's the thing.. I don't want to bring Connie up to Dom.. as it was the pivot point of things going wrong . But then again, she has the ability to be pretty reasonable.. but shit
 
Published in a noname conference in 1995 and you don't see any image editing software without it
 
Worst case scenario of telling connie everything, is that she messages Dom out of anger, and then I have to deal with that shit
 
I'm so glad I don't image process :D
 
@rayryeng this is the thing I hate about IEEE journals, they tend to respect well known publishers a lot, and they always get their papers accepted, when I submitted my paper, the reviewers came back with a list of 10 of their papers, and said I needed to cite them
 
8:03 PM
The circles are control points and the goal of the algorithm is to extract out the object
@GameOfThrows ME TOO
 
@AndrasDeak I guess my rationalization is that the longer time Connie and I haven't been together, the more she'll be able to handle the information
 
lol I guess it is common
 
@ballBreaker "He who burns himself has to sit on the blisters"<- crude translation of a Dutch proverb
 
haha yeah my issue is that I keep listening to my 35 year old buddy at work
 
@ballBreaker don't tell me that's pillow talk as well
 
8:05 PM
hahhaa no
I guess I figure his life experience outweighs my own
 
@ballBreaker you should've stayed in the clear last time the bucket of crap was kicked over
once it was out, you should've gone honest
 
@ballBreaker doesn't everyone's?
 
@Adriaan No
Only if they're older and more experienced :D
 
@ballBreaker everyone's mentally older than you my friend.
 
I will take the mentally mature route here and choose to ignore that you said that
 
8:11 PM
@Adriaan ouch lol
 
@ballBreaker the little ones grow up so fast :D
 
He's got one serious
 
I can't believe you have to go into the underlying Java to vertically center text...
I'm also surprised there isn't a dupe
there's like 20 MATLAB Central threads saying "use the underlying Java" and none of them show it
 
@excaza nice answer
 
@excaza very nice answer. Can't believe you have to hack at the Java API to do what you need to do
 
8:20 PM
So dumb haha
people have been asking for it for almost 10 years, at least
Also interesting that the edit box background remaining white is a design decision
 
crap. Luleå lost tonight. Now they ended fourth instead of third :(
 
0
Q: Finding true anomaly without ambiguity

HeisenbergI'm doing some computations on GPS parameters using Matlab. I have developed two equations for the true anomaly (orbital parameter). Where "vk" is what I am trying to obtain; "e" is the eccentricity of the orbit and "Ek" is the eccentric anomaly of the orbit. I want to extract the true anomal...

Am I missing something here?
just take the inverse sine and cosine?
 
@excaza yes I think that's right
 
I mean, it has been 9 years since I've done orbital mechanics
but...that's trig :p
 
@excaza you're old.
 
8:30 PM
then again, so is newtonian mechanics
wow
I'm not even 30 :(
 
@excaza I'm 32.
 
I guess i'm old
i'm 34
 
I'm 27
 
Ya'll got dust in your bones
 
I've got 80 year old knees, for sure
@ballBreaker nice edit, cheater
I'm onto you
 
8:35 PM
@Adriaan how do I extract out the coefficients of the decision boundary in the ClassificationSVM structure?
 
@excaza hahaahahha ;D
It was just too perfect to pass up
 
@ballBreaker RIP my wallet...again: recordstoreday.com/SpecialReleases
 
Oh god, srcvinyl was the biggest pain in my ass
I don't know if you were paying attention to my pings to you about it lol
 
@rayryeng I'm slightly pleased (this is such a suckish formulation for this) that you ask me, but I've got to read the docs on it.
 
@Adriaan I'm reading the docs now and I can't find anything lol
 
@rayryeng ah, I use fitcecoc at work to get train the SVM.
 
@ballBreaker yeah, I should have read the fine print that said not to mix in-stock with pre-orders/backorder
though they did finally get back to me and say things could be split up if I pay for the new shipping
 
@rayryeng fitcecoc docs should work, since they produce those nice figures
 
@excaza Yeah I guess it makes sense, really. I ended up waiting 3 months for mine.. then they show up and they missed a vinyl.. had to get a refund on it
I'm just going to use their Canadian site from now on.. even though it's inventory is shit in comparison
 

« first day (251 days earlier)      last day (2992 days later) »