« first day (1467 days earlier)      last day (3467 days later) » 

8:00 PM
Benjiiii!
 
It doesn't require a height:4000px if the page is large, and also if content changes while the element is present it does not have to re-render
 
I would guess IE "invented" XMLHttpRequest
 
Microsoft actually named it right
They named it IXMLHTTPRequest
It's Mozilla that dropped the ball, lemme look for it
 
pro-tip: don't give position:fixed to any content that might be larger than the screen.
 
8:01 PM
I thought that IE came up with ActiveXObject?
 
@JanDvorak - Pretty obvious
 
AJAX
 
@SterlingArcher I think so
 
10
Q: Why does XMLHttpRequest not seem to follow a naming convention?

AlecI've been working with the XMLHttpRequest object in JavaScript recently, and I couldn't help but notice that the casing of this name makes no sense. Why is 'XML' all in caps while 'Http' is not? They're both acronyms! Surely it'd make more sense for the name to be one of the following: XmlHt...

 
Didn't AXO predate XHR?
 
8:01 PM
@JanDvorak - So no explanation for why the absolutely positioned element isn't properly showing?
 
I still use ActiveXObject now and then
 
@TravisJ less obvious: there are some really small screens out there.
 
@SterlingArcher yeah, they had XHR first, but they named it right
 
@TravisJ negative z-index?
 
8:02 PM
Negative? What does that have to do with the demo
 
currently speaking from a hotel in Paris...
I think I'm going to take a bath
 
@BenjaminGruenbaum never thought I'd actually learn something from posting a buzzfeed tweet
 
A bath in a hotel? You are a brave man
 
That tweet is hilarious btw.
 
I hope you brought your blacklight
 
8:03 PM
save the blacklight for the bed
 
@BenjaminGruenbaum follow them on twitter. Almost all the tweets they post make me lol
 
@TravisJ a 3-stars hotel, I'm fairly certain nothing bad will happen.
 
@FlorianMargaine what about spiders?
 
@FlorianMargaine Paris is awesome :D
 
@BenjaminGruenbaum what does that I mean?
 
8:04 PM
I was just there a week and a half ago.
 
user2620028
i thought paris was infested with foreigners?
 
3 star doesn't really go that far
 
@JanDvorak Paris... in the 2nd arrondissement (no idea how to translate that)
@BenjaminGruenbaum heh :)
 
How about thiso ne guys?
 
I'm there for work though
 
8:04 PM
@HatterisMad good point. Check if there are any foreigners under the bed before you sleep
 
@FlorianMargaine quarter works, although.
 
@FlorianMargaine still counts :D
 
Don't kill spiders bro :(
 
user2620028
Like county @florian?
 
8:05 PM
I hear you eat up to 7 foreigners in your sleep in your lifetime
 
no
more like district?
 
user2620028
yeah
 
What if syntactically, what the user inputted was correct, but it turned out to not exist on the API I'm requesting it on?
 
Most of the Paris we see today is a result of a late-nineteenth-century renovation, but the wide boulevards lain then only bordered and bisected much older quarters of activity created by centuries of Parisian City evolution. For this, Paris has many quarters that are not necessarily mentioned on any administrative Paris map, and many of these spread across several of the city's arrondissements, so it would be useful to describe each independently of any administrative boundaries. Below are a few quarters that have developed or retained a character of their own, usually identifiable by thei...
 
anyway, a beautiful quarter
business quarter, as they like to call it
 
8:05 PM
So for example, I ask the user for an ID for a remote resource, but that resource is not found on the remote server.
 
@BenjaminGruenbaum thanks
 
Yeah, it's an amazing area :)
 
@SecondRikudo does the resource exist?
 
Oh wait, I was wrong @FlorianMargaine there are two divisions.
This is the correct one, and correct term:
The city of Paris is divided into twenty arrondissements municipaux, administrative districts, more simply referred to as arrondissements (pronounced [aʁɔ̃dismɑ̃] in French). These are not to be confused with departmental arrondissements, which subdivide the 101 French départements. The word "arrondissement", when applied to Paris, refers almost always to the municipal arrondissements listed below. The number of the arrondissement is indicated by the last two digits in most Parisian postal codes (75001 up to 75020). == Description == The twenty arrondissements are arranged in the form of ...
 
8:06 PM
it's actually arrondissements
 
yeah, read that in the previous link :P
so: 2nd arrondissement :D
 
