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

6:00 PM
@Neal @Zirak what I meant was, private members in C++,java, etc... can be accessed through reflection. I was wondering if this was possible in javascript
for example, writing a debugger, I would like to be able to watch function scope variables
 
AAAHHHH
THERE'S NO SUCH THING AS PRIVATE MEMBERS IN JS
 
just add him to ignore list
 
m59
I could just check to see if it isn't an element (this fragment), but that's a little cheap :)
 
As the program RUNNING javascript, of course you have full control over scope. As a program INSIDE javascript, you have NOTHING
 
@tereško lol
 
6:01 PM
@Zirak: thats almost correct
 
@Zirak let me start from the beginning with an example, let's say I were to write a debugger in javascript and I would like to get all the variables in a function closure,
 
No
 
let's even say I am RUNNING javascript
 
No examples
 
Then you'd use whatever debugging API your JS engine provides ;)
 
6:01 PM
how would I create the functionality of watches?
 
even if it was removed by most engines, some engines like Rhino I guess, still allow access to .__parent__ dundo variables of function context objects
 
@Loktar my problem is that I have to move my character from one case to another.
But not x -= 20, but x -= 5, and that 4 times...
 
which effectively, gives you access to parent context
 
@BenjaminGruenbaum u wouldnt... a browser would
 
@dievardump you see my link?
 
6:02 PM
but of course not to an actual scope object like activation-object nor environment-records
 
Yes, I read. But I do not want the friction
 
since when the 14-year-olds switched from "i am writing an OS" to "i am writing a debugger" ?
 
It's a valid question because it's possible in some languages
 
@tereško you're a funny guy, how about you answer my question, I was demonstrating a use case for the functionality
 
6:03 PM
It's like: When I click right, my character must go from 0 to 20 in 1 seconde but with a velocity of 5
So do 4 steps in 1 second
 
if I would like to select a container within an element wouldn't this work properly?
var $container = $('.background .wrap')
var $this = $($container, '.active');
 
@tereško I thought they went to "I am writing a game engine"
 
@BenjaminGruenbaum but not in Javascript
 
everybody is writing a game engine @ShotgunNinja
 
@ZachShallbetter: I believe its vice versa, $(<selector>, <context>)
 
6:04 PM
since canvas really hit mainstream around 2010-2011
 
@copy thank you, all I wanted was to verify it was not possible in javascript, unlike in other languages where it is possible. I don't know why @Zirak got all angry...
 
but you should use $($container).find('.active') nonetheless
 
@dievardump youd just change its speed then
 
wazzap all
 
and remove friction
 
6:05 PM
@BenjaminGruenbaum: you can access parent scopes in some JS engines, as I mentioned
 
Why would I want to use find. Wouldn't that force DOM traversal instead of specifying the exact element I'm selecting?
 
But I do not understand how I can manage the timing with the velocity
 
@jAndy thanks, I'll look into parent
 
@ShotgunNinja naah .. most of them are able to adequately judge their design/computer-graphics skills .. to have any point point in writing game engine, you would also thing about putting a game on top of it .. and that requires art assets
 
@ZachShallbetter: just because jQuery will do it for you anyway, it'll call .find()
 
6:06 PM
ahh sorry ok you need a deltatiming tutorial :P
 
and its way more readable
@BenjaminGruenbaum: __parent__, property of objects
 
@Andrew nuthin
 
Well I think I understand but I do not know if it's the best way to do it
 
Delta timing is generally the best way
 
@jAndy thank you, this is exactly what I was looking for :)
 
6:07 PM
That way your game doesn't rely on the FPS you get on different devices
 
Does anyone know how to bring up send to sms prompt in jQuery Mobile?
<li><a data-transition="slide" id="sms" href="sms:?body=sample message"></a></li>
When I click on the link the body is not populated on iPhone..
 
@tereško This is exactly my issue, then. I'm spending a ton of time learning about 3D mathematics, OpenGL, AI, memory management, and whatnot, but I have no art assets.
 
It may be a pain to implement in larger games, though
 
@Neal true that!
 
however, even if there are some engines available which still offer this property, it can only serve educational purpose, because all "big names" removed this quite a while ago, for security reasons
 
reasons rlemon has not made a game: 1) Fuck Graphics.
 
it was a horrible security leak, for a long long time
 
yeah graphics suck.
I get so disheartened by them actually :?
im making a game for work that looks like shit
and I feel bad
 
you should
 
