« first day (1491 days earlier)      last day (3462 days later) » 

12:00 AM
The example doesnt work in fiddle beause the use of the external js pathfinding
i will send by email if interested, will pay to fix
 
try removing single quotes from around jpeg url
 
@rancho that isnt the problem because it works fine with a single block
 
do i need an MD?? or..do i need a Psychiatrist
 
lol
 
whats pintacasillablanco mean?
 
12:07 AM
Lol i told you all if interested ill send the code by email
and that way youll see the image etc
 
im scared to receive the code by email
 
why?
 
@user3470815 Things that won't work when asking a question on Stack Overflow: 1. Asking to use email 2. Offering money
 
@KendallFrey lol in fiddle how are the local image and js referenced local going to work? Would you prefer i upload it to a filesharing site?
 
Find a way to make it work, I don't care if you need to use something besides jsfiddle
 
12:14 AM
^ magic will do that ?
 
magicArray=['Dr. Strange','Rasputin','msCleo',]
syntax error ','
 
javascript pw to unrar.
 
@rancho Really? I thought that was allowed
 
ok. my bad
 
12:22 AM
Why doesn't the ball clear itself? :|
clear is clearly called (as seen in the debugger), the context's fillStyle is clearly set to black when it's calling clear, and yet the ball doesn't clear
The paddles clear fine :|
 
you're being wasteful.
clear once in your loop
    function loop() {
        mainContext.clearRect(0,0,width,height);
        entities.forEach(function moveEntities(entity) {
            var newPosition = entity.moveLogic(ball);
            entity.moveTo(newPosition);
        });

        window.requestAnimationFrame(loop);
    }
 
I'm not downloading your entire project, thank you
 
lol 12kb
dont get your 1 Tb drive full
 
don't take files from internet strangers is the new don't take candy from a dude in a van.
 
12:27 AM
@user3470815 I'm not downloading a single byte
I need a library to play audio on node. Recommendations?
 
to stream it?
 
I tried play, but the behaviour doesn't match the documentation.
 
are prototypes slow when working with thousands of objects?
 
@rlemon preferably from files, but doesn't really matter
 
so what should i do? If i paste the code on fiddle it wont show the 2 images, nor the pathfinding that moves the images would work..
 
crl
12:30 AM
!!> .05+.15==.2
 
@KendallFrey i'm confused. you want your server to do something more than just serve the file?
 
@crl false
 
<audio src="friday.mp4">
 
@rlemon 'tain't a server
 
@rlemon I also want it to serve me pizza
 
12:30 AM
@crl true
 
I want it to play on the machine it's running on
 
node-webkit? node-cli?
 
Me: "Son, um, what are these on your paper airplane?" 8: "Laser cannons, of course!" http://t.co/cALFFbOXfe
 
@crl true
 
anyone in here work with raphael.js
 
12:31 AM
@rlemon plain old vanilla node
 
so you wanna like node musicplayer.js
and have friday start playing?
 
basically yes
 
Pipe into vlc
 
^
 
crl
v
 
12:33 AM
Can I start node without a window?
I'm looking into the idea I had earlier for a game based on sound
 
not sure how forever works in windows
 
Node is inherently without a window
 
but you can look at forever.js
@copy he's in windows remember
 
^ @rlemon I dont have a van
 
i think he just wants to hide the spawning console.
 
12:34 AM
But windows also has command line, services, …
 
but I don't want a command line
I want nothing
 
@user3470815 if you are serious about paying someone to do it for you, there are services for that. if you want to show the code, well explained, commented in english, and post to the main site i'm sure you'll get an answer
 
Maybe node was a bad thing to start with
 
@KendallFrey look at node-webkit
and when they launch the game or w/e just hide the window to the tray
 
That must be surely possible in Windows
 
12:35 AM
it's something
 
@rlemon what services ?
you mean odesk and such?
 
google will yield answer
but SO is not a for-money service. most users are not comfortable asking to get emails and such
 
@rlemon I. Want. Nothing.
 
@rancho
 
12:38 AM
5 minute fork?
 
