« first day (892 days earlier)      last day (4073 days later) » 

8:00 PM
HAMMERTIME!
 
lol
love it
 
@skopp Wat? Who, where, when?
HALT
 
HAMMERZEIT!
 
HAMMERZEIT!
 
WAG
HAMMER DANS
 
8:03 PM
hey @JanDvorak, you should post a codegolf problem. :D
 
Does anyone use Wintersmith or Punch
 
omg whoever is responsible for the TV program at Pro Sieben is completely insane ... 2012 the movie at 20:15 on Easter Sunday ... what a wonderful idea.
@skopp What were you talking about?
 
@OctavianDamiean what, the okok incident? I spotted it in the Trash Can
Along with his gypsey tears
 
@skopp but why did you ping me? I mean what drove me to do what?
 
@skopp He didn't say that
phenomnomnominal did
 
8:07 PM
@phenomnomnominal you was flagged!!
alright time to go home.
later all
 
Oh crap
 
Well, that was offensive
 
Yea, he was, I've invalidated it. :D
 
I are sorry
To be fair, your names are almost similar
and I'm tired.
 
Hahaha how?!
 
8:08 PM
Well, they have vowels
 
!!/choose "Study" "Stare at wall"
 
@AmaanCheval Study
 
This is going nowhere
 
@AmaanCheval Stare at wall
 
Come on, best of 3
 
8:09 PM
@skopp Mate yours has letters.
 
COME ON!
 
@AmaanCheval Study
 
Huh O.o? - "Pump up your StackOverflow rep with this always-accessible question viewer widget. Supports 80+ StackExchange sites."
 
Owned by a bot
 
He wants you to study. :D
 
!!/refresh
 
Reticulating splines...
Watering lawn...
 
@skopp Humble Bundle app?
 
@AmaanCheval I think that's from The Sims originally
 
8:12 PM
@skopp No, long before that
 
minecraft - reticulating spiles, that is
 
It's been years since I've played any of The Sims games
 
Sim City 2000 was the first
back when Sim City was cool.
 
@SomeKittens ah yes...
I thought so, but wasn't sure
 
I don't remember shit from that long ago
 
8:13 PM
i would like to know a nasty way of emptying the clipboard with javascript
 
I remember playing it, though
@Happyninja You can't
 
quick question, how do i get something to constantly change when a textarea is changed?
 
@deep onchange
 
Now I think about it, I would feel a bit odd playing the sims now
or the thought of anyone playing it
 
@AmaanCheval you dont know how nooby i feel now.
 
8:14 PM
Friend: "What if we were in the Matrix?"
Me: "You've played the Sims, haven't you?"
 
Haha
wait... were or are?
 
@AmaanCheval there is window.clipboardData.setData('text','') for IE is there one for anyone else?
 
no
Flash
 
@Happyninja Nope
 
Chrome will never support clipboard APIs or execCommand
 
8:16 PM
@Happyninja You'd better have a really good (non-malicious) reason for this.
 
is there a .color or equivalent in js?
 
FF is protected, afaik Opera as well.
Safari leaves it open but there are limitations
 
@SomeKittens i do have a good reason for this. the reason is very localized
 
@deep .style.styleProperty (color, backgroundColor, borderColor, etc)
 
@Happyninja What is it?
 
8:17 PM
or, if you need computed styles. window.getComputedStyle(element).styleProperty
 
