« first day (2764 days earlier)      last day (2407 days later) » 

00:00
so do you guys think there's any notable difference between a 8400 and amd's equivalent cpu? (mobo included in the equation) like any potential "cpu vulnerability hax" to worry about and subtle but critical differences like messed up virtualization
I have the 860 pro. I've never felt slowed down by it
(I'm planning on running vmware virtual machines like I do now)
so if you want cheaper but fast, thats a good ption
how many at a time?
just 1 :p
I bought all this ram a long time ago to idle 24 vms to farm hats in tf2
I did kali linux in one and bf4 at the same time
no issues
00:02
I was the hattest boi in the hood, I had everything, but not the common sense to do something better with my time and money
but I guess that was a valuable experience, and now I get to enjoy all this ram
@FrostyFire says the price is aobut the same on the site tho
and my current ssds work just fine, and have similar stats
960's multiple increase in throughput sounds enticing
@user1306322 shit I thought you were talking about a different drive tahts more expensive. I cant read
the mobo has an m2 port?
no idea, but I'd probably double-check everything before purchasing the whole build
there's gotta be at least one z370 board to support it
@FrostyFire no I was comparing my ocz vertex 4 to 960
860 seems on par with v4
also what's with that insane market share on 960
ssd.userbenchmark.com/SpeedTest/493995/… holy smokes 970 this is even better at a little extra
4 of those lol
in one laptop
with 64GB of ram
would be a very cool mobile setup
00:12
gotta watch out for max ram supported by laptop mobo
anyway thanks for a quick chat, I gotta go now
@user1306322 yeah tahts where I got the 64 number from. You could also add a regular ssd to that laptop. Samsung has one thats 30TB
30TB SSD in a laptop?
nah with the prices on even small ones and the performance INCREASE of 960/970 I'm gonna be aiming for them
lmao holy cow
00:17
@forresthopkinsa I wonder the max sata ports there are in a laptop
I had one with 2
you could get that up to 3 if you replace the dvd drive with a ssd
that's 90tb laptop
then its just adapters and wiring to about 10 taped to the back of the screen
90 + 300TB
brilliant
and the bottom but drill holes through the ssds for ventilation
you will lose some terabytes :P
!!giphy the limit does not exist
true because you could just keep layering them on the back. With more hubs and more adapters and some external power ports and external cpu cooling
its almost like I need a custom case or something
and fiber adapters to download all that family friendly content
can somebody join me in the c# room
i have a c# question and c# room is dead
@Traitor im out of practice and high and might not care to help but ask me there
thank you <3
<3 no homo
00:46
morn
01:13
@FrostyFire depends on the laptop my thinkpad cd drive wouldnt accept hard drives for some stupid reason
Had anybody gone through security clearance process in Canada?
It had been two days I submitted the clearance form
This for angular projects
 
1 hour later…
02:25
@DavidKamer Both the DOM( window.document) as well api like EventTarget to access that DOM is provided in window scope
> window.document
  #document
    <html>
      <head></head>
      <body></body>
    </html>
> window.Object.prototype.toString.call(document)
  "[object HTMLDocument]"
> window.HTMLDocument
  ƒ HTMLDocument() { [native code] }
> window.HTMLDocument.__proto__
  ƒ Document() { [native code] }
> window.HTMLDocument.__proto__.__proto__
  ƒ Node() { [native code] }
> window.HTMLDocument.__proto__.__proto__.__proto__
  ƒ EventTarget() { [native code] }
> window.HTMLDocument.__proto__.__proto__.__proto__.__proto__
Looks weird to me
Because some child of window.document is an instanceof HTMLDivElement.
and the HTMLDiVElement interface itself is part of same window scope
oo fun
our whole system was plagued with that for a loong time
different encodings everywhere
 
3 hours later…
06:05
hey guys
I have two variables with ranges
For example 1 variable has range 12 - 42 and the other variable has range 42 - 9
if variable one increases the variable 2 should decrease in same quotient
how do I implement it effectively in terms of a program in javascript
06:20
scaryish:
@littlepootis woop woop
man es2015 sounds so old
it is
06:39
I feel like this isn't even a fair competition (they are both executing the same python function)
06:56
what are some reasons to use esmodules instead of commonjs modules in non-performance-focused node applications?
I like es modules because the syntax is neat, and I understand there are a couple more advantages, but the prettiness of the syntax won't be enough convince the team
I guess it can fall into the "new and shiny" category, which isn't really a plus
every non node-modules require he uses is dynamic, and it bothers me because of actual issues in me navigating code more easily
I explained that, and he's not really convinced
then I said "well, es modules will normally need static paths anyway"
but that was assuming we'd eventually move to those
and then I realized there might not be a particularly good reason to
IMO es modules are one of those things you won't even start to use browser side until all browsers reliably support them. Right now we all have tools to solve the problem.
@towc Consistency, future-proofing
@littlepootis commonjs is pretty consistent and future proof
if anything, es modules aren't finalized in node yet, are they?
..., Standard
for example, the mjs thing
07:10
Yeah, just an experimental support .
Hello everyone :) I have some problems saving the S3 link to my mongodb. Would anyone be willing to take a look at my question please?
@Alain Welcome to the JavaScript chat! Please review the room rules. If you have a question, just post it, and if anyone's free and interested they'll help. If you want to report an abusive user or a problem in this room, visit our meta.
07:49
// Momma once said: 'reflect yoself!', so I did.
    if (!!options) {
      Object.getOwnPropertyNames(options).forEach((option: (keyof QueryOptions)) => {
        if (option !== undefined) {
          baseUrl.concat(`&${option}=${options[option]}`);
        }
      });
    }
