« first day (2788 days earlier)      last day (2146 days later) » 
00:00 - 12:0013:00 - 00:00

Wes
1:21 PM
oh they managed to make another monstrosity in chrome. the "scroll" event now fires in sync with smooth scrolling, so i need to setinterval all over the place to get the scrolltop/scrolleft values
 
or use another event
 
Wes
like wheel?
 
I don't know, but I guess there's something
and I don't think they changed something that breaks a lot of already implemented sites
 
Wes
except they always do :B
 
except I don't think so :d
 
Wes
1:28 PM
well this is an experimental feature so maybe they will change it before they ship it
 
if it's an experimental feature I doubt they changed the original one
 
@Wes count on it ;)
 
Wes
lol
right now if you try to get eg scrollTop while it's "smooth scrolling" you get a temporary value rather than the final value
 
what can I do to make my html table fit to page in @media print?
right now, it is getting cut
when printing
*by default
 
Hi guys. I have a very simple question: Is there a name for a web application that runs completly in the browser using Javascript and does stuff, that normally only a desktop-program would do. I made a website, that classifies scan-data using Machine Learning and it runs on js only. Now I need the name for that kind of application for the docs. I know there was a name, but I am too dumb to find it on google again.
 
1:39 PM
@allinonemovie 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.
 
@allinonemovie Backend? :D
 
the good ol' backendjs
 
I don't think so. I would consider PHP, Databases etc as backend in a web application... There is some other name like "static website" or "dynamic website" but I can't remember it. BackendJS? I will look that up, thank you
 
noooooo
it was a prank!
if you want JS for the backend, try node.js
 
backendjs is a node-module, that's why I was a little bit confused, but I thought let's look it up, maybe it's the correct answer anyways :D No, I don't need help with development, everything is finished already (malscc.de). I just know how to call this type of application in the docs...
I want to write a sentence like "MalSCC is a client only/javascript only application for classification of scan data" or something like that. But there has to be a proper word for that kind of application...
 
Wes
1:48 PM
god this is awful
 
@Breathing Maybe the css "overflow" property helps, I don't know. Have you tried that already?
 
Wes
@Neoares this is how firefox solved it bugzilla.mozilla.org/show_bug.cgi?id=1172171
 
where's TL;DR
 
Wes
they added a "scrollend" event. and it's terrible
 
well
at least they patched it
 
2:00 PM
@allinonemovie you mean at the time of printing?
in @media print?
 
Yes, you could try that. I am not really a css-pro though, so I don't know if it's going to work. Just an idea ¯_(ツ)_/¯
Maybe you could look in the source-code how paper-css does it, if they support it: github.com/cognitom/paper-css I haven't tried your specific case yet though, I don't know if it handles it
 
Is there any real benefit to making "pseudo-modular" pages where I append/empty divs to show different views or should I just write out all my html and do show/hide
just seems like it's harder to make fiddles when i'm doing this append thingy
 
Not sure I understand the difference really lol
one benefit if you just hide with CSS is your text content will still be crawled if that's valuable to you at all.
 
2:17 PM
i don't care about crawling so much. it's a customer portal for verified customers only
i'm mostly trying to not have a ridiculously long HTML document at any given time that contains more logic than i actually need; this is sitll in development and i've had untold issues from hell trying to get NPM and dependencies with actual frameworks to install on this windows 10 machine
it's unbelievable how bad this has gone with NPM
react and angular both crapped out on me and i'm not even gonna deal with sencha
 
@towc I proved out the webgl wrapper so far; the readme shows all the code it took to render a 32x32 pixel art teacup to canvas github.com/cyclonic-games/picasso/blob/master/readme.md
I'm pretty happy with it so far
Also unrelated, MS finally responded to my issue about web components in edge developer.microsoft.com/en-us/microsoft-edge/platform/issues/…
 
I for one welcome my Microsoft Overlords 😉
 
microsof is killin me tho, loktar. can't run NPM stuff right
 
Knu
They didn't use that verb unintentionally.
 
2:30 PM
wat
 
Knu
Light hint. Very stylish I gotta say.
 
@cryophoenix that's on you lol
 
Knu
1 point for shrewdness
 
I work on Windows all day long have never had NPM issues
well I have, but they were NPMs fault because it's shit. But even then rare, and an easy fix, blow it all away, clear npm cache.
 
not sure what's going on. i try to install react or angular and like..half the stuff throws deprecated warnings
then i try to update the deprecated versions of the dependencies
and trhen the updated versions say that some dependency THEY have is deprecated
 
2:33 PM
Yeah that's NPM dude, not Windows fault. You on the most recent vs of NPM?
 
