« first day (1426 days earlier)      last day (3531 days later) » 

3:00 PM
meeting time bbl
aww yeah lemons
lol
 
worst file name by a coworker, yet: "informationpageonecolumn.css" ... not entirely pleased, but I can't really say anything about it
 
bbl, maybe we could sponsor you. you should work here! :O
 
@Neil I don't think youtube has ever thought about quality.
 
... why are so many people talking about racing me?
 
you're white
 
user2620028
3:00 PM
lemon you want to come race with me?
 
@twiz 1% too much? How about 0.1%? You see where I'm getting at.. at a certain point you care more about quality than sheer volume of users on your web page
 
haha but seriously, its hard to determine if there actually IS an increase in quality.
 
nobody got my joke? :(
 
People get scared when they look at my JS code
 
user2620028
@NickDugger i got it... i just didn't know if thats what you implied lol
 
user2620028
3:01 PM
@CustomizedName people get angry when they look at mine :(
 
It was kind of funny
 
Also, I'm pretty sure that if youtube had a way to moderate all commentary using an algorithm that was guaranteed to remove all racist commentary or whatnot, they'd do it
 
@AaronSiciliano They don't angry looking at my code but I seen few crying though :/ ...
 
@CustomizedName pastebin.com/D6PFQxns -- my jQuery isn't pretty at all... and I'm sure there are some jQuery methods that could replace some of the more manual work I've done, but I don't even like using it in the first place
 
user2620028
I doubt it neil.... they get a lot of ad revenue from people fighting each other in the comments.
 
3:03 PM
@AaronSiciliano How would they get revenue from that?
 
now that the kick-ban mechanism is in place, should we stop the 20k write grants thing? (@rlemon)
 
user2620028
maybe they would autocorrect racial slurs to a less offensive term lol
 
@AaronSiciliano That's what I was thinking
 
@JanDvorak access control will be removed
 
racism encourages people to comment/spend longer time on the site
 
3:04 PM
@Neil more page loads = more ad views
 
user2620028
@Neil the ads in their vidoes..... Lets say some troll starts a fight in the comment section with another person. Thats 2 more people who are going to visit that video and load that ad before the video like 20 more times over the next week. lol
 
Ok... this conversation is becoming incredibly depressing...
 
nevermind, meeting cancelled
 
So why not open a web site where people can go to argue over the internet? I'm pretty sure youtube moderates for offensive videos
 
user2620028
lol nice
 
3:05 PM
:18825616 much better then mine, but you could use classes a bit more ;)

 img.css({ // Vertically center photo inside of link
                                                "position": "relative",
                                                "top": (-img.height() / 2) + (photo.height() / 2) + "px",
                                        });
 
@CustomizedName a class isn't going to help there
 
@Neil I guess you've never watched a youtube video...
 
user2620028
@taco lol what do you mean i should go work for you, i applied didn't i?
 
They moderate illegal videos
 
@AaronSiciliano Yeah, but the counter argument is that I'd actually spend time looking at youtube comment sections and contributing to discussions there (which would also increase revenue)... if they weren't the toxic sludge pits that they currently are
 
3:06 PM
@Neil you mean reddit?
 
user2620028
@Retsam we would have to see the measurements as to which wins out in page views, positive community or toxic community.
 
@twiz They don't support pornography, though that's legal
 
@AaronSiciliano you're hired
 
@AaronSiciliano Personally, my money is on a positive community, as I think the number of trolls is a small minority of decent people who are driven away by the trolls...
 
@twiz Yeah, shame youtube didn't think of it first.. they could have ditched the whole "video sharing" thing since true revenue comes from arguing on the internet. ;)
 
user2620028
3:07 PM
@taco hmm? lol
 
But maybe I'm just incurably optimistic.
 
@AaronSiciliano I wish, HR hasnt said anything
 
Is star spam still an issue?
Would it be reasonable to consider adding "starring" messages to the list of privileges lost after you've been kicked 3 times? That might help cut down on the star spam. — Retsam 4 mins ago
 
@Neil I assume that is because of legal reasons though.
 
user2620028
@taco lol i was going to say.... is money involved? hahahaha
 
3:08 PM
:18825616

 var caption = $("<div>");
                                caption.addClass("caption");
                                caption.html(img.attr("alt"));
                                caption.hide();


var caption = $("<div>").addClass("caption").html(img.attr("alt")).hide();
 
I'll bug my manager today
 
@Retsam Was that ever REALLY an issue? I categorize that under people enjoy arguing.
 
@twiz I thought the issue was starring and unstarring a message rapidly to create spam? How is that arguing?
 
Although that may be good discouragement either way.
Oh nevermind, I thought you meant something else.
I'm not a room owner.
I don't have to deal with the nonsense hah
 
@CustomizedName Yeah, I could string them all together
 
3:12 PM
@twiz Not necessarily
 
Gonna try crashing a movie set in 20 minutes for lunch. Overheard a person offering a check and asking for W-9 at my lunch spot. They're gonna turn the front facade into a news stand, I think
 
I'm not either; I've just heard complaints about it.
 
It may be because they don't want to keep users under 18 out of the website
 
user2620028
@taco lmao photo bomb the movie!!! movie bomb? oh that sounds like a major crime :/ nvm... just make funny faces at the camera!
 
@AaronSiciliano Plenty movies have civs in the background :P
 
3:13 PM
my face is pretty funny, hence the mask
 
user2620028
lol not touching that one (Bet thats not the first time you heard that)
 
user2620028
@sippy my mother was a civ in the background of the movie Wildcats with Goldie Hawn lol
 
@AaronSiciliano !!burn
Very nice.
 
@Neil That's what I was thinking. Also just not wanting to be known as a porn site.
either way, I don't think it was a decision based of morals/ethics.
 
user2620028
@taco have you figured out what they are filming yet?
 
3:16 PM
Guys is Ralph still banned?
 
I didn't even know he was?
 
He got banned for saying prostitute
 
prostitute
 
@twiz Of course not. Youtube is purely business, I never claimed you'd want to keep out the worst 1% of users for ethical reasons
 
I think he said it on SO
Lol
 
3:17 PM
Ah
 
Community instabanhammered him.
 
Yeah, people get really anal about keeping main clean, and rightfully so
 
@Neil I meant they probably don't ban porn because it is offensive.
 
ah fuck I think I just popped a lung sneezing
That was a big fuckin sneeze
 
Hey. How do I do 360 view of 3d object in three.sj?
 
3:18 PM
Jesus
@Marek You really couldn't google that?
 
@twiz I agree
 
scriptjava
 
@Sippy ofc not
 
@Neil Well you disagreed earlier... haha
 
3:19 PM
@Sippy lol thanks, that is exactly what I need. you pro googleman
 
....... lol.
 
@Marek print out an image of your object, tape it to the screen, and then spin
 
!!tell Marek google 360 degree view of model three.js
 
@twiz not working for project manager anymore.
 
3:20 PM
@twiz They don't do anything of what they do because something is offensive or not. They do it for money, or what gets in the way of money
 
@AaronSiciliano no, I'm not sure what movie it is yet. I walked by during lunch yesterday, and they had power cables in boxes. I'm guessing the labels are just descriptive, though.
I just noticed it says Paramount though on the black crate
 
@taco Lol in case any other big name movies are being filmed on the same block...
They've got to protect their valuable assets.
 
I read a puzzle the other day where you're an electrician and on your first day on the job, you're taken to one of two buildings with a thousand electrical wires running between them with no labels. You're given a light, a battery, and some electrical tape. How many trips between buildings to you have to make before you know exactly which wires corrispond to which in the other building?
 
3:24 PM
@AaronSiciliano what makes you think that's the movie
 
user2620028
Those are my two guesses lol
 
ok, I'll report back
 
user2620028
filming in atlanta.... set to release next year.... by paramount
 
ah
 
@AaronSiciliano Could be an independent filmmaker, couldn't it?
 
user2620028
3:26 PM
@Neil yes which is why im going with guesses :D
 
@Neil black crate says Paramount on it
 
@taco So paramount can't make smaller films?
 
could have picked it up thinking it was cool
 
user2620028
@taco we steal the banks pens, maybe they steal each others crates :D
 
well considering my lunch spot is being turned into a news stand, I'm gonna go with that boring MLK movie. Meh.
 
3:26 PM
I'm asking, I honestly don't know
 
my car says *Ferrari on it (until I was the dust off.. )
 
@Neil I guess? I dunno
 
fuck you auto correct
Farrier
 
user2620028
taco.. if you see MLK risen from the grave i want first dibs to change my guess lol
 
@Neil What's the answer?
 
3:27 PM
Not from what I've seen, but I'm not sure. The indie stuff is usually doled out to the smaller production companies like Focus Features (as an example, not sure who releases indies for Paramount)
 
@twiz I don't know, I'm trying to work it out
 
@rlemon my brother's gf said I look slimmer this morning :D
Even though I've gained 2lbs lol
 
I'm gaining weight.
muscle weighs more than fat
 
My idea is to connect every wire with another, then go to the other building, and put a battery on one wire, and see the other light up.
 
you'll likely gain before you lose
 
3:28 PM
I got an ab routine from the trackletes I know at my old college, and it's a killer. I can't laugh without grimacing lol
 
Not sure what you do after that though
 
hot damn, I forgot about @towc again.
noticed gimp was open :P
 
Just a simple question, is it possible to start a countdown from a simple <p>12</p> down to <p>0</p> with js/jQuery?
 
@Frondor 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.
 
@Frondor yes
 
3:29 PM
Alright, gonna go crash the movie set, bbl
 
m59
0
Q: javascript code doesn't work in IE but works in Firefox and Chrome

KorlI really don't know why this code works OK in Firefox and Chrome but not in IE11. I am not very familiar with javascript and different browser compatibility. Main problem is that text of selected image in div id="text" tag in IE doesn't change. Main picture is changed on mouseover thumbnail but...

clever jokes incoming? ^
 
<p id="foo">12</p>

var p = document.getElementById('foo');
var n = 12;
function countdown() {
  p.textContent = n--;
  if( n > 0 ) {
    setTimeout(countdown, 1000);
  }
}
@Frondor but this is a very bad way of doing it
in your project try to work it in without the globals, etc.
 
Thank you! :D Although its not working for me (http://jsfiddle.net/t3qes2bc/) I think I have to try with jQuery :S
btw, what's wrong about globals??
 
@Neil heh yea, I tried looking up the answer. It seems that it is very mathy, and I'm too lazy for that.
 
@Frondor not working because I didn't call the function ;)
jQuery is just an abstraction library for working with the DOM api in Javascript
so in either case you are using js
 
3:33 PM
If you think, "This is not working, maybe I have to try it with jQuery", you probably need to read up more about both JavaScript and jQuery
 
@twiz Yeah, feeling a bit too lazy to figure it out atm
 
@rlemon as you can see I'm pretty noob with this :) My problem is, I started by learning jQuery, not javascript itself...
 
Oh, I just realized that you may have thought rlemon used some jQuery, so maybe you thought you needed to include that
 
@rlemon Any way, what about the "globals"? what are globals?
 
globals are global variables
!!google global variables in javascript
 
@SomeGuy No no :) I said that just because I didn't understand his code :D
 
read that ^
 
So basically, the best way to declare variables, is by declaring them inside a function and then "declare" it again outside the function? Like
function myFunction () {}
shit, I pressed enter XD
 
@Frondor It's the great big javascript scope that houses all functions and variables. Some javascript variables say that when you go out of scope, you get to see the outer scope.
 
var myValue;
function setValue()
{
myValue = "test";
}

function getValue()
{
alert(window.myValue); // yup, it's "test"
}
this... this is the best way for you?
 
3:38 PM
commented
@Frondor that is not a good way
look up namespacing
> it it's as readable
 
user1596138
Tried to take a sick day... But my code decided I shouldn't
 
should read
> it isn't as readable.
FYI
 
@rlemon Thank you very much, that's way clearer now
 
np
 
@rlemon I'm aware of the namespacing :D I just wanted to show an example
 
3:40 PM
> this... this is the best way for you?
I thought you were asking ;)
 
