« first day (2110 days earlier)      last day (2837 days later) » 

Well at least he now knows.. it's an javascript object.. that's a good thing
 
@littlepootis why would you waste your time over on docs?
 
@ssube ¯\_(ツ)_/¯
 
assuming Docs give you rep, then that is the answer to "why" for most of the junk there
 
7:05 PM
i fixed a typo and got rep on an example i downvoted
 
 
see, i should go make docs.. i need rep
 
@cswl that's insane
 
oo lets delete it and see the complaints from the rep drop
 
Saw on meta that some people got over 3k rep from Initializing Arrays in Java.
 
7:08 PM
that was likely before the rep cap fix
 
I can't find the post, but it was today..
 
anyone know why this javascript won't do the replace? text = text.replace(/(")/gi, "\"");
 
I don't think you can use entities in regex
 
Why regex?
 
7:11 PM
the tag i'm looking for is something like <atag style=&quot;stuff&quot;>
 
you probably want /(")/gi
 
@littlepootis For /g
 
actually the exact replacement is because <td align="right"> doesn't work
 
@ssube I think you're completely missing the point
 
so i have to replace that with style="text-align: right;"
 
7:12 PM
@KendallFrey I am, I posted that as he was posting the example
 
hmmm
that must be it @ssube - &quot; borked up, but if i replaced that with like codeQuote it worked
 
make sure you're escaping any special characters properly
 
ok it halfway works at least...
it'd be nice if markdown actually supported attributes :/
or if my boss would let me implement an actual editor like ckeditor
it looks like this particular markdown editor has about 50 branches and i have no clue which one we have
mwahahaha thanks guys!
 
i'm having some trouble getting $interval to work. what i'd like to do is have a method called when the page loads and then every 5 seconds afterward, allowing for the interval to be reset if the refreshPrograms() function is called by another source.
var stopProgramPolling;

function pollForWorkflowUpdates() {
	stopProgramPolling = $interval(function () {
		$scope.refreshPrograms();
	}, 5000);
}

$scope.refreshPrograms = function () {
	//DO STUFF
	if (!!stopProgramPolling) {
		$interval.cancel(stopProgramPolling);
		stopProgramPolling = undefined;
	}
};
not sure how to get it to start immediately ($interval doesn't do that) and also the interval cancel() isn't working
 
call it once, then recurse on a timer
 
7:22 PM
Why are you using !!stopProgramPolling?
 
to make sure it exists first?
 
if (stopProgramPolling) is sufficient
 
But why not not check?
^^ that
 
!!foo turns it into a boolean, so it's sometimes helpful.
 
I usually just do if (Boolean(myFoo)) rather than using a double bang...
Erm, well, Boolean(foo) === true, that is
to be more explicit with my intentions
 
7:27 PM
ew
 
!!Boolean(!!foo) === !!true
 
@Luggage That didn't make much sense. Use the !!/help command to learn more.
 
shh
 
Jan, you can just go complain somewhere else
 
@ndugger not sure if you're trolling because of the question earlier or trying to be serious
 
7:28 PM
ew
 
I always make sure to write as verbose code as possible
 
@ssube assume trolling. :)
 
if (Boolean(Number(foo)))
 
that same thing came up this morning and everybody agrees that !! is equally explicit, if not more so
@Luggage I try not to, but...
 
You're wrong
 
7:29 PM
this also closely follows the coversation in the c# room
where @KendallFrey is asking about foo ?? false vs foo == true
 
the implicit conversion in !! does kind of bug me
but !!x is really (bool)x, so...
 
What about that php feature that allows you to short circuit a ternary?
foo ?: bar
 
it's just a shitty conversion operator
 
that's the best
 
> PHP
> best
 
7:30 PM
it's true
 
@ssube: sorry brain is fried.
can you show me code?
 
we have that. foo || bar
 
I'd try fried brain. I mean, not human brain, but try everything once.
@Luggage it's actually &&
don't ask how it makes sense
 
Blah. Found out today that 1 + NaN || 0 === 0
 
I'm not even sure if I'm right
 
7:31 PM
I thought it would be equal to 1...
Failed QA
 
1 + NaN === NaN
Well, not actually
since NaN !== NaN
this is why we need jquery
 
btw I figured it out, it was the stupid files...they were not utf-8 encoded haha
 
sorry 1 + undefined || 0 === 0
 
@Neal Operator precedence?
 
I had to change it to 1 + (undefined || 0) to get the right result
Yea I thought it was right to left @copy
 
7:32 PM
Called it
 
Boo
 
Well, you should know the precedence of all operators by now
 
I always thought PEMDAS. but there is so much more
What are they in js @copy?
 
where is || in PEMDAS?
 
I'll try
 
7:33 PM
@Neal Why would it ever be right to left?
 
updated riskyclicker.com - records the clicks now so maybe after a long time I can verify if users are clicking past nsfw stuff as sfw
 
and also automatically fail on those images as well
or game over, rather
 
I just call you a dirty liar in a notification
 
emphasis on dirty
 
@Luggage lol it isnt
 
7:35 PM
eventually collect the most-nsfw pictures
 
@ndugger I always assumed that if not PEMDAS then right to left.
 
That makes no sense at all
 
@Neal why did you assume that? Did you even try to read the docs?
 
Maths has never been right to left, at least not in the western hemisphere
 
@ssube I cannot say I have seen them. Can you link me?
 
7:36 PM
. ! ~ unary+ new * / % + - << >> >>> == && || & ^ | ?: =
 
urinary
 
@ssube I track images by imgur id and assign a score to them. voting effects the score
very very simple way to do it
 
I might add in weights later on
 
Almost got it
Bitwise are higher than logical
And forgot some
 
7:38 PM
@ssube ....
 
@copy I still love you
 
@copy like ,, the best operator
 
I, guess
 
@Neal maybe try searching for stuff on your own
 
lmgtfy is the most Minnesotan website ever
 
7:39 PM
@ssube or or crazy story... help people out
:-)
 
