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

12:35 AM
http://stackoverflow.com/questions/35854077/regular-expression-that-excludes-some/35855936#35855936

I posted this answer, but what I really wanted to do was collapse it to a single regular expression which uses the regex `?()|` if/then/else syntax. I couldn't get it to work in MATLAB. Anyone have any ideas?
 
first of all, use %// to hack up comment syntax highlighting:)
it will make your input data prettier
 
don't get it
I currently used four spaces
ohhh
sorry
okay
I'm slow
 
no prob
it's past 1AM here, I can relate;)
 
I just had three glasses of wine at lunch
anyway, fixed. thanks for the suggestion
do you know if conditional assertions work in MATLAB regex?
 
wait
it should
(?(cond)expr1|expr2)


If condition cond is true, then match expr1. Otherwise, match expr2.
 
12:39 AM
maybe I screwed up the brackets. let me try again
 
> Conditions can be tokens, lookaround operators, or dynamic expressions of the form (?@cmd). Dynamic expressions must return a logical or numeric value.
 
hmmm
seems like both regexp(s,'?((?!=\s)x(?!\s))(^a(?=\s)|(?<=\s)a$|^a$|(?<=\s)(a)(?=\s))') and regexp(s,'?((?<=\s)x(?=\s))()|(^a(?=\s)|(?<=\s)a$|^a$|(?<=\s)(a)(?=\s))') should both work and be equivalent, but neither returns the desired result...
 
just shows you that regex is a beyotch
@transversalitycondition I can't see your outer () in (?()|)
 
1:03 AM
well I'm basically trying to use it as a Boolean expression in the first case (the 'then' part of the conditional is an empty set of brackets) and in the second case I use negative lookbehind/lookahead expressions and only fill in the 'then' part (supposedly you can omit the else))
but yes, regex is a beyotch
and awesome at the same time
most powerful non-turing complete language
 
1:51 AM
@transversalitycondition my point is that the whole if-then-else should be in a set of parentheses...shouldn't it?
1 hour ago, by Andras Deak
(?(cond)expr1|expr2)


If condition cond is true, then match expr1. Otherwise, match expr2.
 
 
2 hours later…
3:55 AM
@AndrasDeak I dunno. Doesn't seem to make a difference either way for me... unless I'm just screwing something up
 
 
4 hours later…
7:32 AM
@AndrasDeak that flag begging editor can edit again. 3 posts today, all a year old, no accepted answer, but at least no begging for flags this time.
I'll keep an eye on him to see whether he starts to edit crap again, but otherwise I'll let him have his 45 edits, then he won't get rep anyway
 
Max
7:44 AM
why do you care so much about People doing useless stuff to get Reputation, @Adriaan? Just let them waste their time, that's enough punishment already, isn't it?
 
 
2 hours later…
9:38 AM
@Max To me, the rep is not the problem, but people posting/doing crap in SO for rep
we all do things for rep here, the thing is doing it with quality.
 
Max
9:59 AM
@AnderBiguri Sure, but how do people, who edit crap-posts, harm SO's quality? I'd say if they want to waste their time by correcting minor typos in completly irrelevant Posts let them do so, it will not affect anyone or anything
 
Oh yeah, Im not that worried about that. It was just a general comment
 
10:14 AM
@Max because the site quality goes to hell.
@Max specifically this user edited year old posts which needed to be closed and deleted with the edit summary "Please flag". He thus knew he bumped crap to the front page without even bothering to flag it himself
 
10:26 AM
@AnderBiguri that's such a good answer thread :D
Where's his answer actually? :P
 
there is no answer XD
everything is just babbling
The oldest answer is:

You know, Jack Nicholson was right!

YOU CAN"T HANDLE THE TRUTH!
 
So much quality
 
Im guessing the user was called Jack Nicholson, else this makes even less sense
Sorry im getting fucking mad. Have you used mat2cell @Adriaan ?
aaaaaaaah freaking fixed it
what amess of docs
 
10:46 AM
@AnderBiguri Nop. I've seen a few questions last week though, one yesterday, which was dupehammered by Daniel
 
nah I ve figured out, was making amistake. Not sure if I like the design of the function though.
 
