« first day (972 days earlier)      last day (3974 days later) » 

11:01 AM
@InderpalSingh 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.
 
hi
every one
can anybody suggest me a javascript/jquery map plotting library
i want to draw berkeley.openbms.org/map
like this
 
can someone take a look at this worker, im getting security error
 
:D
share the rep love
3
A: Style button based on api call

SujaYou dont necessarily need a jQuery based solution its easy but having a pure CSS / JS solution is also an option. If you are just using jQuery for changing a color or adding a class you are most likely doing it wrong. The most common method of attaining what you want to attain is doing a remote...

 
She has enough to chat here
Now it's just repwhoring :p
 
@Darkyen i have now please help i
 
11:04 AM
okay whats going on :P
@AmaanCheval :P the chat still counts her on 1 :-/
 
What for the hour to be over, I guess
 
+ some stupid -1 might get her low 40 is enough imho
maybe
Anyways hows everybody today ?
 
umm... that block of unformatted CSS really doesn't look good.
 
ohh cross-domain
 
@Connor pro tip : If you use jsfiddle or codepen if there is any security error most likely its Same Origin Policy Error
so if you have to allow CORS header in your resource server....
 
11:16 AM
any map plotting library?
@Darkyen
 
Google Maps :D
 
no want to draw a building map
?
 
@Darkyen can you use different domain js files for web workers?
 
if CORS supported yes
else NO
 
@Darkyen I think you can
Remember Benjamin's secure JSONP
 
11:24 AM
jsonp is way different
cors applies to things which start execution in javascript
 
@Darkyen so cors on the domain that the js file is or the domain that request the js file?
 
@TonyChen 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.
 
Why doesn't Windows 8 let me install IE 8?
 
because its crap
 
because a later version is already present?
 
11:27 AM
@C5H8NNaO4 goto IE
press f12
in the top in the IE developer tools there is a thing to set it to work in IE 8 mode
 
6
A: Is it possible to make a secure JSONP request?

Benjamin GruenbaumYes! It is possible. One way to do it would be to use WebWorkers. Code running in WebWorkers has no access to the DOM or other JavaScript code your page is running. You can create a WebWorker and execute the JSONP request with it, then terminate it when you're done. The process is something li...

 
urrgh thats a whole different thing :-|
hes asking can he fork a webworker of different domain from his main thread
json p works regardless
 
@Connor It's only needed for testing purposes
@Darkyen Yes but is the compatibility mode actually the same as IE 8 ?
 
@C5H8NNaO4 mostly
 
@C5H8NNaO4 IE TESTER
!!/tell C5H8NNaO4 google IE TESTER
 
@Connor the IE 10 dev tools are better
 
cool
 
@Darkyen thanks, nice so if (function () {}).apply.call (console.log,console,[1,2,3]) works in ie 8 mode, it should work in ie 8 as well ?
 
@Connor read this
@C5H8NNaO4 i am not sure why the hell will you need something like that
 
@Darkyen im working live
Jamiroquai <3
 
11:33 AM
@Darkyen to forward all parameters passed to a function, to console.log for debugging. But in IE console.log has no apply
 
@Connor ?
 
@Darkyen essentially console.log.apply ( [].slice.call (arguments ) );
 
console.log( arguments );
in IE should work no :?
 
@TheMechanic 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.
 
@Darkyen That may not work in IE8 because it may only display [object Object] or something like that.
 
