« first day (3155 days earlier)      last day (1800 days later) » 

12:44 AM
Hey, if anyone knows vue or react or some other web framework, please check my question out: stackoverflow.com/questions/56469379/…
thanks a lot. have a good one!
 
12:56 AM
Does anyone know how to open the console on mobile?
 
1:12 AM
Generally, you don't
use desktop browsers' device simulators
 
1:38 AM
thanks!
 
1:50 AM
Can someone help with this proxy, I know almost nothing about proxies and don't know what I'm doing wrong: repl.it/@GameMaster1928/Proxy
 
2:16 AM
@JBis you're good at networking can you help me
every site gives a 404 error
 
2:47 AM
Hello everyone, I have a question that's certainly off-topic for SO. I have to detect if the device has a touchscreen while at the same time not having a mouse or similar. window.matchMedia("(pointer: coarse)").matches works for phones or tablets, but I believe it returns true as well for laptops/desktops with touchscreens.
Can anyone here with a laptop/desktop with touchscreen be kind enough to tell me the result of window.matchMedia("(pointer: coarse)").matches and also window.matchMedia("(pointer: fine)").matches? I appreciate that.
 
3:30 AM
window.matchMedia("(pointer: coarse)").matches // true
window.matchMedia("(pointer: fine)").matches // false
iOS 13 iPhone XS Safari
Results are reversed on macOS Mojave MacBook Pro 2017 Safari Version 12.1.1 (14607.2.6)
 
I got reversed results on Windows 8 with Firefox 67.0:
window.matchMedia("(pointer: coarse)").matches // false
window.matchMedia("(pointer: fine)").matches // true
using Firefox 67.0 on Windows 8 (6.3) on ASUS ROG G751J (has touchscreen, touchscreen enabled)
The computer also has a mouse (trackpad actually).
 
3:46 AM
Thanks JBis and Robert. That's quite interesting, you're getting false for a laptop with touchscreen? I've read online that desktop/laptops with touchscreen would return true for coarse. Anyway, thanks a lot!
 
@GerardoFurtado Yvw! Yes, I checked again, I am on a laptop with touchscreen and mouse-like device and I am getting false for coarse.
 
@RobertColumbia Great! That's exactly what I need... I reckon people get those "false-positives" for touchscreen devices because they use any-pointer instead of pointer. I bet if you use window.matchMedia("(any-pointer: coarse)").matches you'll get a true.
 
@GerardoFurtado and in fact that's the case, I got true for window.matchMedia("(any-pointer: coarse)").matches.
 
Beautiful! I owe you a (virtual) beer, @RobertColumbia.
 
@GerardoFurtado thank you
 
 
4 hours later…
7:58 AM
how to tell once a webpage downloads all content and renders the content?
ie in spa react or vue apps
from external script
is Window: DOMContent​Loaded event
good enough?
but then, react could still be rendering
 
8:20 AM
@SuperUberDuper in React, you can use componentDidMount IIRC
 
yeah but I want it to be generic
for any framework
or non framework
but a ontimeout 5000s?
put
 
timeouts aren't a good idea.
 
the native approach then: domcontentloaded
but I am not sure if React meddles with it (async addition to the dom tree). Lemme check something
 
8:29 AM
well, it is not reliable
I got it around by wrapping a component where you want to do your action
then extend your component with renderings from that component
so basically you set up a container where you want to render elements into. Then use componentDidMount on it
 
 
3 hours later…
11:23 AM
ok
 
 
1 hour later…
12:28 PM
JSConf was great
Meeting phenomnom next week
 
going to Stockholm?
 
He's coming to Tel Aviv
 
oh, nice. Say hi for me
 
12:52 PM
Will do :]
 
@GNi33 Come over here and tell him yourself.
 
I will, at some point :)
This year would probably not be ideal, but I'll be travelling extensively next year
 
Hello, is there a way I can list all the libraries I've used in an Angular app?
 
