« first day (901 days earlier)      last day (4040 days later) » 

1:00 PM
Two imaginary dollars to whoever can help me understand why my basic game character moves fine EXCEPT up and down are reversed.
 
@Ariane Code pls.
 
user2157210
just put x = -x
 
user2157210
works always
 
@Ariane I'm going to guess that you think y increases as you go up, like we had in Math
canvas has it the other way
 
@Amaan Do you want my whole code? Because I don't know what kind of code to give you apart from all of it. Also I'm presently doing ActionScript.
Oh wait, no, it's not simply reversal, things are messed up
@Amaan and no I do know that y increasing means towards the south/down.
 
user2157210
1:03 PM
reversal fixes everything believe me
 
x *= -1;
 
@Nexxpresso For one it would be just running from the problem since theoretically it should be fine. Also I discovered it's more complex than that. The result of pressing left THEN up is to make the chara move south-west, while pressing up THEN left is to make the chara move north-west as normal.
Maybe I reversed some angles values. >.<"
 
user2157210
just reverse everything
 
user2157210
will work
 
user2157210
this is serious business
 
1:05 PM
It won't.
 
Yeah, sounds like you messed the angles up
If you put the code on PasteBin, I could take a look
 
Okay.
In case you don't understand, playerMovX/Y is the current moving speed per axis, and playerMoving is like a boolean but as a number because it's convenient to multiply my calculation by 0 when character is not moving.
 
Why are there different angles for left depending on playerMovY?
Ah, okay
 
outch
that's awfully french
 
According to this, Error objects should have a .stack property in IE10. But when I do var e = new Error;, then e.stack is undefined. What am I missing?
 
1:09 PM
In Javascript, you can multiply by a boolean
 
@Florian Really? I made a big effort to make things English.
 
I just clicked a pastebin and I got ActionScript
I should create a meme
 
@jAndy no
 
@ŠimeVidas perhaps you need to throw the error?
 
you shouldn't
 
1:10 PM
@Ariane So the dependency is to sort of prevent sharp turns?
 
@JanDvorak Hm, I'll try.
 
@Darkyen why not ? its a great meme! :D
 
If so, you're doing it wrong
 
@Amaan Uhm, if you press Left while the current Y moving speed is > 0, then you are presently moving downwards. So you mustn't make the angle 270, which is left, but 225, which is down-left.
 
Ah, right
 
1:11 PM
It's to make diagonals work basically.
 
@jAndy it is but think of a common man reading it
WTF IS ACTIONSCRIPT
it took me 4 seconds to realize u were talking about flash
 
Seriously?
 
@JanDvorak Ah, there it is. :-)
(the stack)
 
I have no clue whats going on now
 
@AmaanCheval yeah my brain has internal garbage collector
to free up memory /' if the seriously was for me '/
 
1:12 PM
@ŠimeVidas that's why throwing exceptions is slower than a return ;-)
 
I think there's a uproar over my ActionScript.
 
@Darkyen It was
 
posted on April 04, 2013

var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www."); document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E")); try { var pageTracker = _gat._getTracker("UA-3727700-1"); pageTracker._trackPageview(); } catch(err) {} Oh yes.

 
@JanDvorak Well, if you want the stack trace, you'll have to pay for it :-)
 
@Ariane premierJeu, maScene, ... :P
 
1:13 PM
Throwing exceptions? Throws irregular verbs written on origami planes
@Florian Ah. I think there are only those two.
 
didn't look
only took a look at the first lines and saw this
 
@Ariane The angles seem fine if the other directions work fine
Try flipping it and seeing if it works
(Flip up and down)
If it works, then we can try to figure out why. If it doesn't, there's probably something we missed
 
like, player.x-=playerMovY instead of += ?
 
player.x -= playerMovY?
.x -= Y?
 
Yeah. uhm. That. X.
 
1:15 PM
So we posted our job option on monster
 
I'd just flip the angles on the up and down input
@Darkyen Sanitary tests coming in? :P
 