@AnderBiguri One CV needed
 
 
1 hour later…
12:03 PM
Ghe, this OP accepted my answer out of the blue and then asks how he uses it
@AsmaaDaoud you could of course click on the documentation link I provided in my question and read the page, which includes examples on all its uses. — Adriaan 10 secs ago
 
 
1 hour later…
1:14 PM
@Adriaan I know, just wait for it;)
59
Q: Do we really want to allow unregistered users to answer questions?

Andras DeakI've been contemplating the position of unregistered answerers for a while. Every now and again spam or abuse or nonsense is posted by such users. Just now an unregistered user posted two abusive answers to the same question, now posts and user are both gone now. Events like this make me wonder...

 
I've seen that
 
I'd be surprised if that user of yours was registered:P
 
first time i heard of unregistered users
Probably he was, talks about having rep and whatsoever. I think they just banned him or something, I dont know. I guess a moderator could check that
 
probably wouldn't care
and such multiple deleted posts raise automatic flags usually anyway
 
all those are deleted by moderator
almost all
 
1:22 PM
ah OK
 
I want to do this for all my MATLAB code
 
hahaha lovely code
(゚Д゚)[゚ε゚]
 
1:48 PM
MATLAB's string parsing is so shitty sometimes
 
I'd love o have those variables, we shoudl contact The Mathworks about it
 
It shouldn't be difficult to figure out a format string to read in 2015-10-19T22:15:30.12202 +02:00,62.7 as a 2 column cell array
 
(゚Д゚)=45;
what=(゚Д゚)^2./log((゚Д゚));
 
'%s,%f' should just freaking work...
 
@excaza be thankful: that made Abhishek move to python
 
1:51 PM
he will get answers there
 
@excaza it's the space, isn't it?
@AnderBiguri he does
 
yeah, python is crazy , everyone asnwers like beasts
 
I bumped into him in the python room
same thing: 5 lines of code and a question:D
but there's a different culture there
 
less rudetude?
 
more open to just popping in for a question
our room is primarily social in nature
 
1:53 PM
RAAH, I'm so pissed.
 
and if someone just asks something without a "hi", I boop them on the nose with as hovel
 
@Adriaan that's not news :)
 
@Adriaan missed a sign in your annihiliation operator?
 
What do you guys do in this situation: I'm doing a project with 3 persons, but every time I do something (be it code, be it write a piece of the report) one of my groupmates says "I don't get it" and rewrites the entire thing. Every fucking blood ytime.
 
not much you can do
do an assignment on your own?
 
1:54 PM
I don't even want to write anything anymore, because I know that when she opens the project at 17:30, the first thing she'll do is kick all my stuff out and write her own
 
@Adriaan assign tasks?
 
@AndrasDeak can't, too late
 
leave the work for her, then
if she keeps rolling back yours
 
Talk peacefully about it?
 
since we're talking about you: have you tried talking it through with her, like a decent human being?
 
1:55 PM
@AnderBiguri after the code fiasco of the previous weeks I elected to write the report, which is molested and mutilated by now
 
I guess, jsut talk with her peacefully
 
give her some Ardbeg
that'll loosen her up
 
@AndrasDeak Nope. Problem is that I send stuff on Thursday, and on the group meet on Monday she starts with: "I didn't understand your stuff so I wrote it myself" >.<
 
@Adriaan you should start by talking
being pissed and grumpy all to yourself (and us) won't change jack shit
 
It will probably make it worse....
 
1:56 PM
tell her that you find it inconsiderate that she's throwing out your work
so even she do it herself, or ask you if something's unclear
communication is always key, and especially so with team work
 
yeah. I was once in a team where a couple of us (not me) treatened to beat the shit out of each other
all was comunication error
following projects actually were very successful (hey dudes, Im in mathworks page!)
the only difference is that we did comunicate way better
 
Christ, it takes rawdata = textscan(fID, '%s%f', 'whitespace', '', 'delimiter', ','); just to read it in correctly
wtf MATLAB
 
hahaha
 
gooooooooooooood morning peoples of the matlabs and octaves
 
yo what's up east coast
or is it west coast... I'm not really sure
 
2:00 PM
very east
and not coast
but yeah
 
Some of us are in NA, a lot of us are in EU
Occasional azn
Sometimes an alien cough @Adriaan cough
 
Im (maybe) in none of those soon!
UK :P
 
lol, brexit
 
hmmm I'm in the UK as well
 
2:02 PM
Anyone here know the card game "Guillotine" ?
 
I heard of it
 
I've recently learnt how to play cards against humanity
 
my girlfriend is a board game advocate
 
