« first day (421 days earlier)      last day (2820 days later) » 

12:08 AM
@Dev-iL Yeah, why not? :-)
y = [1 1 1 0 1 1 0 0 0 1 1 1 0 1 0 1 0 0 1 0 0 0 0 1 1 0 0 0]; % input
N = 3; % minumum number of zeros to detect
t = conv(+~y, ones(1,N), 'same')==N;
t = +~conv(+t, ones(1,N), 'same');
result = y + t./t-1;
result = result(~isnan(diff([1./t 1])));
@StewieGriffin It's a nice answer indeed!
 
hehehe
 
 
6 hours later…
6:39 AM
@LuisMendo does +~ convert it to double? (otherwise I don't see why do this)
 
 
1 hour later…
7:49 AM
hi fellas
 
8:00 AM
@AnderBiguri Hi there! I actually wanted to ask you something
 
For your PhD, are you getting credit for organizing your codes in a way that is publishable as a toolbox, or is the only thing that matters the algorithm you developed that does the image processing?
 
I will get some credit yeah
 
Academically speaking...?
 
Actually a paper about the software is accepted already in agood journal
Of course, if the PhD were to be just software then I would have problems in the end
 
8:03 AM
Yeah but what the journal cares about is probably the applications of the toolbox, now the "software architecture" aspect of it
 
Yeah you are rigth
but the software I made, every algortihm has already been published before
no new things, just things no one has access to
in the end, what allows me to make a paper out of it is the fact that I have, somehow, made a "decent looking software" out of the random methos around
so it needs some architecture
 
Because you know... I find myself spending lots of time writing codes that can be reused by people after me, and I try to make them run fast, and I try to write "unit tests" where needed.... But at the end of the day, the committee doesn't care if your code works well, it just cares about the end result
 
yeah.... If the code is useful for the general public, I think its worth it publishing the software
its not as good as having a new method, but it gives you academic rep
also, perople remember you because you made the software. Since the publication of my toolbox, I have been invited to 7 seminars
 
So it seems that "scientifically" I haven't made much progress, but without good tools you won't have the ability to analyze your data
that's cool :)
 
8:09 AM
I need to spin it somehow to include my "code magnificence" in my PhD exams :)
 
Things like this are in my paper, so it has some architecture
 
That's a nice figure :)
 
Tikz
so so good having learnt Tikz
 
8:57 AM
@Dev-iL Yes, logical negate and then convert to double. conv doesn't accept logical input
@AnderBiguri Congratulations! Link it when published!
 
9:27 AM
@LuisMendo +~ another trick for the book :) (as Ray says)
 
@LuisMendo I will! it should be soon!
 
What's the version command which lists all installed toolboxes?
 
ta
 
10:00 AM
Speaking of papers... This month's issue of IEEE Antennas and Propagation Magazine includes this one by me!
 
Wohoo!
and you are the sole author?
no cat?
 
@LuisMendo Oh! The only think I know of that is MIMO:
8
A: Which toolbox can perform MIMO system identification in Matlab?

Adriaan Is it possible to perform system identification on a MIMO (multiple input, multiple output) system in Matlab? Yes.

 
@AnderBiguri Haha! No cat. But I do tend to avoid first person singular (in favour of passive)
 
Yeah, I think in spain we are always taught to use passive. I also tend to that
 
@Adriaan Your answer to that question makes it crystal-clear that you are really an expert in the field :-P
 
10:08 AM
@AnderBiguri that is fantastic
@LuisMendo I know right :D
Best part is the comment thread
 
@LuisMendo Looked at the photo: wait, that is not what Luis is supossed to look like
ohhhh Karl Warnik :P
The edition of that paper looks so neat and clean
 
@AnderBiguri Yeah. It's a "column", not a regular paper. So the column editor is on the image
 
13 papers since 2001, not bad
 
@AnderBiguri Yes, it's been a huge improvement. I published a paper in 2009 on that same magazine, and it looked much worse
 
How is Spanish academia for paper writting? In my limited experience, staff have very little time for research/papers
 
10:11 AM
Yes, not much time. But a lot of pressure to get things published. So that compensates :-)
 
hahaha, I guess it "compensates"
 
:-D
"Compensate" as in "reduce or counteract", not as in "Give something in recognition of loss, suffering, or injury incurred"
Funny how it has the same two meanings in Spanish
 
yes, yes. But I found funny that the way of compensate lack of time is incredible pressure to publish XD
Instead of, for example, a free week in summer
 
@AnderBiguri Yeah, that was the intended joke, hehe
 
10:16 AM
CV this please:stackoverflow.com/questions/39142474/… Too Broad C++ question tagged only
 
