« first day (1257 days earlier)      last day (3708 days later) » 

8:04 PM
so my co-worker just sent me a screenshot of his code instead of his actual code :/
 
user1596138
 
nah he just had a question (he is new to JS)
I just thought it was odd he sent me a picture of the function instead of just c&ping the function into the email
 
I bet he used paint to take it, too
 
user1596138
Hahaha check this out
 
user1596138
 
user1596138
8:07 PM
Became
 
user1596138
p.greyboxdetail { padding: Spx; color: black; text-align: left; margin: 0.0px 0.0px 0.0px 0.0px; font: 12px 'Anal.', 'Helvetica':
1
 
user1596138
Damn that's a nice font
 
12in anal
a fine choice
 
@SomeKittensUx2666 so after using the middleware (again sorry for the shit questions) session creation is also automagic? (am reading this: passportjs.org/guide/configure it looks automagic)
 
@rlemon yeah
 
Ale
8:09 PM
Anal Helvetica
A fine choice
 
@SomeKittensUx2666 so am I to assume setting user to null kills the session?
 
@Ale Yeah, just repeat @Mosho's joke. In case someone missed it
 
@JanDvorak how to make a guess, button aint doing anything
 
@rlemon call req.logout()
 
@Connor click at the map first
 
8:10 PM
ohh nice
 
ok
 
Ale
@copy Yeah, don't thank me :P
 
app.get('/logout', function(req, res) {
	req.logout();
	res.redirect('/login');
});
(btw, I totes feel like a vamp right now)
 
@JanDvorak I ended up in a trailer park ;)
 
@Connor which round?
 
8:21 PM
4
 
@JanDvorak beat you on the second guess
aaand I'm lost on the third one
 
@rlemon correct
 
@KendallFrey which one was that? The one that I was 19 000 km off?
 
@phenomnomnominal late
 
