« first day (837 days earlier)      last day (4111 days later) » 

9:00 PM
@dievardump that's amazing, she was portuguese right?
 
She is, yes.
 
You and your names make me all jealous. I have a second forename, anyone wanna guess?
 
continental portugal or azores?
 
@AmaanCheval No, 42 is the meaning of life, universe and everything
 
Continental.
 
9:01 PM
@OctavianDamiean Unicornia?
 
She lived 12y in Portugal before moving in France.
 
@CBredlow Yeah, I tried. ;_;
 
I wish.
 
ok so i'm trying to shit together a tiny bypass to gravatar request vars...
<?php
$ID = $_GET['id'];
header('Content-type: image/png');
echo file_get_contents('http://www.gravatar.com/avatar/'.$ID.'?s=128&d=identicon');
?>
Y U NO WORK?
 
There was a lot of imigration from azores to canada
 
9:02 PM
@FlorianMargaine It's Andrei
 
thats because Canada kicks major ass
 
@rlemon check what headers it sends in the browser and send the same headers
 
My cousins live in New Jersey.
 
@BenjaminGruenbaum it's an image
 
9:02 PM
@OctavianDamiean Kalachnikov?
 
doesn't matter
 
@rlemon the request headers
 
@FlorianMargaine heh
 
that's cool, man.
 
I have some friends living in new jersey too ...
 
9:03 PM
seriously.. wtf is wrong here - the browser should determine the header anyways
 
I have some friends...
 
Chrome is no stupid
 
So if the situation requires I can always pretend I'm Russian.
 
@rlemon What goes wrong?
 
9:04 PM
We are spread all over the world :) did you learn portuguese? @dievardump
 
no header and I get garble
 
Either Russian or ancient Roman.
 
png header and I get nothing
 
@ToniAlmeida Sadly, no. My mom hadn't time to teach me.
 
@rlemon apperantly, no need, here is the API: en.gravatar.com/site/implement/images
 
9:05 PM
without knowing my reasoning - your comments are moot
I am circumventing the request variables in their API
 
"Content-Type:image/jpeg" is the response, you're setting yours as png try as jpeg
 
Chrome is a liar
 
What is the rss feed?
 
and big fat fucking liar
tells me I don't need to specify mime types for images
 
9:08 PM
ah sad, portuguese is one of the most used languages in the world, due to brazil of course :)
 
Never believe your browser, he's like the gardener.
 
@rlemon If Chrome told you that you didn't need to pay your taxes, would you do it?
 
I know. I'll learn, maybe, one day.
 
Chinese English and Spanish / German afaik were the most used.
@user973810 who says I do now? I'm native american
 
@ToniAlmeida Seriously?
 
9:09 PM
I guess there is just an rss feed for starred stuff, not everything?
 
YAY!
We're #2
French is last.... but in the top ten so cool
 
That's from 2008!
 
Hahhahaa, "Hindustani"
It's Hindi, idiots.
 
World has changed dramatically.
 
9:10 PM
@OctavianDamiean and in 4 years the entire world picked up Hindi
 
Yes! :D
 
yea.. ok... stfu please
:P
 
@rlemon You have to be a status native american living on a reserve to be tax exempt
 
no. no you do not
 
9:10 PM
> To say “hello” in English, say “What’s up, freak?” (watz-UP-freek).
Hahahahahahaha
 
in this list we're in 6th en.wikipedia.org/wiki/…
 
Seriously.. don't try to tell me how my country works in regards to me :P
I will win every time.
 
It's my country too bro. And I'm a voter!
 
@rlemon You're exempt from taxes?
 
less than 3% of Canada is aboriginal - I am in that 3%
@AmaanCheval my card expired and I never renewed it. But I can be
 
9:12 PM
Ah
Nice
 
FU! German's not even on the list!
 
What are the tax rates like over there?
 
you have to be of aboriginal status and you do not have to live on a reserve
you just have to have status
 
@rlemon You said less instead of fewer. Your argument in invalid.
 
but this is something you have to apply for an prove
 
9:12 PM
german is 11th
 
