« first day (1712 days earlier)      last day (3252 days later) » 

5:00 PM
:(
 
@Luggage what's wrong with 401 unauthorized?
 
@SterlingArcher 401 is different from 403
401 == Who the fuck are you?
403 == I know who you are. GTFO.
 
i return 401 when the user isn't logged in
 
Ahhhh ok
 
5:01 PM
this 403 is for if they happen to get a link to a resource they aren't allowed to see
 
Also, 401 is technically associated with HTTP auth
 
I should have known that
 
i basically just: if (!req.user) { res.send(401); }
 
posted on June 24, 2015 by Alex R. Young

Node 0.12.5, 0.10.39, io.js 2.3.1 Two new releases of Node just came out. Both releases fix OpenSSL security issues, but 0.12.5 also includes updates for uv and npm. 0.12.5 0.10.39 io.js 2.3.1 was also

 
5:02 PM
> The server generating a 401 response MUST send
a WWW-Authenticate header field (Section 4.1) containing at least one
challenge applicable to the target resource.
 
oops
 
I'll deal with that when I make another pass on that section but right now my only api client is my own front end
 
Don't get me wrong, I sin at this as well
 
Just have a random 400 status code returned
 
5:03 PM
OK, then I'll just come clean. I have no intention of fixing that.
 
I respond with 401 and a link to the authentication resource
 
My son Robin was born today at 2.40pm, is 49cm long and weighs 2.9kg \o/
69
 
@FlorianMargaine oh my god congratulations!!
 
But I do plan to look for a better rest library that handles more later and switch to that..
 
@FlorianMargaine Congrats!
 
5:04 PM
If it's an API, I respond with 401 and a JSON object explaining that you have to include your API key in some way.
@FlorianMargaine Congratulations!
 
You should have named him ES2015
 
don't joke about 49cm long don't joke about 49cm long don't joke about 49cm long don't joke about 49cm long
 
At what age do they go from length to height?
 
At what age do they go from months to years?
 
5:05 PM
1 year would make the most sense to me
but I'm not a mother
so I have no say
 
I'm 287 months old according to my mom
 
I'm still a baby according to my mother
 
ditto
I'm the biggest but youngest in my family
 
Same
 
5:07 PM
Or at least in my "generation". I have baby cousins but there's like a 10 year difference between me and the oldest
 
same
 
user2620028
5:22 PM
@Sterling I have a cousin who is like 35 years older than me haha
 
user2620028
he has a son who is 5 years younger than me
 
@uselesschien no tornado, but a little a windy in here
@php_purest you so great dude teach me your ways
 
I have been looking at documentation for the .load aspect of jquery and can't seem to understand where the problem is with this code in i.e9 only can someone help please...
$('.fa-envelope,.eleven').on('click', function () {
    $( '#menu' ).multilevelpushmenu( 'collapse' );
    $('.nav-toggle').removeClass('active');
      $(this).addClass('active');
    $(".tile").addClass("flipOutX");
    setTimeout(function(){
       $('.metro').css('backgroundColor','#4c7fb5');
       $(".submenu-ctn").load("page.html #sidebar-company");
        $(".tile-group.main").load("page.html #content-company");
         $.getScript("js/MTHC-submenu-buttons.js");
    }, 2000);

});
 
having goat tits must be hard
 
So I basically think that the problem (in that the button does nothing in i.e9) relates to these two lines being incorrect but not sure why , inspite of looking at the docs.
$(".submenu-ctn").load("page.html #sidebar-company");
        $(".tile-group.main").load("page.html #content-company");
 
5:37 PM
IE NEIN
 
indeed
you know more german than i sir
 
@FlorianMargaine I always find it odd that they measure a baby's length, and not how tall he/she is
 
@havingagoatit I doubt that's the problem
 
I'm 6 feet long
 
> having a goat tit
 
5:38 PM
@MadaraUchiha what do you think on this one
 
If it does nothing then your event isn't firing
 
@Cereal I'm glad I'm not the only one
 
Try adding console.log() calls in your code in various places
See where it stops
Also, check your console for errors.
 
well i have been using development tools to track for debug , ... getting this one
 
@NickDugger It took me a few seconds to realize that wasn't his display name :d
 
5:40 PM
@MadaraUchiha SCRIPT5007: Unable to get value of the property 'defaultView': object is null or undefined
jquery.min.js, line 3 character 18072
 
Clearly, we're all quality gentlemen
 
this relates to the use of the button within multipushmenu.js
@NickDugger i think it is fine to mock my display name , it does read like that soemtimes
 
@havingagoatit That literally tells us nothing. Is there a stack trace?
 
@havingagoatit Sometimes people call me Duck Nigger
 
@NickDugger Yeah... Duck...
 
5:42 PM
You mean dick nugger
 
@NickDugger yours is better !
@MadaraUchiha stack trace ?
 
@havingagoatit The stack of function calls that led to that error
 
its this
return b.ownerDocument.defaultView.opener?b.ownerDocument.defaultView.getComputedStyle(b,null):a.getComputedStyle(b,null)};function
 
