#development

1 messages · Page 247 of 1

sharp geyser
#

im sorry

eternal osprey
#

your punchline shit asf

sharp geyser
#

The rust game made me toxic again

quartz kindle
#

while(true){}

neon leaf
#

should I replace every if in my code with a while that has a break at the end

#

so if i return early my program explodes

pearl trail
#

sure

sharp geyser
quartz kindle
#

:^)

pearl trail
#

you forgot the >> /mnt/public/update

sharp geyser
#

my bad

#

forgot

pearl trail
sharp geyser
#
for i in $(seq 1 10000);
do
  echo '\0' >> crowdstrike.exe
done
#

just one isnt enough

pearl trail
#

o7

sharp geyser
#

Do I need to use ssl on my desktop app

#

Im not exactly sure how electron or tauri works, but they are essentially just bundled web browsers that open a single website no?

quartz kindle
#

pretty much

#

you dont need ssl

#

its the same as opening a local html file with the browser

sharp geyser
#

hm

#

then how does it securely talk to external apis

#

Like how does discord function "securely"

earnest phoenix
#

Good that you added quotes :)

quartz kindle
#

your computer already has all the certificates it needs for a client

sharp geyser
#

Fair

pearl trail
#

electron is basically Google chrome but can only open specified page

#

you can do fetch just like in browser

sharp geyser
#

I see

#

Thank god im not using electron

#

chromium make ram go brrrr

quartz kindle
#

yeah its dumb to bundle a whole browser for a desktop app

sharp geyser
#

tauri is better

#

but has 1 downside

#

It uses the native web view bundled with the OS

#

but if the OS pushes an update that breaks that webview then your app also breaks

#

💀

quartz kindle
#

im very interested in tauri, never tried it, but will probably give it a try when their android/ios support is better

sharp geyser
#

yea

#

I think they are mainly focusing on the desktop aspect

#

Especially since cross compliation is a WIP

#

You can still use github actions to cross compile for windows, linux and macos

#

but they want to offer a built in tool at some point

pearl trail
#

how different is tauri from electron?

sharp geyser
#

very

#

In terms of how its used

#

Electron is basically pure html, js and css

#

tauri is html, js and css, but you use rust as the "backend" of the desktop app

pearl trail
#

oh damn

sharp geyser
#

any expensive calculations or calls you want to do, do it in rust and your frontend can just "invoke" it

pearl trail
#

oh, electron can do that too

#

it have "backend"

sharp geyser
#

Can you use anything besides js/ts?

pearl trail
#

communicate through ipc

#

oh, no but it is a "backend"

sharp geyser
#

Right

#

tauri differs

#

it is arguable that js wont be any slower than rust

#

but since rust is lower level and has more control over the memory it uses it is arguably better to use than js for the "backend" of a desktop app

#

that could be making constant expensive function calls

#

At least in my opinion

pearl trail
#

ooooo

#

I got you point

quartz kindle
#

doesnt electron technically have a c++ backend?

#

since it uses node and napi

pearl trail
#

but we can't use it directly? idk maybe it can by using the .node or what file is it I forgor

sharp geyser
#

as tauri is

quartz kindle
#

another project i had my eye on was ultralight, but its been very slow development and the main dev is weird

#

ultralight uses a custom webrenderer with a c++ backend, so it doesnt use any browser/webview

#

but the dev went ahead and released a pro licence for 3000 usd, half of the code is proprietary, and it still doesnt support most web features like fetch or canvas lol

pearl trail
#

💀

sharp geyser
#

Damn my small business that makes 49 million a year

pearl trail
#

the price is "let's talk"

#

so we just talk and get the license?

sharp geyser
#

yup

pearl trail
#

I see

sharp geyser
#

Cool in concept

#

but like anyone offering a pro license for 3k usd

#

Wouldn't bother using it

#

Tauri is free no matter what

quartz kindle
#

yeah, the whole project is going in a weird direction

#

but it has potential

#

imagine a desktop app written in html+js+css that only uses 10mb ram

sharp geyser
#

that'd be virtually impossible to begin with

#

and even if it was the case

#

its not worth 3000

radiant kraken
sharp geyser
#

why

radiant kraken
#

tried running the app and it said "error unable to access 127.0.0.1"

sharp geyser
#

not a tauri issue

radiant kraken
#

i was like fuck it and rewrote everything in C++ with raw windows API and directx

pearl trail
#

pro

sharp geyser
#

so basically

#

you were trying to make a screen recorder in tauri

#

💀

radiant kraken
# pearl trail pro

and now it takes me several days to even get a simple UI to work properly

pearl trail
#

on the app

sharp geyser
radiant kraken
#

i had to write my own multithreaded renderer

pearl trail
#

ah yeah that's the thing lmao

sharp geyser
radiant kraken
#

nah

#

win32 + directx + imgui > *

sharp geyser
#

you only say that because of the amount of time you put into it

radiant kraken
#

well yea lmfao

sharp geyser
#

I bet you, if you had to you wouldn't do it over again

radiant kraken
#

time goes fast when you code in C++

sharp geyser
#

yea because by the end of it you've suffered so much you dont notice time passing

radiant kraken
#

😭

sharp geyser
#

Me: 5am
Me: Holy fuck how is it 12pm already

pearl trail
#

what encoder you'll use for the screen recorder?

latent yew
#

hello

radiant kraken
vivid fulcrum
pearl trail
sharp geyser
#

even as a solo dev, expecting 3000 for a thing thats not even well developed

#

is absurd

pearl trail
#

does it depend on the "graphics settings"? neko_think

radiant kraken
#

nope

sharp geyser
#

to market it off as ready to use for a small business is crazy

radiant kraken
#

it just requires windows 10 1803 or 19-something or newer

#

which im sure most people nowadays have

pearl trail
#

yeah uh I mean

sharp geyser
#

