« first day (1498 days earlier)      last day (3452 days later) » 

2:05 PM
I am amazed by the power of human brain, and kinda scared
my ears adapted to the broken headphone :-/
 
Hi florian
 
@darkyen00 Perceptual adaptation. Look it up
Mindblowing
 
did ... thats why am amazed
but thats making these head phone sound worse, everybody else loves them
 
I can imagine
I hate when the balance is off
 
2:13 PM
i hope my head adapts back to this, and there is no damage to my ear.
 
2:33 PM
Would that make it resolve with the event, or with the response?
 
KO is more fun than I thought
about 2 hours reading docs and doing the interactive tutorials, and 10 minutes coding.
 
It's pretty simple and fun
 
Great challenge :D
 
Why does google like to brag to me that it loaded thousands of results in less than a second!
 
2:40 PM
Oh wow, @BenjaminGruenbaum our implementations are relatively similar
We both went for the simplest possible solution :D
 
Yeah, it's the simple way to implement it
 
Next up: Same challenge, only now with C.
 
I wonder if someone did a C to JS compiled language
(As in, to use in place of JS, not something like emscripten)
 
@BenjaminGruenbaum I'm not sure anyone's that crazy.
 
Maybe I'll do it in DART
 
2:45 PM
I think you should elaborate on what you mean by the line "question should be formatted nicely" in the README
 
As much as you want
 
flying eggplants
 
OHH YES
 
@SomeGuy Not like this ^ (cc @FlorianMargaine)
 
2:48 PM
@SecondRikudo Hahaha
@FlorianMargaine You couldn't add 2 lines of CSS to clean it up a bit?
 
@SecondRikudo lol
 
@SomeGuy He actually has a style.css file in his submission
But it's empty XD
@darkyen00 your image has a typo in it
Pub Sub Udates
 
...with a red mark lol
 
3:04 PM
The chat socket hangs up on me :(
How terribly rude
 
did they remove the option to disable trackpad while typing from ubuntu?
 
@SecondRikudo do u like the over all ?
 
is there any reason for <title> to be an element and not an attribute for <head>, like <head page-title="cheese">?
also, instead of using metas, you just use their attributes as the head's ones: <head charset="utf-8" viewport="init-scale=1" page-title="cheese&unicorns Co.">
 
3:21 PM
posted on November 22, 2014

var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www."); document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E")); try { var pageTracker = _gat._getTracker("UA-3727700-1"); pageTracker._trackPageview(); } catch(err) {} POW!

 
because that's what is written in the spec
 
in my head the very definition of metas and titles as elements fails
 
@towc generally metas are shims for http headers and you should use those instead.
 
@BenjaminGruenbaum http headers?
some googling needs to be done
 
WTF ? why does this returns 0 ? jsbin.com/boxukoluqo/2/edit
 
3:26 PM
@RoyiNamir .length doesn't return the number of children...
use el.childNodes.length instead
 
@BenjaminGruenbaum Yep! :D I tweeted that: twitter.com/IonicaBizau/status/535712017802608640.
 
el.childNodes is some array-like object containing all of it's children, I assume you wanted the number of kids in the body
 
@RoyiNamir last not last-child
 
also, div has no last-child?
 
Also - whatever you think of doing - don't.
@towc he's using jquery
 
3:28 PM
@BenjaminGruenbaum don't care. He should be using that anyway :P
 
Anyone here from netherlands? I wanna buy a laptop and I'm there soon and I wanna know if it's cheaper than here.
 
@BenjaminGruenbaum how much do they cost there?
 
"there" as in Amsterdam or as in where I live?
 
@BenjaminGruenbaum :last-child should also work
from my testing , it only matters if it's a body childrens or not.
this is working : jsbin.com/xudumejako/2/edit
 
@BenjaminGruenbaum where you live
 
3:31 PM
while this - doesnt jsbin.com/xudumejako/4/edit
 
If you want to always use native selectors and not sizzle - do document.querySelectorAll and pass that to jQuery.
 
@BenjaminGruenbaum And he commented here: github.com/IonicaBizau/github-contributions/pull/… :D
I was so happy GitHub CEO used my tool. :-)
 
