« first day (1502 days earlier)      last day (3429 days later) » 

12:01 AM
yea, didnt see the response until now lol
was like $130 or so
so not too bad, has all the parts talked to the guy a bit he said it works perfectly
 
m59
@phenomnomnominal
require(['exports?twttr!external?platform.twitter.com/widgets.js!'], function(twttr) {
  console.log(twttr);
});
/** external-loader **/
var request = require('request');
module.exports = function() {
  this.cacheable();
  var cb = this.async();
  var src = this.query.substring(1);
  request(src, function(err, result, body) {
    cb(err, body);
  });
};
approval?
Ah wait, lazy loading though. I think I'm lost.
Oh! So, it gets downloaded and bundled at build time, but lazy loaded when needed at runtime?
yep. So, I think this makes sense.
@Loktar btw, thanks. Dunno why I didn't show my appreciation for the kind words. It did make me feel better.
 
oh haha np man
 
12:25 AM
neat
 
reminds me of google sky
(a little)
 
Newcomer's question. Between standard-issue JavaScript an jQuery, where does Angular LS fit ?
 
m59
That might be a sore subject right now. @NickAlexeev
 
@m59 It seems that just about anything about JavaScript was a sore subject at one time or another.
In the meantime, I'm trying to figure out what stack to use and learn for my personal hobby project.
 
12:46 AM
@NickAlexeev Angular is a fully fledged framework. jQuery is a utility/cross-browser weirdness fixing library
 
@phenomnomnominal Does Angular take care of weirdness too? Are the weirdness issues still pressing, or are they gone because browser wars are over? Not that I need support for IE 6.
 
jQuery is not for applications
 
1:03 AM
Angular only supports IE9+ I believe
Most of the weirdness is gone, but there is some.
 
Fuck me, I actually really like TypeScript.
 
m59
@phenomnomnominal I see what you're trying to do here, and I appreciate the sentiment, but I'm married.
 
For now.
 
m59
lol
 
m59
1:59 AM
The recommended solution is a little ways above, using $script, but I can't see how that's the right way.
 
@m59 I still kinda feel like it falls outside of the domain of Webpack.
The idea being you have your libs from npm or bower and bundle them up.
 
 
1 hour later…
m59
3:31 AM
@phenomnomnominal yeah, but it's just not possible in this case. Seems like anything would be better than that. The suggestion in that thread is to use another script loader, which loses the benefit of chaining with loaders (as in my use case)
 
Why is it not possible?
 
m59
What would any other solution be?
 
Why is it not possible to use npm or bower or download the lib and bundle it?
 
m59
Ah, because that seemed to be contrary to twitter's intention
Not that their intention should matter, lol. I was thinking they may change something internally which would require an update to the downloaded file
It gets downloaded every build this way, so that wouldn't be a problem.
no module/package/version. pretty fail. platform.twitter.com/widgets.js
 
3:49 AM
amazon s3 anyone?
 
@m59 Yeh that sucks, but I imagine it's actually probably pretty stable.
 
m59
4:10 AM
hah, trippy... it doesn't actually work
in the oddest way..
 
ok question on finding resources for how to build functions that return an error and a result? Like mongoose does.
so that when using the function I can do
dafunction(thing).then (err, result)
 
m59
4:49 AM
@phenomnomnominal hahahaha, screw twitter, man. There are 13 timeouts in this script. It tries to bone you every which way possible.
 
@m59 time to rewrite it yourself
 
