« first day (1575 days earlier)      last day (3391 days later) » 
00:00 - 19:0019:00 - 00:00

12:06 AM
if anyone can help, I would be very happy :)
 
12:16 AM
@Cerbrus Happy Birthday bestie
9
 
HI
fuck.
 
@Sippy What's wrong?
 
Trying to get my fuck count up.
 
ok
 
1:22 AM
hi @copy and @BadgerCat! :D
 
@ieldanr 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.
 
1:41 AM
@ieldanr Hi!
{
 
2:15 AM
const rot13c = (c) =>
  ('a' <= c && c <= 'z') ? String.fromCharCode(97 + (c.charCodeAt(0) - 97 + 13) % 26) :
  ('A' <= c && c <= 'Z') ? String.fromCharCode(65 + (c.charCodeAt(0) - 65 + 13) % 26) :
  c

const rot13 = (str) =>
  Array.prototype.map.call(str, rot13c).join('')
Gosh ES6 is pretty.
Oh wait, I could've just applied map to the string
 
m59
2:30 AM
hah, the day has come where frameworks have finally wrecked my vanilla js mind.
What's the right event or property to access such that:
node.addEventListener('keypress', function() {
  console.log(node.value);
});
 
@Andrea Almost as elegant as the first release of Python was
 
m59
will log the character being input, rather than lag behind?
 
@copy Which is to say not terribly
 
@m59 Use oninput
 
m59
Ah doh.
 
2:32 AM
I mean (str) => Array.prototype.map.call(str, rot13c).join('') isn't actually that pretty, it's a lot nicer in Haskell
 
m59
thanks @copy
 
map rot13c str
 
 
3 hours later…
5:37 AM
How do I fix this? I have no idea how to get back to the Mun's orbital plane
 
haha Keerbal ;)
set mun as target and fast forward until you can brake/boost into orbit? :P
@jdphenix haha funny Q to post here ;) :p
 
well there's quite a few folks in here that play it, I blame them for me purchasing this game to begin with
easily my best game purchase in years though
 
you have to drag the purple one s it is round again ;) Or the blue :)
hehe yeah me to, so happy when i finally was able to get into orbity! :D
 
... I was happy to get off the launchpad without it rocket rotating out of control or bending in half 1km up
 
@jdphenix Have you ever done a plane change maneuver?
 
5:46 AM
hehhe yeah, use te mecjeb :)
 
How did you get in that orbit to begin with?
 
and remember stabilizing cabling, and rather one big with boosters, rather then ekstra tanks + engines etc
 
@KendallFrey Got off course at launch and decided to try to salvage it instead of revert and try again
 
ah
well, how much fuel do you have left?
 
ahh, you have to start at 45 degrees when you reach 10 000, then flat out
and remember to go to the right ;:)
 
5:48 AM
I doubt you'll have enough to get back into an equatorial plane
@sunto Everybody does that, it's horrible
 
oh haha :)
 
I fly proper gravity turns
 
@KendallFrey 55.25 liquid fuel, with the atomic rocket motor
 
but it works :) yes, the mecjeb will let you see and you can set up better when you watch that
 
@jdphenix how much does your rocket weigh in total?
 
5:49 AM
On the launchpad or now?
 
use the i button in the map view
@jdphenix now
 
4.46t
 
@KendallFrey but it is like a good pinpoint right? And then you just kind of follow the gravity as you do?
 
@sunto urr?
 
ehm, hehe I mean, its a good way to get into orbit, and fine tune the angles from there? (10000,45 - 30 000, flat) ?
of course gradually shit the angle
hehe shift*
I am no expert, but was very happy when I fgot into orbit like that, and circular orbit ;)
 
5:52 AM
@jdphenix Your only hope is to burn retrograde at apoapsis and try to bring it back to Kerbin
You don't have enough fuel to get anywhere significant
 
