There's not really any existing JS chatbot libraries, other than the totally wack and sussy one NP/SP uses (which I made and glare at myself in disgust every morning in the mirror for)
at this point i haven't even been working on my stackchat.js so i might as well wait for y'all to finish yours and it'll probably invalidate the need for me to create one since i'm pretty bad at JS anyway :P
It works fine for SE chat, as evidenced by NPSP being up for months without any restarts, but for a general library I want it to be a little more professional
^ just as a weird example, you could have a bot set up as an inbox so people can ping it with messages and the user gets them in their email, without giving their email address out publicly
I'm buying one of those mechanical calculators in 12th grade. I've already decided it. I'm bringing it to school, and I'll be in AP stats, and one day when the teacher says "okay, now find the [whatever]" I'll pull it out and be like "hold up I gotta plug in my calculator"
I don't care if I've gotta wait 6 months and pay three or four digits I'm doing it
Given two sets of strings, \$ D \$ and \$ R \$, find the shortest string which contains every string in \$ D \$, but contains none of the strings in \$ R \$.
There are almost always multiple possible outputs; you should output at least one of them, but you can output more.
You can assume this is ...
I was just looking up why the universe expands and thought it would be a short 5 minute presentation but it turns out no one knows why and dark matter is just a lame hypothesis that they’ve found no actual particles for
Machos and wimps are a no and even simps seem unlikely
@RadvylfPrograms Nah, brains are detailed enough on a microscopic level that they've got to use quantum effects. If anything, a brain that didn't use quantum would be too simplistic to be what we normally regard as "sane."
I kind of like the Wolfram Model for that one, which pretty much says the universe expands because it needs to compute more things and an expanding universe is the easiest way to keep a lot of computational material.
The theory is very strange but that part at least works
tbh the only evidence for an expanding universe is redshift and the CMB, and on that they build the build bang model, distances of quasars, dark energy, and all that kind of stuff
No, it was a bit more detailed, making it clear that we were supposed to eat lunch at 11 AM, but still with no detail as to how we were supposed to get into the cafeteria to get it
A script to remove expired cookies from a database:
LOAD COOKIES FROM "COOKIES.DB"; REMOVE EVERY COOKIE OF COOKIELIST OF COOKIES; WHERE NOW OF TIME; MINUS AGE OF COOKIE; LIKE NUMBER IS MORE THAN MAXAGE OF COOKIES;; DUMP COOKIES TO "COOKIES.DB";
granted, in python i had flask sqlalchemy so it abstracted most of the actual syntax away from me but when i switched to js i didn't find a good equivalent so i just used pg and wrote the queries manually
sql was nice for some things but trying to store a variable length property of something was minorly annoying cuz of the need to use at least two and often three tables to do linking, and if it was many-to-many then rip
@RadvylfPrograms i mean the library i used had automatic sanitization
Data Manipulation Language (DML) commands in SQL deals with manipulation of data records stored within the database tables. It does not deal with changes to database objects and its structure. The commonly known DML commands are INSERT, UPDATE and DELETE. Liberally speaking, we can consider even SELECT statement as a part of DML commands.
GPT3 says: DML stands for Database Manipulation Language. This is a generic term used to refer to commands that change the state of the database. It refers to INSERT, UPDATE, DELETE, and MERGE commands in SQL.
if you consider an image as a set of discrete samples of a waveform (or 3 waveforms, one per channel), then yes, a fourier transform with an arbitrary but finite number of waves can represent any image