@KamilSolecki {"fuck=you": "lol"}
Also, is it just me, or are you not doing anything at all? .concat doesn't have side effects
well fuck I always forget that it doesnt mutate
08:04
@MadaraUchiha That should say something about the substance of his self-reflection o_O
@MadaraUchiha btw, is this a bug?

in this case above, if I do if (options[option] !== undefined), in that scope it still sees it as possibly undefined
but if I assign it to a variable
it doesnt
@KamilSolecki It's, sadly, not a bug.
hmm, why does that happen?
It's because of the return type of Object.getOwnPropertyNames()
Rathern than returning (keyof T)[] where T is the type of the first argument, it returns string[]
08:09
Although I'd probably do something like
does anyone know how I can use Regex to get 2 words in a string? eg: "28th April 2018 by Frank Tycinska | "How do I get Frank Tycinska
@blusoup Welcome to the JavaScript chat! Please review the room rules. If you have a question, just post it, and if anyone's free and interested they'll help. If you want to report an abusive user or a problem in this room, visit our meta.
[...Object.entries(options)].map(([key, value]) => `${encodeURIComponent(key)}=${encodeURIComponent(value)}`).join('&')
Much better
Danke
With ${} around the parameters, of course.
Right
Imma go get myself some pancakes.
TTYL all
08:12
I want pancakes
@Ikari Well then, come over. I'll treat you to the best pancakes in Tel Aviv.
:D
08:25
@MadaraUchiha travel expenses included?
I'm in
also, I wish there was a standard for avoiding a lot of .. that wasn't using absolute paths
say you're in /a/b/c/d/e/f and you want to end up in /a/b/c/1/2/3. You'd normally have to do ./../../1/2/3, but what if you could do something like ~c/1/2/3, where it looks for the first directory named c going backwards, and runs the rest of the path from there
never mind aliases and all. I want this
maybe different syntax, because ~something is used already by other things
maybe <c/1/2/3
and you could also look for files. Would be trivial to find the nearest git repository, package json, eslintrc
@BenjaminGruenbaum who do I ask for this to be a thing?
as a standard
might make node heavily preferrable to other systems, until they catch along
A file query language and library ? Why not just make it instead of waiting for a standard? There's not enough usage in clean programs for this to be a standard
I wouldn't call ./../../../../ syntax clean
@towc I don't have to do ./../../../../
Those accesses are usually encapsulated, for example you ask the owner of the thing upwards access to a resource, you don't yourself try to guess where it is
Example in Miaou: you could from a plugin try to require a library by doing a require("../../../libs/rex.js") but there's a clean way which is miaou.lib("rex"). If you need those ../../../../ there's probably something idly designed or badly encapsulated
how do you handle shared code in monolitic repos?
each subproject maybe has a module that imports everything from the shared code?
08:36
didn't I just answer that ?
a bit of overhead, but that's kind of clever actually
@DenysSéguret but then you lose a lot of intellisense :/
you're forced to require dynamically
you don't need any intellisense then
or get dynamic properties
Requiring files directly seems very wrong to me. By breaking this encapsulation you force the called lib owner to keep his files as is.
you put the logic of getting a resource away, putting it in a black box
08:38
oh wait
@GNi33 black box means, again, likely no intellisense
@towc you can set base path
how can I randomly split files form one folder into 2 folders using bash?
given a probability between 0 and 1
@towc intellisense for what?
@GNi33 the contents of those libs
and then everything will be relative to your specified root
08:40
the black box should have a well defined and predictable structure
predictable by something like intellisense, that is
you're talking about an interface here
if you use typescript, sure
yes, but what does this have to do with intellisense?
I'm using vanilla node
no babel?
why?
why make things hard on yourself when there is tools to do things for you
08:43
codebase isn't with babel, that's all
what exact part of the example of Denys does break Intellisense? I actually don't know what you mean right now
I like how people use "intellisense" as a synonym for "code completion", just like other brand names like "hoover", while MS's code navigation is pretty much horrendous
o/
@GNi33 the lib-fetching module will either use a dynamic require, or dynamically get a property of an object which stores the lib. That means that whatever is parsing the code for context-aware completions and info would need to run the code to figure out where things come from
and well, I'd really rather avoid my IDE to run the code
and it doesn't
it shouldn't have to run it, if there are alternatives
oh I see, where's he's talking about the libs example, yeah
what's DidYouMean?
its an element of didyoumeans duh
hey can you help me why my bootstrap is not applied in html
<link href='../CDN/bootstrap/css/bootstrap.css' ref='stylesheet' type='text/css'>
<link href='../CDN/bootstrap/css/bootstrap.min.css' ref='stylesheet' type='text/css'>