Okay - 19 game days and counting!
(i'm glad this is unmanned)
 
@sunto It works (obviously since every noob and his mom does it) but it's so easy to smooth out the turn
 
aha, by setting up in mecjeb, the angle better? So one can follow that apsis? (blue dot pointing 'forward'?)
 
@sunto Watching how MechJeb does it is a good way to learn
1) Watch 2) Follow the pink marker with MechJeb's guidance 3) Do it without help from Mechjeb
 
True, well it's an awesome game, really let's your head work in the beginning!
Yeah, thats about where I am now, doing it myself :)
but maybe need to watch more :)
 
5:56 AM
I've played without MechJeb for a while now
 
but hey, besides from kerbal, would you know how I can use the on pop state with ajax? I wanna add some url's to my sites, have finally gotten rid of hashes, so i do need some url's :D
 
I will still use it, but for computery stuff like aerobraking calculations
@sunto i have no idea what you mean
 
haha okay :)
If you have any clue, better explained there ;)
 
Wait, are you trying to make an ajax page with browser history?
 
yes correct
and also, with urls, as i know have in my onclicks, return false, there is no url :)
 
6:04 AM
This sounds like something you should follow a tutorial for
 
yes I have tried searching for one :)
And read alot, to little use.. But I will search more for tutorials :)
 
oh my god the feels :O
 
haha priceless :)
 
I think gravity is trolling me
@KendallFrey Love it
 
thanks for the tutorlial tip, I thought on push state was for the url.. Any tip to keyword for changing the url, when i search youtube for tutorial?
 
6:34 AM
Thanks @KendallFrey
 
 
3 hours later…
10:01 AM
Thanks @BadgerCat :D
 
10:18 AM
:)
 
user3949359
10:35 AM
Is there a jQuery plugin, that automatically puts a text selection into the twitter share window?
 
11:03 AM
I'm trying to decode the post request of my isp and I need some help
		document.sendin.password.value = hexMD5('\036' + document.login.password.value + '\270\316\203\356\010\262\160\072\056\337\363\124\317\246\241\247');
What does the above code do?
 
hi guys
in HTML / CSS / WebDesign, 21 mins ago, by Gotalove
Having a problem with jquery autocomplete
Uncaught Error: cannot call methods on autocomplete prior to initialization; attempted to call method 'studsearch.php'
http://pastie.org/9894828
it actually works with some old jquery library
I dont get where this solution is applied though seems someone had same issue stackoverflow.com/questions/21549126/…
 
11:35 AM
@argentum47 I am now there... :D
 
Hello :)
 
@SecondRikudo dude you saw my ranting on CM blog? xD
 
Anyone good with ajax funtions? I need to know how to have an url displayed, when using onclick="ajaxfunction('filename.php'); return false;".. Is it me doing so it cannot be displayed an Url with return false? I use that so it wont load the href, wich would be a text-only file.. Frustrated, as I think I am not searching for the right things/words in google and youtube :/
 
@sunto If I understand what you want correctly, history.pushState is what you need.
 
aha, that may be correct yes :)
 
11:48 AM
also, you don't wanna use onclick=somethingsomething
 
hehe I guessed that to, rather use click handlers?
 
!!tell sunto mdn addEventListener
 
^that
ohai @CapricaSix!!!
 
just givin me a pain to understand, how I would change my onclicks to click handling, as I have my url-parameters in each onclick/anchor item..
But that is another case, that I willdo when I am confident enough :) Thanks
 
11:50 AM
no problem
 
I have read oh so much there! Hehe I guess I have a tough question there as well, where do i input the pushstate code?
As I do want it kind of, cooperating with ajax, to pass the correct url, maybe I'm looking at it wrong.
I did read there, and learned the 3'rd parameter is for url. Hm, oh would i pass in Url keyword there maybe, same as in ajax??
Sorry for going on such a wide topic here
 
You read that in the mdn history article right? (just confirming we are on the same page...)
!!mdn history api
 
^this one?
 
yes that is the one :)
and thanks for the clickhandler part :D very nice!
 
