« first day (1013 days earlier)      last day (3936 days later) » 

9:00 PM
yeah
but theres like 4 guys who work on codepen
 
hehe ping him with it
 
nah
I dont want it featured necessarily
 
@TomW When I hear "porn store", I think more about "toys" than "porn"
 
I dont care about that so much
just like getting the demos out there
 
@YehiaA.Salam 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:00 PM
I don't either, I did when I started on codepen
 
I mean its cool for sure when they are featured dont get me wrong
 
but if it is a place to 'show off' the more followers the better - the more picks the more followers
 
but thats not the reason I post them, codepen is just an awesome sort of mini portfolio for me now
@rlemon yeah definitely
 
@TomW It's not about the porn, you get to meet interesting people there.
 
9:01 PM
hahahaha
anyways
home time
i'll be back on racking my brain on that demo later.
 
Another benefit of the apartment: This woman would be living upstairs.
 
scares.
 
!!color f00
!!color f00,fff,f00
!!color f00
 
!!color fuuuuuuuuuuuuuuuuuuuuuuu
 
Anyway. I'm out. Later all.
 
Wait what!?
!!color f00
!!color fff
!!color f00
 
9:05 PM
NOOOOOO
You messed up my flag.
 
lol
 
Now it's the Polish flag ... I wanted the Austrian one.
 
pro tip: the bot will ignore subsequent duplicate commands.
pro tip: the bot can only reliably post about 3 things in quick succession
 
All I want is the Austrian flag, I don't care! :D
 
+10 for a Canadian flag
 
9:07 PM
!!color f00
!!color fff
!!color ff0000
 
I IZ HAPPY NOW!
 
with the maple leaf
 
sandwach.
banana
 
off-by-one ... year
 
9:09 PM
@Shmiddty is that supposed to be clever?
 
!!color f00,f00,fff,fff,fff,f00,f00
!!color f00,f00,fff,f00,fff,f00,f00
!!color f00,f00,fff,fff,fff,f00,ff0000
 
You...
 
lol
 
@CapricaSix FIFO, idiot!
 
9:09 PM
pro tip: sometimes the bot posts things out of order
 
!!color f00
 
I should complain to @Zirak.
 
!!color f00,f00,fff,fff,fff,f00,f00
 
9:10 PM
But my bot probably has the same problem.
 
@KendallFrey You should complain to http
 
synchronicity FTW!
 
3 messages moved from Sandbox
That's as close to Canada as I wish to come.
 
9:19 PM
I haven't answered a question (on SO) since March 27.
 
been busy ?
 
nope
 
I'm not answering questions as frequently either
 
It's not worth the effort to find a question that is actually worth answering.
 
9:22 PM
It does take quite the effort to find decent question
 
Hello, is it ok to ask a Node.js question here? This is the closest related channel I could find
 
!!color bada55
 
@Jhawinsss > Great. Thanks very much. I will reach out to him today.
 
Sure pAndrei
 
the bot dun got killed
 
9:23 PM
Not sure many people are awake though
I know i'm half asleep
 
I can answer javascript questions
 
Ok, so in my app.js I ve got a mongoStore, defined like this : var sessionMongoStore = new MongoStore ({
host: proj_config.session.host,
username: proj_config.session.username,
password: proj_config.session.password,
db: proj_config.session.database,
collection: proj_config.session.collection
});
 
this sounds like a mongodb question
 
the settings var from proj_config is exported properly and it works
I ve got an .js that creates some basic functions
such as login and w/e
you can find the entire code from that here : github.com/braitsch/node-login/blob/master/app/server/modules/…
I don't know how to connect those two. Like, how am I supposed to do it, what's the best practice for it
 
I'm guessing you're using Express?
 
9:26 PM
HALT!
 
HAMMERZEIT
 
yes
 
2.9
 
@pAndrei req.session.blurgyBits = 'HammerPants';
 
@SomeKittens I'm sorry, but I don't think I understand what you mean
 
9:29 PM
What do you mean by "connect those two"
 
well, when I start the server
the DB name is the one from account-management.js
 
alrighty
 
