« first day (1686 days earlier)      last day (3266 days later) » 

12:00 AM
!!google javascript event delegation
 
that only half works
 
Give a man a fish...
 
and he'll ask for lemon
 
now it works fine on page load, and half works on ajax load, but it just keeps toggling back and forth
 
12:03 AM
@rlemon You're not that good
(your mother is though)
 
how does jquery emulate capturing in <ie8?
 
my mother isn't a lemon
 
@AwalGarg Why?
 
@monners just curious
and too lazy to poke at the source
 
I'm not going to enable support of dead tech.
Leave <IE8 alone. It's in a better place now.
 
12:05 AM
because if jquery can do it, there has to be an addeventlistener polyfill supporting the useCapture arg in <ie8, but I haven't seen one yet.
 
so just curious, why not?
 
mmm
that worked
 
@Hybridwebdev I haven't read your code but just from reading you last line of question "it loads new content in via ajax and then the hover stops working. ". Why don't you just pre-load everything first and add event listener to it, and hide/reveal them using CSS / jquery
 
@EnglishMaster because being its a calendar with a full year + of data, itd be terrible to load it all at once
 
12:06 AM
because delegation works when you do it right and preloading an entire sites contents can be bad depending on size
 
@EnglishMaster plus, Im a big believer in not loading content until i need it
 
Yeah like google dumps all it's database on your computer at once, hides everything, and shows when and what you want.
 
exactly
 
@Hybridwebdev 1) well, that makes more sense to pre-load everything
2) Why not?
 
12:07 AM
1) no it doesn't
2) because it is stupid
 
!!google lazy loading
 
1) Pre-loading content a user may not even ever see is wasteful
 
it bloats the dom size and its more strain on the server
So never ceases to amaze me
ask a simple question, and it starts a full out debate :)
 
:(
 
12:10 AM
im actually surprised I didnt get comments on the aesthetics of the page :)
 
@Hybridwebdev Pastebin? Yeah, real nice :P
 
@monners lol
/sarcasm
 
> data (,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,) a b c d e f g h i j k l m n o p q r s t u v w x y z a_ b_ c_ d_ e_ f_ g_ h_ i_ j_ k_ l_ m_ n_ o_ p_ q_ r_ s_ t_ u_ v_ w_ x_ y_ z_ a__ b__ c__ d__ e__ f__ g__ h__ i__ j__
= (,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,) a b c d e f g h i j k l m n o p q r s t u v w x y z a_ b_ c_ d_ e_ f_ g_ h_ i_ j_ k_ l_ m_ n_ o_ p_ q_ r_ s_ t_ u_ v_ w_ x_ y_ z_ a__ b__ c__ d__ e__ f__ g__ h__ i__ j__
 
@Hybridwebdev What exactly is a hybrid web dev?
Are you part machine?
Part Cabbage Patch Kid?
 
@monners "web" and "Developer" hybrid
 
12:16 AM
part coding machine lol
 
I'm part tree
 
I'm part unicorn
 
the ass?
 
Well, I do fart rainbows
!!epic
 
12:20 AM
can I see your tail?
 
To lifters: Do you name your each bicep?
 
named biceps take more effective space than anon ones.
 
mine are name lefty and righty
 
Do you also name the different parts of your biceps? like topy and bottomy?
 
man this Poker 3 keyboard is amazing.
 
12:28 AM
link to sale?
 
I can do sublime like snippets with my keyboard now lol
each key can hold 36 keystrokes.,
 
I might be able to do something like that with mine
 
steelseries stuff comes with some sweet control software
 
@rlemon this is all hardware based
 
