« first day (1254 days earlier)      last day (3916 days later) » 
00:00 - 15:0015:00 - 00:00

00:01
!!> Date.parse("Sat Mar 22 2014 19:43:17 GMT-0400 (EDT)").toString()
@HostileFork "1395531797000"
!!> (new Date()).toString()
@HostileFork "Sat Mar 22 2014 20:02:14 GMT-0400 (Eastern Standard Time)"
Hrrrm. What's up with that?
Two functions do different things?
00:03
!!> Date.parse("Sat Mar 22 2014 19:43:17 GMT-0400 (EDT)")
@copy 1395531797000
parse returns the time in miliseconds
!!> new Date( Date.parse("Sat Mar 22 2014 19:43:17 GMT-0400 (EDT)")).toString()
@copy "Sat Mar 22 2014 19:43:17 GMT-0400 (Eastern Standard Time)"
1 message moved to Trash can
!!> new Date("Sat Mar 22 2014 19:43:17 GMT-0400 (EDT)")
00:04
@BenjaminGruenbaum "2014-03-22T23:43:17.000Z"
Well what do you know, when the API is used correctly it works :P
@BenjaminGruenbaum That's three different string representations of something that I would think becoming a date would have canonized somehow in the process. :-/
Don't use toString on dates? It's implementation defined. If you want toString with a specific format do that. You want .toUTCString() perhaps?
!!> Object.getOwnPropertyNames(Date.prototype)
@BenjaminGruenbaum ["constructor","getTime","getTimezoneOffset","getYear","getFullYear","getUTCFul‌​lYear","getMonth","getUTCMonth","getDate","getUTCDate","getDay","getUTCDay","getH‌​ours","getUTCHours","getMinutes","getUTCMinutes","getSeconds","getUTCSeconds","ge‌​tMilliseconds","getUTCMilliseconds","setTime","setYear","setFullYear","setUTCFull‌​Year","setMonth","setUTCMonth","setDate","setUTCDate","setHours","setUTCHours" (snip)
00:12
@BenjaminGruenbaum Okay, so Date.parse() doesn't return a date (obviously!) but it returns something that can be mathematically operated on relative to a date, and toString apparently returns whatever it feels like so don't ever call that except in debug scenarios, and the .toUTCString method is what I want. Is .toString() on integers implementation defined too? Sigh. But thanks.
y u send \r\r\n instead of \r\n :(
@HostileFork if you want a more robust date API just use moment
I'm sending an http request, not a joke!
@BenjaminGruenbaum Saw that; still trying to control dependencies a bit, don't need anything fancy. Just trying to get my client to check and make sure when it asks the server to post a message and come back with a cryptographic hash that the date it gave back isn't more than 60 seconds clock skew from when it asked. I guess I should still give the URL of the post back in case you're on a slow connection, though.
these guys should be way more famous
00:40
i need help with table sorter
00:59
Well the Google JS API is still screwing me over so I think I will be writing a nodejs app :p
01:22
@user1475632 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.
01:45
would hate to read something written by someone else using that
I am using Javascript in VS2013 for Windows Store Apps
And I keep getting this error:
0x800a1391 - JavaScript runtime error: 'Application' is undefined
02:00
@Mosho yeah, would be hard
0
Q: 0x800a1391 - JavaScript runtime error: 'Application' is undefined

DemCodeLinesI was following the "HelloWorldWithPages" tutorial from 0x800a1391 - JavaScript runtime error: 'Application' is undefined It occurs right here: return nav.navigate(Application.navigator.home); Here is the full file: default.js // For an introduction to the Navigation template, see the follo...

02:15
@David 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.
typeof document.all
"undefined"
m59
m59
02:37
Does anyone know what npm tag actually does? npmjs.org/doc/cli/npm-tag.html
Where is that stored? Does it just create a git tag?
What's the best way to chain jQuery promises (with when)?
@user2872778 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.
@danieldorn 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.
@m59 you specify some versions other than defaults
m59
m59
@Mosho I don't need to worry about it?
and then you do npm publish --tag dev
02:53
where would i need to start with a video chating , i want to use javascript and jquery but not sure if thats the best thing to use or even if it is posible
and when people install it they install those versions
m59
m59
sigh...so not only do I need to be tagging my git releases, but tag with npm also?
@Mosho rlemon.ca/cavecrawlerm mobile version, responds to touch
@danieldorn WebRTC
@rlemon noob version :(
m59
m59
02:55
shouldn't it just read from the package.json to get the version?
well on desktop
@m59 it's only if you want it to install other versions
if you have a package.json with the versions you want
try it on your mobile.
rlemon.ca/cavecrawler there is also a update desktop version
aight
m59
m59
@Mosho uh, isn't that backwards?
02:56
.
m59
m59
If I'm publishing, you mean I have to tag it so that people can install certain versions rather than just the latest?
@rlemon when you get the speed boosts it reverts back right away
is that on purpose
not fully.
+25 -15
650 ms
aight
(length of eye shut)
also gives +10 score now
02:58
cool
can't find my phone
sec
@m59
er
yes
if you want people to use npm install and get a version other than the latest
you use the tag
m59
m59
and you're certain it doesn't do any auto-tagging?
I don't know how I will manage it for touch
it seems strange to me
m59
m59
Pretty fail if they can't automatically tag something by looking at the pkg version
(works in landscape only)
@m59 not sure what you mean
m59
m59
03:02
The package.json contains the version. I don't see any reason they wouldn't just tag that version for you
now... music
??
yay or nay?
m59
m59
of course
I was thinking like a tetris soundtrack
peeople
mobile version is a bit buggy
03:07
how come !!document.all === false?
that's really bad
and yeah, it feels a bit silly when your finger is covering the guy
yea :/
m59
m59
@rlemon maybe you could make a little touch area instead
@Connor We've had that topic before, something with feature detection
m59
m59
just move your finger around in that area to control him
03:08
or use the gyroscope? :D
m59
m59
^
@Mosho oh wait. So tag !== version
@copy hmmm, any magical spells i can cast on it?
if you have lots of versions
m59
m59
If I get this right - you can always download each version, but you can have tags also?
and you don't want people to get the latest when they npm install <name>
then you use the tag
m59
m59
03:11
"A tag can be used when installing packages as a reference to a version instead of using a specific version number:"
yeah
m59
m59
Doesn't that mean that you CAN use a specific version number, even without tagging?
@Connor Don't use it
sure
it's just for convenience
m59
m59
That's exactly what I've been trying to figure out :)
03:11
@copy I'm not, but i want to be able to support it, this fixes it
document.all = document.querySelectorAll('*')
@mgoszcz2 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.
@m59 it's so that people can, for example, npm install <name> for the current release but npm install <name>@beta for the latest dev version
for example
m59
m59
word
@BrianVanover 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.
@HirokiOsame 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.
m59
m59
@Mosho with great anxiety, I present to thee npmjs.org/package/grunt-pmkr-license
03:29
@m59 do you edit the scripts? or do you have an option to create new files with the license added
m59
m59
<-- ?
dat silence
m59
m59
I didn't figure there was any need to reinvent grunt-contrib-copy, so it modifies whatever you tell it to
At homegroup:
Them:"You ever heard of StackOverflow?"
Me: "yeeeeeaaah, who's asking?"
m59
m59
hehehehe
03:32
@m59 well, you did copy their readme :D
m59
m59
I did?
unless it adds that
or you are supposed to add it to stuff that use grunt :P
m59
m59
I think so.
dern typo in readme
2k rep! I feel powerful now.
I got 2 audits (edit and low-quality) and passed both.
@bjb568 Congratulations. You win the internet!
03:40
Hooray...
@rlemon did it work?
cocoonjs?
@bjb568 do you strive for power?
No. The "recommend deletion" seems too powerful for me.
That glaring button...
Looking at my soul.
It could be my first failed audit.
It could make a noob cry...
It could DESTROY… wait, wrong line.
03:55
forgetting your lines is not going to get you the administration officer position
It seems like something a 3ker should do.
@connor I definitely don't deserve that.
@bjb568 no, you wouldn't lower yourself that much
Yeah. Hate your job and be hated.
Nobody wants that.
Except those who don't deserve it.
Which makes the process start over.
It's a loop.
A stackoverflow.
I love how people who work in "administrative" positions always walk around shops with their badge on their chest, it's like they're trying to prove something and i hate that
Yeah.
03:58
anyway let's forget that childish reality
And go to a different one?
Let's go to a reality where I know how to make landing pages
@pavelkolodin 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.
04:00
@SomeKittensUx2666 just find the Landing Page Administration officer
Can anyone help me fix this? Click on the first + sign to toggle
http://jsfiddle.net/CH9H8/
I don't know how to make it toggle between - and +
    $('.wpc-categories li:has(ul)').addClass('toggle-menu-less');
    $('.cat-item-68').click(function(e) {
        e.stopPropagation();
		$('.cat-item-68 ul').toggle('slow');
		$('.cat-item-68').removeClass('toggle-menu-less');
		$('.cat-item-68').addClass('toggle-menu-more');
    });
04:19
!!urban yer
@Connor [yer](http://yer.urbanup.com/1590139) 1) An alternate way of spelling "You're" or "Your."

2) An alternate way of saying "Yes."
That's awesome @Connor, thanks a lot! I'll study your code here
alright mate
@reidjako 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.
@Narayana 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.
04:32
forest level progress @grapple_hero #gamedev https://vine.co/v/MMwOXjV2qJv
4
check out dat forest level :P
dat breeze
haha yea
man this sucks
angular works so nice
until it doesn't
yeah, I didn't really get it the first time I saw it :P
04:53
@nikhil 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.
({
  link: function(scope) {
    return scope.popup = function(id, elm) {
      var popup;
      popup = angular.element('#' + id);
      if (popup.attr('container') !== '#' + elm) {
        popup.attr('container', '#' + elm);
        $compile(popup)(scope);
      }
      $timeout(function() {
        return popup.triggerHandler('popup');
      });
    };
  }
});
am I adding an element anywhere
In the chrome extension I'm building, I couldn't inject contentscript into a page. I tried chrome.tabs.executeScript(null, {"file": "contentscript.js"}); later I modifed an element in the page, but it is not modified. Does this mean my script is not injected well. I'd be glad if anyone could answer this. For more details, I'd love if u could refer stackoverflow.com/questions/22573848/… this question of mine.
m59
m59
05:13
@Mosho hmm...it's acting buggy now. Not removing the banner from one of my files.
I was gonna ask if it can just add :P
m59
m59
I don't see how this can be possible..
if it adds the exact same banner to 4 files and does the same check on all of them
how can the banner only be removed from 3?
mind blown
@Mosho sigh...it works again for no reason :)
JS does it again
how do I.... decompile from angular
or whatever
idk what I'm even asking
@dezinezync 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.
m59
m59
me neither =D
05:21
in my code above, I take an element with a directive that adds a listener
then I add an attribute and compile it
and then it has 2 listeners
how do I unregister the first one
hmm, $destroy
a bit dramatic
m59
m59
are you looking for the $watch sort of thing?
var x = $scope.$watch(//etc

x(); //killed it
not sure what you mean
ah
no
element.on('popup', function(){$timeout($customTooltip.toggle)});
just a listener
scope.$on('$destroy', function() {
is has this
m59
m59
Ohhh, just an event listener
yeah
solved it another way
simpler, better, why-didn't-I-do-it-like-this-in-the-first-place-er
m59
m59
how'd you do it?
05:30
instead of having a directive that does the popover and I add to it
I add the popover directive with what I wanted to add
popup.attr('container', '#' + elm).attr('bs-popover','')
or rather
popup.attr({
            'container': '#' + elm,
            'bs-popover': ''
          });
this will probably come back to bite me in the ass though
(all this is for trying to create a popup that responds to any custom event on any element on the document)
I'll make sure I use your grunt plugin when I need it :P
$timeout((() -> popup.triggerHandler('popup')),50)
this works
but $timeout(() -> popup.triggerHandler('popup')) doesn't
so hacky
0
Q: Unable to get WinJS.xhr to properly retrieve XML file

DemCodeLinesHere is what I have: function HelloFeed(WPFeedUrl) { var title, articles; WinJS.xhr({ url: WPFeedUrl }).then(function (rss) { title = rss.responseXML.querySelector("title").textContent; var items = rss.responseXML.querySelectorAll("item"); for (var n = 0; n < ite...

m59
m59
@Mosho I updated. I finally figured out how to task alias the "remove" properly. Now pmkr-license-remove is available with the optional target
pmkr-license-remove:targetHere
Before it was pmkr-license:target:remove <-- lame
I wanna get into grunt more too
seems to have potential to make life easier
but I can just imagine all the tediousness
m59
m59
OH GOSH yes
You said you're using it already, though?
You almost have to be, considering you use coffeescript, right?
05:46
I'm building a service that mails your customers birthday cards. Name suggestions?
m59
m59
Birthdayum
m59
m59
wow lol
Ale
Ale
Cardly
KittenCards
m59
m59
How about get well cards for testicular cancer patients?
Testicards
05:51
@SAMdroid 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.
m59
m59
@Mosho if you want to see my grunt workflow, you're welcome to. I'm trying to finish it up now.
Card Minion?
m59
m59
not bad
Also lets me expand beyond birthdays
m59
m59
yep!
aka Special Dayum
05:55
Designing a landing page is rather hard
m59
m59
I have 0 design skills.
@SomeKittensUx2666 how about spam+
m59
m59
LOLZ
@m59 That's what I'm trying to improve
@m59 I use it, superficially imo
grunt that is
m59
m59
05:57
Did you get to look at my plugin? Is it silly?
well, it's something very routine that everyone needs to do, so yeah it's useful
I would use it
if it works well
m59
m59
if haha
Like I said, once in a while, it seems to not want to remove things...
two options
1) magic
2) your code
m59
m59
Yeah, I'm betting its the magic.
:)
I'm actually betting it's IntelliJ being a whore.
Maybe somehow file access is being blocked...
Ale
Ale
Okay guys, want another mod for CC?
origRandom = Math.random; Math.random = function() { return 0.3 - origRandom(); }
06:04
anyone want to help please?
Ale
Ale
@DemCodeLines Just ask
I did
0
Q: Unable to get WinJS.xhr to properly retrieve XML file

DemCodeLinesHere is what I have: function HelloFeed(WPFeedUrl) { var title, articles; WinJS.xhr({ url: WPFeedUrl }).then(function (rss) { title = rss.responseXML.querySelector("title").textContent; var items = rss.responseXML.querySelectorAll("item"); for (var n = 0; n < ite...

FOOOOOOOOOOOOOOOOOONNNNNNTSSS!!!!
Drat. The domain I want is taken
07:06
@Ale a what?
I'm le tired
but this code won't leave me alone
LEAVE ME ALONE, CODE
user1642018
hello all.,
hello @AMB
user1642018
i need help with php code., i am creating new small array from one big array. but the code keeps looping continuously .
user1642018
if(strlen(json_encode($files)) > 255){
	$small_array = array();
	foreach($files as $path => $size){
 		while(strlen(json_encode($small_array)) <= 255){
		$small_array[$path] = $size;
		}
	}
}
user1642018
07:13
small array's strlen json_encode should be less than 255
user1642018
what i am doing wrong ?
maybe you want
    if(strlen(json_encode($files)) > 255){
    	$small_array = array();
    	foreach($files as $path => $size){
     		while(strlen(json_encode($small_array)) <= 255){
    		$small_array[$path] = $files;
    		}
    	}
}
user1642018
i have even tried with if loop but the last entry makes it longer than 255 , i can manage with another if loop to unset last key, but prgramatically that would be wrong.
user1642018
@Connor nope, $small_array[$path] = $size; is correct.
it looks like the foreach will only run 1 iteration
user1642018
07:18
@Connor this is working, but is this programatically correct ?
user1642018
if(strlen(json_encode($files)) > 255){
	$small_array = array();
	foreach($files as $path => $size){
		if(strlen(json_encode($small_array)) <= 255){
		$small_array[$path] = $size;
		}
		if(strlen(json_encode($small_array)) > 255){
		array_pop($small_array );
		}
	}
}
@AMB I was just going to suggest a if so probably
you cannot have a while loop in a for loop, it never makes sense
especially when it's not ever assigning anything different
user1642018
@Connor okie, then i guess 2 if are OK.
@AMB only do this once
(strlen(json_encode($small_array))
save it or something
user1642018
okie, i got it , just a sec.
07:21
if(strlen(json_encode($files)) > 255){
	$small_array = array();
	foreach($files as $path => $size){
		$len = strlen(json_encode($small_array))
		if( $len <= 255 ) {
			$small_array[$path] = $size;
		} else if( $len > 255 ) {
			array_pop($small_array );
		}
	}
}
like
user1642018
i was thinking more like this, but its still like the second one.
user1642018
if(strlen(json_encode($files)) > 255){
	$small_array = array();
	foreach($files as $path => $size){
		if(strlen(json_encode($small_array)) <= 255){
		$small_array[$path] = $size;
			if(strlen(json_encode($small_array)) > 255){
			break;
			}
		}
	}
}
or that
user1642018
@Connor your code looks promising.,
don't follow my advice when it comes to PHP
user1642018
07:24
@Connor sure thing.
Anyone have any idea how this works? jsfiddle.net/E4b5d/1
@ShekharPankaj 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.
user1642018
@Connor its working finally...
user1642018
if(strlen(json_encode($files)) > 255){
	$small_array = array();
	foreach($files as $path => $size){
		$len = strlen(json_encode($small_array));
		if( $len < 255 ) {
			$small_array[$path] = $size;
		} else {
			array_pop($small_array );
		}

	}

}
user1642018
but still loks wrong, damn i am gonna writecode that again., thanks for your time .
07:31
ok
@phenomnomnominal Konstantine it is.
@Micah-psIloveyou 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.
@Mosho Never heard of the book, but it's by Addy Osmani, so it's probably good
Ale
Ale
Any way to use SOCKS with peerflix?
The best thing I've seen is github.com/mattcg/socks5-https-client, but it's for HTTPS
08:11
@SomeGuy kewl
08:25
@BadgerGirl Hmm?
@BadgerGirl the song?
Ale
Ale
Sb had to do this
 
1 hour later…
09:42
@mildtaste 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.
Ale
Ale
How do I start fucking write code?
10:01
@Ale assuming write code is code, this is physically impossible
Ale
Ale
:P
post a question on stackoverflow that says 'pleas send the codes'
// how can i achieve this in regex

str = 'object[name[index][position]]'

// to get the following

["object[name[index][position]]", "name", "index", "position"]


// At the moment i have this

///
	^ [ A-Z a-z 0-9 $ _ ]
      [ A-Z a-z 0-9 $ _ . ]*
	  (?:\[ [^\]]* \])?
////

// and i get this, somehow i need to repeat the first match inside the `[]` brackets
"object[name[index]"
it's a case of repeating the first 2 parts ^ till * forever until it doesn't find any more [.*] any ideas?
10:16
@Connor first match the body, then split it
@ShajeerAhmd 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.
yeah, probably overthinking stuff :)
10:54
@Freefri 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:06
@cyberPheonix 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 hour later…
12:20
Hello All
how come it's so quiet here? :)
Always is on the weekends
Ale
Ale
12:41
mvn test
fuck java
> method concatByteArrays in class BWT cannot be applied to given types;
> testBWT(ws.incrowd.ale.school.archiver.BWTTest): [B cannot be cast to java.lang.Comparable
12:57
@StefanWittwer 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.
@Loktar not off the bat.
I need to re-structure some shit in the game
I got thin touch working but it doesn't work well for my game
so idk now
13:18
@3ventic 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.
13:37
@Gowtham 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 hour later…
14:47
@Amirhosseingholzam 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.
00:00 - 15:0015:00 - 00:00

« first day (1254 days earlier)      last day (3916 days later) »