I'm a bit confused about what
MongoStore is. My understanding so far is that I would want to use the settings from proj_config
instead the ones given in account-
if it helps, this is my app.js
 
MongoStore is a session store of data but using a mongo interface
from what I get in the docs
 
If you're trying to use MongoStore as a way of accessing the database, you're doing it wrong
 
9:37 PM
you probably figured that I'm a newbie in node.js
I want to use sessions as they are stored on the server, so the client cannot access them
 
Using a "vanilla" session will accomplish that
the session is not sent to the user
 
I guess he wants to plug the mongostore into the project he linked to
pAndrei you would need to modify account-manager.js
and plug in your mongostore code there and replace thier mongodb, i'm not certain it will work, it may break some things as i'm not too familiar with all of mongostore's capabilities
why not just use a mongodb database instead ?
 
hmm
 
user1596138
@SomeKittens I really appreciate it! Thanks!
 
I think I ll try that
I don t understand too well what's the difference, I mean
 
user1596138
9:43 PM
!!urban 2.9
 
I thought I could simply store sessions into mongo
 
user1596138
@Shmiddty Why does everyone say "2.9?"
 
@SomeKittens @azizpunjani Thanks a lot for your help !!
 
user1125394
@OctavianDamiean thx for momentjs, that will save me time
 
9:48 PM
@Jhawinsss It's another way to say <3 because 2.9 is less than 3
 
user1596138
Ah.
 
user1125394
> Remember though, cool kids concatenate their scripts to minimize http requests.
 
user1125394
what do they mean? (momentjs.com/docs)
 
user1125394
all in one file?
 
basically, yes
any libraries you're using should point to the google hosted file (because other sites also point there, meaning all sites that do benefit from caching)
 
user1125394
9:55 PM
hosting your own jquery is stupd then?
 
yes
 
@cx No.
Have all your JavaScript, even jQuery and all other CDN hosted libraries on your own server but all in one file.
 
caching is based on domain name and port. If five different sites use the same jQuery version but all host their own, the client will have to download each file.
 
user1125394
ah it's not global caching, I mean by the routers, between you and cdns
 
@OctavianDamiean that completely eliminates the benefits of caching.
 
9:57 PM
Haaa! gaze at my new shirt !
 
@Shmiddty I'm well aware of the implications of using CNDs but there are downsides as well.
 
I love it !
 
@OctavianDamiean such as?
 
@Shmiddty No it doesn't. A user will cache your concatenated script file and have it in cache on subsequent visits.
 
@OctavianDamiean and then if you need to update any small part of the script, they'll have to redownload everything.
 
user1125394
9:59 PM
I was thinking some important routers could cache things for cdns , and serve the cache to any users
 
@Shmiddty thats exactly the reason why I don't like browserify for instance
 
@Shmiddty Yea but hopefully you'll not have to do that all too often in production.
 
user1125394
but that's too much Content Delivery network
 
its so unlike ... modularization and modern webdev in my mind
 
Wow, just got a huge compliment in meta.
 
10:00 PM
@OctavianDamiean if you point to a CDN, and the already have that file cached, they don't even have to download the file, reducing the amount of data that they have to download.
 
user1596138
@OctavianDamiean I did this. jQuery and all of my other scripts are in one file called combinedScripts.js
 
user1596138
I think it's a good idea.
 
@Shmiddty Still, there's an overhead for a HTTP request, even it if gets a 304 back.
 
user1125394
moment(1318874398806).valueOf(); // 1318874398806
+moment(1318874398806); // 1318874398806
 
user1125394
10:03 PM
encouraging + notation eh
 
@OctavianDamiean But if it's cached, it never makes the request, right? (I'm asking because this is an assumption I'm making and don't actually know for sure)
 
@Shmiddty Of course it does, how would it know that what's in cache is the up-to-date version?
 
user1125394
that's the downside of IP vs named-data
 
@OctavianDamiean not necessarily
if you set http cache headers
it won't even ask for an update
unless it expires
 