@rlemon To be fair, graphics isn't that hard for me... I'm a 3D thinker, but I just need some way to get started.
 
6:08 PM
@rlemon!! wazza
 
screw 3d even moar!
 
I have so many "great ideas" and the logic I know I can implement as well as the function - making anything look like I didn't draw it in paint.... neva gonna happen
 
god damned.. 3d is so hard
make a model.. rig it.. animate it.. skin it!
I have a lot of respect for guys good at all of the above
 
@Loktar love ya
 
Asset creation in 3D sucks, but the math and coding behind it is really cool.
 
6:09 PM
@Loktar: that might be the reason why this actually is an independet job :p
 
@jAndy yeah definitely
 
(3d) artists and designers
genius folks !
 
ohh 3d... how I loath thee. Took me 6 months to make a fucking penguin in Maya
 
lol
 
@jAndy Nah, it's just learning the tools that everyone sucks at, because we're all impatient programmers.
 
6:10 PM
he did "waddle" and he looked real.
but my god is that learning curve ever steep
 
@jAndy parent was removed :/ thanks anyway,
 
yeah very steep learning curve
I learned 3ds max
 
@BenjaminGruenbaum: Rhino too ?
 
Once you get someone who can make 3D assets properly, and there ARE people like that out there, then doing the math behind it, while hard, is still rather cool.
 
6:11 PM
Math... Math I can do - conceptualizing a 3D model.... nope.
not even once.
 
@jAndy didn't check Rhino yet, it just seemed interesting to see if it was possible to do... it's probably hell to garbage collecet this sort of thing. Link looks nice
 
@Loktar does it work with 22 simultaneus players on the scene who can move whenever they want?
 
@dievardump it should
deltatiming you mean right?
 
yes
 
^ my bestest 3d thing
that would have been if there werent some weird texture issues
was for a game I was making years ago..
 
6:14 PM
I would do anything useful if I'd ever have the motivation to render some 3d shit
 
like in 2005 or so
 
like .. female breasts or so
 
 
haha
 
lol I just got that cookie ^_^
 
6:14 PM
!!/info
 
stupid focus on iphone
 
