« first day (1391 days earlier)      last day (3557 days later) » 

6:02 PM
I have to start producing Psychadelic D&B with Folk Elements
 
//TODO: Finish this
 
@AbhishekHingnikar Nice; that's a real slick version
 
D&B?
 
@AbhishekHingnikar that's pretty crazy
 
6:11 PM
@AbhishekHingnikar Will say, it's ridiculously sensitive to pinch zooming on my mac trackpad. Meant to zoom out a bit and ended up with a ratio of something like 10^18 : 1
 
STOP TOUCHING MY SCREENW ITH YOUR FINGER WEPDFInDINWDIP
 
something about a laggy computer is more infuriating than anything in life I will encounter
 
user1596138
Good lunch
 
10
Q: What do {curly braces} around javascript variable name mean

Georgi GeorgievEDIT After looking at JSHint I found this 'destructuring expression' is available in ES6 (use esnext option) or Mozilla JS extensions (use moz) and this however after reading it I still don't understand why it is used I have come across the following code on MDN var ui = require("sdk/ui"); va...

TIL destructuring
 
TIL js supports destructoring
 
6:25 PM
what's TIL?
 
Today I learned
 
ah
 
oh my fucking god I can't stand this lag
 
@Luggage TIL TIL?
Cool new Javascript features just make me sad because I probably won't be able to use them professionally in the next decade
 
Get a job in Python
 
6:39 PM
node
 
@BenjaminGruenbaum True; I do use node professionally. I'll just have to practice segregating which parts of the language are client appropriate and which parts are only node-usable.
 
@Retsam That's kind of true for most software development toolkits, just usually not as much
 
I don't think you'll be seeing much enterprise software written in Java 8 very soon, for starters :P
 
@VeselinRomic Yeah; though that's an internal thing; we could make a push to switch over to Java 8 with a bit of work, but non-updating browser is external.
 
6:42 PM
@Retsam More cool features than you could ever imagine
 
@Retsam Good point.
 
@copy Yeah, I've actually done a fair bit of python. Though I'm not huge on the language's philosophy or code style.
 
Though it will be an external issue if e.g. users take ages to switch to the newer JRE
Few toolkits are invulnerable to update creep unfortunately, web development is just particularly vulnerable
 
@VeselinRomic Yeah; I'm hoping IE will see the light and switch over to the self-updating model.
 
!!define update creep
 
6:47 PM
@Cereal No definition found for update creep
@Cereal No definition found.
 
And stop OS-gating their browser. I'm not saying they should make IE for Mac (in fact, see my previous gif), but Windows 7 should be able all current IE versions.
 
@Retsam To be fair though, those who currently turn off windows updates would probably turn IE updates off too
so that wouldn't do very much
 
@VeselinRomic Ehh, to some degree if they've gone out of their way to turn off the updating, then it's their problem if the website stops working.
 
@Retsam I use CoffeeScript for that reason. It lets me immitate newer features but 'compile' down to plain JS.
TypeScript provides the same (plus more)
 
@Luggage Yeah or I bet there are other less substantial polyfills as well, but still not hugely likely in a professional environment.
 
6:51 PM
@Luggage Oh yeah, I've played with TypeScript and it's awesome
 
What's wrong with a polyfill?
 
as a C# fanboy it's pretty much what I want JS to be
 
@VeselinRomic Aye. It's more verbose, but it's type-checking makes it possible to have nice 'intellisense' rivalling c#'s.
 
@Luggage Either you have to convince the entire team to learn/use the polyfill, or you have the issue where not everybody can read everyone elses code, which can be problematic.
A polyfill that just adds ES6/7 features might be reasonable, but something like Coffescript that dramatically changes how the language reads is going to be a tough sell.
 
It's no different than any other pattern or library that you use throughout your code. It should be LESS intrusuve since polyfills are generally made to work like a 'standard but not supported in my version' feature.
ohh, well, yea, coffee is a differetn syntax, so that' not easy to just throw in a project.
 
