« first day (756 days earlier)      last day (3032 days later) » 

12:22 AM
@Worf If I attach it to the button then it doesn't work if the button is inserted later on right?
 
@joshhunt ?
like a second button that must have the same behavior?
you do the same you did for the first button
var b1 = document.createElement("button");
prepareButton(b1);
document.bpdy.appendChild(b1);
 
what if I add the button after I add the event listener?
 
prepareButton adds the event listener
@joshhunt you don't need an element to be in the DOM to be able to attach event listeners on it
you only need a reference returned by document.createElement("button")
 
hmmm ok I see. That requires me to be in control of the thing that adds the button though
btw I'm not actually using this for anything in specific just trying to get a good understanding of it :D
 
function registerButtonEvents(someButton){
someButton.addEventListener(...);
}

var b = document.createElement("button");
registerButtonEvents(b);
document.body.appendChild(b);
@joshhunt you can select the button yourself in a later moment
say that "thing" adds the element to the dom, then you do document.querySelector(...) to select it
and add the event listener to it as well
 
12:30 AM
right, but you have to have something to find out when a button has been added right?
 
yes
that's because what you are using is poorly designed :P they should emit events
you can use mutation events tho
 
ok just checking :D
 
basically when something gets added to the dom you get a function executed
 
why do we use error 404 instead of 410?
 
404 = never existed but could be available in the future
410 = removed, and will never appear again
 
12:42 AM
it seems to be the default to redirect to 404 though
(though that might not actually be the status that the page returns)
 
12:59 AM
@joshhunt because people don't know what those codes actually mean or how many there are
 
error codes aren't actually for people
the error message is
@joshhunt 404 is for a page that doesn't exist now but may exist in the future
410 is for a page that existed, was removed and certainly will never exist again in the future
 
yeah I read more about it and it makes more sense now
 
oh how I hate that style of singing
 
hillbilly style you mean? :D
or the scream/growl-ish
 
1:09 AM
I don't know how to describe it in words
a lot of aaaaaayyyyyyyaaa noises. "hoOOme to Molllaaaaayyyaa"
 
ah well that's the hetfield style
it's all like djeahhh and uhdjeahhh
 
it's terrible, haha
 
1:57 AM
@SajjadKhan a position value other than static is required to use z-index. That's the only relation
cc @rlemon
 
position != static
 
^ true
 
Is there a way to write CSS that would position the label under the input which it's for ?
Is there a way to do this without having to wrap the input & label in a div (or span, or p, or such) ?
 
