@cairdcoinheringaahing yes. It randomly chooses one active CGCC user, goes through their chat messages and comments, with AI it will figure out their most likely response and it will figure out your most likely reply/edit to their comment does the latter 2⁸²⁵⁸⁹⁹³³ − 1 times and then posts the challenge on your behalf to the main site.
Nah, I'm fine with ads that just tell you stuff about the company/product. Like, there was an ad for an appliance store after the apple ad and it was just like "come in in the next few weeks and get this samsung washer+dryer combo for $[xyz]" and it's not annoying at all
@taRadvylfsriksushilani If we want to get deep about it, what actually happens is you end up spending money on phones and washer-driers at Apple or Samsung, a very small amount of which goes to the creator, but mainly it just drives hyperconsumption
@taRadvylfsriksushilani I prefer to discover new products by randomly seeing them in a shop, wanting it, not liking the price, then spending a few hours agonising about if I should or shouldn't buy it
or, have celebrities sell them to me through product placement in tv shows and movies
@taRadvylfsriksushilani like I said, they might not make you buy products, but you still see the existence of Samsung washer-driers, and indirectly communicate this eventually to someone who will buy one
If an ad has any influence on what I buy, it's going to be because I had no idea that even existed before, or it's going to be because the ads are annoying so I make a conscious decision not to buy the product
Watching a couple of ads is not going to have any impact on society as a whole. What you're doing is deluding yourself into believing that you can be part of an indiviudual-based solution to a systemic problem, when all that will really do is cost people you like a couple of cents.
if I import the same module repeatedly and the code changes in between, will it change, and do i need to worry about memory leaks?
(for context to avoid an XY problem, I am trying to make a discord bot that does not need to reload to change some commands, so i can keep other commands alive while changing something elsewhere)
I'll try some stuff, give me a minute. Seems like what you want to do should be possible...you might even just have to resort to fs.promises.readFile and eval lol
SyntaxError: Unexpected reserved word
at ESMLoader.moduleStrategy (node:internal/modules/esm/translators:139:18)
at ESMLoader.moduleProvider (node:internal/modules/esm/loader:236:14)
at async link (node:internal/modules/esm/module_job:67:21)
@pxeger make a modular discord bot such that i can reload command groups without needing to bring down the website or affect other modules such as the automoderator
@hyper-neutrino those imports themselves will still use the old method, so if the file you load is part of like a multi-file plugin or whatever, only one of the files will be cleared from cache
Everything just exports a single init function, that takes dependencies as arguments, puts them in the module scope, and then returns the class for that file
E.g., require("conn.js").init(WS, Actor)
And conn.js's init is something along the lines of (WS_, Actor_) => { WS = WS_; Actor = Actor_; return Conn; }
@GingerIndustries Maybe instead of trying to do the whole thing in terms of redstone, you should abstract things a bit. Design your logic gates, and design the computer in terms of small logic gate circuits.
Okay, I have an idea for something, and I want to know if there's a name for it.
So, you start by giving everyone an initial trust rating. This is the same for everyone. Then, they all vote on a series of things (perhaps whether or not a comment should be deleted for spam). Then, a consensus is determined using those votes, weighted by the trust ratings (which, for the first round, are all equal). Then, everyone who went with the consensus is given more trust, and all of the voting is re-evaluated with these trust ratings repeatedly.
(And it doesn't even need to be trust ratings, I'm looking for any sort of system where you start with an equal score for everyone and iteratively recalculate those scores)
Generate Matching Regexes
Write a program that takes two lists of strings and generates a javascript regex that fully matches all the strings in the first list and matches none of the strings in the second list.
To be specific when for all stings in the first list str.match(\[your-output]\) must ...
Challenge
Given two lists of strings where each string is of length 50 and each list is also of length 50 generate the shortest regex you can that fully matches all the strings in the first list and does not match any of the strings in the second list.
Scoring
Your score will be the average lengt...
@lyxal and I only knew that mod existed because of the time I tried to make an alexa skill that allowed you to change the colours of a Christmas tree in minecraft
But for some reason the skill wasn't sending data to the lambda properly
@lyxal there was also that one assignment where we had to make an app - we got to choose whether we developed for Android or iOS. Those doing an Android app used MIT app inventor - the one where you did drag and drop blocks - something that's relatively easy and doesn't require things installed
But if you were doing an ios app, you had to use XCode
And of course I was one of two people to choose iOS
Although the Christmas tree thing was for a class called iStem
But back to the layout thing: all my screen designs were made with this relative position thing but ended up only looking good on a specific screen size
The moment you used a different screen size (i.e you stopped using the iPhone X emulator), things started being unaligned
Thankfully I had more of an idea of what I was doing - sure Android development is way different to ios development (Java vs swift, different ways of managing resources etc) but I had previous experience of what not to do