I dont understand now im a dictator?
 
No I am
 
what can you do with a 5 minute fork
 
@rancho where are you from?
 
And Benji
 
12:39 AM
say you walk away to go smoke somethin.
you come back ready to do some thinkin
and you got a 5 minute fork message
 
m59
Dang, I got removed as room owner just before I could make God's account a room owner, remove everyone else, and establish a JavaScript Room Theocracy.
 
Scrap that, I'm an idiot
 
Most people here figured out canvas one day like you're doing now. And it took them a couple of days. And they're not idiots
 
// other stuff for the game
function init() {
	// setup stuff
	update();
	render();
}
function render() {
	requestAnimationFrame(render);
        context.clearRect(0,0,width,height);
	for( var i = 0; i < items.length; i++ ) {
		items[i].render();
	}
}
function update() {
	for( var i = 0; i < items.length; i++ ) {
		items[i].update();
	}
	setTimeout(update, updateSpeed);
}
this is how I generally structure my canvas stuff.
separate update and render loops for more control
 
@rlemon updateSpeed you mean 1000/fps right?
 
12:52 AM
w/e your constant is
your fps is determined by RAF
your update speed is w/e you want it to be
 
oh ok ok
 
@rlemon setTimeout at the top for more consistent times
 
good point
 
@KendallFrey could you expand on why? you mean before the for loop¿
 
I'm not a fan of putting it on top, because then errors won't stop execution
Rather calculate the time until the next tick (then it will also synchronise)
 
12:59 AM
@user3470815 If you put it after, the update loop will run slower by the length of time the function takes to run
@copy I don't make errors
 
@copy you mean using date.now?
 
Delta Time or Delta Timing is a concept used amongst programmers in relation to hardware and network responsiveness. In graphics programming, the term is usually used but for variably updating scenery based on the elapsed time since the game last updated, and also calculated separately if graphics are being multi-threaded. A user with a slow internet connection or computer is often prone to experience lag or slowness in the responsiveness of the game environment. The purpose of Delta Timing is to eliminate the effects of lag on computers that try to handle complex graphics or a lot of code, by...
 
@user3470815 Yes
 
1:11 AM
Goodbye
 
You're welcome
 
1:53 AM
Dangit angle reflection is annoying
 
m59
2:14 AM
Rep whoring with bad code. This is what we get when we don't cv! stackoverflow.com/a/26941645/1435655
 
 
4 hours later…
6:18 AM
woo hockey
 
6:41 AM
BTW who said that Sublime couldn't fold Haskell code? Because it definitely can
 
 
1 hour later…
m59
8:05 AM
oh mercy pray for dis man
0
Q: Multiple function call on html onclick

Prasanth ARIs there any possibilities to use the onClick html attribute to call more than one jquery functions onclick="$('#editParentDetailsViews').removeClass('tab selected');$('#editStudentDetailsPopupPnl').hide(); return false;" here the first function work properly and the 2nd function not working.

 
I think I'm done with my Double Pendulum demo. Not sure what else I can add to it! Ideas? http://whatthedude.com/codepens/double-pendulum
 
@SomeGuy more plots; have two pendulums with slightly different starting conditions...
make it not explode after a while when the time step is maxed out
 
@JanDvorak Click addSystem
@JanDvorak Thanks, fixing that now
Fixed
 
 
2 hours later…
10:53 AM
hi lazy people this is my first visit to chat
 
@moroccan_dev 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.
 
I just got a null pointer exception in JS
 
...
 
@JanDvorak I think it needs to be plugined
@TomW I'm for real
@TomW Uncaught TypeError: Cannot read property 'getFrameIndexes' of null
they retardedly call it "type error" but it's precisely null pointer exception
 
@BartekBanachewicz I got it for free with my (nagware) installation
 
10:56 AM
Why does the word 'null' even exist in a javascript interpreter?
Does the notion even exist in the standard?
 
@TomW um, yes?
 
@TomW yes
 
it's one of the falsy values
undefined, null, 0, "",
dunno about []
 
Fair enough. I thought it called everything undefined. << doesn't do js
 
