« first day (1300 days earlier)      last day (3642 days later) » 

8:00 PM
i.e. @Loktar
 
Does three.js count? I made a FPS last night
 
@rlemon I know your pain. This girl was running past me (a jaw dropper lets be honest) and we stopped at a crosswalk.. and i snapchatted her running to my buddy. He was like daaaaaamn.
 
except it's not a shooter
 
Is that weird?
 
or anything but walking around
 
8:01 PM
@KendallFrey ah, an FPW. Nice!
 
Believe it or not, I'd never made a game with mouse control before that
 
Programming in Pokemon Yellow: Video, Explanation & repo
In the video, skip to about minute 10. He spends the first 10 minutes gathering the items.
 
@RGG 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.
 
there is a rooms for electronics discussion ?
 
8:07 PM
 
0
Q: Flow control in node.js

PedroI'm new to node.js and I've been doing some research about the Flow control at this time I just have evaluated 2 options, these are my comments: Callbacks Complex nested callbacks are difficult to maintain (callback hell) The flow execution waits for the response (or not?) Callbacks are imper...

 
user1596138
Oh my god
 
@fahdijbeli uhh, what?
 
@fahdijbeli ^^^
sign up there, and check their chat rooms
 
@rlemon yes
 
8:08 PM

 Electrical Engineering

A place to talk with friends from the EE community about vacuu...
 
Card Minion or Card Valet or Card Butler?
 
I like Card Minion
 
@BenjaminGruenbaum I voted primarily opinion based :P
 
thanks @rlemon :*
 
8:10 PM
did.. you just blow me a kiss?
the fuck dude?
 
!!s/a kiss//
 
@RUJordan did.. you just blow me ? (source)
 
I did no such thing!
Dammit, I always forget she pings the regexer
 
got it the first time :P
 
xD
 
8:12 PM
ugh.
!!actually make a comic about @Simon or work on userscript for @Loktar or eff teh dog all night.
 
@rlemon eff teh dog all night.
 
O.O
 
!!urban fucking the dog
 
@rlemon No definition found for effing the dog
@rlemon Fucking the dog Doing nothing, shooting the shit.
 
I was trying to be polite about it
 
8:13 PM
God I hope that's not literal
 
it is a common term for me
 
Yeah... that is not a turn of phrase I'll be using
 
seriously. it is quite common in my city
 
> "What's up bro?"
"Just fucking the dog man."
"Dude..."
 
I had heard of shagging the dog, but not fucking
 
8:14 PM
^ yea, but it isn't seen in a bad light.
@KendallFrey you come from a hick town
you guys have your own fucked up terms
 
@RUJordan Why are you fucking the dog man?
 
Since this was on a British show, the Canadian got laughed at
 
did he say "shagging the pooch"
if so I may remember that
 
no
it was a girl
 
!!urban shagging the pooch
 
8:15 PM
@rlemon No definition found for shagging the pooch
 
!!urban shagging
 
@KendallFrey Shagging having sex
 
\o/
 
@Zirak it's too late to edit and now I hate my life
 
how imaginative
 
8:15 PM
Thanks.
 
2.9
 
@JoãoMosmann 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.
 
An API should probably not allow a response that's 340k, right?
 
!!learn thedog '<>http://chat.stackoverflow.com/transcript/message/16345533#16345533'
 
@rlemon Command thedog learned
 
8:17 PM
!!stat JoãoMosmann
 
