« first day (2163 days earlier)      last day (2784 days later) » 

12:51 AM
@rlemon haha what?
 
1:01 AM
I'm trying to mimic a python script with node for the rpi
do you have any idea how I would replicate BUS = smbus.SMBus(1) with node?
@BenFortune ^
warning, I've been drinking / I don't really know python
like, enough to stumble my way through so answers to get what I want
ooo new video
 
1:27 AM
Well..apparently this is a thing
4485
Q: Why does HTML think “chucknorris” is a color?

user456584How come certain random strings produce colors when entered as background colors in HTML? For example: <body bgcolor="chucknorris"> test </body> ...produces a document with a red background across all browsers and platforms. Interestingly, while chucknorri produces a red background a...

 
1:43 AM
This is a nice little game: ramorris3.github.io/minor-miner
5
 
That is great actually
 
2:03 AM
surprisingly tight controls for a js game
 
@rlemon his videos are always fascinating
I wonder what he does for food
 
2:35 AM
'Ello
 
 
3 hours later…
@MapleStory Welcome to the JavaScript chat! Please review the room 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.
 
 
1 hour later…
6:52 AM
ok, turns out it's better if only employers give me the quotes
but thanks everyone anyway
 
7:13 AM
why
 
why
 
 
1 hour later…
8:38 AM
hi all
 
Wes
@copy i already hate it...
 
@copy me too
 
9:40 AM
@copy It's like a much easier (and less disturbing) Super Meat Boy
 
 
1 hour later…
10:47 AM
You know, whois guard is so...weird.
I just renewed mine, it costs less than $3 a year, and it's just a weird service.
Its point is making money on something that doesn't (I think?) cost money, because you pretty much have no choice
 
11:14 AM
Why o/
 
Why o\
 
Nice game @MapleStory
 
@BarneyStinson Welcome to the JavaScript chat! Please review the room 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.
 
11:50 AM
@Barney lol,you love to play it too?
 
Yes . It's good :p
 
12:25 PM
@waxi i commented that.
also, you can look up what the second argument to array.prototype.reduce is at MDN.
it's not a secret.
 
12:49 PM
When can I omit the curly braces in arrow functions?
 
When there is only one statement.
well, expression, technically, not statement.
(foo) => foo + 1
(foo) => { return foo + 1; }
 
user6820627
New little game thelistenheargame.ml
 
user6820627
Try this...
 
user6820627
a little joke: How to prevent users from scrolling the page? Embed JS: while (true) {}
 
1:05 PM
That also prevents them from ever coming back to your site.
 
user6820627
Yeah
 
user379888
1:21 PM
JavaScript is difficult..
 
1:31 PM
no..
 
user379888
How do i paste code here?
 
1:56 PM
@rlemon I just received notification that you commented there was a lot of auto generated code in the example I provided the other day and I wanted to write and say Thanks for commenting
 
2:17 PM
hello everyone
anyone knows which property of a dom element I could use to identify it? for example
i need to subscribe a dom element to a custom event that will be handled by some custom code
I need to save this subscription in a js object, like this
{subscribers: {'change': element}}
where element is some sort of id of the element that I could use later to retrieve the dom element itself
my elements do not have an ID and if possible I would not give em an id.. should I go for a custom property on the dom element instead?
 
2:49 PM
Why don't you want to give them an id?
You can add custom properties using data-whatever attributes on the element, or programatically with the dataset api: developer.mozilla.org/en-US/docs/Web/API/HTMLElement/dataset
That would let you assign your own ids without walking on the main id property.
 
 
3 hours later…
5:48 PM
I'm the proud owner of the first built-in WiFi espruino
Came out of testing today at a hardware workshop in oxford.
 
6:05 PM
Had to read that thrice to realize it wasn't about you coming out.
 
6:19 PM
So why is it acceptable to call stackexchange sites sister sites but not brother sites?
is that an acceptable meta question?
 
@towc do you have a picture?
this proably looks like the wifi part espruino.com/CC3000
 
6:35 PM
I think I'm the first...
@littlepootis also, I'm gay
many people at the workshop reccomended "tomorrow's edge". Thoughts?
or edge of tomorrow
 
@towc noice
 
for the record, I'm not gay
 
I know:
Oct 20 '14 at 14:09, by towc
@copy today she decided to hug me because she had a very high mark in a test she was sure to have had a low mark. Either she thinks I'm gay or luck's going my way
 
I don't even remember that 0.o
wtf
 
towc you must travel a lot
 
6:39 PM
Apparently, luck didn't go your way
 
oh right, that was when I was still in italy and wanted to kill everyone
you weren't even here in 2014 XD
or were you
too lazy to check
trying to get a firework display and maze running on the espruino
 
so yeah
I was
 
!!urban Caprica Six
 
@William No definition found for Caprica Six
 
why did you remove it?
 
6:43 PM
( ͡° ͜ʖ ͡°)
 
