#development

1 messages · Page 175 of 1

lyric mountain
#

they're OSses, like windows

#

and much superior for anything but home usage

#

maybe even for home usage, but people are just too used to windows

#

for servers you use a headless (no visual interface) version of whatever distro (version/flavor) you choose

#

iow, you controle the vps through commands, just like you do with bots

untold crow
#

How do people even read python or c sharp? The only language that makes sense to me is javascript.

deft wolf
#

Every language looks logical and makes sense if you play with it a bit

#

For a long time I thought that php was black magic, but I'm starting to get used to it in my free time

untold crow
#

Every bit of code I write is in javascript so that might be why

vivid fulcrum
#

train your mind to think in abstract concepts

#

reading other languages will flow to you naturally then

#

it's just a lot of practice

wheat mesa
#

Most languages don’t have syntax that is so uncommon or difficult to understand that you have to learn the language to understand a snippet of code

#

(Some notable exceptions though, namely functional languages that have less commonly seen syntaxes)

lament rock
#

Rust

vivid fulcrum
#

learning it right now, im positive it rewired my brain 😭

lyric mountain
#

so they're pretty similar once you look from higher up

lyric mountain
surreal sage
#

makin a bot and doing the one thing i hate the most, embed navigation

#

and im strugglin

#

because this message collector only works once

#

(with max: 1)

#

then when I create another

#

it won't collect the interaction

#

the first time createCollector is ran, is with the reply to the original interaction

#

and if I interact with a button, it works and it runs the code within the .once("collect")

#

but the code in there about createCollector doesn't work

#

It does call it but any interactions in there don't work

surreal sage
manic basin
#

NO

#

That host is already bad enough. You'll run into so many issues down the line

warm surge
#

He would

#

I can’t

manic basin
#

Replit is probably the worst option to use for bot hosting

warm surge
#

I just gotten inside of my car

manic basin
#

This is for a variety of reasons, namely the concern of the quality of the product. The goal of a firm is to maximize economic profit, thus in order to break even and reduce total fixed cost, they cut corners. The quality of said hosting that I would receive is significantly worse compared to a VPS (which is recommended) provider, such as Henzter. The suggested "host" exploits planned obsolescence by providing poor plans and tempting or forcing you to upgrade to their better plans. The investment made by paying for that host would be better spent on a quality host whose service has been relied on and tested on.

In addition, using the suggested "host" removes granular control over how you are able to run your bot. You trade control over for convenience, which can lead to serious issues. Dependency management is the most well known issue, as hosts that claim to provide hosting for discord bots often include outdated libraries, shared CPUs, shared IPs (which lead to ratelimits, and the infamous cloudflare ban), and poor specs. These create an environment that is designed to fail for discord bots.

sharp geyser
#

Making then destroying then making again

#

Just have it collect until they either close the menu or a certain amount of time has passed

#

And use filters to make sure you’re only collecting from the person who used the command if need be

surreal sage
#

Will check it out

surreal sage
sharp geyser
surreal sage
#

there are only 2 btns

#

and can only be used by 1 user