Yea, well I don't know how the Google CDNs handle that to be honest.
I mean how they are configured.
Let's check.
mainerror@jarvis ~ % curl -I "http://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"
HTTP/1.1 200 OK
Vary: Accept-Encoding
Content-Type: text/javascript; charset=UTF-8
Last-Modified: Tue, 09 Jul 2013 11:31:25 GMT
Date: Thu, 25 Jul 2013 14:16:51 GMT
Expires: Fri, 25 Jul 2014 14:16:51 GMT
X-Content-Type-Options: nosniff
Server: sffe
X-XSS-Protection: 1; mode=block
Cache-Control: public, max-age=31536000
Age: 28264
Transfer-Encoding: chunked
One year apparently.
 
10:09 PM
 
Wait, the maximum age is in milliseconds or seconds?
 
http cache is quite nice
 
user1125394
ms probably
 
but its pretty strict also
 
It's seconds.
!!rfc 2616
 
10:11 PM
bot's down
@Zirak ^
 
user1125394
> max-age Indicates that the client is willing to accept a response whose age is no greater than the specified time in seconds. Unless max- stale directive is also included, the client is not willing to accept a stale response
 
@Jhawinsss You've got mail!
BAM!
 
user1125394
and so :)
 
10:14 PM
wat tha fack
 
_WAT_
 
user1125394
wait finding the ref again, tarzoon that's it, a random stupid cartoon
 
I'm getting old
 
you look 16
 
10:19 PM
feeling like I just turned 26
oh wait, I actually did, this might explain things
 
stfu
 
yeah, @jAndy is like 60
and @Zirak is at least 140
 
@Shmiddty Looks way older to me though
 
^
 
140 in hex maybe
 
10:21 PM
darn.. the zirak miracle is like a good tv-show. I burn to see Zirak, but.. if I saw him, the miracle is gone right
its like.. the janitors name in Scrubs
nobody knows his name over 8 seasons :P
 
are here indians?
 
Did you mean: Are there Indians here?
 
user1596138
@SomeKittens Was just about to say that!
 
user1596138
"Randall Koutnik (copied) reached out on your behalf and forwarded your contact details to me. He indicated that you may be looking for a tech opportunity in the Bay Area. We routinely work with tech professionals who are seeking opportunities and make introductions on their behalf to startups within our community that are hiring opportunistically. "
 
user1596138
10:25 PM
And so on... How did you get connected to them in the first place? Did they net you your current job?
 
haha @Loktar
The frustration of having to blow into your cartridges in order to get them to work.
nailed it
 
Recruiters aren't completely evil. I got my current gig through a recruiter.
 
lol yeah
 
Not actually recruiters
 
@jAndy rubbing alcohol and q-tips works better.
 
10:26 PM
RocketSpace is a colocation center, they've got spots in two buildings and small startups rent desks from them.
 
yea but as a 8yo boy
you don't think about alcohol and q-tips
took wayyyyy too much time
 
true :)
 
but afair, I had this cool leet special "cleaning cartridge"
but that didn't help for the cardriges themselfs of course
 
user1596138
If I get a job through them it's fine by me! Haha
 
Thus, they're connected to tons of startups, have tons of experience in growing startups, and make bank by connecting startups to large corporations.
So yeah, they're pretty awesome.
Also, some of them go drinking with us on Tuesdays
 
10:29 PM
pro tip: if you take a temp job and they haven't offered you a full-time position by the time your contract is half up, you should start looking for another job (that doesn't mean quit).
 
is there a css method to set a child div to 100% parent height
i dont really want to use javascript to do it
 
ehh
width & height to 100% ?
 
it is at 100% but its not working
 
@Dave the parent has to have a height defined.
 
parent doesn't have an explicit height
 
10:33 PM
^
 
so parent can't have a % height?
 
it can
if the parent has a defined height
 
the parent just needs to have one defined besides auto
 
user1125394
body { height: 100% }
 
@Dave use an anchored absolute positioned child element then
 
10:34 PM
body,html { height: 100%; margin: 0px; padding: 0px; }
 
if you're trying to fill the window, there's better ways
 
position: absolute
top: 0;
bottom: 0;
left: 0;
right: 0;
 
^
that
 
well listen here fancy pants ... i got nothing
 
hmm problem i have is parent changes in height based on content
 
10:35 PM
the best part is that it works in IE7, and I think IE6
 
seriously, do we still care about IE6-7 ?
 