@FlorianMargaine The resource isn't mine. I'm fetching it from a remote server, on which it doesn't exist because the user entered a fake one.
 
Yeah, if it makes you feel better the Hebrew names are even worse :P
Anyway, <3 Paris.
 
@SecondRikudo ain't that the standard definition for 404?
 
8:07 PM
@SecondRikudo so you're like a proxy?
@BenjaminGruenbaum where did you go? Montmartre? Tour Eiffel?
 
@FlorianMargaine You can say that
I'm expecting an ebay listing ID, and I want to validate that it belongs to an actual listing.
 
@AwalGarg But the resource isn't mine
 
"It has to be a line by line explanation of how it achieves its purpose." - Or else it gets the hose again? — David 10 secs ago
LOL
 
It'd make sense for ebay to reply to me with a 404 about the nonexisting listing, but what would be the correct thing to return to my user?
 
8:09 PM
@FlorianMargaine I was in the Louvre twice, in the other important museums (d'Orsay, Orangerie, Pompidu centre, Rodin etc.), we did go up on the Eiffel this time and the Arc de Triumphe. Went to see the gardens (Luxemburg and Tuilerie etc), went to a cabaret, had good food, we did a lot of stuff but didn't have enough time :)
 
If I return a 404, it implies that the resource the client posted to wasn't found
Which isn't the case.
 
woa, indeed you did a lot of stuff
awesome
 
We did so much in paris, especially contrasted with the rest of the tour :P
 
your mum returned a 502
 
@SterlingArcher deleted
 
8:10 PM
After Paris we went to Belgium which was mainly walking the streets and having good beer and chocolate.
 
well there's so much to do in Paris
 
like bread and wine
 
I've heard of a guy who managed to sell the Eiffel tower to scrap metal
 
Afterwards we were in Amsterdam in which we did pretty much nothing for 3 days, which is expected given Amsterdam. We did go see the Van Gogh museum but that's really it.
 
@AwalGarg Whoa
 
8:10 PM
off to the bath, cya guys
 
@JanDvorak good good
 
enjoy :)
 
Nice, they added HTTP to devdocs!
 
@JanDvorak - It would seem that "positioned" element's children cannot surpass their parent's z-index.
 
@TravisJ No, that's not the case.
The child's z-index is always relative to the closest positioned parent.
 
8:12 PM
@TravisJ Learn about stacking contexts
 
@SecondRikudo it's been 10 years!
 
It is capped.
@SecondRikudo - What do you make of this situation? jsfiddle.net/1zcxzhu1
 
.parent + .sibling {
    z-index: 50;
}
.parent {
    position: relative;
    z-index: 0;
}
.parent .child {
    z-index: 100;
}
In this case, IIRC, sibling will be on top
 
@SecondRikudo use 203 then
 
@AwalGarg It's not OK though
It's a validation error.
A business one, sure, but a business error nonetheless
 
8:14 PM
When google finds no search result for me, it still returns 200... KWIM?
 
@AwalGarg it's not an error state
 
@TravisJ Yeah, exactly for that reason
 
@JanDvorak indeed. That's what I am saying.
 
@SecondRikudo - Your example css is inconsistent with itself
@SecondRikudo - However, it is not relative, it is capped.
 
just use less
 
8:15 PM
@TravisJ why should it be?
 
@SecondRikudo - If it was relative, it could be increased.
 
@TravisJ Not relative as in it adds
Relative as in it's contained within it
Think of it more like specificity.
The z-index "score" of the shade is 149
 
That probably isn't the best word for it then :P Okay, specificity, as in the child's z-index does not get calcualted
 
The z-index of pop is 150
 
well, gnight guys ;)
 
8:17 PM
Once .holder gets positioned, z-index of pop drops to 0, 150
149 > 0, so it wins.
 
err... no
 
mia
cart.js is anyone familiar with it?
 
Even if pop's z-index were 9999 and shade's were 1 you would have seen the same issue.
 
Okay so we were trying to say the same thing
 
relative z-index values only matter within stacking contexts.
and only for positioned elements
 
8:18 PM
I will just restructure the html
 
@TravisJ If you're trying pop to be on top of shader
You probably want them as siblings
 
@SecondRikudo - It was before, I just have to remove pop from holder
Adding in fixed causes some interesting issues
 
@TravisJ Make sure that ESC closes the shader too on your production app :)
 
esc? okay
 
noob question
> git add -A --force
will that add everything regardless if its in a .gitignore?
 