@AmaanCheval awesome ones
we asked them to sort 9 8 7 6 4 5 3 2 1
 
Flip? Like 0 -> 180 ?
 
people answering that wrong
 
@Ariane Yeah
 
1:16 PM
I'll try, but I don't think it'll work since presently up + left != left + up
 
@Darkyen in js?
 
user2157210
reverse
 
@Ariane Hmm, yeah
You're right
@Darkyen Which language?
 
@Amaan would you like the .fla/.swf to see what happens?
 
Don't have Adobe Flash, but the swf, sure
 
1:17 PM
why i even tested this
idk
 
@FlorianMargaine in english
what we got is
 
I'd suck to answer this
 
quick sorts
 
I'd go with super slow sort
 
1:18 PM
Algorithms aren't good interview questions
 
like go through the array for each element
 
Unless it's a position for writing algorithms
 
@Amaan Please don't mind the epilepsic characters. xD
 
Sooo I have a question. I did the WebGL tutorial one, but I see no triangle nor a square
 
@Ariane Nothing moves if I press the arrow keys or WASD
 
1:20 PM
@Amaan Wha? Try clicking the stage?
 
I did
 
Do characters appear at least?
 
nevermind, got it.
 
user2157210
@rlemon why?
 
1:21 PM
@Amaan This is very wrong. Take the .as file, just to see what it does. Maybe it needs the code externally.
 
Maybe it's because I'm running Ubuntu
 
@dystroy no you actually didn't — jAndy 58 secs ago
 
@Amaan NO.
 
@jAndy Hu ?
 
@Amaan I gave you the wrong file.
XD
 
user2157210
1:22 PM
@AmaanCheval maybe its becaus its flash
 
@Ariane Hah
 
@AmaanCheval we aske them
 
@dystroy in which part you create whatEver out of whatever ?
 
to type in the correct array
bro
 
@rlemon Bitwise for the win, huh?
 
@Darkyen Come on. And they got that wrong?
 
@jAndy I don't create it, the question was to call it. That's what I do.
 
we ask them to "Sort in decsending order 9 8 7 6 4 5 3 2 1 "
yes
and answers were in languages like java and perl
implementations of quick bubble and sort
hell one answer was
 
@jandy I make a map in which there is the "whatever' key.
 
@dystroy I'm looking at OPs examples and that is not accomplished at all
 
1:24 PM
/* For loop to get input */
/* For loop to traverse on array */
    /* array . sort */
/* for loop to print array */
in fucking python
 
@Ariane Yeah, this one works fine (with the problems, that is :P)
 
answer: it's sorted; don't believe that 4.
 
@dystroy yes but it looks like he wants to create a camelCase version out of nowhere
 
user2157210
@Darkyen what was the task
 
He doesn't want to create it, he wants to call it. That's what I do.
 
1:25 PM
@AmaanCheval it's strange because on chrome stable latest win7 -x is much faster than anything else
 
@Nexxpresso read up
Sort in decsending order 9 8 7 6 4 5 3 2 1 "
 
user2157210
point me plx
 
@rlemon Yeah, saw that
 
user2157210
array sorting?
 
Strange indeed
 
1:25 PM
why I bothered tested it? idk.
 
what?
 
@dystroy doh, yay I also got it by now
 
@jAndy what?
 
@Ariane Are you sure your calcMovY function is correct?
 
user2157210
@Darkyen why do you have to sort something which is already sorted?
 
1:26 PM
Can a cookie set in JavaScript be read using PHP?
 
yes
 
@Darkyen And why would you expect them to give you just the answer?
 
@Sebastian it can
 
$_COOKIES['name'];
 
@Amaan It may very well be wrong. I'm not a mathematician. In the beginning I thought sin was Y and cos was X, but that caused VERY weird things so I reversed them, and it became more normal.
 
1:27 PM
@rlemon thanks
 
@Nexxpresso If new values inserted then the need of sorting can be there
 
@Ariane sin is Y
 
!!/tell Sebastian google "php cookies"
 