:/
you got a fat face/nose/eyebrou(|w?)se(s?)
 
@towc asks the guy with eyes the size of peas and a dislocated, scarily straight mouth, and no nose.
 
@littlepootis hey, that's my actual face
[gimp needed] (wink wink @rlemon)
and oooooh 0.o I can now have my sleep ruined by JS without keeping the laptop open :3
this is so great
or I can hook up the espruino to a nodejs server, that makes a conversation with @littlepootis and catches when he presses a button, and that rings the alarm
@littlepootis up for it? We can actually make it happen and it will be so hilarious
 
That thing costs $35?
 
yes
but you don't need it
 
6:49 PM
Caprica Six I believe should be hyphenated.
 
the button can be from your pc
still can't get the display to work :/
 
@towc sounds fun ( ͡° ͜ʖ ͡°)
 
:|
btw, I'm starting to get used to comma first notation
and despite the fact that it would show that I was wrong when I suggested against it, I like it
 
@towc turn back while you still have a chance
 
no not that notation!!!!
it is terrible
 
6:53 PM
@KendallFrey you may be the respected maths guy here, but you can't tell me what to do
 
He's not respected.
 
I'm definitely not the math guy
 
^
 
I respect him
 
He is feared.
 
6:53 PM
Benji is the math guy.
 
true dat
 
well yeah, but I don't see him very often :/
time zones I guess?
also, he may have a life
while clearly @KendallFrey doesn't
 
those are a myth
 
6:56 PM
@William deja vu
 
which was posted before sorry
 
those lions are racist
 
I don't think so, but it's weird because I remember reading something similar weeks ago (on Verge).
 
I think the dog is
its funny as a kid there were all these things I hated my parents doing and now I cant remmeber what the were as a legal adult
 
that was interesting
 
7:04 PM
yeah I decided it was quite irrelevant to the chat room. probably isn't something I want in my history.
 
hey, I'm gay
so that's fine
we have worse
!!slidepoop
:/
 
@towc stop saying your gay when your not
 
it's clearly a joke
if you're offended by it, then I'm sorry
 
it is only a little funy
we need a chatroom playlist
what songs do you listen to @littlepootis
 
he probably listens to your mom
she has such a nice voice I've heard
 
7:19 PM
my parents are divorced
 
 
1 hour later…
8:41 PM
:(
 
@littlepootis still haven't found a way to give epileptic attacks on this relatively slow-changing binary-state 84x48 display :/
but I'll find it
I must
 
@towc is that glitch maze on there?
 
amazed yet?
the lives I can ruin
 
yeah, sooo good
i'm stuck on level 8 still
it's not so seizure enduing for me, i like the rhythm of it
the blue wave fucks me up a lot of times but i like the quirk of it
^^
 
level 8? 0.o
you can actually fairly accurately calculate how much minimum time you must have spent
and you're not going to like it
 
8:57 PM
yeah, the timer ran for 40 minutes last time i attempted it.. although i think the timer keeps running when you tab away and i was doing that a lot
 
congrats
yeah, the timer keeps going
did you make sure to ruin other people's life with it using twitter/facebook/g+?
 
heh once i beat it i will ^^
isn't it just (2^(level/2+3)+1) or do you mean there's another way?
 
yeah, last level is level 12
 
daamn
 
good luck :P
 
8:58 PM
thanks, i'll try though
 
you're the first person who claims to have gotten up to 8
 
i've managed the breakpoints well now so i have an okay system
 
tell me when you reach it, I had a big prize in mind for who manages to finish it ;)
and make sure to test your eyesight every so often
I should have put a legal disclaimer
 
So, the cat API has three formats. HTML tag, actual image, and XML. I hate XML and I can't use the HTML tag so I want to use the image. But it basically just goes right to the image url... How can I extract the url? thecatapi.com/api/images/get?format=src
 
saying it's not my fault if your eyes are damaged
 
9:00 PM
haha yeah, that's why i'm tabbing away
i also have a bookmarklet that inverts dark backgrounds and white text into light grey and dark grey respectively although it doesn't work with canvas obviously
 
this is as far as I've gotten during testing
@bitten css filters work on canvas ;)
 
@towc oo yeah, derp
-webkit-filter: invert(100%);
nice
maybe a little less than 100 so it's off-white
@towc hopefully i'll make it to 9 tonight :3
 
@bitten tell me what the timer reads ;)
 
right not 12.04
 
I feel so bad
you'll understand why at some point
(yes, the difficulty is not just the maze getting bigger)
I feel even worse
 
9:08 PM
it's not just because level 12 is 16 times larger than level 8?
if the formula is not the area
haha what
what else is there?!
don't tell me the maze changes over time
 
...
you'll see
it only starts affecting you at level 8
 
so it's happening now
 
yup
interesting to see how much time it takes for you to figure it out
 
by playing or reading the source? heh
 
the source is barely minimized, and there's a pretty print version on github, with comments and all if you really want to
but that kinda takes the fun out of it
 
