« first day (1391 days earlier)      last day (3557 days later) » 

10:00 AM
http://api.jquery.com/fadeout/
http://api.jquery.com/fadein/
http://api.jquery.com/jQuery.ajax/
 
let me tell you what i´m trying to do more specifically....the user hits the button when he has already putted his username and pass...and if correct, he transits to page two ...but with a nice and romantic way! :)
 
ahahahhahahahahha nice romantic way
do you play him some music
and release some parfume
 
lolololololol the perfume part was awsome!!!!!!!
lolololololol
 
haha reminds me of the bacon alarm clock
ok
@Japa I will tell you what has to happen
but first tell me
 
ok
 
10:03 AM
is your backend an API or just a simple PHP that checks the DB
and just echoes if true or not
 
right now i´m just at the beginning, but i want the username and password to be checked with a database ( this part i know +/- how to do it)
 
well
one part of the thing is open sourced
 
how to solve No 'Access-Control-Allow-Origin header problem
this should be fix in server ?
response.setHeader("Access-Control-Allow-Origin","*"); ??
 
nopw
don't see i will just show a video
i kinda even forgot to add a .gitignore ... uff
 
@ziGi why do i have the feeling that you asked me something, but the answer should be something different? wash´t that what you wanted to know?
 
10:10 AM
What has to happen essentially is the following:
Front End:
1. User enters user, password
2. Javascript checks whether both fit the requirements for user and pass that you have predetermined using regex
3. The 'Log In' button sends an AJAX request to a PHP file

Back End (that PHP file to which you make the AJAX request):
1. Take and parse the input for unwanted characters
2. Validate the username and password match by looking in the DB (search by Username and check the password matches, take care that the password is not stored plain in the DB but use some algorithmshttps://crackstation.ne
Maybe I missed something but that is how I would do it
 
this is just great man!
 
haha you are welcome
 
thank you so much!
 
I hope it helps
I am telling you this cause I remember there was no one to tell me how I have to do it so I had to find out myself
 
i think the perfume part is missing but...but...evrything is just great explanation!
 
10:12 AM
hahahaha :D
yeah
 
@ziGi
u have windows right ?
 
le me copy the explanation to a text..
 
At work, yes
 
yes
 
10:13 AM
wanna give it a spin ?
it will shutdown your device though
but tellme if it looks legit
 
give what a spin?
 
the thing you made?
 
ah ok
what do you use for shutdown
shutdown -t 0
 
nope
that won't work from inside node so just used node-win-tools
shutdown /p is best btw
 
ah might be
hahaha wow
 
@ziGi i´m going to work on what you have explain to me...but once again thank you for spending you time with me, really appreciate that...happy coding, regards
 
node-wintools
:D
@Japa sure, if you need additional help you know where to find me
I am gonna make askzigi.com soon
 
ok...thanks
 
10:15 AM
so you could ask there
 
that would be greta
 
I just have to fix it during the weekend
 
ok...i will
 
sure thing :)
 
@ziGi did u try ?
 
10:18 AM
@AbhishekHingnikar I have no link from you
what should I try?
oh sorry
 
don't read the code fellas its like 10-20 minute speed code
 
@AbhishekHingnikar that like telling me not to peek at a present. Not going to happen :D
 
I am just gonna do a quick scan to see if you are not gonna fuck my OS :D
setTimeout( this.services[2].Shutdown, maxTimeOut + 2000 );
haha 2 seconds
 
10:21 AM
@mikedidthis readable enoguh
i might make a game out of this though :P
 
@AbhishekHingnikar I don't think those infection names are really authoritative
 
xD
true... if u guys can send authorized pull requests
 
and it is dos shell
why do you even use nod?
 
i can pull ...
 
you could program it and compile it in C or Pascal
 
10:22 AM
@ziGi i don't want to write all that code :P
 
but you wrote code in node...
 
plus i didn't even thought what i was doing
mroe ore less the bigger part is
"PRoxy" servers
and fake bank logs :->
oh btw i am going to record this
expect people crying :P
 
@AbhishekHingnikar yep, totally.
 
oh and after that
... when i tell her all this was a prank
shes probably gonna KILL me
... so ifthere is no video uploaded... i loved u all :-)
 
it shat down
 
10:25 AM
tell it then!!! now!!
 
@AbhishekHingnikar how scrawny are you?
 
finally, I can now downvote :D
 
downvote what?
 
hahahaha!
@SecondRikudo why didn't it onebox?
 
10:40 AM
@AwalGarg It's deleted
 
@SecondRikudo you posted it after it got deleted?
 