i have a textarea, so i would have, (in rough) textarea.onchange(){style.color=txtarcont"};
 
@Happyninja riiiiiiight
 
@AmaanCheval an employee within an organization is using different online ads service ans is copying between them. we try to explain her it was not a good idea to do so because they don't use the same inner format, which mess with other stuff. Since she don't give a fuck she do cause she can. I was looking for a easy way to empty the clipboard or fill it with the reason why she must not do it
 
so that when i type 00ff00 into the txtarea, the pg color changes to green
 
@deep style.backgroundColor = textarea.value
 
8:20 PM
textarea.onchange = function() {
    console.log(this); // notice 'this' is now the textarea invoking the event
    this.style.color = '#fff';
    this.style.backgroundColor = '#000';
};
@SomeKittens fail.
backgroundColor
rlemon drops his correction hammer
 
Thnks @rlemon
 
color === text color (foreground)
backgroundColor === obviously the background color
^ remember this as well.
 
Mar 15 at 14:23, by SomeKittens
Our project accrues technical debt every time I have to write CSS
 
lol
 
And now you know why
 
8:22 PM
background-color is correct CSS
no hyphens in js css property mappings
turns camelCase
think dataset mappings
 
Why does not Google Chrome main webpage have a direct link to the Google Chrome logos
 
big block of coe coming, i keep getting quiz is not defined .
 
@dievardump because they only have two logos. en.wikipedia.org/wiki/Google_Chrome
@deep include your js at the end of your body
think load and execution. The head code is loaded first, then the body is parsed. you are trying to access elements that the browser is unaware of.
 
@rlemon and? It should be available on the Chrome web page
 
@rlemon i understand, so i put the js last?
 
8:30 PM
@deep That is... just horrifying.
 
wait, nevermind.
 
1 message moved to recycle bin
 
my enter key doesnt work too well
 
my guess is var quiz = function() then the onclick=quiz() crap
 
Paste sites are for code blocks
 
8:31 PM
function quiz() {

}

and don't use inline events.
 
Yup, just about to punch out a few developers.
 
inline what?
 
@SomeKittens phew, good think i'm a designer.
<button onclick="foo()"> <-- this is an inline event. don't do this.
 
@rlemon goodthinkâ„¢ for realz ;)
 
This whole friggin' FB thing is idiocy
 
8:31 PM
@deep You forgot to close your function for quiz
 
what FB thing?
 
then what do i do @ rlemon
 
@canon goodthink?
 
and thanks @ryan
 
Trying to let users login to my app via Facebook
 
8:32 PM
btw, what does this mean? Uncaught TypeError: Object #<HTMLDocument> has no method 'getElementByID'
 
@deep That, I think, should solve it
 
i got the abpv
 
<button id="foo">button text</button>

var fooElement = document.getElementById('foo');
fooElement.addEventListener('click', quiz, false);

function quiz() {
  // quiz shit
}
 
*above
 
@deep It means you capitalized the last 'D'
 
8:33 PM
^^
 
oh for gods sake
 
@deep query: what are you doing and why are you doing it? javascript does not appear to be your forte
 
There is no god, there is only w3schoooooooools
(horrifying, no?)
 
Maybe someone can help me out with some guidance before I ask an actual question in SO... I'm writing a site with twitter bootstrap, I was testing it how it adapt to smaller screen by simply reducing the size of the window, the site was adapting nicely, but when I enter with my ipod touch, it just shows me a semi-broken version of the desktop size. I'm creating it using the default fluid classes. I know I can use media queries, but shouldn't reducing the size of the window do it? Thanks!
 
basically, ive just started, and im the kind who learns by diving in, im doing a revision site for my end of year exams, (29th / 4 ) so in doing so i learn to things: js, and all the maths. @rlemon
Cannot call method 'innerHTML' of null ?
 
8:35 PM
ok well you need to not just 'dive in'
you need to learn some basics on how the pages are read by the browser, how http works, and how the three technologies work together.
this should only take a day though.
 
@deep means the element wasn't found
 
@Shmi missplet the id.
 
@rle test
o.O
 
@rlemon a good place to start?
 
@rlemon "@SomeKittens phew, good think i'm a designer."
 
8:36 PM
@deep you need to know how the pages are parsed. Stay away from w3schools for sure.
 
I afk for like 8 hrs and then pop in to tease you
 
MDN is your friendâ„¢
http://chat.stackoverflow.com/rooms/17/conversation/javascript-resources
 
@Trufa are you using spanX?
Where X is a number?
 
i dont understand- why does everyone hate w3schools?
 
@canon not a 'webpage designer' my official title is 'Software Designer'
 
8:37 PM
@SomeKittens yes
 
@deep Inconsistent, poorly written, etc etc
 
@rlemon I was pointing out that you said "good think" instead of "good thing," you silly beast.
 
ok
 
my official title is "Senior Architect"
 
@deep issue is like 20% of their information is wrong or bad practice. They won't fix it, and you as a newbie cannot possibly know what on the site to avoid.
so overall we just say don't use it.
 
8:38 PM
Sure.
What!
 
MDN is wonderful.
 
now im pissed. Uncaught TypeError: Property 'innerHTML' of object #<HTMLParagraphElement> is not a function
 
>.<
 
@deep that's not to say that they don't have some good info... but if you're linking to w3schools you could probably just link to the appropriate part of the actual spec anyway.
 
because innerHTML is a property not a function
 
8:39 PM
stupid w3fools
 