mia
8:21 PM
simplecartjs.org is anyone familiar with it who can help me?
 
nm
it does, I should have just tried it first O.o
 
I don't agree with this revision
Can I roll it back?
 
you should be able to
*recommended
 
@SterlingArcher upvoted, and reverting the edit is perfectly fine, he is changing your answer's tone which isn't really ok.
Fixing is good, adding is good, updating is good but changing the tone is bad.
 
8:27 PM
Agreed, it could be a personal thing to use === over ==, but isn't type comparison always better anyways?
And thanks :)
Not really a +7 worthy question, but yay more rep
 
Not if you consider that there's no type-safe version of > etc.
 
@Loktar service call. got there, dudes internet was unplugged
<3 those
 
@SterlingArcher did you see OP's username?
 
How do I protest the changing of meaning of someone else's answer?
 
Roll it back
 
8:28 PM
I'm indifferent to the answer's content, but altering people's words is not ok
 
@NickDugger lmao
 
Spelling, fine
 
s/words/swords/
 
^ xD
So basically, because he removed my recommendation (which could very well be a personal recommendation) it's a bad edit?
 
It clearly disrespects your intent
 
8:30 PM
@Blazemonger one justification for it is coding standards. Whenever I see a == in code I read I have to look at it for a few seconds before I realize what the author was trying to accomplish since it's very uncommon to see == these days. Not to mention that because == is uncommon people might mistake "0" in type conversion rules. Especially since "0" is a non-empty string which is still falsey and stuff like "0" == false evaluate to true. I can definitely see why SterlingArcher would not recommend it. — Benjamin Gruenbaum 1 min ago
 
I mean, I wasn't upset, I simply took it as he recommended == over === which I disagree with
@BenjaminGruenbaum whoa, well said
 
!!> "0" == false
 
I wanted to say Dutchess instead of SterlingArcher but I thought that'd just confuse everyone else :P
 
@KendallFrey true
 
I had no idea
 
8:31 PM
use not $r===0 but $r==="0" as .val() returns a string — Anarion 8 mins ago
oh god D:
@BenjaminGruenbaum I thought it was Dutchess too, but apparently it's properly spelled Duchess (no t). Confused the hell out of me
 
Oh lol, my bad.
 
Not your bad! More or less, fun fact?
I was shocked to learn there was no t
 
function Actor(storeName){
	this.__ee__ = EventEmitter();
	this.__storeName__ = storeName;
}

['on', 'off'].forEach(function(handler){
      // Mostly at this proxy part ?
	Actor.prototype[handler] = function(){
		this.__ee__[handler].apply(this.__ee__, arguments);
	}
});
am i doing composition wrong ?
 
@SterlingArcher wat
y u no spell
 
8:34 PM
twa
 
Well, this is great customer support:
> We are sorry for the inconvenience. However, we are unable to help You any more.
fuck you too
 
@KendallFrey don't take it personally, the Y is capital.
They're specifying a person named You, that they clearly hate.
 
1: Who are you?
2: I am You.
1: No, I am me, you are you.
2: Yes, that's what I just said.
 
@darkyen00 why the quirky syntax and python __stuff__?
 
@BenjaminGruenbaum ... that OP T_T
 
8:35 PM
With Express, if I have multiple route.post('/', function(req, res, next) {...}), they'll all run one after the other, right? Like normal middleware?
 
so how can i use type of here? — No nick please 1 min ago
 
@BenjaminGruenbaum i like __stuff__
 
So, with that, does anyone have recommendations for a decent free web host?
 
_stuff feels quite uglyish to me
 
I think my site may have PHP in it, so that's a requirement
 
8:36 PM
@darkyen00 I like rainbows. Doesn't mean I invent my own conventions other people won't understand.
 
@SterlingArcher I think my site may have PCP in it, so that's a requirement (source)
 
Also, I'd make EventEmitter its own type.
 
:-/ i have seen this pattern in js too
 
@KendallFrey honestly I'd spend 5$ on a decent host. I think Azure has free hosting though for small sites.
Runs PHP just fine.
 
8:37 PM
I want to be able to do User.on('update', renderComponent);
 
@BenjaminGruenbaum thanks
I need to make me a decent site, but I don't have time
 
@darkyen00 yeah, I get that - I'm just saying that if you want an event emitter type put it on a different type and then compose from it.
Also, you need a way to actually emit events. Your event handler is kind of wrong :P
 