@Adriaan Thanks! I'm preparing a new one, related to Statistics (Bernoulli factories)... but it's taking a lot of time. Let's see
 
@LuisMendo sounds difficult as well
 
@Adriaan Done
 
My supervisor " if a paper takes more time than a day to write, you are wasting your time"
me: "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaahhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhh‌​hhhhh"
 
@AnderBiguri a prof of mine actually writes and sends abstracts to conferences before he writes a thing in the paper :P
 
10:19 AM
We do the same thing XD
not really, but more or less.
Write an abstract on what you are working on, conference is 7 months later than submission
so by the time you get there or you retract it or you probably have results
I dont like it, but its the way we roll
Of course, this happens when you know 99% that you have the thing, and you just need time to improve/test
 
 
3 hours later…
12:57 PM
morning duders and dudettes
 
Where'd you see dudettes 'round these here parts...?
 
1:12 PM
hahahah
I mean there's a pink elephant in here.. ? @adriaan
0
Q: Canada - Termination for Lateness and Refusal of Work

ballBreakerThis question is broken down into 2 parts. 1) There is a termination clause in my contract which states that I must abide by all company policies which are "updated time to time". When I started, there was a policy saying: "you must start work between 7-9AM and work for 8 hours" Now I've been ...

lolol :D
I have a feeling my employer is going to ask me to work this weekend again - and I'm going to have to say no.. It's going to be simoultaneously hilarious and awkward
 
lmao :D
 
I just get consistently downvoted on Workplace
lmao
 
1:30 PM
You should take the hint... ;)
 
Yeah
It's a very opinion-based SO site
People are just downvoting me because I show up to work late
lol
Good thing I don't care about internet points
 
at least now you got the peer pressure badge ;)
p.s. You should come to the Middle East if you want some proper coffee ;)
 
1:49 PM
hahah whats the peer pressure badge?
Delete a question from being freaked out by downvotes?
hahaha
 
delete a -3 post
 
lol the people were being so rotten in the comments
I knew they would have something to say about the lateness
 
what do you call in English the sound water makes when boiling?
Probably "hissing" unless it's reserved for snakes
Just saw a meme in Russian:
Scenario: Girl A is crying. Girl B asks her what's going on.
Girl A: "It's my husband... He said `I wonder if it starts sizzling`, and poured a bottle of holy water on me"
 
@Dev-iL hmm
It doesn't really "hiss" or "sizzle"
I think the sound effect on a comic for it would be like
"blurble blurble pop blurble"
hahaha
@Dev-iL Also, is this a religious joke? Like insinuating his wife is the devil or something?
 
@ballBreaker I suppose so.. We don't have holy water in my religion
 
2:04 PM
@ballBreaker hows NMS
 
@AnderBiguri depends what you're looking for
If you're looking for a story/purpose - it has neither
if you're looking to explore a universe aimlessly - it's great
 
@AnderBiguri I haven't played it all week to be honest
 
Im making a time/excitement plot with @ball, because I have seen people being so dissapointed and he was so happy :P
@Dev-iL you plaid it?
 
I kept like farming planets to get money to get a dope ship, then got the dope ship, and was like ... now what?
 
I heard that it gets boring, even if you like exploring
 
2:06 PM
Then work got stupid so I haven't had a chance to play it since last week
 
@AnderBiguri Yeah... My verdict is that it's pointless
 
Then again, to it's defense... even minecraft got boring for me in the same manner
A game like that NEEEDS multiplayer to stay interesting
 
I've heard "if you like exploration you'd like it, but I dont" a lot, but I havent heard " I like it becuase I like exploration"
@ballBreaker but you can build huge things in MC
 
Yeah MC had more to it for sure
took less time to get bored
 
@AnderBiguri what about Factorio? :P
 
2:08 PM
sorry I mean more time
 
@Dev-iL In my wishlist
but don't want to spend that much money :P
 
20EUR?
 
yes XD
 
It won't ever cost less... Also it's way more fun than NMS
orders of magnitude more fun
and it costs a 1/3
 
hmm
 
2:19 PM
At some point I might
I just never spend money on vodeogames XD
I think I never spend more than 4£
Steam sales!
or Humble Bundles
 
so just pirate it if it bothers you so much
 
nah, mainle I havent because I have a list of "to play" games
cities skylines now
 
2:52 PM
lolol
@Dev-iL I like this comic
Good stuff
 
@ballBreaker That website's really famous...
 
Oeatmeal :P
 
@Dev-iL Yeah I've seen this comic for what, 10 years or something?
But I just meant that particular one on running
 
k
 
You lose 100 respect from the Dev-iL faction
or I guess if we're keeping with the No Man's Sky theme
Your standing with the Dev-iL has decreased
 
