Whenever I try to run my discord.js bot, my code editor says that it couldn’t connect to discord via discord RPC. I’ve looked around and saw nothing that can help me. Can anyone help? Answer Discord just had an outage. You can follow up Discord Updates here. If you wanna read why Discord was offli…
Tag: javascript
Automatically replace dots with commas in a Google Sheets Column with Google Script
I have a WooCommerce store, which is connected with Zapier to a Google spreadsheet. In this file, I keep track of the sales etc. Some of these columns contain -obviously- prices, such as price ex VAT, etc. However, for some reason the pricing values are stored in my spreadsheet as strings, such as 18.21. To b…
how to filter post by title using Vue js 2.x directives instead of vue js 1.x
I am learning to use vue js with wprest api by following watch-learn tutorials on the same topic. the problem is that the vue js version used in the tutorial seems to be v 1.x and i started using vue js 2.x. I was able to figure out the initial stages on how to display all the post using vue
Is a JavaScript class an object?
I assume that an ES6 class is an object as “everything” is objects in JavaScript. Is that a correct assumption? Answer From the point of view of Object Oriented Programming class is not an object. It is an abstraction. And every object of that is a concrete instance of that abstraction. From the p…
Why does [][[]] evaluate to undefined?
The expression [][[]] evaluates to undefined in JavaScript. My understanding of this was that the compiler sees the second set of […] and interprets that to be an array subscript operator (because you can’t have two arrays next to each other). So the compiler knows that the inner expression, [], m…
Bootstrap 4 Navbar Collapse doesn’t work
I have a problem with Bootstrap 4 navbar collapse feature. I set it so that the navbar collapse in mobile viewport but instead of collapsing, it shows the items as a vertical list. This is the code: I’m using a customized version of Bootstrap 4 (compiled from scss). I tried to use the standard version a…
Instagram ?__a=1 url not working anymore & problems with graphql/query to get data
Update 19 April After a few days using cookie ig_pr two days ago is block. Looks like the only way to get the data now is use sessionid with a specific value Original I was using instagram ?__a=1 url to read all the post of instagram’s users. A few hours ago there was a change in the response and now
How do you do a for loop/for each in EJS?
I know it has to go inside <% %>, but I’m not sure if it’s very different from a typical forEach/for loop. The documentation on the EJS site is pretty limited, so I came here. Answer So here’s the example on embeddedjs: And here’s what I did:
sounds getting clipped when playing more then two different sounds at once
I am trying to build a drum kit web app in which a certain key is certain drum. When I’m playing two different sounds while the first one isn’t done it works fine, it’s just finishing both sounds and stops as it should do. When I’m trying to play the third sound while the first two did…
Sending Uint8Array (BSON) in a JSON object
I’m using the ‘bson’ npm package in the browser for converting / serializing a JSON object to BSON. The documentation says that it returns a Node.js buffer. The documentation of Node.js says that a buffer is of type ‘Uint8Array’. Now I want to send this Uint8Array in another JSON…