8:24 PM
@rlemon :(
BUT SO COOL
 
yesterday, by rlemon
http://www.patatap.com/
but yes, cool
app.set('view engine', 'ejs');
do I still need to require ejs?
 
@JanDvorak the thomas the tank engine one
 
@RUJordan halp!
 
that one took me a while to find
 
lol y'all pinged me like 8 times
 
8:26 PM
@RUJordan do you use ejs?
 
No sir
 
so is it express that just "knows" view files are in /views ??
 
yea
 
view files = static served?
 
8:31 PM
okay
 
user1596138
Check that shit out
 
I was all confused. again all of this automagic is really fucking with me
 
@ArturSapek 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.
@BobRen 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.
 
yo herbs
 
Hey!
 
8:31 PM
@SomeKittensUx2666 also, the ping was not to talk about you behind your back, not to make you look bad -_-
 
where can i learn how to code?
 
codeacademy
 
@BobRen google.com
 
kahnacademy
 
@SomeKittensUx2666 Read the context, I was making the point that not knowing an API completely is not that a big of a deal -_-
 
8:32 PM
pluralsight is nice (paid)
 
user1596138
Just keep zooming though
 
and the best one..
deeze jokes are not for kids
OHHHHHHH
 
no dude, no...
 
lol, here we go
 
8:32 PM
haha was waiting for something
 
I figured it would just be a flag
 
> YOU DONT DESERVER TO BE AN OWNER AFTER THAT COMMENT!
 
haha I had to remove it
 
I am trying to copy to the clipboard in a chrome extension, but with a custom MIME type. Is this possible? document.execCommand('copy') copies to the regular old text clipboard, but I don't want to copy as text, I want to supply a MIME type
 
8:33 PM
I dont want someone accidently going to it
 
@JanDvorak Kind of stopped giving a shit, final score 18404
 
@KendallFrey wow. Nice
I forgot to mention: ... without Google. Did you use Google?
 
last 3 were meh
@JanDvorak you used google, I know you did
 
@KendallFrey nope
 
!!youtube imperium machine head
 
8:34 PM
 
how did you get your first guess right on then?
 
// cc @RUJordan @Mosho
 
Are there any serious JavaScript chatrooms?
 
@MatthewDean Yes, this one
 
we just were not interested in your question
 
8:35 PM
@MatthewDean go to irc freenode ##javascript.
they are serious as hell.
 
thanks
 
user1596138
@Loktar Hahaha nice
 
@SomeKittensUx2666 last question, and probably the most important.
how does it know my DB Schema?
 
@KendallFrey one of the ADs I've found pointed me to the right province, then I've found two of the cities and traced the roads leading from them
 
@rlemon it doesn't, modify the query at will
 
8:37 PM
ADs?
 
then confirmed using the "intersection of..." sign
 
@SomeKittensUx2666 nevermind. that was a really stupid question :P
make fun at will.
 
advertising banners
 
I have a script where you click a button and it opens two windows. In Chrome it only opens 1. Anyone know why?
 
8:37 PM
@JeanLescure 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.
 
@jbolanos built in popup blocking ftw?
 
I thought it didn't get triggered if it was the result of an action (focus, click a link, etc)
 
@JanDvorak Game finished! You got 11304 points in total.
 
!!s/1/7/
 
@SomeKittensUx2666 @JanDvorak Game finished! You got 71304 points in total. (source)
 
8:39 PM
Caprica wins
 
@Jhawins @SomeKittensUx2666 @JanIDvorak Game finished! You got 71304 points in total. (source) (source)
 
user1596138
Oops
 
.....
-_-
I hate the drama.
 
@Daniel 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.
 
Who just removed the stars and who just downvoted my answer on that promise question -_-?
 
8:44 PM
What stars?
 
^ wasn't me
 
@SomeKittensUx2666 I wasn't accusing you, I just really dislike drama, afaik we're cool.
 
user1596138
> Who took mah dern internurt points
 
I'd like to think we all can take criticism, which is why I'm just going to drop this and whoever did this - not cool.
 
@BenjaminGruenbaum Figured it was best to prove innocence anyway
 
user1596138
8:46 PM
(wasn't me)
 
@SomeKittensUx2666 cool, fwiw - didn't suspect you :P
Im just going to drop it now... just wanted to say "not cool". Not real worth a debate.
 
@BenjaminGruenbaum idk but I stared it ;)
 
@rlemon :P
 
@BenjaminGruenbaum just like when I bitch at flaggers. I don't expect them to own up to doing it. I just want them to know how much I loath them
 
@rlemon I flag your messages all the time
 
8:49 PM
that's okay. I secretly call you a douche behind your back.
 
@rlemon oh cool!
 
although all of the crouching and walking slowly to keep behind you is getting tiring.
I think I might just outsource it to @SomeGuy
 
I turn your network code on and off at random times to create weird node bugs.
 
user1596138
@rlemon lol did the Indian outsourcing jokes finally start here?
 
user1596138
8:51 PM
Or did you outsource something to him
 
@Jhawins We outsourced 'em
 
@Jhawins rlemon is an Indian , he is the outsourcing, or is he?
 
which is why none of them are funny.
DEY TOO OUR JERBS
 
user1596138
@BenjaminGruenbaum My type of Indian... The casino one
 
user1596138
DAY TOOKDER JERBS
 
8:53 PM
Johnny Many Moons
!!youtube southpark johnny many moons
!!undo
wtf
!!undo
 
@Jhawins it is a joke I like to make towards @SomeGuy only.
 
@rlemon and maybe @AbhishekHingnikar ?
 
nope
I tease him, but about other things
SomeGuy I make outsourcing jokes and g/j jokes
 
Sounds like you have a system
 
@SomeKittensUx2666 so if it is just spinning on the login -> no errors no nothing....
no data received :/
ugh.
!!afk going home to work on this with beer
 
9:05 PM
code?
 
@rlemon Or, you go home to work on this with some delicious tap water
 
@rlemon Sounds like you never responded
 
@SomeKittensUx2666 rlemon is afk: going home to work on this with beer
 
MGE
9:25 PM
Hello
If i try
alert(info); (is a json string)
I receive
{
"id": "tok_103jsG2xdv5ovECMGZ5TmWBA",
"livemode": false,
"created": 1395869083,
"used": false,
...
but if I try alert(info.id) the return is undefined
 
If it's a JSON string, you'll need to parse it before you can treat it like an object.
 
MGE
is an object and I pass to json
var info = JSON.stringify(token, null, 4);
 
thus, info is a string
 
JSON is a data exchange format
It's how one might serialize stuff as strings
 
@Menno 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.
 
9:38 PM
Hi all!
 
Hi @Menno!
 
I'm having a header- with an ul - li - a in it. The a's (links) are 110px width, but i'd like to let them minify when the window gets smaller. I'm using a 16,6% width for that. The problem occurs when i'm moving the width of the screen: first the links get under each other, and after that they're minifying their width. so: how can I first let the links get smaller, and afterwards move under each other?
 
@SomeKittens I res.render the same as the login form page.
 
@Menno the easy out is a media query
 
@Copy not the tap water where I live. It makes me sick if I drink it.
 
9:44 PM
check out css media queries
 
I buy buttled water
Bottled*
 
Am I allowed to paste a link here? oi59.tinypic.com/343hr3p.jpg This is what happens when making the width smaller
 
@rlemon alright, so that's not it
 
Could be I fucked it up. Waiting for the gf at the tanning salon. Once I get home I'll be back looking at it.
@Menno look into CSS media queries
Like Benji suggested.
I can't wait till I have a good handle on all of this node stuff. I feel so out of date.
 
@Menno media queries.
 
9:49 PM
@rlemon if you'd like to learn about nodes: DON'T learn it from the Headfirst book- it's terrible!
 
@Menno nodes?
 
nodejs I'm guessing?
 
@BenjaminGruenbaum that's what you talked about right? :p
 
I'm okay on resources thanks. I got Benji and kittens right here.
Also guys, when picking a username consider us mobile users with no auto complete
 
@Menno NodeJS?
@rlemon It pings even with a partial name you know
@rlem
 
9:51 PM
@BenjaminGruenbaum I've misread myself ;)
 
@Benj does this work?
 
Sweet
 
But are Media Queries the only solution to my problem? Seems to be quite too much for my problem?
 
@Some who got this, kittens or guy?
 
9:52 PM
@Menno no, it's possible to solve without them, but it's just very simple with them
 
Do you have time to introduce me a bit to media queries? Completely new for me ;)
 
Media queries are not "too much" .. They are fucking fantabulous
 
@rlemon highlight, no ping
 
@Menno Then how do you know they are too much?
 
@SomeGuy can you see if you got that as well?
 
I've recently got on board with mobile first responsive design.
Media queries ++
It's times like this I wish I carried a laptop with me. I wanna browse some code and on mobile that sucks.
 
@megido 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.
 
Hello fellows
 
10:09 PM
aaand done for the day on main
 
var info, row,;
for (var i = 1; i < response.data.length; i++) {
    row = [];
    $.each(response.data[i], function (idx, vals) {
        if (~vals.indexOf(":")) {
            info = vals.split(":");
            row.push(info[1]);
        } else {
            row.push(vals);
        }
    });
    aData.push(row);
}
When it says don't make functions inside a loop - that means I should make the $.each() a stand alone?
 
it means:
var info, row,;
var blargh = function (idx, vals) {
    if (~vals.indexOf(":")) {
        info = vals.split(":");
        row.push(info[1]);
    } else {
        row.push(vals);
    }
};
for (var i = 1; i < response.data.length; i++) {
    row = [];
    $.each(response.data[i], blargh);
    aData.push(row);
}
 
ah - thanks - I was thinking something like that when I wrote it but ran out of time and just slapped it together and then forgot about it
 
@SomeKittens rep farming?
 
@rlemon yep
Trying to boost my rep a bit, especially in JS tags
 
10:17 PM
Nice.
 
Going to do some work this weekend on some GitHub projects
 
I need to break 99
 
all basically work to publicly say "SomeKittens knows how to write code"
 
but can your right code?
 
He lefts it at the door.
 
10:18 PM
@jbolanos Nah, I only code with my left
 
my fav coder typed hunt and peck - I wanted to beat him with a soggy pickle
 
I can touch type
 
Everyone at my work but me. Hunt and peck. Fuck.
 
My current problem is that most of the good code I've written has languished behind closed source at some company.
 
its either hunt and peck or copy/paste everything - LOL
I took typing the first year they offered it to boys at my high school in 1985
 
10:20 PM
I think I type pretty slow for a programmer. I'm fucking superman compared to these guys.
 
Hi Romantic Electron
 
Romantic Erection?
 
10:26 PM
@SomeKittensUx2666 that's not very sportive
 
I don't think you are supposed to edit the HTML first :)
 
@jbolanos No HTML editing
 
@Mosho i've done it before
i'm in the high 80's low 90's
but I don't like those tests with mindless words.
 
ones with prose too
 
10:30 PM
I think I'm much faster when I'm thinking of the sentences
I'm for sure faster coding an idea than I am writing one
:/
 
Hello there, sorry I was disconnected earlier
 
I never did see the correlation between programming and typing speed
 
Just have a few questions
not really about JS...
 
no, no, yes, maybe, 7, dog, watermelon, 18, false.
 
!!doge no, no, yes, maybe, 7, dog, watermelon, 18, false
 
10:34 PM
  wow
                 much no
                           very  no
so  yes
                  such  maybe
                         many  7
so  dog
              very  watermelon
                         such  18
many  false
 
who was talking about twitter bots earlier.... @Jhawins ?
 
@Loktar too
 
I hate with jQuery throws an error and you can't figure out where to find it in your code. nassy thing
 
psst, so use vanilla until you can figure these things out
 
kk. I just had a realization while I was on twitter. I mean, I still don't fully understand the goals they were after... but...
people have been creating lists of twitter users by the thousands it seems
seems like a new tactic to get people to notice you and follow back or something.
 
10:37 PM
^ HA
tl;dr the Candy Crush folks just set the record for the largest day-one drop after IPO
 
good job
I effing LOATHE them
 
I gave an interview some days ago in a firm,they said they need software engineering internees, they never asked me a question about software development life cycle or any of its phases or models...neither did they ask about design patterns...what they asked me was what programming languages you know and I did not mention PHP and Android in my CV and they were asking questions like what have you done in PHP and Android...I was puzzled...now they are asking me to send my projects to them ...
I have done projects in java SE and pure Javascript DOM manipulation as a programmer
 
@RomanticElectron Well, if they need someone to do PHP and Java, and you can't do PHP or Java, it looks like the company is not the right fit
s/Java/Android
 
I know PHP a bit and I have done a very small project in which we were required to follow the MVC design pattern
but since I lost my code which was in an earlier disk...i can't do anything about it
 
@SomeKittensUx2666 gist.github.com/rlemon/14f98e0121d49c28e3db do you see it?
 
10:43 PM
Should I post a promises answer to stackoverflow.com/q/14220321/1348195 or post an "How to return the response from an ajax/timeout/db promise? " promise?
 
I would send my code from the other languages and explain how you understand the design patterns, and explain that you're willing to learn OJT
 
I only have the model and controller classes with me which I had on my email
Should I send them those?
 
Yes
is it good code?
 
then send it
 
10:44 PM
Probably neither
 
@BenjaminGruenbaum was that to me?
 
No, to my earlier message.
 
wait. I just caught this. you already sent that stuff?
 
@BenjaminGruenbaum Felix King already kinda covers promises
I'm sure you could do a better job on the explanation.
 
if so, then don't re-send it to them.
 
10:46 PM
@Metagrapher I did not
 
@rlemon not really, he doesn't show the two things they do - which are chaining and error handling.
 
@rlemon that's what spins?
 
@SomeKittensUx2666 yes
not on connect, on login attempt
 
k cool, yeah, just no matter what, don't misrepresent yourself or inflate your capabilities.
 
10:46 PM
@Metagrapher I sent only the code of my java projects
 
ah. cool. And, if you've done Java, then I'm sure you'll be fine with Android SDK.
IFF you could whip something Android up very quickly, I might send that, too.
 
I have no idea what to ask that explains usage as an answer
 
@Metagrapher hmmm..
 
Maybe - "what are promises and how do I use them" but that can be too broad
 
@BenjaminGruenbaum JeopardyOverflow?
 
10:48 PM
I nice proper overview of how to use promises to return db queries would be nice.
 
What is...a promise?
 
@dystroy's blog post is nice. but I feel SO could use a nice complete answer as well.
 
@Metagrapher I wanted to be hired as a software designer internee than a programmer, but they didn't give me a chance to state my interest
 
I don't understand. You'd rather be an intern? (as far as I can tell, an internee is someone who's a prisoner in a camp ;P )
Cause, software design tends to be one aspect of being a programmer
it's also possible that the internship is quite competitive.
and so they want code samples is all.
 
@Metagrapher competitive...they shortlisted only 15 people for interview...but I feel like only 15 applied for it
 
10:52 PM
it's possible. 15 is a long short list.
 
because I know some dumb people who were shortlisted
 
make sure you are interviewed last
15 candidates are a lot to remember
last 2-3 will hold the most impact (likely)
 
@rlemon are you serious
 
@rlemon this probably isn't the cause of the problem, but why aren't you defining successRedirect?
 
@rlemon <-- True story
 
10:54 PM
@SomeKittensUx2666 ..... I figured it would move onto the next callback. my other redirect. :/
 
It should
 
though @rlemon @RomanticElectron I don't know how you'd have any control over that factor.
 
<form action="/login" method="post">
<input type="text" name="username" id="username" placeholder="username" />
<br>
<input type="password" name="password" id="password" />
<button type="submit">Login</button>
</form>
 
@Metagrapher strategic bathroom breaks
 
is there something wrong with the form i'm not seeing?
 
10:55 PM
@SomeKittensUx2666 oh man. if a candidate tried that shit... hahaha
 
@Metagrapher there are ways. if you can ask to be scheduled later in the day, knowing when the interviews start. make up some bullshit reason that they will be empathetic towards and really sell it to them
 
@rlemon Nope. And errors shouldn't hang like that
 
@SomeKittensUx2666 TS?
 
At work, but sure
 
@rlemon what're you talking about?
 
10:56 PM
@Metagrapher when I got interviewed no one else was there to be interviewed, so i guess probably no one came after me...but there were two hours left for the students to get interviewed
 
@BenjaminGruenbaum to whom?
 
@rlemon you drunk yet?
 
@rlemon to kittens
 
@monners nope
 
hahahahaha I was like @rlemon got brittish or something? "whome"
 
10:57 PM
@BenjaminGruenbaum login is hanging. dunno why
 
Ok, I'll wait a bit then.
 
@rlemon code?
 
14 mins ago, by rlemon
@SomeKittensUx2666 https://gist.github.com/rlemon/14f98e0121d49c28e3db do you see it?
obviously just a test setup
i'm just trying to get passport working first.
@SomeKittensUx2666 i'm on
 
no idea dude :P
code looks ok
@rlemon try putting a console.log in the second parameter of `.render maybe?
 
@Metagrapher I just received an email from them that the selection will be project based ... so I must be sending them my code...thanks for the help
 
11:07 PM
@RomanticElectron You could also get a sixpack of beer and do the project this night
 
!!s/beer/Copy's beautiful tap water/
 
@SomeKittensUx2666 @RomanticElectron You could also get a sixpack of Copy's beautiful tap water and do the project this night (source)
 
@copy why should I cheat on them
 
@SomeKittens Meh, tap water doesn't soften the pain of having to code in PHP
 
I need a gallon of rum
 
11:10 PM
@RomanticElectron How's that cheating?
 
@copy so you mean that I should enhance my code and try to complete the view ?
 
I didn't say that, but that would work too
 
@copy Well if I tell them I did it tonight...will they still consider it?
have you ever tried that?
 
The more recent, the better. Only problem is that you don't have a lot of time
 
2copy yeah it is so...but let's give it a try
@copy
thanks for you suggestions mates
your*
 
11:19 PM
@staypuftman 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.
@grovduck 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.
 
11:49 PM
YES
Really happy for my brother
 

« first day (1257 days earlier)      last day (3708 days later) »