« first day (2228 days earlier)      last day (2719 days later) » 

2:00 PM
React = out of question :)
I think I need to install previous version of node js
issue has ticket (problem for Windows 10 only)
 
Are you using sass?
 
no
 
what.. i was just.. uhh.. well i have nativescript, which uses angular2.. running on the latest nodejs in windows 10.. so i guess thats not an issue
 
7.1.0 ?
 
yup
 
2:04 PM
website says : not compatible with lib uv
 
morning everyone
 
lib uv 1.10.x something
strange :) but interesting
 
anyone use tampermonkey?
 
@bvdb i.imgur.com/N6OK5QG.png libuv is 1.10.. lemme check the angular version..
 
all versions identical to mine
are you using "ng serve" command ?
that's when the exception shows up
 
@bvdb It seems like it should work, given that it's the awesome typescript loader
 
hmm :) maybe I should be in the typescript chat room then :)
 
Hi
Anyone has webpack experiance here?
 
are you making a survey?
 
No
I found a question on the Stackoverflow and I needed to ask more qeuestions about it
it was about webpack
the code it made is kind of odd
 
2:30 PM
@cswl will wait for Tuesday: node js release 7.1.1 with a fix for this specific issue github.com/nodejs/node/issues/9542#issuecomment-259958895
 
@bvdb But that's not the error you're getting... Therefore won't fix your problem.
 
hi
guys
I've got an array of paths like this
/devel/haste-mapper/src/Module.js
/devel/haste-mapper/src/lib/Module1.js
 
@BenFortune true, but got there following a link from another ticket :) ... which says this solved it for that person
I will try the executable supplied in that thread
(which is kind of unsafe ;))
 
I am writing a build script that should output in build directory, but I am not sure how to maintain the same directory structure inside build as I had in src
any idea, please?
 
@bvdb Link?
 
2:36 PM
this is the executable that I'm trying : mega.nz/#!eRMxwCaY!Jo0aulbo-Nm0OLMAcx1pfnVdWnCXiTocBju1aA66elI
yesss !!! it's running :)
= solved
 
user2620028
holy... mega still exists?
 
Has done for a couple years
 
thanks once again ;) see you later all
 
why does this not replace all $ chars?
return str.replace(new RegExp('$', 'g'), '<br />');
according to what i´ve found it should
 
new RegExp('\\$', 'g')
$ is a special character.
 
2:51 PM
ahh didn´t thought about this
thanks
 
user6820627
hey is there anyway to make st3 trigger warning everytime there's a : at the end of line?
 
Why do I get SO many memory leaks in webpack?
 
@LearnHowToBeTransparent ?
 
@LearnHowToBeTransparent Why do you need that?
 
user6820627
@FlorianMargaine i mean sublime text 3, show /!\warning/(X)error if there is a : at the end of line. it triggers lots of js/css errors and i can't live with that. i want st3 to warn me before i save and run the code, it will save me time.
 
2:56 PM
@LearnHowToBeTransparent Use a linter.
 
user6820627
@BenFortune thanks csslint.net
 
anyone here use d3.js?
 
user6820627
kthxbye.
 
does anyone here use greasmonkey or tampermonkey that could help me with a script?
 
!!welcome zeddex
 
3:04 PM
@zeddex 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.
 
Hi Cerbrus
can someone help me with a script if possible?
 
Hi all, I got a complete website with SystemJS setup. Now I'm implementing unit testing using Chutzpah, (Jasmine). Everything works there :).
However, since I'm using SystemJS I'm writing my Unit tests like this:
import { Blah } from './codefile'

The unit tests work great doing this, however blanket.js, (used by chutzpah), doesn't generate the code coverage when you use import statements to add files.
 
@Devedse 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.
 
Anyone got a clue why that could be :)?
 
0
Q: Tampermonkey script doesn't work like regular js