m59
even after including it directly, it requires setTimeout(function() { console.log(twttr) }
otherwise, the object doesn't have properties haha
What could be the purpose of delaying the properties??
 
Fuck knows, that sounds bizarre.
 
m59
Is "What the @#$% is Twitter thinking?" an appropriate title for a SO post? xD
 
5:09 AM
@m59 Science!
 
m59
0
Q: Why, O Why does this Twitter library delay the addition of its object properties?

m59The Twitter widget library exposes a global variable twttr. I'd like to modularize this library on the fly using webpack with exports-loader. The problem is that, while the twttr variable is immediately exposed, it's properties are still undefined when accessing it synchronously. console.log(twt...

 
@m59 opinion based
 
m59
LOL
 
Not CV ing it myself, curious as to the answer
 
m59
are you not kidding!?
 
5:26 AM
Nah, some deletionist will hit it eventually
May want to change the verbiage to " what functionality does this allow" or soneauch
Some such
MOOOBIIILEEE
 
m59
goodness.
If that's not a good question, there are no good questions.
 
hey noders
whats wrong with this
im getting econnrefuse stupid useless error
pls help w. this callback situation on the linked line
@SomeKittens you have any idea?
or @m59
 
m59
5:44 AM
stack trace?
 
exports.getWebsite(data.url, function(result) {
if(term === result) {
cb(data.businesses[0].id);
}
});
that part is erroring @m59 when i remove it it works
 
m59
Do you know what a stack trace is?
 
@m59 yeah im getting it up
 
m59
dunno, seems like it's related to something in the callback. Maybe it doesn't like the argument you're passing there.
 
@m59 ugh yeah im lost too lol
 
m59
5:49 AM
log the value of data.businesses[0].id and then run the cb function with it independent of the rest of your code
 
nvm that works, data.url is undefined
 
@RahulDesai
https://gist.github.com/tejas-manohar/78461e04016150e18a71 results in http://i.imgur.com/JPunLF3.png
https://gist.github.com/tejas-manohar/aa6a727d070e8a0a4e1a results in http://i.imgur.com/3nCQzaN.png
why does
 
cool!
 
exports.lookup(searchTerm.substring(0, searchTerm.length - 1), loc, cb);
not work for this part?
@RahulDesai it works on line 11 - gist.github.com/tejas-manohar/…
 
6:03 AM
not sure
 
me neither
and that === is true at the point when its reduced to patel
checked
UGHH
 
check separately if the arguments that you are passing in lookup are correct
 
@RahulDesai thats a really smart idea
@RahulDesai added console.log(term) at top of that function
@RahulDesai got this imgur.com/1s8oFvB
@RahulDesai lol hang
keeps making new lines
console.logging ''
ill do a check to make sure param is actually a word
 
oh shit
i got it
term im passing isnt original lol
so its like 'p'
@RahulDesai are these parameters optional in functions in js
like do i have to pass 3 arguments to a fucntion(one, two, three)
oh i dont nice!
 
6:12 AM
check the docs for that function
 
yayyy i got it
js is awesome
 
cool
 
6:56 AM
 
hi
 
7:12 AM
ideas on how to resolve this?
 
Morning Folks
how can i change default message for a checkbox with required attribute?
By default it says "Please check this filed if you want to proceed"
I have multicheck box
 
Hi guys, I'm using NodeJS, and I have a sqlite3 database, that I can open using command line and by downloading it from my server and opening it up in RazorSQL (GUI SQL Browser). However, when I try to use it with node-sqlite3, I a "SQLITE_CANTOPEN".
 
@udaysagar the validation plugin by bassistance can solve this
 
Here's an issue that has the same issue as I do: github.com/mapbox/node-sqlite3/issues/371
 
7:32 AM
I have been doing this
 
8:06 AM
hey
 
hey.
...
 
@udaysagar and?
 
8:37 AM
Hi, can i use find for 3 classes ?
 $("#datable").find(".mdact .mdel .mddel").hide();
 
@CustomizedName .one, .two commas are the key
 
8:55 AM
@CustomizedName or .mdact.mdel.mddel if you want elements with all those classes.
 
Thanks guys :)
 
hey guys
having regex issues
not sure how to fix that error
@CustomizedName @RoelvanUden ideas?
 
well, clearly, it's an invalid regular expression
 
@tejas-manohar break it apart and find where the error starts
no one is going to manually parse your regex
 
guys it's working!
http://jsfiddle.net/udaysagar/o11d4b18/3/
 
9:09 AM
hi, anyone has suggestions on how to handle authorization in angularjs? I already have a userprofile available during config (index.html is server side rendered & includes a variable with the profile). But I have to disable ng-clicks / pages / specific html parts all over the place
 
is anyone using Inbox by Google?
 
yes
it's like mailbox by Dropbox
 
is it?
I like the way it uses mails like notifications in smartphones
 
oh wait, I'm lying
thought you meant the updated gmail app
 
@tejas-manohar Think about escaping special characters in JS strings ;-)
 