@Zirak I awoke on Tue, 29 Jan 2013 21:11:16 GMT (that's about 21 hours ago), got invoked 53 times, learned 60 commands
 
@Neal really?
I figured it was a random imgur link, thats badass
 
@Loktar really what? no its really me. u want one with my face?
 
no I believe you lol was just surprised
 
6:15 PM
bah, wth...
!!/refresh
 
I never get cool fortunes
 
!!/listcommands
 
@Zirak 420, 5318008, help, listen, eval, live, die, refresh, forget, ban, unban, info, jquery, choose, user, listcommands, purgecommands, define, norris, urban, parse, tell, mdn, undo, nudge, convert, timer, learn, bewbs, i_am_a_robot, aliens, ym, format, happynewyear, tell2, 3point14, camel, ihatelanadelrey, fa, vk1, vk2, rlhd, stab, popcap, guesswhat, whosthere, knock, knockknock, say, heybuddy (page 0/1)
 
!!/norris
 
@ShotgunNinja When Chuck Norris has sex with a man, it won't be because he is gay. It will be because he has run out of women.
 
6:16 PM
@rlemon, @AmaanCheval Done. Was there anything else, besides the rigged console.logs?
 
!!/guesswhat
 
@jAndy you just lost THE GAME!
 
@Loktar one sec. taking a new pic. for proof's sake ^_^
 
:(
 
@Neal haha I believe you man :P
 
6:17 PM
@Loktar one sec. emailing to myself cuz idk how to use iphone chat image uploader... (if it exists)
 
@Neal, nobody wants to see your face, we'd have nightmares again.
 
rrrg why take so long to email.... I have bad service
 
if you created such awesome.. awesomenessss.. a cool 3d model with some editor like maya or cinemax4d and stuff... how do you actually animate it ? I mean.. individual parts of it, or.. does that require that you have different models all over the place ?
I have so no clue about it :p
 
@jAndy you give it 'axis' to pivot on then you give it motions to follow
then you animate those motions accordingly
iirc
 
@jAndy you have to rig it..
 
6:18 PM
been a long time
 
meaning give it a skeleton
 
m59
@Zirak elem.nodeName === '#document-fragment'
 
and then when you move the skeleton the model follows it
 
 
@rlemon: are those axes specified and implemented + supported by engines like openGL for instance ?
 
6:19 PM
@m59 4 + 2 === 6
 
Happy @Loktar ? :-P
 
basically each bone and joint are attached to vertices
@Neal lol yeah
 
or is that actually your job in writting you custom 3d engine :P ?
who wouldn't do that every day.. just for fun
 
@jAndy no clue man - this was in like 2004ish and after taking so long with the first model I gave up - 3D is not for me
 
@Loktar but how do you use deltatiming with requestAnimationFrame?
 
6:19 PM
and now that smiley needs a winkying :-P @rlemon
 
It's different?
 
m59
I just did something pretty boss, that's all there is to that :)
And not that code snippet above lol.
 
each of those bones correspond to the models faces/vertices, etc
 
@rlemon: me neither, but I'd love to do more with it. For now I'm ok with the options that css3d offer, but even there you'll face ugly matrices and 3d-math sooner or later grrrr
 
so when you move a bone/joint the portion of that model that is directly related (or indirectly via weights ect) goes with you
 
6:21 PM
so I'll have to do learn the math !
 
@dievardump I do it in my game engine. Its so ugly to look at, let me see if I can find the portion and just give you that to modify
 
no no
 
@Loktar: thats unrealistic !! where are all the dicks models !
 
it's theorical
 
6:22 PM
Like... I do not understand
 
just for kicks
 
!!/refresh
@rlemon Done the log call thingy
 
@jAndy rotating in 3d is just composing two matrices that rotate in 2d, which in turn is just transforming lines according to sine and cosine, I'm sure you'll have no problem picking it up
 
@Loktar for my penguin none of the bones looked remotely close to where they would really be - to get the 'fat' and skin to move realistically I had to do so many 'fake' pivots and shit
 
that moment, when you open a pull request with a new feature and see that someone else already added it in the night before >_>
 
6:24 PM
@BenjaminGruenbaum: well, the matrices math can be quite challenging, especially if it gets to skewing, translating and stuff on all axes. Well, at least for me at this time, but I really want to dig deeper into the topic
 
@rlemon yeah you can add lots of extra bones to get the extra movement
 
was enough to tell me it wasn't the industry for me :P
 
listen my words.. 3D Sites / apps in combination with WebRTC and gesture recognition.. will be awesomeastic !
 
also have to mess with the weights of the bones etc. to determine what portions they effect and by how much
 
and it will be there, very soon :-P
 
6:25 PM
 
@Loktar did you use Maya ?
 
3dsmax
 
yea lots of people used that - Maya was expensive
 
so is 3dsmax :P
i used the uhh demo
since 8th grade
I just happen to get each new version of the "demo" every year.. :P
@dievardump the main thing I had to do was limit the queing for reqanimationframe
 
Maya 6? (iirc) I have on a DVD somewhere - company I used to work for had a legit copy. I "borrowed it" indefinitely
 
6:27 PM
haha nice
we have 3dsmax here
Im the only one who knows how to even remotely use it.. but we have no need for it
 
when I was visiting the Crytek folks, a couple of 3d artist were working on models for crysis 3,.. dude, that looked so unbelievable
geniuses !
 
they spent 1200 just because they had to spend some money :?
 
@Zirak What'd you do?
 
we had no need for it either - one of the content designers thought it would be cool to dick around with
 
theres some other cool programs for messing around and character creation like zbrush
 
6:27 PM
12 mins ago, by SO ChatBot
@Zirak 420, 5318008, help, listen, eval, live, die, refresh, forget, ban, unban, info, jquery, choose, user, listcommands, purgecommands, define, norris, urban, parse, tell, mdn, undo, nudge, convert, timer, learn, bewbs, i_am_a_robot, aliens, ym, format, happynewyear, tell2, 3point14, camel, ihatelanadelrey, fa, vk1, vk2, rlhd, stab, popcap, guesswhat, whosthere, knock, knockknock, say, heybuddy (page 0/1)
 
zbrush is like taking a lob of clay and molding it
its pretty fun to mess with
 
!!/ihatelanadelrey
wtf?
 
@Zirak :-P
 
@rlemon I Fucking Hate Lana Del Rey
 
6:28 PM
@Zirak Is there a way to see the rest of the pages?
 
!!/tell AmaanCheval listcommands 1
 
@AmaanCheval echo, codesnotwork, kungfu, lick, insult, ultimateinsult, hang, stat, todo, google, spec, get, beautify (page 1/1)
 
@Loktar Yeah I think I do not see the concept.
I miss basic knowledges
 
I'll probably remove the page marker on the last page
 
wow even in that loop I have an implicit global. facepalm I need to just throw my code away and start fresh.
oh wait no I dont
the spacing is just jacked.
 
6:30 PM
!!/listcommands 3
 
@rlemon (page 3/1)
 
@jAndy @jAndy Did you hear back from them yet concerning you application? :)
 
@Zirak lol
 
@jAndy It's in open beta now, isn't it?
!!/help listcommands
 
@AmaanCheval listcommands: Lists commands. /listcommands [page=0]
 
6:30 PM
That was a face that rlemon decided to winkify... not my regular everyday face @Zirak
 
Lies
besides I improved it
 
@rlemon I know my everyday face pretty well
 
so do i ;) ;)
 