Require windows 11

#

windows 10 hitting its EOL soon

vivid fulcrum
radiant kraken
#

ew no

pearl trail
#

like, software x264, nvenc, or wat

radiant kraken
#

idk im not that pro

#

😭

pearl trail
#

like in obs you can choose that

#

wh

sharp geyser
#

Already releasing a license for it is absurd

pearl trail
#

well as long as it works then ig... sure

radiant kraken
pearl trail
#

it's actually not only on obs, afaik

sharp geyser
#

Also, electron imo is still a better option even for entirprises

radiant kraken
#

i just want to get this app to work so i can record my uni's zoom calls

#

😭

pearl trail
#

oh lmfao

#

why not sharex? It uses apps you like, ffmpeg

sharp geyser
#

while electron bogs down memory, its still better in hingsight due to it being battle tested and having a large community behind it

radiant kraken
#

nah

sharp geyser
#

wait null

#

are you literally making your own screen recorder

pearl trail
radiant kraken
#

not really

sharp geyser
#

spotify uses electron

radiant kraken
#

im copying other people's screen recorder and changing the code a bit lol

#

im not that smart

sharp geyser
#

ic

pearl trail
sharp geyser
#

A lot of apps use electron

#

it just makes more sense to use electron then making an in house solution

#

Electron is already well developed and tested

pearl trail
#

you make me want to make a desktop app again

radiant kraken
#

pro

sharp geyser
#

lol

#

Im making an rcon client

pearl trail
sharp geyser
#

dont ask me why I wanted to but now i am

pearl trail
sharp geyser
#

Rcon stuff

pearl trail
#

I found rcon in Minecraft server

sharp geyser
#

Allows you to communicate to a server that supports rcon remotely

pearl trail
#

ooooo

sharp geyser
#

Meaning you dont have to physically be in the server

radiant kraken
#

fancy

sharp geyser
#

My client only supports rust rn, but I plan on supporting other games eventually

radiant kraken
#

also @pearl trail why are u still awake smh

#

go to sleep u have uni tmr

#

wait not tmr

#

in a few hours

pearl trail
#

idk maann I'm too nervous

radiant kraken
#

samee

sharp geyser
#

both of you need to sleep wtf

radiant kraken
#

its only... 2am

pearl trail
#

also my water gallon made a noise suddenly 💀

sharp geyser
#

only is crazy

radiant kraken
pearl trail
#

yeah I can't sleep now 💀 I need to wake in 4 hours

radiant kraken
#

SLEEP WTF

#

still has 4 hours of sleep
refuses to sleep

pearl trail
#

omw finding tutorials

frosty gale
#

lets gamble try merging?

eternal osprey
#

ngl i think i made a hundred contributions purely by adding prepared statements to sql based code bro

#

a lot of them are opensource operating projects as well

#

so you can see the whole db structure, so you can easily go to the online app and inject some sql 😭

#

are ppl retard3d

real rose
eternal osprey
#

yeah dik why it is falgged tbf it's a normal word

#

ppl need to grow some fucking backbone

neon leaf
#

its beautiful isnt it

#

and it is injection proof ‼️

eternal osprey
#

that ain't it chief 😭

neon leaf
#

well it is the fastest solution so far

#

400ms faster than what i had before

eternal osprey
#
function execute(query, params = []) {
  return new Promise((resolve, reject) => {
    db.all(query, params, function (err, rows) {
      if (err) {
        reject(err);
      } else {
        resolve(rows);
      }
    });
  });
}```
this is all i do to parameterize my sql lmao
neon leaf
#

well yeah

#

usually thats fine

#

however i felt a little freaky

eternal osprey
#

freaky

neon leaf
#

yes

neon leaf
neon leaf
#
WITH spec_build AS (
                    SELECT builds.*
                    FROM ${hashType
                            ? sql`buildHashes INNER JOIN builds ON builds.id = buildHashes.build_id WHERE ${sql.identifier(hashType)} = ${req.params.build}`
                            : sql`builds WHERE id = ${int}`
                    } LIMIT 1
                )

                , filtered_builds AS (
                    SELECT b.*
                    FROM builds b
                    INNER JOIN spec_build sb
                        ON sb.id = b.id 
                        OR (COALESCE(sb.version_id, sb.project_version_id) = COALESCE(b.version_id, b.project_version_id) AND sb.type = b.type)
                    WHERE b.type != 'ARCLIGHT' OR (
                        (sb.project_version_id LIKE '%-fabric' AND b.project_version_id LIKE '%-fabric')
                        OR (sb.project_version_id LIKE '%-forge' AND b.project_version_id LIKE '%-forge')
                        OR (sb.project_version_id LIKE '%-neoforge' AND b.project_version_id LIKE '%-neoforge')
                        OR (sb.project_version_id NOT LIKE '%-fabric' AND sb.project_version_id NOT LIKE '%-forge' AND sb.project_version_id NOT LIKE '%-neoforge')
                    )
                )

                SELECT *, 0 AS build_count, '' AS _version_id, '' AS version_type, 0 AS version_supported, 0 AS version_java, 0 AS version_created
                FROM spec_build

                UNION ALL

                SELECT x.*, mv.*
                FROM (
                    SELECT *
                    FROM (
                        SELECT b.*, count(1) OVER () AS build_count
                        FROM filtered_builds b
                        ORDER BY b.id DESC
                    ) LIMIT 1
                ) x
                LEFT JOIN minecraftVersions mv ON mv.id = x.version_id;```
#

this is also pretty cursed but its the more sane version

eternal osprey
#

what is this for

neon leaf
#

a minecraft version api

eternal osprey
#

damn

#

i wouldn't do all that for mc

neon leaf
#

you would if you are getting paid

#

(I am)

#

@lyric mountain do you have a way to sponsor you using paypal btw

lyric mountain
#

wdym?

#