MDN man.
best place to go by far
 
Waitaminute... did w3schools tell you to use innterHTML as a function?
 
@RyanKinal god, I hope so...
 
lol
 
8:40 PM
eww
 
<html>
<head>
<script>
function changeLink()
{
document.getElementById('myAnchor').innerHTML="W3Schools";
document.getElementById('myAnchor').href="http://www.w3schools.com";
document.getElementById('myAnchor').target="_blank";
}
</script>
</head>
<body>

<a id="myAnchor" href="http://www.microsoft.com">Microsoft</a>
<input type="button" onclick="changeLink()" value="Change link">

</body>
</html>
What the serious fuck!
this is the most horrific example of js I have ever seen.
 
line 7 is what im trying to do
 
lerl
 
the entire demo needs to be taken down.
 
so would i use .value ?
 
8:42 PM
just read this
 
!!>1&4
 
@Shmiddty 0
 
whats the difference? youre still doing a.innerHTML.
 
@SomeKittens might that have something to do with it?
 
1) cache the element in the function, it is pointless to pull it from the DOM for each change.
2) don't use inline events
3) don't use inputs outside of forms
4) don't use innerHTML (but some will argue)
 
8:44 PM
@Trufa doubt it
 
for this example you can switch innerHTML with textContent however browser support becomes a concern.
the proper way to do it is to clear the child nodes an append a textnode
 
@SomeKittens Ahh ok :) was confusing me
 
rlemon++
 
while(a.hasChildNodes()) { a.removeChild(a.lastChild); }
a.appendChild(document.createTextNode('some text'));
 
in english please?
 
8:45 PM
how about in js ;)
if you just created the element and can be sure there are no text nodes, or elements in it you can skip clearing them
in versions of IE whitespace is a child element however (hence the verbosity)
 
oh ok
 
@deep review these as well.

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

this video: http://www.youtube.com/watch?v=mHtdZgou0qU&list=PL20115B23208B1033&index=4&feature=plpp_video
after reading this article/book: http://eloquentjavascript.net/
 
ok
 
I read a blog now, here author used below code to select all youtube video in page. But don't think that will work
 
ill save these for tommorw, bye guys have a nice afternoon/evening
 
8:49 PM
$("iframe[src^='http://www.youtube.com']")
 
the book is a quick read. After about half way through it you will start to get js a lot more
 
huh, I'll have to take a look at elementary OS.
 
How it will select all the youtube player
 
only grabs iframes who's src attribute starts with that url
any https or other embed options will not be picked up
 
yes thats what I think
 
8:52 PM
if you control how they are added and know they are all using the iframe embed then you'll be fine
 
To select all other options any
 
not a clean one
your best solution is to give the containers a common class name, or to store refs to them as you add them to the DOM
 
 
can't we select in single selector all http and https
 
@david That's just cruel ...
 
8:53 PM
iframe[src^='http://www.youtube.com'], iframe[src^='https://www.youtube.com']
 
shouldn't make fun of blind dogs?
 
maybe? but still dude if you can at all, give the containers all a common class and just select that
it's the sensible solution
 
Actually I want to do that dynamically throw jquery
 
@david protip: before the edit timeout, edit it and add (gif) behind the url so we don't have to watch it over and over and over again
@gowri why?
 
I want find all youtube players and create mask div
 
8:55 PM
all youtube players on what?
your site?
is this a userscript?
 
Nope
 
well then where?
 
It is plugin, It will work how are all the user
for all ! anyone can use it
 
well then you will have to look at all of the ways users can embed video options and go with that.
or tell your users to not be dicks and if they want the plugin to work on their youtube video they have to give the container your plugins classname
 
If they use I want play predifned player first and it will create orginal player
 
8:57 PM
it's too late rlemon :(
just delete it
or spam text till it goes too high
 
@david I use Killit so i'm ok. but I started doing it for others sakes.
 
id didnf't work
 
waits a minute
like that.
or anything, just un-onebox it.

also, you do not have too. Just a tip
 
ah, so it's not like some cool keyword thing that stops it after one loop
 
haha I wish
 
8:59 PM
it's just any text to make it not turn into the image :P
 
well I say (gif) because I won't onebox nsfw or pnsfw material.
 
As of now I want I am concentrating http and https and other one
 
but gifs are often SFW just annoying after three times through
 
write a fizzbuzz loop in 56 characters for javascript (using print for output)
 