Dev
9:15 AM
hi
 
@Dev 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.
 
@Busata yeah, the same one, Inbox by Google
 
!!tell Zirak define didactic
 
@Zirak didactic Instructive or intended to teach or demonstrate, especially with regard to morality. (I.e., didactic poetry)
 
9:37 AM
I am using IE8 :( Such days!
 
0
Q: Error while building sample C/C++ project using Emscripten

Rahul DesaiI am following the instructions about building a project provided here. I am trying to build the sample project "bullet" that comes with Emscripten. Initially I fired the command emconfigure configure inside the sample project but I got an error: C:\Program Files\Emscripten\emscripten\1.25.0\te...

 
lolwut
 
Just wrote an endpoint for the API of the node app I'm making that checks if a string is a valid JavaScript variable name. Too meta.
 
so... str.match(/[a-zA-Z0-9_]/)?
 
reserved words, unicode etc
just found this handy thing: github.com/joelarson4/CharFunk
 
9:51 AM
looks good!
 
10:02 AM
Please install updates -> restart -> restart -> preparing to install updates -> restart -> installing updates -> restart -> installing drivers -> restart .... @Windows... seriously???
 
I have stopped installing updates on my Windows machine since I got some issues with the Firefox device
fuc* that
 
> You need to have .net Framework 3.0 installed to run this file. Installed .net Framework 4.0. Would you like to go to microsoft site to install .net Framework 3.0 now?
 
!!tell Zirak define phlegmatic
 
@Zirak phlegmatic Not easily excited to action or passion; calm; sluggish.
 
10:17 AM
Guys, please help me out:
I am getting the required message even after checking some box
I am removing "oninvalid". Still I couldn't proceed
 
@udaysagar I would have done that... if I wasn't on IE8 :(
 
you can use browser stack
 
10:34 AM
i have some troubles with svg file...
When i use it in web mode i handle images with <image tags and xlink:href attributes... i use only svg image files
But now i have to generate a pdf with this svg. So, i need to convert my <image tags to the svg image file contents.
For this, i parse my svg global file, search for image tags, and then i have to replace it by its href file contents. BUT i have to manage the initial image attributes to set them on the "new" image (which is a svg... in fact, it'll be a <g tag
 
Guys, I need multicheck box with same name and with required field.
I have been trying but couldn't arrive at my requirements
 
10:54 AM
@udaysagar What is a multicheck box?
You mean a list with checkboxes?
 
@udaysagar fire event on click on submit. If not any box checked, then show message. If a box checked, then submit ;)
@udaysagar get your checkboxes. On click on submit, check if one of these is checked. If so, you can submit, if not, you show your message...
 
i have a post submit
couldn't link onclick with that
why isn't this working?
 
o/
 
@Sippy \o
 
@darkyen00 \o/
 
see my problemn ?
 
11:34 AM
Did you reseat your RAM?
Lol
> Weep silently
 
@Sippy yes
 
!!tell SomeGuy define bovarism
 
@SomeGuy bovarism An imagined or unrealistic conception of oneself
 
Oooh, that's a good one
 
@darkyen00 Unfortunately I find that when Windows does deal-breaking shit like this, it's often a hell of a lot faster if you just back all your stuff up and wipe
Reinstall windows on a clean drive and start over.
 
12:15 PM
posted on November 26, 2014

Just now I published the retests of the CSS Images and replaced content spec, which includes gradients. It was during these tests yesterday that I discovered Android screenshots aren’t always trustworthy, and meanwhile I’ve got enough information for an update. Many people advised me to take a screenshot of the screenshot. I did, and it shows the original screenshot correctly inst

 
12:33 PM
1
Q: How to post the form's input fields data using jQuery-AJAX to PHP file and upload the file to the server? Form is designed in Bootstrap modal pop-up

user2839497I'm using Bootstrap framework v3.1.1, PHP, jQuery, AJAX, etc. for my website. I'm displaying the form in Bootstrap modal dialog. Following is the HTML code of the form: <div class="modal fade" id="sampleModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true"> <d...

 
could anyone tell me why this is not working properly? This replaces some images fine, but others not... problem with xmlhttprequest callback?
this is not a var name problem (noticed i didnt change parsedDivTwo to myDiv in my post)
 
You want want to split off into multiple functions instead of nesting everything.
 
@RoelvanUden well i'll do this later, if it's not working in one part, that'll not work better in multiple functions...
 
No, do it now
 
@copy hi copy
 
12:47 PM
hi
 
@copy code may be clearer but clearer + still not working...
 
@Julo0sS Currently it's in a state I personally don't care to read. Cyclomatic complexity is off the charts, you probably can't even see your own bug(s) due to that as well. Aim for a cyclomatic complexity of 5 or less, then try again ;-)
 
@Julo0sS Clearer, therefore easier to find the problem
 
(And for the love of ******, use JSHint, you should not create funcs in loops!)
(Which is probably your bug)
 
12:55 PM
@RoelvanUden cyclomatic 4
but code is not REALLY different........... :/
 
Why is your indenting irregular?
var imgtransform = imgTabs[n].getAttribute("transform");
    var mySvgImage = getSvgFileData(imgTabs[n].getAttributeNS("http://www.w3.org/1999/xlink","href"));
            mySvgImage.setAttributeNS(null,"x",imgx);
There's no reason for those to be nested
 
@SecondRikudo u right, probably i made changes and didnt notice it
 
Hence we're all hammering on formatting, complexity, readability, etc.
This is where you're going wrong; misunderstanding JS + unreadable code.
Additional super hint: Use JSHint as strict as possible. It protects you, from you.
4
 
@Julo0sS More functions
Then rewrite loops to map/filter/reduce
Plus do everything what @RoelvanUden said
 
srsly, it's readable, when u remove the console.log lines the "biggest" part is 22 lines long... oO
 
1:05 PM
Random indentation ftw.
 
It still needs fixing. :-)
 