like, u can receive payments via paypal yeah, but it doesnt have tiers like patreon

neon leaf
#

I mean do you have a platform like kofi where i can pay on

#

I got banned off of patreon twice 💀

lyric mountain
#

only ones I know are kofi and chargebee

lyric mountain
neon leaf
neon leaf
lyric mountain
#

oh wait you mean ME literally?

neon leaf
#

yes you

#

I want to thank you for all the sql help by donating 15€/$ per month

lyric mountain
#

I dont use any platform atm, trying to find one that accepts both discord and brazillian real

#

kofi accepts real, but no discord. chargebee has discord but no real

#

but well, I do have a paypal account, if you're really willing to

neon leaf
#

done ‼️

lyric mountain
#

so I suppose it did work well in the end

#

how's the performance now?

neon leaf
#

decent

#

(165ms on v2 build lookup)

lyric mountain
#

remember to MATERIALIZED VIEW any slow query that's not required to be realtime

neon leaf
#

wdym

#

whats a materialized view

lyric mountain
#

it's a "compiled" query basically

#

you know what a view is right? basically an alias for a big query

#

materialized view executes the query and then stores the resultset

#

any posterior call will retrieve that resultset instead of executing the query again

#

to refresh the set you run REFRESH MATERIALIZED VIEW name_of_the_view

neon leaf
#

so its basically a cache?

pearl oriole
#

Bot sending message does not working?

lyric mountain
#

kinda, but permanent

#

I mean, probably permanent I never tried restarting postgres to see if it persists

neon leaf
#

Whether SQLite supports materialized views is a bit controversial. According to the SQLite official document, SQLite supports 'Materializations Of Views And Subqueries' by storing the subquery results in a temporary table. However, the temporary tables are automatically deleted at the conclusion of the query.26.06.2022

#

watr

lyric mountain
#

if you have something that's fine to be refreshed ever so often then mat views can help since the execution time is always O(1)

#

that's talking abt temp tables

neon leaf
#

sir, dont forget im using sqlite

lyric mountain
#

ah, I forgor

neon leaf
#

.,.

lyric mountain
#

tho it only works for current connection apparently

neon leaf
#

well yeah that wont help on serverless then

lyric mountain
#

what's that for btw? are u making a launcher of some sort?

neon leaf
lyric mountain
#

ah

eternal osprey
#

how do i do this

neon leaf
#

look at your tsconfig

eternal osprey
#

i got none

#

😭

neon leaf
#

...what

eternal osprey
#

okay nvm i created one

#

earlier but i didn't see it

#

but how do i use it? Is it done automatically?

runic prism
#

h

quartz kindle
surreal sage
#

is there a better way to do configs like this?

#

currently hardcoded into source

#

something more open source friendly

neon leaf
#

you could put them in the db

surreal sage
#

note: using dockerfile

neon leaf
#

you could make a roles.json

quartz kindle
#

if you want to release it for public use, a json config file would be the simplest way

surreal sage
#

json config in root dir?

quartz kindle
#

yeah

surreal sage
#

or a seperate config dir outside source folder

quartz kindle
#

if the project is going to be cloned from github, i'd put it in root

#

if the project is going to be installed as a lib, then i'd make it a config object passed into some function or constructor

surreal sage
#

glad coolify has this

crystal wigeon
#

Has anyone used godot here?

past field
#

my game was stolen 🥲

pearl trail
#

I feel sorry for your lost

wheat mesa
earnest phoenix
crystal wigeon
#

On windows

#

I downloaded their example and it works

earnest phoenix
wheat mesa
#

Never used Godot rust before, sorry :c

crystal wigeon
#

I made a copy of the folder and changed project name and it doesn’t work

earnest phoenix
crystal wigeon
#

fr I’m thinking of just using cpp

wheat mesa
#

Just use C# or GDScript

#

They’re the best options for Godot

earnest phoenix
#

the official supported languages are gdscript and c#

#

not others

sage bobcat
#

One message removed from a suspended account.

crystal wigeon
sage bobcat
#

One message removed from a suspended account.

crystal wigeon
#

Well I wanted to learn game dev too so XD

wheat mesa
sage bobcat
#

One message removed from a suspended account.

#

One message removed from a suspended account.

#

One message removed from a suspended account.

crystal wigeon
earnest phoenix
crystal wigeon
earnest phoenix
#

its the language designed for godot

#

its the best language for godot

#

also so what if its not type safe

wheat mesa
crystal wigeon
#

gotcha,

#

i'll try cpp with godot, they have better support for cpp

#

i take that back, i will try c#

#

i just hate dot net for no reason kekcry

sage bobcat
#

One message removed from a suspended account.

sage bobcat
#

One message removed from a suspended account.

pearl trail
earnest phoenix
#

3am here

pearl trail
#

ooooo

frosty gale
#

@quartz kindle i was constructing some nodejs code and i wondered to myself

#

say you have 2 streams, stream.pipe lets you pipe the data from one stream directly to another stream

#

how much faster is it compared to doing something like:

stream1.pipe(stream2);

// vs

stream1.on("data", data => {
  stream2.write(data);
});
#

the thing i have to make i have to capture the data coming from stream1, log it somewhere and write the data to stream2

#

essentially, proxy the data coming from stream1 into stream2 while capturing the data for another purpose

#

so i wonder if its faster to use a combo of:

stream1.pipe(stream2);
stream1.on("data", data => {
  // do some extra processing with the intercepted data
});

// vs

stream1.on("data", data => {
  stream2.write(data);
  // do some extra processing with the intercepted data
});
pearl trail
frosty gale
#

i could do a benchmark but considering this is dealing with async stuff and i havent slept yet i wont be able to come up with a proper benchmark for this rn

#

but i would assume the pipe one too since the data would be piped natively instead of being done with slow javascript code in between

scenic kelp
#

it's C++ is it not

#