9:00 PM
How can I create a container any easy jquery function is there
I guess Wrap will work, is my choice is good
or any other good way
 
@gowri your question doesn't make sense
 
oh yeah :(
@rlemon: Thank you much for your guide, That's very helpful
 
830
A: What is the best comment in source code you have ever encountered?

Rohit// somedev1 - 6/7/02 Adding temporary tracking of Login screen // somedev2 - 5/22/07 Temporary my ass

 
9:17 PM
i highly suspect i'm a bit retarded but i can't find how to retrieve the validation result before proceeding the form using this --> demos.usejquery.com/ketchup-plugin/index.html is there anyone who would like to help me?
that's it. i'm retarded
i found it after not finding it for half hour
 
i'm glad we could help!
 
@david in fact you could, i was under the impression it was working but it was a mirage
 
Congratulations to room user @JamieTreworgy for his first child!
13
 
@BenjaminGruenbaum You shouldn't have corrected. Dongratulations seems better. Because, you know, kids are awful.
 
lol, your message is the first thing he is going to see after the ping :P
 
9:28 PM
Hi room, I want to start learning JavaScript...but i just need to know what level of HTML/CSS I need to know in advanced...is introductory material enough ?
 
@SteveJobs You don't need to know HTML/CSS to learn javascript
In fact, there are implementations of javascript that don't operate on the DOM at all
 
><
 
@Shmiddty what about if i want to create web Apps like facebook games.
 
@SteveJobs Wow, you're actually being constructive :O
@SteveJobs Glad to see that :)
@SteveJobs Anyway, introductory HTML/CSS is enough to start learning web JavaScript
 
@SteveJobs That's a different matter. HTML and CSS are more relevant to that
 
9:31 PM
@Shmiddty That's naive
 
If you're doing games you could possibly get by with just using canvas for everything
 
@Shmiddty oops
@Shmiddty people keep telling me that HTML/CSS was a pre-req
 
How so?
I mean, most of the JavaScript I write has nothing to do with manipulating the DOM
 
@SteveJobs This is free eloquentjavascript.net it's a good guide, you should try it out! Good luck
 
@BenjaminGruenbaum thank you
 
9:34 PM
@Shmiddty While I agree that you don't need to know CSS/HTML to learn JavaScript in theory, in practice most if not all resources for learning JavaScript focus on that. All node.js books I've read assume you already know JavaScript to begin with. All Advances JS books that don't rely on DOM knowledge assume intermediate JS and all basic JS resources I know are involve DOM manipulation.
"are involve" I'm going to leave it like that so I can reflect on how retarded that came out.
 
@SteveJobs: Basic understanding of HTML/ CSS will help you to understand easily DOM traversal
 
@gowri my ultimate goal is to create games and web other web apps
 
@Benjamin yes yes I think u r very rite bcos it are involve Dom all ways
:P
 
@AmaanCheval awsm
 
@SteveJobs: What kind of games
 
9:38 PM
@gowri the one's you see often on facebook...hard to describe, with graphics, physics, characters and stuff like that
 
@gowri Probably dating sims.
 
@SteveJobs Like the facebook games @IvoWetzel makes for Zinga?
 
@BenjaminGruenbaum yeah exactly
@BenjaminGruenbaum do those require the use of any special engines or libraries ?
@BenjaminGruenbaum it also seems like i would need to hire a graphic artist.
 
@SteveJobs I'm not sure, you might want to ask @IvoWetzel that, it's his job
 
@BenjaminGruenbaum i'm scared, what if he laughs.
 
9:42 PM
@SteveJobs First you would have to learn programming in JavaScript, if it's your first programming language that would take some time
 
@BenjaminGruenbaum i've done python for a while
 