hushed patrol
manic basin
#
  1. Pay up - Pay up and use a VPS provider. My pick is Heznter, but see the list of vps providers for other options. More than likely if you are not an eligible HS or college student, this is your option.

  2. Self Host - If you are able to self host your own server, then go for it. This is really the only "free" way if you already pay for your electricity bill and have the equipment to do so. Raspberry Pis oftentimes are great for this.

  3. GitHub Student Developer Pack - IF you are a enrolled student in an HS or college (you will need to either provide an valid student ID or proof of education of your HS or college), then you may apply for this deal. More info about this can be found here (https://github.com/orgs/community/discussions/17814). The deal offers $200 free credits on DigitalOcean for 1 year, so if you are a student and need to host your bot, go for it.

hushed patrol
#

cant pay

manic basin
#

if none of these three options work, then tough luck

hushed patrol
#

wait

#

"The deal offers $200 free credits on DigitalOcean for 1 year, so if you are a student and need to host your bot, go for it."???

manic basin
#

you will need to either provide an valid student ID or proof of education of your HS or college

hushed patrol
manic basin
manic basin
#

as long you are a valid student and can demostrate proof of it

manic basin
surreal sage
#

(do I have to remove the listener for the "end" event? is it not automatic?)

rocky wave
sharp geyser
surreal sage
surreal sage
rocky wave
#

why is my code spamming congratulations message

Congratulations, @xxx! You've leveled up!
Congratulations, @xxx! You've leveled up!
Congratulations, @xxx! You've leveled up!
Congratulations, @xxx! You've leveled up!
Congratulations, @xxx! You've leveled up!
Congratulations, @xxx! You've leveled up!

https://paste.ofcode.org/3bngfECmUf78JmiVgznCta9

compact pier
#

how should I upload images and store images for a backend server?

#

it is okay to just store it in some folder with a unique id name?

#

and how can I protect it from viruss

rocky wave
untold crow
#

Does anyone have a server template I can use with a bunch of channels with role overrides?

green kestrel
#

yay my new feature works!

deft wolf
#

Good job

green kestrel
#

a bot that can block arbitrary objects in images

#

how awesome is that 😄

slender wagon
#

Heya, so i am using prisma x postgresql on my express app, and the thing is. I want to generate an id for the new users containing both letters and numbers up to 8 - 10 characters. Is there a way i could do this directly through prisma?

#

Because if i do create the id through express i'd have to query the db and make sure the id doesn't already exist...

neon leaf
#

my approach is to pray

tulip ledge
proven lantern
#

any idea why my bot can't delete a thread channel?

#

this might be it

lament rock
#

Quite silly considering how threads are channels

tulip ledge
#

or did you train it yourself?

#

Definitely gonna check out the github page

green kestrel
#

via cloudflare AI workers

tulip ledge
#

Might have to give it a go

green kestrel
#

which is a premium feature as it is more expensive to call

feral yacht
green kestrel
#

resnet-50 doesn't recognise nsfw, no

#

our other secret sauce API does

feral yacht
#

im bored

#

idk how to make my bot better

compact pier
#

how can I serve images with graphql? should I just return the base64 string of that image

#

sounds really inefficient

vivid fulcrum
#

it is

#

if it's related to your question about serving images earlier, the best way is still to use a CDN

#

you can then store the URLs that point to those images inside of graphql

#

you can technically cheap out completely by having your main server also act as a CDN

#

but i strongly advise not to

#

it brings up major security concerns

compact pier
#

I don't really want to expose my cdn

vivid fulcrum
#

yeah

compact pier
#

so what I wanted to do, is make my graphql server to a cdn gateway

#

query the image, encode to base64 and then return to client

#

this is what I thought

#

but returning as base64 string sound inefficent to me

vivid fulcrum
#

a CDN is meant to be exposed

compact pier
vivid fulcrum
#

what does the process look like for the end user to get the image they want

#

is it a discord bot or something like that

compact pier
#

nope, a mobile app

compact pier
#

I guess, I will make a cloudflare worker as a gateway for that and then have a jwt authentication

vivid fulcrum
#

yup

#

you need an authentication layer between the user requesting the image and your CDN serving it

#

here's an article i found, it seems applicable to your problem

#

granted it's focused on using AWS but i'm sure you can get something out of it

compact pier
surreal sage
#

transferring so many files filezilla is buggin

deft wolf
#

That's why I use WinSCP weirdsip

craggy pine
#

Damn last time I used Filezilla was when Jailbroken PS3s were in its prime

surreal sage
rose warren
#

Damn I was trying to think of an app to manage my cdn with. Idk why I didn't think of Filezilla 👀 that would be so easy

rose warren
#

Yeah I used to use it a lot. Haven't used it in ages!

real rose
#

i actually rarely use filezilla

#

just use winscp for sftp

#

i dont know why

#

considering filezilla is much larger

rose warren
#

MacOS moment

real rose
rose warren
#

I can't get winscp on mac

#

Mount my cdn in the native file explorer 👀

#

Now that would be pog

real rose
#

Cyberduck is quite cool

#

my lecturers who have mac's use it

surreal sage
#

4 or 2 tab

lyric mountain
#

Aight, spent the whole day but managed to get everything working

#

Gaming on linux is pretty decent might i say

#

Cyberpunk running at 60 fps (monitor cap) on ultra + raytracing

#

Also now I have an useable terminal yay

dreamy pilot
#

Hi evreyone ,How are you ?

crude monolith
#

i am looking for discord bot for solana

#

dm me pls

dreamy pilot
#

I have a problem ,my bot is approvide but ı have a problem,I can't get it the presence intent problem.

deft wolf
#

Search on Fiverr

crude monolith
#

u know someone?

craggy pine
#

As Nynu said, use Fiverr

dreamy pilot
craggy pine
#

Also, just because I'm curious, you want a bot dev but you list a Github on your profile stacked with enough knowledge to make a bot quite easily. Is it not yours? lol

dreamy pilot
echo jasper
#

Hi

crude monolith
#

Hey @small acorn
i am looking for discord bot for solana(I prefer India, Pakistan and Indonesia)
dm me plz

deft wolf
#

Sure, I'll start writing now

rocky wave
#

ping me if anyone decides to help

merry flower
#

That's the most logical thing to do

flat copper
#
const canvas = Canvas.createCanvas(400, 400)
const ctx = canvas.getContext("2d")

ctx.font = '60px sans-serif'
ctx.fillStyle = "#000000"
ctx.fillText("Welcome", 200, 200)

im using this to add text but the text is not showing

#

i tried adding custom font (.ttf) then it throws pango error: unable load font file

vivid fulcrum
#

sans serif isn't a font, it's a typeface

flat copper
vivid fulcrum
#

i'm not all that familar with the canvas API, but this article should help you

flat copper
#

thank you very much

vivid fulcrum
#

it's an article from 2017, my bad, it's probably outdated by a margin

#

this one is from 2021

earnest phoenix
#

Did you expect to see that? mmLol

flat copper
earnest phoenix
#

Then why not show the whole code instead of that snippet?

flat copper
#

its too big 😅

earnest phoenix
flat copper
#

oh okay!

dreamy pilot
#

Because my bot does not send data and rejects 3, I don't know how to use the Discord api.

deft wolf
#

Watch guides, read some threads on forums or reddit and sooner or later you will understand how to use it

neon leaf
flat copper
earnest phoenix
#

You should save the context (ctx.save()), clip and draw the stuff and after you're done drawing in that area, restore the context (ctx.restore())

flat copper
earnest phoenix
#

You're welcome

hasty sentinel
#

Bot Developers. Do you prefer to use slash commands or the original message content commands? I'm trying to decide which route I should go.

deft wolf
#

Slash commands provide more possibilities and thanks to this you don't have to check whether the given value is a user or a channel/role, it is already determined by the option type

#

They are probably more convenient for users as well

hasty sentinel
#

That is true. Do you feel limited by the API rate limit for command updates or the limit to the number of global commands?

deft wolf
#

No, I've never had such a problem but my bot is only on 1.7k servers so it's still small. I doubt any bot will reach the limit of 100 global commands. The number of commands is not an indicator of the quality of the bot, so the fewer the better

hasty sentinel
#

Thanks for your response.

deft lynx
#

So when you have a certain prefix, which maybe whatever, you can easily use the command for the bot you want

deft wolf
#

Yes but multiple bots can have same prefix

#

Like ! or ?

deft lynx
#

Good bots usually provide a way to change prefix for current server or may have a very unique orefix

deft wolf
#

Yes, but the developer has to add it and some bots may not have it

deft lynx
#

like my bot's prefix is mc, though I just put it on top.gg today

deft wolf
#

It's must have for message content commands bots

deft lynx
#

well you've to add everything that exists in ur bot uk

deft wolf
#

Also, is your bot approved by discord?

deft lynx
#

I started on this one just a while ago

deft wolf
#

Then you will need a good explanation for using message content intent

deft lynx
#

oof , Thats only thing I don't like about normal message commands

lyric mountain
#

if you don't care about any of those points, there's little reason not to go slash

manic basin
#

(Good) things that prefix commands support that slash doesn't:

  • Easy to hide/lockdown (owner maint commands)
  • (Slightly) faster to deploy and iterate on
  • Can be invoked by other bots
  • Supports lists of models for parameters
  • Backwards compatibility
  • Arbitrary depth of grouped commands, parent commands can be invoked
  • No limit on number of commands
  • Easier to copy-paste repeated command invocations

(Good) things slashes support that prefixes don't

  • No reliance on message content intent*
  • Built-in democratized permissioning (per-server, no need for code deployment)
  • Discoverable via a searchable ui, no help command needed
  • Ephemeral responses
  • Guided UI (tells users what parameters and types are expected, prompts them for things like users or attachments)
  • More lenient rate limits

Things that both support:

  • Interacting with any normal discord endpoint (create a thread, upload an emoji, etc)
  • Sending views
digital swan
#

The guided ui is a huge bonus for more complex commands but for the majority of discord users (not new users) I think will prefer using the older prefix commands cause they’re way easier to type once you know the command

eternal osprey
#

hey guys

#

i am in my 2nd year of computing science at my local university. Is it already smart to maybe create a github to maintain what projects i have created, what i can do etc etc in case i can use it later to get jobs faster?

#

I kinda liked the idea of having such portfolio

vivid fulcrum
#

definitely

#

it shows you're capable of building something

#

i put up my high school graduation project on my github and i'm 90% certain it is what landed me my current job

harsh nova
#

Not only is it good for future job prospects but it's also a great way to back up code or as a place to go when you encounter a problem you've handled before as you can just re-use that code snippet then

slender wagon
#

I am working on the backend of an app and i retrieve form data including an image from a form.
Now this is the first time i handle images, could i store them in my database directly (prisma x postgresql) and have it easy to access at the same time?

low orbit
#

Can someone explain the logic behind top.gg's preview feature, is it an iframe?

radiant kraken
quartz kindle
#

but if you're gonna be serving them to browsers via img links or similar, then you lose the ability to serve them directly from the file

#

you can cache them and make in-ram perma-links, but that can cost quite a bit of memory if its a lot of images

#

fetching them from db every time is not too bad as long as the images are not multi-megabyte sized

#

you can also let the browser caching mechanism do the job of caching them client side

radiant kraken
#

@earnest phoenix @civic scroll mmLol

earnest phoenix
lyric mountain
radiant kraken
radiant kraken
#
const chad* me = NULL;
feral aspen
#

What are some email clients that are better than RoundCube? 👀

#

I've looked at Google WS, not sure how to safely transfer my emails there.

real rose
#

windows mail mmLol

#

i refuse to use roundcube as much as i can

slender wagon
lyric mountain
#

They replaced windows mail client with outlook

#

Which really feels like they just embedded the site in an electron app and called a day

compact pier
#

This looks like dark magic, I never thought u can do it only with vanilla js

crystal wigeon
#

Has anyone worked with konvajs before ?

quartz kindle
quartz kindle
#

chromes extension api does provide methods and ways to interact with other browser tabs

#

looks cool tho, despite the draw lag xd

compact pier
slender wagon
quartz kindle
real rose
#

awkward

manic basin
feral aspen
deft lynx
#

I like prefix commands but will I have to switch to slash commands once my bot hits 100+ servers?

deft wolf
#

It's up to Discord. In most bots, yes, because prefix commands is not a sufficient reason for your bot to have approved message intent

deft wolf
#

It is possible that if your bot is, for example, a moderation bot that is based largely on message intent, then they would allow you to use it

deft lynx
#

its a game bot

#

any luck?

deft wolf
#

I don't work in Discord, their support will assess whether your bot qualifies

arctic ingot
#

Is there a way to add images in a row on the top.gg website?

deft wolf
#

Well, you can use html + css so I guess you can

arctic ingot
civic scroll
#

though pay attention to css specifity levels

#

some styles depending on how you define them, gets prioritized over others

arctic ingot
civic scroll
#

and one body tag

#
<html>
    <head>
         <!-- metadata (title, imports, meta) shows here -->
         <!-- you don't see those information except for the title -->
    </head>
    <body>
         <!-- what the browser shows you -->
    </body>
</html>
arctic ingot
civic scroll
#

the browser just tried to add that in for you

arctic ingot
#

SneheDead ThinkO_O oh

civic scroll
#

ah also in the beginning,

<!DOCTYPE html>
<!-- html and the rest -->
#

when in doubt, open dev tools

#

(F12 or Ctrl + Shift + I)

#

in Elements tab is what the browser sees as code

#

you can check there to verify structure of your document

#

as well as applied styles on an element

pale vessel
#

Ctrl+U

warm surge
deft wolf
#

What?

green kestrel
#

@wanton musk let's carry on discussing here

#

I'm not staff btw lol

wanton musk
green kestrel
#

I don't really do js either

wanton musk
#

Looks like you do cpp

green kestrel
#

I wrote my first ever server side js this week, I mainly do C++ and PHP

#

my bots are C++

sharp geyser
wanton musk
#

Friend of mine uses dpp for their bot I think

#

Or it might me c#

sharp geyser
#

brain touching a language other than c++

green kestrel
#

with PHP Dashboards

sharp geyser
#

thats blasphemy

green kestrel
#

lovely flexible blasphemy

sharp geyser
#

DPP is a good lib

#

I just suck at using it

wanton musk
#

Somehow cpp dominates even though it was for my college class

green kestrel
#

because it's fast and lightweight

#

and doesn't come with all the politics of rust

wanton musk
#

I want to expand it to other things but I'm not great at it yet

#

I looked at rust

#

Idk I didn't get far

#

Tried to write a simple API with it but the docs were guh

sharp geyser
#

Rust is a specific use case kind of thing.

wanton musk
sharp geyser
#

Also, using a language just because others use it is a no go

#

Use a language for what its intended to be used for, and if you need it

wanton musk
#

I'm not sure what rust is for, but I haven't looked into it much

#

It seems almost like a cpp rewrite

green kestrel
#

kind of is

#

the idea is good, it's C++ with ..... safety

#

but the safety comes at the cost of ridiculous complexity

wanton musk
#

Hm

green kestrel
#

learning curve like mt Everest

wanton musk
#

Christ

sharp geyser
#

and most of the time you find yourself using "unsafe" rust anyway

wanton musk
#

Like right now I work at a school it, I want something to put on my resume

wanton musk
sharp geyser
#

I mean

green kestrel
#

and in my experience there's politics around the language, like a standards committee that got everyone worked up about patents (don't take the languages name in vain!) and if people in America can bring guns to conferences