@AmaanCheval: yes, they are short before release
 
!!/listcommands .5
 
6:32 PM
@jAndy How'd your interview go?
 
@rlemon convert, timer, learn, bewbs, i_am_a_robot, aliens, ym, format, happynewyear, tell2, 3point14, camel, ihatelanadelrey, fa, vk1, vk2, rlhd, stab, popcap, guesswhat, whosthere, knock, knockknock, say, heybuddy, echo, codesnotwork, kungfu, lick, insult, ultimateinsult, hang, stat, todo, google, spec, get, beautify, dumbsearch (page 0.5/1)
 
:-P
I stare into your sooooooul
 
@AmaanCheval @IvoWetzel: "the team decided to proceed with another candidate, which matches our requirements at crytek more closely" :/ Dudes, I've spent a whole day there, talking to pretty much everybody, had lots of fun and all technical interviews obviously went really great
 
I was literaly shocked when I got that mail yesterday, no clue what went wrong
 
6:34 PM
@jAndy Maybe the other guy had a gun.
 
maybe moneywise decision, can't think of anything different
all went just too good
 
Ok it's not what I was looking for @Loktar, even if I will use this.
 
Love it
 
@rlemon That's great!
 
@jAndy It's all good, though. You had the balls to get a series of interviews at Crytek... They'll keep a copy of your interview proceedings, right?
 
6:35 PM
 
@ShotgunNinja: yea they asked me if they can do that for "further postions".. but pfftt that pretty much seems like "sorry bro, take care"
 
my god this is awesome.
 
@rlemon Oooh, do mine!
 
the postion actually was called "UI engineer", maybe I talked too much abour ecmascript :p ?
 
rrrg moustache.me is parked @rlemon
 
6:37 PM
@jAndy Maybe.
 
@jAndy If you're still looking for something in the Area, let me know ;)
 
@IvoWetzel: actually I love my current position, but when crytek asked for a team interview over a whole day, that was certainly an exception
 
@jAndy I see then :)
 
50cent domains! register.com/promo/… wth... ive been getting them for 2.50...
 
BASTARDS
 
6:38 PM
Thanks Loktar
 
THEY SHOULD BURN IN HELL
:p
 
Hmmmm "lemoneme.com is available!" @rlemon
rolls of the toungue better :-P
 
so
nonealnojuststhap.com is free @Neal
 
@rlemon yea, i cannot read that one
 
OMG it works!!!!!!
 
6:40 PM
3 brothers are CEO's of crytek.. and down there in the basement garage.. 3 brandnew Ferraris :p, white a notion
 
$('.avatar img').each(function() {
  this.src = "http://mustachify.me/?src=" + this.src.replace(/s\=\d+/, "s=128");
});
ahh
stupid chat.
rebuilds images when you move position in the sidebar
you all haz moustaches!
 
lol
mine even has 2!
 
what is prototype in javascript?
 
so does m59
I was unsure that it would find two faces
 
prototype.
 
6:43 PM
yes
 
I especially like @AmaanCheval mustache :p
 
I love my moustache. :)
 
he's 16 - it's just being realistic
 
lol
 
6:43 PM
prototype in javascript is like Adam for mankind
 
@BadgerGirl yours is badass
 
sorry can you please elaborate
 
@rlemon yeah, it needs some polishing
 
6:44 PM
@jAndy What's like Eve then?
 
__proto__
 
@Oleg: I guess.. eval
-a+i
 
eval is the snake
 
When I first got my Wacom tablet, I sketched out that picture of myself, and it's astonished me by resolving in nearly every facial recognition system I try it with.
 
@jAndy Thank you for the team name, jAndy
 