<script src='../CDN/jquery/jquery.js'></script>
<!-- <script src='../CDN/popper/popper.js'></script> -->
<script src='../CDN/bootstrap/js/bootstrap.js'></script>
<script src='../CDN/bootstrap/js/bootstrap.min.js'></script>
also checked if bootstrap is enabled
<script>
	$(document).ready(function(){
how could I be so dumb
@towc jokes aside, thats the structure of Wolfram Alpha's api, that I extracted over 4 hours today
09:04
statistics from the DidYou package, DidYouMean, DidYouMedian, DidYouChiSquared, etc.
their docs suck
@KamilSolecki don't you have a job?
(this is a joke. I understand you get to do other things in your time)
uh yes :P
note how stupidly inconsistent their api is
I don't like mathematica
like, some things will be an array always, some will be array | object depending on item count
also im 95% sure its correct but im gonna spam some queries tonight and check if it is
@towc ooh I meant yesterday btw
today I just dropped a few funcs
09:20
What should be the operator precedence level of the dot in super.constructor ?
should it be greater or lower than the one of the new operator ?
Said otherwise: Should new super.constructor be the same as new (super.constructor) ?
/me suspects nobody's interested...
Back
@DenysSéguret I think that it should
So much time just for some pancakes?
Seeing how the operand to new can be any expression
they must've been yuuuge
@Ikari And they were delicious.
@Ikari Just the talk to the place is like 10~15 minutes, the pancakes themselves were devoured in relatively short order.
09:26
I just had some KFC, you can't make me feel hungry anymore buhaha
@MadaraUchiha the operand to new can be any expression but ̀operator precedence rules still apply, for example in new A < B
@DenysSéguret Right
But in the case of dot, it makes sense since there's a fair chance that the constructor will be a member of an object
new MyCompany.Widget()
is an entirely plausible scenario (and has been for the past 15 years+)
I agree that it makes sense. I just don't find what's specified
super.constructor is a new construct, it doesn't follow the member access rules
Ah, specifically super.constructor
I ask because of this:
@MadaraUchiha yes, this is very specific
And I suspect many problems could arise if this construct doesn't have a well specified precedence
!!afk looking for some pancakes
glaze them with some honey
09:55
!!back didn't find any pancake
@DenysSéguret That didn't make much sense. Use the !!/help command to learn more.
@totallyNotLizards Information on interacting with me can be found at this page
10:10
Hello ! In nodejs does the garbage collector run if the program is stuck in a loop ?
@AnisSmail Welcome to the JavaScript chat! Please review the room rules. If you have a question, just post it, and if anyone's free and interested they'll help. If you want to report an abusive user or a problem in this room, visit our meta.
@AnisSmail short answer: yes
long answer is don't get stuck in a loop :D
For the longer answer, I'll let you look at the version you want for the engine of your choice.
(is chakra for node still a thing?)
I think it's used mostly for running Node on iOS devices, because v8 is hard-blocked
10:17
Thank you guys, I use node 8.7 which seems to use V8 6.1.534.42
so, I screwed up with git again
wanted to change the commit message of 2 commits ago
@towc Interactive rebase?
I long ago decided I wasn't a git ninja and I refrain from changing pushed history
did git rebase -i <hash of 3 commits ago>, changed pick to reword on the commit, and changed the commit message on that same line
then vim opens up again, as if it was asking for a commit message
10:21
I tried to push, but it said that I was behind on the branch. The issue is that nobody else modified the branch
@towc you did
I pulled and merged locally, and then pushed again
You modified history
@towc Bad move :D
Changing pushed history always involves a forced push
oh, so I should have forced it?
anyway, the server now sees this:
When you changed 2 commits back, you also changed every which has that commit as an ancestor
So now it seems like someone pushed 3 commits, and you're trying to push 3 entirely different commits
As though the branch advanced 3 commits while you weren't paying attention.
10:23
@MadaraUchiha oooh
should be fixable with another rebase, right?
No
You should reset so that the merge commit never happened
And then push -f
Be advised, anyone who already pulled from your altered branch will have to pull with rebase
Else you're gonna have a Really Bad Time™️
so git reset 8a79aa3 (the second from bottom), and then git rebase -i <hash of commit before the one I want to change the name of>, then git push -f origin <branch>, right?
@towc Hold on
git log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit
Can you run that, and screenshot the relevant part of the history?
@DenysSéguret I kind of see myself as a git ninja, but I still refrain from altering pushed history in this fashion. I still use rebases for catching up, but even that is done carefully and with git status and git lg every other command.
what is this git sorcery going on
10:27
thanks
thanks
Right so, you can see two mini branches running simultaneously
The old history and the new history
yup
You want to reset your branch, so that it points to the new history, the one you want
I'm guessing it's the one from 12 minutes ago
i.e. the left one?
yeah
Right, so git reset --hard 0c5b629
Make sure with another of those fancy commands that the history you want is the right one
Then git push -f if you like how it looks.
10:30
I see
# btw

git config --global alias.lg "log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit"

# Will allow you to invoke that fancy history tree with 'git lg'
yup, that did it, thanks 😀 Definitely learnt something
Again @towc, I can't stress this enough
nice
6 mins ago, by Madara Uchiha
Be advised, anyone who already pulled from your altered branch will have to pull with rebase
Anyone who has a different version of the history you now force pushed, must git pull --rebase
In general, I like git pull --rebase better than git pull with merge, because you don't get nasty merge commits every time someone worked on a branch together with you.
10:32
what would happen if they didn't?
they'd get merge errors?
7 mins ago, by Madara Uchiha
Else you're gonna have a Really Bad Time™️
yeah
Double commits, which means double diffs, or disappearing commits and diffs, to name a few.
Rebasing over merges is nasty, nasty business.
yo Mads!
@user1306322 o/
10:33
what do you think about Hg?
everyone is using it at work coz it's got windows explorer integrated context menu stuff and sync state icons
Never used it.
I personally prefer vs's builtin git support
CLI all the way for me.
I see you don't use gui - yea that's what I figured :p
10:34
You know where you stand with CLI
@RyanSearle Welcome to the JavaScript chat! Please review the room rules. If you have a question, just post it, and if anyone's free and interested they'll help. If you want to report an abusive user or a problem in this room, visit our meta.
I use vs's builtin git support for trivial stuff
And for diffs and merge conflicts
I use vim plugins for what it's worth
I use it for diff stuff all the time
But actual history traversing and manipulation? Merging? Rebasing? Definitely vanilla git commands.
10:35
for trivial stuff. Definitely not rebasing
(did you know you can edit the current uncommitted files in diff view in vs?)
althought rebasing actually can bring you back to vim, funnily enough
@user1306322 Yup, that's a nifty feature
I use Magit for just about everything but sending patches
I resisted for a long time, but it is so much better as a workflow
@SomeGuy I tried to give Emacs an honest attempt.
I really did.
10:37
@MadaraUchiha You may want to try just Magit even. Great rebase flow
Honestly, the git tool I miss the most is WebStorm's/IntelliJ's 3-way-merge tool
Hi everyone! it's my first time in the chat so I don't if this question is allowed or off topics but... if there's any javascript experienced developer among you, could you tell me in your opinion the best approach to javascript? I already studied the basics but I'm looking for a course that helps you implement javascript in a website, using it for interface, client and server side...
@Blank Welcome to the JavaScript chat! Please review the room rules. If you have a question, just post it, and if anyone's free and interested they'll help. If you want to report an abusive user or a problem in this room, visit our meta.
It is, by a very large margin, the best tool for the job, and nothing else even comes close.
You have the 3 way merge tool in fugitive
10:39
@Blank depends on what you wanna do with it
any specific things in mind? or do you want just a general overview? in that case you'll be better off just googling tutorials
@DenysSéguret Except I'm not a vim fanatic
ediff can do 3 way merges, I believe
@user130632 everything, from server to client side.. I wanna understand whatever takes to make a full website. How javascript links content to the server. I was wondering for example how to create a blog with javascript, without having to write alwaya the content in the .html page
(Which Magit can use under the hood)
@Blank yea I think you should look through at least 2 different tutorials but the more the better (personally I'd doze off after 15-20)
look into how asp.net mvc apps work
there's some client-side js there
but what is your end goal?
10:44
@MadaraUchiha It took me some 3 tries to actually customize it enough that I'd like it
I love it now, but it was definitely difficult in the beginning
@blank If you really want to learn JS as a full stack look at creating a simple http server with node.
Also, beware the Emacs pinky!
do you want to get a job with js experience as a requirement? or do you want to make a site? or a game with js at the main language?
or do you want to make a js chat bot
@user1306322 I wana become a full stack developer and understand whatever is behind a website
ok then you should search for tutorials with that goal in mind because they are all different and not all of them suited at teaching you what you'll actually have to deal with in the line of duty
10:45
@RyanSearle mm this is already a great help. So to use javascript on server side I need node.js and its methods
(these are just generic words of advice which really fit any programming language, and I actually know very little about js, I'm a c# guy primarily)
I've only had to deal with js while making my own userscripts and editing other people's
@Blank If you're unsure of how the web stack works I would recommend spending a decent amount of time learning that. Find out what happens when you send off an http request at some address.
@user1306322 I see and here's the problem. I found really few tutorials about full stack development and I didn't like them.. there's no explanation of concepts. Lack of interest for beginner
btw @Mad you seem to have had some trubz with the starscript and so it got updated here github.com/somebody1234/star-thumn
wait... is @user1306322 hakase?
10:48
ya
don't tell anyone tho
yo/ lol
@Blank you should also browse a bunch of job descriptions for full stack devs, some of them list a whoooooole lot of things you gotta know, and it's useful as a checklist of things to learn
that's how I'm currently studying things to get to a higher position
@user1306322 This is definitely a good advice as well
thank you very much for the answers, I'll keep browsing, searching and studying!
Anyone competing in this weekend's angular hackathon?
Guys, did you upgrade to node10 ? I had to downgrade waiting for bug fixes...

« first day (2764 days earlier)      last day (2407 days later) »