sharp geyser
#

sometimes you gotta use unsafe rust to get things done or so null has told me

wanton musk
sharp geyser
#

Typescript is were I started back in 2018

#

actually I lie

#

it was python then typescript

wanton musk
wanton musk
sharp geyser
#

Yea so its nice to know a lot of things but dont expect to master them all

green kestrel
#

my day job is php
my "night job" which takes as much time as my day job and started out as a small side hustle is c++ and php

wanton musk
green kestrel
#

you're probably looking at shit PHP then

wanton musk
#

True

green kestrel
#

please tell me not w3schools

radiant kraken
green kestrel
#

or chatgpt

radiant kraken
#

or politics in general

sharp geyser
#

chatgpt is what I use to code

#

who needs an ide

wanton musk
radiant kraken
#

i just enjoy the language as is

wanton musk
#

I used to use GitHub copilot for class and it kinda fucked up my learning

green kestrel
#

AI should be pronounced "AIIIIIIIII why did it do that"

wanton musk
green kestrel
#

says the person who's trying to grow an AI bot

sharp geyser
#

wait brain

wanton musk
sharp geyser
#

isn't your new bot ai related?

green kestrel
#

yes lol

wanton musk
#

If it's popular and profitable I'm not gonna stop you

green kestrel
#

so I often ask "AIIIIIIII why?!?!?!"

#

lol

#

it isn't profitable YET, right now it's just sucking up triviabot funds

#

I had to pay for a lot of stuff

sharp geyser
#

train the model yourself or nah?