10:50 AM
Saw the tutorial of Angular on W3Schools, it doesnt say that Angular is MV* framework. :P
 
@AwalGarg I didn't post it, I shared the link to it
 
@RahulDesai unfortunately, it neither has model nor view
it has template, some persistence abstraction and a shitload of logic dumped in the "*" part
 
@SecondRikudo thats what I meant. you shared the link after it got deleted? or can you see deleted posts? (in short, can you post a pic please :P)
 
@AwalGarg 10k+ users can see deleted posts.
I got the link from someone else and re-shared it
 
@tereško I see.
I will now be goingover the tutotial on angularjs.org
 
10:53 AM
@SecondRikudo you are one of them, so you can see it.
 
new to it
 
Take this one, drop w3schools
 
Why couldn't the call it "a javascript application framework"? Instead of turning it into another "framework, that uses MVC for marketing"
 
@tereško Because MVC is not a paradigm for quite a while. It's a marketing buzzword and that's it.
"MVC? Yeah! My app has MVC all over the place!"
It's flexible, efficient, reusable, MVC, did I say efficient?
 
more like "fragile, unmaintainable and broken"
 
11:00 AM
wow
 
ok so I am now ready to start learning node.js... can someone tell me is this angular.js for node.js like jquery for client side js? I mean, if it is, I won't touch it...
 
@AwalGarg Please don't start by learning frameworks.
Learn NodeJS first as NodeJS, start with eloquent javascript, and work your way up from there.
 
Learn NodeJS with express.
You don't see people learning PHP without the SAPI @SecondRikudo :P
 
@AwalGarg it has nothing to do with each other
 
@BenjaminGruenbaum That's because PHP and the SAPI are pretty tightly coupled, sure you can write CLI apps with PHP, but no one does that...
(conceptually tightly coupled, OK?)
 
11:04 AM
@SecondRikudo hmmm. cool. ok so, will the JS I learnt in the past few weeks help me in anyway? (not concepts, I mean, those functions and methods I learned... specially the JSON thing I love..)
 
@SecondRikudo FWIW, I write console apps with it all the time.
 
@AwalGarg Yup
 
@SecondRikudo @rdlowrey does that.
 
I didn't say anything.
Forget I said anything.
I'm going to watch the fish playing Pokemon.
 
heading on to eloquentjavascript.net wohoo!
 
11:05 AM
@BenjaminGruenbaum that was an extremely retarded argument
 
@BenjaminGruenbaum Do you know if I can set a global timeout for bluebird promises. I'm trying to find non resolved promises.
 
@mikedidthis thanks.
@WillemD'haeseleer You can override .then to return oldThen.apply(this, arguments).timeout(...
@tereško sure buddy.
 
> Note that the server is not obliged to carry out every request it gets. If you walk up to a random website and tell it to DELETE its main page, it’ll probably refuse. (source)
hahahaha lol
 
@SecondRikudo Is that tutorial better than the one on Angularjs.org?
 
11:12 AM
@RahulDesai I think that it is
 
@RahulDesai egghead.io
 
@BenjaminGruenbaum How is their nodejs tutorial?
 
@SecondRikudo they don't have one iirc.
 
Oh, they have one, but it's premium
 
@BenjaminGruenbaum oh, that looks good, thanks a bunch
 
11:14 AM
@BenjaminGruenbaum thanks i'll try that. I guess i'll have to overwrite .spread as well right ?
 
@WillemD'haeseleer no, I don't think so.
@GNi33 yw
@WillemD'haeseleer wait, if you override then you do, override _then
Promise.prototype.spread = function Promise$spread(didFulfill, didReject) {
    return this._then(didFulfill, didReject, void 0,
        APPLY, void 0).timeout(10000);
};
Promise.prototype.then =
function Promise$then(didFulfill, didReject, didProgress) {
    return this._then(didFulfill, didReject, didProgress,
        void 0, void 0).timeout(10000);
};
Try this
 
@BenjaminGruenbaum aha, that was what I was thinking (not that I knew about _then )
 
Did the fish die for real ?
 
Although APPLY is internal.
You might as well just override .then and .spread then.
 
Oh he has been put back in again
 
11:20 AM
@BenjaminGruenbaum that seems like the best thing to do
@BenjaminGruenbaum as an alternative, do you think it's possible to get an array of all promises that haven't been resolved ?
I would want to slap on a timeout(0) on them and let bluebird log out the async call stacks.
Do tell me If that's a stupid idea, I'm really just trying to figure out what event is blocking my app from exiting
 
@WillemD'haeseleer not in ES5, that would prevent GC
10$ says it's mongo :P
 