zeddexI am running a tampermonkey script on a website and wanted to set the text of an input but it doesn't seem to work like the regular js would. According to this question, the following should work: Javascript - Select First Input (With ID) The script that is not working: // ==UserScript== // @...

i think it must be that website in particular?
it is a bitcoin faucet
so it might have some protection against js scripts
not sure
 
user1596138
@Martin ...Wouldn't that always be false?
 
user1596138
!!> ~1
 
@Jhawins -2
 
user1596138
Oh except for when it's -1 lol.
 
!!> ~0
 
3:19 PM
@ssube 0
@ssube -1
 
user1596138
!!> ~-1 // what a weird way to do that
 
@Jhawins 0
 
it's for when >= 0 is all false
 
I have no idea. I mean, I really never use the ~ so I don't know how that's supposed to work with an array
 
Yeah, ~indexOf is basically shorthand for includes
 
3:20 PM
and -1 is the "good" value
 
~ [].indexOf() is a shorthand
 
Hm
 
@KendallFrey is it includes or contains?
 
includes
 
user1596138
Yea why not just use includes lol
 
3:21 PM
I knew it wasn't contains but I forgot what it really was
 
Isn't includes rather new?
 
user1596138
It won't match like .includes tho
 
@Cerbrus yes
 
user1596138
!!> ~[4,5].indexOf(5)
 
@Jhawins -2
 
user1596138
3:21 PM
Falsey..
 
user1596138
!!> ~[4,5].indexOf(6)
 
@Jhawins 0
 
user1596138
Always falsey. What gives
 
er, -2 is truthy
 
@KendallFrey need regexp vamp help
jsfiddle.net/wcsjewhn I just want the ids
 
3:22 PM
!!> Boolean(~[4,5].indexOf(6))
 
@Cerbrus false
 
not the query strings
 
!!> Boolean(~[4,5].indexOf(5))
 
@Cerbrus true
 
user1596138
@KendallFrey Ohh right
 
3:23 PM
@KendallFrey before you ask, I was guessing at stuff. so don't bother trying to make sense of the end of that regexp
 
@rlemon Yeah that's pretty bad lol
what about (\w*)
 
tilde seems to be the fastest (by a tiny margin)
 
@BenjaminGruenbaum What did he say? :-)
 
/https:\/\/gist\.github\.com\/.*\/(\w+)/
seems to do the trick. thanks @KendallFrey
 
@BenjaminGruenbaum I just saw the email :-)
 
3:25 PM
@Cerbrus Actually, when I ran it on jsperf the tilde was slower
 
@Martin Browser?
 
Updated this question, how can i auto fill the google search input with text: stackoverflow.com/questions/40723411/…
 
@Martin same
 
Chrome
 
Hm, I'm on Chrome too...
 
3:27 PM
Weeeeeird
 
updated again for cerbrus
 
Hi, have a full working ajax form with upload field, wish now to implement drag and drop functionality, any library to recommend?
 
@Caner 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.
 
was a custom function
 
user1596138
@rlemon youw ant to get rid of the query string and hash just use the pathname of an anchor
 
user1596138
 
@Jhawins node
and I don't know if the string I'm getting is even a url
so I could parse it using url.parse
 
user1596138
Yes you do lol
 
but a single regexp works as well
 
user1596138
/https:\/\/gist\.github\.com\/.*\/(\w+)/
 
user1596138
You know it's a URL and it's gist.github lol
 
3:39 PM
yes, using the regexp
that satisfies checking it is a url, and extracting the path
 
@zeddex stop spamming this chat to get an answer faster...
Hey, wait, did you just delete your downvoted question then re-ask the same question??
 
well fuck... gist.updated_at and gist.history[0].comitted_at are one second apart. 😒
 
no
it was a modified and new question
 
@Martin if they did, flag the second question and link the deleted one
 
3:46 PM
ghad dammit github. now I have to update my extension
 
@jAndy Look what I found: copy.sh/ecmascript_lesson_by_jAndy.mp3
5
 