@Dave #parent{ position:relative; ...} #child{position:absolute; top:0;bottom:0;...}
 
ok let me try it
 
user1596138
@SomeKittens Sounds cool! I replied to the email already, with emphasis on the fact that my portfolio will be expanding over the coming weeks/months mainly through GitHub.
 
Good, good.
 
user1596138
10:37 PM
@Shmiddty I couldn't possibly risk taking a temp job in another state. So it'll have to be full-time for me to even consider anything.
 
user1596138
Unless the contract was => 6 months, then I would give it some vague consideration, but it's still very unlikely.
 
is it tough to get a full-time job over there in our business ?
in europe it seems to me, I could change my job like my underwear
 
user1596138
I guess if that's how it is in the Bay I'd give it a lot more thought.
 
user1125394
for (var user in d){
    d[user];
    d.user; //too bad
 
user1125394
10:40 PM
there may be a good reason
 
@cx d.user === d["user"]
 
user1125394
hmm yeah :))
 
eval('d.' + user); would work :(
 
no.
(I mean, it would...)
there's nothing wrong with bracket notation
 
I love bracket notation, but only if you have a one-space padding in there, its really sweet
data[ user ]; // oooh baby !!
 
10:44 PM
two wasted bytes!
 
bracketgasm
 
user1125394
indeed it changes everything
 
user1596138
@SomeKittens is it likely to be able to find a full-time job? Or am I looking more at temp-to-hire stuff?
 
!!hey baby
 
@Shmiddty That didn't make much sense. Use the help command to learn more.
 
10:46 PM
Sorry about that
 
!!cook or be lazy
 
!!let me help you out of them jeans
 
@jAndy be lazy
@Shmiddty That didn't make much sense. Maybe you meant: get
 
!!get naked
 
but I'm starving ! darn
 
10:47 PM
@Shmiddty Invalid "getter" name naked
 
@Jhawinsss Depends.
 
user1596138
Care to elaborate?
 
!!playing hard to get I see
 
@Shmiddty That didn't make much sense. Use the help command to learn more.
 
@IvoWetzel Happy birthday!
10
 
10:48 PM
star festival !
 
@IvoWetzel go buy yourself a Wetzel's Bretzel, on me!
 
@IvoWetzel congrats !
(I just hope Zirak isn't trolling or something, didn't check the source :P)
 
Thanks guys :)
 
@Shmiddty this is what im trying to do : jsfiddle.net/KjxNz
 
29 mins ago, by Ivo Wetzel
oh wait, I actually did, this might explain things
@Dave your container had zero height because you had both elements absolutely positioned. jsfiddle.net/KjxNz/1
 
10:52 PM
oh i see
makes sense now! thanks
 
@Jhawinsss Because of you I now have php and apache installed
 
user1596138
@Zirak Hopefully you aren't bitter about it ;P
 
I'm chocolate jelly over it
 
@Zirak chocolate... jelly?
 
user1596138
@Zirak That's good.
 
10:54 PM
Is it?
 
did you guys know that chocolate milk comes from black cows?
 
user1596138
I like chocolate, and jelly. I assume they are god together.
 
wooooaahhh
chocolate + jelly = god
 
that escalated quickly.
 
user1596138
Whoah. From PHP to chocolate jelly in only 2 messages.
 
10:56 PM
That's like...maaaan
 
!!color f00,fff,f00
!!color f00
 
@Zirak He polluted your Arch with garbage haha
Night everyone :/
 
d'oh!
 
10:57 PM
upside down
 
!!color FF0000,FF7F00,FFFF00,00FF00,0000FF,4B0082,8F00FF
 
@BenjaminGruenbaum did you solve your SQL thing?
 
@Shmiddty Yeah, 55 line query.
 
seems excessive
 
10:58 PM
@IvoWetzel Happy birthday!
 
Mainly had doubts about an inner join.
Yeah, it's a really intensive calculation. Let's say I have kids and each kid has apples, the apples are either good or bad. I wanted to check if there is any correlation between the number of good/bad apples to the next one being good/bad on a per kid, and on a all kid level.
 

« first day (1013 days earlier)      last day (3936 days later) »