« first day (926 days earlier)      last day (4022 days later) » 

12:01 AM
nah, I know she's dumb. I was just elaborating on it
for effect
 
mmk
 
What's the difference between EcmaScript and CoffeeScript ?
 
@BenjaminGruenbaum the log refers to the character object
 
12:17 AM
"Cause I wanted something unique and that's how it sounds x-zavier * shorty *"
 
12:28 AM
@copy is 'The Guy' a .gif or a sprite sheet or what?
 
Not at the moment
 
So what is he then :)?
 
Single small image files
 
Could you link me where you do your animations?
can't find it in game engine
There I did half the work :)
 
What kind of animations?
Do you mean moving objects?
 
12:36 AM
Making the guy jiggle at idle, or when you press right or left he has that 'animation'
 
But I have to admit that it's not perfect
 
that game is easy
i just clocked it
 
I don't use animations a lot
 
next...
 
@skopp you ... won ... my ... game?
 
12:41 AM
@copy no. It's FREAKIN madness!
shiiit
like nightmare mode in doom
 
Oh yes. Why did I worry
 
I don't know which is worse. that or Bastet
:)
 
Bastet?
 
yeah. bastard tetris
 
Found it
 
12:44 AM
what language flavor?
found a js version?
 
@copy I wish I understood half of your game engine, I think I'm gonna stop playing with these sprite sheets till I have a better understanding of JS, I'm driving myself mental here
 
and i thought bastet was bad
:[
 
Thanks
But I always get the same piece?
 
haha
yeah, i think it's a bit of a joke
i wonder if you can even score
i was #1 on fightcode about 2 months ago
i have the replay somewhere..lets see
 
12:51 AM
I see
But my game is beatable
I think
 
just watch ...
my bot is like .. meh
and then last minute ... BLAM
but that's not the winning fight
 
@skopp I hate you for making me hate my favorite game. :(
 
i just found it funny
@BadgerGirl when? now?
 
2 vs 1?
 
@skopp Yeah, tetris.
 
12:56 AM
And that was when I killed the boss
gotta get back in the game. alas, work takes precedence
@BadgerGirl but you replied to my post about fightcode. bastet? or normal tetris
 
@skopp Tetris is my favorite game and bastet made me hate it.
 
i know the feeling
have fun
i cant remember if sound is on and if mutable
so watch out
ok, it's not bad. just popping sounds. no cheesy bgm
 
The high scores are not loading?
 
there's no database
it's an html5 clone
which i shall work on further someday
 
Oh, alright. I just wanted to see what I had to beat.
 
1:04 AM
after i do my other 500+ intended projects
 
user652649
evening
 
Time sucks
 
user652649
someone knows the best possible working fallback for <input list=""> without jquery or any framework dependency?
 
Oh time how i hate your guts
nothing is perfect wes
but what about html5 syntax?
isnt there an html input thingy for that
 
user652649
* edited
 
1:06 AM
@BadgerGirl what's your tetris 'style'
 
user652649
indeed there is, but i'm looking for a fallback because input list="" + <datalist> doesn't work on nearly any browser
 
as in, how do you play
@Wes like which browsers not working
 
user652649
@skopp android webkit, safari, ie8, opera
 
mobile browsers.
 
@skopp Piling everything up except for 3 columns, then filling them up.
 
user652649
1:08 AM
especially for mobile autocomplete is useful... but it doesn't work, yet
 
thats a tough one
 
But I only do that when playing against someone else.
 
@BadgerGirl me too!
I leave gaps here and there also
so when I hit the upper tetrises, they get filled by dropping blocks
well, in some versions
is that in the original?
 
I play it on facebook.
 
where a block from a piece will fall into a gap
i hate going on facebook
because ill probably end up playing tetris
and g+ i swear is like a damn casino
where they serve free drugs
i once got immersed playing crime city or some crap
on g+
and the next thing, it was freakin' sunrise
i vowed never to go back to google+ games
unless its an emergency
don't do it.
stay away from g+.
ITS EVAL
 
1:17 AM
Okay
 
are you guys decent at api work?
wait, before i go on... sign up: coderbits.com/account/…
thats mine
 
The magic words which'll open many doors are "Push" and "Pull"
 
@SOChatBot I know another one
"POLICE! OPEN THE @#% DOOR"
 
1:35 AM
Hi
I got an answer to my question, and I'm using this code: $('li:contains('Eco Adventure Camp')').addClass('yellow');
but it's not adding the class
 
> Johann has added copy to the list of this room's owners.
 
Cool!
Maybe you can help me :P
 
I don't do JS anymore. I do perl now
 
Hopefully you didn't wipe all of the knowledge from your brain
 
What knowledge?
But my perl knowledge tells me that you're using quotes wrong
 
1:48 AM
How do you make a plumber cry ? And why ?
 
2:01 AM
Copy are you serious about the whole perl thing :/
Ian do you HAVE to use jQuery?
 
I am a traffic light, and Alan Ginzberg kidnapped my laundry in 1927
 
Best thing I've read all day
 
@IanCarroll do you know perl?
 
I'm gonna rewrite my 'game' from scratch
Better handling and try to avoid timeouts if I can figure out how
@copy just double checking, I didn't see you using timeouts for your animation, are they somewhere else, or you just did not
 
You can use timeouts, or requestAnimationFrame only
In both cases, you have to measure time
 
2:11 AM
So one or the other, and that's it, gotcha
 
You always use requestAnimationFrame for drawing, for logic it's either or
 
@rlemon you figure it out? If not Ill be on tomorrow take a look at this codepen.io/loktar00/full/JEdqD should help.
 
...
 
Any programer should learn regular expressions as it brings easy reputation on Stack Overflow
3
 
Does anyone know about writing async module loaders?
 
2:23 AM
I just typed in 3 magical letters. V I M, and I feel like a god..
 
Some smileys are valid vim commands. E.g. :'(
 
@FizzyTea you on Mac OS X?
 
No, why?
 
I need a default bash profile, I broke mine now my terminal crashes when I open it
 
@copy I don't know how to ceil shorter than ceil
 
2:28 AM
@XCritics Your system ought to have a template somewhere.
 
I'm gonna try deleting it, I don't think that works though
yay it worked
I was so scared
 
@XCritics if you have some time i need some help/advice with the right "box" the jumping down when resizing jsfiddle.net/yTSf6/3
 
@Shmiddty Okay, so you have floor
Now you add 1 before flooring
 
define jump down
 
Works for every case except for one
 
2:31 AM
it positions itself under the leftbox.
 
Tbh, you should just be using CSS to make your layout, not so much JS
 
@XCritics Hopefully you understand what im trying to describe
 
@XCritics Haha
hilarious never seen that one
@XCritics That made it worse =) Thanks though
 
lol well I wasn't quite sure what you meant, but it drops down instead of overflowing
 
2:46 AM
@XCritics ok, i didnt want it to drop down that was the problem.
Thanks anyway
 
Anyone fancy a code review? It's short! gist.github.com/adscriven/5428104#file-module-js
 
jQuery is a better language than javascript
 
Terminal 80% transparency, read chat while I code???? Too bad this room is currently dead
 
3:05 AM
Shit... I discovered a fundamental flaw in javascript...
 
That's why everyone should use CoffeeScript.
 
@FizzyTea, yeah because the coffeescript compiler is SOOOO slow :)
 