9:12 PM
yeah i'm just going to play and find out
i also often restart because when i tab back i forget which direction i had been going in
;_:
haha
 
9:34 PM
 
don't you have a life? 0.o
 
i have the flu? does that count?
what changed? i couldn't tell
or maybe i'll realise at 9.. don't tell me
 
Hey so I have an issue with text selection that is really killing me right now.
 
@EllDoubleYew Welcome to the JavaScript chat! Please review the room 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.
 
Essentially whenever I get a range from the area I am selecting, the range indexes are always relative to the nearest span rather than relative to the beginning of my text string.
Is there a way to set what my .getRangeAt() is relative to?
 
9:50 PM
How can I get where this URL resolves with JS? thecatapi.com/api/images/get?format=src
 
console.log(win.location.pathname);
 
use win instead of window to get the pathname
 
Like, from Javascript I want to get the final url that it redirects to.
I'd prefer not to have to parse XML
 
Happy birthday @RyanKinal !!
11
 
9:55 PM
you dont need to @TristanWiley check out this answer stackoverflow.com/questions/24694087/…
 
Yeah but I don't want to actually go to the page, just get the url.
 
10:19 PM
Hey guys, is there a way to add a css class to only the link that corresponds to the current page the user is on?
 
@ManuelStoilov do you mean if the anchor link points to the same url as the current page?
 
Yeah, so I have a home and contact button on my navbar. So if a user clicks one of those pages, he is taken and it shows that he is on that page by highlighting the link
So if he is on the contact page, the contact link above is highlighted
 
well you could just remove a class from all the navbar anchor links, and then add class to the anchor link that has just been clicked
 
How to render kml layer in google maps n angularjs
 
or style the active pseudo class (a:active) if it's a spa
or failing that look into window.location.pathname, unless you are using hashtags and so on, something even like jQuery('a[href="' + window.location.pathname + '"]') may work
easiest is #1 imo
if you didn't know, you can select dom elements by their attribute values
even omitting the 'a', my selector is still valid
 
10:27 PM
Hmm, okay let me see
I'm a newb so I'm a bit confused
 
>document
VM63:1 Uncaught ReferenceError: document is not defined
????
this is in chrome's console
> document.getElementsByClassName
VM76:1 Uncaught ReferenceError: document is not defined(…)
 
the class you are selecting isn't working
 
yeah it was just some kind of pseudo code, i didn't expect it to work out of the box
it depends how your anchor links are decorated
 
@bitten Oh, lol I'm talking to that other dude with the question
 
oh
 
10:31 PM
@bitten I'm implementing your solution right now :)
 
lol
 
any help?
 
@uoɥʇʎPʎzɐɹC are you sure it's chrome's console?
srs question
 
@bitten that's the one with the red, green and yellow logo, right?
(yes, it's the chrome console)
 
@uoɥʇʎPʎzɐɹC :3
make sure you're in the right frame context too
 
10:33 PM
I see.
 
you could be in a context that does not have access to the dom, i don't know if it's possible but it's likely
apart from that i have no idea
 
@bitten it was on newtab-serviceworker
what inside jokes do js devs have that the rest of the programming world doesn't understand?
 
set it to top?
 
@bitten yeah that fixed it
 
@uoɥʇʎPʎzɐɹC (y)
@uoɥʇʎPʎzɐɹC i don't know, what?
 
10:43 PM
@bitten I bet "i don't know, what?" is some kind of JS joke...
 
i wish
i'm not that funny :3
i was waiting for your punchline..
 
no punchline from me, I don't have much front-end experience
 
Hey @bitten how would i add or remove a class as the user clicks? Would I use javascript/jquery?
 
@ManuelStoilov yeah
well, does your website refresh when you click on the link?
 
@ManuelStoilov jquery and js are now the same thing, lol
 
10:46 PM
@bitten Yep. It's not a spa
 
then yes
 
weirdly, now when I click the arrow to expand the "document is not defined" referenceerror, it shows nothing
 
well, maybe it's best to handle it server side
or wherever your html is rendered
 
Got you. Thanks mate !
 
as you'll have a flash of an unstyled anchor link
 
11:09 PM
Wow.
This site starts a VM for you just to let you test browser compaitability, free.
Started a Mac OS X VM... pretty much the real thing
started in-browser
 
yeah, i liked their screenshot features too
 
wait, it's free trial...
the mac os x dialog looks like a system dialog
from my outer
OS
 
but if you're on osx, xcode have a few virtual machines installed and microsoft offer free virtual machines of ie8+ (developer.microsoft.com/en-us/microsoft-edge/tools/vms)
 
but screw ie8
and screw windows
...and microsoft in general
 
sadly some people need to support it still
 
11:16 PM
good thing I'm making a browser ext.
 
:p
 
edge of tomorrow was so good 0.o
 

« first day (2163 days earlier)      last day (2784 days later) »