green kestrel
#

a dedicated server, ddos protection GRE tunnel, several paid APIs

wanton musk
#

I host my OCR bot on a hetzner instance

green kestrel
wanton musk
#

I didn't train it myself

green kestrel
wanton musk
#

Uses tesseract "best" data

green kestrel
#

lol

#

I also use tesseract

#

are you using tesseractjs?

wanton musk
sharp geyser
#

nah youre fine

green kestrel
#

it has huuuuuuge mem leaks because libtesseract has memory leaks ...

wanton musk
green kestrel
#

thr core of tesseract is shit for code quality

#

but it works

wanton musk
#

But then again, it's only in a few servers

wanton musk
green kestrel
#

my bot is only in a few too but one of them is actively using it and has 750,000 users

sharp geyser
#

you could always use python

#

python has tons of libs for ml stuff

#

not many libs out there for js

green kestrel
#

ew

wanton musk
#

I don't understand why python is the ml language

#

Isn't it like one of the slowest

green kestrel
#

python is slooooow af and as memory efficient as a sprout

wanton musk
#

I don't like python tab syntax

green kestrel
#

and all the "python" libraries for AI, are actually C++ libraries for AI, e.g. tensorflow

#

with python wrappers

wanton musk
#

Also kinda hate python devs, tired of sifiting through entire projects crammed in multi thousand line files

#

Like holy shit split your code up

green kestrel
#

I detest python indent syntax too

#

that's not the fault of the language though

wanton musk
#

I know

green kestrel
#

that's the fault of the dev not being shown better

#

so I been burning the candle both ends to get my bot in release

#

I'm considering gaming tonight

#

Starfield becons

#

I been poaching ideas from degore and anti nsfw left right and centre

wanton musk
#

Half the time I can't get the python to run because it requires so very exact specific rc version of python 2

green kestrel
#

ew python 2???

#

ok grandpa lol

wanton musk
#

Like fine, I get it for things made in that time

sharp geyser
#

brain who you calling grandpa EYES

wanton musk
#

But I feel like there are people still developing on python2 and making no effort to update

green kestrel
#

python is kinda silly how they made two totally incompatible versions of the same language

#

like perl with 5.8 and 6

#

it never works out well

green kestrel
wanton musk
#

But yeah I was trying to install howdy (a facial recognition authentication program for Linux) and it's all python2

#

And python 2 for the most part has been ripped out of the aur

green kestrel
#

I looked at howdy

#

didn't hear anything good

wanton musk
green kestrel
#

slow, unreliable, and insecure

#

might as well just have a hello world as your PAM scripts

wanton musk
green kestrel
#

you can trick it with a photo held up to it 😂

wanton musk
#

I specifically bought an IR camera for windows hello

green kestrel
#

my work laptop has an IR camera

wanton musk
#

I'm not sure about the security of windows hello but

green kestrel
#

I got fingerprint working, I use it as 2fa on work github

wanton musk
wanton musk
#

Some mad discount they had a while back

green kestrel
#

nice

wanton musk
#

I got google titan too

green kestrel
#

I don't use those tho because whenever I need to authenticate im not hear a usb port

wanton musk
#

I suppose yeah

green kestrel
#

usually it's on my mobile where it's asking every damn day for 2fa because mobile app devs don't know when to stop fucking updating apps

wanton musk
#

The yubikeys have NFC

#

I just hold it to the back of my phone

green kestrel
#

we get it you want to change the damn name again for app store optimization, QUIT IT

wanton musk
#

Lol

green kestrel
#

lol

wanton musk
#

I've been looking for a project to work on

#

Idk what to do though

#

I just hope my AOCR bot gets attention

#

Build off there maybe

#

But it's kinda feature complete? I don't want to add anything that would require user options or anything

#

Supposed to be fully plug and play

green kestrel
#

talking of..... i moved to desktop

#

trying to hold a conversation when tapping on a phone with two thumbs gets annoying after a bit

wanton musk
#

Yeah fair enough

green kestrel
#

your bot open source?

wanton musk
#

Yup

#

Did that just get deleted

green kestrel
#

heres mine

#

look under the directory tessd to see how i handle tesseract

#

best way to deal with its leaks: let the OS sort it out kekeke

wanton musk
#

Does cpp not have an automatic package manager

#

Similar to npm

green kestrel
#

there is no "C++ package manager" like there is pip, npm, composer

wanton musk
#

Oh fun

green kestrel
#

but i purposefully made it difficult to compile my bot 😉

wanton musk
#

Trol

green kestrel
#

i dont exactly want people to self host it, i made it open source to keep me on my toes

#

if the code is there for all to see, i dont get lazy and write messy code

#

because if i do someone may criticize it

wanton musk
#

I didn't look at any other examples when I made mine

green kestrel
#

and yeah its still great as example code

wanton musk
#

Was hoping it would be kinda unique

green kestrel
#

even if you dont build and run it as one

wanton musk
#

But here we are lol

green kestrel
#

im surprised to meet someone else making an OCR bot tbh

#

when i looked it was pretty unique, we are the only two active ones.

radiant kraken
#

you can even make AIs in C++

#

double the hell

wanton musk
#

I was in a server that had a lot of people bypassing automod with emojis, images, etc

green kestrel
#

there are a couple others but theyre crap... one will only scan ONE image attached to the last message if you do "!scan", and it has a big note on its bot page saying "one at a time please!" .... or what? your mom will get angry that her desktop is churning away at 100% cpu?

green kestrel
radiant kraken
#

why not use the one for C++ mmLol

wanton musk
#

Maybe I should look at tensorflow

#

Results of tesseract are ok ish

green kestrel
#

i didnt have the time right now to port a ton of existing stuff to C++, and i wanted to get the bot released this side of the new year, so i put the js bit inside a docker container, wrapped it in a simple json api using express, and i call it from the C++

#

it does make it really easy to manage

#

the docker container is pretty much atomic, so i could k8s it

#

easy scaling

wanton musk
#

One day I will start working with docker

green kestrel
wanton musk
#

But smart

green kestrel
#

nah

#

the curl is just a demo of how it can be called

wanton musk
#

Idk I don't like mixing languages too much

#

Maybe I'm just thinking wrong

#

Or maybe I'm scared of leaving the package managed ecosystem

green kestrel
#

mixing languages is how the best programs work

#

discord is a mixed bag of languages, theres bits of js, bits of python, bits of rust, elixir...

#

triviabot is mixed ecosystem, PHP, C++ and some bash

#

but even when i rewrite the tensorflow stuff in C++, it will probably still be a docker container that exposes an API

wanton musk
#

I just wanted a bot with little to no config, and seamless

green kestrel
#

via an apache or nginx module or something

radiant kraken
green kestrel
#

hah, you saw my example config right? 😄