@NickAlexeev not in all browsers
Chrome does not respect different display values for label in an input
I don't know if it's Chrome or all Webkit browsers (even though Chrome is not Webkit anymore, it's still based on it)
You can make the label as another HTML element and use position to place it where a label would normally be placed
but then it isn't associated with the input in the markup
 
@TylerH So it sounds that wrapping input & label together is the way. For now.
 
2:08 AM
@NickAlexeev <label>Label <input></label>
and you don't even need to write the for="" attribute
 
@Worf I've just tried that. They are side-by side. Label first. (Chrome)
 
it is below the input already
 
labels are placed above input elements by default @Worf iirc
 
above?
 
well, before
jsfiddle.net/p126uv6s definitely not below
 
2:11 AM
@TylerH jsfiddle.net/3k9okbdk it could be even after, then
 
true
 
it is below on the z-axis
 
jsfiddle.net/p126uv6s/2 seems to work in Chrome
maybe they fixed the bug
 
otherwise it would look jsfiddle.net/3rxz2fr0/1
 
Cheers guys. I'll see if I can make it work. Worst case will be the heavy and conservative:
<div class="InputOverLabel">
    <input name="tehInput" />
    <label for="tehInput">label</label>
</div>
 
2:20 AM
lol
 
@Worf By "lol" do you mean "lame and unelegant" ?
 
what is wrong with <label><input><span>Label</span></label>
 
@Worf Then label > span { display: block } ?
 
how you prefer it to be
 
@Worf I'm not that confident with choice of formatting. My webdev-fu is not that strong.
 
2:27 AM
<label> is not just text, it's the equivalent of <a> for form elements. you don't put just text in <a> is it? same for <label>
in fact it has similar restrictions, a <label> can't contain another <label>, same as <a> can't contain another <a>
in fact we can even consider it completely redundant with <a>
<a href="#lol">
    <input id="lol" />
    <span>Label</span>
</a>
this doesn't work. but it could
it's just slightly different
 
I guess, in light of this <label> shouldn't wrap around multiple <input>.
 
exactly
 
[off-topic. One of my neighbors is smoking pot. Air currents around my building are such that I shouldn't sit where I am, if I want to operate heavy machinery later today. Then again, if all I want to do is write code, then...]
 
lol
 
a thing i will never understand in english is should vs shall. i don't have enough neurons for that
Incoming materials shall be inspected before they are accepted in warehouse. -> they could be inspected
Incoming materials should be inspected before they are accepted in warehouse. -> they ideally should be inspected
no, eh?
 
no
shall implies it will happen or something is wrong
should implies it should happen but if it doesn't happen it's not terrible
ask on English.SE or EnglishLanguageLearners.SE, they're give a more clear answer :P
 
4
Q: "Should I" vs. "Shall I" vs. "Do I" in AE

ElianIn colloquial prose, is there some difference to saying "Should I/we", Shall I/we", "Do I/we" to ask someone's advice? E.g. Should I call the police? Sounds like I'm asking someone (or myself) if I would be well advised to call the police. Should we call the police? Sounds like I'm a...

such a terrible answer
i like your explanation most @ZachSaucier
 
its not that bad
just hard for non-natives to understand what he's saying I think
 
3:32 AM
also seems that shall/should have different meaning if used in a question or in an affirmative sentence
 
4:14 AM
@Worf Where I'm from people never say "shall" in normal speech anymore.
 
@joshhunt great. so i will just fake to be a kiwi
 
:D
do people actually still use it though? I don't remember hearing it in any modern movies
 
i occasionally read it
 
you reading Jane Austen or something?
 
lol
 
4:18 AM
@joshhunt where in NZ you from?
Nice, I grew up in Wanganui
 
oh really? where are you now?
 
Wellington
work for Trade Me
 
Reasons for saying "oops!" 1. Dropping something 2. Spilling a drink 3. Driving off a cliff 4. Bumping into someone
 
4:37 AM
morning
 
Hi all, If you could only live with one source of news for front end dev news/articles, what would it be?
Curious to hear your thoughts
 
php.net/releases/5_3_0.php says: "Removed the following extensions: ext/mhash (see ext/hash), ext/msql, ext/pspell (see ext/enchant), ext/sybase (see ext/sybase_ct)" I checked master and pspell is still there. So was it deprecated or not, or did someone forget to remove it?
 
@crypticツ wrong room ;)
 
oops
lol
 
5:05 AM
posted on May 26, 2015

New Cyanide and Happiness Comic

 
 
1 hour later…
6:17 AM
any one guide me how to do that
animation using javascript and html5
 
check greensock tweenmax animation framework
 
@wo
@worf i want same like this alessiomanfredini.com/cloud/e1 do u have any idea
 
@Worf eeew
 
6:33 AM
@Loktar dosbox in a browser using canvas myabandonware.com/game/wolfenstein-3d-1ko/play
 
@Worf eeeww weird
 
@NullPoiиteя ahahhahaahhaah
@MadaraUchiha more here imgur.com/gallery/sfx5z still nsfw
 
6:54 AM
@MadaraUchiha heeelp me plis
 
@KeyboardWarrior ?
 
@MadaraUchiha I am trying to make a bat file using SchTasks to create a Task that triggers on logon but runs hourly... any ideas?
 
@Worf that boy in pink dress is kind of offensive
 
@KeyboardWarrior Where's the problem?
 
I can only get the trigger to be "one time"
 
6:56 AM
@KeyboardWarrior Don't use SchTasks to trigger the bat file on logon, only hourly.
 
but then will it continue when the machine is turned off and on again?
 
Use the boot (or startup, can't remember how it's called in Win) directory
@KeyboardWarrior Of course
 
because then there wont be a trigger... or will it have been triggered so it just works?
 
That's the point of scheduled tasks
You don't need to reconfigure it every time you boot your PC.
 
well then I think I am done :D
Thank you sir
 
6:58 AM
 
@KeyboardWarrior Don't take my word for it, I haven't worked with scheduled tasks since XP
You should test it yourself, but that's how it should work.
@Worf Is that a birth control ad?
 
aha
!!tea or coffee or coke or redbull or 5kg of pudding
 
@Worf redbull
 
phew
 
@MadaraUchiha I am going to test in first
but thanks dude
@Worf Please burn it, fucking burn it
 
7:08 AM
actually, he could be a younger you
 
On the bright side though, he looks more intelligent than the Italian :P
@Worf which is why I know you should burn it now before it fucking lays eggs
 
@KeyboardWarrior :D
 
glad that you said singular "italian" this time #lacist
 
hi, can we set a custom url in the Bookmark for all browser?
 
@Worf I am keeping the general lacism to a minimum and singling out you assholes :)
@NullPoiиteя Am I being too nasty?
 
7:16 AM
may be little bit ;)
 
7:29 AM
Ok, this can't be a coincidence. To open a "Private" tab in FF or Chrome you press Ctrl + Shift + P or N
get it, "P or N"
 
@StephanMuller ctrl + shift + p is print
 
> in firefox it's Ctrl + Shift + P or N in chrome
 
7:46 AM
user image
4
 
@StephanMuller I, uhm don't get it and at this point I am afraid to ask O.o
 
@KeyboardWarrior PorN
you know, naked women, fake moans, feels good to watch in the nether region
 
@StephanMuller I didn't get much sleep last night, so it slipped right "through" my fingers :/
@StephanMuller This is a @DarkAshelin gold mine here -.-
 