about a good try of variable declarations
 
function Test() {
  this.setValue = function(val) {
    this.myValue = val;
  }
  this.getValue = function() {
    return this.myValue;
  }
}
var test = new Test();
test.setValue("test");
alert(test.getValue());
 
user1596138
Whatever this cold/sickness shit is, I feel stoned. This makes it difficult to work on code.
 
@Frondor At least this way you're wrapping functionality in "Test"
 
user1596138
@rlemon I do this on purpose... Coworkers are that annoying
 
3:42 PM
Though, you don't usually make getters and setters in javascript. This isn't java. :)
 
var obj = (function() {
  var obj = {};
  var val = undefined;
  Object.defineProperty('value', obj, {
    get: function() { return val; },
    set: function(newValue) { val = newValue; }
  });
  return obj;
}());
 
@Neil shit ... I don't understand the code because I just never learn about javascript... only jQuery.. and I know its the same.. but many things on that code are new for me
 
!!resources
 

Javascript Resources.

Sep 4 '12 at 13:36, 2 minutes total – 8 messages, 1 user, 1 star

Bookmarked Sep 4 '12 at 13:40 by rlemon

 
check out some of the links in here ^ @Frondor
 
3:43 PM
@Frondor No time like the present, buuuuuuuuuuuuuuuuuuuuuuuddy.
 