wanton musk
green kestrel
#

hey, youve not lived until youve integrated PERL with C++, using PerlXS

radiant kraken
#

im sure pretty much every language has support for ffi with C/C++

green kestrel
#

yeah

#

PerlXS is horriffic though, its a stack based ffi

wanton musk
#

Reminds me of my first bot that had server specific settings, I made a json database

#

It was hell

radiant kraken
green kestrel
#

yeah, beholder an triviabot use a mysql database, this is just config constants

wanton musk
#

It's uh

#

Still in production

green kestrel
#

ahhh burn it with fire

#

using json as a data store will kill your ssd's

wanton musk
#

The fact that I accomplished a json database without any sort of type safety is kinda guh but

#

It worked

#

And it still does somehow

green kestrel
#

yeah

#

its just like having a square wheel

#

put enough torque into it, and it will work by brute force, but it wont be a comfy ride

wanton musk
#

My first experience with mongo db was years ago, and NOT the docker instance

green kestrel
#

might want to look into something like mongo or redis

wanton musk
#

So like, I just never got it working and was kinda inclined to not use it

green kestrel
#

you could try mysql

wanton musk
#

Oh no I use mongo now

green kestrel
#

but i hear javascript and typescript have the worlds crappiest mysql libs

wanton musk
#

Just not then

green kestrel
wanton musk
green kestrel
#

its really simple, i can use it like this:

std::string size{"massive"};
int order_no = 69;

auto rs = db::query("SELECT fail FROM shipment WHERE order_no = ? AND size = ?", { order_no, size });

for (const auto& row : rs) {
    std::cout << "Fail is " << row.at("fail") << "\n";
}
#

it automatically caches prepared statements

wanton musk
#

Ic

green kestrel
#

so if i use the same query again with different parameters it executes it lightning fast

wanton musk
#

And that's mongo?

green kestrel
#

no, its mysql 8

wanton musk
#

Ah

green kestrel
#

well, the mysql c connector doesnt look like that

#

and the mysql c++ connector is ASS

#

it tries to be like jdbc

wanton musk
#

True

green kestrel
#

so i made my own

#

i think the next thing i add to beholder will be multilang

wanton musk
#

I put a strict license on my OCR bot because I specifically do not want shit bots like mee6 taking any of it

green kestrel
#

they wont steal your code

wanton musk
#

I know

green kestrel
#

they could implement what you made in a day, but they wont

wanton musk
#

Ye

green kestrel
#

what stops them is inertia, they are led by bigger company goals

#

unless they saw massive money in it... they wont add it, thats why they added nft and gpt chat bots

#

thats where they see the money being

wanton musk
#

Did the nft thing ever work out for them

#

The page is still there

covert ingot
#

any ideas why html <img name="sales-funnel" src="/../images/sales-funnel.png"> is returning 404 ?

