« first day (3834 days earlier)      last day (1099 days later) » 

12:19 AM
heya guys, is this chat active?
 
@Usmantastic 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.
 
12:47 AM
@Usmantastic welcome :)
there's usually people around, just ask your question
 
1:14 AM
@Usmantastic Please don't post unformatted code - hit Ctrl+K before sending, use up-arrow to edit messages, and see the faq. You have 25 seconds to edit and format your message properly before it will be removed. Please separate code blocks from your actual question. Put your question in 1 message and then your code in a 2nd and format it.
For posting large code blocks, use a paste site like like gist.github.com, hastebin.com, pastie.org or a demo site like jsbin.com
@Usmantastic Please don't post unformatted code - hit Ctrl+K before sending, use up-arrow to edit messages, and see the faq. You have 25 seconds to edit and format your message properly before it will be removed. Please separate code blocks from your actual question. Put your question in 1 message and then your code in a 2nd and format it.
For posting large code blocks, use a paste site like like gist.github.com, hastebin.com, pastie.org or a demo site like jsbin.com
 
function sort(){
var values = SpreadsheetApp.getActiveSheet().getRange("DailyOrders!M2:M4").getValues();
var newvalues = [];
for(i=0;i<values.length;i++){
  pusher(values[i]);
  Logger.log(i);
}

function pusher(item) {
  item = item.toString();
  item = item.split("|| ");
   for(i=0; i<item.length; i++){
    newvalues.push([item[i]]);
  }
//push newvalues[] to "sort!A:A"}
 
1 message moved to Trash can
1 message moved to Trash can
 
when I don't call the function in the for loop, the for loop runs multiple times (as it should) but when I call a function from whithin the for loop, it runs only once and then exits. I don't understand why
 
you are probably getting an error
have you checked the console, what error are you getting?
also what function, and which loop
 
0
Q: Google Appscript For Loop runs only once when a function is called

UsmantasticI hope you are doing dandier than usual. I am stuck on this problem for a couple days now and I don't know where I am making a mistake. Basically, I want to copy a column from one sheet(let's call it DailyOrders), make some changes and paste it into a column in another sheet in the same workbook....

I have explained the problem here in detail, there is one answer and I am currently checking the modifications the user suggested, it isn't working.
 
 
1 hour later…
2:44 AM
 
 
6 hours later…
8:24 AM
Hi !
I'm trying to find out if the website https://ant.design can be built locally, it seems that their sources are in the github https://github.com/ant-design/ant-design but I don't kno what command to run. I've looked the package.json scripts list, the github workflow but I can't figure out if this can be done? can someone take a look ?
 
8:56 AM
One unique good answers github.com/ant-design/ant-design/discussions/28870 took time to search for the good words haha
 
9:43 AM
tumbleweed!
 
10:10 AM
Can we do ajax request/call another function from a dynamically populated div content?
 
@VijayRana 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 have posted some code sample : stackoverflow.com/questions/67106442/…
any help please?
 
10:27 AM
it seems that someone provided an answer already?
 
@KarelG yes. Thank you anyway :)
 
11:23 AM
Morning
yet another painfully bleak existential day of this boring existence we call life.
:D
 
11:41 AM
Dear nginx gurus of this chat room, how do you know that nginx container is up? What to specifically look for in the container logs? #docker #nginx
 
did you.... seriously just put search tags on your comment
:3
this isnt the youtube comment section
 
@deostroll I am not that active on facebook
what you can use is docker's inspect command
lemme dig up the doc
(if you are not familiar with container name, it is either the repo name or container ID)
 
11:58 AM
Hey whats the right way to grab the parent function's "this"
I thought of this = super.this; but Im not sure if thats the right way to go with it
I remember a method using super similarly to the one above, but I dont think thats the exact one
 
you have a design smell if you have to do that
I advise you to reconsider your step/idea whatever you intend to do
 
true.
Its just an event listener
but the event listener is inside of a class
 
huh?
 
so the class's this gets overwritten by the context of the event listener
 
care to share a small example?
you can bind the class entity to the handler
but ... then you loose the event object. Unless you provide it as argument
 
12:01 PM
constructor() {
    document.addEventListener("keydown", this.#keybindDownHandler);
}

#keybindDownHandler(e) {
    // `this` does not contain a definition for any of my class variables / fields
}
Previously I was just wrapping all my event listeners in function expressions
but it looks messy and terrible
was just wondering if theres a better way to get the this context of the class using super or something
if there isnt... function expressions it is, but if there is, Id appreciate if someone could show me
 