@Neil just like the "new" part of "var test = new Test()" and the "val" inside "function(val)"
 
@Frondor val is just an argument to the function
new, hmmm.. that's a little bit harder to explain
 
784
Q: What is the 'new' keyword in JavaScript?

Alon GubkinThe new keyword in JavaScript can be quite confusing when it is first encountered, as people tend to think that JavaScript is not an object-oriented programming language. What is it? What problems does it solve? When is it appropriate and when not?

blog.javascriptroom.com is also a good place to read some stuff about js
 
Its alright Frodo we're here to help.
 
lol Frodo
 
3:45 PM
@rlemon goddamn! I won't read that now, but I'll make it as fav :D thanks for the links!
 
Nasty Hobbitses
 
user1596138
 
What's wrong with Frondor? :(
 
@Frondor np. there are a lot of good resources, and a lot of crap ones
stay away from w3schools until you have a better understanding
 
@Frondor uh oh talking to yourself in 3rd person!
 
3:46 PM
mozilla developer network is great
 
user1596138
Is that "how to build a PC?" or a desk?
 
Sounding more like Smeagol take off that ring!
 
@Jhawins the lights would distract me
 
@Frondor If you learn nothing in this chatroom, at least learn this: there's more to javascript than jQuery!
 
user2620028
@rlemon light switch.
Hawins that looks awesome..... do it
 