factorio has been in development since before rust was stable

#

oh i did not read far enoug hdown

#

i rescind my question mark

quartz kindle
#

for example, using the data event, if the data comes in faster than the writing goes out, the data will start filling up the write buffer

#

but with piping, if the write buffer fills up too fast, the reader would be throttled accordingly

#

if you want the best performance, using the readable event is better, it gives you even more manual control

solemn latch
#

👀 I cleaned up all my node_modules.
Went from 800,000 files to 110,000 files in my dev folder.
Ezpz

surreal sage
#

What's the 'best' way to handle responses in Discord.js?

#

I prefer not to use interaction.reply 6 different times where only the content is different each call

#

I just don't know what approach is best

wheat mesa
#

Just use a variable called “responseMessage” and set it there, then you only need to do interaction.reply once

sharp geyser
#

any subsequent ones would be editReply

sharp geyser
#

for a node project? nah

#

sounds normal

quartz kindle
#

mine has 2.9k files and most of that is dev deps like typescript/eslint/etc

sharp geyser
#

mhm sure

quartz kindle
neon leaf
quartz kindle
#

ah yes, the schreibgeschutzt files

sharp geyser
#

💀

quartz kindle
#

deutsch ist ein kvaliteten sprahe (?)

neon leaf
#

???????????????

quartz kindle
#

quality language

#

xD

neon leaf
#

deutsch ist eine qualitative sprache

quartz kindle
#

close enough

#

:^)

#

im the only one on my family who doesnt speak fluent german

sage bobcat
#

One message removed from a suspended account.

#

One message removed from a suspended account.

quartz kindle
#

romaji pls

sage bobcat
#

One message removed from a suspended account.

quartz kindle
#

nanii

frosty gale
#

instead you can speak javascriptanese

quartz kindle
#

hai

#

ore wa javaskuriputo jin desu

neon leaf
#

so i finally figured out why my custom bundle program was bundling files from 3 months ago when the files on disk were clearly different

#

it checked for the first file ending in .blueprint

#

and there was a file called .blueprint

#

nothing else

#

just .blueprint

#

so it wasnt shown and was always used

#

smh

quartz kindle
#

always show hidden files

#

first thing i do on a fresh install

neon leaf
#

oh I have actually

#

but for some reason it still didnt show

#

could be because its on an smb share

lyric mountain
quartz kindle
#

sucuri

#

wait

#

would javasucuript be similar to python? (sucuri is basically the same as anaconda, one of many words for big ass snake in portuguese)

#

:^)

lyric mountain
#

jararacasucuript then

sharp geyser
#

Im not crazy

#

This is INSANELY overpriced right?

#

Those cpus are SHIT at multithreading performance

#

any cpu intensive tasks out the door

#

the ram won't even save it, and thats IF its even fast enough ram

neon leaf
#

yes its like 2.5x what you usually pay

sharp geyser
#

Okay, good I just wanted to make sure im not smoking

#

because a 5600x is fucking garbage for 250$

#

you could find smth much better for that price

earnest phoenix
#

that are getting sold

median moss
#

How can I use @mention as the bot's "prefix"? I've heard that doesn't require privileged message intent (discord.js)

earnest phoenix
#

not like a vps but an actual computer

sharp geyser
#

They are dedicated servers

earnest phoenix
#

bro 💀

#

mfs using literal computers as servers

#

and making it way too overpriced

#

who tf is this

sharp geyser
earnest phoenix
#

who would even buy there

#

dont tell me those prices are monthly

#

you can literally get the same hardware for that price bro 💀

sharp geyser
#

Apparently a lot of people

#

this one guy literally on their dick bro

#

White knighting the fuck outta them

quartz kindle
#

if the bot is mentioned, the message will have a .content property

#

if the bot is not mentioned (and you dont have the intent), then the .content will be empty

compact pier
#

What is this operator called in javascript?

{
  ...object
}
#

I can't find a way to google it

compact pier
#

Thank you

median moss
median moss
#

Perfect

#

Thanks a lot

quartz kindle
#

btw, im not sure if that is still a thing, but discord used to have both <@id and <@!id

#

no idea if that still exists

sharp geyser
#

one was for roles the other mentions of a user

quartz kindle
#

i've never seen a concrete explanation, but i think it was related to the mobile app

#

no, both were for the same user

sharp geyser
#

or wait

#

that was <@& for roles right

quartz kindle
#

ah i remembered, one was for when the user had a nickname set in the server

sharp geyser
#

Discord has a lot of formatting stuff

median moss
#

So if I use just <@id> it should work then?

sharp geyser
#

Should work fine

median moss
#

Alright

#

Cheers brothers 🙏

sharp geyser
#

<@ and <@! users
<@& roles iirc

#

I know roles had its own special one

quartz kindle
#

it seems the exclamation thing is deprecated, so yeah discord should not be sending that ever again

earnest phoenix
#

mfs mad about his lost money

sharp geyser
#

To each their own

#

I wouldn't pay that much for a dedi

earnest phoenix
#

is it monthly

sharp geyser
#

I know someone thats offering better parts, roughly same amount of ram for cheaper price

sharp geyser
earnest phoenix
#

bro

#

you can literally build the same spec pc

#

for the same price

#

like why tf would you even buy a dedi at that point

#

if its a home pc

#

anyways

#

dont you love it when

sharp geyser
#

Wtf is that

earnest phoenix
#

vercel analytics

sharp geyser
earnest phoenix
#

russians invaded my site

quartz kindle
earnest phoenix
#

i wanna use an open source alternative to vercel analytics but i need a domain for HTTPS

earnest phoenix
#

way cheaper & better

quartz kindle
#

most likely yeah, but for some stuff you might prefer having an entire machine for yourself

earnest phoenix
#

well not a 3rd gen desktop ryzen cpu

quartz kindle
#

yeah not that