#
process.on('unhandledRejection', (error) => media.error(error));
// app.use(express.static('js'));
app.set('view engine', 'ejs');
app.set('views', path.join(__dirname, './src/views'));
app.use('/images', express.static(path.join(__dirname, 'image')))
app.use(express.urlencoded({ extended: false }));
app.use(express.static(path.join(__dirname, './src/images')));``` my middleware.
lament rock
deft lynx
#
app.use('/images', express.static(path.join(__dirname, 'image')))

=>

app.use('/images', express.static(path.join(__dirname, 'images')))
#

this should work if I'm correct though I never used path.join

crystal wigeon
#

has anyone used konva?

covert ingot
eternal osprey
#

hey guys

#

i have created a website

#

and use dvh and dvw everywhere to make it dynamic

#

but is that better for a website than px?

#

dvh and dvw can fuck up a lot... and px is just a constant. What do you guys think?

deft lynx
lyric mountain
#

But well, from personal experience, use vh/vw for containers and px for content

#

Some people do use zoom feature, which gets ignored if u use relative units for everything

radiant kraken
quartz kindle
sharp geyser
#

Hello Tim

quartz kindle
eternal osprey
#

it's also for compatibility between browsers

#

safari and google have a different type of fov

#

etcetc

quartz kindle
#

like the url bar that disappears when you scroll down, and re-appears when you scroll up

eternal osprey
#

yeah but safari as an instance has a topbar which is less smaller than google chrome

#

i had problems with it before

#

hence i switched over to dvh and dvw which handled the problem for me

#

soemone in this chat had suggested it for me.

quartz kindle
eternal osprey
#

yeah

covert ingot
#

any ideas why data is null?

#

possibly because they are on seperate tabs, but still at least phone number be entered? not too sure

wheat mesa
#

I could be wrong but I don’t think you need the #cForm when calling getElementById, just cForm

warm surge
#

question

lyric mountain
#

Answer

radiant kraken
low moat
#

there was never an error help request here

fossil flume
#

What are clusters?

#

I assume something dealing with Shards

warm surge
#

let me grab url

fossil flume
#

?

warm surge
fossil flume
#

Oh

wheat mesa
#

carl bot has a lot of servers to manage so they run multiple instances of their program which each manage several shards, which in turn each manage a couple thousand servers

fossil flume
#

Any dpy versions?

wheat mesa
#

here's a good idea of it

wheat mesa
#

There's probably something available

#

But if your bot gets big enough to need clustering, chances are you're shooting yourself in the foot by using python

fossil flume
#

That github repo says 14k

#

For internal shard limit, which I assume is when you'd want to switch to clusters?

wheat mesa
#

It depends on your performance needs but yeah that's probably a good idea

#

I'm an avid python hater so I might be a little biased here but python is incredibly slow, you'd probably be better off writing your bot in a different language if it comes to the point where performance is an issue

fossil flume
#

I have lots of resources on my server so I doubt it

#

Unless I obv get like 1m servers

#

Which I won't

wheat mesa
#

Ease of development comes at a cost 😉

lament rock
wheat mesa
#

thanks brain

lament rock
#

My architecture is I have my gateway nodes open a ws connection to my website and my website proxies relevent events to workers

#

My website handles music queues, so the system is a little backwards and kinda depends on a somewhat monolithic design where the bottle neck would be the website overall

#

But I can always multithread it or spread route handlers across machines with cf

fossil flume
#

Did research, pretty sure clusters are not a thing in d.py

lament rock
#

The alternative would be putting more strain on my music player nodes by having each cluster manage a subsection of the total queues and give actions to the player nodes and gateway actions, plus the queues being duplicated on the website for states because of a dashboard

#

I'm not sure what the most optimal way to do things is tbh

#

any solution I think of has the website as the bottleneck

#

yeah I like how I currently have things

fossil flume
fossil flume
#

How do you get command id

lament rock
#

From the response from bulk overwrite application commands or overwriting individual commands

#

or get application commands I guess

deft wolf
#

Also on desktop, you can right-click on the box with the name and description of the command

#

You will see an option to copy the command id

crystal wigeon
#

Hey can anyone help me out with svg paths?

#

data: "M366 281 H273 t 10 0 10 10 V 120 H180",
// data: 'M180 140 H290 t 10 0 10 10 V 200 H400'
These 2 similar paths are yielding two different results, but why

#

Basically trying to understand why this is happening

#

Also this is happening because of the “t” but I want to use it to draw a curve on the line

crystal wigeon
#

Tim

#

Anyone

sharp geyser
#

Bro waited 10m

#

It’s late for a lot of people and early for the rest.

deft wolf
#

For me it's neither early nor late weirdsip

sharp geyser
#

False

#

Early and late are a concept of time

slender wagon
#

Timè doesn't exist

sharp geyser
#

Time exists all around us

crystal wigeon
#

ping me pls when they here

eternal osprey
#
if (lfgBo) {
          errorEmbed2.setDescription(
            errorEmbed2.description + "``Best out of`` " + `${lfgBo}\n> `
          );
        }

how to append to an embed description?

#

This above returns me undefined and then best out of...

crystal wigeon
deft wolf
#

It's not something like += or =+?

#

I can't remember

craggy pine
#

I'm sure there could be better ways to do it, but what I've done is find the message the embed is at. Then do <message>.embeds[0].description for the content and store it in a variable.

eternal osprey
#

ahh i see

#

thank you

#

but what if i don't send the embed, like your suggesting sending a message and then editing it right?

crystal wigeon
#

try logging errorEmbed2

#

im doing what you are doing and it works for me

#

just check if the property exists

craggy pine
eternal osprey
#

it's saved within data

craggy pine
#

Data?

eternal osprey
#

so i apparently had to do embed.data.description

craggy pine
#

ooo

#

neato

#

good to know

merry flower
#

What is the use of shards in a Discord bot ?

slender wagon
crystal wigeon
#

im going crazy

eternal osprey
#

hey guys i a numerical output variable i would like to transform for my decision tree

#

really not sure whether this is the perfect server but got no other place to ask this

#

this is my charges (outut variable) plotted.

#

i must threshold this data into 3 categories: low risk, medium risk, high risk.

#

what would be the best approach?

#

i got two options here:

  1. either we say 0-33th percentile = low risk, 33th - 66th = medium etc etc.
  2. we look at the above graph and say, there's a linear relationnship of 20k >, hence we group them together into high risk. everything till 5000 will be medium and then 5000-0 low risk
vivid fulcrum
boreal stream
#

hey guys can someone help me maybe someone has worked with the i18n next-intl and im making a middleware for the profile page login and sign up to not be accessed but how can modify my middleware that i na use the routes to accept the locale lang and then to show the path too

timber fractal
#

Why isn't this working? the bot is added to the guild let channel = client.guilds.cache.get("ID").channels.cache.get('ID');

covert ingot
#

more

#

context

deft wolf
#

Is the channel in the cache or not?

hidden gorge
#

just installed Discord.js and getting this error anyone know why?

THIS IS A FRESH INSTALL WITH NOTHING ELSE

vivid fulcrum
#

check your node version, you might need to install a newer one

halcyon sleet
hushed patrol
#

Any good host for github bot and website at the same time?

deft wolf
halcyon sleet
#

(free hosting)

#

I'm a customer Support Representative there.

deft wolf
#

Free hosting weirdsip

#

Why are people so reluctant to spend even 5 euros a month on hosting?

halcyon sleet
deft wolf
#

You are never gonna get "the same thing" for free

#

It's like having to spend on food. Food from the garbage or any other "free" food is still food and you could eat it because why spend money, but it is not the same as buying it in a store or in a restaurant

odd oracle
#

Hi, I'm trying to create a functionality in python within my discord bot that when someone votes for my bot sends an announcement to the server but I don't know how to do it

sharp geyser
#

Node, Deno, Python, Java and Lua (out of all things)

odd oracle
sharp geyser
#

following the docs

odd oracle
sharp geyser
#

Show code and errors then

odd oracle
# sharp geyser Show code and errors then

gives me this error:

Traceback (most recent call last):
File "c:\Users\lione\OneDrive\Desktop\TBS private bot\ttsbotprivate.py", line 1184, in <module>
topgg_webhook.run(5000)
File "C:\Users\lione\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.11_qbz5n2kfra8p0\LocalCache\local-packages\Python311\site-packages\topgg\webhook.py", line 161, in run
return self.bot.loop.create_task(self._run(port))
^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\lione\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.11_qbz5n2kfra8p0\LocalCache\local-packages\Python311\site-packages\discord\client.py", line 140, in getattr
raise AttributeError(msg)
AttributeError: loop attribute cannot be accessed in non-async contexts. Consider using either an asynchronous main function and passing it to asyncio.run or using asynchronous initialisation hooks such as Client.setup_hook

#

@sharp geyser

sharp geyser
#

Well the error is kinda self explanatory

#

You are doing something that requires the use of async. Iirc discord.py has a few hooks that are asynchronous that can be used with the sdk

#

That’s something you’ll have to find in the docs yourself as I don’t use discord.py

hushed patrol
sharp geyser
#

Wdym GitHub

hushed patrol
#

i have my bot's code on github and i want to host it 24/7

sharp geyser
#

You’re supposed to be hosting a local copy

hushed patrol
sharp geyser
#

That makes no sense. Unless you want to periodically pull from GitHub to make sure it’s up to date but that’s excessive

#

Using the code on GitHub to host is not ideal

hushed patrol
sharp geyser
#

Use a local copy

#

GitHub is really just for version control and qol

hushed patrol
#

now what?

sharp geyser
#

Use it on a vps.

hushed patrol
#

whats a vps?

#

if u don't mind me asking

sharp geyser
#

Virtual private server. It’s a system that’s exposed over the web that you can ssh into and use as if it’s hardware you are physically using

#

You can put your bots code onto it and use something like pm2 or if it’s a Linux system which I recommend using you can use Linux screens to keep the process running

deft wolf
#

Personally, since I started the first Minecraft server, I only use screen, I found out about PM2 only when I started getting interested in bots on discord

sharp geyser
#

Screens are nice

halcyon sleet
sharp geyser
#

But they aren’t foolproof and can get complicated if you aren’t careful

deft wolf
#

What irritates me the most is when my internet goes down for a moment with the screen open and after reopening the terminal I can't access it with screen -r <name/id> command weirdsip

sharp geyser
#

Probably got detached

#

Use the ls command that screen has to see if it exists anymore

#

If it does use the ID it displayed if not remake the screen

#

I use the id over the name

#

It’s nice to have it named if you have multiple but the id I’ll always use no matter what

deft wolf
#

Yea, I have to close this screen with id and then redo it and close it properly with ctrl + a d` but actually this situation happens once a month so whatever. Redo is the most troublesome with the bot because of all the rate limits and so on