@IonicăBizău Doesn't he say he didn't used it?
cool thing btw :)
 
@PeeHaa He didn't use that feature from that pull request, but he did use my tool.
 
3:42 PM
ah cool
 
4:02 PM
Hey @copy, trying to abuse test your groovy js-linux thing. When I type ~ I get ". What's up with that?
 
Are you using a non-US keyboard layout?
 
ye
There is obviously a gap in my understanding of how keyboards work. I'd expect the character that appears to be based on whatever unicode value the browser sees
 
There's not good solution for that, to be honest
You can set the correct keyboard layout inside of the the VM
I guess I'll write that in a Readme
 
just looking at how to do that in nix now
I don't even linux bro
 
hey guys
 
4:11 PM
@IgelHaut 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.
 
Try localectl set-keymap --no-convert uk
 
I've written a lightweight preloader for modern html apps:
http://bit.ly/rscLoader

Where can I post that code to reach audience?
 
Erm.
@copy I did find that on the arch linux pages, did that, accepted what I asked it to do. Erm...it's wrong.
I am using a uk layout, but it's mixed up @, ~ and |
ok, so apparently there is also a gb keymap, confusingly.
 
@IgelHaut Not using an obfuscated link would be a good start
 
Can anyone tell my why this cookie set with jS keeps expiring before the session is up?
document.cookie = "checkAge=true";
 
4:17 PM
allright, here is the plain link:
https://github.com/IgelHaut/rscLoader
 
Tried gb, also wrong
interprets | as ~
 
If I navigate for around 11-15 pages it doesn't show up in chrome dev tools and my (PHP) login is triggered again because the cookie wasn't found.
 
@TomW Ugh, handling of keys is terrible in JavaScript
Can you go here: unixpapa.com/js/testkey.html and tell me what keycode it tells you?
 
what keycode it tells me for what?
 
|
 
4:20 PM
124
(the C is me trying to copy :P)
@copy so I've set my keymap to uk, gb, extd and intl in turn and none of them interpret @~| correctly
 
@SomeGuy laaaaaaaaaaaaaazyyyyyy
 
@Dan - try to update the cookie via php with setcookie('checkAge', true, 0);
if the cookie still disappears, then check your browser settings
 
@TomW Well, the browser tells me the same keyCode for |, but the physical key is somewhere else
 
@copy I'm not sure what to tell you. Is there anything I can do inside the VM to diagnose what it thinks it's getting?
or indeed in the browser
 
You're pressing the key left of Y, right?
 
4:27 PM
@IgelHaut Not sure I follow. The cookie must be set with jS and should last the session. The PHP needs to check for the cookie on each page load, and if it's not there it needs to display a form. How would setcookie() help with this?
 
mmmwhat?
to the left of Y is T
clearly I don't understand the question
 
Left of Z?
 
yes
 
German keyboard layout perhaps? ^
 
God this sucks
 
4:30 PM
@Dan - if you can edit the php code, try to update your cookie with php, something like this:

if(isset($_COOKIE['checkAge']) && $_COOKIE['checkAge']) {
setcookie('checkAge', true, 0);
}
 
@Dan Are you sure you don't just want to use $_SESSION?
2
 
@SecondRikudo Not really, could end up with a lot of drain if there's a lot of traffic?
 
lulz ^
 
@Dan If there's a lot of traffic, you likely don't want PHP :P
 
Well, that's another matter entirely!
 
4:32 PM
@copy I managed to get it to do what I wanted, but it doesn't make sense
I'll let you know how trying to host asp.net on the VM works :P
 
@SecondRikudo did u accept the bounty :o ?
 
@darkyen00 I can only accept tomorrow anyway :P
 
oh hehe
greedy me
 
well guys, what do you think about my piece of code at github?
 
@IgelHaut Link?
 