3:47 PM
@rlemon Well, I have to admit I love w3schools! I've learn html and css so easily from there... I've learn jquery from try.jquery.com, the rest I learn directly from the api, but sometimes I have to read w3schools
 
@Jhawins hows node.js treating ya
 
that is a cool desk, just upgrading might be annoying
 
user1596138
@rlemon There is likely a switch for them that only gets turned on when friends come over
 
@Neil Yeah, I'm aware of that, but javascripts seems harder for me :s
javascript*
 
user1596138
@Loktar I don't like how it literally bolts to the wall... And so do all the monitors. If you move that it will be a bitch
 
3:48 PM
@Frondor seriously stop - they show a lot of mis information and bad practices -- you'll find yourself doing things wrong but not knowing it
 
I like my monitor setup better than his
 
@Frondor It seems harder to everyone, because jQuery did such an excellent job at abstracting away things
 
@Jhawins yeah definitely
god that would suck moving it..
 
@Frondor once you know enough to see where they are wrong, sure, be my guest and use it. but as a learning tool it is bad.
 
What you don't realize yet is what you can accomplish without relying on abstraction
 
user1596138
3:48 PM
And the innards cutout looks like a giant kitchen sink
 
user1596138
Still though it's cool
 
yeah I mean its a cool show piece
not sure id like it as my primary workstation though
 