12:28 AM
ahh mini
:(
 
ive wanted a mechanical kb for so long
i got through KB's wayyyyyyy to fast
 
I need a new work keyboard
 
saves it to the keyboard itself, also allows you to program timings, and has 3 programmable layers
 
gonna probably get wsadkeyboards
 
those look alright as well
 
for <$200 yea
 
I have a keyset on the way from them actually
 
I use my laptop keyboard for my desktop. I want my keyboard to have its on hardware system because I'm always working on heavy duty.
 
@Loktar Did I show you the escape key I ordered?
 
no
 
12:30 AM
the keyboard I have now for gaming is alright. I do need a new mouse.
 
yeah I love my k65 for gaming
 
the work keyboard I have is atrocious
 
it has cherry reds.. but I might get a mechanical keyboard with mx clears for gaming, idk I want to try them anyway
 
I think it'll make my keyboard more powerful :P
 
12:31 AM
oooh wait lol you did show me that
thats awesome man
 
I will only get a mech for work because I'm listening to headphones already and it wont' piss me off
 
Have you checked out Artisan keys?
 
Are the reds linear switches? I forget...
 
@rlemon you can get quiet ones
 
gaming, it will disrupt my speakers
 
12:31 AM
@Loktar link?
 
@monners yea
 
Linears are supposed to be the best for gaming
 
@Loktar unacceptable. I'm not a fps or hard core online gamer.
 
there is really no need
but I understand
 
12:32 AM
@rlemon what do you mean?
Linear keys are pretty quiet
 
I wouldn't pay extra for a gaming mech keyboard
when non mech cheaper alternatives work for me
 
how much was yours?
 
$65 + tax
 
I got a "gaming" mech kb yesterday for $80
 
for programming I'll pay $150 :P
 
12:33 AM
they aren't all over the top crazy
yeah this poker 3 was $129
glad I got it, my k65 I think was like $150-ish
 
right now I do most work on my laptop because my desktop keyboard pisses me off
 
Nice. That looks like a really sweet compact. Did you get a choice of switches?
 
yea
I chose reds because I'm used to them
what does your das have?
I want a happy hacking one next
but they are pricey.. however I doubt I would ever need another one lol
 
I just can't use a non-fullsized keyboard
 
hell this poker has a full metal case, its heavier than my full size kbs
I dont understand why people need a number pad ever lol
I never use mine
 
12:37 AM
I use mine for screen positioning shortcuts
 
the poker 3 is sweet.. was so tempted to snag one when it was released
 
It's actually pretty useful for dividing up a 34" screen into sixths
 
@nick yeah I can't wait for the backlit vs
 
@Loktar I use mine exclusively
 
m59
@Loktar sent you a pm, but probably should have just asked here. If someone wants to guide this desperate fool, I'm a desperate fool in need =D Also, the help is well worth me paypal'ing some funds. Even a reference of someone else I can pay for help would do wonders for me at this point.
 
12:38 AM
idk, i just can't use the top bar
I can do it all with one hand which helps I suppose
 
backlit keyboards are overrated IMO
 
m59
(pm as in facebook. That probably made no sense)
 
prefer nice solid PBT caps
 
I just like how they look :P
 
so do I
 
12:39 AM
yeah these are pbt's on the poker
@m59 ah ok yeah I was wondering lol
 
dark room, lit keyboard.
sexy
 
ah nice
vortex started making doubleshot backlit PBT caps
miracles of modern technology
 
@m59 you should post what you need help with here
 
m59
I've tried :/
 
@nick haha yeah definitely
 
12:40 AM
Someone on angellist reached out to me from Austin... Should I go forward with conversation, even though I don't want to move to Austin?
 
yes
 
maybe they will change your mind :P
 
@NickDugger why not?
 
if nothing else, it is good practice
 
@nick I'm wanting to move back to my home, Minnesota
 
12:41 AM
just tell them that up front that you don't currently plan on relocation
see where it goes from there
 
Alright
 
if you are interested, what could it hurt right?
assuming you dont need the job
 
the full movie is out omg
 
lol
 
12:50 AM
dead-lifts take a lot out of you
 
So you need your gym buddy to lift half load
Same goes for bench press and squat.
 
no, but it looks like a decent amount of weight
 
@rlemon It's one of the most effective and risky exercise you can do at the gym
 
so after the first it is understandable why they are winded
double deadlift is stupid mind you
but just saying, it is a exhausting workout.
 
I used to do dead lifts in high school. Coach always complimented my form.
 
12:54 AM
@EnglishMaster not if done properly
re: risky
i.e don't do too much weight
know your limit
 
Yeah, of course, but you never know when it's going to break your back
so you must be careful
I do about 35 KG each side deadlift for safety
 
I was doing 84kg deadlifts (total) until I fucked my wrist
:(
now I'm just waiting to get back to the gym
not super heavy, but effective
 
Yeah, burns your forearm, back and some leg
I normally do it on my back day
 
I was doing straight knee
 
shit, and it broke your wrist?
 
12:58 AM
lol
broke one of the smaller bones, tore the cartilage
fell with a weight in hand, didn't let go of weight.
:/
elbow hit first.
 
My body currently looks like T-rex, my arms don't grow that much compare to my chest or legs. Fucking gene
3
 
i don't really do dead-lifts; it uses all my energy
 
I lift food into my mouth
 
besides, deadlifts don't work your biceps so they're useless amirite guys?
 
Totally useless
 
1:10 AM
exactly
 
1:34 AM
Handstands are a great workout.
Although there is definitely a minimum level of fitness you need before you can do them properly
 
1:47 AM
@monners You can do wall planks until you can do a handstand
 
Yep
 
They're fun
 
2:05 AM
I wish I had knowledge that I currently have (Knowing pretty much everything about IT in general) when I was much younger, I would've done a lot of craps.
 
@EnglishMaster L O L
 
Well, as I have mentioed above, I'm a full stack developer.
 
!!google expert beginner
 
I know literally everything about IT too
 
2:11 AM
I know more about IT than there is to IT
 
@EnglishMaster What's the largest site you've maintained?
 
I'm so full stack that computers attempted to turing test against me because I'm so full stack App pumping machine
 
Haha, if someone says, "I know everything about XYZ", I tend not to believe them :p
 
@EnglishMaster you need to look up some Socrates
 
In general, the more you know about a field of study, the more you know about what you don't know (and are therefore less likely to make stupid comments like that)
 
2:13 AM
Also, the Dunning-Kruger effect
 
Is there some special club where all the people that troll this room get together and scheme future bullshit?
 
probably
 
Yeah, it's on 9gag
 
Yeah probs
 
I'm so full-stack app maintaining machine that developers of Splunk, Ntop and Chef was actually inspired from my genetically encoded algorithm in my gene.
 
2:16 AM
bye @EnglishMaster
 
Like are you trying to write a rap or something
 
Haha, so my college textbook calls the Big O Notation the "Big Oh Notation"
 
That's vaguely sexual.
 
Yeah, haha
 
That's not vaguely sexual
It's blatantly sexual
 
2:18 AM
One sub-section is titled:
How to find the "big oh"
 
What book is it?
 
I guess that's where we draw the line.
 
In-house print
 
Oh
 
2:19 AM
@Meredith Big or small?
 
I want that key set omg.
 
Big of course
 
@Loktar Looks nice
 
It's cute
 
@Meredith In India, a lot of colleges compile their own textbooks and force us to buy them for the free cash
 
2:21 AM
That happens everywhere
 
@SomeGuy Please tweet a picture of this
 
Half of my textbook comes from programmingsimplified.com
 
In Australia, some professors compile their own textbooks and tell students "You may get your textbook for free at second handshops or get it from your peer, but just keep in your mind that the final exam is going be be based on the latest edition of textbook which was released just yesterday to the public.
 
@EnglishMaster Where do you get this shit?
 
The worst is when they make you buy a brand new book to access online material
 
2:26 AM
@monners what do you mean?
 
I love O'Reilly. Their eBooks are DRM free!
 
@EnglishMaster What would you know about university in Australia?
 
cause I attended there
 
That makes me sad
 
2:27 AM
O'reilly's ebooks are great
 
@EnglishMaster Because I don't like the thought of you in my country
 
+ the animals are usually cute
 
I'm just gonna keep kicking him, does anyone mind?
 
Allow me
 
already did
 
2:27 AM
Damnit
 
He'll be back
 
@SomeKittens in da house!
 
2:43 AM
allo
 
0
Q: Keep session alive after a page refresh in AngularJS

FrondorFirst of all, sorry. This might sound like a silly question but it's the first time I try to develop a login system, so please, patience! :) I'll try to explain myself as much as I can, and give my best english ^^ Basically, I want to learn a good practice for this implementation in my angularjs...

 
hello
 
this is my first time here. is this a live room?
 
@user2873003 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.
 
@Frondor looks like you'll need to ping the server to check auth status
 
2:55 AM
...
someone flagged @SomeKittens saying hello
 
probably @EnglishMaster
 
that's the one thing I've said all day
WHAT HAVE YOU GOT AGAINST ME
 
anyone a sales engineer here?
 
what is a sales engineer?
 
guy who can conceptualize code into words for a client.
 
3:06 AM
everyone's an engineer these days.
 
Yeah, this area of job though allows for the real engineers to not have to talk with clients though, and just deal with coding.
 
@user2873003 what do you need?
I've done sales engineery stuff
@phenomnomnominal for instance, if a client is on the fence, the sales engineer whips together a demo so the line engineers aren't disrupted
 
I had a interview question on how I would scale phone support for a sales force of 50 plus sales reps as a SE? I mainly was a SE that faced clients and reported a workflow back to HQ, was this a garbage question or is there a real answer to this?
 
@user2873003 not sure what you mean by "scale phone support"
 
@SomeKittens yes, but logic is not that easy :D the api I was provided with sucks, I don't know... I'm trying to set a cookie on my own domain right now, because the api is creating a cookie on it's own domain... I don't know how to target the header's response
 
3:13 AM
@Frondor Set something with localStorage?
 
@SomeKittens that is what I felt, I work with a small team of six guys. 3 engineers, 2 SE(1 being me) and we implemented simple api's for small businesses; Braintree, salesforce, basice webrtc communication and file sharing. I felt railroaded on the question since they just got a fifth round of funding and are trying to scale to enterprise.
 
In that case, I would have asked for clarification
 
@SomeKittens hmm.. talking about backward compatibility, I think I prefer cookies... better taste ^^ but anyway, I don't know how to do it... My api should allow me to get some /auth/:isactive or something to check if user got a valid session
 
@Frondor What version of Angular?
 
@SomeKittens 1.3.5
 
3:19 AM
agh, bad URL parsing
 
don't worry, I found it anyway but that's not my problem actually.. I know how to store the cookie, I just don't know how to handle it later
 
ah, better
 
 
1 hour later…
@phenomnomnominal A psychologist without a soul
 
Sooo... a psychologist?
 
4:46 AM
I guess so
 
This well-known effect has of course been replicated in countless experiments.
4
 
5:04 AM
@Loktar wow, that's awesome!
 
hah thanks @towc
 
@Loktar duuuuuuuuuuuuuude
wrinkling my brain.
 
5:35 AM
@Meredith
I think I am getting somewhere, but my trial and errors, is for now only resulting in errors! Any pointers to my thinking would be much appreciated, am not sure if I got the right idea :)
@Meredith
http://jsfiddle.net/ez2zcozg/5/
 
5:48 AM
Well, if there was no name for firetruck in my language, I would be pretty surpiced to see one coming at me! :P HAha nice one @Loktar
 
6:02 AM
What would be the most common (hopefully in a professional setting) pattern used for copying elements with jQuery online?
Putting the entire div saved in a variable and jQuery clone from it,
creating the div one by one and using append() and stuff to add elements to each other?
Or some other way such as cloning straight from an html file?
 
I am trying to modify viewer.js of pdfjs
any help?
 
7:07 AM
mornnig guys
 
morning
Even tho its midnight here
 
then go to sleep
 
Soon my friend, soon :p
 
sup
lounge is ded
 
@BartekBanachewicz not much more alive here
 
7:26 AM
Someone here is bored and want to help me style my web application?
 
beh style
 
0
Q: Modifying viewer.js file

Mr_GreenAccording to Mozilla's pdfjs plugin, I can view my pdfs by passing a query param to viewer.html as shown below: http://localhost/MyProject/viewer.html/?file=file.pdf This is working fine. But I have some different kind of requirement. The requirement in my project is that I need to have tabs l...

 
Morning
 
Guys, maybe someone knows this... no Debian, I have a script server and a database server... when I execute a mysqldump command on the script server for the databaseserver (with a databaseconnection as bash script), and I add an "> Filepath" at the end - is this the path of the script server or the database server
 
7:41 AM
I'm not sure, but you can check the docs
 
@Kovu Assuming it's a normal pipe, it should be the "script server"
 
so in fact that means the data will be generated on the script server as well? so there might be huge traffic between this servers then?
 
@Mosho perfectly fine to me cc @rlemon
 
@Kovu Yes.
 
thats bad... how to avoid that? Can I have my script and my cronjob on my scriptserver but execute it on the databaseserver?
 

« first day (1686 days earlier)      last day (3266 days later) »