I'm talking about JS. I only use php for http headers.
let me explain the scenario. at my local serve at localhost is my webapp located, which wants to get a html site from example.com, but chrome refuses because the server from example.com says that this is not allowed due to the policy.
@miny1997 You can use PHP to access the other server. CORS only exists on client side to prevent stealing of important information. For example, if you have logged in to Google, and I send an ajax request to Gmail, it'll be sent with your cookies and login. You will want that blobked.
Yes. And it does not have the problem because it is legacy. But for other browsers yeah you need extension. One for each browser, that may break anytime - extensions break faster than websites.
anyone else often feels like their tongue is constantly trying to press against the walls of their mouth and just generally trying to be in a constant status of tension?
Anyone know an easy way/library to paginate an arbitrary amount of any collection of items?
In my case I have a variable amount of buttons (number depends on the user, each button corresponds to a dataset), and I'd like to paginate them to show only 5 or so at a time
@towc It's a headless js environment that provide api for io, socket, and other native function. Some people has written web server and framework for it.
@jacobian I never used heroku. I just redirected every request to a certain domain that I own (with dns) to my router, and I told the router to reroute every request on port 80 to a laptop that runs node
@Sheepy js is js regardless of whether you use dom manipulations or not
well, I do have a dynamic IP, but if I want to show something to someone, I'll simply put it there, boot up the laptop with the code, and change the dns record to wherever my router is
if I want something to be shown at all times, I'd probably get a dedicated server somewhere or use heroku
@towc I guess I'll stop prompting you here. Don't worry, I know what I am saying. Have written and debugged more asm and c programs than I'd like to remember...
just think about it this way: nodejs can open ports and listen to them, that's normal, right? You can do that in asm, but why should the browser be allowed to open and listen to ports other than the preconfigured ones? Therefore, wasm can't open and listen to ports, therefore not any asm can be transpiled into a wasm equivalent
@Sheepy so only the nodejs that can't open ports and do other things that a browser is not meant to do (so I guess without most of the core modules like net and fs) is compileable to wasm
nodejs has just as much power as C
you can't transpile any C into wasm, but it wouldn't be sensible to anyway
giving examples of people to check out who have done something purely for the sake of art
then spend the last 30 seconds telling the people how to get started with "expressing their emotions through code" (which sounds corny af, I need to find a better way to say it)
Using webpack with multiple entry points to generate style.css and main.js file but it seems to be generating main.js, style.css, and style.js... how do i prevent it from generating style.js?
@ray9209 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
@ray9209 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
@JasonMarsh You can pretty much re-implement require-all, maybe you don't have to use all of its features, but there isn't really anything native which does that
@natureminded Welcome to the JavaScript chat! Please review the room rules. Please don't ask if you can ask or if anyone's around; just ask your question, and if anyone's free and interested they'll help.
anyone, please ping me with arguably useless projects you enjoy, before wednesday, like lorempizza.com or eelslap.com. Bonus points if they can be shown off in just a few seconds and are not resource-heavy
and/or your favorite esolangs that aren't meant for practical industry use
I also better push the v2 of my site and get that cv sorted before wednesday if I want to make a nice impression
so, 43 from jsoxford, 28 from python, apparently only 9 from ruby (most likely many just don't use meetup.com, we all have separate slack stuff), and god knows how many from the other two communities. There may be some overlapping in the numbers, but it's at least 80 people, a nice amount