Oh okay !
@BenjaminGruenbaum the events usually occur from server via websocket this just re-broadcasts them after sanitizing and beautifying things.
but very true !
 
This Malencia person isn't too smart
@SterlingArcher Maybe, but considering the task to be achieved by the OP, the solution doesn't need to go that deep. — MelanciaUK 3 mins ago
type comparison is too deep y'all. Back to ==!
 
wat tofu is this? google.com/inbox
2
 
8:41 PM
Anyone here know anything about OpenLayers?
 
@KristenHammack 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.
 
@NickDugger Was just reading. Looks like a more cluttered version of Gmail
 
How do you show if a variable is private in javascript ?
i have seen angular $$, some libs have _ some have __
can i use unicorns ?
 
I only expose what needs to be exposed
 
var private_foo = 'bar';
 
8:45 PM
like my genitals
 
@SecondRikudo - esc added :)
 
@TravisJ That's good.
Navigating with the mouse is easy.
When doing a UI, I also disable my mouse and try to navigate sanely with keyboard only
 
Some of my users only entirely use the keyboard
 
@FlorianMargaine example for a case like this
function Awesome(){
   this.component = new Component();
}

Awesome.prototype.doSomethingWithComponent = function(){
   this.component.doSomething(); // Oh no i exposed it to achieve this
}
 
my users don't have arms
 
8:47 PM
It can be really quick for data entry
 
If you can navigate easily with a keyboard, your UI has to be really retarded to be hard for mouse users.
 
lol
 
@darkyen00 what do you mean you exposed it?
 
Awesome.component exposes it :-/
 
@NickDugger Interesting
 
8:48 PM
meh fuck it ... i will think of that later.
 
I signed up for the beta, but I'm still waiting for my acceptance into google domains :(
 
right now lets expose evertyhing :D
 
@NickDugger - No arms must lead to a lot of facedesk
 
function Awesome () {
    var component;
    return {
        doSomething: function() {}
    };
}
if you're worried about that...
 
nah looks ugly :-/, and that is terrible :-(
 
Hmm so no other way :D
 
Hi everyone!

Would be this correct chat to ask about how to setup a test site?
 
user1596138
@FlorianMargaine PUKE
 
user1596138
8:52 PM
You are making me puke
 
nice to know that I have this effect. I'll use and abuse it.
 
user1596138
I'm sure you have a perfectly valid use case. But that is damn ugly
 
Awesome().doSomething()
 
@Jhawins for the record, it's called the module pattern
 
user1596138
nice
 
8:55 PM
@TyreeBrown what kind of test site?
also I remember you, you had a cool portfolio right?
 
@Loktar I am trying to figure out the best way to setup a site for a client without using the client's current domain. I was instructed to use another server. So I planned to use my own server hosting my personal domain.
@Loktar I don't recall ever sharing my portfolio here? I appreciate the compliment though :)
 
mia
hey guys can anyone help with shopping cart js?
 
    @darkyen00 -
    var comp = new Component();
     Object.defineProperties(this, {
      "component" : {
          value: comp,
          writeable: false
      }
     });
jsfiddle.net/6dpcs3xx
 
mia
@TravisJ can u help me something?
 
@TravisJ hmm... thats perfect :-)
 
9:06 PM
@mia no
 
:)
 