digital swan
halcyon sleet
#

😉

deft wolf
#

Why is this whole "free" hosting increasingly suspicious weirdsip

digital swan
#

for real

spark flint
#

selling data

#

generally when you are getting a service without purchasing a product, you ARE the product

lyric mountain
#

It forcibly detaches the current session and reattaches

deft wolf
#

I will try it

#

Thanks

lyric mountain
#

You can use it as a drop-in replacement for lowercase, unless you have someone else working with u

#

Cuz it forcibly detaches whoever is connected

deft wolf
#

No, no, I do everything myself weirdsip

lyric mountain
#

Then u can use it always

deft wolf
#

Thank you

lyric mountain
#

Yw

sharp geyser
#

That can’t be 😭

harsh nova
tall goblet
#

@gilded crag @tall goblet @fickle glacier @mee6

wheat mesa
#

?

tall goblet
warm surge
#

@harsh nova ^

tall goblet
#

@desert urchin

#

🍕/spoiler 🍑 message 🍕:🍕🍑Nookie (For the Nookie) [Neptunes Remix] by Limp Bizkit https://www.shazam.com/track/216726/nookie-for-the-nookie-neptunes-remix?referrer=sharehttps://discord.com/channels/1171696287909953556/1178450637751599165Login
Store
Community
Support
Change language
View desktop website

© Valve Corporation. All rights reserved. All trademarks are property of their respective owners in the US and other countries. #footer_privacy_policy | #footer_legal | #footer_ssa | #footer_refunds
Date Posted: Dec 9, 2022 @ 10:21am
Posts: 389
Start a New Discussion
Search this topic

Discussions Rules and Guidelines
More discussions
4
Не заблокируют мой акаунт?
0
World war z
3
Не заблокируют мой акаунт?
4
Не заблокируют мой акаунт?

STEAM
All Discussions > Steam Forums > Русскоязычный Форум > Topic Details

󠁥⁧блэнк󠁥 Dec 9, 2022 @ 10:21am

Музыка вечна. Куда же без неё?
Слушаем, пишем, обсуждаем и просто наслаждаемся :cleanseal:
<
1

Showing 1-15 of 389 comments

󠁥⁧блэнк󠁥 Dec 9, 2022 @ 10:22am

Last edited by 󠁥⁧блэнк󠁥; Feb 19 @ 8:55am
#1

󠁥⁧блэнк󠁥 Dec 9, 2022 @ 10:22am

YouTube™ Video: Mega Drive - Black Katana
Views: 57,760
Moving the dark stories from 198XAD and 199XAD forward "Black Katana" is an electronic synthwave instrumental piece that takes listeners even further into the dystopian future rife with...
#2

giimer Dec 9, 2022 @ 10:23am

YouTube™ Video: INTERSTELLAR - Beautiful Space Orchestral Music Mix | Epic Inspirational Sci-Fi Music
Views: 4,706,154
Follow Pandora Journeys Official Playlists ➝ Spotify (EPIC MUSIC): https://open.spotify.com/playlist/28rEK5OxVacTeR8OW1UaCw?si=hpVXr3bBRIW8KCqPjm4R8Q ➝ Spotify (Beautiful Orchestral):...
Last edited by giimer; Dec 9, 2022 @ 10:23am
#3

Xayc Dec 9, 2022 @ 10:25am
Кукла колдуна, одна из лучших песен Короля и Шута:

YouTube™ Video: «Король и Шут» - «Кукла Колдуна» HD
Views: 56,761,252
Музыкальная композиция группы "Король и Шут" - "Кукла Колдуна" Использованы кадры их фильма - "Van Helsing" Премастеринг выполнен в среде - adobe premiere pro...
#4

gk4stalker Dec 9, 2022 @ 10:45am

Написать могут все, а понять о чём говорит нет:steamthumbsup:

  • каким-то чудом музыка проникает в самую душу

YouTube™ Video: Сталкер. Монолог о музыке...
Views: 71,490
Видеомикс на монолог...

Originally posted by 󠁥⁧блэнк󠁥:
Слушаем, пишем, обсуждаем и просто наслаждаемся

YouTube™ Video: Сима Чернышёва. Перевал
Views: 7,730,099
исполняет Сима Чернышёва

источник высокого наслаждения!

YouTube™ Video: Deform "Зарази меня жизнью"
Views: 137,600
Когда мы слушаем великолепную песню, хочется "увидеть". Иногда группы не выпускают клипы. Тогда я даю возможность моему воображению.

YouTube™ Video: Deform - В ожидании весны (HD)
Views: 48,344
Клип группы Defirm в HD

YouTube™ Video: Наутилус Помпилиус - Зверь
Views: 23,079,663
Last edited by gk4stalker; Dec 19, 2022 @ 3:04am
#5

János Újváry Dec 9, 2022 @ 11:12am

YouTube™ Video: BABOOSHKA - "Вата" (официальное видео)
Views: 109,467
альбом "Православный аватар" (2019г.) сценарий, режиссура, монтаж, постпродакшн - Моргана, оператор - Red Raven.

Думаю, вам понравится
#6

Sturisoma Dec 9, 2022 @ 1:15pm

YouTube™ Video: Ivan Mládek - Jožin z bažin - Subtítulos en español, English subtitles, Napisy polskie,české titulky
Views: 9,578,909
Ivan Mládek - Jožin z bažin - Subtítulos en español, English subtitles, Napisy polskie, české titulky, русские субтитры, Jorge Bagre
#7

Iridium.White Dec 10, 2022 @ 5:34am

YouTube™ Video: Jesus Christ Superstar (1973) - Heaven on Their Minds Scene (1/10) | Movieclips
Views: 927,727
Jesus Christ Superstar - Heaven on Their Minds: Judas (Carl Anderson) tries to warn Jesus (Ted Neeley). BUY THE MOVIE:...

YouTube™ Video: LORD OF THE LOST - Priest (Official Video) | Napalm RecordsScatman Joh
rekT@p!4e? Dec 10, 2022 @ 9:17am
Iridium@jolly zephyr

YouTube™ Video: (세로룩북) 간접비행 슬랜더 Nicholas

warm surge
#

@tall goblet lets not

tall goblet
harsh nova
#

-m 1171694730963320853 spamming some weird stuff

gilded plankBOT
#

upvote trickg99#0 was successfully muted

harsh nova
#

I'll decide duration tomorrow I'm too tired

warm surge
#

alr

fossil flume
#

Is there a way to get every command Id, discord. Py

#

I tried to hash the name but idk if that's the ID or not

radiant kraken
#

@spark flint lets not

spark flint
#

lol