but I repeat - you do not have to live on a reserve
this is total crockery
 
$19k+/year has a 30% tax in India
 
Crock pottery.
 
hehe after income + government taxes in Ontario you walk away with ~50% of your pay
~33% income tax + you are taxed on everything you buy.
 
But it
 
9:14 PM
Flat ~33%?
 
no
 
's cool because we have a good society which is worth paying for.
 
hence the ~
 
No, I mean, aren't there lower slabs?
 
so native status was golden. Once they put HST in the only way for me to be tax free is to submit my claim at the end with my income tax
 
9:15 PM
Like here we have slabs for 0, 10, 20, and 30 percent
 
@AmaanCheval yea - I put the average
!!/google Ontario Tax brackets
 
What's the taxes on food?
 
The government says you have to be status and on reserve to be tax exempt. aadnc-aandc.gc.ca/eng/1100100016202/1100100016204
 
> 15% on the first $43,561 of taxable income
 
9:17 PM
Unless you just mean GST. You must have been talking about GST.
 
Goes to show how different the average income must be
 
@rlemon , you're probably done already but I just ran into en.gravatar.com/site/implement/images/php
 
What I really want is a feaking REST api without request vars
@user973810 read why I stopped
you have to 'submit' your HST tax receipts and claim what you are owed
this changed with the advent of HST
 
Who are Indians?
The term “Indian” collectively describes all the Indigenous people in Canada who are not Inuit or Métis.
Liars.
 
I still can get it - but it's no longer worth my time or energy + you all have to pay for th taxes I will not
 
9:22 PM
@BenjaminGruenbaum I managed to make it work delegating, but still have a question. How can I delegate an accordion?
 
So semantically, you're Indian, @rlemon?
 
Indian, Aboriginal, and Metis ;)
 
0
Q: How to enqueue script based on post category?

Gk3BizI have scripts for various little tools I have made using some js and html. I want the js to load only on specific single posts in side a specific category. I have tried the following code and it does not work. I removed the "if" statement and the script does run and work so it's a matter of fixi...

 
according to that page
 
@sebastian what do you mean? I never had to delegate a music instrument before
 
9:24 PM
I'm "Indian" but my great great great granddad fucked a Metis and had some babies.
 
Back in the 1850s or so...
 
but we're still of aboriginal descent and I did qualify for status (I had my card.. like physically)
 
@BenjaminGruenbaum lol ^^, jQuery UI accordion, one of the pages contains an accordion, that doesn't work (i guess it has the same problem)
 
I didn't get in the age where you could not have to renew your card - in HS they changed it so (like our health cards) they expire and you have to renew them for a free. If you had an old card they didn't make you change anything
just new applicants
 
!!s|free|fee|
 
9:26 PM
@AmaanCheval I didn't get in the age where you could not have to renew your card - in HS they changed it so (like our health cards) they expire and you have to renew them for a fee. If you had an old card they didn't make you change anything (source)
 
Off to Awesomenauts
 
ok well until I get the images fixed they are being rendered with moustaches from the 80*80 images - I find the 128*128 versions to be best... working on it
 
@sebastian I have little to no experience with jQuery UI accordion, I'm sorry but to be honest if you have a lot of logic you want to happen after the AJAX loaded I'd bind it when the AJAX completes and not using delegates/live events
 
They have to check every few years to make sure you didn't change your DNA?
 
Does anyone understand what is this this.timesTep/100 at line 29 ? gist.github.com/4675433
 
9:28 PM
@rlemon I'm getting 'TypeError: Cannot read property '0' of null'
 
where?
I get no such error in Chrome
 
@dievardump, what is entities[entLen]?
I'm assuming it's some sort of Sprite or something?
 
yes
I just want to understand why he passes the timeStep ( I do not know what this is ) divided by 100
 
@BenjaminGruenbaum thanks for the tips, I'll figure something out.
 
9:30 PM
@rlemon in the console :P , this part seems to be null: $(this).closest('.user-container').attr('class').match(/user-(\d+)/g)
 
the timeStep will be the time between animation updates right?
 