#

unless its dirt cheap

earnest phoenix
#

seems like yt is now blocked in russia but my project cant really fix that lol

quartz kindle
neon leaf
#

o

#

ok nvm

#

im sleep deprived

quartz kindle
sharp geyser
#

Yea

#

Like

#

a 7401P is better than that shit

#

I mean if you are running a rust server or any game that requires good single core performance then yes a 5600x is good

earnest phoenix
#

damn the most bandwith consuming thing on my site is a literal json file that the tv requests for some funny ui thing 💀

sharp geyser
#

but a rust server quite honestly unless you are managing hundreds of players

#

you dont need a dedi

#

a vps is fine

quartz kindle
#

this hetzner auction thing is pretty cool

#

you could buy a nice machine for a good price there and make your own vps hosting business

sharp geyser
#

tbh

#

if I need an EU server, probably would go through hetzner

#

sucks that they dont have any good us servers and that i'd have to buy from multiple sources

#

but shrug

#

EU just have better prices for their servers

sharp geyser
#

thats what bun does *

quartz kindle
spark flint
#

i run a few vps servers from a mini pc in my room

quartz kindle
#

all those small hosts and pterodactyl panels and "bot" hosting, they all do that

sharp geyser
#

yk

#

As many times as I have setup pterodactyl

#

I am sure I can do so professionally now

#

💀

spark flint
#

its horrible and clunky

sharp geyser
#

Oh trust me, fucking hate it

quartz kindle
#

its a very lucrative business, but you need to hold it for a while with your own money until you get enough clients to cover the costs

sharp geyser
#

pterodactyl is the worst fucking thing to exist

#

I've had to set it up 2 times and both times were a pain in the ass

#

Its really not rocket science, anyone can do it. Its just a pain when the person you are setting it up for is as slow as paint drying

neon leaf
#

I am the one who sells addons to summerhosts KEKW

sharp geyser
#

right

#

I mean to use

#

its the worst fucking thing to use

neon leaf
#

yeah its amazing for gameservers

#

just nothing else

sharp geyser
#

I mean its cool for having an interactive panel between multiple servers

#

but mfs out here set it up on the server that the node also exists on

#

No real point anymore

lyric mountain
#

tools are born innocent, the society corrupts them (by using for a completely unrelated task)

sharp geyser
#

yea nah

#

pterodactyl as a product is fine

#

how people use it is fucking stupid and the worst thing to use

lyric mountain
#

it's like noodles, they're completely fine

#

but people use them to fuckin repair walls

sharp geyser
#

Oh god

#

Subscribe to our YouTube channel for free here: https://sc.mp/subscribe-youtube

A man was filmed using instant noodles to fix a broken porcelain sink, and more, in eastern China’s Shandong province. But does this method of repair actually work?

Follow us on:
Website: https://scmp.com
Facebook: https://facebook.com/scmp
Twitter: https://twit...

▶ Play video
#

I cant imagine any of this is safe to use / eat off of

carmine chasm
#

this made me sick

#

I imagined many things

#

haha

quartz kindle
#

holy shit dedi prices in brazil are insane

#

150 usd per month for intel E3 and 32gb ram

rose warren
#

Hetzner ❤️

sharp geyser
rose warren
#

I have 128gb ram and an intel i9 for €52 including tax

#

And nvme ssd storage

sharp geyser
#

From who

eternal osprey
rose warren
sharp geyser
#

Makes sense

quartz kindle
#

this lookos pretty good for cheap vps

eternal osprey
#

research and development? ❌
Starting a war with pricing? ✅

rose warren
#

I also have a free 100GB backup storage bucket in Finland

sharp geyser
rose warren
#

As part of my Hetzner plan

eternal osprey
#

but is it one of those restricted vps's where you can't even download canvas

quartz kindle
sharp geyser
#

I want to setup my own video distribution thing, but I cant even tell where to begin

eternal osprey
#

ughh guhh sparkedhost, heroku

neon leaf
#

especially the 12 months part

quartz kindle
eternal osprey
#

i pay 8$ a month for 4gb ram, 30gb of disk, 4 cores

neon leaf
quartz kindle
#

except ARM

neon leaf
rose warren
#

Check out pulseheberg too Tim

eternal osprey
#

ddr3 💀

quartz kindle
#

less than $3 thewn

#

:^)

#

how much is 2 GBP in usd?

sharp geyser
eternal osprey
#

ig like 2.40?

quartz kindle
#

2.55

eternal osprey
#

close

neon leaf
sharp geyser
#

I know a lot of servers use it

quartz kindle
#

its cheaper than galaxygate with double the cores

sharp geyser
quartz kindle
#

why do i still pay for galaxygate even, gonna cancel that shit

sharp geyser
eternal osprey
#

yeah true, idk i might need to switch away from galaxygate

sharp geyser
#

no way shits that cheap

eternal osprey
#

twinningg

neon leaf
#

german hosting has always been this cheap

eternal osprey
#

me personanly, i live next to germany so thanks for the links

sharp geyser
quartz kindle
sharp geyser
#

datalix is also insanely good

spark flint
eternal osprey
#

no way

spark flint
#

can confirm

neon leaf
eternal osprey
#

this shit is fucking cheap

rose warren
eternal osprey
#

bye bye galaxygate

#

hello datalix

sharp geyser
#

tbh, if you have a cdn a eu server means nothing

#

unless you are hosting smth that cant use a cdn

#

then it starts to matter

eternal osprey
#

i just have like 15 processes running on the galaxygate vps you know

rose warren
eternal osprey
#

so i don't want to gothrough the pain of getting all the processes started up again on the other vps

neon leaf
#

you know the best thing about datalix is you can just dm the owner and get support in like 2min

#

or do a website ticket and get support in like 5min

#

well downside being the owner is not very excellent at english

eternal osprey
#

this is a vps right lol

