« first day (1332 days earlier)      last day (3632 days later) » 

5:08 PM
@SomeKittensUx2666 o/
passport question hombre
you got a minute?
 
morning everyone
 
@SamuraiDio 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.
 
\o
@rlemon sure
 
after a user has logged in, I get them to fill out some more info on first login. so I have a req.user and i'm updating said user on the DB. how do I "sync" that back to the session?
manually add it? or is there some passport fancy-ness
 
You'll want to do that in deserializeUser
It's called on every request
 
5:13 PM
	passport.deserializeUser(function(obj, done) {
	  done(null, obj)
	});
I honestly don't really know what this function does
just that it "works" for me
 
wurt
this is ours:
passport.deserializeUser(function(id, done) {
  connection.query('SELECT * FROM users WHERE id=?', [id], function(err, rows) {
    if (err) { return done(err); }
    done(null, rows[0]);
  });
});
 
so I just have to re-select it :/
booo
> Failed to deserialize user out of session
:/
 
passport.serializeUser(function(user, done) {
  done(null, user.id);
});
 
think I got it
fucking postgres. I always forget it returns a results object containing a rows property
I just go straight for 'rows'
 
@FelixLebel 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.
 
l
Herro
 
How are you?
 
hating Firebase
 
5:42 PM
@saxman01 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.
 
user1596138
So. Does anyone know anything about the oneplus ones. Seem nice but I need a new phone and don't know if I wanna wait
 
What about the firefox one
firefox flame dev, or something
 
Guys, is there something such as jQuery.promise().once().done() ?
Just so it calls it once?
 
Finally upgraded to a N5, so that's about the extent of my modern phone knowledge
 
user1596138
Eh
 
user1596138
5:50 PM
OnePlus is kinda full of shit the way they're doing this. So I kinda just want to go with HTC where I know they aren't just weird jackasses
 
@SomeKittensUx2666 Did you get a notification that I pinged you from a gist comment?
 
Not on GitHub proper
 
@IHazABone 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.
@morkro 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.
@zok 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.
 
6:18 PM
well i don't understand the movie War of the World's at-all
the martians attacked us.
they travelled the solar system and invented things that can do almost anything. and survive anything
how on earth did the civilization didn't had manners ? :-( feels sad to waste hours
 
they died to a virus iirc
because they didn't have the antibodies to deal with it
 
@Pathachiever11 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.
 
user1596138
 
@Cereal They were intelligent enough to make force-fields but not antibiotics ?
 
user1596138
@AbhishekHingnikar ^ relevant
 