2 mins ago, by rlemon
I get no such error in Chrome
 
He is updating 16 times the game logic while updating only one time the rendering
It's for me completly non productive
 
yeah sounds dumb
 
I do not know...
 
9:31 PM
@rlemon oddly, this works:
$('.avatar img').eq(0).closest('.user-container').attr('class').match(/user-(\d+)/g)[0].split('-')[1];
 
WHAT BROWSER
jesus you would think the hint would be taken
 
And he leaved. Tsss
 
@BenjaminGruenbaum please use code formatting (i.e. backticks around the code, and a single-line message)
 
@rlemon chrome, obviously
 
@BenjaminGruenbaum you are right - issue is my extension is not pulling the right code
appologies
 
9:33 PM
ty
 
but really... next time pick up that I say "works in Chrome where does it fail for you" - don't give me a line number on a two line function
give me a browser dude
ahh
'hidden' users are 'null'
 
Did you know that requestAnimationFrame passes the timestamp since the page is loaded to the function?
 
What the hell is this site for:
http://pro.jsonlint.com/
 
@user973810 In case you have to validate {}
 
Oh it's for JSON. my bad.
 
9:42 PM
wtf now
works in the console... not in a userscript
bite me chrome
function gravatarUrl(a,e,f){
  return"!"==e.charAt(0)?(a=e.substr(1),imgurProfileImage.test(a)&&(e=/\?/.test(a)?"&":"?",a+=e+"g&s="+legalImgurSizeAtLeast(f)),a):"http://mustachify.me/?src=gravatar.com/avatar/"+e+"?d=identicon";
}
$('.avatar img').each(function() {
  var tests = $(this).closest('.user-container').attr('class').match(/user-(\d+)/g);
  if( tests ) {
    var id = tests[0].split('-')[1];
    this.src = gravatarUrl(id,CHAT.user(id).email_hash,128)
  }
});
 
@rlemon: how would you manage a game where you have a scene that is divided by blocks (like a snake).
A character move from one block to another. But while moving to one block to the auther, he does 4 steps (left leg, right leg, left leg, end).
I can not see how to do that... am I dumb?
 
var z=1;document.body.style.zoom=1;setInterval(function(){var e=document.body.style.zoom;if(e>3&&z===1){z=-1}else if(e<1&&z===-1){z=1}document.body.style.zoom=""+(+e+z*.2)},10)
weeeeeeeeeee
 
have some generic animation functions? idk I would need to see dome code
girl, hide!
 
@CBredlow wth is that?
 
9:50 PM
@Neal does it show the job description?
 
@phenomnomnominal That was fun!
 
mustachify.me REALLY hates glasses for some reason
@AnaMargarida I was trying to give you a moustache
carry on.
 
@SomeKittens, haha right?
 
@BadgerGirl you just look so badass with one
ask @copy if you can grow one
home.append(room.detach('#rlemon')); // c yall
 
@dievardump Kind of, I'd say. :P
First, decide how long it takes for the animation to play
 
10:00 PM
333 ms
I have a lot of other things going on. I should say. That has to be in the middle of a game loop
 
Why is this not valid?
var contentSlide = function($class, $direction, $current) {
var class = '.' + $class;
}
 
Okay. Your game runs at what FPS?
 
And I can not create a requestAnimFrame for every player
 
Oh, no, that'd be crazy!
 
requestAnimFrame decide it.
 
10:01 PM
Right
So you're using delta timings
!!> 333/4
 
@AmaanCheval 83.25
 
Every 83ms, you want to switch the frame of your player
But during this, at each call, you also want to move the player by a bit
 
oh HAH, nm
 
Yep.
 
How wide is a block?
 
10:02 PM
But there is other things going on.
I do not see how to integrate that in my "global loop"
 
Other things like?
 
@CBredlow gibberish
 
What I generally do is make multiple functions, and put them all in my loop
 
dummy requisitiondummy requisitiondummy requisitiondummy requisitiondummy requisitiondummy requisitiondummy requisition dummy requisition
dummy requisitiondummy requisitiondummy requisition dummy requisition dummy requisition dummy requisition dummy requisition dummy requisition dummy requisitiondummy requisition