in the api you can read last updated, and the history for each commit - the last commit in history time isn't the same as last updated time
depending on the gist
 
aren't "How can i fill the search box input on google?" and "How can i set some text in the google search box with tampermonkey?" the same?
eh, not quite, unless you include tags and title (which you should)
 
Hi, I'm going to write this all in one reply in order not to spam with mutiple messages: I'm starting to build apps via the Ionic Framework, where in the foreseeable future there will be plenty of tiny AJAX-like request, polling to check if there is new data.
I'm not 100% sure, but I recall to have read something quite a while ago where you have another type of calling the server.
I'm talking about requests that only return a few bytes of data, all the headers are a lot of overhead. Is there a name for the technique I'm trying to recall?
 
@copy haha
 
3:50 PM
@Martijn web sockets?
 
web sockets.
 
I don't know, I'll research those to be sure. A socket remains open all the time right? It has to be able to deal with a lot of users
 
seb wockets.
 
oh, two times the same reply, must be some truth in it then
 
Yes, that's an accurate measurement of truth on the Internet
 
War
3:52 PM
afnoon all
anyone here know kendo ?
 
No since originally it was a completely different site, i just modifed it to google because i knew people would have an issue with an unknown site so i made it general. Then i noticed it wasn't working for google, i have the answer now but people are being annoying and downvoting a perfectly fine question. Stackoverflow has haters
whatever
 
War
sound about right
everything is now duplicate
or not relevant to the curent stack site
 
no
not really
 
denied
 
your question has been asked in one way or another many times on this site, though without knowing what was wrong you wouldn't have been able to find it anyway.
 
3:55 PM
basically im getting downvoted because of an edit i made to make the question more relevant
plus it was only edited because i knew the question qwould have the url edited
 
you don't know why you're being downvoted
 
@litt
 
the only assumption you can make is people think it is low quality or poorly researched
 
and i wanted it working on that site originally
 
Oh, oops. Well, little pootis&copy, I believe web sockets are indeed what I am looking for, thanks (Y)
 
3:56 PM
well i got upvoted now to 0 at least
 
@Martijn you're welcome :)
 
or maybe not...
well the question is fine and the answer works well so if people want to downvote that then they are in the wrong, as far as i am concerned it's just a good example of form automation.
 
But anyway, later everyone and sorry if i annoyed you.
 
@Neal oh. Now I see it.
 
4:02 PM
@littlepootis ;-P
 
unicode URLs are the devel's work
 
http://😐😀🛀🍒🎺🍋🐟🍭.🍕💩.ws very useful indeed
 
asia will finally triumph then
 
http://🎱😎🚣🍪😜🐡📦🍑.🍕💩.ws
 
4:11 PM
that link just goes to about:blank
 
yeah
for me too
i thought the markup could handle it
 
it works if you copy and paste it
if you're willing to go through that much effort for that reward
 
no
 
4:13 PM
you need a protocol
 
it will be like the darkweb 3.0
 
or the markdown parser just won't do emojis
 
nobody will ever know the uri's
 
the dark web is already up to 2.0?
 
2.4
 
4:14 PM
don't you mean 2.💩?
 
hi guys how can I set the placeholder value of a dynamically created custom select object ?
 
we'd have to see it
because it's... custom?
 
I'm using jquery mobile but the select object and its options are created in javascript not in html
 
by what
 
they're created by document create element and appended to dom
 
4:18 PM
you should modify it before it gets appended.
 
during the creation I've tried to set its attributes
 
selects don't have a placeholder attribute.
 
el.setAttribute("data-placeholder","My Placeholder");
 
so you have to insert an option
 
anyone know any good tools for fine-tuning keyframe animations?
 
4:19 PM
but I fail
where el is the option just created
 
@corvid dev tools
 
what
 
what are you asking me?
 