@KeyboardWarrior what a noob
:P
<3
 
@easwee hahaha dirty Slav!
 
7:54 AM
Reminds me of that joke where the professor is telling his class that the exam will be held tomorrow morning at 8 o'clock. A student raises his hand and says, "What happens if I'm so sexually exhausted from tonight?" To which the professor cooly replies, "Then you'll simply have to write using your other hand."
supposedly that actually happened, but I have no basis for saying so
 
incompatible has ho incompatibles plural is it?
 
@Worf sentence this what makes sense not
 
wat
nvm i figured out my self tho. i'm stupid
cc @KeyboardWarrior
 
@KeyboardWarrior actually very clean - had shower 1h ago
 
I have been summoned
 
8:11 AM
yeah - need more coffee - now back to the kitchen
sounds simple
 
Like child's play
 
i read that. i wish i didn't. thanks for the visual
 
@DarkAshelin Hahahaha
 
:23508017 O_O
 
Hi all, been a while
 
8:16 AM
@DarkAshelin It has
How are you holding up?
 
What is the answer:
 
Hmm, I've been taking naps in the bathroom at work
 
 
I feel like this is some trick question
 
@DarkAshelin your instincts don't lead you astray
think carefully
 
8:19 AM
@MadaraUchiha oh also, I've been spending a lot of time on reddit, since that isn't blocked
@Neil can I think dangerously?
 
@DarkAshelin Make a wild guess
If you pick incorrectly, I'll just make fun of you (kidding)
 
You're both right and wrong I suppose
142
Q: Identification of a quadrilateral as a trapezoid, rectangle, or square

The Chaz 2.0Yesterday I was tutoring a student, and the following question arose (number 76): My student believed the answer to be J: square. I reasoned with her that the information given only allows us to conclude that the top and bottom sides are parallel, and that the bottom and right sides are congru...

2
The correct answer according to the test is J, but it should be F
 
@DarkAshelin Jisses that was rough
 
@MadaraUchiha oh check my Black Desert character
 
8:23 AM
student gets a hard time for indicating F by the teacher, but it was the right answer
 
@Neil That was awesome
 
i feel bad for the student
 
Teachers can be very ignorant
 
well apparently the test was wrong
 
@DarkAshelin Even your game characters are "promiscuous" O.o
 
8:30 AM
i suppose if you're just correcting yet another test for your students, you're not likely going to prove the correctness of each question
nor would you put the test in doubt just because a student thinks she's right
 
@KeyboardWarrior what?? She's just cute
 
teacher is probably just lazy, not ignorant
 
@DarkAshelin mkay :p
 
@DarkAshelin is it a fun game?
 
@Neil yes. Extremely in-depth game and so many aspects too
I feel I could play it for a year and still not have seen all the content
 
@Neil That is a square
 
@MadaraUchiha Scroll further down
 
http://thecodinglove.com/post/119924598307
The coding love
When I am the only available developer in the office
kbironneau
1432629032
 
@easwee Haha, I wouldn't call not using those tools a "mistake"
 
Ah, right
@SomeGuy Yup, I fell for it too
Right side is not guaranteed to be perpendicular to top or bottom
 
8:36 AM
Yeah
 
@DarkAshelin still working at the same bank?
 
@MadaraUchiha yes
 
@DarkAshelin And?
 
@SomeGuy I would, because I know the pain and waste of time of doing that by hand and it has been bothering me how to do it faster
 
What and?
 
8:42 AM
if you are doing it for money minutes count and add up fast
 
@DarkAshelin Last time you were here you said you were on your way out
 
No
Here till the end of the year :(
 
@SomeGuy Automatic Browser Refresh is something I avoid like the plague, I simply don't like it. But automatically restarting the node - process is great
 
Having this chat open drains my battery like no tomorrow
 
@DarkAshelin I might have to play it as wellt hen
very tricky question for a 13-year-old
 
8:54 AM
@Neil if you do, let me know
 
looks very realistic
 
@Neil those screenshots are on LOW graphic settings
Medium gives me 10 fps and medium-high gives 5fps :/
I need a gaming rig
 
then I'm probably in worse shape than you are
I only have Radeon HD 4600
 
9:09 AM
I got a macbook
 
I have no idea how to gauge that :/
 
Me neither
 
@KeyboardWarrior Jpgs look a lot more filling than they really are
 
@Neil true but still tastes greeeat
 
9:22 AM
 
9:35 AM
Hi guys anyone used angularJs routing from one html to another html @all
 
@Worf I hope you choke on your strawberry
meh sorry guys I never slept last night, me is cranky
 
:|
if you watch carefully, it's tomato. not strawberries
@Katler asshole
 
@Worf strawberry!
 
@Katler i hate u
@Katler go get some sleep, then come back
so that i can continue insulting you
 
hahahaha
I have 5 more hours until I can sleep for 12 hours :D
 

« first day (756 days earlier)      last day (3032 days later) »