|| mdn function.prototype.bind
 
👆
 
uh... karel... you alright??
lol
 
there are two point up emoji's, the other one gets rendered as ☝
idk why
 
12:07 PM
honestly didnt even know you could write emojis in here
or are you typing them / pasting them in?
 
win key + .
 
browser then receives the bytes and renders it by the page's encoding
 
hmm... the emoji window shortcut doesnt work on this device
Ive used that before on my home PC
but for some reason it doesnt work on this one
who knows
 
it should work on laptops as well
depends of your windows 10 version though
 
12:10 PM
probably some sketchy setting Ill have to lookup
 
it got added as a feature ... in one of those feature updates
 
these laptops are kept up to date
yeah, it was a fall creators update a while back
definitely have it
it seems to just be disabled
sucks
 
@KarelG Are you asking me to find the command that starts up nginx? That is nginx -d daemon off;. Its is probably that to keep nginx running in the foreground. But how do I know that nginx is ready looking at the console output of that program...?
 
I just said it?
inspect the container
or just ping the port it's listening on
 
Did you mean inspect the container "logs" by chance when you said inspect the container?
 
12:15 PM
27 mins ago, by KarelG
@deostroll https://docs.docker.com/engine/reference/commandline/container_inspect/
 
But that will output container config
...like networks, ipaddress, volumes mounted...etc
 
12:30 PM
yo
 
https://replit.com/@MisterSirCode/CGame-Engine-Github#src/cgame-engine.js

oh my god its actually cute
the little player is so cute now
you can hop around
 
doesn't work, black screen
 
bruh
youre probably using an outdated browser that doesnt support private fields
So far thats the only issue Ive really seen people encounter
 
if only there was a tool that would fix that for you
 
Such as?
 
12:34 PM
babel
also i tried on latest chrome and still black screen
 
@JBis Any errors?
Cause its working fine on my end
 
Uncaught SyntaxError: Unexpected token '('
index.js:1 Uncaught ReferenceError: CGameEngine is not defined
    at index.js:1
nice
 
😂
 
@MisterSirCode I'd argue that a browser that doesn't support things that aren't in the release spec isn't necessarily outdated
 
12:35 PM
https://cgame-engine-github.mistersircode.repl.co/

Try this page..
Why the heck would it not work for you on the latest chrome
that makes no sense
Im on the latest chrome aswell
 
still black screen
 
Well how the heck am I supposed to work with that.. Its not an error I can reproduce
 
> Its not an error I can reproduce
Welcome to web development
 
Cerbrus... Youre never helpful to a conversation.. you know that right?
 
IMO it's very annoying if the bug reporter is not even submitting the browser he has used
 
12:38 PM
Mate, I've tried to help you several times in the past
 
he said he was using chrome
 
and when he responds on our request to share the browser, he does not include the version ...
 
true.
JBis can you provide your specs for chrome?
OS and such
 
If "you not listening" counts as me not being helpful, then no, I've never been helpful to you in the past.
 
that is usually a waste of a day or two with a stupid ticket
@MisterSirCode OS does not matter
 
12:39 PM
It does work for me on Chrome 89 and 90, just to make it more confusing
 
it is just a replit thing I guess
 
Hold on, Chrome maybe broken on my machine
alright fixed it, working
 
hmm could get it working, in incognito mode
|| shrug
 
¯\_(ツ)_/¯
 
12:42 PM
what's with that frame thing
 
@JBis I know you had some weird issues with firefox on your machine before that no one else could reproduce, so it wouldnt surprise me?
@KarelG What frame?
the iframe in repl?
 
in any event, my slightly out of date (couple months) browser should still be supported
 
that impression of "frame rate" of yours
 
@KarelG Its not a frame rate, its just an update loop to tell if the game freezes or not
 
it's just a counter
 
12:44 PM
I experienced a few infinite loops while testing keybinds
 
...
 
so I had to use that to help tell when it froze
@KarelG whats wrong with it?
 
people is gonna ask questions about that
 
@KarelG Its all just debug information anyways, but Ill change the text to "Loop" instead of frame
I dont bother with framerate stuff anymore since its a pain in the ass to get working accurately
I just hope that it hovers between 50 and 60fps
and unless Ive got like blur filters on the canvas going.... its usually always 60fps
it appears to be
 