Why would you add data-placeholder to it? is this some kind of plugin doing work for you?
remember, we're not looking over your shoulder, we can't see what you see
 
@towc can you get the dev tools to replay the animation?
 
4:20 PM
that's the point it's hard to explain what I've gone through
 
@corvid in FF's tools there's all of that
not sure if chrome's implemented it yet
 
code would likely do a far better job of explaining
 
An option with a data-placeholder="true" attribute. (This allows you to use an option that has a value and a textnode as a placeholder option).
this is from jquery mobile docs
and this part is what I'm trying to achieve that's why I had set data-placeholder
 
again
you have shown no code
 
4:23 PM
@venkatesh 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.
 
@KevinB I'll fiddle asa I get home
talk to you later hope to see you again
 
@corvid yeah chrome has it
it's on one of the tabs on the bottom of the dev tools, it looks like this
 
mine doesn't have that
 
click the sideways ..., then look under "More tools"
 
@corvid hit f12, then hit esc to bring up the console in the dev tools, then on the tripple ... menu on that console you should see "animations"
 
4:36 PM
@rlemon I know, I tried that, but it didn't bring up "animations", just "console"
 
yes, you need to find the animations bit
 
oh der, I see it now, thanks
under the little vertical ... icon
 
> then on the tripple ... menu on that console you should see "animations"
once selected, it should stay in the tab list tho
 
Look what I made.
 
having a small error with react :\ I think jwplayer isn't playing nice with react's re-render cycle
 
4:46 PM
@Trasiva I have that exact same oil/wax smell thingy
same colour and everything
 
@rlemon I need to find some better wax melts, the ones I have last like...five hours and then go dead.
 
@Trasiva I get them from my girlfriend's mum, she makes them. They last weeks too
 
only if you're on a boat
 
Am I missing a reference?
 
@corvid shouldComponentUpdate() { return false; }
 
4:52 PM
@BenFortune and you don't stop and say "no homo"
 
@BenFortune At best you'll be allowed to sit in the corner. At worst, I'll make it your ringtone.
 
@Luggage that's actually not quite the problem, I already did that
 
@BenFortune there is a band that sang songs about both being on boats and the rules for three-ways
 
then it shouldn't 're-render' at all
 
I can show you what I did, my thought process is the state should trigger a re-render that clears out what is there now
 
4:57 PM
I think even internal state changes are beholden to shouldComponentUpdate()
 
@Luggage here's the basic idea. After the video has completed playing, I expect it to re-render and "clear out" the video
 
@BenFortune @Trasiva straight trade. Soup for smells.
Barter that shit.
 
It won't. React sees no changes, just a <div/> so it won't do anything to it.
 
@rlemon That's thinking like a native.
 
@Luggage Oooh, that makes sense. So should I use this.forceUpdate(), or is that dumb?
 
5:03 PM
Use jwplayer's cleanup methods to destroy it.
also, the things you have in componentDidUpdate look like they belong in componentDidMount
Do you actually want it to destroy and re-create the div?
 
yeah, the reason for it is because I am going to add things within that div that do different things. One button will toggle it into "video player" mode
 
@littlepootis Fibonacci Spiral, obv
 
Make the video player a component (like you are). Make it just use jwplayer's .remove() on componentUnmount and then make a wrapper component that add/removes the component based on your workflow
 
So like, return this.state.shouldShowVideo ? <Video {...config} /> : <div {...config} />
 
// outer component
class PlayerContainer {
    render() {
        <div>
            {this.state.showVideo && <Player ... />}
        </div>
    }
}
Then the jwplayer's lifecycle will closely match the <Player /> component.
 
5:10 PM
How do i force adding instead of concatenation ?
 
haha those flags
 
@KarmaDoe make sure your variables are numbers
 
They are
 
then it'll add.
 
variable + 1 = 21
instead of 3
 
5:11 PM
@BenFortune yeah... let's try to avoid saying things that attract attention from flags :)
 
Did it pass?
Nope
 
