« first day (2318 days earlier)      last day (2629 days later) » 

12:07 AM
@tereško Yes, return in an arrow function is exactly the same as any other function
 
 
3 hours later…
3:17 AM
$400k maybach has "satellite-assisted transmission"
whatever that means
thought you guys would want to know
 
 
1 hour later…
4:36 AM
hi, anyone here?
 
@ZhaoRocky Welcome to the JavaScript chat! Please review the room 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.
 
I am new to js, what "const {read} = state;" while state = {} means ?
 
@ZhaoRocky same as const read = state.read; which means it'll be undefined.
 
@Sheepy not read = state; right?
 
@ZhaoRocky Not that, yes. You can try it out in javascript console if you want to confirm. It's the best way to learn js.
 
4:46 AM
@Sheepy thanks very much
 
 
3 hours later…
8:15 AM
@KendallFrey you misunderstood completely
 
8:39 AM
Hey, anyone here familiar with Codemirror?
stackoverflow.com/questions/42325187/… Can't seem to find a solution, neither does the community apparently :/
 
9:44 AM
@tereško The only way to break a forEach call is chop the array off mid way, or throw an Exception.
 
['foo', 'bar', 'qui'].forEach(item => {
  if (item === 'bar') {
    return;
  }
  console.log(item);
});
actually the answer is "yes"
 
Guys?
 
user6820627
10:13 AM
Anyone can help me with my homework?
1/ Change to passive voice
I look like my mother
---> ________________________________________
 
10:28 AM
are the meds wearing off ?
 
@tereško are you familiar with codemirror?
 
no
 
ugh, I am about to give up and just go to sleep..
 
10:55 AM
@LearnHowToBeTransparent can you use Yoda passive if not specified? "My mother's looks I have"
 
user6820627
@FilipDupanović thanks. My teacher gave me that homework and it took me 2 hours to do it. I will search about yoda passive
 
11:14 AM
@LearnHowToBeTransparent that was just a joke :D
here, this took a while to dig out, it should help with your course foxtype.com/#!sentence-tree
 
Is there a way to get the full path of a file in JavaScript?
 
which environment, web or node?
 
Anyone know how to apply codemirror just to a specific textarea?
0
Q: Codemirror different modes (html and css) in 2 textfields

OmnitoredI do have 2 textfields, one with html code and the other one with css code, but the mode for the codemirror applies for the entire page, so the css code simply isn't highlighted. Link to Codemirrors CSS mode: Codemirror CSS Mode I couldn't seem to find a solution in the Codemirror manual, thi...

 
user6820627
You should learn about browser security vulnerabilities then get full path of a file.
 
11:25 AM
Why the hell downvote?
The question is perfectly described wtf?
 
@LearnHowToBeTransparent I'm aware of this, but I need the full path of the selected file to upload to Azure, but how?
 
@MohamedAhmed you can only get the file name, extension, size and last modified date from a File instance
106
Q: How to get full path of selected file on change of <input type=‘file’> using javascript, jquery-ajax?

Yogesh PingleHow to get full path of file while selecting file using <input type=‘file’> <input type="file" id="fileUpload"> <script type="text/javascript"> function getFilePath(){ $('input[type=file]').change(function () { var filePath=$('#fileUpload').val(); }); } </script> but the fi...

 
@FilipDupanović So it's impossible to get it from the client side, and I have to do this in the server side
 
12:11 PM
 
-1
Q: How do i check online presence of an user? (realtime.co) (ortc) (ibtrealtimesj)

YaSh ChaudharyI am trying to show the user if his/her friends are online or not.On lot of searching I found out that it has to do something with presence,but no idea how to use it. I have fetched all the ids of his/her friends but don't know what to do now. function Subscribe() { var channel = $('#myId')....

 
@YaShChaudhary Welcome to the JavaScript chat! Please review the room 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.
 
 
2 hours later…
2:25 PM
Hey guys
Guys I've just download bootstrap carousel from getbootstrap.com. Now how can I import it in my entry file for webpack?
It needs to export something to be imported
Any idea how?
 
2:52 PM
@ZahidSaeed Look into getting it from npm instead
Would be the easier path.
There's a way to do it with the downloaded version with externals or something similar to that
 
3:46 PM
@ZahidSaeed just require() it with the right path. If it's a standalone .js file, use a relative path, if it's from npm (I suggest this) then just require('bootstrap');
 
 
1 hour later…
5:00 PM
Hi
 
Hi there
 
this night I was thinking
 
Please see the screenshot
My app.js
// Bootstrap Carousel

require("./src/components/carousel/carousel.min.js");

const $ = require("jquery");
var x 	= require("particlesjs/index.js");
If I log x
it prints undefined
Why can't I get Particle object?
As you can see in the screenshot, the webpack has put the ParticlesJS in different scope and my code in different scope
Any help please?
 
I did use particlejs to create an effect of dynamic line.
did you try the demo first in the source code?
 
No not yet
I'll try later
but at least i should obtain the object
 
5:10 PM
there's a demo website in the zip file. I use it as a reference
 
Why Webpack is putting the required modules in different scopes?
I can't link to it directly
I'm using a module bundler called "Webpack"
 
I don't really know webpack. need to learn about it later then
 
hmm np
Anybody else knows?
 
@ZahidSaeed ./particlesjs/index.js
maybe?
 
@towc I tried, there's no index.js file inside of "particlesjs" directory
 
5:14 PM
well is there any file in particlesjs?
 
I tried creating it then requiring the file and then exporting it
 
i have aquestion
file 1

2016-12-12 this is a log line 1 [warning]
2016-12-12 this is a log line 2 [warning]
2016-12-12 this is a log line 3 [error]
2016-12-13 this is a log line 4 [error]
2016-12-14 this is a log line 5 [error]
2016-12-14 this is a log line 6 [warning]
file 2