dummy requisitiondummy requisitiondummy requisitiondummy requisition dummy requisition dummy requisition dummy requisition dummy requisition dummy requisition dummy requisition dummy requisition
 
Other player moving at different time. Bomb exploding. Bomb getting created, input from players...
 
10:03 PM
@CBredlow ^
 
@Neal I think that's worthy of the dailywtf
 
@CBredlow lol idk
 
I have a loops.js file which holds only the two loops; logic and drawing
@dievardump You want to use reqAnimFrame only for drawing
Get your logic at a fixed FPS
 
I can not understand that
I tried. I read
 
//loop.js
while (1) ; //Just in case.
 
10:04 PM
I do not see the differencE.
 
I'll see if I can whip up a simple example for you
 
I read I do not know how much article and tutorial about the different loop for games
And the delta timing
And aall that bullshit I can not get in my mind
 
Look, you have plenty of options
If you're using only one loop, which does both, update your character's position, detects hits, etc., and draws everything, you'll need delta timings
 
Hmm, •Very good German and/or English skills I've got english skills, but can't speak a word of german
 
If you have two separate loops, one to draw, and one to update, you might still want to use delta timings, but not as much as you would otherwise
 
10:06 PM
Well they all say to use only one
 
What would be the best way to get a log of the functions that are called?
 
Hold on, I'll try to get you a simple example
 
but to loop far much for the logic than for the rendering
And that I do not understand
This is Loktar game engine loop: gist.github.com/4675433
 
@dievardump I think you should use two. @Incognito told me to do that over a year ago
 
I do not understand why he updates the objects 16 times (at 60fps) when he updates the rendering only one time per frame
 
10:08 PM
Where does he update it 16 times?
 