then variable isn't a number
 
@JonClements Haha, sorry buddy
 
I thought 2 was a number, i've been wrong all my life
 
Are you sure i's not "2" instead of 2?
 
5:12 PM
@BenFortune ...what got flagged?
 
Not completely
 
@Trasiva The touchy stuff
 
well, then.
 
I'll go check then
 
> "make sure your variables are numbers" - Luggage 2016 :)
 
5:13 PM
I think Jon cleared it, since I should be banned
 
@monners hi
 
@BenFortune Cripes, people are so touchy. Maybe they should go back to their safe spaces.
@Luggage I mean, that should always be the case, but who teaches strict comparisons anymore. Am I right?
 
flagging a comment about rubbing testicles and being a "finger in your ears" SJW are pretty far apart.
 
technically speaking flagging a homosexual comment is hate speech
 
I didn't and wouldn't flag, but you gotta expect that when talking about sexual acts in a JS room.
 
5:15 PM
@SterlingArcher technically speaking comments don't have a sexuality so wtf are you on about
 
im high on potenuse
 
omg no
 
@Luggage Oh, I didn't see that. Makes sense then.
 
I'm high on water... Ahh yes, simple water, laced with a few spoonfuls of LSD.
 
You can never slip a Futurama reference past me. It's embarrassing even watching you try.
 
5:18 PM
@rlemon Did you add the edit ability to RoboGist?
 
I like my water with 0.1ppm of protons
 
I only drink heavy water.
 
Are you guys crazy? There's dihydrogen monoxide in there!
 
dihydrogen monoxide is dangerous, but you're better off drinking it than snorting or shooting it
most of the impurities get filtered out and you absorb it more slowly
 
@SterlingArcher So I'm at that magical point farming that I have to hope some really nice runes drop in B7 so I can progress to 100% clear auto on B8.
 
5:22 PM
nice!
 
0
Q: findOneAndUpdate work in mongo shell, but doesn't update with node-mongodb?

DrakaSANI have this function, which search for a document with a given ID (mID), check if another field exist (u) and if not, add the given id (uID). The code doesn't throw any error, but doesn't update the document either, however, building the query myself from the same field (the two console.log) and...

 
i have a problem with a project at school, we are supposed to make a completely dynamic webpage and make an "order" page in jquery (just allowing for choices, pricing and some easy calculation), and I've made this: http://folk.ntnu.no/williamo/prosjekt2016/bestill.html#

However, I have problems with the names (the two text-fields: Fornavn/Etternavn). The 'Legg til person' is supposed to add one new instance of the span element with class navn, however, it always doubles the amount in the list (i think), so I am left with an amount of six instances after two clicks (it maxes out at < 4).
all code is in the file bestill.js, btw
 
lmao I'm watching Blue Mountain State right now.. forgot how funny it was (I'm WFH).
> BEEP BEEP BEEP IM THE ALARM CLOCK TIME FOR BED NO HOT CHICKS
 
@gloriousCatnip I think this line is the problem: $(".navnContainer").first().clone().appendTo(arrayNavn);
it might be appending that to ALL results of arrayNavn = $(".navn");
yea.. Also, it's appending them INSIDE the previous .navn instead of "next to"
You want to appendTo the .navnContainer
 
OH. OF COURSE.
THANK YOU SO MUCH!
i just saw it in Developer Tools
 
5:50 PM
@SterlingArcher Not really, lol. I know I can handle GB10, but the runs are like 8-9 minutes...on manual. Don't have the damage/health for auto yet.
 
Hey guys
 
hey bud
 
How is the wild west of js coming along today?
 
still wild.
 
but only middlingly west
 
5:56 PM
And the console goes mild!
 
my console is topless right now
 
oh man, i bet it's got all the headers in it
 
!!s/console/wife/
 
@jAndy my wife is topless right now (source)
 

« first day (2228 days earlier)      last day (2719 days later) »