« first day (1783 days earlier)      last day (3161 days later) » 

12:00 AM
Actually, not all of them does this. Only the ones that update statuses (of files)
Basically, on the page user can upload a handbook or a brief document. Each has their own functions and click events. These are the codes for them - http://pastebin.com/XWfd4fEG
 
12:30 AM
3rd time's a charm! I got the house! woop!
 
YEAH
 
How would I do this:
vehicles = {

}
var Vehicle = function Vehicle(name) {
 vehicles.this.name = name;
}

var vehicle = new Vehicle();
 
You want each Vehicle to have a unique identifier?
 
this.name = name;
vehicles[this.name] = this;
?
 
anybody know of a good article on microservices? language independent, preferably
 
12:39 AM
That works, but it will make it
undefined: 'honda'
and that's fine, but if I want to add more than one vehicle that doesn't work.
Well it works, it just reassigns it
 
Did you put what I wrote in the constructor?
 
1 message moved to Trash can
@CorwinAshley Please don't post unformatted code - hit Ctrl+K before sending, use up-arrow to edit messages, and see the faq. For posting large code blocks, use a paste site like gist.github.com, hastebin.com or pastie.org
 
Is that what I wrote?
 
12:42 AM
>:|
@SomeKittens we basically do what they say in the unfunny punchline and we do it well
 
MOAR DOCKER
 
user406009
@taco The question is whether it's worth the complexity cost.
 
@phenomnomnominal Thank you for your help.
 
Well, I work for a really large organization. I'm not supposed to talk about the details of what we do, but believe me
 
12:45 AM
@Lalaland That's the most profound thing I've heard all day.
just throw together 11ty Docker containers and call it a day.
 
@Lalaland I'm looking to improve processes for engineers
 
is Docker old enough that we've found the tradeoffs and no longer think it's cool?
 
So no input on a good micro service article?
 
tl;dr: Make sure you have solid contracts between each microservice
 
ok
that's a good start since I don't know what that is!
 
12:47 AM
don't let any microservice become too critical - weakest link and all that.
@taco s/contracts/apis/ in a sense
 
ok
 
what's your planned engineer:microservice ratio?
 
One microservice per process
 
process?
 
let me reword that
 
One microservice per manual technical procedure they follow via a manual process
 
ewww, manual things
 
yes
tons of it
i was surprised
The organization is a monolith though
The dev side is on point though
Those guys are beasts
don't know any of them though, so tough to reap some of that knowledge
these guys use PHP by the way :$
I saw one php script with python and shell exec calls, lol
Here's what I've come up with so far. Not sure I'm on the right tract. I'll probably ask the PHP guys github.com/funkytaco/php-soa
 
1:04 AM
can I write ES6 code in node?
 
user406009
@tereško Some ES6 features are supported natively in io.js.
 
user406009
Some you need babeljs for.
 
user406009
kangax.github.io/compat-table/es6 is a very good table.
 
oh, cool
 
user406009
If you want maximum ES6 features, you should use babeljs.
 
1:06 AM
aslo, WTF: that page is lagging on my $3000 PC
 
user406009
Yeah, I guess I wasn't as clear as I should have been: io.js is pretty much the next version of node. They are actually going to merge the two eventually (thenextweb.com/dd/2015/06/16/…)
 
that part I understood
so the bottom line is that I have to figure out how to make Electron (which uses io.js) to work with Babel
... I will to that in the morning
 
@tereško you can probably just use var babel = require('babel/register');
 
hmm ... we'll see
 
that modifies require so that it passes everything through babel
 
user406009
1:12 AM
 
1:23 AM
are you guys on LinkedIn?
 
@SomeKittens cool sent you an invite
 
holly shit, my profile's endorsement list looks sad
anyway, time to sleep
 
People endorse you for some weird shit sometimes
 
Like "Visual Studio"
 
1:34 AM
nobody endorsed me for software development :/ me_irl
"Microsoft Excel" .... dot dot dot
 
1:56 AM
What's the equivalent of a "bin" folder for JS output? I mean, it's not binary...
 
I generally use "dist" for "distribution", fwiw
 
i see lib/ used a lot.
 
it depends on what you're using to build and what is your runtime
 
@Sombriks 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.
 
dist/ for concatenated output, expecially for browser use
lib/ for node modules when you keep lots of separate .js files
 
1:58 AM
Hmm
I'll likely have both
 
UMD output? hmm.. I vote dist/ for that.
 