5:43 PM
@havingagoatit That still doesn't tell us anything.
 
trace means the tracing mark that the ministry of magic puts on underage wizards. stack trace is, thus, a stack of traces put on some famous underage wizards.
 
Something in your code caused the error
 
i could just start taking out the lines until it works perhaps ?
 
then we will know for sure what line
 
5:44 PM
6 mins ago, by Madara Uchiha
Try adding console.log() calls in your code in various places
 
@MadaraUchiha I knew it! I knew you were a 13yo redhead wizard!!!
 
@MadaraUchiha Duck, nigger
 
pls
 
@AwalGarg Also, I'm fairly sure he's supposed to be 11 in this picture
 
5:46 PM
hah
ive now done this just uploading
$('.fa-phone, .eleven').parent().on('click', function () {
      $('.submenu-ctn').fadeTo(0, 0);
      console.log()
      $("#colorscreen").remove();
      console.log()
      $( '#menu' ).multilevelpushmenu( 'collapse' );
      console.log()
      $("body").append('<div id="colorscreen" class="animated"></div>');
      $("#colorscreen").addClass("fadeInUpBigCS");
      console.log()
      $(".tile-area-main").css({width: "720px",opacity:1}).load("page.html #contact-form");
      $.getScript("js/slider/slider-animations.js");
 
@MadaraUchiha touché
 
...
!!tell havingagoatit mdn console.log
 
@havingagoatit Console.log()
 
Might possibly be the funniest thing I've ever seen
!!>console.log();
 
@Cereal "undefined"
 
5:47 PM
s/console.log/alert/g
 
Just making sure
 
thanks
 
npmjs.com/package/node-phantom-async what's the significance of the .bind({}) here, is it like .bind(this)?
 
It sets this to {}
 
5:48 PM
!!>this == {}
 
@uselesschien false
 
@uselesschien heh
!!> {} === {}
 
@MadaraUchiha "SyntaxError: expected expression, got '==='"
 
and why do it?
 
It sets this to a freshly created native ECMAScript object inheriting straight from Object.prototype.
 
5:49 PM
!!tell erikroyall sandbox
 
@erikroyall Please go and play in the Sandbox
 
@argentum47 probably to override the global this value inside the function
 
@CapricaSix oops
 
@AwalGarg Nope
 
ah wait it is calling it on phantom.create()...
 
5:50 PM
@argentum47 Bluebird's bind method binds an object to the this of all further .then() callbacks in the chain
 
didn't work , thanks for your help though guys
 
So, CapricaSix executes our code inside a web worker
 
It's so that they can store objects across all of the promise chain./
(Like this.ph)
 
> these properties allow FF to function. without them, a fuckfest of
inexplicable errors enuses. took me about 4 hours to track these fuckers
down.
The most professional of code bases
> /* TEE HEE */
lol
 
5:57 PM
@Cereal What do you expect? @Zirak wrote it
 
okies
 
ooh caprica allows escaping from strict mode as well
!!> (0, eval)('x="foo";x')
 
@AwalGarg "foo"
 
@MadaraUchiha so if I have a method like Scraper.prototype.escapeBefore = function(selector) { this.somevariable = selector; }. can I access the this.somevariable inside the then(function() { this.somevariable }) ?
 
@argentum47 Wha?
 
6:03 PM
wait, let me write the codes, then I will be able to show it properly :P
 
How do I resolve a then handler asynchronously (native Promises)?
Don't laugh at my wording, I'm new to this
in other words, I want to do one async operation, followed by another async operation, and resolve to the return value of the second one
 
you return a new promise
 
from the then handler?
 
Promise.resolve('http://url').then(url => new Promise((res, rej) => $.ajax(url, res)))
yep
 
6:06 PM
it keeps chaining because you immediately return a promise
and you can just resolve it later like normal
 
The way I understand it, then returns a promise resolved to the return value, but if the return value is a promise, it returns that instead?
 
@KendallFrey You return a promise from your first then
 
pretty much
 
Then you can chain them
 
if you return something that isn't a promise, it turns it into a promise type close enough sort of thing
 
6:08 PM
thanks bros
 
@KendallFrey MDN has a really nice explanation if you want to get started with promises, just saying
 
@afonso-bot 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.
 
shit
 
ok I'm here
 
someAsyncAction()
    .then(result => someActionThatReturnsAPromise(result))
    .then(secondResult => uwotm8(secondResult))
 
6:09 PM
@KendallFrey you can't stop me from laughing at your wording. I will laugh. Actually I am laughing. HAHAHAHAHA.
 
@afonsomatos not subtle at all
 
@afonsomatos Your bot passes the turing test!
 
Can you use promises to do some kind of rollback on a mongo document?
 
I just opened the wrong browser that's all
 
@corvid mongo does not have transactions
 
6:10 PM
STOP POSTING RANDOM IMAGES YOU TROLL! IT EATS MY BANDWIDTH!
 
haha
 
That's why I said "some kind of"
 
!!afk brb creating a 50MB gif to troll @AwalGarg
 
ooh buddy, just get code coverage working for my ES6/webpack project's karma tests
this is sweet
gonna add it to the web template this evening, if I have time
 
@ssube Ooh, I would love seeing the build/deploy infrastructure of that
 
6:12 PM
I bet I could get the web-template project hooked up to TravisCI
that would be worth doing a room talk about, I guess
 
@ssube can you do it with jspm and mocha and publish a template on GH? KTHNX!
 
@AwalGarg no jspm, but it uses mocha and I have a template on github that I'll add it to :D
 
@ssube what module implementation does webpack use? and sourcemaps?
 
@AwalGarg UMD and no, that's another todo
 
@ssube umd is nice. ring me when you get sourcemaps working
I am looking for something in addition to jspm for small stuff.
 
6:16 PM
sourcemaps are my next thing, since we want them for work too
 
hopefully by the time you get sourcemaps, firefox will fix the sourcemaps incompatibility issues with chrome
 
@corvid If you want a reliable database, don't use Mongo
 
@SomeKittens Alas I do not have that option
ssube do you have a github with open source javascript projects? I want to see what a full ES6 project would look like and if there are any cool things
 
a full es6 project will look like a full es5 project
only classes and imports
 
6:22 PM
this looks way more like a language like python or ruby than JS, in a good way
 
don't call it python
I wonder how much of my project is converted to ES6 so far..
JS is also #1 on github: githut.info
 
6:40 PM
challenge: write a function isNegZero such that isNegZero(0) is false and isNegZero(-0) is true
 
No
 
in PHP, Feb 20 '13 at 15:00, by pbvamsi
i want to create new web browser using PHP, can someone suggest best tutorial
 
function isNegZero(s) {
    return (1/s) === Number.NEGATIVE_INFINITY;
}
@apsillers
 
@Cereal yep
 
@apsillers Had an interview you needed to pass?
 
6:48 PM
Only reason I knew that is because cap doesn't know what negative infinity is
!!> Number.NEGATIVE_INFINITY
 
@Cereal null
 
So what's new in VS2015?
 
I just found out it's possible to do without arithmetic operations; thought that was interesting
function isNegZero(v) {
    try {
        Object.defineProperty(Object.defineProperty({}, "a", { value: 0 }), "a", { value: v });
    } catch(e) {
        return true;
    }
    return false;
}
 
Using a try/catch as logic is so greasy
 
@uselesschien you can technically do it. php has all the network functionality inbuilt to write the backend. then use gtkphp for the gui.
 
6:55 PM
@AwalGarg ...
 
@uselesschien ???
 
I'm going to make a web browser in JS. I'll use node-webkit.
Done.
 
!!inur js
 
@MadaraUchiha yo dawg i herd u lik js so i put sum js in ur js so u can js while u js
 
6:57 PM
!!> 1/-0
 
@AwalGarg I'm not gonna write JEE Adv. Life feels so much better now.
 
@MadaraUchiha null
 
i'm 1/3 ES2015, 2/3 Coffeescript. I have more converting to do.
 
@uselesschien congrats. you just saved a minimum of 3 hours of your life.
 

« first day (1712 days earlier)      last day (3252 days later) »