@mintsauce lol yeah xD
 
@Julo0sS The NodeList you get from getElementsByTagName et al are live, meaning that if say one of them is deleted, the NodeList updates as well.
I haven't read what your problem is but you could be skipping elements or accessing a different one in the middle of the loop.
 
@Zirak so you mean that when i'm doing my "replaceChild" then the next loop is stopped?
 
1:09 PM
Maybe. Log the length each time, and also limit the amount of queries you do on NodeLists (notably, getting the nth item forces re-selection)
A bonus is that if the end result is removing all the items from the nodelist, you can simply check if it's empty, and if not take the first one.
// that is,
var node;
while (node = nodelist[0]) { /* ... */ }
 
let me try
 
But do listen to what Roel van Uden, copy, and more said. You should improve your code.
 
@Zirak you're right. The problem is the length changing.
 
Neat. The loop I posted above is one solution. Another is turning the NodeList into a real array.
 
@Zirak ye i'm ok with this, but, how would you avoid using loops here? and how to improve again? use array instead of multiple vars concerning one element (for example)?
 
1:17 PM
Turn them into arrays, use array methods
Also, don't use synchronous XHRs
Also, you don't need onreadystatechange, you can use onload
 
some people call it "synchronous ajax" .. which I find hilarious
 
Also, you don't need innerHTML. Set responseType to document, then you can query rawFile.response (it'll be a Document)
 
@Zirak define voyeur
 
@SomeGuy Panivorous
 
Hahahahahaha
THAT IS AMAZING
 
1:23 PM
thx for advices and help
i have to go
cya later :)
 