no, undefined is the bottom type
null is an empty object type
 
10:57 AM
pretty much like undefined except its type is an object
@BartekBanachewicz this isn't haskell.
 
!!> if ([]) console.log("bartek is awesome")
 
@BartekBanachewicz "undefined" Logged: "bartek is awesome"
 
shit parens
 
I'm not sure I ever want to meet someone who decided their language needed several notions for different sorts of nothing
 
@CapricaSix aw thanks cap
@JanDvorak "bottom type" isn't strictly haskell notion
 
10:58 AM
there's no "bottom" type in javascript. Only two types of nulls, of which one is an objecty null and one is a non-objecty null
 
okay right
 
I believed the first two guys :P
 
@BartekBanachewicz you can't call methods on null either
 
undefined is a value not a type
@JanDvorak nevermind me I'm dumb
 
10:59 AM
@BartekBanachewicz neither is a type
 
@TomW Why would you believe them? They didn't provide any proof
 
typeof null is object though, but undefined has its own type
 
@Zirak deference to authority.
 
@JanDvorak That's a bug, Null is a type of its own
See the spec above
 
it's a bug in the specification
which means it's actually correct
 
11:00 AM
In the typeof specification
But the actual type of null is Null
(which you can't access either!)
 
true
 
well anyway neither is bottom type
4 mins ago, by Caprica Six
@BartekBanachewicz "undefined" Logged: "bartek is awesome"
btw @Jan this
 
@BartekBanachewicz By proof I meant proof that null is a javascript notion, and not just a random keyword
 
being awesome is a proof
 
So it's agreed then, you still need to provide some proof
 
11:04 AM
Where can I find the commands for Caprica?
 
!!tell Jonathan help
 
@Jonathan Information on interacting with me can be found at this page
 
ty
 
!!listcommands
 
@Zirak 666, help, listen, eval, coffee, refresh, forget, info, listcommands, tell, afk, ban, unban, convert, define, doge, google, hang, jquery, learn, mindblown, put..it..back...ლ(ಠ益ಠ)ლ, phucket, gtfo, lol, moneycantbuylove, catmode, coffeetime, lifeban, stopmyself, instagram, kendallfrey, excited, manigga, meinneger, dgaf, infiniteriot, okay, feelsgoodman, fabulous, sausage, playerpimp, installjavascript, moarkittens, kendall, googlesite, banana, kfc, uwot, nsfw, facepalm, food
abhishekhingnikar, somekittens, erase, fry, dudeism, hahastillhere, onebox, morecoffee, steve, whoosh, burn, woo
 
11:04 AM
will look, thanks
 
!!ask Zirak if we can invite Caprica to private room
 
@Jonathan Not a chance
 
@Jonathan Sure, which room?
oh, if it's just for you, there's the sandbox for that
 
Oh just to avoind spamming this channel
ah ok
 
nobody welcomed me it seems all are busy with js fiddle
 
11:15 AM
!!welcome moroccan_dev
 
@moroccan_dev 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.
 
11:42 AM
caprica!!!!
!!Why did they spoil the new nexus series?
 
@AwalGarg Of course not
 
they did...
they changed from 4:3 to 16:9
and I don't want a 8.9 inch tab
 
lol
The question is when do we get 5.0 !
 
They should have sticked to the nexus 7 size, and just improve the specs.
And the material of the screen.
I am gonna buy nexus 7 2k13 only now...,
 
I like it, but it's very small. I sometimes wish I had a bigger screen on it.
 
11:48 AM
then get nexus 10
that is for bigger screen
I want a tablet which I can use as a tablet, but is not as big and heavy as a tablet
and the size of nexus 7 was perfect in that sense
 
I know, I purchased the 7 for its small screen, but using it a lot, I can see why sometimes a bigger screen is better
And I have actually no money to put in any device now. I can't even afford a bed.
 
:(
 
I am gonna buy a laptop by this week
under 700 bucks or so. Suggestions?
 
Mornin :)
 

« first day (1491 days earlier)      last day (3462 days later) »