@IgelHaut Interesting idea, few things (haven't even read code in-depth yet
1. You don't have tests
2. You should have tests.
3. You should add support for loading your library over AMD or CommonJS (look them up)
 
I thought it could never happen to me my colleague, but read on...My colleague has been recruited to a project that doesn't use source control
nor any tests
 
@TomW Source control is trivially introduced if there is none.
 
@SecondRikudo - you mean browser tests?

btw - here a small demo: http://dev.igelhaut.org/rscLoader
 
you tell them that
 
4:38 PM
@TomW How do they synchronize?
I'm assuming there's a team on that project
How do they work together?
 
Yes there is, and no idea. Zip files, probably
 
@IgelHaut Aren't you preventing caching of resources?
 
@SecondRikudo the dev handing it over had the decency to sound embarrassed
 
@TomW On one colleague's machine: git init
 
apparently they were meant to get a TFS set up, and well, bureaucracy happened
 
4:41 PM
Go to bitbucket, open a private repo
 
@BenjaminGruenbaum Submitted a pull request
 
Synchronize to bitbucket repo
 
You're preaching to the converted man, it's not me you have to convince
 
Have rest of team members synchronize with git clone
 
Awesome, thanks
 
4:41 PM
@TomW I don't have to convince anyone
 
touche
 
Love the commit messages @SomeGuy
 
It's you your colleague that needs to do the convincing.
 
@BenjaminGruenbaum The second commit talks about the demo being presentable sadly, not the code :P
 
He's been developing for longer than I've been alive. He's a wizened old sage; I think his opinion will have weight
 
4:43 PM
@TomW Convince his superior..
 
@PeeHaa - i don't think so, they are just being loaded asynchronous and all in all should they be cached in eg. a single page app?
 
@SecondRikudo won't be a problem
I expect the superior's response will be "...we aren't?"
 
@IgelHaut Yeah, but the question is not only about single page app
 
@IgelHaut Yes they should be cached imho. Every time I visit a website which uses that I have to load the resources again adn again
 
@TomW Great, so all's left is to do it :P
 
4:47 PM
@PeeHaa yeah, that makes sense...
but imo they should be cached by the browser, i mean they are still being loaded...
or am i wrong?
 
@IgelHaut You prevent them being cached by the browser
 
@SecondRikudo 'enterprise'
it'll take weeks or months and probably a chain of emails a mile long
 
@PeeHaa by being loaded async?
 
4:49 PM
By using a timestamp to access the resource
 
not my problem, anyway
 
@IgelHaut /foo.png?bar=1 is a different resource as /foo.png?bar=2
 
I think the fact that I find it difficult to say 'not my problem' makes me a good dev? I guess?
I'm not sure
 
@TomW If there's something I've learned is that you can't win all fights.
 
"Oh give it here, I'll do it myself" is often the only way anything gets done
 
4:54 PM
@PeeHaa - ah, now i know what you mean, this is just on the example page for demonstration purposes
i thought you were speaking about the code on github
 
@TomW I guess it makes you a support guy / programmer dual role
 
very much so. My greenfield development has been very limited
 
@IgelHaut Oh I didn't look at the repo. I don't like to look at JS
 
I've ended up being fairly decent at maintenance through having to do a lot of it
It's not really where I want to be, but shirking work that needs to be done feels very unprofessional
I've maintained code that was (partly) written before I was born
 
@PeeHaa - daaaaamn i was confused lol
looked up the code over and over again
 
4:58 PM
and no, it wasn't my wizened colleague's
 
@PeeHaa BURN THE HEATHEN!
 
C'mon nobody likes looking at JS code :P
 
@PeeHaa I really like looking at JS code
I think it reads much nicer than PHP code, that's for sure :P
 
Lies!
 
PHP is horrible
 
5:04 PM
Nobody sane would tell you otherwise :-)
 
lol everything is horrible, stop repeating it all the time
 
@BenjaminGruenbaum $I->{$dont[$know]} = $what->{$you}($mean)
 
@SecondRikudo - what did you mean with tests?
 
@IgelHaut Automated tests
Unit tests
 
ah, ok
i've never done unit testing before...
should i put it in a seperate file to keep the filesize for the preloader as small as possible?
 
5:12 PM
when was the room discussion?
 
It's in about 2 hours
You can check the room schedule.
Hopefully people will actually show up
Like @Zirak and @rlemon and @SomeKittens - just a friendly reminder
 