Good luck
 
@SomeGuy I didn't get the joke? :\
 
Adjective: panivorous (not comparable)
  1. Eating bread....
Zirak and I exchange new words we learn
 
I was just amazed that panivorous was a word
 
1:26 PM
Hobknocker.
 
oh, the wiktionary definition is lame
 
Hahaha that's better
 
Like a Java programmer.
 
Widdershins
 
@rlemon Huh
 
1:38 PM
challenge, use it in a sentence when talking with someone in person today
 
Pfft. You think I talk to people in person on a daily basis
 
@rlemon She kicked me in the balls repeatedly widdershins.
 
Hahaha not bad
 
Well, it felt bad
Considering ditching PHP for Ruby. GitHub Pages is looking attractive.
 
github pages ain't ruby tho
 
1:47 PM
@FlorianMargaine I thought their entire stack is Ruby?
 
oh yeah... I mean, on the user side, github pages is just html
kendall doesn't work for github afaik
 
@FlorianMargaine GH Pages is Jekyll, which is Ruby
 
@KendallFrey The templating engine maybe
 
@FlorianMargaine the user as in me, or the client?
 
you
the client always gets html, no matter the technology
 
1:48 PM
@SecondRikudo Yeah, I may not be writing it, but I'd still have to install it.
 
unless you mean jekyll plugins
 
@KendallFrey You don't have to
Using Jekyll isn't a compulsion
 
Well, yeah, but I still kinda have to
I don't test in prod
 
@KendallFrey Not an extreme programmer?
 
I don't see how testing in production relates to using Jekyll
 
1:50 PM
Living life to its fullest?
 
@SomeGuy Well, I also refuse to duplicate my website layout for every page (all three of them)
I needs templating
 
Don't lie, you only have one page kendallfrey.com
 
Gotcha
 
dat de only templating u can do kindel
 
@Sippy You're holding it upside down.
Noob.
 
1:53 PM
that's Kendall
l0l0l0l0l
 
@KendallFrey templating still isn't ruby :P
 
@Zirak I had a shite web host, ok?
@FlorianMargaine the software is
 
well, are you going to learn C because nginx is in C?
 
I hate installing new software because scumbag Windows limits PATH to 2K chars
 
I don't see how the templating engine makes the page more attractive...
 
1:55 PM
@FlorianMargaine Well, no, I already know C
 
you got my point.
 
@SecondRikudo "Gurl you got yourself some fine templates"
6
 
@Zirak "I like the way you're laid out"
 
@Sippy "Unlike most, you are actually responsive!"
 
"I'd pay to see your partial view"
 
1:58 PM
trololol
 
@RoelvanUden whoa...
 
@RoelvanUden "You conform to my usability standards"
 
@Sippy "You have 99.99% downtime" wait a minute...
 
@KendallFrey I'll have you know my uptime is perfectly fine thank you.
 
I just discovered I have a tab open to chat.stackoverflow.com/transcript/message/8231986#8231986 and I have no idea why.
 
2:17 PM
Shameless self-promotion on a JS-specific question and Closure Compiler:
0
Q: Closure Compiler check type on CommonJS export function?

Roel van UdenI have the following files; the first file named test.js (entry point): 'use strict'; var include = require('./test.sum'); console.log(include('123', 2)); And the second file named test.include.js: 'use strict'; /** * Calculates the sum of a and b. * @param {number} a * @param {number} b ...

 
Math question
solving x^2 + 8x + 7 congruent to 0 (mod 27).

The example states that sqrt(9) congruent +-3, +-6, +-12 mod 27. I don't understand how that can be possible given that the sqrt of 9 is always +- 3
Oh, nevermind
6^2 is congruent to 9 mod 27
Je comprende
 
@RezaAria 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.
 
@RezaAria you asked it barely 20 minutes ago, and you're already spamming it across chat rooms.
Please stop.
 
HAMMERTIME!
 
@SecondRikudo ok
 

« first day (1502 days earlier)      last day (3429 days later) »