Shh!
 
3:29 AM
 
3:54 AM
Anyone want to hear a fun story?
 
Of course!
 
My college is a dry campus (no booze). So, we didn't exactly follow that rule for our poker night. After sneaking in some Guinness (we're classy when we break the rules), poker night ensued. After a time, we hit a horrid streak of bad hands, and decided to watch Archer. The roommate of the guy who's room it was decides to fry up some potatoes.
He then gets distracted. We smell something funny, and turn around to a full-on grease fire. Woo! Meanwhile, there's bottles of Guinness around the apartment. Oops.
45 frantic seconds later, the alarm goes off. In those 45 seconds, we managed to:
- Get the burning oil outside
- Fan away the smoke
- Hide all the booze
Skills.
 
 
4:10 AM
You should comment all your code
@ZamirPeña 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.
 
0
Q: Andriod ShoutCast Internet Radio FilenotFoundException

user1929491I developed Shoutcastinternet Radio Streaming in Andriod and i'm able to stream and play Successfully. But the problem is: when i execute my application,I'm able to stream and play Continuously for someextend(20min,halfanhour etc...), after that the stream is getting stoped(I'm not ableto play ...

 
4:29 AM
@SomeKittens hahahaa nice
 
@SomeKittens can we stay with you when we visit NY?
 
4:45 AM
Any idea why my 'jump' isn't working as intended? gist.github.com/Gacnt/…
and im sure the math is probably wrong
 
@user1929491 if that is shoutcast v1
if its a v2 use /sid/;stream.mp3
 
Any idea why my 'jump' isn't working as intended? gist.github.com/Gacnt/… @Darkyen
 
where is the gist ?
sorry pal am getting ready for office see you later
 
Alrighty, have fun
 
Sin of 5/200 PI = Sin of 1/40 PI
Math.sin( (1/40) * Math.PI );
0.07845909572784494
i really doubt that's gonna ever work lol
 
4:50 AM
:D
 
at max u add it by 7 pix
 
I'm just using what I found on google, nothing seems to work
 
do u mean cos ?? just wondering
 
'Sine wave'
is what I came across
 
use ur brain young padawn
 
4:51 AM
normally, one jumps along a parabola
 
It's so exhausted from the past 2 days of playing with canvas :P
 
[gravity]*t^2 + [initial_speed]*t + [ground_y]
 
aaaand im lost
 
T is time
Gravity is a negative acceleration
And just plug in the numbers.
 
time as in how long the jump should be total, or to the peak
where gravity takes over
 
4:54 AM
No, time as in it changes
 
time as in how long you are in the air
 
As in at time 0, t = 0, after a second, t = 1
 
-800*200^2+500*200+player.y < Look good?
 
ground_y is your position when you're not jumping
 
@Darkyen didn't get you?
 
4:55 AM
and gravity should be negative because it accelerates downwards
you end the jump when the sum of first two terms becomes negative.
 
@JanDvorak could you give me reasonable numbers, ive tried small, and big for a canvas of 500w 500h, the thing just shoots off the page each time
 
start with zero gravity and tune the initial speed
are you assigning this back to player.y?
 
Reasonable time? And by assigning back you mean?
 
player.y shouldn't change if you're reading it
 
oh
maybe thats the problem, cause its doing player.y = the formula
 
5:03 AM
also, 200 seconds after the jump, the player should be way underground
 
for some reason its jumping downwards, instead of upwards
 
if you want to assign back, use player.y += player.vy; player.vy += gravity; if(...
 
@user1929491 the endpoint for shoutcast
 
if it's jumping downwards, try reversing the signs
 
if what x.x
man im lost, math be hard
 
5:05 AM
not math; that if is just to stop the jump
this is basic newton's laws
acceleration = d(velocity)
velocity = d(position)
gravity causes constant acceleration (approximately)
if you measure the time in ticks, you measure velocity as displacement of position per tick, and add velocity to position on each tick
 
gist.github.com/Gacnt/… this is all I could do
codepen.io/loktar00/pen/JEdqD I don't see any math formula for jumping, yet it can jump, what gives, where is it
 
on line 128 he applies velocity
on line 99 he applies gravity
 
Where exactly does it show to come back down? Or that he's even in the air?
 
on line 77 he responds to the up key
by setting the vertical velocity unless the player is already mid-air
at lines 106-121 he does collision checking and on line 123 he resets the velocity if the player is standing
and that's all
the code of the collision check itself starts at 137, and also fixes the player's position on collision
it's the same loop as I have suggested: apply velocity, apply gravity, apply collision checking, render
that's all nature does
you can add other forces beside gravity (air drag, fans...) later.
apply velocity: add velocity (pixels per tick) to position (pixels)
apply gravity: add gravity (pixels per tick squared) to velocity (pixels per tick)
apply collision checking: if the player collides with the terrain, set his velocity to zero and displace him out of the obstacle.
the game chose a different approach of having the ceiling collision fully elastic. Ground collisions should be fully inelastic, though.
 
5:39 AM
"player.velY = -player.speed * 2;" = jump code.
 
6:02 AM
The worst problem i face, with bookmarks .... all the naughty ones show in the quick bookmark bar... the actually useful once appear way below in a middle of nowhere
 
6:27 AM
Hi @Darkyen
I am facing from one issue
 
hello
i pre-assume that when ypu png me :D
@FlorianMargaine o/ good morning my brother :D
 
0
Q: KO Array binding not applying?

Snake EaterHi I seem to be having a problem with KO array bindings not applying.. Here is my code: var movements_array = []; var viewModel = { movements: ko.observableArray(movements_array), }; $(document).ready(function(){ ko.applyBindings(viewModel); }); function get_alteration_movement(){ ...

 
Hi I am trying to create a regex
which stops matching until it sees '*'
/.* \\*/
any help?
'*' or any particular character
 
6:59 AM
Hello my manga loving friend [teresko]
 
@Mr_Green Do you mean /[^*]*/ ?
 
actually, I am trying to match a text which starts with "then" and ends with "and"
the matched text should not include "and" in it
/then.*[^and]/
I tried the above
@FizzyTea
 
Well that's not the same as "'*' or any particular character".
 
hmm
I thought so
any work around ?
 
/((?!and).)*/
Well, with a 'then' in front.
/then((?!and).)*/
 
7:11 AM
0
Q: Is it a good Idea to upload Image after encoding it to base64 to enable fileUpload via Ajax?

Subin JacobI want to upload different files via Ajax post to my asp WebService. Is it a good idea to convert the file into base64 encoding and send it to Asp and convert it back again to byte array?

 
@FizzyTea it is working fine now. Thanks
 
No probs.
 
but not working if the first word is also "and"
@FizzyTea working fine
my mistake
 
8:26 AM
o/
 
hm, lisp looks so.... weird to me
 
it's just polish notation with tons of parentheses
 
@JanDvorak Which isn't weird at all
 
well, it is
I don't really mind polish notation
a language being purely stack-based is more of a challenge for me.
 
8:37 AM
Which reminds me of a quote for some strange reason:
 
dudes i got a huge trouble with mobiles, can someone tell me how can i stick an element to the bottom of the window on mobile?
 
“The fact that we live at the bottom of a deep gravity well, on the surface of a gas covered planet going around a nuclear fireball 90 million miles away and think this to be normal is obviously some indication of how skewed our perspective tends to be.” - Douglas Adams
 
i can't find a real solution , and i would like to avoid including huge mobile js libraries in my site :/
 
@okok what device/os/browser?
 
@GNi33 i'm testing on android galaxy
but i think iOS brokes too
 
8:38 AM
@okok try position:fixed; bottom:0
 
i just want to make the element fixed to the bottom of the window
@JanDvorak already using, that is the problem :(
on desktop everythings ok
 
@okok
 
@arunkjn yep
 
@okok use stcky footer ryanfait.com/sticky-footer
 
the galaxy - tab?
 
8:38 AM
nope galaxy mobile
 
the css works on all devices
 
@arunkjn but i need a huge site refactoring :/
cause i have not that html scheme
and i'll spend 1 week for re-factoring :/
hoping then it will work for sure
lol
 
be careful with negative margins on mobile-devices
 
i also tryed recalculating the document height and add dinamic css to the element on scroll
 
@JanDvorak I don't mind the parentheses, the editor takes care of them for me
 
8:40 AM
i have this for example:
 $(window).on('scrollstart',function(){

 $('.header-fix').css('top',($(document).height()-$('.navbar-fixed-top').height()-$('.header-fix').height())+'px').hide();

  });
  $(window).on('scrollstop',function(){
    $('.header-fix').css('top',($(document).height()-$('.navbar-fixed-top').height()-$('.header-fix').height())+'px').show();
  });
but it really doesn't fixs
 
@arunkjn it doesn't. position:fixed is pretty buggy on mobile
 
yep true
 
Opera mobile, for one, miscalculates the position, and doesn't update it at all during scrolling
 
when i scroll the element on mobile seems position:absolute, cause it remains sticked to the page and not to the window
 
then give the element an absolute position and position it according to height of viewport. simple for you i guess
 
8:42 AM
@arunkjn how do i detect the viewport height? cause window or document height seems sucking on mobile
 
which browser are u using?
 
android default
 
4.1?
 
@JanDvorak this "sticky footer" - technique doesn't use position: fixed
 
ehm dunno :))
it's a simple samsung galaxy the one you find with the 3x2 offer at supermarket
 
8:45 AM
@GNi33 yes this is the css ryanfait.com/sticky-footer/layout.css
 
now i'm trying recalculating position with absolute on scroll
 
@arunkjn "Settings" -> "About phone"
 
Hi all I need help...
 
woops, wrong person
sorries
 
@Pratik then ask
 
8:48 AM
@okok you can try jquery mobile. It gives more consistent results across devices. It initializes document height on page load. THough i dont remember the syntax
 
@arunkjn it's a huge js file :( thanks for advice
the rest of the site it's ok on mobile i'm on bootstrap
problem is just to make this damn div sticked to the bottom of the window
:P
then i'm ready ;)
 
by far, the sticky footer approach is the cleanest i have encountered. You just need to put your head in a little. If you already have a div which encloses everything, except the footer that you need to 'stick' you are in game and need no refactor of your code
 
I am working on already developed project. My task is to change title of the table dynamically. So I can do that for sure, But when user right clicks on the table, The context menu shows up. once user perform any operation from context menu eg. ascending table headers again reset. Which is better way to again set the new titles to such tables?
 
what about html5? any help from that? :P
 
yes
 
8:51 AM
which? :P
 
flexbox is the answer
 
oh gosh googling
thanks
 
@JanDvorak
I need help
 
@okok let me know if you find any useful reading material about that.
 
but i found hard to understand what it does sincerily
and this is why position:fixed it's a bug remysharp.com/2012/05/24/…
 
8:58 AM
@Pratik can I see your code? Browsers normally don't have the ability to sort any table
 
@JanDvorak I am working on already developed project. It has lots of js files to handle all events.
 

« first day (926 days earlier)      last day (4022 days later) »