@AnderBiguri Awesome! I love board games
Me and Dom get drunk together and play them a lot, and it's her birthday tomorrow.. Guillotine sounded really neat so I ordered it for her ^_^
 
@GameOfThrows I played this. A german put "Whats the best way to start a war" , an slovakian answered "germans on vacation"
BOOM
 
2:03 PM
Just wondering if anyones played it. It sounds really fun, but hard to tell from descriptions
 
LMAO
 
HAH
 
@ballBreaker haha nice! haven't played it though
Everything was fun, no one took anything personally, wich is good
its scary to play that game with people yoiu dontk now very much
 
hahah yeah
cards of humanity is really fun
the more people the better
This one is apparently really good for two people (Guillotine) so I'm stoked :3
 
@AnderBiguri and there were also no Germans around, right?;)
 
2:15 PM
I love board games
 
@ballBreaker something makes me suspect that it'll be a game of strip guillotine
 
;) I didn't say it, but I'm glad you were thinkin' it
I suppose you're beginning to know me pretty well by now..
 
oh no, you're an enigma:P
 
:D
Better than an enema
lol @Ander have you listened to the other BATS albums?
"The sleep of reason" is pure badassery
I like the song all about Thomas Midgley Jr. haha
I read up on him a bit after the song lol.. guy is kinda ridiculous
"Bill Bryson remarks that Midgley possessed "an instinct for the regrettable that was almost uncanny."[26] J. R. McNeill, an environmental historian, opines that Midgley "had more impact on the atmosphere than any other single organism in Earth's history."
 
3:24 PM
@AndrasDeak poor Python room...
 
@excaza exactly:D
 
@excaza at least in the chat there's a mute button, and he doesn't have that much rep left to bounty stuff :D
 
I don't know how long it has been like this
 
what are the odds he asks a question that's starred in the feed
lol
 
3:36 PM
We need a team :(
12
Q: How do I create a team?

ThomasI was directed to the teams page and I couldn't find my team. How do I create my team? Others seem to have found such an entry point with lots oy typos. I don't care about the typos. Where is it?

 
@excaza "@ballBreaker's hoes" is a great teamname
 
lmao
 
@ballBreaker no i havent, I will now!
 
You won't be disappointed
 
@excaza I am still ntos ure how that would benefit anything
 
3:46 PM
 
39
Q: The Goal of Teams: Our Follow-Up to Your Questions

HynesA few weeks ago, we came to meta with an idea called Teams. For those who didn’t read the first post (we can’t blame you: it was a long read!), the idea behind Teams is to give users of Stack Overflow a way to showcase their team projects and achievements on a shared page and check out what othe...

 
I mean, I understand teams as "openCV developers" as you may want to ask those specific questions
but Stackoverflow people that do python?
 
mainly a shiny profile badge
 
why another thing? there is a chat and the tag
 
Ob-Pro_Kenobi
Head of IT-Department at Coca Cola Enterprise, Europe
 
3:47 PM
We envision Teams to be used for professional teams, open-source projects, user groups, or even programming communities endemic to Stack Overflow working towards a common goal (e.g. organizing question lists, analyzing Stack Overflow data, writing bots, etc.).
I should create a team for my toolbox. Will be so alone there
@Adriaan he might be
 
there's an sopython team and an sopython community team if I'm not mistaken
the latter is open
btw I just got my bronze today:)
 
@Adriaan Does this mean I get to two-time you guys?
 
4:54 PM
@ballBreaker if you come over, I will actually think about it
 
hahaha come over where
To your place of residency?
Or is there a team already
I'm so confuzxed
 
@ray How was that thing of profilin cuda mex files? I cant find it and the damn visual profiler doesnt seem to work.
 
@ballBreaker my okace of residency
 
5:18 PM
@Adriaan Ahh ;)
I have no idea when that would ever happen haha
 
@ballBreaker when you get your period and decide to f*ck yourself senseless on hookers & pot in the Netherlands
 
lmao o.o
 
@AnderBiguri I found it to work just fine for me
what platform are you using? Linux?
 
@AndrasDeak Congratulations :)
 
5:24 PM
0
Q: Profiling MATLAB mex CUDA applications with the NVIDIA visual profiler