11:55 AM
What do you mean by pushstate "code"? The state object?
 
the entire code part hehe, this
history.pushState(stateObj, "page 2", "bar.html");
 
ah, I see. You put that before the ending of the xmlhttp.onload function.
 
Ohh, how awesome that you had the answer :
:D
hm
hehe check my jsfiddle
 
Does anyone know of a way to test a .npmignore file before publishing? All I'm after is getting a list of files that would be published.
 
That would be the same, as having it in every onclick? As I do have onclicks now, but will change to onload and click handling.. I dont have an onload for my ajax, but do know I should have :)
 
11:59 AM
@sunto jsfiddle.net/y0o39897/1 see this
 
ahh you are awesome :
 
brb
 
ok :)
 
0
A: socket.io.js path in nodejs with localhost in windows

jfriend00If you set up socket.io properly with your http server (you don't show us that part of your code), then it automatically handles the request for "/socket.io/socket.io.js" and serves up the socket.io.js file to the client that actually resides elsewhere. In other words, it handles it all for you ...

 
woow, how it worked as A charm!"! You are my hero right now hehe :)
 
12:06 PM
any nodejs expert ?
 
no problem :)
 
I must ask, as I am trying to understand the code as well.. Is the 'foo' your way of connecting the listener to the ajaxfunction(even thou it is inside)? :)
it worked, even thou I didn't change my a's to foo, you see :) Guess that is because of the 'this' keyword :)
 
foo is the id of the anchor element.
You want to replace it with document.getElementById('foo')
 
ohh i see
hehe i know see what u did, removind the onclicks :)
 
Do you see how that helped you? 1. You have to define the url only at one place, and it degrades gracefully for JavaScript less browsers.
 
12:12 PM
Yes I know that I want to use that instead :)
Hmm, I know it helped me alot at least hehe :)
Hm, would I need something like body onload - Food(url)?
I will read up on addEventlistener :D
sorry, foor(this)
 
just put the script tag before the ending body tag and you don't need onload etc.
addEventListener sets the this value to the element on for which the event is fired, in the callback function.
 
aha :)
interesting.. :)
 
so food(this.href) means food(a.href)
 
Ohh how neat! Hm, but I would in that case name all me anchor tags 'foo'?
 
and your anchor element has the href set to the url you want to load via ajax, so there is that
 
12:16 PM
ohh, yes that is perfect :)
 
nope. If you have multiple elements, you would use event delegation
 
hehe oh now, would that be using multiple parameters?
sorry, never read up on the event-things yet, just found out that hashbangs was OLD stuff :)
 
Depends on the way your page is laid out. Read up on event delegation, it is a pretty well known topic. :)
 
Will definitivly do that with the other link you gave to mozilla developer :)
Thanks a lot, again :D :D
 
!!mdn event delegation
 
Since you obviously know js good, I will ask one more thing, but I think reading up on event delegation will solve that also.. Am I doing something horribly wrong when changin id's of my menu-items? The menu works and all, so I am happy, but heard 'class' is a better way..

http://jsfiddle.net/y0o39897/2/
I actually, want to shorten those three codes into one, or less at least, but when setting those local variables, as you can see, is repeated in all three codes, to global variables, it stop working.. Maybe I misunderstood something in early tutorials :)
 
brb
 
I've just released my first TypeScript-migrated project. It is a command line application built with NodeJS 0.10.x and TypeScript 1.4. Any comments you can give to help improve me improve my code and standards is highly appreciated! Please check it out at github.com/Deathspike/crunchyroll.js
2
^ Please star that so people can see it later. AFK for a while.
 
pinned. will look in the am.
 
Thanks for all your help, gotta go :)
 
12:29 PM
Thanks for pinning :-)
 
1:16 PM
This application enables episodes to be downloaded for offline convenience. Please do not abuse this application; download episodes for personal use and delete them
@RoelvanUden dunno about the code
but ....
thanks you killed crunchyroll
 