@grrigore package.json?
 
The dependencies, right?
 
1:04 PM
Hi guys, is there an equivalent for the following in js development:
39
Q: Exclude debug JavaScript code during minification

TaurenI'm looking into different ways to minify my JavaScript code including the regular JSMin, Packer, and YUI solutions. I'm really interested in the new Google Closure Compiler, as it looks exceptionally powerful. I noticed that Dean Edwards packer has a feature to exclude lines of code that start ...

 
if( process.env.mode === 'production' ) {
  console.log = () => {};
}
đŸ˜‰
or, probably, log it elsewhere
 
at least there must be some strategy we can put in place...? I want to remove all console.assert() in the code...
 
so overwrite console.assert and dump it elsewhere
you could write a gulp script to eliminate the line
webpack would probably do it as well
but imo just muting it would be enough
 
you mean have a gulp script simply comment those lines...?
what if they stretch to two or more lines...? esprima?
 
ideally you just have gulp replace console.assert with myCustomLogger
then you can choose to just dump those to nowhere or log them or w/e
 
1:18 PM
@MadaraUchiha The problem is that I added some libraries, but I don't know if I'm still using them.. :( There is a list of the dependencies, but that's all
 
@taco yo
 
1:35 PM
Guys, what the whole idea of this SO room: /rooms/111347
 
> Where the New Answers to the Old Questions are logged. If you have any problems contact us in Sobotics room (/rooms/111347). Link to the github project git.io/vi0YX NOTE: This room is only in gallery mode for bot messages, no one will be accepted
I mean..
it's part of the community monitoring program some people setup
to increase quality on the site
 
room descriptions can be lies, @rlemon! ಠ_ಠ
 
okay
 
trust no one!
 
any SO blog post related to this?
 
1:42 PM
no
why would there be?
> community monitoring program some people setup
it's regular / power users doing it
and bots
 
I bought satisfactory
It's well done. They add an exploratory aspect of the game that I really enjoy as well
 
52
Q: Natty - Bringing 10k moderation to All

Bhargav Rao Background and History The New Answers to Old Questions tool helps us to find all the answers added to questions which are more than 30 days old. However the issue with the tool is that it is not real time. There are requests on Stack Overflow Meta to not only make it real time but also to enh...

 
I have a hook that receives data from numerous iot devices. I would like to treat each request as two requests, so that i can do two things concurrently as opposed to one
Is this possible?
I am using node js
 
@shubhamkapoor 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.
 
1:59 PM
@rlemon nice to know anyhow...
 
@rlemon it must be you since you have a madza 3: gfycat.com/…
(but forgot its color ... I guess it is red)
 
grey
also those plates are from some other continent
that's my zoom zoom
 
Looks really american.
 
good thing it's Canadian
 
That's american :P. But it's funny how you can notice styles of different countries in cars.
 
2:10 PM
posted on June 06, 2019 by CommitStrip

 
@paul23 o.o There are european like cars in USA that aren't from European car brands.
 
Can someone help me, every site I try on my proxy gives a 404 error
The code is at repl.it/@GameMaster1928/Proxy
 
Well it's just that in the US you typically see cars which put emphasis on their nose. (Big, with sharp defining lines, or lines that push the accent towards the nose). In UK you see a lot of cars with "round" profiles typically. In mainlands Europe lines instead emphasis aerodynamic profile, with lines going "down" to the front of the car often.
 
@KarelG interestingly. Mazda only sold 3 times the amount of cars in the USA in 2018 than Canada. so Canada (relative) buys more Mazdas
10% of the population. you'd expect those numbers to be lower in Canada.
 
2:22 PM
1 message moved to Trash can
@TaylorSpark 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
 
anoyying person deletes your 2 minutes of typing
 
annoying poster doesn't format their code
 
Lol
Touche
 
annoying person complaining at a bot
 
works both ways m8. also that's a bot
 
2:24 PM
It just looks like another person to me, how am I supposed to know its a bot
Then again all your pictures are the little empty image icons, cuz zscaler blocks everything
Anyways
 
"Image not found"
 
it's on her profile page.
also get a better network filter.
 
You really have to fix your internet, yesterday you couldn't connect to github, today it's any image.\
 
aggressive blocks. probably a school or some other institutions network
 
2:25 PM
OOps
Dangit again rlly
 
don't mix code and text
 
the chat doesn't format them together.
 
@TaylorSpark 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
 
if you can't figure it out. use gist or pastebin
 
2:26 PM
I cant hit return, god I hate when programs set enter as send
 
(in his defense, that image is in imgur; most of my clients block imgur domain... (not the one I'm currently working at, but most))
 
    var text;

var sampleText = function() {
  this.border = false;
};

window.onload = function() {
  text = new sampleText();
  setValue();
  var gui = new dat.GUI();
  gui.add(text, 'border').onChange(setValue);
};

function setValue() {
  if(text.border) {
   intervalID = window.setInterval(colorChange, 100);
  }
  else {
   clearInterval(intervalID);
  }
}
 
most?
 
There better mrs caprica?
I removed the excess functions, and supposedly thats the base of what you need to run da.tgui
and it still doesnt open upon running the program
 
what do you mean by 'open'?
the container?
 
2:27 PM
Yeah
The gui doesnt even appear
even on a BROKEN dat.gui code, the gui still pops up usually.... But I have a "working" code for dat.gui that connects to my function, yet the "close gui" button didnt even appear
Im starting to really hate dat.gui
"light and powerful gui" that doesnt even work
Heres the complete project, the dat code above it located at the bottom of the javascript file. codepen.io/SkylerSpark/pen/ELwmoa
@rlemon got any idea whats wrong with it? I havent recieved any error messages in console
 
you don't?
 
Images are still blocked m8
I need text info lol
Not my fault this school blocks 2 of the most important resource sites (imgur and github)
 
you have a error in your console.
> pen.js:478 Uncaught ReferenceError: intervalID is not defined
at setValue (pen.js:478)
at window.onload (pen.js:468)
 
I went debugging, I see it
But interval id is defined
by setinterval
 
not when you try to use it
 
2:32 PM
` intervalID = window.setInterval(colorChange, 100);`
IntervalID is the ID of the interval
 
function setValue() {
  if(text.border) {
   intervalID = window.setInterval(colorChange, 100);
  }
  else {
   clearInterval(intervalID); // THIS IS HIT FIRST
  }
}
 
But thats the only method Ive found to put a checkbox that enables/disables the function
 
no variable declarations make me sad :(
 
wait, I know wh
Its set to false (else) by default
Working, but now its set to ALWAYS BE RUNNING... (sigh)
 
aww dat scoping horror
 
2:34 PM
All you need to do is wrap the clearInterval in a check
 
nah
 
Isnt there a way to just make a damn button that calls a function
 
all you need to do is declare the variable.
 
CODE PLEASE?
 
he needs to use variables within strict scoping context
 
2:34 PM
else {
    if (intervalID) clearInterval(ID);
}
 
Im not inept to the terms yet
 
var intervalID;
 
NOOOO STERLING
 
Thankyou, finally someone is legitimately helping me
 
Ew
What
Don't act like that here
My solution isn't even a good one
 
2:35 PM
var intervalID;
function setValue() {
  if(text.border) {
   intervalID = window.setInterval(colorChange, 100);
  }
  else {
   clearInterval(intervalID);
  }
}
 
You need a button to call a function?
 
like.. you need to declare it
 
@SterlingArcher just give a good solution instead of a crappy workaround.
 
Don't say nobody is helping you won't research proper techniques people are trying to tell you about
 
<button onclick="function();"></button>
 
2:36 PM
That's extremely rude and makes people not want to continue helping
@GameMaster1928 inline event handling makes me sad
 
@GameMaster1928 inline event handlers make us all sad
 
its good enough
 
Tell that to the Challenger space mission
 
doing the whole "hints to answer" thing really ticks me off, Im a contact learner, and I have aspergers, so I tend to like getting answers, CLEAN AND IMMEDIATE. And then cutting them apart myself and absorbing the information (learning)
 
2:37 PM
@TaylorSpark then pay a tutor
you're asking for free help
take what you can get
 
^ you don't pay us, we don't have to learn and adapt to your coding style
 
I like just getting the code and then figuring out how it works
 
Most of us are at work, we simply can't put that kind of effort in, so we give how we can
 
Oh unfortunately that answer you had above, still gave me a similar error. NjMYzqgpLXvr:488 Uncaught ReferenceError: intervalID is not defined
at setValue (NjMYzqgpLXvr:488)
at window.onload (NjMYzqgpLXvr:478)
God I really miss return
is there a what to make returns?? <br>???
Nvm
I guess chats dont support breaks/returns
 
yeah I dunno how people put multi-line code here
Maybe just copy and paste
 
2:39 PM
Then people yell at me for minifying it
:P
 
There's a handy dandy link in the chat description with sweet visuals on how to post code
 
test
thing
yes copy and paste works
 
Can someone help me with my proxy
Every site is giving a 404 error
 
Anyways, @rlemon thanks for helping me with the solution a bit ago, I didnt understand what you meant by declaring it, but I see now. By calling a universal var (IntervalID) It uses it as the id for my interval, hence allowing IntervalID to be used as an ELSE Function. Thanks.
GameMaster, Proxies are really bad unless your trying to set up some kind of custom authentication system (login), just download some weak little vpn from a random site... even hotspot shield works :P
 
2:43 PM
@GameMaster1928 hold shift key when hitting the enter button
or carriage
return
 
Then again the only reason Id use a vpn is to bypass IP restrictions on one of the Unity games I hack.
Thanks Karel
 
obviously, don't ever minify working code.
 
ohh thanks
 
Wow
WOW
I never thought of a keybind for return... Interesting
 
2:44 PM
that is kinda standard behavior everywhere with textareas o.o
 
Cool, I must be ignorant
 
Working code as in "code you're activelly using for development" not as in "code that works the way it should".
 
(if it submits on enter)
 
THen again, I read w3school sites for a living
 
Now please just look at my proxy code
I'm pretty sure I'm doing something wrong because it's only 19 lines
 
2:44 PM
@TaylorSpark w3schools is not a good reference
 
I only use it for base knowledge
 
lol I use w3schools too even though everyone hates it
 
@GameMaster1928 take such a question to the main site
 
it was seriously dope shit back then. It has improved in meanwhile but still bad. Not even decent. Stick with MDN
 
I got question blocked
oof
 
2:45 PM
they are pretty good at getting simple small definitions for tags, and I like their little interactive examples, but yeah their examples barely show all the features for some things
Same @GameMaster1928
Just wait a week
painful but worth it
 
-.-
 
No its been months
 
EEcks
a ban
just delete your account and remake it
 
And I still cant ask questions
 
itll save the questions and remove the stuff
 
2:46 PM
After 6 months I can
 
Because 2 of my questions got -1 upvotes stackoverflow thinks "I'm not contributing"
 
Auto bans aren't 6 months I think
 
oh wow they got even more downvotes
 
Yeah i really hate the voting system
 
all the pros negate us "newbies" and ruin our rep to a point where we cant even ask
 
"If you're unable to improve your existing questions, you'll get the chance to ask a new one 6 months after your last question. If that question is positively received, you may be able to continue asking questions; if not, then the ban will be reinstated."
yeah
 
Like I said,
rejoin :)
Delete account, wait 48 hours
 
I dont know anything about networking and formatted my first 2 questions wrong now I can't ask questions for 6 months!
 
Thats one way, but they may reinstate the ban if you do.
 
2:48 PM
I don't want to lose my rep
 
I once had 120, now look at me
sad
sad
loneliness
Rip
 
Anyway can someone help with my proxy I can't ask normally
 
Gamemaster, proxies are software, that may be why you get downvotes
 
I didnt ask about proxies
 
@GameMaster1928 stop asking poor/bad questions then
 
2:49 PM
Define if a question is bad or not
 
The problem is I don't know what a poor/bad question is until I get banned for it
-3
Q: Why isn't this server/client connection working?

GameMaster1928I'm setting up my first server with node.js, but I don't know how to connect a client and that server. I don't want to use jquery, and all the questions I could find about this involved jquery or were about different languages. Does anyone know how to do this? Edit: I have a connection between t...

 
My questions have perm links, code, details, clear questions. Good spelling to add to it. And they are dupes, (also on topic) yet random kids downvote and flag for "too broad"
 
-2
Q: How can I use webrtc without any server of my own?

GameMaster1928Is there a way to use webrtc without any server or cost and without downloading anything? I'm trying to make a peer to peer network without a server of any kind (I can't set up my own). Every tutorial that I've found needs some kind of server, or downloading node.js, or using some service that yo...

 
it all starts if it is comprehensible and is about a coding problem itself. Not "gimme code" or questions that lacks of research effort
 
lacks minimal reproducible examples, lacks research, lacks expected output, lacks achieved output, lacks a clear description of the issue
 
2:51 PM
I know they're terrible questions but that was 3 months ago and I tried searching beforehand
Besides I knew nothing about networking then
 
Thats the problem, the community is so harsh, that new players like us get destroyed in the beginning unless we are perfectly perfect, even the devs have blogged and admitted it themselves
Hopefully one day theyll deal with this stupid downvote system
 
The big probem is, you're asking too much. The part of programming everyone should do themselves - and where SO can't help (you'll have to take formal education for this if you wish help) is splitting a problem up into smaller problems.
 
I should just post this on reddit they wont ban me for 6 months
 
Some of us cant afford 100 dollar per month courses, or dont have the time
Reddits much better
 
Both questions you linked are problems that should be (from name alone) split up into a dozens or so smaller problems
 
2:52 PM
In terms of help
I reccomend for js r/learningjavascript
 
Then those problems you can either solve one by one yourself (trivial), or you can split them up further.
 
Paul your not helping much, your just saying what every other person in this community says
 
At the end you only have one or two very specific things you need help with: those are questions you should ask.
 
me ad gamemaster1 have probably already heard this same conversation a million times
 
@TaylorSpark Because it's what programming is all about.
 
2:53 PM
Its getting anoyying.
 
Then why bring it up
 
No Paul. Its what programming is all about FOR YOU.
We all learn in different ways
you just happen to want everyone to learn a perfect way
Just like 90% of the rest of this community
:)
 
Writing code isn't important, it's problem solving that is. How can you handle a big immense problem and chip away at it to solve it - that's what describes how much of a programmer you are.
 
@TaylorSpark how would you change things, without impacting 90% of the users?
 
Simply make it more accessable, I get questions Like "How you Do dis here with func" Or something, or perhaps spam, and things shouldn't be allowed (removed/closed/etc) but deleting questions that are good quality, detailed, about coding, and arent dupes, just because a detail is incorrect... it seems completely stupid.
I have deleted over 5 questions just to hold onto the little bit of reputation I have left
 
2:59 PM
It's btw a trait that is important in *any* technical field, not only programming; In aerospace engineering it also comes back:
How to design a new aircraft, first we split it smaller parts wings, fuselage tail, interior, hydraulics etc. Then we split those parts further into smaller projects: wing is split to "aerodynamic profile, control surfaces, mechanical structure, fuel storage". - And each of these are also splitted up.
 
Just because people downvote
 

« first day (3155 days earlier)      last day (1800 days later) »