6:55 PM
@Luggage I guess I'm calling coffee/typescript "polyfills" which is probably not terribly accurate.
 
I love coffee but haven't introduced it into my code at my day job for that reason. We started with plain JS and having two syntaxes will be a pain for others.
But my new projec tis all coffee and therefor consistent.
 
@Luggage Yeah; I'm not a fan of coffeescript syntax; so I'd be opposing it if anyone tried to introduce it here.
 
I'm definitely strongly considering making my next (personal) project a TypeScript one
 
It has it's problems.
But when you get used to it, it can be very expressive.
It's very much a personal perference, though, so..
 
Ell
Hi all
 
6:57 PM
Coffeescript sort of takes my least favorite aspect of Python (code style), without a lot of the benefits of Python, like all of it's prebuilt data structures.
 
I find the code style to be a benefit when writing for with lots of callback (node-style)
well, any modern JS, relly, not just node.
 
Ell
Aw damn, I lost the game -.-
 
Yeah, I dislike Python so I'm not a fan of coffee either
TypeScript is okay on the other hand
 
Ell
I used IcedCoffeeScript
 
I don't consider Coffee to be a risk to my client because any future coder can simply convert the whoel project to plain JS with a coupld commands
 
Ell
6:58 PM
But I just got into webdev, I just know that I don't like javascript
 
@Ell You and me both :P
I'm definitely switching to a compiles-to-javascript language soon to keep what's left of my sanity
 
I've used Iced. I Stopped just for more support of plain Coffee. I get around the problems by using async.js
 
Ell
The first problem I've run into is CORS :3
 
@Luggage Yeah, though complied coffeescript isn't the worst code to read, it's certainly not fun to read either.
 
trying to run a local file like a web app? yea. common problem but there are so many way to just host a local folder that it's not really an issue.
@Retsam Yea, it strips some comments, too, which i think they are fixing (or is fixed)
But if someone were to think "ok.. i just can't deal with coffee" they can at least convert to JS.
 
Ell
7:02 PM
@Luggage Well, I'm trying to get google's discovery document with jQuery.get(...) but getting a CORS error. I'm hosting the file locally with lighttpd and accessing it via lvh.me
 
I don't know what that discovery document is. Is it a JSON file?
ok, yes, json.
Is it maybe not meant to be used from a web client?
 
Ell
@Luggage Maybe not
But I don't entirely understand CORS and I'm not sure if it's something I can fix or something which google decides I can't access via javascript
but the latter sounds pretty silly
 
If it needs an api key, then it might not be intended to be used form a web browser becasue then you'd have ot give all your users your API key.
might need ot be called form your server and the client talks only to your server.
Whooever makes an API can choose to let it be called cross-domain by putting in a header.
Otherwise, you can sometimes get around it with a meethod called "JSONP".
But you might not WANT to get around it. Once you understand what the risk is that people are worried about you might be more forgiving of the extra trouble.
 
@Luggage Please, don't.
 
Don't what?
 
7:08 PM
JSONP. Just, don't.
 
ohh, I don't
 
Ell
@Luggage Well, it doesn't need an api key - it's just this: accounts.google.com/.well-known/openid-configuration
 
@RyanKinal I'm a ninja!
 
If you were to go to some site (evil-webapp.com) and it made a request to facebook.com then facebook sees a request from your IP with, potentially, your cookies.
 
Ell
Used for logging in with openid-connect or their google plus
 
7:09 PM
Your web browser is doing you a favor by not letting the code from evil-webapp.com see that response.
And it's your web browser that is enforcing the rule. facebook, in this case, can't distinguish.
 
@Ell CSRF or Cross Site Request Forgery goes something like this
Let's say you logged in to your bank
 
Ell
Right :)
 