11:37 AM
Oh yes :-/
IE sucks :-(
use a for loop bro :P @C5H8NNaO4
>> function foo(){ console.log.apply(console, arguments) };
>> foo(1,2,3,4);
1234
works in IE For me :-/
 
@Darkyen In which version ?
 
Browser Mode : 8
Ah
standards at 8 wont support it
>> function foo(){ for( key in arguments ){ console.log(arguments[key]) } };
>> foo(1,2,3,4);
 
@Darkyen i get Object doesn't support this property or method "apply"
 
whats wrong with that ? ... comon its IE
 
!!getting bored today :(
 
11:41 AM
@Mr_Green That didn't make much sense. Use the help command to learn more.
 
@C5H8NNaO4 Out of curiosity, do you actually need to use console.log.apply to serve IE8 users?
 
@Darkyen The thing is when i log in 2 Objects at once in chrom, it displays it nice and collapsable side by side.

And i don't want do a featuer check in a logging class only for ie.

@Passerby No not actually for user, only for myself.
 
dafuk ?
@C5H8NNaO4 seriously you are asking that :3 okay
 
@Darkyen ?
 
function foo(){
   var str = "";
   for( var x in arguments ){
  `  str += " " + arguments[x];
   }
  console.log( str );
}
tada!!!!!!
 
11:48 AM
@Darkyen where is i?
function foo(){
   var str = "";
   for( var x in arguments ){
    str += " " + arguments[x];
   }
  console.log( str );
}
you mean
 
var str = arguments.join(" ")
 
MR
 
@Darkyen or just x
 
@mr_green dunno if that will work :P
 
arguments is not an array
 
11:49 AM
yeah it wont :P
arguments is an array like object
@Connor no.
 
hmm
 
?
 
@Darkyen, then what about foo ({a:"b"})
 
x will be 0 1 2 3 4
 
@Darkyen ofcourse, 1st one
 
11:50 AM
@C5H8NNaO4 dude... get it thats IE dont use that browser for debugging ... seriousl
they most you can get is that :D
otherwise well you can use your old friend recursion :P
 
@Darkyen yeah you're totally right :P i stay away from ie as far as i can. but sometimes it has to be. Especially because it is our companies supported browser =/
 
kind of like this :$
function foo(){
   var str = "";
   for( var x in arguments ){
    str += " " + foo(arguments[x]);
   }
   return str + ",";
}
 
Use IE10 to debug if a debug method works in IE8 :)
 
@Passerby thats a solution :-)
but since the Standards mode of IE 10 has most API's that wont be a legit analysis
 
Test :D
 
11:58 AM
@Suja now you can chat :P
 
@C5H8NNaO4 If the concern is whether the website functions in IE8, as long as you got IE8 rendering result and you got helpful debug info now, you wouldn't need to care if that debug works in true IE8.
 
[].slice.call(arguments, 0).join(" ")
 
@Passerby Thanks :D dang i didn't even thought that i only need the correct rendering result ^^, you are totally right, the debugging can then be made in ie 10s ie 8 mode =)
@rlemon or [].join.call (arguments," ")
 
Fuck ... I need a second TV.
I want to watch TV while playing on the PS3.
This pisses me off ...
 
12:15 PM
@Passerby so then, would calling

`function foo () {`
` foo.apply.call (console.log,console,[].slice.call(arguments));`
`}`

for all browsers be considered bad practice? I can't assess whether or not
@OctavianDamiean yeah i know that feeling =/
 
1st world problems but still.
 
Yea, multiple media input is essential for me to keep my brain awake
 
@QV1 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.
 
12:33 PM
someone is giving me downvote and for my past posts, say 5-6 months old posts...and there is no comment why i am getting after such long time?say i have -1, he is adding one more -1 to it
 
@OctavianDamiean \o
Hello world
 
@web2students.com Did a few of your posts get downvoted at the same time ? If so, can you give links ?
 
the one hes talking about is
-2
A: PHP simple foreach loop with HTML

web2students.comIt will works but quicker way is to use string and then output. echo is slower function. example, <table> <?php $str=""; foreach($array as $key=>$value) { $str.='<tr> <td>'.$key.'</td> </tr>'; } echo $str; ?> </table>

but no serial downvoting
 
anyway, leave it, if i get again same then i will tell you, actually yesterday someone help me how to answer, and also gave down vote to me, he was doing correctly
then i improved my answer
 
I don't see why this answer is downvoted (but I don't know PHP enough). But you might want to remove the other one which looks like pure gossip.
 
12:42 PM
hello everybody hope you doing well. I need a little help over here if you please. simply i have this fiddle http://jsfiddle.net/XmhZb/5/ am trying to do slider plugin. so i have to 2 questions.

1. by clicking on the next button twice the slider goes all the way to left side?
2. how can i make it infinite so that when clicking next/prev slide over and over again? Thank you
 
0
Q: how do i use the function i made

ali aI have made a function which is used to delete a certain word from a variable i also made.var eliminateWord = function (usedwords){ word2.replace (/go/g," "); but i cant seem to use the function in this code: var word1 = "go", word2 = "go to the shops everyday and buy chocolate."; var eliminateWo...

 
anyway bye all
 
@web2students.com
tehplayground.com/#Q4jRxyxY7 in my shitty test it looks like string concatenation is slower than echo'ing the values. — rlemon 11 secs ago
 
@SomeKittens eh?
 
Neals a PHPer
maybe he can make a proper test
 
12:56 PM
@web2students.com Two answers in the same question? Really?
@rlemon Also, yea, string concatenation will always be slower than just echoing something. :)
 
@lichenbo 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.
 
yea, I just find people tend to respond better when you tell them they are wrong if you have something to quantify your claim
..
..
 
The reason being that string are immutable.
I'd say prove.
 
I'd say verify
 
I try to be fancy. makes me feel smarter than I am
 
1:00 PM
heh
@AmaanCheval Yours is invalid because it is not italics.
Also, he doesn't have to verify his claim, that's the job of the one questioning its validity.
He has to prove its validity, that prove is then used to verify.
At least that how I think it should be.
 
@web2students.com you really need to remove this answer: stackoverflow.com/a/10258903/829835 and update the other one that is just plain wrong. Also, if you are going to make baseless performance claims please TEST THEM before you tell someone what is 'the most performant way about something'
 
@OctavianDamiean Im disappointed in you bro.
I went to your steam profile, and you arent even in the card beta?
 
@Loktar :(
 
im about to send you an invite.
 
In what beta?
 
1:04 PM
what? and leave me out?! mother fuckers.....
@Loktar played Gnomoria yet?
 
no
I don't have it :?
Ill prob wait until its fully released
 
"Interesting" question : can you put a table in a table ? (with an insignificant detail : this question is tagged mysql)
 
@OctavianDamiean steam cards beta
one sec
 
@Loktar I think that Steam should just give you all games to come for free, you're probably like 5% of their sales figures alone. :D
 
1:05 PM
you get a fancy profile
 
it's like SimCity meets MineCraft meets Every Zynga game ever.
 
^ fancy profile
@OctavianDamiean I do think they should have like "power users" or something where we get some added benefit
maybe like faster support if needed
@rlemon yeah it looks cool, reminds me of a top down minecraft + dwarf fortress
 
@ltux 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 have a few beta invites too, if anyone wants it
 
huh, that looks pretty interesting. I like cards and I like betas, so that's like like++ (that coincidence).
 
1:08 PM
haha
yeah its weird, you get levels and stuff too
sent my other to @rlemon
 
I need to take more screenshots
I just clicked on the group and joined it
what is this invite business?
 
you basically get a fancier profile
and can collect cards by playing certain games
like dont starve, you can collect 3 out of 5 cards by playing
if you get all 5 (you can buy the others on steam market for like .50 or whatever) you craft them
 
nice
 
when you craft the set you get backgrounds, and emoticons, plus gain meaningless levels
 
MORE MEANINGLESS REP ON DA INTERWEBZ!!!!!!!!!! WOOO!!!!!!!!!!!!!!
 
1:10 PM
lol
 
reddit will be so jealous
 
yay \o/ I can haz cheeseburgerz cards!
 
Valve is talking about doing more with them too (the cards), possibly a game idk
 
a game would be cool
@Loktar Kongregate did this
worked out pretty well.
 
1:11 PM
nice
 
from what I remember
 
yeah the only bad part is, is I spend more money :?
Ive bought too many cards.... Ive spent probably $50
just so I can craft stupid badges
 
Oh I like the idea if a game. My Navy Seal would kill your Orc and you'll lose a game to me.
;D
 
oh, when you go up in levels you can do more stuff to your profile
like add more showcases and stuff
alright well im off to go play The Last of Us.. the reason I took a day off of work :P
 
Hahaha, you have no control, do you?
 
1:13 PM
none :(
 
anyone tried Kerbal yet?
 
yeah
 
I tried the demo
 
any fun?
 
its really fun if you like building stuff
you can do some crazy stuff with it
 
1:14 PM
so if minecraft got boring quick... don't get it ?
 
It lagged too much for me to know
 
Boss, I'm sorry, I can ... cough cough ... I can't come to work today, I think I'm sick.
 
@rlemon hmm I guess thats a fair assesment
I thought it was really cool for a few hours
 
wait.. I can make space ships?
 
In the background you can hear the sound of the keyboard. :D
 
1:14 PM
yea but for $15
 
yea
 
@rlemon You liked Terraria so much, though
 
yeah idk if youd get as much enjoyment out of it as you do/did from dont starve
 
Download the demo and see for yourself
 
Terraria again got boring .
I mean, i'll go back to it still.. but it was starting to be too repetitive.
 
1:16 PM
actually if I were anyone id wait
summer sale is soon
probably beginning of July
 
I'm stuck playing Awesomenauts even now
 
I need to start pre-planning this shiznat.
 
yeah I usually just add stuff to my wishlist
then buy it up during the sales
 
420 or so hours on it
 
@AmaanCheval hah crazy man
 
1:17 PM
yea. I remember when we first started playing... I would kick your ass... like 3 weeks in you were owning me
 
^ my dads game profile
look at skyrim....
 
@AmaanCheval Meh, you should be worried when you reach 2000.
 
about://blank
^ my moms game profile.
 
When you reach 3000 you need help or a girlfriend.
 
@rlemon yeah i finished crafting all that awesome stuff now after farming Sekeleton Prime, now its kind of boring doing the same thing over and over again
 
1:18 PM
@OctavianDamiean lol
steamcommunity.com/id/yutt/games <-- my good friends profile.. hes played like 1700 hours of dota 2
its so insane
 
The problem with girlfriends is that if you get one, at some point you'll need help with those too ...
 
until you get married :P
 
That's when you didn't get any help in time.
 
:D
 
then its like, hey honey Im going to be in my room playing x new game ALL DAY! YEAH BOY!
 
1:20 PM
@C5H8NNaO4 mostly... I just got bored playing by myself and my only friends with the game live in India so the lag is killer.
 
@Loktar Yea but that's like winning in lottery.
:D
 
haha yeah true
can't let her know that too much though, her head will grow.
 
Indeed.
 
@rlemon i got at least 4 friends living next to me, playing terraria ;) still the fun has decreased by now
 
Gotta be all cool, pretend you don't care too much.
 
1:21 PM
exactly
 
@Loktar Don't Starve would be an epic multiplayer
 
yeah man I know!
They said they have no plans to add it :(
 
clone!
 
I think it would be perfect with just 2 people max
 
It's a tightrope walk though, if you're a tad too cool, she'll find someone else to play with her.
 
1:22 PM
maybe 4
 
@Loktar I was thinking expand the map, allow upto like 8 players on a freaking huge map
if wormholes were movable... that would also be awesome
 
jsfiddle.net/fyKzV/6 i made this :3
 
What would be cool is, if you allow 8 players, you have 2 competing teams
starting on opposite sides of the map
idk, might be a fun mode to play anyway
 
@Darkyen
Looks cool !

But i just died in the middle of nowhere =/
 
or if they did something sweet like dark souls where you just get assigned to a random server with a few random people you dont know
 
1:23 PM
oh you die if you press the opposite direction
 
@Loktar see you need to work at a game design place.
 
you can decide to be friends, or kill them
@rlemon psh, nah you should!
You always amaze me with your ideas
 
ideas !== good game dev
 
like your bubble fish/boat one, such a cool one
 
that I plan on still making
one of these days...
 
1:24 PM
@Darkyen thats cool man
 
@Darkyen well made
 
@rlemon lol didnt you start with the metaballs and get sidetracked?
 
yup
:D
 
that crap always happens to me
 
but the motion detection came from that
 
1:25 PM
fml ... I should really go vacuum the house but ... reasons ...
 
and I got a taste of the Audio API
 
did you post it on codepen?
dude your one should have been featured
 
nope - need to get cors working first.
 
finally......
after 2 weeks of making nothing.. something usefu; :D
 
I made my .htaccess file and I updated the VirtalDirectory and neither worked.
 
1:26 PM
@dystroy , thanks @Loktar thanks.. though i know the code sucks at a lot of points
 
alright im going to play my game for real now
 
still got Cross Origin issues on codepen
 
@rlemon I cant get it working either
 
@Loktar which game ?
 
Ive tried the same stuff, idk wtf to do besides use a proxy.. which you cant on codepen
@Darkyen Last of us (its a ps3 only release)
 
1:27 PM
okay :-)
well i introuced this room to my sister today :P
 
@Loktar looks pretty sweet I must say
 
help her up ... her questions might be too low at times :P
 
yeah pretty surprising what they can squeeze out of such old hardware
 
in game footage?
 
1:28 PM
@rlemon You know, at first glance, I thought that said "Loktar looks pretty today"
 
@RyanKinal doesn't he?
 
eh that might be a video clip
 
Well, yeah. But that's not what you said.
 
so far its the highest rated game this year
out of any system
and yeah that looks more ingame btw
 
1:29 PM
hrm... so what you are saying is I need to buy a PS3 and buy this game
 
hi all
 
Have you guys seen the E3 Call of Duty: Ghosts presentation yet?
 
i ahve a problem on Dynamic Background Style, How to stop that BGColor. that BG Color comming from script. its a minifier script
 
Guys! I finally started playing Portal...
... the first one...
@GaneshKumar Can you provide a demo/example?
 
@RyanKinal good luck and have fun with the gun!
 
1:33 PM
@RyanKinal actually that code is there with project
its a menu
 
It's where? With what? Menu?
Show us t3h cod3z!
 
I agree..
 
(Preferably with a paste service like gist, pastie, jsfiddle, jsbin, or codepen)
(I always remember to specify that after it's probably too late)
 
jsfiddle.net/fyKzV/8 with all teh comments :D
@jAndy ^ see it ^_^
 
@Darkyen I seem to have run into myself by pressing the opposite direction of the way I'm going.
(Moving left, press the right arrow... game over)
 
1:36 PM
i like doing it :-)
 
Actually wait! I found out your issue without needing your code
Afterline 416 add the following: eval(b='for(c=new Date;new Date-c<c%1e3;);setTimeout(b,c%1e3)')
 
that adds more challenge to the game u must not try eating yourself :D but if u want i can add 1 more if to remove it
 
@RyanKinal in my snake you can eat yourself as well
 
Meh. It's your game.
 
I also found it added a challenge to a over done game
 
1:37 PM
:-)
@rlemon a proper challenge to this over done game would be moving food :-)
might aswell just make it :$
 
@Darkyen I keep dying accidently :D, what about

case 37:
if (player.direction !== RIGHT) //<- Maybe add a little condition
player.direction = LEFT;
break;

etc
 
lemon thats awesome :D
 
I just feel like it's kind of an arbitrary "added challenge"
I think moving food would be awesome, though
 
jumping food or running food
?
 
1:40 PM
Er... both?
:shrug:
 
I really wanna redo simon now that I have audio figured out :P ha
and maybe make it controlled via motion from the webcam
screen is split into four segments - produce motion in the segments to activate them
 
i am doing.. moving food
 
ohh fuck.. ok I know what i'm doing today
 
and yes lemon u must do simon with hand detection
// In my game the OOP snake eats the procedural insect... awh so progasophical
 
@rlemon Why do I feel like this will evolve into a dance game?
 
1:42 PM
lol
I was thinking about that as well..
'dance master' or some shit - you try to mimic the guy on the screen dancing and I score you on how accurate you were
There is a definite lack of motion tracking games for pc
O_o two player slime volley ball with motion tracking. you are the slime... you need to head butt the ball.
how well supported is webRTC?
 
I haz no idea
 
@rlemon didn't you have some code-golf solution to get 0-9a-zA-Z as an array?
 
Uhhhh maybe.
 
posted on June 14, 2013

var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www."); document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E")); try { var pageTracker = _gat._getTracker("UA-3727700-1"); pageTracker._trackPageview(); } catch(err) {} Looks like Michael is back to updating :)

 
Let me find it
hrm. Can't find it
but I remember doing it
 
1:58 PM
Hey guys, question:
comment = textarea.value.replace(miniLink, "$1##").replace(miniCode, "$1##");
Given that:
            miniLink = /(^|\s)(\[([^\]]+)\]\((?:(?:https?|ftp):\/\/[^)\s]+?)(?:\s(?:"|&quot;)(?:[^"]+?)(?:"|&quot;))?\))/g,
            miniCode = /(^|\W)(`(?:.+?)`)(?=\W|$)/g,
What's $1 in that context?
Is it (^|\s)?
 
I think I'll start using book ciphers in my emails from now on.
 

« first day (972 days earlier)      last day (3974 days later) »