« first day (1376 days earlier)      last day (3572 days later) » 

10:00 AM
But in IE10 .. event.which is not zero for any character
that is the problem I am facing now
 
Did you try event.keyCode
 
yeah.. for dot and del .. it is giving same keyCode 46
So couldn't distinguish between those keys
0
Q: events recognizing special characters in IE10 vs IE8

ANILBABUThe answer already available on Stack Overflow is not a solution to my question.. I can check special characters by keycode but both dot and delete are giving same key code 46... What to do in such situations to identify a special character ? function keypress(ev) { if(ev.whic...

the above is my question
 
Did you try a different event, what are you using now, keyup or keydown, if so try keypress
 
kindly see that once
@adeneo I am using keypress now
 
@ANILBABU A workround would be to use regex.
 
10:07 AM
Then try keydown
 
@adeneo My control is going to that function... But the problem is , It is treating all the characters as normal characters though the pressed character is special handling
@RahulDesai Can you pls see my question once...? You will get Good understanding of my problem.... stackoverflow.com/questions/24906371/…
 
@ANILBABU Yes, I saw that.
working on it..
 
@RahulDesai yes
 
What exactly is "delete", is that a key?
 
it's a word
 
10:11 AM
@ANILBABU A . has non-zero value for event.which.
 
@RahulDesai Yes Rahul.. It is giving non-zero and keyCode is 46 which is same for delete aswell
@adeneo Yes... Delete is delete key in keyboard
 
@ANILBABU That must be an update to modern IE I guess.
 
Well, in keypress, the period would have the keycode 46, and the "del" key shouldn't trigger the event at all, it's not part of keypress.

If you use keydown instead, the period will be keycode 190, while the "del" key would give you 46.

How do you get this to be an issue ?
Tested in IE, and works fine -> http://jsfiddle.net/aq79h/1/
 
@adeneo I don't face any problem in IE8.... But in IE10.. it is creating issues
 
Again, I tested in IE10, and it's not an issue unless you're doing something wrong, like using both events and expecting unique keycodes.
 
10:15 AM
do you advice me to use keydown instead of keypress?
 
If you want unique keycodes for the delete and period, you pretty much have to ?
 
@ANILBABU with onkeydown, its different. Try inputting . and Delete buttons here: jsbin.com/vumowune/1
I agree with what @adeneo is saying.
Tested in IE 11.
 
Okay.. thanks.. Let me test once on my machine... Thank you so much for your valuable time
 
@ANILBABU If you want to see the code: jsbin.com/vumowune/1/edit
I was testing it with 186 -> ;
 
Thank you so much
 
10:25 AM
@adeneo Maybe you should post that as an answer to his question, if you havent yet.
@ANILBABU Dude, you are from my hometown!
 
@RahulDesai - Nah, you go ahead and post it, I was just helping !
 
Ok, posted.
 
@RahulDesai I am from Pune
 
@ANILBABU So am I.
 
Great.. wr do u live?
 
10:40 AM
@ANILBABU Kothrud.
and you?
 
magarapatta city
 
cool
I posted an answer to your question. Please check.
 
Sure
 
hi anyone know about this error
callbacks must be named in window scope
 
@kathir it seems the callback function wasn't defined in that window scope... check if the callback function is properly defined....
 
10:46 AM
bridgeit.camera('myId', function(data){
console.log(data);
});
 
@kathir Can you reproduce the error in a fiddle? www.jsfiddle.com
 
@AwalGarg funny how repeating the same error to people sometimes helps
 
@BartekBanachewicz lol... but there is a difference between "named" and "defined", not literally in JS... yeah u r right...
 
erm... it's something! copot.eu/matei/games/systic
I have coing groups finally working, and the textures are a bit better
and watch out, there's audio
just little pings when you collect coins
not the best, but I'm more interested in the code than finding new sounds/textures
 
@towc hella annoying
 
10:54 AM
@BartekBanachewicz I think I'll set it off by default, and add an option for sound
 
@towc this "Welcome user. This is the nth time you visit the site." <---- make this GOOOOOOO
 
@towc the code looks decent and clean.
 
@AwalGarg I'd make my whole website go, and build another one, but I don't have much inspirations
@BartekBanachewicz finally
of course it's just preps, stuff isn't as modular as it will be at the end
but I admit it's better than my snake code XD
 
I've seen much worse production code.
 
@BartekBanachewicz must have been on gmail...
 
10:56 AM
@towc How am I suppose to collect coins? I am hovering/clicking on it but its not really counting.
 
@RahulDesai read on the left: press spacebar
 
@AwalGarg gmail works fine for me vOv
 
also, there is a quite big issue with hitboxes...
 
I did.
 
and I have literally no idea about how to fix it
 
10:57 AM
@BartekBanachewicz you can understand the gmail's source???? man you gotta be chuck norris to do that.
 
@RahulDesai are you sure you're focused on the document? If so would you mind telling me if you see anything in the console?
 
btw @towc don't do that
this.config = new Config();
this.config.init();
@AwalGarg it's minified?
 
@BartekBanachewicz should I initialize it as I create it?
 
@BartekBanachewicz and uglified and obstructified and fuckified...
 
10:58 AM
ok...
 
don't hold objects in invalid state.
this.config between the construction and init is useless.
 
@towc how do you play that fishes game?
 
@AwalGarg arrow keys
AwalGarg you have to eat the other fishes, you are the yellow one and if you hit a red fish that is smaller than you, you'll eat him, otherwise it will eat you
 
@towc no instructions about that there... nice one though. I like it.
 
@AwalGarg it's such a bad coded/designed game that I don't even bother adding instructions
 
11:05 AM
@towc it has a lot of bugs, I discovered 3 within the first minute... maybe you should improve it.
 
@AwalGarg or I should leave it as it is and laugh hard at it
 
whatever :)
 
If I'll remake that game I'd surely start from scratch
 
Jun 16 at 19:43, by Awal Garg
if there would be, I would definitely do it from scratch. But I guess, I will edit the variable names.
 
not-conform-to-XY problem alert: My brain is melting trying to understand why this collision detection is not working as it should, could someone try and explain me?
        GameManager.prototype.checkCollision = function (ent1, ent2) {
            return !(ent1.pos.x > ent2.pos.x + ent2.size.width
                  || ent1.pos.x + ent1.size.width < ent2.pos.x
                  || ent1.pos.y > ent2.pos.y + ent2.size.height
                  || ent1.pos.y + ent1.size.height < ent2.pos.y)
        }
in my game it looks like the hitbox of the player is shifted upwards by half his size or something like that
 
11:08 AM
why isn't chrome 36 showing me an mp4 - video? ;_;
 
@GNi33 coz it's audio?
 
sadly not
 
@towc Draw it on a piece of paper
 
@GNi33 isn't mp4 audio?
 
mp3 is
mp4 is a videocontainer
 
11:10 AM
@towc Try to be more explicit with your brackets maybe?
I have no idea how precedence works between logic and math
 
@SecondRikudo ?
 
Although it's probably not the problem
 
this works
 
@SecondRikudo oh, + and - come before < and >
 
11:12 AM
@GNi33 download the vid and check its codec locally. maybe the file is bad...
 
@GNi33 , awal is right , that may be the case.. try with link i hv send , download and check..
or try specifying online link
 
@towc I'd make two functions for this
 
@copy it works on paper too
 
One function checks if a point is inside a rectangle
And the other checks collision with that
 
how do you check that on paper? is that some code debugging trick?
 
11:14 AM
@towc Also, do you have a live example?
@AwalGarg This is basically math, so doing it on paper should yield the same result.
 
@SecondRikudo it's a simple AABB, either I'm missing something obvious or the problem is something else
@AwalGarg did you never test your code on paper?
 
@towc What does it return that you aren't expecting?
 
@SecondRikudo ahhh...
 
@SecondRikudo overkill
30
Q: Fast rectangle to rectangle intersection

JarvisWhat's a fast way to test if 2 rectangles are intersecting? A search on the internet came up with this one-liner (WOOT!), but I don't understand how to write it in Javascript, it seems to be written in an ancient form of C++. struct { LONG left; LONG top; LONG right; ...

 
@SecondRikudo the hitbox of the player is not where it should be
 
11:15 AM
seriously it's a solved problem
 
@towc So that isn't a problem of this function...
 
@towc in exam? yes... (that was completely non-constructive though.. we have to do that for marks. the code is so simple I don't even have to look at it to predict the output. ;p)
 
It's the problem of the function that needs to determine where the hitbox is
 
@SecondRikudo the player has 2 properties relevant to the hitbox: position and size
the position is the position, and since I'm drawing at the position of the position I don't think that the position is the problem
5
 
@towc can you setup a live example?
 
11:18 AM
the size is the same size as the image, and since I'm not rescaling the image that shouldn't be a problem either
 
@towc And yet the box is drawn elsewhere
 
@SecondRikudo copot.eu/matei/games/systic sometimes when the coins are below half of the player's body he doesn't collect them
@SecondRikudo or the logic is fucked up somehow
 
Some people look hopeless
but actually i wanted in the xml to show up like <foo>6 < 7 </foo> So how can i achieve it. — TheUser 33 mins ago
 
@dystroy lol...
but hey, you should not say like that. you must have been a beginner sometime, isn't it?
 
@SecondRikudo when your head hits the top, the player stops as it should, and when you hit the bottom, I get what I expected, but that somehow doesn't apply to coins...
so maybe I'm drawing the coins in the wrong place
again, they have size and position, I'm drawing them at their position, not rescaling the image, and their size is the same size as the image
 
11:23 AM
@towc This is a game's state and the current state of the variables in the backend
 
@SecondRikudo ?
 
Let's try to debug
As you can see, the coins on the bottom were not collected
So the function must have returned false in that case
 
exactly
 
Let's see, we have the position and size values of both boxes
 
it's strange...
the coin has an x of 3 and a size of 5, which isn't enough to reach the x of the player, which is 10, but in the image they're still colliding..., the hell?
 
11:29 AM
hmm
 
@towc The play field may be stretching below the screen?
 
@SecondRikudo hey, how did you shift the sidebar of ubuntu????
 
the guitar in Aguilera's Fighter is really cool
 
@AwalGarg 2 screens, I'm screenshotting between them.
 
@AwalGarg a second screen
 
11:30 AM
@Magikaas I'm sure it isn't... the player is in a walking state, meaning that he's at the bottom
 
@towc jsfiddle.net/YXh84 I can reproduce outside with same dimensions
 
I mean, I'm also getting coins showing up in the playfield below the lower edge of the field, (that hexagonal shape). That should count from 0 and up, right? (from below and stretch up)
 
@SecondRikudo hmm, I thought the sidebar is present only on one screen with dual monitor setup... strangish.
 
2 mins ago, by towc
the coin has an x of 3 and a size of 5, which isn't enough to reach the x of the player, which is 10, but in the image they're still colliding..., the hell?
 
From what I can see, I'm picking up coins above my head (while walking)
 
11:32 AM
@Magikaas but they're pos is always above 0
@Magikaas exactly
 
!!monster original or monster baller blend
 
@Magikaas yeah... me too.
 
@Cereal monster baller blend
 
Hello every one can any one help me out with this ?? stackoverflow.com/questions/24908638/…
 
hahaha, the fourth censored icon is chrome, isn't it Madara?
 
11:33 AM
@SecondRikudo I can almost be sure that the function is working, but I'm just displaying the coins in the wrong location
 
@towc The check for the 'walk' state includes the Player's height, but the y starts at 0 at the bottom, so it should just check for this.pos.y < 0, right?
 
@Magikaas no, this.pos.y+this.size.height<0
 
Since it starts at 10, 200 (top left corner)
With that check you are checking if the player is below the viewport, if I'm not mistaken
 
Hey Browserify guys :

According to https://github.com/substack/node-browserify#brequirefile-opts
"Use the expose property of opts to specify a custom dependency name. require('./vendor/angular/angular.js', {expose: 'angular'}) enables require('angular')"

I do in my "main" file :
var app = require('./app', { expose: 'app' });

But when I browserify I end up with the error :
C:\wamp\www\platform\front\js>browserify ./main.js > ../../public/assets/js/plat
form.js
Error: module "app" not found from "C:\\wamp\\www\\platform\\front\\js\\src\\ser
 
0,0 is the bottom left corner, isn't it?
 
11:39 AM
@Magikaas yes
 
so this.pos.y + this.size.height is the top of the player picture
 
@Magikaas line 78
 
ah my bad, -
derp, sorry
 
@Magikaas this.pos.y is the top of the picture
ok
 
@towc There's the problem
0,0 has to be top left
 
11:40 AM
@copy so?
 
But it still doesn't feel right
Ohhh, I think I see then
 
wait..
 
if my bottom - my height is above below 0, then I am walking
 
in my code I wrote this.pos.y-this.size.height<0...
 
but it should check if his y is below 0
 
11:41 AM
I don't even know my name anymore
 
he is drawn at the bottom, but his position is this.pos.y + this.size.Height
 
Any idea why my isotope fiddle won't work at all?
 
Dunno why he is drawn at the bottom, since that is technically not the position
 
I'm basically just trying to make it work in jsfiddle to address a problem i am having iwth it.
 
nvm...
 
11:42 AM
So you draw the image from the bottom of the player, below the hitbox
 
@Magikaas I draw him from the top
 
this.pos, isn't that his bottomleft corner?
since you are looking from the bottomleft
Not the top left
 
hmm..................... why the hell am I looking from the bottom left????? I finally found out I am... but I didn't tell the code to do so!
 
Bad code!
sorry
wrong wording
naughty code!
 
so, in the function I just have to replace the + with -
 
11:45 AM
@Carnal remove the $(window).load(function) or change the option, top left, and put no wrap in body
 
@towc what +?
 
@Magikaas nvm, doesn't work
 
You need to provide a different position for the playerDraw
 
@towc I think I know what's the problem
 
Because it draws from the top down
 
11:46 AM
It's where you're starting to count
 
We've figured out the problem, now the solution :P
 
@dievardump Thanks man. Got it working. Now that it's working in fiddle. the problem I am having doesn't seem to be happening here. wth.
 
@Magikaas No, you should just globally use top left as 0, 0
 
@Magikaas in the drawer I told it to do the inverse
 
@Carnal sad sad world ;) Always like that. when you try to isolate the non orking things, it works
 
11:47 AM
Otherwise you will be in a world of pain
 
When I implement it on my website. All items are aligned vertically for some reason.

Yeah! Very sad. :(
 
@Carnal Link?
 
fact is, that I just wanted the bottom to be 0, to not cause confusion in my head, and the top to be 256, but I just inverted the y in the drawer
I don't really get what's going on
 
You must have more css on your website, that change the layout
 
It's hosted locally @SecondRikudo. let me host it somewhere. hold on.
 
11:48 AM
@towc Yeah, don't do it. That makes figuring out the logic harder
 
Yeah. I'm probably just missing something.
 
@Carnal did you try to edit in the CSS tool/inspector? Just to see if you can find the property that makes everything goes wrong?
 
@copy I agree... but it doesn't really make sense that when you go up your y level goes down
 
@towc It's a matter of definition for the axes.
 
@dievardump Yes. Been doing that. Maybe I just missed something. :/

Lemme take another look.
 
11:50 AM
Since the browser defines the axes as 0,0 at the top left, it's convenient to follow the convention.
 
I'm using node.js with express and trying to work with `nodemon` to update the server each time I update a file, but I'm getting the message "clean exit - waiting for changes before restart" just after the "starting `node app.js`" message.

So it seems it is quitting and I can not run `http://localhost:3000/` anymore.
 
lol you're still at that collision problem
 
You can easily define your own, you can even define that the axes start at the middle of the screen and that the they lean 45 degrees to the left
All you need is a correct translation.
 
@SecondRikudo Now that would make for an interesting platformer :P
 
11:53 AM
@Magikaas Actually, a game where you can dynamically define and alter the axes, that might be interesting
 
D: Yeah
 
I made a game that dynamically defined gravity!
 
Reminds me a bit of Accelerator's Vector control :D
@Magikaas you've seen/read Index?
 
@Cereal I have on Google Experiments a game where the whole gameplay is about changing the gravity field (see my profile)
 
@dystroy I didn't know it ended on GE!
 
11:55 AM
@SecondRikudo It's on 'The List' xD But I've not read it, no, I have heard it's good
 
Mine would change various physics thing whenevr the player ran over certain blocks. Like run over a blue one, and suddenly you have no weight. Etc
 
@Magikaas If you like epic powers which are well explained, it's probably the best I've seen.
Who's the strongest character you know? :P
 
@SecondRikudo Nice. I'll look it up :)
 
From any series
 
@SecondRikudo I'd have to say Goku :P
 
11:57 AM
@Magikaas There are characters in index that can rip the entire DBZ universe to pieces.
 
@SecondRikudo Lol
 
Single handedly :D
 
0
Q: Pass additional parameters to chained promises

23tuxI want to chain some promises that are returned by services. This works, as long as some of the methods that return the promises, doesn't require additional parameters. This is my example: var first = function() { var d = $q.defer(); $timeout(function() { d.resolve("first resolved") },...

 
@SecondRikudo Hahaha, nice xD
 
@dystroy are you using browserify?
 
12:00 PM
@dievardump no. @FlorianMargaine is, I think
 
Ok thanks
Florian, if you see that and can tell me if you understand why I have this problem (I can't find anything on the internet) chat.stackoverflow.com/transcript/message/17866249#17866249
 
Does anyone here prefers jsBin over jsFiddle?
 
managed to fix it...
and updated the site copot.eu/matei/games/systic
 
@dievardump Maybe you should ask him where he is :)
 
wow, miaou looks great now
 
12:09 PM
@dystroy up for some tribo?
 
12:19 PM
Hey guys.
@SecondRikudo @dievardump Here's a link http://mmofury.net/test

I just noticed that it happens when there's a width.
 
I went to gamestop yesterday to get that Lego City game, and first of all they sold me a broken copy, but I also preorderd the Destiny, special edition white PS4. I wasn't planning on spending as much money as I did.
 
I've never bought a game at a store.
 
You're weird
 
No, I'm a nerd.
We don't leave our keyboards.
Plus, buying online is cheaper.
 
Some of us drive cars to work. I don't simulate myself to the office in the mornings.
 
12:22 PM
!!s/bought/lost/
 
@jAndy I've never lost a game at a store. (source)
 
@NickDugger noob
 
@KendallFrey boob
 
WHERE
 
up your butt
 
12:23 PM
don't be so rapey
 
Searched for "White PS4", got exactly that...
 
@rlemon ohai
 
Is that what a PS4 actually looks like?
Sony needs to work on aesthetics.
 
I fixed my old laptop
and it smoked my desktop in GPU performance by 4x
 
12:29 PM
now fix your desktop
 
@KendallFrey it needs a better GPU
my laptop has a way powerful gpu
 
no shit
 
and an SSD
 
my new laptop is going to have HD4600
it's a pity Iris ones are so rare
 
@BartekBanachewicz mine has a Nvidia GTX 660M
 
12:33 PM
ok now, over to adding obstacles
 
anyone else get randomly logged out by SO?
 
@rlemon I had that lately
But it seems to have stopped for me
 
@rlemon i did
 
what should my obstacles be (at least the name)?
 
12:38 PM
Yaay i got rid of dynamic contrast
 
@SecondRikudo same
 
STAHP pinging me in two different chats!
 
fun fact: in Lounge 2014 Language Poll, C# is winning so far
 
@BartekBanachewicz Lounge<C++>?
 
I wonder they get together to hate a language, not discuss it.
 
12:43 PM
stackoverflow.com/a/5235160/1835379 I think that answer needs 4 more upvotes.
 
I hear nobody there uses C++
 
(to score 666)
 
@FlorianMargaine yep. C++ won the 2013 edition /cc @KendallFrey
 
I used to go there, waaaay back
before the C# room
 
Makes me wonder what that fact has to do with this room's subject, but I'll get a negative remark for questioning the relevance :P
 
12:46 PM
@Magikaas we sometimes talk about C++
 
I see
 
When I think of C++, I think of ugly.
 
Maybe you think of ugly C++.
 
he already said C++
 
it should be D actually
 
12:49 PM
yeah, we all know you love the D.
 
Lol
 
!!refresh
 
@rlemon That didn't make much sense. Maybe you meant: refresh
 
Hahaha
 
!!do stuff or browser the internets
 
12:53 PM
@Oleg do stuff
 
Caprica's always so strict.
 
!!are you always strict?
 
@towc But of course
@towc By all means
 
@FlorianMargaine I found it funny that most people talking about C++ has no idea about it
exhibit A: The C Room.
 
@dystroy im pressing 5 times "no" and i dont see it
 
12:58 PM
Any idea how i should center my isotope elements?
 
@Carnal I'm seeing chickens.
 
@BartekBanachewicz there's a C room?
 
Yeah.
that's just some sample image
lol
 
0
Q: q.all seems to behave differently, why?

Mark WaschkowskiHere is my code that I would expect would start from the top and execution would continue on down. The first two clauses get a record from the database and then update the 'self' object. However, when the execution hits the Q.all, the method returns Promises rather than actually running the promi...

 

« first day (1376 days earlier)      last day (3572 days later) »