« first day (1663 days earlier)      last day (3284 days later) » 

12:19 AM
what's the markdown simbol for <hr>?
 
?
 
screwed a few words up...
 
ohh, markdown.
 
yeah, sorry
 
12:23 AM
thanks
 
@rlemon Tickler of keyboards, eh?
 
Yea. He's not allowed within 500 meters of an apple store.
 
@rlemon That's nice. I wonder if you could program in dispersion. (I know nothing about graphics.)
 
m59
12:39 AM
someone help me English.
Referring to my hair and my wife's hair....
Mine and Dani's hair <--- incorrect?
My hair and Dani's hair <-- correct, but verbose....
 
@m59 My and Dani's
 
m59
really! This language...
 
Or Dani's and my hair
If that's more comfortable.
 
m59
yeah, makes sense
 
The collective which is me and my wives' hair, which is enter....
 
12:44 AM
@m59 Yeah, English is weird in that it isn't always intuitive, even to native speakers, hence all the dialects.
On a tangent, a Romanian friend of mine was surprised at how bad spelling was for many English speakers. It's just not really an issue in countries where spelling is largely phonetic I guess, which makes a lot of sense.
Apparently Caxton has a lot to answer for, outsourcing typesetting of English to Flemish people.
 
m59
1:06 AM
@mintsauce also, laying vs lying
I need to lie down. I need to lay down. Pretty sure those are the same.
 
@m59 Yes!
 
m59
I am lying and I'm also lying down. LOL.
 
@m59 Well, different verbs; transitive vs. intranstive. Lay requires an object, but lie doesn't. E.g. you might lie down, but a chicken lays an egg.
 
m59
Yeah, I get it. Still horrid.
 
Most other (European at least) languages make an explicit distiction, but English is confusing.
 
1:12 AM
question can i use two different id's for div?
 
I wonder if it's coincidence that Perl was created by an English speaker.
 
both of them do two different things
 
m59
@Steve classes
 
nop
im getting like some data from javascript
they both will useed for like one to name the link and other is link
 
m59
you're not making a bit of sense to me =D
start at square one. What do you want to do?
and I don't mean your solution, I mean your problem.
 
1:16 AM
let me make a fiddle
 
m59
I could make it faster. Just tell me
 
like the google link i want to add src along href
 
m59
still not making sense
If you want help, please just tell me what you want and I'll show you how.
Stop talking about "src" and programming things.
 
im trying to combine the code for href and src since on one page the the links are used as just href and other page the the same like is acting as soruce for the video
 
m59
I don't know what you're trying to communicate with that link..
 
1:27 AM
document.getElementById("name").href="http://google.com";
document.getElementById("name").src="http://vjs.zencdn.net/v/oceans.mp4";
im trying to combine the above code into 1
document.getElementById("name").href="http://vjs.zencdn.net/v/oceans.mp4";
document.getElementById("name").src="http://vjs.zencdn.net/v/oceans.mp4";
both have same links sorry
 
m59
mercy.
Please, just describe the program without talking about code.
 
im trying to combine the two codes into one since both of them will have same thing
 
m59
Pretend that you know absolutely nothing about code. Nothing at all. Describe the program as though you're a user.
 
links
 
m59
I said, "without talking about code" and your response: "combine the two codes"
 
1:34 AM
okay i have video project im working on so im currently updating the names of the links using javascript as shown on jsfiddle so now im trying to get the sources of video through javascript but i'm trying to void making two seperate codes for one thing so i have two pages on one of the page i have videojs player where it plays the video but i have another page where i have added the direct links for the mp4 file so what im trying to accomplish is using javascript with since they both will
have same files one of them is link for the mp4 but other is acting source for the video so i'm trying to combine the above code into one
 
m59
Steve, you are terrible at following instructions.
 
document.getElementById("name").href="http://vjs.zencdn.net/v/oceans.mp4";
document.getElementById("name").src="http://vjs.zencdn.net/v/oceans.mp4";
sorry my english is bad
 
m59
I really need to go, but I'm trying to hang in here and help you.
 
<a id="name"href="url">link text</a>
<source id="name" type='video/mp4'>

document.getElementById("name").href="http://vjs.zencdn.net/v/oceans.mp4";
document.getElementById("name").src="http://vjs.zencdn.net/v/oceans.mp4";
i hope this helps
 