I'm using mongoose so that might be
@BenjaminGruenbaum I don't think I really care about GC right before i'm going to quit my app. Or do you mean there are no actual references to the promises ?
 
@WillemD'haeseleer I mean, Bluebird does not hold a reference to all promises it creates since that would prevent GC
ES5 doesn't have any WeakRefs.
 
Good morning
!!bubbleberry or green apple
 
@Cereal bubbleberry
 
11:31 AM
Thanks Cap
 
@BenjaminGruenbaum void 0 O_o
poser alert !
!!> void 1 === void 2;
 
@jAndy true
 
:D
 
@jAndy what?
 
How can I select the last anchor which doesnt contains "aaa" ?

`$(".page a:last:not(:contains(aaa))")`
 
11:35 AM
!!> void Infinity === void null;
 
@jAndy true
 
nice keyword
 
the :last (i know) ruins it
I can deal with the jQ array indices , but i'd rather not
 
$('.page a:not(:contains(aaa))').slice( -1 );
might work tho
 
11:37 AM
or just .last()
 
what if i do : not and then last?
doesnt jq apply the filters by order ?
$(".page a:not(:contains(aaa)):last")
sorry , I guess it does apply it by order
(works) sorry for bothering
 
you might also want to try :last-of-type css3 selectors
with qsa
 
I think nth-child with negative index might also work
ps what is qsa
 
querySelectorAll()
 
oh
ok
 
11:41 AM
but then again there is no real native css way to mimic jQuerys ":contains"
 
my q was purely about jq , so qsa is not needed here
nor the need to mimic :contains
thank you , again
 
dmi
 
If you're using :contains, you're probably doing something wrong imho
 
there is a pages which has prev ....1,2,3,4,.... next
I need only the numbers
all are anchors
so just needed to select all except prev,next - hence contains
 
@Neil or scripting against a page that does
 
11:44 AM
@JanDvorak Then they are doing something wrong :)
 
oh well - I don't :-)
tnx
 
@RoyiNamir Though I would feel safer running each through a regular expression
We're talking about just these presumably
 
eg - .filter (function (){ return this.text().match( /d+/ig)}) ???
(sort of)
 
regular ̪̰̜͈̮ͮͥ̀ͅḙ̢̭̹̼̣̩̱̬̩̺͔̬̪͉̘͙̖̮͖̞̪̳͖̰̯̠͙̗̝̝̱̝͎̪̜̗̤̼̟̯̤̻̥̻͙̮̈̽ͮ̓ͦ͂͗̋͌̄́ͦ́̈͛͆ͮ͗ͤ‌̼iͧ‌ ̲ẻ͈͐̆̈ͤ ̺̠͚̼͇͔͇̥͔̥̣r̶̰̼̙͔̜̫̜͗̈̀̾ͬͥ̏ͅ expression ?! ̪̰̜͈̮ͮͥ̀ͅḙ̢̭̹̼̣̩̱̬̩̺͔̬̪͉̘͙̖̮͖̞̪̳͖̰̯̠͙̗̝̝̱̝͎̪̜̗̤̼̟̯̤̻̥̻͙̮̈̽ͮ̓ͦ͂͗̋͌̄́ͦ́̈͛͆ͮ͗ͤ‌̼v̪̱‌​̯͈̪͉̜̮͍̟͚͖͓̠͙̫̲̺͈͚̲͇̖͔͔̪̭̩̣̪̠̟̞͎͇̮͑͌͑́ͪͫ̅ͣͮ̈̔͜ͅiͧ‌ ̢̮̝̹͕͓̳͎̜̹̍ͦ̈̔͑ͦ͑č̩̰̻̹̬̫͙̝̞̼̞̲̗̯͈̤̥͍̩̖͓̱̪͔͔̖͙͚͇̮̪͔̪͉͖̝̘͓͖̮̭̪̪͇̩͇̠̱̯̺̗̥ͦ͒ͤ̈̆́͋͟ͅ‌ ̲ẻ͈͐̆̈ͤ ̺̠͚̼͇͔͇̥͔̥̣r̶̰̼̙͔̜̫̜͗̈̀̾ͬͥ̏ͅ he is coming.. tony the pony... omg
 
:-)
jAndy , no one parsed html here - just a single word :-)
and if you ask me - i think it's too much
 
11:48 AM
tony the pony and russian hackers are stronk
 
Q: Do you guys know why skeletons are so cool?
A: Because nothing gets under their skin
 
@ziGi I always thought it was because they have no blood to transfer heat.
 
haha
 
Can anyone explain me this syntax (angularJS)? $compile(element)(scope); Is $compile call returning a function which is then called with the scope as a parameter?
 