while (this.accTime > this.timeStep)
			{
 
You know how reqAnimFrame works, right?
 
At 60fps, here, it loop 16 times.
 
@dievardump That's to throttle it, so it isn't updated too fast
 
!!>reverso throttle
 
10:09 PM
@dievardump "SyntaxError: Unexpected identifier"
 
(we need this command)
 
What is the game you want to make?
I'll try to get my example to be similar
 
A bomberman like
 
Oh, I made something similar
Not sure I can show you the code, though :/
 
aha
I do not know why I have so much trouble. It's not the first time I do that
 
10:13 PM
I'll try to explain it before I get to coding
 
But I read articles and nowI'm just lost
 
// kind of what loops.js looks like
var drawLoop = function (){
    // All your separate drawing functions here
    requestAnimationFrame(drawLoop);
};

var FPS = 30;
var logicLoop = function (){
    // All your logic, like updating positions and hit-tests
    setTimeout(logicLoop, 1000 / FPS);
};
That's loops.js
Then you have functions like drawPlayer that you call inside the drawLoop function
Forget delta timings for now
 
Ok
This I get it.
 
The drawPlayer function doesn't do much
Since you have only four frames
And you want them to be distributed over 333ms
 
10:15 PM
We'll keep count of frames
 
I have 4 frames to move a player.
 
frames for your player
Yeah, that's what I meant
 
But there is plenty of players
Moving at any time
 
Yeah, we'll get to those too
 
And bombs
 
10:16 PM
Just separate functions
Actually, you know, what? Let's just make it. Do you have the images?
It'd be easier to understand if you saw it in action
 
Nope
 
For the moment I wanted to draw white, blue, gren, red squares
 
How will the other players be controlled?
 
Socket.io
MMO
 
10:17 PM
Aah
 
It'll be online.
That's why I can not understand how to do all that things.
 
That explains your confusion
Start with making the actual single player game first
This sounds like fun to make
 
oh yeah, online multiplayer stuff... it it wasn't for the lags >_>
 
I want to redo that, because it's badly done.
 
10:19 PM
Don't know what to click because I don't know French -.-
 
just "valider"
Then "Bouboum"
 
You are pseudo_10
 
Let's get an offline version made which works with multiple players first
What I'm thinking is:
Have an array, players with each index holding a player object with info about it's positions and the commands given to it
And the frame it's currently at
 
He is running
 
10:21 PM
heh sorry I was working today couldnt get on here much @dievardump
got your game sorted?
 
not at all
@AmaanCheval that is ok
 
@AmaanCheval Doesn't work. Build it for network from the start, too many things which need to be considered during the design to handle the whole networking :(
 
I should make a multiplayer game
 
My problem is really not understanding how to "link" the game logic loop, and the character movements dicted from an input
 
Yes you should
 
10:23 PM
@IvoWetzel Thank you
 
@dievardump On it
 
That's what I thought.
 
@AmaanCheval Remake Achtung die Kurve
 
@dievardump If you got keyboard controls... well, okay, so you pretty much need to keep track of the client side inputs (treat them as vectors) in a list. send the moves to the server for validation, if it doesn't like one for a reason, you drop it out and thus correct the path the player would have taken on the client. Yes, complicated, but it will reduce the feeled lag of the game. Read up on Unreal Engine Networking or Source Engine Networking for such a system
if you've got something which is click based (RTS thing) it's easier to hide the lag and just do most of the work on the server
 
10:25 PM
Wow wow
I'm not here. I just want to move my character 4steps at a timeÉ.
 
hiding the lag is REALLY important, otherwise the game will just feel extremely unresponsive and not fun at all
 
The "network" thing, I have in in my head
I'm just really bad with animations
Visual things are not for me
@IvoWetzel But thanks, that's what I needed for the server (noted)
 
@dievardump
I haven't taken into consideration other players, really
But it shouldn't be hard to put the controls on each player's object, and then move using that
Control the player using the left arrow key
Didn't bother adding any others
I should probably comment the code
 
Well... I was doing something. Because... I want, when clicking 1 time to left, having my player moving "20px" to the left, divided in 4 times.
That's the problem.
Well don't worry
 
Look at bomberman. It has grids, but the player moves smoothly
He's being animated all along, but the frames for the sprite change only 4 times
But I get what you mean
You want them to not be able to control it so openly
Shouldn't be hard
 
10:40 PM
Yes but if you click one time, it does the wall animation.
You don't need to keep your touch down to have it doing the whole animation
 
You don't want the player to hold the keys down, right?
Yeah
 
It does not stop "between" two cases.
 
Just got what you meant
 
0
Q: Need direction as I migrate towards HTML, JS & CSS - books?

dferraroI have been spoiled too much by ASP.NET WebForms all these years. Now that I need to create a complex application in ASP.NET MVC, I need to really learn HTML, JS & CSS. While previously I could just cut & paste when I needed to use these, now I need to fully grok them since I am much clos...

 
Seriously, if it was not for a MMO, I would just "setTimeout(333/4, update)"
But I can not do that. So i haveto handle it in the player state.
 
10:43 PM
You'll probably want to use a fixed FPS since you want the animation to be tied to the logic
 
Man, I love it when your day turns awesome.
Found a page dedicated to "solving" Schrodinger's equation, then plugged in some constants, used a grapher, and actually fucking saw orbitals. 1 dimensional, but FUCK YEAH.
 
@AmaanCheval Not really. That's the problem.
 
I've got a rough implementation, but it doesn't work just right yet
 
@Amaan do I pronounce your name Ah-men? Mon? Man?
 
Um-aan
 
10:55 PM
OK so close to the last one but not as a sounding for the beginning .. I just read it as "a man" .. but then I remember you are not :p
 
man, I'd wish to take back a few years of masturbation and self-pity and work a little towards being a physical chemist. Sounds awesome. @AmaanCheval, @darkyen, anybody else with a future and a life ahead of them...repent!
 
Hahaha
 
My gf thinks I drink too much... pfft! I hardly consume anything while sleeping! What do you call that?
 
Jealousy?
 
My argument was not well met sadly...
 
10:58 PM
Gluttony?
 
She clearly doesn't drink enough?
 

« first day (837 days earlier)      last day (4111 days later) »