@SteveJobs You don't need any special libraries
You might want to use one depending on the game
But you don't need it
(It's my job part time :P)
 
@AmaanCheval awesome, thanks for the info.
 
here
 
Sure
 
9:43 PM
@AmaanCheval do you make money off them ?
 
Yeah
I don't make Facebook games, though
 
@SteveJobs We don't make fun of people who come here wanting to learn, are polite and with a positive attitude. We make fun of trolls, assholes and Java. Also the fact @rlemon once pooped on a slide, why the heck would you do that?
 
I only program HTML5 games and this guy does the selling part
 
@BenjaminGruenbaum dear god
 
If it's a game I made on my own, we split it depending on who gave the art and sounds
If it's his game, I make a fixed hourly rate
Seriously, @rlemon, you were 13!
 
9:46 PM
@AmaanCheval that sounds cool.
 
Oh god ... I have everything I need to get started with my website but I'm just too lazy.
 
!!/slidepoop
 
@SteveJobs It is, but mobile browsers are...a pain.
 
@BenjaminGruenbaum You reckon pooping on a slide could inspire me?
 
9:48 PM
Hahaha
 
@AmaanCheval I used to deal with the selling part. I used to manage sponsorships for ArmorGames for a while
 
Isn't it strange that a lot of us don't have our personal websites?
 
@OctavianDamiean Just plop this down and call it a day
 
@OctavianDamiean No, I'm just deeply disgusted, why would JavaScript, Web, C#, Embedded Systems Developer Robert Lemon from Ontario Canada defecate on a slide purposely.
 
@Benjamin Yeah? With working with this guy I've sort of found out who buys HTML5 games and how tough they are and all, but I still don't think I like dealing with that part
 
9:49 PM
^ Google indexed chat is awesome
 
@Shmiddty Yea, that's what I've been doing for a year now.
 
@OctavianDamiean What's one more year?
 
Hahahahaha
 
@BenjaminGruenbaum Maybe the slide mocked him.
 
Well done, Benjamin.
 
9:49 PM
:)
 
@Shmiddty I like your attitude. :D
 
@AmaanCheval Always bargain with at least 3-4 different companies, retain the right to your code when able, try not to sign NDAs
 
I haven't even bought hosting because I'm cheap. I only bought the domains I wanted
@Benjamin Thanks for the heads up!
 
I keep forgetting you're from India so you make less money in general for no reason :P
 
@AmaanCheval NDAs are bad, especially the ones you are not even allowed to tal... uhm, they're bad.
 
9:52 PM
Hahaha yeah. Sucks
 
@AmaanCheval NDAs when selling your own code are a tell-tale sign of a scammer. Getting paid under 1000$ for a game you spent more than 2-3 days on is a bad deal in general
At least if the prices for HTML5 games are anywhere near the prices of flash games
 
does anyone have any suggestions on this

			$('.assisted').find("[data-slide='" + thread + "']", function(){
				$(this).click();
			});

should this work? (it doesnt)
 
@Octavian I've signed 3 in my life so far. All were only to prevent me from stealing their ideas or their FTP passwords
 
@Connor no, it shuldn't
 
@BenjaminGruenbaum why?
 
9:53 PM
@Benjamin Wow. I should try Flash instead
 
@Connor why do you have a , function? Do you just want to trigger a click on that element
 
@BenjaminGruenbaum yes
oh, i could just try click, one sec
 
@AmaanCheval Once the company you're signing it with is big enough the list of things you are not allowed to do becomes ridiculously huge.
 
@Connor $("assisted").find("[data-slide='"+thread"']").trigger("click")
 
@Octavian Where do you work?
 
9:55 PM
@AmaanCheval I work at a small company. Didn't sign a NDA there. :)
 
@BenjaminGruenbaum no luck yet
 
@AmaanCheval Try bartering, you don't know how far it might get you =) Deal with more than one person/location. If you'd like I'm sure I can pull a string and when you make a game send Dan (CEO of AG) a link
 
Did some projects for other companies though.
@AmaanCheval One of them being avl.com/home
 
@Connor Does it find the element? (meaning if you put .length after .find("dasd") it returns more than one
 
@Benjamin Wow, that'd be great! Thanks!
 
9:56 PM
@AmaanCheval Sure, no problem
 
@BenjaminGruenbaum well, it could be that the element was added dynamically?
 
It'll be a while though. Got my exams on for most of April
 
@AmaanCheval Take your time :)
@Connor What does .length give you (instead of .trigger) (console.log it)
 
@BenjaminGruenbaum returns 0
 
@Octavian I'm on mobile; else I'd be looking for hints of crappy code so we could make fun of you :P
 
9:57 PM
can i do .live('find')?
 
@Connor That means it didn't match any element, your selector is wrong
 
never use .live - it's horribly deprecated
use .on() with a delegate
 
@Connor No, for two reasons. (1) .live is deprecated and wrong (use .on), (2) you're performing an action, not adding a listener
 
oh yeah, if it's not an listener you can't do it anyway
 
@AmaanCheval Oh, that wasn't a web project.
That was back in my Java time.
 

« first day (892 days earlier)      last day (4073 days later) »