3:03 PM
Lol, for that you need to answer my riddle wrong
 
loll
I forgot to give you 100 carbon
 
That too
@ballBreaker You come across a stone slab with a bunch of hastily written symbols, all of a sudden you hear a voice:
נראה האם succeed לבחור נכון את הדת של girlfriend שלך
1. Touch the symbol that has one vertical line and one horizontal line.
2. Touch the symbol that looks like a pacman going right.
3. Touch the symbol that has two overlapping triangles, one pointing up and one pointing down.
(This is about as far as my D&D skills go... I'm no Vin Diesel)
 
OKay let me think here
(I'm not googling this, just trying to think lool)
Gut feelings says 'overlapping triangles' so, 3
 
AFAIK, standing increased. You have now learned the Hebrew word for "Nonsense". Also, here's a piece of junk that's worth some Units to frogmen.
Now feel free to Google it and find out if your choice was correct :D
 
That was quite smart
+1 to @Dev-iL in inteligence
 
3:18 PM
:)
@AnderBiguri this is the type of things you see ingame quite a lot
 
ingame D&D or NMS? :P
 
NMS
 
I mean, you completely misleaded me with the symbol descriptions
I trasnlated the thing and re-read the options and took me some 5 seconds to realize
 
+1 for persistence @AnderBiguri
 
hahaha
I'll translate it now and see
I wanted to do without cheating
 
3:20 PM
Intelligence stays at 2
 
I don't think this translation is right
Was hebrew the correct language?? lol
 
"It seems if you succeed to correctly choose the religion of your girlfriend"
 
The google translation is not 100% perfect
 
thats what I get
But makes sense with the options XD
 
Ahh mine makes no sense "Is succeed seem right to choose the religion of your girlfriend"
lol
 
3:22 PM
נראה = we'll see
 
Ahh clever though,, it makes more sense with Anders translation
 
Those symbol descriptions are what gave Devil +1 in inteligence XD
 
It would work for my ex girlfriend, although 1 AND 3 would work for her
Dom is athiest, so I would have had to smash the stone slab to be correct
 
@ballBreaker If you adopt the definition of any religion, there can only be one right choice
Just wrote my 1st unit test ever! Woohoo :)
 
@Dev-iL OH man
 
3:30 PM
@AnderBiguri You only saw it now? :)
 
I was on holidays last week and half
Niiceeee man, I'd defiently put it in "others" in your CV :P
 
He seems like a busy guy... I've sent him a draft a couple of days ago and heard nothing from him... He also missed his weekly post yesterday...
 
I might be asked to work this weekend again.. and if they do ask, I'm going to say no. Lol I have no idea how this is going to go down. Other then terribly, that is.. @Suever lol
 
Or you can preemptively send an email to your boss telling him not to bother you over the weekend as you are going away
 
I sent an email on Tuesday asking to leave an hour early on Friday, as I will be going up north this weekend
They ended up saying "We'll let you know on Thursday. Also is this to prevent what happened last weekend?" lol
 
3:38 PM
What's north of Canada? Free folk?
 
Ah nah, just more north into Canada haha
Also Santa Claus
This place is just turning into a shit show.
 
@ballBreaker Now imagine you were stuck in the military for 4 years, feeling like that for the first 3 of them
 
yeah I can't imagine man
Well. I can..
 
@ballBreaker Santa Claus in in Finland dude
These americans
 
I just never would have gotten myself into that situation to begin with
@AnderBiguri North pole is in Canada tho..
 
3:41 PM
Yeah I know :P But I think in Europe people generally assumes lives in Finland north
In th Basque Country we always had Olentzero, so no idea
 
Hmm.. so here's the thing.. I don't think they can fire me for refusing to come in .. let me explain this and see if you guy's agree
 
But they can not hire you further
kind of loose karma in the office I guess
The fact that they make you go is crap
 