neon leaf
sharp geyser
#

@quartz kindle btw no idea where they get those benchmarks for

#

but they seem inaccurate

eternal osprey
#

fuck i need to download all the folders and upload it again

sharp geyser
#

Seems like they get them from Geekbench, but even geekbench reports a different score than what they display

rose warren
quartz kindle
neon leaf
quartz kindle
sharp geyser
#

otherwise you are doing smth wrong

#

Their site reports 36k, another site reports 17k, and another reports 11k

eternal osprey
#

i gotta wait till 7 september, then i will transfer my shit and buy a new vps from datalix.
Are you sure that vps allows to open multiple network ports for smtp servers, api's etc

neon leaf
#

yes

#

i use them

sharp geyser
#

It also depends on what they were doing to benchmark them

neon leaf
#

have been for 1.5years

sharp geyser
neon leaf
#

and a subreseller ui lol

sharp geyser
#

yea lol

#

W host tbh

neon leaf
#

I mean thats how he can afford to have only one other staff

sharp geyser
#

If I ever run a german rust server, def using datalix as my provider

neon leaf
#

just make all the resellers do the work

sharp geyser
#

ong

#

At that point, your customers are a mix of people
A. Actually using your servers
B. People actually using them, but offloading the resources to other people

#

Very neat selling model

#

either way you make money

#

On a different note

#

can someone tell me what the point is of making multiple webviews/windows in a desktop application

#

I notice electron & tauri have the option to define window & create them at runtime as needed

#

Whats the practical use

frosty gale
#

first thing i see is datalix has a limit on bandwidth per month

#

that capacity can be exhausted quickly by accident or through malicious means

#

galaxygate doesnt as far as i know

neon leaf
#

and you can reset it if you do a mistake

frosty gale
#

but the additional ddos protection they provide does look nice

quartz kindle
#

hetzner also isnt unlimited afaik

neon leaf
#

well its fairuse 50tb afaik

quartz kindle
#

also, "unlimited" doesnt really exist, everyone has a "fair use" clause in their terms and can terminate you if you exceed some arbitrary volume

frosty gale
#

im more or less fine with that as long as the fair use policy accepts reasonable use

#

if you consistently use tbs per month then that might be an issue

#

i am taking a look at galaxygates tos because im curious though

#

otherwise they cant really enforce fair use clauses in good faith

#

would be tricky to prove your use wasnt fair use

#

only thing i can really see is this catch all clause at the bottom

#

if you use so much network that it disrupts the infrastructure there could be problems

neon leaf
#

that cpu thing is horrible tf

quartz kindle
#

just logged into my galaxygate for the first time in a while

#

abandoned stuff still running lmao

#

my galaxygate bandwidth usage lmao

frosty gale
#

i see a pattern

#

looks awfully like a sine wave

#

i think im onto something here

quartz kindle
proven lantern
#

i need to get my costs down

#

i shouldn't waste money on secrets manager

frosty gale
#

secrets manager is the most important resource on this list

sage bobcat
#

One message removed from a suspended account.

real rose
#

secrets manager

sage bobcat
#

One message removed from a suspended account.

real rose
#

potentially

#

manages your secrets

proven lantern
#

I could put my secrets in dynamodb

frosty gale
#

dont come crying back to amazon after your secrets get leaked because of not using secrets manager

proven lantern
#

i dont think aws has anyone for me to cry to

sharp geyser
#

Cause the ydont give any fucks

sage bobcat
green kestrel
slender wagon
#

Or is it static

#

I had to move to aws secret manager refently

#

Since github only lets u store 100 secrets

eternal osprey
#

Uncaught Error Error: getaddrinfo ENOTFOUND discord.com

this just occured

#

out of nowhere

#

what the fuck can i do to fix it

slender wagon
earnest phoenix
#

dns flush?

eternal osprey
#

i did

#

but i can't run my discord bots all of a sudden

#
Started refreshing 0 application (/) commands.
Error: getaddrinfo ENOTFOUND discord.com
    at GetAddrInfoReqWrap.onlookupall [as oncomplete] (node:dns:120:26) {
  errno: -3008,
  code: 'ENOTFOUND',
  syscall: 'getaddrinfo',
  hostname: 'discord.com'
}
node:internal/process/promises:391
    triggerUncaughtException(err, true /* fromPromise */);
    ^

Error: getaddrinfo ENOTFOUND discord.com
    at GetAddrInfoReqWrap.onlookupall [as oncomplete] (node:dns:120:26) {
  errno: -3008,
  code: 'ENOTFOUND',
  syscall: 'getaddrinfo',
  hostname: 'discord.com'
}