m59
If you would just tell me what your program needs to do, I'd have written the code 15 minutes ago.
Stop with the code. It's awful and makes no sense.
 
1:38 AM
i want the program to get the link for the video so it can play the video and i want the program to take the user to direct link for the video
 
m59
So, I'm on a page and there's a video player? That's step one?
 
yes
and there is another page it has direct link for the video file
 
m59
hold on
 
okay thanks
 
m59
Ok, so we're going to start with this jsbin.com/dozelutezu/1/edit
what does the user need to be able to do that they can't do? @Steve
 
1:44 AM
okay so step 1: the source of the video needs to come out of javascript
 
m59
sigh.
 
@rlemon lunch saturday?
 
m59
Last chance and then I really have to go. Stop talking about code and tell me what your user needs to be able to do.
 
user only option they have to be able to play the video
 
m59
Great, the user can play the video, so you're done.
 
1:48 AM
that's not the issue i'm having
im trying to make my life easier
 
m59
You're making it harder.
You need to write code that has nothing to do with your user?
 
yes
 
m59
...
So... you're writing a feature that doesn't do anything?
 
the code is to make my life easier
the feature does do something
 
m59
TELL ME WHAT THAT IS.
 
1:50 AM
jsfiddle.net/kfxvzy6b/2 the source for the video is coming from javascript
 
m59
Stop with that
Let's go WAY back, then. Is this a website?
 
yes it is
 
m59
How do I get to it?
 
its local atm
 
m59
that isn't my point
 
1:51 AM
dude i gave up
thanks for helping
 
m59
Fine, then the user visits localhost in their browser
@Steve if you would just tell me - the user types in the url or whatever.. they're on your-site.com. THey see a video or whatever. They can do this, etc, etc. This is quite easy.
Anyway, peace.
Imagine if a client called me and asked me to write a program and they described it as "well, there needs to be a string that gets concatenated with a walrus and there should be a red link". The idea is for them to tell me what the program should do, and let me worry about the strings, the concatenation, and I'd sub-contract a zoologist to deal with the walrus...
 
Walruses are cool.
 
m59
I believe it's "Walri".
xD
 
:-D
 
I'm looking for resources to learn AngularJS. Suggestion please :)
 
m59
2:01 AM
It's a mess.
@haopei ng-book
use ui-router's resolve to fetch everything asynchronous you might need and inject it into controllers.
 
Thank you @m59.
 
m59
make everything a directive...isolate scope. Don't deal with scope inheritance
 
...that'll get messy
 
m59
Avoiding inheritance?
 
Making everything a directive with isolate scope
 
m59
2:07 AM
I mean, not "everything", but any identifiable chunk
 
As I am here, how about recommendations for JS books? I am currently reading Eloquent JS.
 
!!resources
 
m59
As for isolate scope, I can't think of any case where a scope wouldn't be isolate
It is to angular directives what DI is to functions
 
@m59 When you want to attach two directives to the same element
 
2:09 AM
@CapricaSix Appreciate it!
 
When performance is an issue and you don't want to create a whole new $scope
 
m59
What are those directives doing?
 
When you don't want to create new syntax for all your scopes
 
m59
I'm referring specifically to the kind of thing that would be an element, not some kind of decorator. I'm blank on the subjects of decorators and scopes right now anyway
 
Same here
 
m59
2:11 AM
oops, not decorator, that's already an Angular thing
uh... I dunno what to call it. Angular calls both things "directive" but they are different
custom element vs directive would be better
 
i.e. webcomponent-like vs attribute?
 
m59
yeah
 
Yeah, if you're building a reusable webcomponent, isolate scope should happen
but you shouldn't see a chunk of HTML and say "My app would be better if this was wrapped up in a directive"
 
oh, that article again
 
2:36 AM
Friends, I am struggling to get async validation working on an angular form. I have the control bound to data on a controller, I have ng-model set to debounce at 500ms, and the validation directive that I have written is making the call to our API and getting good return, but nothing is changing on the view to reflect that.
Here are two pastebins:
 
2:58 AM
Hey Canadians, do you also play Hockey besides Ice Hockey?
 
Hello can I ask some help in node js receiving data from client(device), my client will send data to server and it always end up 3 characters example -> *46 ,pastie.org/10153215 and also this kind of data pastie.org/10151092, how can I checked if the data has ending asterisk and 2 characters,so that i will do something with the complete data.
here is my code

http://pastie.org/10166184
 