i was on npm 10 i think
er
idk what it was
yeah it was the most recent
 
Knu
@cryophoenix you should run npm audit
deprecation warnings are secondary to that
 
warnings are made to be ignored
otherwise they'd be errors
 
i guess.
but i hate to run deprecated stuff that won't even be supported
later
you know what imean?
 
Knu
perfect is the enemy of good
 
2:35 PM
idk. it says 8.11 LTS is the best for most users, but 10 is the current one. which one should i really be using
im about to go up to those people at Node and be like "I'm the hand of God, I'm the dark Messiah, I'm the Vengeful One!"
 
npm's current version is 6.x, not 10; don't get it confused with your node's version
 
seriously tho latest version or the LTS
 
whichever is right for you
 
not sure how to determine that
 
Well I'm definitely not sure how we're supposed to determine that for you
 
2:41 PM
i mean, are there compatibility isues with node 10?
 
What does the changelog say?
 
a buncha stuff that makes no sense to me whatsoever
i don't do super technical jargon
i sometimes call objects "thingies"
 
Now's the time to learn
 
and that'sa all the more likely today since i was up till 4 AM last night building a triforce and master sword on minecraft.
but honestly, is using angular going to be necessary if i just start using ES6 classes?
 
@ndugger seems very lightweight
might help a few get started, but after the basic concepts are understood, I doubt people mind the minor overhead
 
2:57 PM
the overhead of working directly with webgl does not feel minor, at least not to me. It's one of the poorest designed APIs in JS that I've ever worked with (though I understand why it is the way it is)
 
ohhi
wut... microsoft github? they're going to destroy it
 
Why do you think that?
 
i mean....
skype, linkedin, both were great before they got their hands on it
 
linkedin was great? didn't they bother you with stupid emails before?
(fwiw, i never used it, i just dislike it because it sends me unsolocited emails that xyz wants to connect with me)
 
Not that i recall
oh, well, yeah if people are trying to connect with you you're gonna get emails, :p
Now it's more of a lead generation tool
 
3:11 PM
Except that people tend to bulk-import their address book :p
 
The only way to hide your information from paid users is by deleting your account now
 
Skype was always bad; it was just what we had that was a step up from msn messenger. Linkedin has always been a circle jerk of mediocrity and spammy recruiters.
 
@cryophoenix I'd stay away from angular as far as I can ;) just use something nice, like react
 
They stopped improving skype and added advertisements to it.
 
react screwed me over too :P
Cpi;dm
the freaking tutorials for both of those things failed to compile
 
3:20 PM
Does someone here have experience with webpack/underscore templating?
 
just ask
if someone can answer they might
 
3:32 PM
:B Okay haha. I am using htmlWebpackPlugin with underscore templates, and I am passing a lot of the page variables (such as logo, title, etc..) from the htmlWebpackPlugin options so that everything can be changed without changing the templates. I want to set background images like that too, but I don't know how to dynamically set CSS variables (especially images) from the entry point
Ideally I want to be able to do something like this
var headerBackgroundImage = require(htmlWebpackPlguin.options.bgImage);
require('style.scss')({
    '$header-background': headerBackgroundImage
});
 
that's interesting. i could think of a way that'd be possible, but i've never tried anything like that
 
I know there's a way to do it in webpack.config.js but I would think it would make a lot more sense to do it in index.js
 
3:58 PM
hi
tochild.stdout.pipe(logger.stream());
to child.stdout.pipe(logger.stream());
how can i pass a string which would prepend before logger.stream()
when the output would be logged
 
Couldn't you just do child.stdout.write('foo') or whatever it is?
 
i need to .pipe
can i do something like
child.stdout.pipe('[abc]' + logger.stream());
 
@TapasweniPathak I think he means before you do .pipe
 
Probably not, seeing as how you're trying to concatenate a string and a stream
but also, yes, what kendall said
 
oh i get it, right.
 
4:02 PM
since stdout does not append line breaks, like console.log, it will all be on the same line
 
you know, maybe the other reason nothing's making sense to me today is because i spent part of yesterday in the ER after getting mad and kicking a glass vase over League of Legends
 
First you were playing minecraft, then you kicked a glass vase over league of legends. Have you considered seeing a shrink?
 
@cryophoenix I think there might be another issue even deeper than spending time in the ER
namely - what caused you to kick a glass vase when playing a video game
if it wasn't "VR goggles", at least
 
because it's ranked. it's my damn life.
i live and die by the midlane.
apparently, nearly literally.
barely move my fingers of mpy left hand today too bc of pounding keys all day yesterady awith no dampeners
hey at least i'm no longer taking pliers to my fingers over missing skillshots.
i'm slowly becoming more sane
 