Node.js v20.15.0
(base) apple@MacBook-Air newListing kopie % ```
#

it doesn't want to work all of a sudden

pearl trail
#

based

eternal osprey
#

i am serious this is a big fucking problem

#

it's just on vsc

#

i can do node . on terminal though

pearl trail
#

it sounds stupid but you sure it's your local terminal?

eternal osprey
#

(base) apple@MacBook-Air ~ %

#

yeah

pearl trail
#

what is this newListing kopie

eternal osprey
#

it's a folder

pearl trail
eternal osprey
#

works

#

i will delete vsc and reset all settings ig

quartz kindle
frosty gale
#

dns usage skill issue

north turtle
#

Hello, I am using my personal workstation as a server and the server OS is Ubuntu 22.04 LTS.
But just now, all ports suddenly became unreachable.
The error message was "connection refused".
Since the ssh port (22) and web port (80, 443) are all causing errors, I assume all ports are blocked.
However, the bot works normally. I wonder what is happening to my server. help
(sry for poor eng)

lyric mountain
#

happens if you clear ufw settings and forget to ufw allow ssh

#

if you're still connected, dont logout

#

do ufw status

north turtle
#

but I didn't clear the settings and ufw is inactive

lyric mountain
#

hm

#

are you sure?

north turtle
#

yes

lyric mountain
#

where are you trying to connect from?

north turtle
#

I'm trying to connect to the server via ssh from a different location.

#

I can't control anything.. includes mouse and keyboard

lyric mountain
#

mouse?

#

are u using some sort of remote desktop?

north turtle
#

ah sorry except the mouse

#

terminal

#

And of course, i will go and fix the server asap but
I'm worried that my server has been hacked.

lyric mountain
#

hm, are you trying with your public ip?

north turtle
#

yes, port forwarding and public ip

lyric mountain
#

well, there's a log of connections to your pc if you ever need to see if anyone else accessed it, there's not much reason for port 22 not work

#

only ufw would make sense

north turtle
#

hmm.. Is it possible that someone has ssh access and has ufw enabled?

lyric mountain
#

maybe, it all depends on how easy your pc password is

#

and if u have root access enabled

north turtle
#

I regret not adding eval or exec to the bot commands for this moments
I only use root account for my server.. I think this was reason.
Anyway.. i will take care of it asap. thanks

lyric mountain
#

always disable root asap, make an account for you

north turtle
#

okay

north turtle
lyric mountain
#

yikes

#

do a clean reinstall to make sure you dont have any parasites on it

north turtle
#

yes i will

lyric mountain
#

better limit potential damage

north turtle
#

uhh I want to do so but i can't because
no ssh, no keyboard, no rdp...

lyric mountain
#

you dont have physical access to it?

north turtle
#

yes..

lyric mountain
#

how did u get that ufw image

north turtle
#

nmap from windows pc

lyric mountain
#

ah, right

lyric mountain
#

if it's a vps you can use the backdoor to access it

north turtle
#

I don't have physical thing

lyric mountain
#

all providers have one for when you lock yourself out

lyric mountain
north turtle
#

At my home, self-hosting

lyric mountain
#

...so you do have physical access to it

#

just unplug from energy

north turtle
#

I have two houses and I forgot to tell that I'm in another house

low orbit
#
// tailwind.config.ts
keyframes: {
  "loading-pin": {
    "0%, 40%, 100%": { height: "0.5em", "background-color": "#282336" },
    "20%": { height: "1em", "background-color": "white" },
  },
  swing: {
    '0%, 100%': { transform: 'translateY(0)' },
    '50%': { transform: 'translateY(-100px)' },
  }
},```
Can anyone explain to me as to why 'loading-pin' is being compiled but 'swing' isn't
north turtle
#

sorry

lyric mountain
#

ah, nvm then

lyric mountain
#

they're not strings, they're operations

#

also from the %

#

oh wait that's not css, that's tailwind

#

nvm then

low orbit
#

yup

#

i mean I can put it in my global.css as css but im unsure why it's not working by utilising the extend object of the tailwind config

lyric mountain
#

if you go to the file where swing is declared it'll tell you the issue

#

in the browser I mean

timber hatch
#

i'm making an emoji index site and was wondering what would be the best way of tracking impressions to UGC web pages in a mongo db while tracking time of impression to allow for sorting within a date range.

the use case is wanting to be able to display analytics to emoji publishers within a timeframe.

obviously i could have an impressions array on the document and then push timestamps to that array but was wondering if there's better ways? of even ways of doing it externally using a micro service?

quartz kindle
#

i think mongo itself also has a special time-series collection you can try using

eternal osprey
#

i have a problem, i continously get the addr not found when running a discord bot, but in terminal i can without any problems.

#

while i am running vsc, it opens this node exec as well for some reason

#

might that be the problem?

lyric mountain
#

what is it running in it?

eternal osprey
#

nothing

#

it says not responding

lyric mountain
#

nothing in the command history?

#

or window name

eternal osprey
#

i can't open it

#

should i delete node completely?

#

and then reinstall it

lyric mountain
#

maybe, worth a try

#

make sure to remove everything related to it

#

cache usually is left behind

eternal osprey
#

as soon as i run something on vsc it is unable to connect to discord and also has this node exec popping up

#

it happened when i was running puppeteer and i got a popup asking if google chrome could open something crazy

#

so i said no

#

since then i am fucked

sharp geyser
#

I checked out lunarvim

#

Looks kewl

sharp geyser
#

You have to approve it doing such actions

#

Its a "security" concern

eternal osprey
#

nah deadass look

#

my vsc has no internet

sharp geyser
#

Right

#

Did you trust vsc?

eternal osprey
#

yeah

sharp geyser
#

Apple will literally block it from doing ANYTHING if its not trusted

eternal osprey
#

oh ym days

#

there it goes again

#

it keeps on jumping and jumping

sharp geyser
#

Buy a mac, get mac problems

quartz kindle
#

:^)

eternal osprey
#

okay i understand

#

i might be behind a proxy by accident

#

as i used puppeteer.authenticate while i was running on my own ip and port..

#

how the fuck would i disable that then>

#

it was a mac security notification

#

anyone that knows how to fix that lol

sharp geyser
#

you cant

#

Its built into mac

#

They quite literally wont let you disable any security features like that afaik

#

If you wanted something insecure you should of gone windows

lyric mountain
#

honestly most things are equally stupid to disable on windows as win update will revert them everytime

#

just go straight to linux mmLol

eternal osprey
#

bro what can i do then lol

#

nothing?

sharp geyser
#

pretty much

eternal osprey
#

Like switch code editors?

#

brev

sharp geyser
#

Buddy, that wouldnt matter

#

Its an apple thing, not your code editor

eternal osprey
#

it's only secpific for vsc

#

i can run the discord bot in my terminal using node .

#

just vsc has no internet connection

lyric mountain
#

install a linux vm and code from there

sharp geyser
#

running it in the terminal, apple expects you to know what you are doing

#

Its more lax

#

running stuff inside an application on the other hand is not so lax

#

