« first day (1002 days earlier)      last day (3945 days later) » 

12:02 AM
japseyz.dk/Projects/Code write razer, and you can add the selector to the items, but i want enter to click on the selected one and navigate to the link it goes to ;)
 
I went to the Zoo today
and now I'm getting ready to go see Grown Ups 2
 
Don't do it!
 
why not
 
Apparently it's awful
 
Says who!!
I thought #1 was good
What else is in theaters that's good
 
12:03 AM
If you haven't seen it, go to 'this is the end'
Or pacific rim!
 
Is Pacific Rim out?!!??!
 
Is here!
 
Have you seen it?
 
Not yet!
 
I'm gonna go see that instead, I just gotta prep myself for the GF to say, well why can't we watch something we both like
Bitch, we just watched Despicable Me 2!
 
12:06 AM
You'll both like this is the end!
 
What is This is the end
i dont see that in the listing
 
Google it!
 
Bro, you're like really excited or some shit!
 
It was really funny
Also, go back about an hour and read the chat.
 
funniest tv show encase any one is curious is a south korean variety show. not even in english yet i laugh so much
 
12:08 AM
@l0rdseth 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.
 
Oh shit it's in #d
3D
 
Good evening ;)
 
bbl I'll let you know how the movie is
 
why does clearTimeout even exist for a Timeout ? it makes sense for setInterval but time out just calls an additional time. why does clearing do exactly =/
 
fifteen minutes
 
12:15 AM
^
 
was sitting on the couch... got this nagging feeling like I was about to miss something
 
you already have missed some stuff about 90 minutes ago
 
almost forgot to vote on my Choice
everyone vote for Universe Sandbox on steam
@Loktar @Amaan ^
 
they really should rename clearTimeout() to abortTimeout()
much better description for it
 
user1125394
forgetTimeout
 
12:22 AM
This Is The End is there, I'm gonna go see that instead, @phenomnomnominal
 
Any one been watching dexter final season
 
I'm stoked so many hilarious actors in this movie
 
Have you seen Red 2?
 
Is that Bruce Willis
 
yeh
basically all oldies as action heroes
you should seen red 1 first though
 
12:41 AM
@29decibel 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.
 
finally i understand time outs
they seem far better than intervals even if you want something to call over and over
 
@Dave I'm watching Dexter!
 
1:11 AM
And i am back.. Close to having it working now :P Just need to it to click the correct thing when i press enter.. can any of you possibly help me with that? :)
 
in PHP, 33 secs ago, by Ash Ketchum
Is there a place where you can get review and opinions on ideas without fearing them getting copied?
 
1:36 AM
Are there any must have apps for os x
 
windows emulator ;-)
 
2:13 AM
@rlemon I didnt vote for it because Ive had it forever :P (and just saw your ping)
just saw your ping now though
I voted for that millipede game or whatever, had never seen it before
Universe sandbox is cool, but gets boring fast, Solar 2 on the other hand is a game that uses space/gravity etc. and is really cool
check out my pen cdpn.io/vuiHw
old school
 
2:38 AM
nice
 
why doesn't the second button here have a blue highlight on hover? jsfiddle.net/hLMYx =[
 
@bushdiver You don't have a :hover rule declared anywhere...
 
oh - im talking about the standard blue link highlight with chrome - forgot to mention..
the first button has it.. not the secnod
if it remove the background image it still doesnt have it.. i have to remove all the background attributes for it to return
 
2:55 AM
@Loktar so far left4dead2 has been my best purchase
 
Ie does the same thing and has a big stupid purple border around the second.. wth
 
I definitely don't see a blue anything in your fiddle
 
when you hover the first button you dont see a blue highlight over the button?
 
When you change the button styles, you loose the browser specific css as well, like the hover effects with the blue hue etc.
 
Nope. I'm not in Windows though, so it might be OS-specific handling of the button decoration. That gets overwritten when you apply CSS to it though...
 
3:04 AM
@adeneo ahh, that must be why it acts like an old style button as well (depression graphic when pressed )
Is there any way to Keep the browser specific css style when adding to it?
 
Yup, any change to the background does that, even something that doesn't really do anything -> jsfiddle.net/hLMYx/2
 
ahh that's lame.. hmm
 
And nope, you would have to add those styles back manually, which is almost impossible as browsers have different default stylesheets etc.
 
m59
What does a json look like when stored in the database??
 
It looks like JSON ?
 
m59
3:07 AM
yeah, but I must be missing something.
hold on
Yeah, I have a json but it's text. I thought I could json_decode($json)
over to the php room, I guess.
 