You must have messed your default angles up
 
1:27 PM
@Rahul_RJ oh we were just discussion a question from SO, I didn't understand a question quite correct
 
Because in JS at least, the angle 0 goes right
90 down, 180 left, 270 up
And you're using 0 as up
 
@jAndy POST me the question
 
user2157210
@jAndy that escalated quickly
 
HUG me....

no really... i'm lonely.
 
without a "please" its so.. command style :p
don't like it
 
1:29 PM
 
@Amaan I'll change everything then reverse sin and cos again.
 
@Ariane Yeah. I was just confused seeing sin and cos like that, and wasn't sure if I was wrong or you
 
user2157210
@Ariane reversing fixes everything
 
0
Q: How to use the keyword this in javascript?

mbarki mohamedI'm a beginner javascript student , I have a problem with understanding the main goal of the keyword this and how to use it . Please can anyone help me with examples. Thanks in advance.

 
You can change the default angle (in radians) to see what direction which points to
 
1:31 PM
 
(You have to press the up arrow to see the angle)
 
@Nex It's not reversal it's minus one quarter. :/
 
90% Porn
5% Music
4% Mexicans
1% Ketchup
Hell yeah
 
user2157210
@AmaanCheval this car cant do shit
 
1:32 PM
Also, the music isn't really that awesome but that chick ... omfg
 
@Nexxpresso I know. But a fun game (in my opinion) spawned from it. js13kgames.com/entries/swarm
 
user2157210
@AmaanCheval i gave that bitch a turbo car now has 50 topspeed instead of 5
 
@Nexxpresso :D
 
@Amaan You are a genius. :D
 
That'll be $50.
 
user2157210
1:35 PM
stupid car go straight down
 
user2157210
this is retarded it doesnt want
 
It doesn't want?
 
By the way, it doesn't bug my code or anything since KEY_DOWN only sets values, but the KEY_DOWN event is triggered repeatedly as long as the key is held, which makes my script calculate something possibly hundreds of times when it doesn't need to. If anyone has a solution, I'll take it.
 
user2157210
i can make it go everywhere but straight down
 
@Nexxpresso Just turn it around?
I removed the down button because it made the game a lot easier
 
1:37 PM
5 hour Age of Empires LAN game with my flatmates...
That was fucking exhausting
 
user2157210
@AmaanCheval which game are we talking of
 
ONE game, 5 hours? Sheesh, I'd surrender before that.
 
5 mins ago, by Amaan Cheval
@Nexxpresso I know. But a fun game (in my opinion) spawned from it. http://js13kgames.com/entries/swarm/
 
How would I make IE10 break on exception?
 
I played a 9 hour game of Civ ...
 
user2157210
1:37 PM
nah
 
my eyes hurt after
 
@Ariane You'd be no match for me. I have 200+ hours logged on Awesomenauts
 
user2157210
im talking about your fiddle
 
In a single day, I've played about 10 hours
 
yea that was 9 hours straight
 
1:38 PM
You're scary in terms of unhealthy.
 
It was for our sweet new AoE crown, so it had to keep going
 
multiplayer CIV is slow as shit
 
It's now 2:40am
 
psh you guys have nothing on my dota friends :P
 
Well, I only started gaming properly 2-3 months ago
 
So you have to take that into account.
 
user2157210
@AmaanCheval oh i got it
 
> Dota 2 37.1 hrs last two weeks / 1,463 hrs on record
 
And I never have gamed properly
 
