« first day (1846 days earlier)      last day (3120 days later) » 

12:00 PM
@jAndy sharepoint service
 
if, for whatever strange reason, you really need to rely on a trial&error, it should look like:

    var timerId = setInterval(function() {
        var myimg = $('.o365cs-me-personaimg');

        if( myimg.length ) {
            clearInterval( timerId );
            // do whatever you want to do with that image
        }
    }, 2000);
 
@jAndy THE GAME, Yes THE GAME !
 
I guess I lost
o/
 
thanks that looks like what I need
 
But why would you use a setInterval and not reschedule with a setTimeout?
(function checkImage() {
  var myimg = $('.o365cs-me-personaimg');
  if (!myimg.length) return setTimeout(checkImage, 2000);
  // do stuff
})();
 
12:07 PM
I guess for that task setInterval is just fine, don't see any scenario where intervals could overlap here
 
am using both actually
settimeout to check after 20secs
plus the 10 seconds the setinterval will check cause the image always seems to load around 30 seconds later.which if not check again until it finds
setTimeout(function() {
				    looptimer();
				}, 20000);
then the code @jAndy corrected up there.
 
I wrote "remove recycle bin from desktop" in Cortana's input area and it popped the control box to remove it instantly. impressive.
 
@RoelvanUden what is the name of that type of function you used.one that calls itself? is it recursive
 
Nvm
 
12:22 PM
Enough with the BS. It's easy to down-vote my question. The simple answer is: such a section exists, you just need 500 rep to participate. Just because you don't know that, it doesn't make you more (Fill with any positive adjective). — Dani Springer 33 secs ago
 