someone hire me
 
m59
@CodeWarrior I don't have time to debug your code, but you can use my directive if you want
 
I need a job
 
3:06 AM
@Shea if you are in the Netherlands, we're looking for a guy
or a girl
 
I'm in California, USA :(
can I telecommute?
 
m59
@CodeWarrior it needs some improvement. I was a scrub back then (still am). My suggestion is just copy it and use lodash's debounce function rather than including mine also.
There was no reason for me to roll my own debounce. I just didn't know better =D
 
@m59, thanks! I'll take a look at it.
 
m59
@CodeWarrior you can try it out here m59peacemaker.github.io/angular-pmkr-components/#/… works very well
 
@Shea can you work with ExtJS
 
3:11 AM
never tried it, but I'm good with Javascript and I'm good at reading documentation
honestly though, asking for a job here was a bit tongue in cheek. as much as I'd love a job in this field, I've got no team experience, and I do need to work on my time management skills
in time, in time
 
I am in Hong Kong and looking forward to a job offer too :p
 
what I failed to realize until now, is that libraries like Ext JS can actually be good for time management
 
@Shea what part of CA?
 
the valley, about an hour South of Fresno
I'd be willing to relocate to 'Frisco
 
Nice
<- Alameda
 
3:26 AM
oh lol
 
3:46 AM
if i'm going to be passing data through an ajax post, what's the best way to pass the data?
 
user2620028
you mean like json formatting?
 
ajax
you know $.ajax()
 
user2620028
yeah i know what you are trying to do.... just not understanding what part of it you are asking about haha
 
priming data to be passed
 
user2620028
could you phrase it like a jeopardy question for me?
 
3:50 AM
@phpPluginMaster I like riddles. Are you looking for json_encode?
 
what is the best way to prime data to be passed, if you're going to be using $.ajax()?
i don't know
all i want to do is pass forms like a registration form
the back end is PHP :D
 
clarify "prime data". $.ajax can send various objects. Most preferably JSON.
 
prepare it to be sent to the server
 
user2620028
Ok what i need to know is are you having troubles formatting the data to be sent or actually not able to send anything
 
user2620028
What he said ^^
 
3:53 AM
i'm at the point where i can get the values, or is there a better way?
once i send it to the back end i can handle the data
i'm thinking i'll pass it like a normal post
:-?
 
It's great you told us the answer. But we still don't know the question
 
http://stackoverflow.com/questions/5929790/passing-data-in-form-submission-via-jquery-ajax
what's xhr?
 
XHR = XmlHttpRequest = browser API for javascript to send/receive data over HTTP
 
and response is the html?
 
That's up to the server
sending JSON to the javascript is also a good option
 
user2620028
4:01 AM
Im crying over here.... lol
 
user2620028
@phpPluginMaster just tired and laughing cause i can't figure out what you are asking entirely. :)
 
cv-pls unclear
 
most people are incredibly comfortable with using php to write html
 
<insert an anti-PHP firestarter here>
 
4:03 AM
@JanDvorak why?
 
Because PHP sucks
 
user2620028
because there are a lot of people that are quick to hate on php. There is a lot of nonsense in that language for sure.
 
how about we do that to javascript?
 
user2620028
They do that as well
 
I'd still choose javascript over PHP anytime
even better: learn Ruby on Rails
 
user2620028
4:05 AM
I actually have a lot of fun writing php believe it or not
 
When I had to make the choice, many years ago, JavaScript wasn't feasible. Now we (company) have invested too much to switch.
 
is ruby now free?
 
@phpPluginMaster sure is
 
Ruby the language has always been free.
 
user2620028
@sheepy what did you use as an alternative to javascript?
 
4:06 AM
PHP.
 
i thought it was big $$$
 
@HatterisMad we do things not because they are easy but because they are hard
 
user2620028
@sheepy you mean for server side?
 
typescript is an alternative to javascript
 
a decent one at that, too
 
user2620028
4:07 AM
@jan are you saying you like javascript more because it is more difficult?
 
@HatterisMad nope. Just trying to explain why you might have liked coding in PHP
 
in: http://stackoverflow.com/questions/5929790/passing-data-in-form-submission-via-jquery-ajax
is myformdata the form id?
 
TypeScript was a good placeholder when ES4 was dead and ES5 did not have a realistic boundary.
 
user2620028
@jan i enjoy working javascript and php both. I just get bored playing with the DOM. Its more fun playing with the database.
 