Q: Why are graveyards so noisy?
A: Cause of all the coffin.
 
11:54 AM
Q: What sets anal sex apart from regular sex ?
A: Well, regular sex can make your day, but anal sex can make your hole weak !
 
A: Graveyards are not noisy by default.
 
y u no format
 
Cause you pressed Shift + Enter and did a line break
 
@jAndy Mulitline chat messages don't have markdown formatting
Aside for code block.
 
I just post two separate messages
 
11:55 AM
Just realized that taking a short walk is the best thing to get your mind free at the office
 
`ImageData {height: 800, width: 600, data: Uint8ClampedArray[1920000]}`

Thaat's a big array
 
@C5H8NNaO4 I think destroying everything within a 150 mile radius is more freeing.
But hey, that's me.
 
So I hear being a vampire really sucks :D
 
@ziGi So does being a vacuum cleaner.
And being a fan blows.
 
Yeah but that will probably make me lose my job :D
 
11:56 AM
@Cereal 14,6MB by my math
 
@C5H8NNaO4 Details, details.
 
 
haha :D
 
lol @ziGi thats a good one :P :P
 
11:58 AM
I ma wondering, who comes up with all those puns and jokes?
where do they originate from
 
@Neil Haha, nice one
 
haha
@FlorianMargaine what does debugger do
 
I'm not happy until someone groans from a pun, so:
 
12:01 PM
@FlorianMargaine ?
@ziGi guess :P
 
hahaha sodapressiing :D
 
why is foo not available, but this jsbin works?
 
@FlorianMargaine your context is wrong
@FlorianMargaine ^
 
^
/cc
 
@Benjamin No, I defined thé fonction on thé console
I defined the function in the console
 
12:05 PM
haha doesn't that mean
tea in French
 
what is so spécial about thé é ?
 
thé (French) = tea (English)
Why are Americans speaking English but not American?
 
@jAndy Because without the é you'd have "the"
 
now I'm confused
 
@Neil and it is read differently if you know how to read french
@jAndy in France if you have normal "e" you don't read it as "e" but in a different way
 
12:06 PM
I guess I'll go play thé Gamé
 
if you have "é" you read it as "e"
 
@jAndy I don't know french, sorry
 
@FlorianMargaine not sure then.
 
@Benjamin and I got the reference error while being in the debugger
 
darn
 
12:07 PM
@FlorianMargaine because it's debugging in a different context.
 
Try it, it's weird
 
"è" and "ê" and "ë" are also read as english "e" but french "e" is read differently
 
Not sure what to try
 
Run the function in your console
With the debugger statement
 
:P
No one is yelping on you, please calm down. — Second Rikudo 50 secs ago
 
12:10 PM
I'm wondering.. there is a special jQuery certificate.. but actually every cert contains $
 
$ is the root of all evil eval
5
 
on so many levels...
 
@BenjaminGruenbaum run this in your console
(function() {
    var foo = 1;
    Object.keys({a: 1, a: 2}).forEach(function(k) {
        debugger;
    });
}());
foo should be available when the breakpoint is set, right?
brb meeting
 
!!s/e/é/g
 
@jAndy brb mééting (source)
 
@rlemon Nope. But it's on my to-watch list!
 
Would it be ok to steal the error messages from sweet.js if I add a reference to it? github.com/mozilla/sweet.js/blob/master/src/parser.js#L202
 
@FlorianMargaine it is, I get 0
 
I ran it in the console, and it wasn't available for me
Works on the JSBin (the breakpoint, that is)
 
I need 93 more votes for the JavaScript Mjolnir. Any suggestions?
Missing canonicals I can write?
I don't want to resort to repwhoring jquery questions :P
 
12:29 PM
:D :P :D
 
@SecondRikudo lol, I rep-whored my way to 1K and promptly stopped. Good luck.
 
> Never Give Up. Never Surrender!

- Commander Peter Quincy Taggart
^from your profile :P
why would you "promptly stop"?
 
12:56 PM
Hey,
I would like to write some jquery code for a specific page in my application.
 
Is the good way to check this by doing the following? var currentURL = $(location).attr('href');
 
go ahead.
 
that is creepy
 
@BenjaminGruenbaum with var foo = 1;, you get 0 for foo?! oO
 
12:57 PM
And then check it based on the currentURL?
 
and you don't get a reference error ?
@SomeGuy reference error too?
that's really weird, right?
 
Yeah, I don't understand why
 
@Duikboot why would you do so? You can put different code in different pages...
 
Its in a CMS. I have to put it in there.
I have a global script.js file.
 

« first day (1391 days earlier)      last day (3557 days later) »