Killed? You can't be serious. There are tons of downloaders; and it didn't kill anything.
YT downloaders didn't kill YT either, heh.
 
1:31 PM
@RoelvanUden No man, you single handedly killed crunchyroll
Now everyone's going to use your thing, and nobody's gonna visit crunchyroll, nobody, and all they'll have to do now is face ever increasing bandwidth with ever decreasing profits
Thanks a lot you ass
 
2:00 PM
o/
 
@SomeGuy You missed a re-telling of dead baby jokes last night
 
Any original material?
 
rlemon was musing on the c++ lounge giving more fucks than we, and started looking up how many times some of us said stuff. He looked how many times I said "baby", got to some dead baby jokes, and said them out loud
Others joined, but I didn't hear anything new
 
Hahaha sounds like a good time
My favourite dead baby joke from you was on TS. You said something like, "My neighbour's got a baby and I'm hungry, see y'all later"
 
Completely forgot about this awesome one:
What's the difference between a dead baby and Tom Hanks?
...Tom Hanks isn't dead
What do you get a dead baby girl for her birthday?
...a dead pony
@SomeGuy hahaha
 
2:17 PM
@Zirak I don't get this one? explain please...
 
@AwalGarg The stereotypical girl yearns for a pony, so the stereotypical rich dad buys one for said girl's birthday.
 
ahaha
 
2:37 PM
@TheAnirudh and I spent 15 minutes debugging a file while editing its copy. #developersOfTheDay
 
does nyone know how to setup a dhcp connection. I mean I have to connect to a wlan to do the first time settings with the phone. I have set up an AccessPoint typeof Wireless shared network. I gave the IP as 10.10.10.0 , subnet as 255.255.255.0 and gateway as 10.10.10.1. no dns and allow ipv4 for the connection is checked.
I order to connect I have to create a static ip on the phone like 10.10.10.3, it connects but the signing in to google fails with network error. I have also tried with 192.168.1.0, .1 and .2 rspectively
*in order
 
2:55 PM
@AwalGarg No? Link?
 
@SecondRikudo this and other ones...
 
@AwalGarg Nice
 
wait they removed the yomama joke! :(
da hell
 
You failed to explain what DOM is though
 
because I explained it another one
 
3:01 PM
And why jQuery was created in the first place.
 
wait
> As I previously mentioned, jQuery aims at fixing cross-browser compatibility issues
 
I m tired of 'fy' in npm's p. watchify . seriously? I like the localhost thing.
 
@SecondRikudo here it is, IIRC, I explained about DOM somewhere in there.
oh yeah, there it is
they removed the yomama joke from there too :( :( I hate them.
 
tell me
 
I don't remember exactly.
yoMama.onclick = function () { alert('so fat'); }
maybe, dunno
 
3:16 PM
Any of you guys ever used google dart ?
 
is anyone here who can help me with js
 
don't ask if you can ask.
that's not on topic
 
@Steve there's a good chance you'll find help with JS here in the JS room, yes.
 
3:34 PM
You say that
Either i) help or ii) insults
 
got it thanks guys
so i'm using this theme preview.w3layouts.com/demos/pinball/web and i was able to put the theme on fiddle jsfiddle.net/kv8jynb0 i'm trying to add load more function so when page open it doesn't open everything at once since its one page theme so the issue i'm having is when you were to click load more nothing happens any help will be appreciated thanks
 
Hi guys ! Does anyone know if this is possible to customize waht is visible in chrome watch expressions ? For object, I have today everything that is visible and would like to hide some stuffs (like non enumerable properties or stuffs like that). Is this possible ?
 
I'm using browserify with hbsfy, all works fine when I use watchify, but helpers are missing with the same command using browserify instead. Did anyone experience something like that before?
watchify -t hbsfy main.js -o all.min.js
 
3:55 PM
@argentum47 miaou down? (cc @dystroy 502 bad gateway?)
 
yeah
mine too
 
;'(
 
meow is chasing jerry
 
its back! its back! happy dance
 
4:03 PM
posted on February 07, 2015

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) {} BAM

 
loel
 