By now, I think the long term future of TypeScript is in doubt...
 
4:09 AM
we just had a javascript meetup on typescript
 
Ok. What's the current plan?
 
user2620028
@sheepy adobe products and XNA studio and a few other client side large programs use typescript correct?
 
$("form#myFormId")
means form id, right?
 
@Sheepy focus on getting ES6 into browsers, I'd hope
 
I think Adobe use ActionScript, which is (was?) closer to ES4 than ES5...
 
user2620028
4:11 AM
@sheep ahh yeah thats what i was thinking of
 
@phpPluginMaster just $("#myFormId") will do. Unless #myFormId doesn't always refer to a form, which it shoud
 
user2620028
means a form with the id of "myFormId"
 
how to copy tow specific css files to folder in gulp.src ? code below works for js but not with css
gulp.task('move-css',function(){
  return gulp.src([
    config.bowerDir + '/owl.carousel/assets/owl.carousel.css',
    config.bowerDir + '/owl.carousel/assets/owl.theme.default.css'

    ]).
  pipe(gulp.dest('./public/assets/css'));

});
 
k, thanks :D
now i see how serialize() works :D
!!anyone see caprica six recently?
 
!!> "Hello World!"
 
4:17 AM
@Sheepy "Hello World!"
 
!!ban
 
@JanDvorak 895174 (?), 1355043 (?), 1858108 (?), 10 (?), 1005250 (?), 1941949 (?), 990192 (?), 2428683 (?), 1455016 (?), 2645256 (?), 2664200 (?), 3350338 (?), 3106345 (?), 1800668 (?), 1593459 (?), 2509223 (?), 3586251 (?), 3517363 (?), 2959554 (?), 3141603 (?), 2249815 (?), 91696 (?), 2272617 (?), 4155172 (?), 4463826 (?), 3967621 (Nordehinu), 4202350 (?), 4330208 (?), 2668766 (Queue Overflow), 3835810 (KeyboardWarrior), 3277047 (phpPluginMaster)
 
where's the guide to chat commands?
 
good
 
 
4:18 AM
i was banned?
 
Yes. You mistreated her.
 
how do i get off ban?
 
Stop treating !! as a means to make any chat message sound ... why were you doing it again?
 
so no !!drop chat
!!is it bad if you got booted from the sandbox?
 
@phpPluginMaster yes, absolutely
 
4:23 AM
how so?
!!ban feeds
@feeds I don't care
 
@phpPluginMaster you don't have to flag every message you don't care about
 
why not?
 
Because they're not spam, inappropriate or offensive
 
There are many questions on SO that I don't care about. But they are still good questions.
 
@phpPluginMaster it offends me that you would
 
4:27 AM
i report spam things like kitten photos in my e-mail
i've actually put my own mom in the spam box
5
 
This is a public chatroom.
 
@phpPluginMaster WOW
 
cool story bro
idk why, but I like to feed the trolls
God help me
 
he on ly helps those who help themselves
 
what are you implying?
 
4:29 AM
hello
 
are you implying I don't use Google?
 
has anyone worked on Kendo UI controls?
 
4:30 AM
oh. cause don't get it wrong, I read the manuals
 
has anyone built anything for freedom from cms besides me?
 
no, you're the only one
 
@Shea sometimes manuals are not helpful
 
in those cases, I just help myself to that punanny
sorry, I couldn;t help it
 
@dotNetAddict can you build some sample .net examples for my repos?
 
4:33 AM
idk if that's even funny, I tend to be the only one that laughs at my jokes
 
@phpPluginMaster Just curious, how long have you been programming?
 
off and on since 1999
high school with pascal
 
"a week. a day. a week day"
 
How on and off?
 
@shea who?
 
4:38 AM
damn I'm on fire lol
 
@shea roll around in the dirt
 
I'm trying, I'm trying
 
is water near by?
put water on it if it's not an oil fire
 
no I live in California, we're in a drought
 
faucet?
how tasty is delta smelt?
 
4:40 AM
I would, but I think our water is flammable at this point
oh hey... dirt's coming out of the faucet. this is relevant
 
Is that the source of all that dry humour? ;)
2
 
light a match next to the aucet, if it lights on ire, it's flamable
 
@ivarni \o
 
o7
 
it's o8 on the periodic table
 
4:41 AM
@phpPluginMaster *lammable
 