You can, and if it's a valid JSON string, you'll end up with an object, or if you do json_decode($json, true) you'd end up with an array.
Of course you'd do that like $new_object = json_decode($json);
 
m59
yeah, it didn't work. That's what I was doing.
 
How are you storing it in the DB?
 
m59
it ends up NULL
{
  header: [
    {plugin:'banner', id:8},
    {plugin:'banner', id:9}
  ],
  one: [
    {plugin:'twitter-feed', id:10}
  ],
  two: [
    {plugin:'podcast', id:1},
    {plugin:'html', id:3}
  ],
  three: [
    {plugin:'html', id:2}
  ],
  featured: [
    {plugin:'articles', id:4}
    {plugin:'articles', id:5}
    {plugin:'youtube', id:7}
    {plugin:'html', id:6}
  ]
}
I just typed that out, so maybe there's a problem?
 
well, that's not JSON - it's just a JavaScript literal. You need to quote your property names
 
m59
3:12 AM
Doh.
Thanks haha.
 
and use double quotes instead of single quotes
 
m59
Is that a json thing? I've never heard of that.
 
The grammar is defined here: json.org
Strings in the grammar are a series of characters between double quotes
 
m59
@Dennis still null, dangit
{
  "header": [
    {"plugin":"banner", "id":"8"},
    {"plugin":"banner", "id":"9"}
  ],
  "one": [
    {"plugin":"twitter-feed", "id":"10"}
  ],
  "two": [
    {"plugin":"podcast", "id":"1"},
    {"plugin":"html", "id":"3"}
  ],
  "three": [
    {"plugin":"html", "id":"2"}
  ],
  "featured": [
    {"plugin":"articles", "id":"4"}
    {"plugin":"articles", "id":"5"}
    {"plugin":"youtube", "id":"7"}
    {"plugin":"html", "id":"6"}
  ]
}
 
You are missing commas in the featured array
 
m59
3:21 AM
lolzzz my brain must be fried.
thanks man
 
Also, you don't necessarily need quotes around the numbers, if they are just numbers
 
m59
I figured, but when I got null again, I went overkill =D
 
You can validate at jsonlint.com
 
m59
Finally, working. Thank goodness.
ah dude, that rocks.
 
4:03 AM
Hey, I need help to click on the LI i get from a function, it's hard to explain and i have no idea why it does not work.. But the page is here http://japseyz.dk/Projects/Code/ (Type Razer in to search field)..
You can navigate with the arrowkeys and the enter button should redirect you to the page, just like normal clicking does

it'd be a great help :)
 
So fucking hilarious omfg funniest movie I've watched in so long @phenom wicked suggestion how did I not know that movie was in the making
Gf even had a blast
 
@JesperJacobsen you mean why the last item is alerting null?
 
0
Q: Learning jQuery, looking for suggestions