@KendallFrey people use bin for node modules, maybe that's a good enough reason for you to use that?
 
is that a question
 
I'm Ron Burgundy?
 
2:02 AM
still not technically a question
but thanks
 
1 + 1 = 2?
 
That's totally a question.
Don't be mean to me I have tonsillitis :(
 
!!s/./?/
 
@Luggage That didn't make much sense. Use the !!/help command to learn more.
 
2:04 AM
@Luggage ?on't be mean to me I have tonsillitis :( (source)
 
Yes :(
 
I'm a kiwi, everything has an upwards inflection and thus is a question?
 
I'm a canuck and I will give you aboot.
 
alexjs.com is really cool
 
interesting
"dirty hippy" may be offensive, try "soap-frugal free-spirit" instead.
 
2:20 AM
:P
 
Followup question: I want a make target to run my app which is located in the dist directory. I want the working directory to also be set to that directory. How?
all: dist/server.js

dist/server.js: src/server.js
	babel src/server.js -o dist/server.js

run: all
	node dist/server.js
my makefile
I could reset the cwd from within my JS, but that seems... dirty
Side note: I'm using Windows
 
@KendallFrey you don't need to compile your server to use babel
 
What?
 
you can include the register module at the start of your application and it swaps out the require function for one that compiles them on the fly
 
Why would I want to compile on the fly?
 
2:33 AM
Less complex build?
 
not much
 
and then you just remove the register module when ES6 is fully supported
also, people who you are attracted to dig it
 
does it compile the file it's in, besides required files?
Also, babel is slow
 
nah, but just do var babel = require('babel/register'); var app = require('./application');
 
I don't need overhead
 
2:36 AM
you're slow
 
precompiled code isn't
 
also, fair enough. Just pointing out that the option is there
 
option noted
what about my question?
 
oh whether it compiles the file it's in?
 
no, the one before this
about directories
 
2:38 AM
oh
je ne sais pas
 
I'm a Canadian. I don't speak French.
 
I said "I don't know"
 
cya guys!
 
2:59 AM
So this seems to work as a node build script:
require("child_process").spawn("node", ["server"], { cwd: "dist", detached: true, stdio: "ignore" }).unref();
so ugly
halp simplify pls
 
user406009
@KendallFrey Why don't you use one of the standard build systems? Like gulp.
 
because I'm too lazy to learn
at first glance it looks a lot more verbose than a makefile
 
user406009
@KendallFrey It's not too bad. You can see an example on npmjs.com/package/gulp-babel
 
Would I solve my current problem for me?
 
China military parade
The whole nation is off from work today. But we are at work.
 
3:37 AM
How to write codes as awesome as those in JavaScript:The Definite Guide?
 
4:19 AM
@ZhengquanBai you can write even better code now, since the latest version of that only goes up to ES5 I believe
 
4:57 AM
2
A: How can we avoid "overhang" code indentation?

jtbandesMaybe a bit far-fetched, but how about providing inline editing controls without going to the full-on Edit page? For users with sufficient privileges, of course :-) Clicking or double-clicking to edit a code block inline would make it far quicker to clean up posts. Or, you could have per-line i...

^ this would be cool to have (try the snippet)
 
@ivarni or... you know, we can have a simple textarea which can capture tabs. why would a programmer use those buttons when he has keys?!
also morning
 
@Petah Because tab/shift+tab already have a clearly defined function when filling out forms on the web. They are used for navigating between input fields. Breaking established patterns like that is not a good idea. — ivarni 4 mins ago
tabolous morning to you as well :)
 
@ivarni patterns are established by us, to help us, not so that they come in our way. and when they do come in our way, we break them. I think we all have faced this annoying problem that hitting tab while editing code shifts focus, and we should be solving it now.
 
@AwalGarg And you propose to solve it by breaking keyboard-navigation?
 
@ivarni keyboard-navigation is already broken
 
5:05 AM
@AwalGarg Not on SO yet, though I know there's a lot of shitty devs out there that likes to break it, yes
 
@ivarni we can have some shortcut to switch between modes. so edit mode will capture tabs, and normal mode will make tab work traditionally?
 
@AwalGarg That would be better than just capturing the tab upon entering the field, yes :)
Alternatively, people posting questions on SO could spend some time actually fixing their indentation
 
Well they don't always know how to. That is the issue.
 
So the actual issue is failure to inform new users how the editor works
 