@MisterSirCode any reason why you don't use a game development application like unity?
it'll handle stuff like that for you
 
12:51 PM
@JBis I do... A lot
But I cant develop unity at school
and the challenge of making my own engine seemed more fun
but WebGL was just... f no, so Im making a simple 2D canvas context game engine
 
you have a long way ahead. I can only wish you good luck :D
 
Well, I understand the basics of things, the only issue I have is accurate friction / speed and collisions
it actually doesnt look too bad right now, but could definitely be improved
 
yes, physics are a pain
 
My current system is definitely better than any old flash game physics
so personally, I think its a good start
thank god Math.atan and Math.sin / Math.cos exist
 
 
1 hour later…
2:04 PM
@JBis Get a good engine :D
 
2:45 PM
Well, Im bored, and I have nothing interesting to talk about...
So heres a photo of my lizard:
 
3:04 PM
i cast a ton of downvotes, and yet on most days my net rep is positive due to the previous days' downvotes being nullified with deletion
 
~waves all around
 
o/
 
I have more (probably somewhat dumb) questions about typescript and exports...
apparently my google-fu is just not up to speed with typescript yet...
 
i'm really good at searching, and have some minimal experience with typescript
 
so I have two projects. One of these projects has a file exporting a single class like export class Foo
that project also has a bundling index.ts where the class is exported again
import { Foo as Foo_ } from "./src/foo"
export let Foo = Foo_;
 
3:08 PM
Hey, so, I was wondering if anyone can help me understand why my ground detection is "sketchy"?
it seems that, every once in a while, my accelerator method will fire twice... Even though Ive clearly disabled jumping while not touching the ground.
I even went as far as to manually set grounded to false when the accelerator is fired, yet it still seems to shoot my player up more than once every once in a while.
https://replit.com/@MisterSirCode/CGame-Engine-Github#index.js
 
now when I import that in the other project as import Foo from "library", I can't use the class as a type
but when I just export type Foo = Foo_ I obviously can't invoke the constructor of the class anymore
 
204
A: TypeScript export imported interface

C SnoverThere is an export import syntax for legacy modules, and a standard export format for modern ES6 modules: // export the default export of a legacy (`export =`) module export import MessageBase = require('./message-base'); // export the default export of a modern (`export default`) module export ...

 
Finally earned my Canvas badge wooohooo
also @ndugger 100% agree with your assesment.
I'm at a different place... they aren't using TS... I came from setting up our entire FE team to using TS :/ I friggin miss it.
 
i haven't written javascript for work in... about a year now
typescript 2 years
 
3:13 PM
@KevinB while that is interesting, I'm targeting commonjs modules (not AMD) and I don't have an interface I could work off of :/
 
lucky.
 
That long? dont you worry youd forget things?
 
I don't even think I'd be able to push TS here.
They don't seem interested
 
i won't forget things if i keep using them
 
I'm pushing unit testing now at least.
 
3:13 PM
I know that I definitely forget bits and pieces of a language that I dont use often if I like, straight up dont use the language for a few weeks / months
 
I'm going to lose my TS knowledge for sure.
 
😮
 
@Loktar Self Deprecation === Self Loss
 
I am seeing a ghost
 
Yeah :( the pay is good though.
hey @KarelG!
 
3:14 PM
@KarelG Is it the floating cloud ball in a dusty old 2010 phone camera kind of ghost?
 
but what I'm saying is, it's on you to not use something, just because your job no longer involves it doesn't mean there's not other ways you could keep up with it
 
a what?
 
nvm... its an old thing
theyre called rods and orbs... theyre apparently "ghosts"

You caught them in old phone cameras... they were probably just dust
 
@KevinB yeah for sure I just don't even feel like I'm in the same mental state to care like I used to unfortunately
 
yea
 
3:15 PM
@Loktar hey. Switched to a different job it seems. Do not mind me. I lost my "C skill" because I started to use it less often D:
 
almost 40 now looking to punch in and out
I say that but I don't really feel that way haha
just trying to convince myself of that ;P
 
I don't actively seek it out, but enough questions come through here to keep me from being rusty
 
I might idle in here again I think I'm coming out of my cocoon phase.
 
or so i believe anyway
never really know how much you've forgotten till you need it again
 
I cut myself off from all internet social interactions for a year actually miss some people after almost 2 years :/
 
3:17 PM
@Loktar lurking is quite fun
just watch the little coders come in asking for help..
 
especially when you mute the annoying voices
 
I'm still #17 in activity thats cray cray
 
3:35 PM
gg
im not #17 in anything
 
only 13k people have made their way to this room
 
not really surprising... SO Chat is pretty unpopular
the golden days were like... 2016-2017 or something
I remember when we had like 20 people talking at once
fun times... fun times..
 
Golden days were fun
2014-2018ish? idk SO really killed it tbh
 
4:00 PM
That far?
wow
Im young
Wonder when SO chat was first created
 
Hey @Loktar
 
i joined somewhere between 2015 and 2016
i think
few years after being on SO
 
Yeah, took me around 2 years to discover stackoverflow had a chat system
 
the chat system is not that visible on the website
i believe it is okay, too much advertising is not okay
I am still in same profession as usual.
and I still have my plastic axe 😁
(not directly at hand now ... covid)
 
4:20 PM
hey @JBis
woah @JBis you coming to MI?
I actually am 20 mins from Ann Arbor
 
Go Blue!
 
Congrats man
 
thanks! :)
 
