These are chat archives for codefellows/sea-b15-javascript

8th
Jul 2014
Kevin Stephens
@kevinmstephens
Jul 08 2014 00:01
oh I found the cookie as a string in the header, what's the advance of cookie-parser?
that I don't have to parse the string to get the cookies probably?
thanks Anna Luisa!
Anna Luisa Patiño West
@aisapatino
Jul 08 2014 00:09
it just attaches it to the request so you can do req.cookies[name]
Kevin Stephens
@kevinmstephens
Jul 08 2014 00:10
@toastynerd Design questions for ya. Say I have http required in server.js and I need it in one of my route files, what's the difference between requiring it into myRoute.js and passing it from server.js to myRoute.js with app and jwtauth.auth?
server.js doesn't do anything to http so I'm guessing it's best to just require it right into myRoute.js but I don't get the difference conceptually
or anyone else that knows
Tyler Morgan
@toastynerd
Jul 08 2014 00:37
@kevinmstephens why do you need http in a route? It’s usually just used to start a server.
but yes, you can just require it into a route and it should be fine
Kevin Stephens
@kevinmstephens
Jul 08 2014 00:38
ok, I want to pipe data from a map tile server to the client browser
so I can enforce auth auth
so I'm doing http.request(options, function(response) etc etc
trying to figure out the pipe stuff
Tyler Morgan
@toastynerd
Jul 08 2014 00:53
if you’re going to the browser and you need two way data, use socket.io
Kevin Stephens
@kevinmstephens
Jul 08 2014 00:54
problem is that it's google map api library doing the get request
i might be able to figure out a socket connection work around but gonna try to get this get request working first
when you pan the map the google library knows which tiles it needs and makes get requests for each tile
Tyler Morgan
@toastynerd
Jul 08 2014 00:59
It kind of sounds like you’re going about it the wrong way but it’s hard to tell without looking at the code.
Kevin Stephens
@kevinmstephens
Jul 08 2014 01:01
the problem is it's time to get rid of geoserver and find a node map tile server
maybe next week we can look at it
but going to mexico tomorrow
Tyler Morgan
@toastynerd
Jul 08 2014 02:07
sounds good
Ivan Storck
@ivanoats
Jul 08 2014 18:07
anyone insterested or already going to CascadiaJS in Portland July 31th-Aug 1st? working on a student discount
Nicholas Harberg
@harberg
Jul 08 2014 20:14
@ivanoats Do you know if the student discount can apply to the workshop as well?
Ivan Storck
@ivanoats
Jul 08 2014 21:31
@harberg no - it’s not for the workshop
Andy Ernst
@AndyCErnst
Jul 08 2014 22:31
Hmm, I just noticed that the graduation celebration thing is the same night and time as the next SeattleJS meetup, that's unfortunate timing
Ivan Storck
@ivanoats
Jul 08 2014 22:35
@KuroFluff yeah I brought that up today in our meeting
Kevin Stephens
@kevinmstephens
Jul 08 2014 23:34
I'm going to be in Mexico :(
Ivan Storck
@ivanoats
Jul 08 2014 23:39
does anyone have my black mini usb drive?
Ivan Storck
@ivanoats
Jul 08 2014 23:58
@KuroFluff and all, come on Thursday night, it will be fun, and we’ll buy you a drink
and @kevinmstephens you can do tequila shots on our behalf