@rlemon João Mosmann (http://stackoverflow.com/users/1390477/joao-mosmann) has 999 reputation, earned 8 rep today, asked 11 questions, gave 52 answers, for a q:a ratio of 11:52.
avg. rep/post: 15.85. Badges: 0g 2s 13b
 
nice rep man!
 
You're about to have 2.9% of my foot in your ass @Zirak >=(
 
$300
 
caps lock >.<
 
8:21 PM
@RUJordan that wouldn't be much
just the tip
 
Duh, that's my favorite game man
!!youtube archer just the tip
 
@RUJordan That didn't make much sense. Use the !!/help command to learn more.
 
good nigth
 
night
 
so I should start watching archer it seems
 
8:23 PM
@rlemon YES
 
> No! WHEN THEY'RE DEAD THEY'RE JUST HOOKERS!
haha yea i'm totally watching this
 
Hi all...
 
bonj
 
I'm trying to create some greasemonkey script, and yet testing on chrome's console... So this $x("//*[@id='asinbox']/ul[@class='clearfloat']/li[1]//span[@class='listprice']") gets me the right node...
however when splitting it to $x("//*[@id='asinbox']/ul[@class='clearfloat']/li[1]").find("span.listprice") Im getting [TypeError: undefined is not a function]
 
find isn't defined.
 
8:25 PM
...is $x defined?
or find
 
$x isn't jQuery
 
@Enissay You started out so well, ran the XPath and all. Why did you think it has a find method?
 
@rlemon its the first symbol there with a change of being undefined
though it was also present in the first expression which they claimed worked
 
well all $() and $x() elements have a find method... It never failed me before
 
8:27 PM
@SimonSarris It's a console shorthand
 
so ole lem is most likely right
ooooooooooooooh
cooooooooooooooooooooooooool
 
@Enissay Maybe as part of a library or something, I don't know. In the console, $ is a shorthand for querySelector and $x for document.evaluate as rlemon pointed out.
Elements do not have a find method
 
ow, I see
what I dont understand then is that $x("//*[@id='asinbox']/ul[@class='clearfloat']/li[1]//span[@class='listprice']") gives me one node as expected [<span class=​"listprice">​75 €​</span>​]
 
1 min ago, by Zirak
Elements do not have a find method
 
However $("//*[@id='asinbox']/ul[@class='clearfloat']/li[1]//span[@class='listprice']") gives me weird result: [<form id=​"checkoutFormTop" method=​"post" action=​"https:​/​/​it.buyvip.com/​checkout">​…​</form>​, <select id=​"categoryFilter" class=​"evt-filter-select" name=​"category">​…​</select>​, <select id=​"sizeFilter" class=​"evt-filter-select" name=​"size">​…​</select>​]
sorry for the spam
 
user1596138
@Enissay Umm... $x = function (query) { $(query) } hahaha
 
user1596138
Or some similar bullshit has been done
 
user1596138
Don't do that. Start using a real method because right now you don't know how.
 
user1596138
Or find out what you're using
 
@Enissay That's $, not $x.
 
user1596138
8:33 PM
5 mins ago, by Enissay
well all $() and $x() elements have a find method... It never failed me before
 
4 mins ago, by Zirak
@Enissay Maybe as part of a library or something, I don't know. In the console, $ is a shorthand for querySelector and $x for document.evaluate as rlemon pointed out.
 
user1596138
Problem solved
 
I love it when Archer is staring at her boobs...
 
user1596138
I got my giant desk finally :D
 
> Really? Right now..
What Lana? Because when you walked into Strippers Discount Warehouse you said "I want something to show off my intellect"
*:Lana shoots Archer in the foot:*
 
8:35 PM
@Jhawins s/esk/ick/
 
LOL I love that show
 
@Zirak I hath already goog'd
 
@SimonSarris $x() runs xpath. so alone it will work
but it doesn't expose a 'find' method.
also, if you have no love for this I will not continue on the story line tonight.
30 mins ago, by rlemon
user image
 
@rlemon hahaha I think its great
 
okay
well then, does the space captain have a love interest? can he be like captain jack (love everyone)?
 
8:39 PM
love is for people with weak storytelling abilities
 
Captain Jack Harkness is a fictional character played by John Barrowman in Doctor Who and its spin-off series, Torchwood. The character first appears in the 2005 Doctor Who episode "The Empty Child" and subsequently features in the remaining episodes of the 2005 series as a companion to the series' protagonist, the Doctor. Subsequent to this, Jack became the central character in the adult-themed Torchwood, which aired from 2006 to 2011. Barrowman also reprised the role for guest appearances in Doctor Who in its 2007 series and 2008 series, as well as a 2010 special. In contrast to the D...
Jack works it in well.
 
@rlemon You win 7 internet points.
@SimonSarris You're so romantic.
 
I think you would look dashing in a greatcoat
 
You're dead to me
 
NOPE NOPE NEVER HAPPENED LALALALALALALALALALA
 
8:40 PM
so they invent some magic quirky dude who travels time and saves humanity and makes you forget that stockholm syndrome is a bad thing
 
...the destruction of a species?
 
they are not gone, they are locked in a time loop
TOTALLY DIFFERENT
 
next you're going to tell me TNG is stupid as well?
or SG1?
you're gonna have a hellofatime digging your way out of this hole ಠ_ಠ
 
one last fast question: does $() and find() accept xpath or only css selectors?
because apparently that was the problem :>
 
8:43 PM
Since you haven't said what $ is...
 
jquery I guess... or you mean in chrome's context it's maybe not... hmm
 
When you run $, what do you access? If you don't know, you're in trouble
 
> $
function (a,b){return new e.fn.init(a,b,h)}
o.O
 
And what is that? Do you know?
 
so what is it?
 
8:45 PM
Don't you know what's available to you? What you're running?
It's your environment
 
im working in chrome's console... the default one
 
Yeah, $ is actually defined in Chrome by default
 
You're in a website
 
yes
 
Type $.fn.jquery
 
8:46 PM
Poop donkies
 
Zirak is trying to educate you
 
1.6.4
 
New tab -> console -> $
 
lol, old jQuery makes Jake weary.
5
 
> $
function $(selector, [startNode]) { [Command Line API] }
 
8:47 PM
@BenjaminGruenbaum niiiiiice :P
 
xD
 
> $
> "cheddar"
 
btw it's amazon >.>
I mean, im testing on amazon's website
 
It seems, to me, that $ is approximately equivalent to document.querySelector
 
It is exactly that
 
8:49 PM
And $$ is approximately equivalent to document.querySelectorAll
 
Hooray!
 
@imbondbaby 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.
 
l need some help
-2
Q: Show different options depending on what is selected

imbondbabyI want to make it so that if United States is selected from the drop down list State list shows, if Canada is selected then the Province list shows. How can this be done? <select name="country"> <option value="US">United States</option> <option value="CA">Canada</option> </select> <sele...

 
@RyanKinal $$ whatt?
 
8:51 PM
bond never needs help
bond is a one man show
 
james bond needs help too these days
 
you are clearly not "bond baby"
 
i am using <select name="country" onchange="if (this.value == 'CA') document.getElementById('province').style.display='';document.getElementById('st‌​‌​ate').style.display='none';">
 
@RUJordan CHECK MY LINKS YOU ASSHOLE
 
@RUJordan YEP
 
8:52 PM
it only changes once when I choose Canada
but when I choose America again it won't switch back
 
@RUJordan hahaha you beat me by 6 seconds
 
@Zirak NO I WILL REMAIN OUT OF CONTEXT
 
@imbondbaby Yep. That's what your code says.
 
@rlemon dude you drilled that shit into my head xD
 
8:53 PM
You might want to consider an else statement.
 
I thought it was funny
 
And maybe some curly braces.
 
but
 
And maybe not using inline JS
 
even while using if and else statement
it switches ONCE
 
8:53 PM
@RyanKinal not maybe, just no
 
then won't switch if I go back to USA
 
@imbondbaby Show me
jsfiddle.net
^ make an example
 
one sec
 
Does $$(".derp") conflict with jQuery? @Zirak
 
@Zirak Those people were so weird, man
 
Their room filled Caprica with the most pointless commands
 
!!beer or rum
 
@rlemon beer
 
Must... resist.... regex.... s/commands/penis/... GAH...
 
8:58 PM
Aww, poor pointless penis
 
@imbondbaby get rid of the inline stuff.
first.
no one wants to look at it
 
@imbondbaby Okay. Try changing the display of both elements.
 
@RyanKinal no no no. baby steps.
 
Also, yeah, l2 addEventListener
 
make him hate inline
 
8:58 PM
make him despise it like @Jhawins despises all things good in the world
 
other solutions in that topic
 
:writes working example:
 
didn't work for me
 
:doesn't post it:
 
@RUJordan Why would it? jquery doesn't define $$
 
8:59 PM
@imbondbaby it really is in your best interest not to use inline stuff like onchange
 
@imbondbaby Other solutions in... which topic?
 
@Zirak good point, my bad.
 
-2
Q: Show different options depending on what is selected

imbondbabyI want to make it so that if United States is selected from the drop down list State list shows, if Canada is selected then the Province list shows. How can this be done? <select name="country"> <option value="US">United States</option> <option value="CA">Canada</option> </select> <sele...

I can implement them again on my page
 
@imbondbaby don't copy and paste answers. Understand them, and write them yourself. You'll never learn this way
 
and you can take a look
I did understand them
and they should work
and they do work jsfiddle
 
9:00 PM
Okay
so
 
but won't work on my site
for some reason
 
When you change a value, what are you trying to do?
 
i changed name to id= too
basically if U.S in selected from the dropdown
I want state options to show
if Canada is selected, I want provinces to show
 
Are you still getting the unexpected else error?
 
Right. But you also want the other one to be hidden
So, think about that
 
9:01 PM
yes
so I know
i will be using a .display = none
somewhere in my javascript
 
"When US is chosen, I want to hide Provinces and show States"
 
Listen to what rlemon said. Don't use inline JS. This will be much easier if you abstract your JS from your HTML
 
with an if and else statement
ok imma use the javascript solution
 
I feel like there's a "Don't make this hard" pun somewhere.
 
and show you guys
 
9:02 PM
Good man
 
on my live link
 
y u no fiddle
 
@imbondbaby Write some code that translates what I just said into JavaScript
 
@imbondbaby - did you open your console and check for errors.
 
jsfiddle sucks anyway. We really deserve something better...and there isn't anything much better out there.
 
9:03 PM
And then write some code that translates the opposite into JavaScript
 
yes
it said its pulling null
 
liveweave is nice but it feels heavy, codepen is too hipstery, jsbin is annoying mostly
 
hrm. I have a working answer.
 
"pulling null" <- sounds kinky ?
 
@Zirak I wish you could let people "connect" to your console so you could do it there
@adeneo lolwhut
 
9:04 PM
@Zirak JSBin is my favorite
 
I purposely did some fucked up shit in it. shall I post it for mr bond?
@RyanKinal??
 
Plunkr is too complicated.
 
@RUJordan That's a nice idea. It may be doable.
 
I wouldn't know where to start
 
5pm so I don't care. i'm not here to answer any follow ups or take grief from you guys.
there is shit code in there. learn what it is and why you should change it.
 
9:05 PM
@imbondbaby - open your console and copy paste the error message here.
 
If you make it, I want my name in the source code :P
 
You have video streaming. Streaming text shouldn't be too big a deal.
 
one sec
 
Well, is it really streaming text when said text needs interpretation?
 
let me modify @rlemon's ode
 
9:06 PM
It won't be the actual console, or maybe a rip of the chrome dev tools, with some alterations
 
I feel like it would be more of a real-time editor that people could see? I don't know tbh
 
code*
 
Yeah, the actual console would be tricky
 
@RUJordan Those exist
 
@Zirak Like weinre?
 
9:06 PM
Well fuck
 
Also, pimping @dystroy's remote object logs dystroy.org:8004
 
@SomeGuy Maybe
 
hint: switch statements are not preferred over if/else in this case. hidden attribute is new. the way I toggle the values is convoluted.
and I don't select any elements like they should be selected because i'm effing lazy
 
@rlemon - hint: global namespacing crap (elements on window etc.) makes me cry
 
eh. it's a demo
I don't care.
CRY BURNSY CRY!
 
9:08 PM
modified your code a little
I wanted state's to be default
and US to be default
 
you didn't read my hints
your code is doomed to fail in the real world.
 
anyway
 
i will modify it
 
home time
later gators
 
9:09 PM
later brah
 
!!afk peeing in the wind.
 
@imbondbaby - use jquery, it's great for everything !
 
well at least he's not running with wood again
 
^^ while peeing ?
 
That's just a disastrous idea
hahaha
 
9:11 PM
@rlemon - made your code worse (but shorter)
 
@adeneo rlemon is afk: peeing in the wind.
 
that script doesn't work
when I put it on my website
but works on jsfiddle
 
@imbondbaby - code comes before elements in the DOM, so elements not found etc.
Move the script tags to right before the closing body tag.
 
ah
i got it
to work
also would it be ok if I use it externally?
through a link in my head section?
 
Yes, that would be fine, but the elements still wouldn't be available so you'll need a dom ready handler of some sorts, window.onload comes to mind.
 
9:16 PM
hmmm
also what can I do to make this code better jsfiddle.net/atKLF/7
 
5 mins ago, by adeneo
http://jsfiddle.net/atKLF/8/
 
@imbondbaby delete it
 
ha
 
Ah
so simple huh
 
simple and horrible at the same time, it's like peeing while running, easy to do, but generally not a very good idea ?
 
9:20 PM
why horrible?
 
Because you'll pee on yourself of course
 
well
g2g
thanks for the help
 
guys, someone please make a site that's sole purpose is translating common functionality in languages to different languages
 
lol
well you're not wrong there
 
9:36 PM
@Crow Go be that man.
 
9:50 PM
@MikeRoll 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.
 
it just occurred to my mind that I've once heard the name Haines (person) somewhere, probably in a film, but can't remember in any way what it was
 
Underwear model
 
does anyone know any haines?
 
@Cypher 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.
 
FTR I never said peeing into the wind, I let it go downwind of me. distance++
 
10:07 PM
!!help
 
@HamZa Information on interacting with me can be found at this page
 
Does anyone know why (most) monitors have their video connectors (dvi, display-port, etc) vertically, so you have to push the cable half-blindly up, instead of just connecting it horizontally like any other cable (see: usb, ethernet, ...)
 
@Zirak because the graphic card is vertically installed?
 
It makes connecting things such an annoying task
 
@Zirak because Jesus is mad at you for being a fornicator
 
10:11 PM
The card in the monitor, I assume (because the one on your motherboard, at the end, you connect to horizontally). And why can't they insert it horizontally, or just make the connectors tip 90 degrees?
One of my screens, Samsung EX2220, has horizontal connections. It's the greatest feature it has.
 
  |connector|
---------------->board
  ^^^^^^^^^^^-> big surface, better grip

    |C|
    |o|
    |n|
    |n|
    |c|
    |t|
    |o|
    |r|
---------------->board
    ^^^-> small surface, less grip
I'm just ranting :)
 
The connector itself can remain the same - its orientation should change.
Do I really need to take a picture of this?
 
Maybe it's so that the wire is flush against the monitor instead of jacked out to the wall?
 
10:28 PM
@Nathan 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.
 
@HamZa, @RUJordan imgur.com/a/ofYbf
So it's certainly possible, but it must make manufacturing the display harder or something, otherwise I can't think of a reason why it won't be done.
 
@Zirak ahahaha, I was thinking about the otherside (PC side).
 
22 mins ago, by Zirak
The card in the monitor, I assume (because the one on your motherboard, at the end, you connect to horizontally). And why can't they insert it horizontally, or just make the connectors tip 90 degrees?
 
/need.some.sleep()
 
10:46 PM
@SomeGuy Does the login script still work?
 
10:58 PM
@Zirak Lemme test it
 

« first day (1300 days earlier)      last day (3642 days later) »