You didn't close the session and went to go on some other site, that cannot be trusted.
That site has a script that will send a request to your bank's site, to transfer money to a different account.
Because you're still logged in to the bank, the request will succeed.
That is assuming the bank is not protected against CSRF which it should be.
OK so far?
 
@SecondRikudo The bank might not even be able to tell. Though, cookies are NOT sent for calls that are from code that' from a different domain, so it should just see you as an unauthenticated user.
 
@Luggage That is correct, but that's part of the CSRF protections.
You have to code those checks in.
@Luggage A simple check for the referer header will probably solve 99% of the problems
 
7:14 PM
it's amazing how much faster my VM and computer is running now that I allocated 2 more gbs of ram to it
 
I don't think there's a browser today that doesn't send a referer header.
 
There's a trick the attacker can use to not send a Referrer
And some privacy addons disable Referrer
So, tokens
 
@copy Cookies?
 
No, CSRF token
 
7:16 PM
@Ell Lots of 'legit' cross-domain calls are complicated by security for the illegitimate ones. Just something that needs to be dealt with, unfortunately.
 
Ell
@SecondRikudo yeah :)
I don't understand why google wouldn't allow accessing accounts.google.com/.well-known/openid-configuration
My browser and their server surely would allow accessing something which requires no login?
Just as anyone can access google.com
 
They just didn't og out of thier way to allow it. They need to attach a header to make it available from an 'ajax' call.
Someone correct me if I'm wrong, but there might not be a good reason to access that data from the browser.
 
Ell
Well, I can always keep a copy of the data until google updates it
but that seems improper. Not the right way to go about it
 
That data is useful to a server doing openid authentication. That wouldn't be done in the browser.
the browser just does a couple redirects that your server tells it to
 
which browser version (mainly iE) would you HAVE to consider if you created a brand new web app today?
6, 7, 8?
 
7:25 PM
@JoJo That depends on who the client is, but I think IE9+ is safe and easy to accomodate.
 
Ell
@Luggage The browser needs to know where to send authentication requests to
And while the discovery document url is static, the authorization endpoint url may change
 
@Ell Your server should redirect when a user tried to access your app and is not authenticated.
 
and degrade gracefully to IE8.. ?
 
Ell
@Luggage Well the thing is my server isn't actually a web server :P
 
@JoJo I would call that 'considering' IE8
 
Ell
7:27 PM
My server is an XMPP server
 
@Ell That's the problem. I understand you are just testign out something, but it sound liek you are writing code that would normally be on the server, not the client.
 
Ell
I'm [trying to] implement OpenID Connect Auth for XMPP
 
@JoJo Supporting IE8 is a major pain.
 
Ell
and writing a webclient for xmpp using said auth mechanism
 
kk
 
7:28 PM
Yes, IE8 sucks. It's best to avoid it if you can.
 
Ell
@Luggage I don't think this is the case - openid connect offers implicit flow for just this
from the OpenID Connect spec:
 
But.. always consider your audience. Let's say you are writing an app for an industry that commonly uses very old PCs with windows Xp end IE7.. you need to write for them
 
Ell
> The Implicit Flow is mainly used by Clients implemented in a browser using a scripting language.
 
@Ell ok. I haven't done it that way, so I can't speak for it.
 
Ell
Okay :)
 
7:30 PM
I cant' go into more depth without making shit up
 
how do you make sure stuff like this doesn't happen? fairmount.azurewebsites.net/chat
 
Ell
@Luggage Fair enough, thanks for your help so fair anyhow :)
 
seems like the page gets a response from the server, tells the server something changed, infinite loop
 
anyone here worked in node?
 
@narthur157 Uh, that's.. an interesting issue
what's it supposed to be doing?
 
7:33 PM
think like google docs
 
@tejas-manohar Lots of us, ask away.
 