^
simple clean dark wood desk and i'm happy
 
@Neil the markup itself is the problem for me.. with things like the ones I've pointed out (like that about the "new" keyword), but I'll spend some weekend on learning it for sure ^^
@rlemon I've seen many w3school practices that are different regarding to stackO answers
 
@Frondor seriously take a primer on developer.mozilla.org/en-US
 
3:50 PM
@Frondor You'll learn to like the new keyword. It makes javascript much more dynamic
 
I agree, I used to refer to w3schools, I paid the price.
 
@Frondor I can't open a w3schools page without seeing something that makes me sigh.
 
@Frondor You're still in denial, and that's OK. First step to recovery is admission afterall.
You're among friends here. We can help
 
MDN ( Mozilla Developer Network ) is a public wiki. which means if guys like me do see mistakes we are free to correct them. overall @Frondor it is a much more accurate and complete resource for learning
 
@rlemon What's good about that site?? I mean, how can I use it? is it like stackoverflow or something?
 
3:52 PM
also, codecademy.com is a very good resource.
 
you won me :D you were faster
@Neil Neil, I'm starting to like you ^^ Thanks mate!
 
@Frondor Np. :) Hang out more here, and you'll never go astray again.
 
@Neil You're totally right! I'm like "goddamn, javascript seems too hard, I don't wanna to start learning another languaje"
 
I think w3schools reputation is a little overstated, but there are definitely much better resources. It's a mediocre site, not hitler.
 
@Retsam I agree
 
user1596138
3:54 PM
@AbhishekHingnikar I got sick. ANd busy. But good so far
 
w3schools is generally fine for beginning devs
 
@Retsam Yeah, Hitler doesn't know javascript AT ALL
 
and any dev who goes beyond basics will move on
 
user1596138
I just need reasons to use it now.
 
but a group of people got together and threw a tantrum over good SEO.
 
3:55 PM
Hey guys, I need some SQL help if possible.
 
user1596138
lol w3schools just isn't useful to anyone but a newcomer.
 
StateApplied in my db is a list, 1,2,3,4,5,6,7 etc
I want to get data if my param is in that list
SELECT Term FROM PolicyTerminology WHERE StateApplied IN (<cfqueryparam cfsqltype="cf_sql_integer" value="#URL.id#" />)
I don't think I'm using IN correctly =x
 
@Neil I'll share with you the "harder" thing I've done with jQuery so far, you tell me if w3school has too many incidence on me already ^^ jsfiddle.net/Frondor/x52pg22a/7
 
user1596138
@SterlingArcher lol not quite using IN right
 
user1596138
IN is for an array of values
 
user1596138
3:58 PM
(val, val2, val3)
 
dem BR's
 
@Loktar o'gar
 
:P
Dabuu!
 
@Jhawins yeah that's what I thought. I wonder if a simple LIKE '%%' would work
 
user1596138
@SterlingArcher if you aren't careful for SQL injection someone is going to rape your rape site...
 
user1596138
3:59 PM
@SterlingArcher That would match anything
 
W3Schools is "Here's how you X".
MDN is "Here's everything you need to know to do X, Y, and Z".
Teach a man to fish, ya know.
 
I didn't put the param in there lol
 
@Frondor I've seen much worse code than that
 
user1596138
I just wanted to use the "rape your rape site" bit
 
And <cfqueryparam> is a data sanitizer
 
3:59 PM
That's not a bad start, though would be better without the jQuery :P
 
So it's not vulnerable :P
 
@KendallFrey lies
 

« first day (1426 days earlier)      last day (3531 days later) »