Markdown already has like a gazillion flavors, and SO's markdown deviates a lot from all of them. SO should be fixing their markdown, for one.
And yeah, the editor right now is a mix of some RTE like buttons, and a plain textarea. That really needs to be looked at instead of making the editor ajax friendly or inline magic.
 
5:14 AM
i am doing an excel upload using javascript which has around 20k rows, the browser gets stuck, is there any better method you can suggest?
 
@Sajeetharan I'm assuming that the browser is getting stuck because your function is synchronous. If that's the case, and it isn't easy to rewrite it to be asynchronous, you could always look into Web Workers to push the job off into a background thread.
 
@MaximillianLaumeister ok thank you
 
5:53 AM
0
Q: How to find presence of a user who is not in a rooster?

Panday Amit RayHow to find presence of a certain user who is not in my rooster ? I am using strophe. Does finding presence requires users to be in my rooster ?

Wat.
I wouldn't want to be a user if that meant I had to be in your rooster... — Cerbrus 31 secs ago
(Can be 'd as )
 
> We heard you like os so we put an o in your roster so you can rooster while you roster
 
-1
Q: What is the difference between Prototype and Constructor.prototype in Javascript?

backcrossCan anyone explain me the difference between prototype and construtor.prototype in Javascript?

When the question doesn't need more than one line in the onebox...
 
user3119231
6:17 AM
morning
 
6:43 AM
0
Q: Google map marker with angularjs for large data

SajeetharanI am building an widget where user can upload an excel file and the places are get marked in the google map. The following code works, but issue comes when i am reading an large excel file with 10k amount of data, the browser gets stuck. I am using a for loop and adding some timeout to get the d...

 
I'm surprised nobody rushed to answer this trivial question
0
Q: How to delete an object from array of objects in javascript

Sumanth UdupaHello guys can anyone guide me in deleting an object from array of objects in javascript Look at my javascript code <script> var line = {lines:[]}; function change(num){ line.lines.push({"linechange":num}); } </script> Here "num" is some integer value, Is there a way to delete the pushed obj...

 
user3119231
So I did.
 
Why ? It's a trivial question with two trivial steps and it's a duplicate
 
user3119231
Because I'm bored.
 
7:03 AM
I'm dealing with a codebase using $.Deferred (and switching to bluebird right now is not an option), Does anyone know if $.Deferred().resolve will actually end up calling any callback synchronously? It's starting to look like it from where I'm sitting and I just need to know if I'm going mad or something. It shouldn't, right?
Oh it does apparently. Isn't that a terrible idea?
 
@Maurize Y U No read minds!?
 
Yes, old versions of JQuery were calling deferred synchronously in some cases and it's a terrible design
 
user3119231
@Neil I am sorry, Mr.
 
Not only old ones, it seems, that plnkr had v2.1.4
 
@ivarni I think I've read that JQuery 3 doesn't do it. EDIT, YES:
> Callbacks are always invoked asynchronously. Previously, they would be called immediately upon binding or resolution, whichever came last.
 
7:11 AM
Ohh, there's a v3 now?
 
Hi, I'm running into a problem with browserify. I have this project structure:

- dist
- - bundle1.js
- - bundle2.js
- folder1
- - main.js
- folder2
- - main.js
- - secondary.js
I'm requiring bundle2 from bundle1 but I get an error.
"Error: Cannot find module './secondary' from path"
 
user3119231
0
A: Creation of array and append value inside closure in javascript

BEJGAM SHIVA PRASADThis is the best way to do var array = []; var pushArray = function(value,array){ array.push(value) return array; } pushArray(1,array) pushArray(2,array) pushArray(3,array)

 
user3119231
 
Does anyone has any idea why this is happening?
I meant to say that I'm requiring bundle2 from folder1/main.js. *
 
@Maurize I can think of a few usecases for this
Well, there is no secondary.js module in folder1
 
7:19 AM
But I'm requiring it like this: require('../dist/bundle1');
 
user3119231
@MadaraUchiha Yeah, but in this case this answer is like grabbing your shotgun and going to war when everyone is already dead and/or gone (?)
 
@Maurize Ah didn't notice you liked to an answer
 
@Jovito So you're requiring the output from itself that isn't compiled yet? Makes sense. :P
 
@Jovito That's not what's causing the error.
 
I'm watching for changes on two entry points: folder1/main.js and folder2/main.js.
folder2/main.js requires folder2/secondary.js.
 
7:22 AM
@Jovito But folder1/secondary.js doesn't exist
Therefore the error.
 
sorry, I corrected it.
and folder1/main.js requires '../dist/bundle2.js'
If I say module.exports = {secondary: require('./secondary')} in folder2/main.js, can't I require bundle2 from another file and access secondary from there?
 
how can I require global npm itself
 
To be clear, bundle1.js is the result of running browserify on folder1/main.js and bundle2.js is the result of running browserify on folder2/main.js.
@RoelvanUden How I'm requiring the output from itself?
 
user3119231
0
A: Issue with cordova camera plugin on Kitkat OS

MaurizeY U No permit camera? <uses-permission android:name="android.permission.CAMERA" /> <uses-feature android:name="android.hardware.camera" /> <uses-feature android:name="android.hardware.camera.autofocus" /> Reference: http://developer.android.com/reference/android/hardware/Camera.html

 
how much money do I need to be a billionaire?
 
7:32 AM
@AwalGarg a positive number
 
@AwalGarg Brilliant question
 
ikr
 
I also know it's somewhat bigger than 1
 
@towc How are you liking Oxford?
 
maybe even 2, I can't be sure
@SomeGuy it's pretty cool :D
 
7:33 AM
Have your classes started yet?
 
s/li.+//
 
And are you living in the dorms?
 
s/ in.+//
 
I've just found out George Orwell was buried here, the actor for bellatrix lives here and here was signed england's entrance to ww2. Btw, this is about 20km from OX
@SomeGuy no, student house :P
 
Neat!
 
7:34 AM
@SomeGuy yeah. Everything under control looks like ;)
 