Luggage: great
im building a quick node app that sends a 'Yo' (through the mobile app's api) for new listings on craigslist search
realy new to node, still in HS and trying to crank this out in next cvouple of hours
 
@narthur157 Making sure that reads from the server don't trigger updates is probably a good first step
 
and try to explain whats going wrong
and my app.js if u go up a folder
 
@tejas-manohar you haven't exactly said what's wrong
 
7:37 PM
@narthur157 you know im not even sure, it doesnt seem to be writing all that to the db but no errors
 
@Retsam what do you mean by reads?
 
@narthur157 really just need a sanity check on the code and an overview by someone more experienced
 
@narthur157 Whenever it gets data from the service
 
anyone willing to help me on that?
 
@Retsam so right now it is just getting text from one client, storing it in a variable, and then broadcasting that to all the other clients
ah it's actually broadcasting back to the client I suppose that is probably bad
 
7:41 PM
?
mongoose, anyone?
 
@tejas-manohar It's really hard to help if you can't give any specifics
 
me, but wher is the problem? /register?
 
yeah, only dealing with /register part and above
maybe its a callback issue
friend said cb(doc) is not right
but left now :(
 
it's not a normal callback style, which is (err, result)
but the code looks 'sane
stick in console.logs() and see where it's not logging when you think it should.
 
@tejas-manohar it is
 
7:45 PM
console.log(err), too. you aren't checking for an error from mongoose.
 
So console.log(err) and cb(null, doc)?
 
if you do cb(null, doc) then also: function (err, newDoc) {
 
@Luggage: hmm, where?
 
line 37
What we need to help are answers to thinks like "are you sure /register is getting called", "is mongoose returning an err"
Even without 'fancy' debuggin tools you can just log your way to all those answers
 
im not sure /register is getting called
how should i find out?
 
7:49 PM
then a console.log('/register') on line 28
 
ajnd send in user input?
 
Better yet, add a log 'middleware' in your express setup
app.route('/register')
.post(function(req, res) {
This MIGHT be valid, but not how I used it. Are you sure that's right?
 
pretty sure that is right
 
well, the console.log will confirm.
 
so i added what u said
now do i just submit user input
to make the post hit /register
 
7:53 PM
yea
 
/register is printed
 
Then log inside your Subscriber.findOne().exec() handler, and so on.
 
no exceptions
 
expecially log the 'err' in there. You want to see if mongoose is giving you any feedback
 
line 14?
 
7:56 PM
tw, you probably don't want to leave there console.logs in. but you probably know that.
35.
the next action and chance for a problem.
I cant' find wher you configure your mongoose model. Subscribers.
 
Will !!s work on messages by caprica?
!!tel Hello World
 
@Hello World
 
!!s/World/Universe/
 
@SecondRikudo @Hello Universe (source)
 
Ell
8:03 PM
Oh I had another question
is there a standardised way to decode a query string into a javascript object?
I keep finding different things everywhere
 
@Ell :(
no, there isn't
 
Ell
@FlorianMargaine That's a shame :/
 
there is a canonical answer on SO about that though
if you're on node, you can use the url module
2713
Q: How can I get query string values in JavaScript?

EminIs there a plugin-less way of retrieving query string values via jQuery (or without)? If so, how? If not, is there a plugin which can do so?

 
Ell
@FlorianMargaine Is there? I've seen lots of different ones
ah thank you
Also, is it wrong to do something like this: window.location.params = {}?
ie, modify a "standard" object
 
Yes. Very
 
8:08 PM
How on earth did a Windows 7 VM crash my computer so hard?
 
First, window.location is special and reacts to being modified.
 
luggage wre you able to figure out what that was?
 
I thought 8gb machines were supposed to be able to do these things easy... ugh
 
@tejas-manohar yes. how did loggin ght results of the .findOne go?
 
@Ell I recommend this answer
 
8:09 PM
@Luggage /register and then null
 
Ell
@FlorianMargaine That is the answer I picked out too :)
 
null to what, loggnin the err from .exec()? then mongoose should have returned a doc or null. keep logging to see where the problem is.
Follow the code to pinpoint where it goes wrong.
 
Ell
Hmm. This is odd. A ? is being replaces by a # in the url
http://lvh.me:3000/webclient.html#state=mycheck&id_token=eyJhb
instead of
http://lvh.me:3000/webclient.html?state=mycheck&id_token=eyJhb
that is odd indeed.
 
yeah
then mongoose should have returned a doc or null? null
 
Ell
This is a non conformant url is it not?
 
8:16 PM
Then handleNewSubscriber shoudl be called. verify and continue verifying until you find the problem.
@Ell Or a url that is interpreted by the client, not the server
 
Ell
I can't see why they would use a # there
 
Who?
 
Ell
google are redirecting back to my page with a # instead of a ?
at the first parameter in the query string
 
Don't be insulted btu.. you know what the # in a url means right? And you are using the "client flow" or "implicit flow" or whatever?
 
Ell
@Luggage I won't be insulted, this is my first time doing webdev :p
 
8:26 PM
sounds like it might be intentional. Do you have a link to that doc you got the impliciti flow quote from?
 
Ell
I thought it meant scroll down to the item with the id following the #
 
It does, or did.
 
how do you think google docs accomplishes having multiple cursors with the live editing?
 
but it's used by lots of web clients to be able to change the current activity without re-fetching the page fomr the server.
it's used like ? but for apps that are all in the web browser. Like yours is.
 
8:27 PM
I got live editing to work but when somebody else types their cursor gets forced over
 
Ell
@Luggage Ahh I see
 
user1596138
moment.js is cool. underscore is cool. Cordova is interesting. Today was good
 
@Jhawins Agree, agree, don't know
Check out out async.js, too. Very useful.
 
Ell
I guess I just need to adjust the query string decoder then
 
well, you can decode it LIKe a query string.
 
Ell
8:30 PM
So it doesn't require a starting "?"
 
ya.
 
Ell
Ah I think the problem is window.location.search returns "" when it doesn't start with a "?"
 
window.location.hash is what you want
 
Ell
Ahh thank you :D
 
It's amazing how the constant omission of 'od' in 'method' makes this java book look obsessed with meth.
 
8:36 PM
Maybe it's not really a Java book.
 
Ell
@Luggage thank you very much that's solved my issue nicely :D
 
@Luggage most definitely a java book lol
@SomeKittensUx2666 love it!
 
@SomeKittensUx2666 Funny, but what kind of plane is that?
 
The Boeing X-32 was a multi-purpose jet fighter in the Joint Strike Fighter contest. It lost to the Lockheed Martin X-35 demonstrator which was further developed into the Lockheed Martin F-35 Lightning II. == Development == === Background === In 1993, the Defense Advanced Research Projects Agency (DARPA) launched the Common Affordable Lightweight Fighter project (CALF). The project's purpose was to develop a stealth-enabled design to replace all of United States Department of Defense lighter weight fighter and attack aircraft, including the F-16 Fighting Falcon, McDonnell Douglas F/A-18...
 
8:39 PM
It looks like it's laughing.
 
That's the joke! :)
 
Oh, shit. Totally didn't see the image above
 
!!thatsthejoke
 
@SomeKittensUx2666 That didn't make much sense. Use the !!/help command to learn more.
 
Well shit.
 
8:40 PM
@monners was pretty concerned there
 
I love youtube comments
 
Excuse me while I go and shoot myself in the foot
 
@Luggage promises is how one should handle things, not a sync.js. promises are part of es6
 
Specially cause this reminded me of a rapper who clowned 2 chainz by saying "You got the IQ of a 2Chainz fan"
Oh i love the internet
 
@SterlingArcher that guy had a crazy name though
 
8:41 PM
If he spoke like he wrote I think someone would get really unnerved. It looks like he speaks without breathing.
 
@SterlingArcher When did the world stop giving a shit about punctuation?
 
@FlorianMargaine Also good.
 
@monners Literally listening to Word Crimes right now.
 
@monners my guess is around the time food took a turn for speed instead of quality
 
Methinks the grammar Nazis made quality writing uncool.
 
8:42 PM
:sigh:
 
No, not "also good". Ditch async.js for new projects.
 
@FlorianMargaine oh?
 
I love that the cool kids are the ones that use 1337-speak and txt spelling (read: not engineers), whereas developers typically have a fairly good handle on the English language.
 
Except for Indians
 
Written communication is improtant, kids.
 
8:45 PM
Well it helps that most developers are making systems that require very explicit directions or content sensitivity
Like right now I'm building a database of sexual assault laws for the US, and every little character counts
 
Ell
Ahh wait
I think I need the authorization flow after all
 
@SterlingArcher Is that a euphemism?
 
Actually no
It's literal
 
Guys, is it normal that I have to type my username and password everytime to push a commit to Github?
 
@FlorianMargaine async's (err, result) callback signature flows so well with the other libraries I use, though
 
8:46 PM
@SufiDeveloper Yes.
Are you familiar with SSH and the use of public keys?
 
@SecondRikudo Get it. That's annoying as hell
Yes why?
 
Im laughing so hard people are looking at me... why do i love this gif xD
Ohhhh I know who will love this... TO THE META!
 
@SufiDeveloper Because Git supports that, and you won't have to type your credentials each time.
 
I haven't typed in my credentials in ages.
Keys are awesome
 
8:48 PM
They have git on the command line now? Who knew!
 
Didn't know that. Thank you for making me notice that.
I actually followed what they said here:
 
clearAllData = (callback) ->
	async.series(
		[
			(next) -> db.Facility.remove {}, next
			(next) -> db.User.remove {}, next
			(next) -> db.UserGroup.remove {}, next
			(next) -> db.WorkType.remove {}, next
			(next) -> db.SchedulingPeriod.remove {}, next
			(next) -> db.WeeklyAvailability.remove {}, next
		]
		callback
	)
 
@SecondRikudo I posted a better version of this gif earlier.
 
@Retsam Link?
 
8:49 PM
@monners Since ages.
 
@SufiDeveloper If the remote repo link uses git:// instead of https:// you can use SSH keys instead of GitHub credentials.
@SufiDeveloper I think your sarcasm detector is broken
 
@SecondRikudo (Was looking for it)
 
Hi Everyone. I have a doubt . I am zoom in on a page with some rectangles drawn on it but after an extent of zoom in the rectangle fill in color disappears and its not selectable any more to move it around. the mouse handles doesnt work in that region as well
where am I going wrong ?
please suggest
 
Text on top, and "damn" at the end.
 
@Retsam Awesome
@Retsam And 60FPS :P
 
8:51 PM
@SecondRikudo Understand
 
@Retsam Adding that obe to the old gif library
 
Well, you know, I'm tired as hell man. I got to work from this early morning and I'm still working now. My brain is only turned on for one thing lol
 
Science!
 
user image
5
 
8:54 PM
@Retsam lol
 
Le dîner
 
@ziGi Bulgarian? :D
 
@ziGi Bro I have sent you an email with the Github repo of my web server. Let me know if you find bugs, have suggestions or anything. Yeah I know.. the name is ugly as hell xD
 
8:58 PM
Breakfast
 
haha
@SufiDeveloper give me 5 min ok?
 
@monners That's almost big enough for my first cup of coffee every day.
 
@ziGi No problem, even 10 is ok
 
@Shmiddty Well it is my version of a macchiato
 
@SufiDeveloper my filippino friend wrote me, I haven't heard from her
so give me a sec :D
 
8:59 PM
@monners Not sure if large coffee or tiny tiny man.
 
@ziGi haha it's okay, take your time, I know you need it :D
 

« first day (1391 days earlier)      last day (3557 days later) »