y0ssaLink to JSFiddle with Demo of functionality I'm getting into jQuery and I figured I'd start with log in / sign up form. (As an aside, I'm fully aware log in / sign up forms exist ad infinitum, this is more as a learning exercise than anything) The idea is that the form fields will fade in depe...

 
@JesperJacobsen What have you tried?
You aren't attaching any click handlers
 
4:19 AM
@Dennis keyup enter i think
 
"I need help to click on the LI"
 
@Connor ping me when you're done writing that CR answer so that I can do some grammar fixup there :-)
 
@JanDvorak Lol
@JanDvorak done
@JanDvorak That's my first code review, would that be like a valid answer?
 
4:36 AM
yep. It looks correct
I'll take a detailed look later on
 
kk cool
 
@Gacnt told you!
 
Guys I have 2 questions.
 
is this ever really needed? var e = event || window.event; ?
 
@phenomnomnominal Go watch it so we can say punch lines back and forth and lol
"Hermione just stole all our water.."
 
4:48 AM
1. Can you show me an example of drawing a square box (with a colour) using drawImage() function on HTML5 canvas? I figured out that drawImage has the best performance among all the other canvas functions available.
 
@Connor That's because old IE attached event to the window object instead of passing it to the event handler
 
also anyone what is the difference (function(){})(); v (function(){}());
@Dennis yeah i know that but do you know what ie?
 
2. nvm
 
addEventListener got added in 9
 
@Dennis so your saying attachEvent doesn't pass the event?
 
4:52 AM
Nope, you need to fetch it from window
 
watching scary movie five now
man I've been out of the movie loop
had no idea there was a 5
 
dang it, HTML5 canvas was started as an experiment from Apple.
I didn't know! =P...
 
and google chrome decided to perfect it
or at least walk the path to perfection
the opposite is true when it came to apple maps
they decided to ruin it :P
 
but who cares about apple? 80% of people use Android now
 
lol nice
 
4:58 AM
Android is the best =D... Apple is just an hype company
 
not sure its 80% though =/
can you take a look at my Q stackoverflow.com/questions/17636629/… see if you have any suggestions
 
5:14 AM
@fm2munsh 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.
 
Apple makes great products actually. To say Android is best is just biased, they both do what they want, very well.
 
well android has cheaper devices normally
given 95% of apps on iOS are on android.
what is the extra money being spent on exactly
the apple logo ?
 
I'm not sure, but if apple chose to be more customizable (currently the biggest argument in Android vs iOS) their innovation is usually top notch
 
hmm innovation...*looks at apple maps
*looks at safari
i don't see it :P
 
5:24 AM
well those aren't biased sites in any shape or form...
 
> PC Magazine’s John C. Dvorak has tested
From the first link
I don't know how that could be biased
 
I never thought you can do any serious work on Apple products, their products look like fashion decorations instead of serious tech items.
 
so he wrote the article for free for them.... ?
come on now :P
dont be naive
 
Now you're getting defensive and just turn down facts that are put infront of you, this is where the phone battle ends for me
 
you posted apple fan sites as your source for reviews..
 
5:26 AM
I think it would be hard to find anything apple positive on an android website lol
 
well find a neutral site that reviews both
but i agree im sure android sites are biased too
 
there, I don't think they're ios or android biased site, just for reviews
 
the car using Apple Maps arrived at its destination a good five minutes ahead of the other drivers
come on that has nothing to do with navigation and everything to do with speed and traffic :P
altho it is interesting how one can compare the performance
given thats hardware based
i guess accuracy of your location is one comparison you could do
 
Test
 
icles
 
5:31 AM
Well here's my opinion, I've owned a Galaxy SII, SIII, Nexus 4, iPhone 3GS / iPhone 4S / iPhone 5 I bought the iPhone after buying each android device (minus the 3Gs, I had that first and went to the SII) I went back to the iPhone after each one because I found it much better and more reliable for daily use (especially with the iPhone 5 battery life and charging it from 0-100% in ~1hour)
 
thats alot of tablets =/
ive had one and it has done me well for 3 years
 
It seems like a lot of people in the developing field are more android people, even though they all claim to hate Java
 
dont have to use java to make apps
doesnt it allow c#?
 
Android?
 
yeh for making apps
 
5:38 AM
I don't know, @Octavien knows best
 
Hey all.
 
@Gacnt I've seen it!
 
jsfiddle.net/LFBh4 Gah i can't work out how to stop the timer :(
 
@phenomnomnominal Link me to the exclamation mark shit! This is like your, over!
 
What's wrong with exclamation marks?!
 
5:52 AM
You're normally emo, and not this enthused bro
 
that happens when you do too much jQuery
 
i like movies
@Dave I think this is silly, it can be done a bit easier
 
@phenomnomnominal it needs to scale for any number of timers i create how ever
is it wise to assign them all to global though ?
 
don't do it global then?
 
i don't know a simpler solution
 
5:54 AM
Give me a minute and see if it fits
 
Okay
ill get a drink of water. my pc crashed ealier due to over heating! and its 6am thats how hot it is right now :(
 
You mates want to help me with a JS question?
 
im back @phenomnomnominal
@MattKnowsTech jsfiddle.net/UkSLb/2
 
Thanks, I'll give it a go
 
do you know much about event Listeners?
 
6:02 AM
@Dave getting there
 
Not really, I'm new to Javascript in general. I looked at this article though
 
@MattKnowsTech jsfiddle.net/UkSLb/4 heres example
@phenomnomnominal ok cool thanks dude really appreciate it :)
 
are they all going to be progress bars, or just timers that call functions?
 
progress bars
@MattKnowsTech this is what you mean right: jsfiddle.net/UkSLb/5 click poor service itll give you the tip value in the input box
 
Yeah Dave, checked it out. Thanks!
 
6:06 AM
sweet
 
I'll play around with it and see if I can get it to work with the button & input field
 
i saw the headline and i immediately think "drugs"
 
Are you guys like JS ninjas? lol
 
me ? hell no lol
 
6:09 AM
@MattKnowsTech -> jsfiddle.net/UkSLb/6
 
phenom knows his stuff though
 
as an actual ninja, I'm quite offended by that term.
 
@adeneo he wasn't using jQuery :P
 
@Dave - he is now
 
noo @MattKnowsTech learn javascript before you learn to use a library
 
6:10 AM
yes
i was told that
@adeneo is from my recent post LOL :: stackoverflow.com/questions/17636048/…
 
Then rewrite it to plain JS, and you'll learn something !
 
In a world where jQuery is raw JS... I'd love it
Looks so much easier
Wow @adeneo... you get it to work in 5 minutes.. i spend my whole day trying to figure out how to even start...
 
Ew.
Write a function to do the calc. Don't store state in the DOM.
 
@phenomnomnominal sorry i have to go to sleep its 7.16am i can't keep my eyes open !
 
Sweet, i'll ping you when I get soemthing
 
6:17 AM
ok thanks
night all :)
 