2025 just realized that's a ways out, that's awesome you were able to commit this far out!
 
graduating class of 2025* (I'll be attending this fall)
 
4:24 PM
ahhh ok that makes much more sense
you in an area right now that experiences 4 seasons?
Fall and Winter in MI can be fun lol
 
@Loktar I'm from NY so yeah. I've heard Winter is brutal in MI.
 
Yeah it can be lately it's been alright idk being from NY it shouldn't be too bad for you
 
Michigan
 
ah
I thought you were talking about Minnesota for a minute... Our winters are hardcore
I grew up in the sticks there... we got about 2 ft snow during fall and the beginnings of spring...
During winter months wed get around 5-10 ft
If we had a blizzard? double that number
 
4:32 PM
Yeah it was similar for me in Northern MI when I was younger
I'm in southern MI now so it's not that bad
I've heard MN can be brutal too haha
 
Yeah, minnesota has a crap ton of water (hence the name, land of a thousand lakes)
So all of it freezes during cold months, and its pretty much 100% gauranteed it will snow
 
I'm sure you dealt with roads not always being plowed too then living in the sticks, that's how it was for us anyway
48 hours at times (heck even longer if school was out)
 
yup
100%
We sat at home, cooked sweet potatoes and pasta, and fed the foxes..
And we did that for days at a time depending on the snow level
these days its starting to industrialize, so its better, theres a massive highway through where I used to live...
but the look of the land is gone, kinda sad
 
Ah, that sucks yea
 
I remember the snow never really bothered people up there
we went to school full time in 4 ft snow (that was the highest I remember we were allowed to go out)
so we got to go to school almost the entire winter month
man, down south nowadays, theyll cancel school from a half inch of ice. Its pretty bleak
 
4:37 PM
when noone has seasonal tires and the gov doesn't have the tools to deal with the roads, that's the only option
 
True, but the ice melted before 8am...
they commonly delay classes to 8 - 10am normally, so its surprising
Maybe these southern people are just too worried
Ill admit the drivers here are pretty bad... so with ice? I can imagine we'd get more car crashes then ohio during snow blooms
 
 
2 hours later…
6:14 PM
posted on April 15, 2021 by Prudhvikumar Bommana

The Dev channel has been updated to 91.0.4472.10 for Windows, Linux and Mac. A partial list of changes is available in the log. Interested in switching release channels? Find out how. If you find a new issue, please let us know by filing a bug. The community help forum is also a great place to reach out for help or learn about common issues. Prudhvikumar Bommana Google Chrome

 
 
3 hours later…
9:44 PM
posted on April 15, 2021 by Geo Hsu

The Stable channel is being updated to 89.0.4389.130 (Platform version: 13729.84.0) for most Chrome OS devices. This build contains a number of bug fixes and security updates. Systems will be receiving updates over the next several days. If you find new issues, please let us know by visiting our forum or filing a bug. Interested in switching channels Find out how. You can su

 
10:20 PM
@VLAZ After putting in an earnest effort for nearly a month and while promising to not offer any financial compensation I was wondering if I could interest you in helping me through a couple edits to one of your most recent examples?
Ive figured out how to add a class to the td elements I needed to and Ive figured out how to access the root element of the XML file's attributes but Im still having trouble figuring out how to output the data from the root element and how to prevent the script from rewriting the table and th each run
 

« first day (3834 days earlier)      last day (1099 days later) »