@towc what are your subjects?
 
this is still highschool, I can't specify them too much :P
 
makes sense.
 
but what I'm doing differently than the others is advanced maths, 4h of physics and 4 of chemistry
advanced maths = 8h
 
Nice!
You excited?
Are your professors good?
 
7:36 AM
well, in maths they're still at logs and most of the class still couldn't understand them XD
 
@towc DID YOU HAVE FOOD YET??!?!
 
and people were still getting introduced to the standard form in physics XD
@SomeGuy they might, but the classes are still very bad so they can't really teach much :P
still better than italy ;)
@AwalGarg it's not that bad
 
@towc Right, that sucks
 
my professors are so damn good I can't even... </s>
 
Haha
 
7:39 AM
@Madara Can I require the result of running browserify on a file from another file?
 
then yesterday I've learnt that my italian teacher used to be a gay model. Creds to him, but still :P
 
@Jovito Not sure, I don't really use browserify that much
 
the worst part is that our time schedule is randomly spread from 8am to 4pm during the week, which means that I may just go to school for 8 hours but only attend 2 classes :/
 
you should just go sit in the library all the time
 
phone/laptop policies are pretty strict, so no programming :/
and I'm the only one with the courses I chose, meaning I can't hang out constantly with people
 
7:43 AM
Yeah, going to the library sounds like it could be quite fruitful
 
saddest part: I thought rowing was a real thing here, only 2 other girls in the whole school do it. The school goes through the whole of secondary and has about 80students par year...
@SomeGuy and reading...? from paper???
 
Is there something wrong with paper?
 
oh, but they do let us use a programmable calculator, I could just try to hack that so that I can insert somehting to play pong or similar XD
 
hi
 
@hash 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.
 
7:44 AM
@SomeGuy I can't remember the last time I've read on something I'm interested in on paper
 
Well, try. There are tons of great textbooks out there, and I'm sure Oxford's library will have some that you find interesting
 
it's actually in a place called Culham (known for the space station) and it's pretty small and way too general :P
I guess I'll try
but I don't think I'll find anything interesting
 
@towc things would surely (hopefully) be much better there, but at my place, 5 minutes spent in the library with whatever interesting looking book I can find are much more fruitful than taking an hour long CS class.
 
Remind me how can one get a full ancestor path from a DOM element?
I vaguely remember a property/function to do that without having to manually iterate
 
@AwalGarg guess so. I'll try ;)
 
7:50 AM
@SomeGuy paper can potentially be used to make a paper knife, which can potentially be used to kill someone, which can potentially be the person who can potentially change the world to something potentially better
 
I'd like a paper knife
 
whilst people would sacrifice some paper, nobody would throw their laptop at someone ;)
 
Hey guys I'm in lack of imagination and need a name for a domain :P
 
@Poteito about?
 
@towc Anything you desire :P
 