@ChadKruse 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.
 
Still got a lot of of work to do on this yet, what do you think?
 
@MattKnowsTech - I just rewrote it for you -> jsfiddle.net/UkSLb/8
 
LOL
I did it too... just how to make it work for the "Tip" button
Thanks, @adeneo
 
6:26 AM
@MattKnowsTech Guaranteed not to answer your question. jsfiddle.net/bjnLS/14
 
Man, thanks! All you nice people are helping ;)
Just don't know how to call it with the "Tip" button
Never use Yahoo answers
 
I'd put the cost before the service selector, for better user experience.
Also, alert for the result is jarring
 
Jarring?
 
Yeah, pop ups are jarring. Some people have them turned off, ya know.
 
No, this isnt the real deal. d.pr/i/OkAY
Thats what its going to look like
thats jsfiddle is just a test
 
6:34 AM
Ah, its all designified and stuff.
 
Haha yeah
 
What is it that you dont know how to call with the tip button
 
The technique is the same as clicking on the service selectgor
 
onclick="tip();"
ohh, using eventListeners
 
6:36 AM
Putting calls in the HTML is a bad practice, can bite you in the ass, can interfere with design, too.
 
Calls?
 
Yeah, you can set up an event listener on the button.
 
ohh, so using onSomething="" is bad??
Didn't know that
 
HTML like <div onclick="doSomething();" > is frowned upon
 
wow all the tuts use that...
 
6:37 AM
Yup.
 
So using eventListeners is a better way of doing it
 
Yes. It separates the HTML which ideally is a content description from the code, which is procedures.
 
Yes, just be aware that IE8 and below uses attachEvent instead.
 
ahh okay
 
jQuery or some other library can help you with some of the browser differences
 
6:39 AM
Yeah, they're easier to work with
 
Guys, why doesn't

var m_canvas = document.createElement('canvas');
m_canvas.width = 64;
m_canvas.height = 64;
var m_context = m_canvas.getContext(‘2d’);
drawMario(m_context);

function render() {
  context.drawImage(m_canvas, 0, 0);
  requestAnimationFrame(render);
}
 
In jQuery it is $('#elementID').click(function);
 
this actually work? I need to create an image element explicitly and I cannot drawImage straightly from canvas context
 
@Paul yeah I know a bit of jquery
 
That avoids having to write if(IE){ something } else if (safari) {something else } ..... and it is not so easy to detect what is what. Instead capabilities are detected, like the existence of functions.
 
6:40 AM
@Paul How can I use an eventListener for tip? What parameter should I use? How will it know which one to go with lol
Thanks for all the help everyone.
 
@Dave I might do something like this: jsfiddle.net/LFBh4/8
 
@MattKnowsTech The way you've designed it, you need to store state, like a radio button would have done.
@MattKnowsTech Then when the tip button is clicked, it can get the service quality. But if you don't store it somewhere, then it can't.
 
@Paul but those chicken legs have IDS, cant I use an eventListener w/ their ID?
@Paul Ahh, I see.
 
Lol power just went out in the whole hotel, went splinter cell mode
 
Yes, you can. Someone clicks on it, it fires. Later, someone clicks on tip, it fires. How does the info get from one to the other?
 
6:46 AM
Yeah you're right. Don't radio buttons have two states? I can just define the state!
 