Applications can be ran on launch

eternal osprey
#

that's so strange

#

it was working so well until i clicked fucking no

#

strange thing is, i used: tccutil reset All com.microsoft.VSCode

#

this should reset all the permission settings for VSCode and it still doesn't work

digital swan
#

if you didnt give it permission on a popup thing im sure therell be a setting somewhere to allow it

#

maybe try going settings -> network and temporarily disabling firewall and see if it works

frosty gale
eternal osprey
#

that worked

#

but i don't want to disable firewall lmao

digital swan
#

oh thats awesome then

#

you can just add it

eternal osprey
#

this is what i had disabled

#

i was sketched out like tf is Testing Helper.app

sharp geyser
#

Its an apple thing

#

Part of the testflight stuff afaik

eternal osprey
#

owh really

#

you sure before i am fucking my pc

sharp geyser
#

I can check again

eternal osprey
#

yes please

#

i instead just allowed vsc

#

and it worked

#

i directly deleted google chrome as well lmao

#

oh my days

#

it works

sharp geyser
#

It seems to be part of google chrome's testing suite

eternal osprey
#

listen max let me kiss you bro @digital swan

digital swan
#

LOL

#

😗

eternal osprey
#

aaron and kuu aswell

#

arigatoo

sharp geyser
#

Remember: Mac = wont let you do shit unless you let me

#

It wont even allow you to run some apps you download because it will think its malware

#

you will have to go to the "Security" tab in the system preferences to allow it and let it bypass the filter

digital swan
#

i think i actually preferred system preferences to the new iphone like settings app

#

it seemed to work better

sharp geyser
#

I think mac as it is, generally is fine

#

but there are some questionable choices imo

#

Developing anything dealing with networks on mac is painful

#

You have to use self signed certs for literally everything

eternal osprey
#

annoying as hell but better safe than sorry

sharp geyser
#

Want to send an email using your own mail server? Need a cert for that

#

Want to connect to any external api ? Cert

eternal osprey
#

i couldn't run it at all as my switch for some reason didn't get on the net of my pc

sharp geyser
#

Anything that deals with an end-to-end connection apple wants you to have a cert for it, which is understandable

#

but im developing stuff locally buddy please stop

eternal osprey
#

apple goated for that though

#

i used to have 9 million bazillion viruses on windows ngl

sharp geyser
#

I would assume if im developing something I am smart enough not to do it wrong and connect to the wrong server

eternal osprey
#

how do i scan my mac for viruses?

digital swan
#

i think malwarebytes has one

vivid fulcrum
sharp geyser
#

I mean

#

I have a mac

#

might as well build for it

#

It wont be signed because im not paying 100$ a year

#

but still I at least have support

limber ravine
#

Protection bots

earnest phoenix
#

Yes

#

nerd

sharp geyser
#

Fuck u

earnest phoenix
#

no thank you

sharp geyser
#

@harsh nova can we ban this loser from the chat

#

he never contributes

earnest phoenix
#

no

#

and

sharp geyser
#

in fact he impedes help

earnest phoenix
#

youre currently yapping

sharp geyser
#

thats mean

deft wolf
frosty gale
#

just use websockets? if your desktop server is going to be js then might as well (assuming)

#

for your use case it doesnt make much sense to use anything else

sharp geyser
#

I figured

#

but Im not exactly sure how I can have control over the server itself

#

like not the server as in the vps / dedi

#

but the game server

#

Especially if its locked behind a pterodactyl panel aka dockerized

earnest phoenix
sage bobcat
rare merlin
#

what the best way to track impressions / clicks on a fairly popular website?
i have a serverless nextjs app which currently makes api requests to my bot running an express server whenever it needs data from the db or discord.
making potentially more than 1 request every second to my api seems highly unefficient and im wondering if theres a better solution. (im trying to gather analytics for communities so they can see their forum page analytics )

past field
#

is there a way to set up a button on an embed to allow people to upload attachments from their photo galleries in their phone?

quartz kindle
rare merlin
# quartz kindle cant you use dedicated analytcs tools like cloudflare analytics or google analyt...

i haven't look into them but i presume they'd have strict limitations and definitely paywalls behind them
i was just wondering if would be better for me to handle impressions myself, if so, should I use my discord bot api or should i setup an entirely separate api to handle impressions or if resulting to a dedicated analytics tool would be my best shot? i ideally don't want an analytics tool which requires cookie consent and i want to be able to retrieve analytics for forum owners, i suppose like top.gg's way of handling impressions for auctions

neon leaf
#

you could selfhost plausible

quartz kindle
rare merlin
neon leaf
#

use the selfhosted version

#

its open source and obv without limits

rare merlin
#

ill definitely look into this, do you think it would be resource intensive?

neon leaf
#

its not

#

it uses like 1% cpu on spikes

quartz kindle
#

assuming they are backed by a time-series database/storage plus eventual consistency

#

should be very effeicient

past field
#

i’m working on a “smash or pass” game lol

#

oh by the way tim you’ll be proud of me!

rare merlin
neon leaf
#

yeah thats the default behaviour

#

only the admin can create accounts

rare merlin
#

oh cool, thanks a lot!

quartz kindle
earnest phoenix
earnest phoenix
frosty gale
deft wolf
#

I didn't know that they still send these messages about the bot being on 75 servers after these changes with verification

earnest phoenix
#

prob to notify

bitter granite
#

And never delated/remove it

surreal sage
pearl trail
#

yes

surreal sage
#

it doesnt want to exist 💔

neon leaf
earnest phoenix
radiant kraken
#

no u

#

analytics is a nerd thing

pearl trail
#

nerd

earnest phoenix
pearl trail
#

even yt agrees

pearl trail
#

ok doing Set-ExecutionPolicy RemoteSigned -Scope CurrentUser fixed it

lyric mountain
#

powershell and its dumb policies