@Loktar Have you heard of Ulialialia (however that's spelled)?
 
1:39 PM
@Loktar the dude who owns over 1K steam games does not qualify to discuss this. you are on a whole new level of gaming.. it would be unfair.
 
user2157210
stupid math needs to have math.pi/2 to go down
 
@phenomnomnominal 2:40? Just about right for this then. chat.stackoverflow.com/transcript/message/8663958#8663958
 
@AmaanCheval no what is it?
@rlemon hah I dont have too many games with huge numbers of hours logged
 
This really insane personal blog. That guy is obsessive
 
@Amaa Where should I check for collisions? I think it's in movePlayer(), but I have a doubt.
 
1:40 PM
tf2 is my highest
> 342.3 hrs on record
 
I gotta be honest, that would be safe for my work
 
user2157210
i have about 5k hours for Gw1
 
@Ariane The collisions in this fiddle are very basic, and aren't for all 4 corners of the rectangle
I have another fiddle that has those, but I'm not sure if those would be a good example to learn from
 
@phenomnomnominal Working at a night club?
 
user2157210
or even more
 
1:41 PM
And it's really old, so the code will be shit
 
Nope, just a very chilled out team haha
 
I meant my own code. oo'
 
user2157210
i just realized i played one game over 1/2 a year lol
 
user2157210
..
 
1:42 PM
@Ariane Ah, to add collisions. Hold on, I closed the pastebin
 
http://pastebin.com/g5HLU9f9
(assume the angles and sin/cos are changed)
 
Sleepy time... have to be at work way too soon
 
m59
@phenomnomnominal bro, hold up
 
@Ariane movePlayer would be a good place
 
you have 10 seconds
9
8
 
1:43 PM
@Amaan Understood.
 
m59
I just want to say, you can't imagine how much you helped me out the other day (unless you're really good at imagining. Then maybe you could.
 
If the code gets extensive, put it in its own function, and just call it in movePlayer
 
m59
1:43 PM
So...REALLY FREAKIN' THANKS, MAN!!!
 
user2157210
you can edit one message exactly 10 times
 
m59
Goodnight!
 
You're welcome. Pass it on
 
user2157210
would be less spammier
 
m59
Will do!
 
1:44 PM
I've noticed, in Firefox Ctrl + F5 won't force a re-request of all page resources, but a "regular" F5 will. WTF? Shouldn't it be the other way around?
 
Really?
That's strange.
 
Yup. I'm ajaxing a Markdown file on page init. F5 makes sure that the latest version is re-ajaxed, but Ctrl + F5 loads it from cache.
 
@Nexxpresso get eyes
its 9 8 7 6 4 5 3 2 1
not 5 4 -_-
 
@Nexxpresso import eyes ;D
 
1:46 PM
@Darkyen I didnt see your ping until now btw
 
I didn't see it either
 
Dear god :D
 
m59
I am running 7 of the same ajax requests at about the same time...5 of them return fairly quickly, and then 2 take a fairly long while (maybe 30 seconds?). What might cause that?
 
and @AmaanCheval thanks :) (for your comment on my clock)
 
you all are blind ... copy pasters
@Loktar lets ... just play counterstrike on saturday
or i will have a nervous breakdown
 