@Gacnt Cory Monteith died :(
 
You can put that information in a global variable in your script. I suppose if it is a one time thing that is OK. But a more clever way is to build a function() { } around all of your handlers, and then the variables are local, which makes it easier to combine that code with other stuff.
 
@phenomnomnominal Who dat
 
He's from Glee
Don't tell @BadgerGirl
 
Alrighty, I'll do that!
 
6:47 AM
The best documentation for all the page elements and the javascript, is in my opinion, Mozillas. And google seems to like queries like "mdn radio button" or "mdn onclick"
 
I think you just did
 
mdn stands for Mozilla Developer Network
 
Yeah I use them
One thing I'll probably never understand, the purpose of loops. (Besides repeating words, or counting up and down and by 2s and 4s, etc.) But im new to js so maybe it'll get to me. For example, this:

for (var i=h2.length; i--;) {
h2[i].addEventListener('click', function() {
for (var j=h2.length; j--;) h2[j].className = '';
this.className = 'active';
}, false);
}
It's like loop inception
 
instagram.com/p/buM2hQveE3 This is a video I took today of a monkey at the zoo, I wanted it so bad it was the size of a really small kitten.
and some pigs playing with a ball
 
I have a working version of an asynchronous JSON stringifyToStream function for Node.js, for sending large objects out to a file without memory bloat, and am looking for 'youre reinventing the wheel' or pointers or help gist.github.com/DrPaulBrewer/5990065
@MattKnowsTech function()'s define scope, not var. For instance, there are no block level for loop variables like there would be in java, unless you create a scope by sticking a function in there.
 
7:00 AM
@Giliweed 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.
 
Yeah I heard of the scope before. All variables defined in the function are local, any outside are global. Can you redefine a global variable within a scope?
 
Yes.
But you can also get the global var "xyzzy" with window.xyzzy in a browser, because all the globals get attached to window.
 
<a href ="about.html"> what this page to open in a div
what do I do?
if a <div ="sst">
<a href= "about.html" target="sst"> click </a> is it right?
 
hey, what the hell
I thought preloading image then using drawImage is faster than fillRect but it's opposite according to my test lol...
 
7:10 AM
@MattKnowsTech - a loop like that is used to iterate over elements. You can not attach event handlers to a bunch of elements at the same time, unless you're using a library, but internally the library will iterate the nodeList of elements as well. So inside the loop, an event handler is attached to each single element, and inside the event handler there's another loop to remove all classes from all H2 elements, and then the active class is set to the one currently being referenced by "this".
This is what libraries are really useful for, as methods like jQuery selectors, addClass(), removeClass(), fading stuff etc. do all the iterating internally for you.
 
@adeneo Geez, I have a lot of learning to do. If I want to be a good front-end dev, I need to know JS
 
7:23 AM
oh. IT'S A SHARK TORNADO.
 
was there a link with that?
I mean, I really wanted to see sharks flying around eating people or something
 
Ah, its sighfi. imagine better, a lot better.
That qualifies as satisfying my request...
 
7:39 AM
^ pretty awesome last tweet
 
If you're a huge Glee fan, which you obviously are, sure! Who cares.
 
guys, caching is importanter than anything
when it comes to rendering stuffs on canvas
 
Oh God! You're using jQuery, but the only line of jQuery is $j("#selectCheckboxID").checked;, which is wrong ! — adeneo 1 min ago
I giggled at that part
didn't even notice the question was tagged jQuery until reading your comment @adeneo
 
@FabrícioMatté - sometimes you just have to wonder what they where thinking when they wrote 100 lines of plain JS, and in the middle they added one single line of jQuery, and that line is a syntax error - "object has no method checked" ???
 
Well, I just saw worse
classes can't contain spaces, so that's not an issue. .list li targets any LI elements inside .listadeneo 11 mins ago
How didn't you quit SO yet I wonder :P
 
7:51 AM
I wonder too !
And now this code stackoverflow.com/questions/17637525/… , going back to bed again me thinks !
 
G'night :P well yeah, my boring code refactoring is way more fun than SO lately
My face while browsing SO js tag:
There has been a lot of nonsense questions lately, but today was exceptional
 
You look exactly like Jackie Chan, what a strange coincidence, and what a funny name for an asian?
 
mere coincidence :P
 
8:09 AM
live was deprecated in 2011, and since January this year is removed. Basically they renamed it to on. — FakeRainBrigand 5 mins ago
Okay enough internets
 
@user2580076 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.
 
guys, what's the fundamental difference between >> and >>> ?
 
@O0oO0oOO0ooO The latter always results in a positive, the former preserves the sign.
 
8:37 AM
Droplr is Sweet d.pr
 
user1125394
8:53 AM
!!> -256 >>> -8
 
@cx 2147483520
@cx 255
 
user1125394
that will be confusing I think I'v seen that domain extensions like .city or anything will be allowed
 

« first day (1002 days earlier)      last day (3945 days later) »