2016-12-14 this is a log line 1 [warning]
2016-12-15 this is a log line 2 [warning]
2016-12-16 this is a log line 3 [error]
 
But webpack is putting that code in 1 local scope and my code in another local scope
@towc prntscr.com/eaqwor
 
i need response

2016-12-12 warning:2 error: 1
2016-12-13 warning:0 error: 1
2016-12-14 warning:2 error: 1
2016-12-15 warning:1 error: 0
2016-12-16 warning:0 error: 1
 
Please check the function #3 and #4
 
5:16 PM
@ZahidSaeed can u solve mine problem
@towc check mine question
 
I shan't
 
@towc Have you checked it out?
 
@ZahidSaeed can you just print it here?
 
1 message moved to Trash can
@p0k8_ 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, pastie.org or a demo site like jsbin.com
 
sure
 
5:18 PM
I don't have time to copy the link and paste it somewhere and then analyze some code
if you'd like me to do something for you out of my own time, make it easy for me
 
/***/ }),
/* 2 */
/***/ (function(module, exports, __webpack_require__) {

var particles = __webpack_require__(3);

module.exports = particles;

/***/ }),
/* 3 */
/***/ (function(module, exports) {

var Particles=function(t,i){"use strict";function e(t,i){return Object.keys(i).forEach(function(e){t[e]=i[e]}),t}function r(t){var i=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(t);return i?{r:parseInt(i[1],16),g:parseInt(i[2],16),b:parseInt(i[3],16)}:null}var s,a,n,o,h;return s=function(){this.storage=[],this.defaults={maxParticles:100,sizeVariations:3,speed:.5,color:"#000000",minDistance:1
omg :P
That's really huge
 
const fs = require('fs');
const logsType = ['error', 'warn'];

const files = process.argv.slice(3);
var warning = [];
var error = [];
var n = [];
// console.dir(files);
function a() {
    files.forEach(f => {
        fs.readFile(f, 'utf8', (err, files) => {
            if (err) return new Error(err);
            const lines = files.split('\n');
            //n.push(lines);
            console.log(lines)
        })
    })
}

a();
 
you're exporting your import it looks like...
 
/* 4 */ is my code that resides in app.js which is the entry point of the webpack
 
what's the original files look like?
 
5:20 PM
Inside app.js, here's the code:
require("./src/components/carousel/carousel.min.js");

const $ = require("jquery");
var x 	= require("particlesjs/index.js");
 
@CapricaSix will you help me
 
if i try to do, require("particlesjs/")
it still doesn't work
 
hey man
why are u being so dumb
2
 
what's your file structure @ZahidSaeed?
 
Project Folder:
-> public
-> node_modules
-> package.json
-> app
    -> app.js
 
5:22 PM
file 1
 
and is there anything in particlejs?
 
Yes
 
I thought you had a src?
well, can you show us the full thing :P
where does Particle reside?
 
file 1

2016-12-12 this is a log line 1 [warning]
2016-12-12 this is a log line 2 [warning]
2016-12-12 this is a log line 3 [error]
2016-12-13 this is a log line 4 [error]
2016-12-14 this is a log line 5 [error]
2016-12-14 this is a log line 6 [warning]


file 2

2016-12-14 this is a log line 1 [warning]
2016-12-15 this is a log line 2 [warning]
2016-12-16 this is a log line 3 [error]

response needed

2016-12-12 warning:2 error: 1
2016-12-13 warning:0 error: 1
2016-12-14 warning:2 error: 1
2016-12-15 warning:1 error: 0
 
it resides inside "node_modules/particlesjs"
@p0k8_ stop spamming here
@towc Any idea what I'm doing wrong?
 
5:25 PM
well, what's inside particlesjs then?
 
particlesjs has 2 folders inside it
src & dist
 
drop the tree
 
along with the package.json, readme etc
There u go
If i open particles.min.js inside of "dist" folder, it prints the Particles object on the console
@towc Have you figured out?
 
that doesn't help
and my primary purpose in life isn't to help you figure this problem out
please stop pinging me
 
hmm okay
 
5:31 PM
@phenomnomnominal congrats on speaking in that conference - have a blast.
Feel free to run slides by us.
@Mosho you should really give that webpack thing an honest try.
 
@towc I figured out. I exported Particles object inside particles.min.js
and it worked ^_^
 
 
2 hours later…
7:26 PM
@BenjaminGruenbaum what thing
 
8:12 PM
@BenjaminGruenbaum oh yeh should be fun
I'm going to make a harry potter pun based language, generate an AST from that and transpile it to JS
 
8:58 PM
@phenomnomnominal You're speaking at a conference? which one?
 
just a new local one
well "national" local
 
are you Craig?
 
Huh. I work with a Craig. Nice guy.
 
Unlikely
We're all awful
 
9:02 PM
He's from Seattle
So maybe he's just a different brand of awful that I find endearing
Looks like a really interesting conference
 
Yeah it should be a good one
Just gotta find time to write my talk haha
 
@phenomnomnominal nifty
 
9:38 PM
@BenjaminGruenbaum hangouts boi
@phenomnomnominal ooohhh gluck!
 
10:01 PM
how many people here use docker?
aye, nay because never needed anything of the kind, nay because there are better services?
 
10:16 PM
I use Docker and pretty much everyone offers support
 
@Loktar vr bringing it full circle i.imgur.com/fGuiUQx.gifv
 
 
2 hours later…
11:57 PM
uuuuh chrome extensions are easily transferreable to opera
'dis good
now, if only there was a way to make the tabs darker in opera..
 

« first day (2318 days earlier)      last day (2629 days later) »