1:47 PM
:?
I have crap going on
family pictures :(
 
@m59 30 seconds to get a server response?
 
my mom in Canada freaking scehduled them..
 
m59
And I should point out that it has nothing to do with the last 2 requests, they don't happen in any particular order. It is simply whatever the last 2 are get shafted.
 
scheduled a dude to come to my house and take pics
 
@Loktar you have a mom in Canada?
 
1:48 PM
so pissed about it.
@rlemon yeah my mom lives there
 
@rlemon is your mother?
 
In Alberta Ft. McMurray
 
@m59 Are 7 separate requests really necessary? Have you considered combining them?
 
she moved there a few years ago, her husband is a Canadian
 
m59
@ŠimeVidas Actually, now that I've typed it (talking helps me think) I just realized that it's probably what I am waiting on from the server that gets delayed. For testing, I am really over-doing it. I am loading 4 feeds from youtube and 3 from vimeo, then caching them to seperate files. It's the caching that get's hung at 5.
It logs that it cached 5 of them and then the other 2 log quite a while later.
 
1:50 PM
@Loktar so you're a step-canadian?!
I knew there was a reason we got along!
 
haha
 
user2157210
@Darkyen i see
 
m59
@ŠimeVidas You make a point. Would it be quite worth adding them all to an object, make one request to the cache file, and then have it split them all back up to cache in each file?
 
@m59 Are all requests to the same server?
 
1:52 PM
 
m59
When I'm getting the feeds, it is from youtube and vimeo. Caching them is to my server and obviously so is retrieving them.
 
user2157210
@Darkyen and what answer were you expecting to get
 
old news
 
Chromium doesn't actually run on webkit?
 
1:54 PM
we mocked the Blink tag for a bit
 
WHY WAS I NOT AWARE
 
@Loktar Haha, nice
@RyanKinal It doesn't?
 
WHOA
 
Apparently it's close to webkit... it's webkit-based... but it's not quite webkit.
webkit
 
user2157210
"Chromium uses the WebKit rendering engine. "
 
> Blink is the rendering engine used by Chromium.
 
user2157210
taken from dev.chromium.org
 
> Blink is a new rendering engine, which means that it won’t interpret CSS and JavaScript quite the same as WebKit (or Gecko or Trident, for that matter). It will power all browsers that use Chromium, Google’s open source browser
It's a new engine, so it's about to change, apparently
 
@Nexxpresso read the chromium.org/blink link
> However, Chromium uses a different multi-process architecture than other WebKit-based browsers, and supporting multiple architectures over the years has led to increasing complexity for both the WebKit and Chromium projects. This has slowed down the collective pace of innovation - so today, we are introducing Blink, a new open source rendering engine based on WebKit.
 
1:56 PM
You think mozilla knew ?
 
> At the moment code sharing between Blink and WebKit is still possible, but over time this will become less easy due to increasing differences between the two.
 
Opera did
 
No no no no!
 
@m59 So, if the Ajax request are made to your server, you can combine them into one request. That would improve performance.
 
1:57 PM
anyone here ever use lynda.com ?
I need to brush up on my server side skills
 
@rlemon That's what I meant -_-
 
@rlemon You get around to fixes?
 
@Loktar My employer has an account. I know people around here use it.
 
@Nexxpresso first question was "Was Dennis ritchie inventor of C"
 
Hey, this doesn't look so bad!
 
1:57 PM
@SomeKittens nay
 
I haven't personally, but I've heard good things.
 
1 hit google : " Shound be YES BY EVERYONE "
 
got drunk instead
 
but 5 people answered that wrong
 
> Google wasn’t happy with the lack of progress in the WebKit project. This lack is mostly caused because the actual WebKit rendering engine is intertwined with implementation details that are only important for one platform — and the number of supported platforms is growing, especially in the mobile world.
 
1:58 PM
@RyanKinal thanks, Ill try the trial I guess
 
@rlemon Fair enough, I got pie instead.
 
2nd Question IS FIREFOX A WEBKIT BROWSER
people : Yes.
 
user2157210
@Darkyen I want to take the test too :(
 
Oh hai :) HTML5's <progress> tag - it looks like text between the two tags should be overlayed on the bar, but it's not. Anyone had experience with <progress>?
 
me :-( die motherfuckers
 
1:58 PM
I don't like the concept of dropping WebKit, that's one more rendering engine to support
 
People think webkit === !IE
 
3. Sort in descending 9 8 7 6 4 5 3 2 1
 
@Loktar I've been using Pluralsight lately... it's decent.
 
and we get quick sorts
 
It means we won't be able to develop to android && iOS together as easily
 
1:58 PM
copy pasted wrong C++
 
@Jimbo I think the text in between is what will be displayed if the progress tag isn't supported
 
Shit thats Hardcore!
hah Ill check this out, seems to be developer specific
 
@AmaanCheval Rightt, so i'm going to have to do something awful to overlay this text then.. this isn't at all like twitter bootstrap's progress divs x(
 
@RyanKinal fail.
 
1:59 PM
@SomeKittens ?
 
user2157210
@BenjaminGruenbaum yeah right now doing multi platform webapps works great ..
 
@RyanKinal is that free?
 
@Jimbo Most likely.
 
@rlemon lul nope
 
:(
 

« first day (901 days earlier)      last day (4040 days later) »