@JanDvorak ?
 
I love you guys
good night
 
<3 shea <3
 
Did you just edit a question mark into a question mark just to ping me twice?
 
sleep on tight ropes
@JanDvorak yep?
 
4:43 AM
In which case... cya
 
@JanDvorak bye
 
4:56 AM
@phpPluginMaster like what kind of?
 
5:06 AM
Does anyone remember that site that had the recruitment tech test in the console?
 
MDN?
 
Nah, there was one that you run a function and it opens up a bunch of prompts
with questions in them
 
Since I've been kicked from the chat twice when respecting others, i think i'll go
 
@phpPluginMaster intentionally pinging twice in a row is not "respecting others". And you obviously don't respect Cap.
 
Poor little Caprica...
 
5:25 AM
You are right about the "little" part. She's only six.
 
AFAIK code-only answers are discouraged but I am not sure someone flagging it as "Very Low Quality" is appropriate?
 
I thought the VLQ post queue was automatic; that is, it finds posts via some hidden algorithms
 
Yeah, that's probably more likely what happened
None of the "Recommend Deletion" options really fit it though
 
well, those are just the comments
sometimes you should write your own comment
 
5:32 AM
You don't need to comment while deleting
 
^ that too
 
But should that answer be deleted? Isn't that a bit extreme?
I'd skip it, or maybe add a comment asking for an elaboration on the code only answer
 
I usually just leave a note that code answers should be accompanied with some form of explanation
yeah, and I skip it
 
Afaik adding a comment let's you complete the review but it's been a while since I was in that queue
 
but sort of don't want to say that to a mod
I think commenting lets you pass the tests
 
5:33 AM
a mod is probably the last person on the site that will go after you for asking for elaboration
 
6:03 AM
Hi
 
@kaliaperumal.p 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.
 
Anybody say, how to import one javascript file to another file?
Is there something similar to @import in CSS in JavaScript that allows you to include a JavaScript file inside another JavaScript file?
 
not natively on the frontend
 
@kaliaperumal.p in ES6 there is…babeljs.io/docs/learn-es6/#modules
 
though there are tools like requireJS and Browserify that let you do that
 
6:06 AM
Well, technically ES6 has modules right?
But in practice, it's either babel, browserify or require.js
The big assumption we're all making here is that you're talking about the browser and not node.js
 
How to call another file javascript function in current file.
 
did you open the link?
 
No. not yet
i will check @royhowie
 
Seems like it's "this is my final project, please halp" week over in the review queues
 
6:36 AM
"JSON Array" means nothing. So you can't. — dystroy 22 secs ago
close it please
@BenjaminGruenbaum I don't even think he wants to convert to JSON
 
Seems to me he wants to parse single-quoted "JSON"
gone
 
6:51 AM
Hmm. Is there a way to get the HTML DOM document object, given an element (jquery or plain js, whatever)?
I have an element reference that could be one of several different iframes.
 
ownerDocument, why?
"several iframes"? Why?
 
Oh, must have missed that. Kept looking for parentDocument or containingDocument or similar.
@JanDvorak It's a wysiwyg-ish editor that hosts the document being edited inside an iframe. There could be several "documents" open.
Trying to do DOM manipulation fails if I try to call insertNode and pass a node created in one document to a node sitting inside another.
So I want to make sure I'm calling createNode from the same owning document as the element I'm editing.
 
u have several iframes in single page?
 
@kaliaperumal.p Yup. A sort of MDI interface, with several tabs, each hosting an iframe.
For sandboxing.
 
Why do you need such sandboxing?
 
6:56 AM
Because the documents being edited are HTML documents that aren't necessarily created by me, initially, and might contain live code.
I'm not worried about security, I'm mostly worried these documents carrying over styles and code which will affect the external editor.
It's not ideal, I agree.
 
You are not being protected against malicious code anyways. Or any code that does document.parent.
 
Try this
var doc = document.getElementById("main_iframeID").contentWindow.document;
if (document.getSelection) {
var range = doc.getSelection().getRangeAt(0);
var nnode = doc.createElement("span");
range.insertNode(nnode);
}
 
@JanDvorak I know. It's mostly there to allow documents with styling applied broadly to all <img> or <div> tags, for instance, or with code that uses wide-scoped querySelectorAll from changing things in the editor's interface.
 

« first day (1663 days earlier)      last day (3284 days later) »