@ndugger is it really? How interesting.
> Don't ask for help before doing the research yourself: If my google search returns your answer in the first three links, you are doing it wrong. (source)
 
@ssube I never asked for any help. I was telling the class something I learned today
 
I'll out passive-aggression you any day of the week, pal
 
6 mins ago, by Neal
@ssube I cannot say I have seen them. Can you link me?
@ndugger I'm not your pal, buddy.
 
7:42 PM
@ssube Im at my full time job. you were trying to tell me information. if you want to, fine, if not dont be an @$$ about it please :-)
 
rightclick ignore
 
I was just telling the class about something I learned. Take it or leave it
@KevinB Could do that, but for some reason this person is a mod in this room, so maybe he has some modicum of respect for people, but you never know :-)
2
 
WWIII
 
@KevinB ignoring ROs is generally a poor choice, especially if it's because they tell you not to vamp...
 
otherwise you might feel compelled to respond and get kicked.
 
7:45 PM
In the year 2069, people will tell their children about how WWIII started because someone didn't RTFM
 
:D
 
Anyways @KevinB how has your day been?
 
Good enough, not getting enough done tho
 
Then get off chat
I'm so fucking sassy today
 
@KevinB Yea... I was supposed to have a prod release earlier today. But I caught that weird right to left bug. Fun times. Hopefully will go out within the hour or tomorrow morning
 
7:48 PM
i finished up a launch yesterday, so now i'm going through a backlog of data entry shit that needs to be caught up on
 
Was calculating peoples income as 0... made me nuts just to find that it was a one line issue :-(
@KevinB fun fun.
Jira tix galore?
 
60 clicks.
 
@rlemon PARTY!!!! off by 9
 
sup folks
 
@ShotgunNinja WWIII
 
7:50 PM
Does this have anything to do with the DNC?
 
@ShotgunNinja Does it?
 
@Neal God, I hope not
though at this point
 
@ShotgunNinja Feel the TURN
 
Dude, if he even jokes that he wants the Presidency, I'll fucking write him in
Long way till November
 
I really dunno who I am voting for in the slightest
 
7:52 PM
Bernie's chances of winning died around the same time as Harambe
 
I think ill just vote Pikachu and be done with it.
 
Then Jill Stein, then Hillary, then Johnson, then a dead cat, then inanimate objects.
Never Trump.
 
@ShotgunNinja but if Stein isn't elected, she's going to run into the White House to get arrested as a publicity stunt. :D
 
Sounds like my kind of candidate
If you're gonna throw your vote away, at least throw it to someone that has a chance of winning or something
 
so Hillary?
 
7:54 PM
Unfortunately, yeah
 
@ndugger re-using jokes?
 
I'll take her over Trump, and it pains me to admit it
our electoral process is a massive joke
 
@rlemon It's my joke, I've just used it twice.
so yes
 
@ShotgunNinja she's not a blatant racist, so...
 
@ndugger #toosoon
 
7:55 PM
We finally get a halfway-decent candidate and he gets destroyed by his own party
 
at this point, that's all I want from a president
 
I'm in full support of Bernie remaining a Senator, though
At least there he can do some good
 
in Congress?
 
In the Senate
 
he'll be lucky to do anything, much less something good
 
7:56 PM
He'll probably "shoot himself twice in his head" and be declared a suicide for opposing Hilary
 
congress is pretty dedicated to not doing anything
 
Hill gets elected, then shit hits the fan and she leaves office but not before securing her pardon from the person she appoints her VP <- my best guess.
 
Sanders is already in the Senate, as an independent
People tend to forget that
 
do they? I've seen a lot of focus on him being a senator with plenty of experience
wasn't that one of the points his platform was built around?
 
7:57 PM
Eh
 
> Hey, I can compete with Hillary, I've been a senator forever.
 
@ShotgunNinja found the Canadian
 
@rlemon what is that all aboot?
 
Honestly, President is cool, and leads the direction of the U.S. government, but Senator has almost as much power (and VP has decidedly less)
Actually, I'm from Wisconsin
close enough, though
 
@ShotgunNinja so you're a mean, drunk Canadian who smells of cheese
 
7:58 PM
@ssube oh... you edited. runs away
 
No, I'm from Milwaukee, which means I'm a nicer-than-mean, drunk Canadian who smells of cheese.
 
but Milwaukee smells extra bad
 
we're all alright
 
took the bus through there once on the way to Chicago and omg
 
Well, if you go by Milorganite
 
7:59 PM
wait, that's Cleveland
 
You probably took the Hoan Bridge, which goes in front of the Milwaukee Organic Nitrogen plant
 

« first day (2110 days earlier)      last day (2837 days later) »