My contract says "Monday-Friday 8 hours a day, 40 hours a week" . There's a clause in there stating that I can be terminated for not following company policies. There's a company policy that states "Hours of work are monday-friday 8 hours a day, 40 hours a week. Sometimes there are situations when you'll work more than 8 hours in a day or 40 hours in a week"
I signed my contract WITHOUT knowing about that policy (it's a different document)
 
Doesnt say anythiong about weekends though
 
hmm let me check
Without that though, the law in Canada for working overtime, states that "An employee must have given written approval to work more than the allotted time"
 
3:45 PM
Can't you just go to your boss and say "dude, for free - this is unacceptable"
 
Since the policy I have never signed... I think I'm okay. Also based on me signing a Contract WITHOUT having the list of policies at the time most likely voids this clause I'm thinking
 
I don't understand why the need for drama - just find another workplace
 
@Dev-iL Well, i could
I don't need drama man, this isn't me wanting drama
I just refuse to work this weekend, and want to make sure I'm within my rights to decline is all
Wanted to get your opinion on if my logic made sense
 
You most likely are, and if you are not, they will tell you "You need to work because its in your contract"
 
Like they guys told you before deleting the question - talk to a lawyer
 
3:47 PM
@AnderBiguri Also yeah, now looking at it, it doesn't mention anything about weekends
Lawyers are expensive, I want to outsource this to you guys for free lol
 
so talk to free lawyers
 
O.o
 
don't you have some lawyer friends/relatives?
 
Sounds like an oxymoron
Unfortunately, my ex-girlfriend who had all the "jewish connections" probably wouldn't really want to help me with this at this point lol
 
In my high-school I had at least 2 people who went to become lawyers
 
3:48 PM
I might be able to call the labour board though
 
a shittonne of engineers
some doctors
some pilots
 
Hmm yeah, I went to a school in a city of 30k people, it's a white trash city lol
 
30k? We call that "village"
 
I don't as far as I know, think any of them went on to become lawyers
Ah, I think 30k is the point at which a town becomes a city in Canada
 
@ballBreaker Canada, small town...... Trailer Park boys?
 
3:51 PM
It was similar!
But you're right, I probably know more about contract law then both of you at this point anyways lol
Also I'm just trying to cover my bases, but when it comes down to it - I Won't be that upset if they do fire me
 
I knwo that its some kind of paper that you sign
something like that
:P
well, im leaving
 
hehe :3
 
see ya fellas
 
cya dude!
 
bye
 
4:05 PM
0
Q: How to delete a variable from .mat file in matlab?

GuillaumeI have in my file .mat three matrices, I need to delete one of them. I try clear ('Matrice1'), but it doesn't work.

 
EEEE me leaving an hour early tomorrow got approved. Thank. God.
 
Drama averted :D
 
Yeah! Thank god!
 
@Sardar_Usama Sounds like it is... But, consider that the suspected duplicate is from 6 years ago... Things may have changed since then
 
hmmmm. possibly !!
 
4:48 PM
I wonder how you test MAT file manipulations with timeit
 
5:00 PM
I guess you could just resave the mat file in every approach, if they're all doing it then it should theoretically take the same amount for each
function trialcode
% Generate sample data
a = rand(5000); b = rand(5000); c = rand(5000);

save('test1.mat'); save('test2.mat'); save('test3.mat');

tic; rmmatvar('test1.mat', 'c'); toc
tic; appendblank('test2.mat', 'c'); toc;
tic; memmapblank('test3.mat', 'c'); toc;
end

function rmmatvar(mymatfile, varname)
tmp = rmfield(load(mymatfile), varname);
save(mymatfile, '-struct', 'tmp');
end

function appendblank(mymatfile, varname)
tmp.(varname) = [];
save(mymatfile, '-struct', 'tmp', '-append');
end
Elapsed time is 9.709951 seconds.
Elapsed time is 0.913886 seconds.
Elapsed time is 1.545015 seconds.
for the basic tic/toc
there's an inflection point somewhere in matfile vs. save, when I ran it with rand(120000), matfile was much faster
 
@excaza did you try the mex file version? (I linked to it in a comment to the question)
 
5:14 PM
@Dev-iL doesn't seem to be able to open the MAT file
 
lol ok
 
5:55 PM
Man this guy is the best
favourite comedian now forsure
 
 
1 hour later…
7:21 PM
Hi guys!
anyone familiar with "MATLAB function block" in Simulink?
could anyone point out how to reuse same code without creating a new block?
 
7:39 PM
nvm found the answer
 
8:17 PM
@AryaS. Did you find it as an answer on SO? If not - why not post a Q&A about it?
 
I think it's to trivial for Q&A
*too
@Dev-iL nope few minutes on Google points me out to Matlab docs website
 
Oh, alright
 
8:34 PM
@ballBreaker Just finished watching it... Pretty cool :)
 
@Dev-iL oh yeah? nice! haha I love 'em
 
 
1 hour later…
9:48 PM
@rayryeng I still like your bsxfun approach better :-)
 
I miss ALL the bsxfun :-(
 
@beaker We all will soon (R2016b) :-(
 
There will still be opportunities to use it. Not all functions are vectorized, after all.
 
 
1 hour later…
11:16 PM
@LuisMendo And it will be so much fun to explain the implicit, singleton expansion and why ordering and shape matter so much ... too much fun.
 
11:36 PM
@TroyHaskin It will! :-)
 

« first day (421 days earlier)      last day (2820 days later) »