user1596138
4:43 PM
Sup
 
sup
any asp and javascript experts here
 
@Sajeetharan may too nahe
 
are you speaking hindi?
 
@Sajeetharan hanji
 
5:03 PM
guys, english only please.
what a guy
0
A: Jasmine JavaScript Testing - toBe vs toEqual

Lloyd BanksI've recently come across examples where when comparing two of the same objects, toBe() has returned false. These problems were solved by changing the comparison method to toEqual(). toEqual() does a deep comparison and thus should be used for objects. toBe() is more suitable for comparison of...

gets a bunch of answers, then self-answers way later and accepts himself.
 
5:21 PM
hiii . I have more than 1000 records in my table . now I want to show all in combo box / multi select box. can you suggest me how can I do it more efficiently, so that my multi-select does not get hang
 
Right, so NodeJS 0.12 was released. :P
 
@AmitKumar datalist
 
but showing all the records at a time is making my select box slow
@AwalGarg: and also I'm working in asp.net mvc
 
5:39 PM
The key is to limit the number of elements. You can try paging, deferred load when it comes into view, etc. Regardless, if you need to load everything and you end up with 1000+ rows/columns/selects/options elements, it's going to be slow. Re-think your strategy.
 
user1596138
@AmitKumar you ask how to do it more efficiently yet you do not post the current implementation. Please provide at least a little info when you ask a question
 
@AmitKumar I dunno asp.net, but this way, should not be slow. I can't find the source right now, but I remember reading somewhere that huge datalists are faster than huge select lists.
 
@Jhawins : sorry for that .
@RoelvanUden : I'm looking for solution . What should I do now
 
can anyone help me with quick javascript question?
 
if it is the same one you asked in the HTML room
seriously, google
it is a stupid simple question which has been answered a million times
 
5:50 PM
Streaming KSP twitch.tv/kendfrey
 
how do I prevent 32 bit integer overflow in javascript if I want to turn a 8 byte bytestring to an integer?
 
@KendallFrey stream froze
or you just haven't moved or blinked in about 3 minutes
 
yep, stuff keeps crashing on me
 
@KendallFrey DO A FLIP
 
6:04 PM
fuck this, OBS is pathetic
 
@rlemon its something else
i have this theme http://jsfiddle.net/kv8jynb0/8/ its depending on the following javascript is there way can the theme be just displayed without depending on something example code (function ($){
var $tiles = $('#tiles'),
$handler = $('li', $tiles),
$main = $('#main'),
$window = $(window),
$document = $(document),
options = {
 
6:46 PM
@BenjaminGruenbaum are you not dead?
 
Oy o/
 
I've got a question for which I find no answer on my best friend (google) : Is there anything that logs the Websockets, like the apache "access" log ?
 
I think I'm losing my mind...
Why would this ALWAYS set the value to either the min or max?
$('input[type=number]').each(function () {
$(this).on('blur', function () {
if ($(this).val() > $(this).attr("max")) $(this).val($(this).attr("max"));
if ($(this).val() < $(this).attr("min")) ;$(this).val($(this).attr("min"));
});
});
 
@dievardump On the serverside?
 
6:53 PM
Yep
the apache access log logs all the HTTP requests, and others
 
not that I know of
 
And I was wondering if there was the same thing
 
Oops... I had a typo in my message. That isn't there in my code. Forget that extra semicolon immediately after the second if()...
 
@kaloncpu57 maybe because if the value is superior to the max, then you set the value to the max, same for the min
OH, maybe you should not compare strings.
 
@dievardump It randomly picks one of those to run even when the value is in the middle.
Oh... Yeah, the attributes ARE strings. I'll use Number() and see if that helps.
 
00:00 - 19:0019:00 - 00:00

« first day (1575 days earlier)      last day (3391 days later) »