mia
no y not :((
 
mia hes playing with you
 
don't ping randomly
 
@TyreeBrown Id do that
 
9:06 PM
Just ask, somebody might help. If not well you are out of luck hate satan.
 
I have done that actually
just throw it on a subdomain or something like
myclient1.mybusinesssite.com
 
Correct me if I'm wrong, but...
app.use('/', require(ROUTES_DIR + '/index'));
app.use('/list', require(ROUTES_DIR + '/list'));
app.use('/public', express.static('app/static', {
    extensions: ['css', 'js'],
    index: false
}));
app.use(require(MIDDLEWARE_DIR + '/error')(404));
 
shit misping sorry @TravisJ
 
lol
I was like, subdomains? waat
 
@SecondRikudo You misspelled wrong
 
9:07 PM
lol
 
Am I wrong to assume that the last route here would only be called if none of the above were matched?
 
mia
im trying to build shopping cart via paypal what is the best way to do it without using any server? i did some research and simplecartjs seems to be the solution but im new to javascript so can anyone help?
 
That sounds non trivial
Let me guess, someone asked you to build an "e-commerce" site for as cheap as possible using their paypal account
 
mama mia!
You're back!
Although not in the web design room this time :P
 
mia
@Loktar yes im heheh :)
well i need help with javascript this time hahah
someone is stalker lol
 
9:10 PM
@mia thats weird calling yourself a stalker
 
..
 
mia
lol
 
    Transport.prototype.fetch = function(storeType, id){
            this.cache.get(storeType, id) ||
    	    this.socket.emit('get', {
    		store: storeType,
    		id: id
    	   });
    }

    Transport.prototype.fetch = function(storeType, id){
           return cache.fetch(storeType, id);
    }

    Store.prototype.get = function(id){
          return respondWith(cache.get(this.type, id)).fails(transport.get(this.type, id));
    }
 
9:14 PM
@SomeKittens Probably better than her actual songs though...
 
respondWith is like promise simple wrapper over Bluebird (cache is indexed db)
does 3 looks redably awesome ?
 
@Loktar Would setting up a sub-directory be the best method or would you recommend another?
 
That BuzzFeedJS twitter is great.
Is JQuery Just One Big Memory Leak?
 
mia
2 many geeks here lol
 
@mia lol
 
9:27 PM
only 2?
 
user1596138
@Retsam Hahaha I'mn lovin it
 
29 Unbearable Callback Indentations You Have To See To Believe
 
Morning
 
When you sleep in, you really mean it
It's like 230 here :P
 
does anyone have any experience working wordpress and rss feeds with json?
 
9:31 PM
I know, I slept in until quarter past six!
 
// Why ? because pressing enter is a crime.
LocalStore.prototype.get = function(type, id){
	return this._cache[type]?(this._cache[type][id] || null):null;
}
 
@redshift rss feeds with json? That sentence seems nonsensical to me
rss is an xml format
 
^
@Shmiddty everything should be in protobuf or avro
 
!!google protobuf
 
9:33 PM
@Shmiddty Apache avro is even better :D
 
!!google avro
 
mia
quick question guys WHT the hell yall working on?
 
@mia trying to understand flux by creating a project as per their guidelines.
but not using facebook/flux, rather spinning off an idea based on something i read ages ago
 
mia
flux?
wht the hell is that?
 
9:39 PM
!!google Facebook/Flux
 
the gist of flux is that there should always ever be only one source of truth
 
ps now i am starting to realize why only facebook was able to implement it.
@Shmiddty ^
I am trying to use an actor model similar to flux, actors have actions actors are omnipresent on client and servers. These actions cause change in the world which change the balance of karma which causes mutations in the world. These mutations can then cause more actors to perform actions.
 
mia
so it helps building better UI?
 
flux isn't really related to UI
 
9:41 PM
@mia Flux is for architecture. and believe me they have nothing to do with Ui
 
it's data management
 
mia
i see
 
A self-signed SSL will protect the data in transit just the same, right?
 
react is designed to pair well with flux
 
and i am calling this buddha.js hopefully it will open the doors of programming knowledge for me xD
 
9:42 PM
It's just that the browser won't support it by default
 
@SecondRikudo what are we trying to achiev ?
you can make a browser read that... but probably you already know that :D
 
@darkyen00 I'm making an app only me and another person are going to use.
 
@SecondRikudo use self signed certificates.
 
@SecondRikudo The same as what? Flux? That's not really the problem that flux is trying to solve.
 
android / iOS both allow you to package ssl cerificates with apps. afaik
 
9:43 PM
@Shmiddty The same as a SSL with a certificate I purchased from a 3rd party CA
 
yeap
@SecondRikudo you can go a few steps further here though :D
 
@darkyen00 EXPLAIN
 
Oh my bad, I thought you were participating in the flux conversation
!!afk focus!
!!afk kfa!!
 
its a ssh-client written in browser :D
not that you would want to but who knows ^^
 
lol
I built a web interface to get away from SSH
No thanks :P
But will keep that in my bookmarks
 
9:46 PM
:D
Unless the other person is using windows phone you won't have any problem.
 
:D
 
mia
just read the entire thing about flux say basically it helps build better DB with UI
 
I still haven't received a reply from microsoft on how to use self signed certificates and still use their login broker. [THAT SOB doesn't even logs :-(]
 
I don't fucking understand anything right now D:
 
mia
9:58 PM
lol
same boatt:) @SterlingArcher
they are trying to work flux
 

« first day (1467 days earlier)      last day (3467 days later) »