Ander BiguriI am trying to profile a CUDA code that is embedded in a mex file, called from MATLAB. The code is structured as follows: MATLAB test.m ->contains some standard code generating variables (and calling 1 or 2 minor own MATLAB fucntions) -> calls testcuda.mex ->contains small, ...

 
Let's hope Robert Crovella or talonmies answers you!
 
:( I think Talomnies things I am an idiot XD
Hopefully he wont remember me...
 
@excaza we do need a MATLAB team :(
We'd be one of the best teams here
 
Well, open one then !
 
We can't lol.
Limited to beta users or some shit like that
 
5:26 PM
o shit yeah.
 
that's ok.
 
@rayryeng go fart around the mods who hand out beta invites
 
@Adriaan no my farts stink so badly they won't want to give me an invite.
 
not sure if they still monitor it or not, but worst case is nothing happens
 
5:26 PM
@excaza did you sign up?
or do you want me to do it?
I'd love to get a team going!
Also what would the team name be called?
 
Go Team Waldo!
 
lmao
no no. it should be MEEP MEEP
 
lol
 
MATeamLAB
 
didn't you know MEEP MEEP is beaker-ish for MATLAB
Brothers and Sisters of MATLAB
 
5:28 PM
@rayryeng nope, wanted to poll folks first, plus I'm not clever enough to come up with a good name :p
 
Leader: sister rayryeng
MATLAB and Octave I think is just fine
Team Vectorization!
Divakar would LOVE that
 
Sisters of Perpetual Eval
 
lmao
 
@rayryeng Team Vectorization (sic)*
 
now that's CVLT
 
5:29 PM
CVLT
that's good
@Adriaan
Vectorization may refer to: Vectorization (mathematics), a linear transformation which converts a matrix into a column vector. Array programming, a style of computer programming where operations are applied to whole arrays instead of individual elements. Automatic vectorization, a compiler optimization that transforms loops to vector operations. Vectorization (image tracing), is the creation of vector from raster graphics....
Vectorization
 
What is the point of teams?
 
Basically it's just to give exposure about who we are and what we do lol. That's it
It'd be nice to let people know we have a strong MATLAB following here
234
Q: The Power of Teams: A Proposed Expansion of Stack Overflow

HynesUpdate A follow-up to this post has been made here: "The Goal of Teams: Our Follow-Up to Your Questions" TL;DR: We're proposing a new area called Teams. The goal is to allow groups (of varying sizes) to publicly share about themselves (who they are and what they build) on Stack Overflow. Con...

 
ohh okay
 
yeah it's nothing special
not like we're in a competition or anything
 
I'll be the team mascot
AKA the one who sits on the sidelines, and does nothing but entertain people
 
5:33 PM
you can actually assign roles to people lol. Team Mascot is good.
 
@rayryeng don't we need to have, like, a project? ;)
 
I think it's the most fitting role for me lmao
 
@rayryeng at least it redirects from "vectorisation". Stupid Muricans :(
 
@beaker yeah code golfing :D
@Adriaan Yes sorry about that... Wikipedia is Murican founded
 
@rayryeng but Murica is English founded, doesn't that count for something...
 
5:35 PM
Yes... yes it does
 
@Adriaan When Murica was founded, England used z ;)
 
@beaker sad and horrifying times. I still have nightmares, months after you told me this for the first time.
I vote to change the world language to Hungarian, then at least everyone will have problems speaking it.
 
Why don't we change the language to brainfuck?
 
@Adriaan They also didn't have a 'u' in 'color' ;)
 
This is very useful but very nasty [MATLAB behaviour] to people who still thinks that index is a number. — Crowley 26 mins ago
 
5:38 PM
Speaking in nothing but <>-=+
@excaza I don't understand that comment.
 
@beaker runs away howling
 
Those nasty, explicitly called out in the documentation, MATLAB behaviors :(
 
What does that mean?
@excaza ahhhh
 
lol
 
I'm not really sure I understand it either
 
5:39 PM
Hey aren't they still using the Imperial measurement system?
 
@rayryeng I haven't used drams and gills in weeks
 
@rayryeng USA, Liberia and Burma are the last ones last time I checked
 
@Adriaan Then we can all sprinkle perfume on strangers at easter time too, right?
Perfume is a code word in that sentence
 
@ballBreaker only males on females though. Don't get all feminist on me
 
Oh of course it was exclusive
Who do you think I am
 
5:40 PM
A ballbreaker duh
 
Some politically correct, liberalist pussy?!
bahahaha
 
@excaza
@Crowley I'm not sure I understand your statement. "Indexing" in the MATLAB universe is a very well documented term: mathworks.com/help/matlab/math/matrix-indexing.html#f1-85511rayryeng 33 secs ago
@ballBreaker yo did you get my email of stuff?
I think for a project later, I'm going to extend to N hidden layers and you can specify the architecture for each layer as input
 
oh god
I'm looking through my old MATLAB code
 
you used length instead of numel didn't you?
yeah when I look through my old MATLAB code now, I've broken a lot of rules that I now endorse lol
 
I still do length all the time
 
5:52 PM
ok :) as long as they are vectors
I will forgive you... this time
 
yeah, I know my data :p
 
@rayryeng good thing I came here before I started to write decent stuff, just a year of random uni exercises before that
 
for sure
 
apparently the day I learned sprintf was a great day
 
It took me a while to get out of bad practices because I was coding in MATLAB for years before coming here.
@excaza :D
I never used bsxfun in my life until I started to come here
or accumarray
 
5:53 PM
for i = 3:numel(temp)
    if temp(i,1).isdir == 0
        MaterialParse = textscan(temp(i,1).name,'%s','delimiter','_'); Material = char(MaterialParse{1}(1));
        for j = 2:(numel(MaterialParse{1}) - 1)
            Material = [Material '_' char(MaterialParse{1}(j))];
        end
        test = exist([FileLocation '\Front\Edited\Tracking Output\' Material '_Tracked.avi'],'file');
        if strcmp(Overwrite,'Y') == 1 || (strcmp(Overwrite,'N') == 1 && test == 0)
            EdgeTrack([FileLocation '\Front\Edited\'],[Material '_Clipped.avi'],Material);
lol
 
omg lol
 
interestingly enough I used numel more than length
 
i = 3 I'm assuming is to skip . and ..?
 
yeah
 
Edge Track :D... is this image processing code?
 
5:54 PM
I made my own edge tracker :p
 
:D
 
@rayryeng I did!! Thanks a ton dude
 
did you use a known algorithm or did you make a new algorithm?
@excaza first thing I would try is something like optical flow or mean-shift, but then you have the aperture problem
 
@rayryeng Yeah I was thinking of possibly doing the same at one point for the code you supplied, Ihaven't looked through it yet, but it shouldn't be too hard to modify it, right?
 
@rayryeng I calculated the luminance and looked where it exceeded a threshold
 
5:55 PM
@ballBreaker nah man. I did rely heavily on matrix calculations though. If you want to do it from first principles, either use some for loops...
 
it was high-speed video so it was finding where 'not black' was in each row :p
 
with a macro lens
 
@rayryeng I've always done it through matrix multiplication
So I'll probably just do the same
 
Sounds good. It's faster
 
5:56 PM
:D
frame = read(TrackingVideo,i);
I = 0.2989*frame(:,:,1) + .5870*frame(:,:,2) + 0.1140*frame(:,:,3); %Calculate luminance and convert to grayscale
for j = 100:500 %cut off top and bottom of frame to reduce sampling errors from breaking threads
    lEdgeY = [lEdgeY j]; rEdgeY = [rEdgeY j]; centerY = [centerY j];
    TempEdge = []; %Preallocate edge array
    for k = 1:800
        if I(j,k) > Threshold
            TempEdge = [TempEdge k];
        end
    end
    lEdgeX = [lEdgeX min(TempEdge)]; rEdgeX = [rEdgeX max(TempEdge)]; centerX = [centerX (min(TempEdge)+((max(TempEdge) - min(TempEdge))/2
 
@ballBreaker I like "If It Ain't Broke...Break It" better
 
Yeah exactly, and now using this JAMA library
 
The weighted sum approach is good if you want to do it on an embedded system
hahahah nice.
 
shewd be gewd
 
@excaza I applaud you for using the SMPTE Rec. 709 conversion standard from RGB to Luminance
many people just average the channels together.
 
5:57 PM
@AnderBiguri Yeah that song is awesome too.. thanks for showing me these guys ^_^
 
Love this kind of music for spring time
Gets me so amped for the weather change
 
@rayryeng it's what I found on wikipedia hahaha
 
oh :D lol
that is the correct conversion formula.
 
worked pretty well :)
 
5:58 PM
MATLAB used to just average the channels together... now they use the Rec. 709 standard
For something that simple I'd say yes!
 

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