warm surge
main arrow
#

@warm surge

warm surge
surreal sage
#
function name()
{

}``` or ```js
function name() {

}```
marsh lark
#

I prefer the latter more

pale vessel
#

when a c# dev codes js for the first time

lament rock
#

One True Brace Style

quartz kindle
surreal sage
lament rock
#

I just use whatever is the most accepted for the language

#

for c#, it's the first one

#

Tho I use none if that's an option

wheat mesa
#

C# first one everything else second one

surreal sage
lament rock
#

some require brackets iirc

surreal sage
sharp geyser
#

Take that back

main arrow
#

@surreal sage

surreal sage
main arrow
#

@surreal sage

#

@main arrow

surreal sage
#

..?

main arrow
#

@surreal sage

warm surge
#

@solemn latch ^

main arrow
solemn latch
#

@main arrow please stop pinging people for no reason

granite sun
#

Is there a way to allow tokens to a development version of a bot? Or is the only solution creating a new page for the development version of the bot?

For context, I have 2 bots with different IDs, one for production and one for development, I would like to test some features on my development bot before releasing it to prod

sharp geyser
#

you could either have two copies of the bot or use environment variables and have an if statement checking what the environment is and use the appropriate token

#

for example on your pc have the environment variable be set to development, on a vps have it set to prod

#

then do a simple ternary operator to check the env and use the token you have in your config file

granite sun
#

yeah that's what I have right now, so the solution for testing is to create a new bot page for the dev bot in top.gg?

sharp geyser
#

so like client.login(env === 'dev' ? devToken : prodToken)

sharp geyser
#

dev bot stays with you

#

just make a new bot for development

granite sun
#

yeah i have a bot for development, my problem is I'm using the TopGG token from my prod bot to test on my dev bot and it's getting a forbidden error

#

I'm assuming it's because the ID of my Dev bot is not the same with my Prod bot and when it's being checked, the ID's do not match from what TopGG has (which is the Prod Bot ID)

sharp geyser
#

oh if its something like that then a mod or someone more experienced with the top.gg api will have to answer

#

I thought you were talking about the bots from a discord perspective

granite sun
eternal osprey
#

hey guys

#

i really need some help with my website

#

i use vh and vw everywhere

#

but idk, is that the norm? I see a lot of people use px instead and i don't know which to use.

#

i know px is just an absolute while vh/vw are relatives to the viewport but idk...

radiant kraken
#

cc @civic scroll

civic scroll
#

vw / vh are reactive units, refer to percentage of browser viewport width / height (the area in the browser of which used to display your website)
px is fixed unit (pixels)

#

use fixed unit when you want the element to have... well, fixed size

#

and reactive units when you want the element to change its size according to something else

#

note: for reactive units other than viewports, pay attention to which element it bases its dimensions from (cascade hiearchy really matters)

radiant kraken
#

i needed this too thanks sis

civic scroll
#

you won't go further than px / rem anyway

#

but it's good to know what you have at your disposal

radiant kraken
civic scroll
radiant kraken
#

root? as in body

#

or the parent element

civic scroll
#

html

radiant kraken
#

ooo

civic scroll
#

that's the only root i could think of

#

since you can set rules there and they would cascade

radiant kraken
#

damn

civic scroll
#

they forgot the "cascade" part

#

they are gonne learn the hard way mmLol

radiant kraken
#

i mean pretty much every newbie frontend dev will only use px mmLol

civic scroll
civic scroll
radiant kraken
#

using % never worked for me

#

besides 100%

radiant kraken
#

and then complain how css is hell

civic scroll
#

if it doesn't, time to submit a pr to css draft

radiant kraken
#

icic

#

btw do you have plans to work on your portfolio/website?

surreal sage
#

and to renew your domains

radiant kraken
#

cc @civic scroll

lyric mountain
#

hi there sayu

civic scroll
#

hi kuu

#

i tried hadoop

#

it was pain

radiant kraken
#

is it your thesis?

civic scroll
#

yes

#

now for some reasons i can't set cookies

lyric mountain
#

needed to ask you a thing for a friend

radiant kraken
civic scroll
#

yes?

#

thanks

lyric mountain
#

do you do freelancing jobs?

radiant kraken
#

kuu she's still doing thesis

#

probably not yet

civic scroll
#

i do but only when i'm free

#

i'm piled up with too much work atm

lyric mountain
#

ah ic

#

it's for miyu, we couldn't ask u earlier cuz the dm is closed

radiant kraken
#

you planning to hire her? 👀

lyric mountain
#

cc @craggy pine

civic scroll
#

smh why did you unfriend me

lyric mountain
#

I didnt 😢

civic scroll
#

😔

lyric mountain
#

actually, I forgor to accept lmao

#

just did now

civic scroll
#

i'm still processing the shock of being a sysadmin and now a full stack developer

lyric mountain
#

lmao that's like full and a half stack

radiant kraken
civic scroll
lyric mountain
civic scroll
lyric mountain
#

likely because I have an admin role in a big server

radiant kraken
#

you should only accept frs from friends of friends

civic scroll
#

thesis: big data class

#

distributed data storage / processing

radiant kraken
#

damn

#

galaxy brain stuff

civic scroll
#

i still have it

#

and this nightmare

lyric mountain
#

what is hadoop again?

civic scroll
#

apache hadoop - distributed data processing

lyric mountain
#

ah

civic scroll
#

have you done cookies before?

lyric mountain
#

only in flutter

#

but I suppose it's all the same

civic scroll
#

i had cookies set via headers but for some reasons my browser doesn't set it

lyric mountain
#

how did u set it?

#

also, were you in a sub path?

civic scroll
#
Express#app.Response#cookies
civic scroll
#

my configuration is one backend, one forwarder server and finally the frontend

#

all 3 are of different origins

#
Backend <------------> Forwarder <----------------> Frontend
localhost:3001         localhost:3004               localhost:3000
lyric mountain
#

i've never done it through headers

civic scroll
#

"why this?"
i had to do this configuration because my classmates were testing the api via a cloudflare tunnel
if the backend shuts down, so does the tunnel
so i set a forwarder and have the tunnel connects from here

#

the forwarder only modifies origin header, but keep the rest intact

civic scroll
lyric mountain
#

well, it was for in-site preferences, so through document.cookie

#

you could grab the header and document.cookie = headers['Set-Cookie'] if all else fails tho

civic scroll
#

problem is, i set it as http-only

#

it would be nice if the browser can just save it

lyric mountain
#

oh, wait

#

ah nvm, "except on localhost"

#

well, according to the docs there's nothing wrong with your image

civic scroll
#

i could see it WAHWAHH

surreal sage
#

cant even export my photopea thing 😭

deft wolf
surreal sage
#

💔

deft wolf
#

Download some ram then