7:51 AM
Haha ok. I dont use google, i find duckduckgo does an equal or better job. And if ddg doesnt work for me, which is rare, then I use bing. — Noitidart 9 hours ago
 
anythingyoudesire.com
 
... Why? xD
 
@AwalGarg haha something shorter and don't come wiht short.com haha
 
shorter.com
 
somethingshorter.com
 
7:52 AM
@AwalGarg that sounds like porn :P
 
@towc Then somethingshorter.com sounds like dwarf-porn
 
@Poteito bananapotato.enterprises
 
@ivarni hahaha
 
@Zirak that is, apparently, very much according to OPs desires
 
@rlemon Can you please make me a banana potato?
 
7:54 AM
Something in that way
 
you forgot sudo
 
@AwalGarg Fool, I'm already root
 
then why are you please-ing?
 
He's being polite
 
7:55 AM
Because I have manners
 
horrible
 
It's important to stay courtly and in control of one's temper when talking to those of lower classes. Such as yourself.
2
 
why is it important?
 
You don't need to trouble your feeble mind with such concerns.
 
7:57 AM
(Great video, if you haven't already watched it)
 
Why not?
 
> a succulent Chinese meal
 
You shan't touch my penis.
 
PHP is potentially getting arrow functions, btw
 
@Zirak sent you a PR
@Zirak also considering to make the Esc handler global and not only when focused on the input
 
8:08 AM
@MadaraUchiha why comment out the console.log instead of removing?
 
@AwalGarg Shorter key combination
is lazy as fuck
 
editor?
also now I understand what "watch" repository means.
was terribly confused when I got that notif
 
Hey guys, does that make sense to you ?
$("#nbAdults").attr('value',$("#nbAdults_").val());
[<input type=​"text" name=​"nbAdults" id=​"nbAdults" style=​"display:​none" value=​"3">​]
$("nbAdults").attr('value')
undefined
(Its in the console)
 
you are missing a #
 
God damn me !
:)
Its strange somehow you can't see little thing liek that some time
 
8:15 AM
only you, I never miss such stuff
 
Only me then
 
> We are not badly designed yaar somehow our attitudes today suck else we are the best race !!! (quora.com/…) @Abhishrek @SomeGuy
 
Hahaha
> Someone who is brilliant should automatically pick up his subjects.
 
@Zirak see? I am from the best race. you are the lower class noob silly stupid yellow head
 
> We just don't break away if things are not to our liking (we dont leave our parents when they are old...we don't resort to divorce when it is not working and may more ;lets say we were supposed to be this way originally)
Jeez
 
8:19 AM
just read quora whenever you feel you are shit. you will instantly feel better.
 
Hahaha
Quora is a cesspool in those sections
Some tags have good resources, though
 
!!urban cesspool
 
@towc No definition found for cesspoll
@towc cesspool a strong word meaning corrupt or a wasteland. sort of bad place.
 
@CapricaSix synonym for my college?
 
still not going well there? :/
 
8:23 AM
oh, well, usual crap. I just keep getting better at how to deal with it.
 
sorry, rash
wait, is that your real name? :D
well gotta go to school :/
 
"Awal Garg" is
cya
 
8:40 AM
Uh oh, the PC brigade have figured out JavaScript. github.com/wooorm/alex
 
PC brigade?
 
Politically correct
 
Hi all :)
 
IE, people that get offended over stupid, insignificant things.
 
"person with a limp"
I bet Stephen Hawkin wouldn't appreciate being called that
 
8:42 AM
I've heard murricans saying spanish ppl (from spain) have a lisp while talking
my god
 
The irony is, Alex is typically considered a male name.
 
i'm aware i could easily solve this in other ways, but i'd like to know how it could be done with regex. — keune 5 mins ago
I hate it when people say that
 
my name is alex
and yes it could be male or female here
 
Knowing how to use the correct tools for the job is equally if not more important than knowing how to use those tools well.
@Neoares o/ Sasha
 
It can, but 90% of the time it's weighted towards male
 
8:44 AM
@MadaraUchiha \o
 
@BenFortune Depends where in the world.
 
@MadaraUchiha is your name Sasha??
 
Alex is originally a russian name
@Neoares No, you are.
 
oh yes I am
Aleksandr
 
user3119231
8:48 AM
whatta?
 
chrome 45 stable here, arrow functions and array.from working
 
@Neil :D
 

« first day (1783 days earlier)      last day (3161 days later) »