@BenjaminGruenbaum I may be a tiny bit late (~10 minutes), serve refreshments
 
room schedule?
 
and it will be in this chat?
 
5:17 PM
Probably, it's being voted on right now.
 
What are the topics?
 
I think last time I checked "SO chat, but a dedicated room" and "Github issues" were tied.
@RonniSkansing gist.github.com/benjamingr/76cb8920bd6a6aa64b32
 
@Retsam yeah, 40%
 
I voted for GH issues
 
Thanks @Retsam
 
5:20 PM
Personally, I think a room would be much easier for discussion; much less delay from one message to another... though GH issues will be easier to read after the fact.
 
@BenjaminGruenbaum I actually voted room, but I'd like to change my vote to GH issue as well
 
Then do that
 
I can't
 
@SecondRikudo you can keep voting. Make 2 votes for GH, so that one cancels the previous and the other actually votes for GH
the percentages will be screwed up, but we only care about the one with the highest votes, right?
 
@towc Yeah; though that screws other options that aren't room or GH.
 
5:26 PM
@towc I can't keep voting
Getting a 'user already voted' error.
 
@Retsam screw them :P
 
@towc Realistically though, yeah, it doesn't matter.
 
oh. I actually didn't try to vote twice, but I saw that I could go back to the voting page and thought it could have worked
yep
> Could not cast your vote. Error returned by server: User has already voted on poll
 
Sim
5:38 PM
does anyone know where i can get help for excel?
 
5:49 PM
Wasn't the room discussion meant to start 50 mins ago?
 
I'm here, everyone stop panicking.
@Deep It starts in an hour
 
Oh. On the Gist it said 17:00 GMT
 
Check the room schedule.
 
Ah. ok
 
SO room and GH issue are tied
 
6:01 PM
"@rlemon all these sound Golden.

What about this saturday around 17:00 GMT?"
 
It was suggested. That wasn't the final decision
 
Less than an hour :)
 
Just realized the coffeemaker isn't plugged in. Don't ask me how long I've been waiting for it.
NOOOOO ASCIIIII!
 
Wat?
 
POWER ABUSE
 
6:06 PM
@SomeKittens Hahahaha
 
@SomeKittens 45 minutes?
 
@Deep it's in about 45 minutes
 
Alright, thanks
 
@SomeGuy it looks like dedicated room wins - I've made a room, SomeKittens will be hoesting the first one and we'll rotate from meeting to meeting I think (sounds ok?)
 
Sounds good!
 
6:22 PM
Hey guys; I'm a JS noob, and I'm trying to wrap my head around Bootstrap popovers and how to use/initialize the template feature. The site I'm helping to make is listing testimonials from customers, and users have the ability to share testimonials on social media. When we click share, I want a popover with social sharing options, where the link that gets shared is individual to that particular testimonial...
I figured if I could use the template and set the "content" to be the individual link, I could set up a template to insert that link in all of the social media sharing buttons
But I'm not understanding how to set up a template in my JS file
 
The JS room meeting is being held, starts at 19:00 GMT, please come participate!
5
 
Check if a string contains another with String.prototype.includes in Chrome and WebKit Nightlies. FF has .contains(). http://t.co/GiOc4MdHsR
 
@rlemon haha yeah Abishek actually found out about that a few years ago :P
its a cool feature
 
@SomeKittens String.prototype.includes = function(substr) { return this.indexOf(substr) !== -1; }
?
 
6:37 PM
@SecondRikudo well, not exactly, IIRC it doesn't use === but Object.is (so NaNs work with array#includes for instance)
SameValueZero I think is the algo name
 
@SecondRikudo It looks more complex than just a substring:
 
I have und question
 
please
 
your domain name times out btw
 
Mine? Yeah, free hosts do that
I need to detect where a window is being drageed, what application it is, and what file it has open, collect that data and pass it to PHP / NodeJS. What language should I use?
 
6:49 PM
window as in OS window?
 
Yeah
Like MS Word or something
 
Is this a desktop app?
 
user457812
I saw a notification for meat.
 
> Room Meetup
 
what is "Room Meetup" for?
 
6:50 PM
room meetup YAY
 