6:22 PM
dear lord movie logic :[
 
It was written as a radio show way back when
 
@Jhawins 2G can't stream; summerize
@Cereal makes sense.
 
user1596138
Well. It's Robot Chicken so there's no hope in summarizing.
 
user1596138
And it's not that relevant.
 
1
Q: How to call promise().done() once

Felix LebelI currently have this code: $('#ticket_cats').removeClass("fadeInLeft").addClass("fadeOutLeft").delay(650).promise().done(function() { $('#pending').addClass("active"); $('#archive, #new').removeClass("active"); $('#ticket_cats').removeClass("fadeOutLeft").delay(650).addClass("fadeIn...

 
6:31 PM
@rlemon Could you run the bot? I won't be here for the rest of the week.
 
Any idea why that got downvoted? stackoverflow.com/a/24086587/1348195
 
@BenjaminGruenbaum I'm not comfortable upvoting the answer, since I don't understand the question
 
Ah, that feeling when you realize that your errors are caused by the lack of SELECT permissions on your MySQL user...
-_-
 
@RyanKinal heh...it took me ages to debug a failing UPDATE. Apparently, UPDATE needs both SELECT and INSERT or something like that.
 
6:35 PM
@Zirak o/
 
saws your arm off
 
Hah, nice
 
I didn't ask for an upvote, I asked why it got downvoted.
The question I get, it's phrased poorly.
 
@RyanKinal ugh, reminds me of some prod servers where we can't even rsync
Or find
 
Luckily, it was just me being an idiot when I set up a user for php...
Easy fix, lol
 
6:39 PM
@KeithHolman 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.
 
@Zirak yea she is running on my end already
you have the court order. you get her on weekends and I am mon-friday
don't make me call the lawyers!
4
 
user1596138
 
@Zirak :( all i ever wanted was your love affection car
 
!!go get coffee or work on this css some more
 
@rlemon go get coffee
@rmiesen 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.
 
6:43 PM
Thanks fuzzles
 
no prob bob
 
fuzzles lol
 
@Batu 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.
@thedayturns 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.
 
user1596138
I am renting a house surrounded by corn/bean fields on 3 acres.
 
@atif 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.
 
user1596138
6:49 PM
:D
 
meta.stackoverflow.com/questions/259972/… input? I'm worried my comments may be a bit rude
 
Hi ! I need a little help with a javascript/ jQuery code snippet, that I am using for Ipad
 
Go on?
 
if( /Android|webOS|iPhone|iPad|iPod|BlackBerry/i.test(navigator.userAgent) ) {

			$('#dropdown_menu').css({ "right":'20%'});
			var action;
			$('#mini-cart').bind('touchend', function(event){
				var now = new Date().getTime();
				var lastTouch = $(this).data('lastTouch') || now + 1 ;
				var delta = now - lastTouch;
				clearTimeout(action);
				if(delta<500 && delta>0){
					window.location='<?php echo $this->getUrl('checkout/cart');?>';
				}else{
					$(this).data('lastTouch', now);
					action = setTimeout(function(e){
 
user1596138
Totally called that...
 
6:52 PM
!!tell atif format
 
@atif Format your code - hit Ctrl+K before sending and see the faq
 
hit the up arrow to edit your code please
 
hope this is fine now :) ok let me just explain a little
Here is my code to detect mobile devices, and on single touch (tap), it show a dropdown menu
but on another touch within a half second (500 ms), it considers it a double tap and link the user to another page (checkout/cart)
Now I want to edit this, so when a dropdown is open (shown) on single tap, and user click anywhere on the screen after that half a second, it should hide the dropdown again
 
You should consider jQuery Mobile, it has all sorts of touch events, double tap included, I believe.
 
@WesGrant 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.
 
6:57 PM
Huh.. I think I actually like the ES6 stuff. Only thing I don't understand yet is the "extend" not read it properly I think
 
Frankly! someone on the forum did help me with this code, and I am not even able to see where in this code, my "div" is being shown (displayed)
 
@atif That's because it's not. What you posted only handles the double tap thing.
 
@SecondRikudo ! I am already using too much, prototype.js, jquerymobile, jqueryUI and jquery, so when I include jquery mobile, it breaks everything
 
@atif Well then, maybe it's worth your while to stop relying on so many libraries then, and just take what you need.
I almost exclusively never use a framework, the exception being require.js to control order of execution.
 
in my personal projects I only use vanilla js unless absolutely required. never jquery though
 
7:02 PM
@BenjaminGruenbaum "Won" how?
jQuery is pointless nowadays. No point in bloating
 
Does it mean, we can not extend the above mentioned code snippet to get it working for me?
 
7:18 PM
@MAP 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.
 
looks like I will have to renew my JS skills again.
 
:waits for @REDUCE to enter the room:
 
I created a chat bot that passes the Turing test, and convinces 100% of people that it is a 13 year old boy: jsbin.com/joborube/1/watch?output
 
@twiz awesome
 
7:26 PM
Seriously, how hard can it be when 13 year olds mostly just say complete nonsense.
 
Me: Hello
Bot: Fuk yo fageet

Yep. Turing test complete.
 
@twiz I've read the transcript. It wasn't much better than that
 
!!thatsthejoke
 
@SomeKittensUx2666 That didn't make much sense. Use the !!/help command to learn more.
 
No judge obviously thought it passed the Turing test, they just wanted to make some buzz abusing the poor state of our newspapers
 
7:27 PM
@vityav 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.
 
wow, 3 mods answered my question. #thatswhenyouknowyouwrong
xD
 
haha the article I read said that they thought it was a historical moment that would be remembered years from now... Just no...
 
@twiz which moment?
 
The part where the bot says "fuck yo faget"
 
7:29 PM
monumental moment
No, passing the Turing test. Except I don't think anyone would really care even if they actually had done something impressive.
 
Even some usually not stupid newspapers were deceived in France. There obviously were people who wanted to make some buzz at the expense of their credibility
@twiz I would have cared if they had done something impressive, that's why I looked for the transcript
 
Yea, but then you'd think to yourself, "Wow. Cool!" and never concern yourself with it again. haha
 
not really. You know I made my first AI programs at the age of 14. AI is the reason why I choosed to go into programing.
 
That's it?
When I was 14 I discovered masturbation. All by myself!
AI.
Pft. What a joke.
 
@RUJordan The next 4 years seemed to whiz by
@RUJordan Context?
 
7:40 PM
@Zirak meta.stackoverflow.com/questions/259972/… was a bit worried my comments may be getting rather rrude
@dystroy btw of course I'm joking :) AI at 14 is incredibly impressive to me
@Zirak Shog's answer was the nail on the head answer. Like he called my actions in my head play by play
 
@RUJordan I thought you'd accept shog's answer
 
I think I will, I didn't wanna be too hasty. I had already accepted an answer before he posted, so I don't wanna be rude to bluefeet by removing it
 
@RUJordan rude ? There's not even rep involved
 
Rep points don't happen on meta anymore
 
oh duh.. i keep forgetting that
 
7:43 PM
accept the answer which is both better and more like what you come to
 
me being baddd at english again
 
wait
my questions/answers on meta were deleted?
 
@FlorianMargaine moved
 
@WarrenR. 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.
 
user1596138
7:49 PM
Whoa when did this get added
 
@J.Vinicius 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.
 
user1596138
 
user1596138
lol oh that's how that extension I couldn't figure out works
 
I wore a shirt that's one size too small, today. It's even worse now, after lunch.
 

« first day (1332 days earlier)      last day (3632 days later) »