aww, no way to move a window to another workspace from keyboard :(
 
OP is mad 'cause his meta question's getting dv'd
 
@jarvis I think there is
 
@Cereal :O what!?!
 
@jarvis Can't seem to find it. Could have sworn there was
 
12:31 PM
ok :( /me boots back to Linux and works
 
oh boy
I'll never understand why strict mode removed the ability to access function.caller property
it was soooo useful for debugging and error handling
 
sigh, all the rare events in which I leave windows impressed, the update thingy saying "Don't turn off your PC" comes up and irritates the hell out of me.
Why the actual fuck is it still present in windows 10
 
Windows 10 isn't very good. That might be why.
 
Even better, it will reboot by itself if you walk away from your computer
 
Or force a reboot "Now or in 20 minutes" with no other option
 
12:39 PM
That's not the point. I want to boot into another OS, quick. And that thing prevents me from doing that.
 
> Would you like to pick a more convenient time? We detected that you rarely use this computer around <insert current time here>.
 
@AwalGarg Why not run Windows in a VM?
@OliverSalzburg I never got that question.
 
@AwalGarg turn off windows updates then
 
@RoelvanUden It's in the Windows Update dialog
 
@Cereal ahoy! that is such a good option! but... but! there isn't a way to do that in windows 10!
 
12:44 PM
@AwalGarg Hah. That's funny. You can defer them, though. That's progress
 
@AwalGarg Block the Mircosoft Update servers in your firewall
 
I will poke around that next time I boot up windows. maybe next month.
thanks
 
0
Q: How do I access `status` from this `object` being shown in console?

user4904589index.html is: <!doctype html> <html> <head> <meta charset="utf-8"> <title>Demo</title> <script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.4/jquery.min.js"></script> <script> $( document ).ready(function() { var obj = $.get('tmp.html'); console....

 
@user4904589 Timing issue
 
1:03 PM
@AwalGarg iirc there is a switch
in shutdown command
 
Hello, I need some help ... is this statement if($('body .commenting-demo, .forums-demo').length > 0) equal to if($('body .commenting-demo, body .forums-demo').length > 0) ?
 
@PavelValeriu Welcome to the JavaScript chat! Please review the room pseudo-rules. Please don't ask if you can ask or if anyone's around; just ask your question, and if anyone's free and interested they'll help.
 
@PavelValeriu Depends.
 
1:20 PM
I need to find in DOM if body has a div with 'commenting-demo' or 'forums-demo' classes
 
Another fine day in neverland.
 
@PavelValeriu document.body.querySelectorAll('.commenting-demo, .forums-demo')
 
@PavelValeriu generally no, in practice you can drop body from almost every selector since you'd almost never have something with a specific class in the head anyway.
 
If he only wants to know if that div exists, then querySelector instead of QSA
 
@Cereal he wants one or both?
 
1:29 PM
@rlemon he just said he wanted to know if a div had them, not that he wanted to retrieve it
 
I understood it as he wanted to know if both existed.
 
I just want to see if there is a div with one of these clases
classes*
 
No, I think he wanted to know if there was a div on the page with class="commenting-demo" or class="forums-demo"
 
No, I think you're a smelly hippo
 
anyone knows if I expose a piece of cypher and it's plain text like "+QLGa+pZO1ZaUpPJBwo=" == "hello" that's enough to compromise my encryption key?
 
1:32 PM
I think the general rule of security is if you have 2, you can get the third
 
but how do I do know if I entered the correct key when I decrypt something? I have to check the decryption output against something right?
 
hey guys quick question is i assign a click event using jquery .on
 
@Vitim.us You don't know
 
@Vitim.us generally - you don't get junk back.
That's how you know.
@MatthewFlynn google it.
 
and later reassign it does it overwrite the previous click event?
 
1:35 PM
@Vitim.us you generally compare two cyphers
 
@MatthewFlynn write a quick check, or google it.
 
The input necessary to create a cypher that is equal is still unknown
 
@MatthewFlynn why not try it out
 
though if you use something well-known, then yeah, probably not the most secure thing ever
 
just thought I would ask as the jquery docs didnt seem to clarify it
 
1:36 PM
you could test this in like two minutes on jsfiddle
@SterlingArcher Morning Bruh
 
I'll be quiet
 
@SomeGuy yes
@SomeGuy @ircmaxell used to give some of them away at a conference
 
@KendallFrey Did you know that there are more stars in the milky way galaxy then atoms in the universe?
 
@FlorianMargaine Oh, that's neat! Is that what inspired your project?
 
@Neil lets say X is my cypher then I try the the K key for decryption I get output A
 
1:41 PM
@rlemon ?
 
@Vitim.us So you're comparing X to Y..
Until you get value B that creates Y, you're never comparing Y to Y
 
@SomeGuy not necessarily, but I knew about it before doing hermes, yes
 
still, if security is an issue, don't take chances
 
Computer overclocking is done by changing the system time to several hours to a day later, forcing the CPU to speed up to compensate for lost time.
 
1:45 PM
@Neil It's something that doesn't need to be secure, but I'm trying to get a grasp of how to implement something secure.
 
Today's goal is not to use any jQuery.
 
@Vitim.us Don't keep passwords on the server, only one-way hashed passwords
To check to see if a passed password matches a user, hash the password then compare
It also means you can't tell a user his or her password if you needed to, but there are ways of getting around that
 
> You can't see your own shadow in a mirror because mirrors only reflect light and shadows are an absence of light.
I like the thought that went into that
 
1:50 PM
with promises, do rejects behave like a return?

 if (!bad) {
          reject('foo')
        }
        resolve(x)
in this case I don't want resolved called
if rejected
 
Reject is just a function.
 
wat
 
why does \d+\s+?%? match for "50 %" but not "50%" ?
 
1:53 PM
isn't \s space
 
shouldn't that ? after \s+ include non whitespace
 
+ = 1 or more
 
@jAndy maybe group the \s+ in braces?
 
@jAndy only with a *
 
@Neil It's not the trivial server-side case, I have a piece of information encrypted using AES like CypherA -> keyA -> OutA the key is not stored anywhere but When I use someKey on cypherA how I'm supposed to know OutA is supposed to be what it is. Without comparing a known cypherB and outputB that has been encrypted with the same keyA.
 
1:54 PM
so it would be \d+\s*?%? ?
 
yes
 
hmm so I have to read up the difference between plus and star
 
@jAndy +? is not optional +. That would be *
 
Yea
 
1:55 PM
that's the only difference
 
+? is non-greedy +
 
+? is no.... nevermind, kendall got it
 
those are under "quantifiers" in the pane on the bottom right in regex101
 
@SuperUberDuper No, they don't
 
1:57 PM
@OliverSalzburg oh, so I need to return
 
alright thanks for assist assisters players.
 
@SuperUberDuper i don't think it matters. whichever is called first is the true answer, reject or resolve. A return; won't hurt though, since no other 'answer' matters
 
but what happens if resolve is called after reject?
 
nothing is called after return
oh
 
1:59 PM
soz reject
 
I think nothing, as I just said.
 
cool
i will forgoo the return and hope others trust the behavior
 
you could also look up happens when you call reject or resolve on a "fullfilled" promise
instead of trusting a carry-on.
 
actually I need to return as to stop code with side effects
 
@Vitim.us The important aspect is that it is one-directional
Same inputs give same outputs, and you cannot retrieve the inputs
 
2:03 PM
I suppose I could just do return reject()
 
you don't know that output A is the result of input alpha, but you can say that input beta is the same as input alpha if output B is the same as output A
 
reject();
return;
someCodeIdontWantCalled;
so above I need to call return to force exit?
 
return reject();
 
2:10 PM
@rlemon good morning! and LOL
 
@SterlingArcher do you start work at 9?
 
Yup yup
 
bastard..
 
lol hey i used to start work at 10:30
 
@SomeKittens garlikov.com/Soc_Meth.html (teaching/teacher related)
 
2:15 PM
lol meth
 
hey Americans, free Taco Bell this morning
/me goes to get his
 
@Loktar this is the most american thing I've read in a while.
:D
 
user3119231
Hello, Ladies and Gentleman. I am NOT a girl.
 
user3119231
So stop it @Micaela
 
@Maurize that was random
 
user3119231
2:20 PM
 
user3119231
It was necessary.
 
Because your pic screams femininity?
 
user3119231
<sarcasm>
 
</sarcasm>
 
<sarcasm/>
 
2:24 PM
Micaela is a bit of a troll
 
</jigglypuff>
 
user3119231
Man I have to visit school for 4 weeks. Main theme: PHP
 
I'm not correcting that
 
user3119231
Because: "JS is not a real programming language"
 
2:25 PM
school?
 
"free stickers" at a site with domain "notifuse"
 
user3119231
Yes, every 4 weeks - for 4 weeks
 
you're young
 
user3119231
I am 21.
 
2:25 PM
So you have to perpetually go to school for php forever?
 
sometimes I miss school
 
user3119231
@rlemon totally agreed
 
user3119231
@SterlingArcher 3 years php.
 
crl
me too Florian
 
@rlemon : you have your own wipe-tears-with-money gif, with yourself
 
2:26 PM
It takes 3 years to learn PHP?
 
@KarelG sometimes I like to switch it up
 
i got taught PHP in one semester
 
user3119231
The teachers think so.
 
not mastered, but i got the language.
 
I taught myself PHP from the back of a cereal box.
 
2:27 PM
buy better cereal
 
I taught myself PHP
 
I touch myself with PHP
 
Was the first language I ever learned
 
nvm
 
not java ?
 
2:29 PM
not basic?
 
shh :*
 
at most uni's, java got used to introduce students in the hello world
 
I learned enough PHP from w3schools in 3 days to write a blog engine :P
 
@KarelG yep, in my uni they used java to introduce us to OOP
 
a non secure blog engine yes
 
2:29 PM
!!afk oil change.
 
and python for algorithms
 
Yes, a very very horribly coded insecure blog engine
 
Learned PHP to help code a game, then learned good OOP skills at college with Java, then I dove into JS head first and never came out
 
currently motorboating JS
 
user3119231
Finally you guys understand me :D my class mates are more like: "JS? nah, learned jquery."
 
2:31 PM
this is why school shootings happen
 
too soon?
 
@AwalGarg I am updating it as we speak
 
cool*42
 
the package good sir
although i just realized i cannot use sourcemaps
 
2:32 PM
> sardathrion 8 points : 2 replies : 23 minutes ago reply
Stay safe: condom + mustard + second condom. If one condom breaks, either you or she will know. ^_~
lmao that's a very dangerous game to play...
Especially if it's Dijon mustard
 
and a coarse mustard will just hasten that
 
uhm
 
then you have to put your covered willy in a pot of mustard
if you didn't forgot to cover that
 
Anyone else notices this 100 megs partition windows creates labelled "System Reserved"? I removed it and everything works fine anyways. Not sure what to do.
 
2:35 PM
Is there a proof that x + x = 2x?
 
yes
let's asume x = 1
1+1 = 3
half life 3 confirmed
 
@KendallFrey other than induction?
 
that got proved by induction
 
let's assume x = √i
 
user3119231
return arr.reduce((b, c) => parseInt(b.innerHTML.split(" $")[0]) || b + parseInt(c.innerHTMLsplit(" $")[0]), 0) //isnt valid js? b.innerHTML is undefined (?)
 
2:38 PM
basic step: x = 0: 0+0 = 2*0 <=> 0 = 0
induction hypothesis: x + x = 2x
(x+1) + (x+1) = 2 * (x+1)
x + x + 2 = 2 * x + 2
ect
 
atleast for the second iteration, b is a number which doesn't have .innerHTML property
 
x=2; 2+2 = 2*2; 4 = 4
 
that's a stepwise induction
 
7*0 = 42*0; 7 = 42;
 
you just hadddd to make it smart.
 
2:39 PM
using induction hypothesis is with P(x) is proven, then show that P(x+1) is also true. If so, then it got proven by induction
 
@KarelG Is induction valid when using non-natural numbers?
 
Let's assume public int x { get { return x++; } }
 
the induction works only for natural numbers. But you can expand it ofc.
 
how?
 
extends
 
2:42 PM
I was never taught proof by induction :(
 
I still don't know how to FOIL or why that would come in handy.
 
class proof extends induction {
  check () { return true; }
}
 
Why not just return true?
 
@JoshHarrison Welcome to the JavaScript chat! Please review the room pseudo-rules. Please don't ask if you can ask or if anyone's around; just ask your question, and if anyone's free and interested they'll help.
 
2:45 PM
what?
 
if i recall it right:
1) expand to negative numbers: y = -x for all x element of natural numbers except zero. Then use y. (usually same proof)
2) further expansion: transfinite induction (or something)
 
Ugh tinder is full of ugly people today
 
@SterlingArcher he says as he's on tinder
 
never used tinder
 
2:46 PM
@SterlingArcher He called you ugly
 
crl
@KendallFrey in the Real field?
 
It's good for banging
@SomeGuy sunovabitch
 
crl
it's the definition of multiplication law
 
@Cereal I'm actually very good looking tyvfm >=(
 
@SterlingArcher Hey you said it, not me
 
2:47 PM
oh god, I am a man whore.. cc @rlemon you're right
 
@crl perhaps broader even than complex numbers. I was thinking about this in the context of infinite sums.
 
crl
but.. infinite sum of a non-null constant element is always infinity
else it's a Sigma(x_i) for i=0..inf
 
@crl nah, wasn't thinking constant elements
 
@SterlingArcher womanizer*
 
:26701524and quite modest as well
 
2:52 PM
@rlemon to be fair I think they're maninizing me
 
I did both
:D
 
lol
Zing!
 
oh sorry, you need context
incoming ping
 
uhh.. pics or it didn't happen??
:P
 
2:53 PM
Are you sure you want to continue connecting (yes/no)? y
Please type 'yes' or 'no': y
Please type 'yes' or 'no': yes
/me so lazy
 
I WAS A LITTLE BUSY, LEMON
imgur.com/gallery/FqqTgSN these are fantastic
 
@SterlingArcher I think the hair should be blue
 
#triggered
 
crl
porcurl null lul dull?
 
Why should it be blue?
Because she's a gender neutral being she has to have blue hair?
STOP OPPRESSING ME
 

« first day (1846 days earlier)      last day (3120 days later) »