user2620028
4:37 PM
just play teemo
 
user2620028
no skillshots to miss
 
just play crazy taxi
 
@copy are you using eval for 72?
 
Ewww teemster.
i ish birb.
 
user1596138
5:04 PM
Microsoft buying Github? lolwut
 
5:24 PM
oh noes, i hurt someone's feelings
 
user1596138
!!stat KevinB
 
@Jhawins Kevin B (https://stackoverflow.com/users/400654/kevin-b) has 82492 reputation, earned 33 rep today, asked 7 questions, gave 2308 answers, for a q:a ratio of 7:2308.
avg. rep/post: 35.63. Badges: 11g 130s 151b
 
!!stat littlepootis
 
@littlepootis You (https://stackoverflow.com/users/1947276/little-pootis) have 744 reputation, earned 0 rep today, asked 2 questions, gave 7 answers, for a q:a ratio of 2:7.
avg. rep/post: 82.66. Badges: 1g 8s 19b
 
Anyone know of a library for node that will list out the contents of a remote git repo?
 
5:39 PM
what is you guys' opinion on parcel vs webpack?
 
@corvid What's parcel?
 
@FlorianMargaine I guess now you'll never get back to Github 😃 ?
 
!!tell 42802398 woosh
 
@MadaraUchiha Command whoosh does not exist. Did you mean: woosh (note that /tell works on commands, it's not an echo.)
 
@MadaraUchiha clearly the command should be whoosh and not woosh
 
ah oops
 
@CapricaSix yeah gotcha
 
6:19 PM
@Shmiddty Nope
It was two separate 1-character optimisations from 74 for me, if that helps
 
and you're not using it... hmmm
 
7:17 PM
I have a hunch that MS is going to open source Edge, or at least make some sort of announcement around it soon; probably having to do with their acquisition of GH
I have no proof, but mark my words
 
user1596138
7:31 PM
I am absolutely confident that MS acquiring GH has nothing to do with open sourcing Edge...
 
user1596138
Because like. It doesn't cost 7.5 billion to open source Edge.
 
user1596138
MS wants us to like them.
 
they want more ways to make $$
what business doesn't
 
user1596138
Fosho
 
7:48 PM
but I already like them!
Open source Windows please
actually... man Open Source dos ffs
 
this is way too funny:
Under maritime law, your vessel may be subject to safety inspection at any time. https://t.co/v5uw98P3Vr
 
that would be so awesome
 
@Loktar probably riddled with security issues. I wonder how many critical servers still use it
 
@towc yeah that's true
but.. it's waaaaaay past EOL
but something I hadn't considered I suppose
 
@KevinB have you met me or some of my business ideas?
 
7:51 PM
@Loktar I'm not sure the world is quite ready for that...
 
man, that would be so fantastic
 
I think we shouldn't disturb the dead :P
 
if the business isn't meant to make money, it's not a business
 
well, money is always a side effect
 
that would be a non-profit
 
7:52 PM
you might want investors to think you really just want to make money
 
user1596138
@KendallFrey That's only when you plan not to make a profit heh
 
That's from 2016
but apparently they lost 66 million
 
user1596138
@towc That ones called fraud
 
well, I do want to make money. But as a side effect
none of my businesses will ever prioritize money
 
@towc that's the way to do it.
Be passionate about what you're doing and let the money come as a side effect
 
7:54 PM
gates didn't build microsoft just for money. I think
 
user1596138
He prioritized money. For damn sure
 
user1596138
But sure it doesn't have to be all about the money
 
@Jhawins I think that was the context here, yes
 
user1596138
@KendallFrey He was saying he will take a profit because it happened to make money. If he's a non-profit that removes his non-profit status
 
user1596138
Doesn't matter lmao I need more coffee even tho it's 4
 
7:55 PM
3 mins ago, by Kevin B
if the business isn't meant to make money, it's not a business
 
Hi have anyone here integrated twilio video api to noderest api?
 
I find it quite interesting that so many people don't think that microsoft "kept github alive"
on the other hand, I don't know who else was going to buy them
 
I don't think MS would pay 7B for something that needed "keeping alive"
 
also, the deal's far from done
@KendallFrey isn't github steadily losing money?
there isn't much more monetization to be had. If not maybe more partnerships, more ads, and pushing people to get private accounts
 
oh my god ads on GH would be cancer
 
8:03 PM
but all of those would have had some limit, without a more stable backer
 
@towc I pay for the premium for private repositories.
 
@Trasiva good
 
so do I... but it's $7
I remember back when you only got 5 for $7
 
Right
 
then they upped it to unlimited kind of nutty
 
8:05 PM
I dunno what the logic there was, but I'm not going to complain, lol.
 
@KendallFrey remember when they bought minecraft for 2B?
minecraft was worth maybe 100M at most. I don't remember the numbers
that was kind of a dick move, though
 
no way dude
it was worth so much more than 100m
 
It was obviously "worth" 2B
 
^ yeah I agree
 
point is, they don't buy because of the monetary value of certain businesses
 
8:06 PM
it's still popular as hell
 
value is determined by the market
 
There was a clear monetary value in Minecraft though
They bought the Mario of my kids generation
 
user1596138
They really should put some ad-blocks in Minecraft
 
user1596138
Ba dum
 
@Loktar not 2B worth, from what I remember
 
8:07 PM
@towc I recall calculations that showed minecraft could definitely earn them their money back
 
I think the point was that otherwise that money would have gone to taxes
and microsoft decided to use it to buy something instead
 
@Jhawins signs
 
I was like 15 when it happened, I'm not sure how much I remember
 
Okay, so this thing is popular. But why is it worth $2.5 billion?
Because it makes money. Thanks to its old-school strategy of actually requiring people to buy a game before playing it (instead of using in-app purchases, for example), last year, Mojang made $126 million in profits on $289 million in revenue. That’s a lot for a studio that has only 28 employees. And combined with the tech world’s obsession with youth, it’s a surprise Microsoft didn’t pay more than $2.5 billion for it.
That was back when it was purchased.
 
I used to sell sugar cane for $0.99
 
user1596138
8:08 PM
I just saw my local Sears store listed for sale... For $40K lmfao
 
The rule is what, something like buy a company for it's 7 years of value?
 
user1596138
Only relevant because bizness
 
hi, can I ask about the php, I am not able to get the needed info in that room?
I write a script with like 5 or 10 functionalites, lets say, so one file per functionality and create within that?
 
user1596138
That's the PHP room unfortunately
 
kind of start from the thinking like that, one file per functionality and this is where I write the code?
database - - - dirs/files - - - html/css -> so I write in the files, code
so break the script into functionalities, create a separate file for each and write that
file after file; this way I could narrow it down, know what to do more...
 
8:12 PM
@MadaraUchiha ten5 Alert!
 
@StatikStasis 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.
 
@StatikStasis rager that
 
@ten5 What, again?
 
@MadaraUchiha He was just in php and Dan removed him after he dropped the same drivel in there. He then moved here.
2
 
Wes
8:39 PM
i think i know what's that rfc about
 
probably dogs
 
Wes
kittens?
 
dogs are better
 
9:19 PM
hello
how can i acess specific attribute from my object in javascript debugging
console.log(angular.element(e.srcElement).scope()); it's works
 
1 message moved to Trash can
@EduardoHerrera Please don't post unformatted code - hit Ctrl+K before sending, use up-arrow to edit messages, and see the faq.
 
var car = {type:"Fiat", model:"500", color:"white"};
 
you mean console.log(car.type)?
 
9:37 PM
??
 
Wes
has anybody ever tried to make a auto-hiding nav bar that is not position:fixed?
 
auto-hiding?
in what way?
 
Wes
like when you scroll down, the header disappears. if you scroll up it reappears again
 
not sure i understand. Why would it be fixed if it's hiding
like, as you scroll it fades out or something?
position:sticky could work just as well as position:fixed, but i doubt that's what you're looking for
you could use position:absolute, but then it's gonna lag behind
 
Wes
you know chrome on your phone, when you scroll down in the page it hides the address bar, right? and if you scroll up it shows the addressbar again
 
9:42 PM
right
Ok, so. why not position:fixed?
any solution that doesn't use position:fixed or sticky will rely on javascript to get the positioning correct, and that's not going to be very smooth
 
Wes
it needs javascript anyway to detect the scrolling
 
Right, but updating the position of the navbar while a scroll is occuring isn't going to be accurate
it doesn't fire fast enough
it'd probably be fine on a top of the line desktop PC
 
Wes
say i have two panels like this:
|A|
|B|
where A is the menu and B is the content panel with "overflow auto"
 
but mine, or a phone, it's gonna lag behind
 
you want to take advantage of the hardware accel that you get with idiomatic methods
and browser shortcuts etc.
 
Wes
9:46 PM
if i scroll B 2px down, it will have the effect of scrolling 4 pixels, because 2 pixels of height are removed from A
but it's not the end of the world
the reason i'm avoiding position:fixed is that in-page anchors are hidden behind the sticky top bar... get what i mean?
of course there are solutions to that but they suck
 
yup
that's understandable
i hate sticky nav bars
 
what does everyone think the next big tech breakthrough will be?
 
none. i think we'll start spinning our wheels and moving backwards
 
lo
l
 
Wes
that would be some wise thing to do
 
9:55 PM
any ideas?
 
10:18 PM
anybody in here?
 
onyl me
 
Permian, I've having a git issue. Do you think you can help me?
 
🚽
 
probably
 
I don't know what happened, but my local git repository has stopped being recognized as such, i.e. i get: fatal: Not a git repository (or any of the parent directories): .git
But the .git folder is there. If I "reinitialize" a git repo, will it destroy all my commits?
 
10:20 PM
198
Q: fatal: Not a git repository (or any of the parent directories): .git

user3072482When I tried to push an existing repository on github.com, and it when I entered the command the website prompted me to put into the terminal, I got this error message fatal: Not a git repository (or any of the parent directories): .git If anyone could help me with this, then ...

 
Yeah, I read that one.
Just worried that git init will destroy all my commits.
 
sorry but i dont know
in this case
i usually do it anyway
can you clone it from your repository
and merge into that branch
 
you know, i've never cloned a local repo before
sounds like a good idea in this case
 
dont you push to github.com??
 
if only git recognized it as a repo..
i'm trying to get into the habit of pushing more stuff to github
i push a lot, but not all
do you?
 
10:23 PM
everything
but i dont do much
 
you know they were acquired by Microsoft recently
 
yeah
whats everyones thought on that?
@PeterWard i dont do anyhting commerical worth anything so i wouldnt care
 
Yeah! Honestly I don't really have an opinion about that acquisition.
 
idc. i don't use it
 
@KendallFrey is there a name for a graph structure that is like a tree, but all the leaf nodes are the same node?
 
10:33 PM
what
 
well, a possible definition for a tree is a graph that follows a certain algorithm, starting from a root node
for each n branches
- either start again
- or create a new leaf node
if you instead start with 2 nodes: a root node, and a singular leaf node, and define the algorithm to be
for each n branches
- either create new node and start again
- or connect to leaf node
well, wait
algo 1:
for each n branches
- either create new node and recurse into it
- or create a new leaf node
 
Hi all!
 
@ZeroDarkThirty 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.
 
algo 2:
 
Is anybody willing to give this a crack?stackoverflow.com/questions/50674266/…
 
10:41 PM
for each n branches
- either create new node and recurse into it
- or connect to leaf node
is there a name for what you get in the second case?
 
@ZeroDarkThirty we are not drugdealers
 
it's definitely a subset of graphs
 
@Neoares lol that's funny. let me rephrase... "give it a try"
@Neoares better?
 
yes, that's more welcoming
 
@towc What use is this connection to the leaf node? That just seems like the equivalent of a tree with no branches
 
10:43 PM
Been posted since yesterday... no solution yet. I think its a good problem to solve.
 
@KendallFrey a tree with no branches would be a line graph. I'm not suggesting that
unless you mean something else
 
I do
 
 
can't imagine another tree without branches
 
@towc Like that?
 
10:44 PM
I mean not the entire tree, just one subtree
 
@copy yeah
ofc doesn't need to have uniform depth
 
the "connection" to the node seems to provide no information
 
Not sure, why don't you analyse it for interesting properties
 
it's just one way of saying this is a leaf, i.e. it has no branches
 
If it doesn't have any interesting properties it probably won't have a name
 
10:46 PM
it's kind of analogous to a series of events of someone's life based on their decisions. There is a decision tree, and it all leads to the event of death. It's one way to think about it
 
Not really, considering that some intermediate states will be reached from different decisions
 
you can play a game of chess, and all the possible non-repeating combinations will be a tree, that ends in 3 nodes: black winning, white winning, and whatever the tie is called
@copy oh right
 
@towc It won't be a tree, it will be a graph
a directed graph
 
An undirected graph if time machines are possible
 
time machines don't change the rules of chess
I still fail to see how this is any different from a normal tree
 
10:52 PM
I don't have any real application/scenario for this
came to mind for some reason and thought "well, that could be an interesting structure"
thought it might have some interesting properties, but can't think of much
 
my favorite directed graph structure is the koosh ball
it's like a marriage between directed graph and k-means
 
@towc If you're interested in Mathematical structures, maybe university would be an interesting place for you
 
it's becoming more and more of a reality
and I'm very likely moving from my CS offer to a pure maths degree
 
00:00 - 12:0013:00 - 00:00

« first day (2788 days earlier)      last day (2146 days later) »