6:45 PM
@rlemon: are you kidding.. you're saying evil in the world is more about the snake than women ???!
 
women are not evil - they just do evil things when suggested from others.
Eve was no different
 
@CBredlow: team name ? wut ?
 
guys i came here first time , so please can any body help me
 
user image
2
@m59 best one yet
 
m59
lol
 
6:46 PM
@rlemon lol
 
@rlemon: yea probably.. I guess its because Adam had no sudo nor !important back then
 
@rlemon ...she's looking into the caverns of my being
Exploring every nook and cranny of my substance
 
otherwise he could have gone like sudo Eve don't eat apple !important
 
And she whispers... cease
 
6:47 PM
@jAndy Working on a group project and they saw that picture
 
go!
 
@CBredlow: rage train ?
 
@jAndy "all aboard" duuuh
 
yes
team rage train
 
I'll drive that train directly into the crytek HQ
get tickets now !
 
6:49 PM
user image
3
boo, it's skewed
 
@Loktar but with your thing it can not work...
 
@dievardump whys that?
 
Because it suppose that all the things move at the same moment
 
mustache.style.transform = 'skew(15deg, 0deg);'
 
6:50 PM
always refering to dt
 
should still work fine
 
I don't see how
All my player have movements independant of the time, the framerate or anything else
 
^ runs at 20fps
using delta timing
^ runs full speed also on delta timing
 
I've yet to see a game that didn't run on delta timing, post-floating-point-capabilities.
 
the point of the first link was to show that you can change the frame rate to 5 fps, but the objects will be in the same spots regardless if its 1fps or 200fps
 
6:53 PM
I need a code example I can not understand the theory
I never could
(I argue with myself there, sorry)
 
@Loktar: ARE YOU KIDDING ABOUT THE FIRST BOSS
ROFL
its like TANK OF THE TANKS
 
@jAndy haha yeah thats old code
I removed the boss in the recent vs
I really should finish that stupid game
 
its actually quite good and fine
just drop HP like 1000%
 
@dievardump Essentially, it's the same as dividing the velocity by the timestep, and applying the delta movement due to that per-frame instead.
 
yeah teh 20fps one runs like poop
run the 2nd link
its smooth
but it just goes forever the same 2 enemies over and over
I was working on implementing actual levels
plus I have a fancy engine particle effect
 
6:54 PM
@ShotgunNinja For me what you said is like "i went to see the parking and ask the little cat if he could jump on the banana stored in the chair"
 
@rlemon I'm conflicted: Should it treat that like an error, or round up to 1?
 
@dievardump Oh. Well, do you know how speed works?
 
error if you ask me
 
Maybe it should just show a portion of the page
 
50% of the first list?
 
6:55 PM
And you changed your avatar just to confuse me when I tell you i do not understand a word you saying. THAT'S MEAN.
 
Doesn't make sense, yeah...I'll error
 
@dievardump I changed it a few minutes ago.
 
What about negative numbers?
 
throw new old Zirak();
 
@dievardump Imagine you have an object moving at 20 units per second. Now, how do you make them move 20 units away over the course of a second?
 
6:57 PM
$('.avatar img').each(function() {
  var id = this.src.split('/')[4];
  id && (id = id.split('?')[0], this.src = "http://mustachify.me/?src=gravatar.com/avatar/"; + id + "/?s=128");
});
 
0
Q: Usecases for javascript's void function aside from undefined

NealAside from the obvious preventing of links being clicked (with javascript:void(0);) and for the definition of undefined in many javascript precompiled languages like coffeescript (where undefined becomes void 0) --> What else can the void function be used for? Related: What does "javascri...

 
it depends of the framerate
 
ok so this works. Now I just need to make it persistent
 
Well, you add fractions of that 20 units of movement to their position once every frame until that second is done.
 
^ yeah basically
 
6:57 PM
I want 4 steps un 1/3 seconds.
I do not want "blablabla"
 
so thats 12 per second
 
That's my problem.
 
1000ms/12
how many units is one step?
 
Well, the problem is, frames take different amounts of time depending on processing.
 
But I do not want the rendering like that. I have a scene and everything. And all the player can move when they want
 
6:59 PM
So, instead of assuming, you measure the frame processing time, and scale movement by the measured time rather than an assumed time.
 
Ok I need to learn english before asking you help
 
yes!
 
Probably.
What is your native language?
 
I understand every word separately. But when you put them together it's like you were screaming at me.
 
Fakeglais
 

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