I didn't register for it
but I still got notification
 
user457812
MEAT!
 
looks like bug
 
^^
 
6:50 PM
only 5 guys registered for it
 
@AwalGarg bruuuuuu /me breaks in tears
 
The thing I'm making @Meredith? Yes it is
 
@Deep On Windows at any rate I think your choices are either C++ or a .NET language that P/Invokes
 
hai!!! @argentum47
 
6:51 PM
this is meet up ^^^
 
What about Python?
 
You'd need a hook into windows messages
 
howz ya @AwalGarg , long tym no see..
 
what about it?
 
6:51 PM
what happen
 
user457812
I don't register for events the same as I don't answer phone calls from recruiters that don't leave me a message.
 
@argentum47 too many exciting things going on... :D btw, I got a new laptop dude! \o/
 
\o/ yay
 
@AwalGarg Oooh, nice
Link?
 
Oh ok
 
6:52 PM
what more exciting things!!
 
@SecondRikudo I pinged you with it.... like 3 times :( hold on
@argentum47 come to miaou
 
going
 
@AwalGarg I saw no pings.
And I'm not in miaou in case that's where you pinged.
 
anyway. thanks
 
yesterday, by Awal Garg
cc @SecondRikudo @darkyen00
yesterday, by Awal Garg
GUYSS!!! I got myself a new laptop!!!!!
 
6:55 PM
var p = new WebSocket("wss://qa.sockets.stackexchange.com/", "chat") what happens after this? :(
 
magic
 
Presumably some event listeners get attached to the socket
 
you use the newly constructed instance p
 
@rlemon and @Zirak don't forget to go to the meeting
 
But then how do I connect to rooms at SO
 
7:00 PM
@SterlingArcher ping
 
like this one
 
@argentum47 Here's an old project of mine, hopefully you can make sense of it: ninjaecho.codeplex.com/SourceControl/latest#ninjaecho.user.js
 
@SterlingArcher @rlemon and @Zirak - don't forget chat.stackoverflow.com/rooms/65438/js-room-meeting
 
@argentum47 the start function is where stuff starts happening
 
okies
 
7:09 PM
!!summon 65438
 
@BenjaminGruenbaum I'll be on in ~10
 
@KendallFrey can I connect to irc freenode with JS? websockets or sockets.io
 
7:52 PM
... irc
 
ya irc.freenode and ef<something>
 
My overall contribution to the JS Room meetup: !!/oneroom
 
@BenjaminGruenbaum there have been some good answers already
 
@JanDvorak those answers are quite bad.
They represent exactly why these sort of questions are disallowed on SO
well, really g2g now
!!afk beerz
 
but... they are formatted nicely
 
8:34 PM
All room owners please subscribe to the mailing list
 
I'm making my own html5 video player controls, I have it all working except one thing: the escape key
 
@benlevywebdesign What do you want the escape key to do?
It already serves a default function with video players (exit fullscreen)
 
I don't want to change the browser/computer default function. I just want to have my custom "Full"(full screen) button which changes to exit on click to change back to "Full" on escape too!
So the button changes to say "Exit" on click(and goes full screen) and when clicked again it goes back to saying "Full"(exiting full screen)
but if I press the escape key the button stays on "Exit"
 
!!should I join twitter?
 
@AwalGarg Certainly
 
8:47 PM
no
 
@SecondRikudo does that make sense?
 
@benlevywebdesign Yeah
And you can't bind a onkeydown event on it?
 
@rlemon @Loktar @SecondRikudo everybody left?
 
@FlorianMargaine lemon left for the store, and your mic has a 70dB background noise, so I left too
But I can return
 
well
jason is there now
with cam
 
8:49 PM
@SecondRikudo I've never do that...
 
so if you come back now, sexcam
 
I'm just going to get food. I'll be back shortly.
 
cool
I got my cam and mic working
 
it seems the microphone is the one from my computer, not my headset's
 
@SecondRikudo is that easy to do?
 
8:55 PM
yeah that's it... it's why there's a sucky noise
 
!!tell benlevywebdesign mdn addEventListener
 

« first day (1498 days earlier)      last day (3452 days later) »