#development
1 messages · Page 247 of 1
your punchline shit asf
while(true){}
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
sure
:^)
you forgot the >> /mnt/public/update

o7
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?
pretty much
you dont need ssl
its the same as opening a local html file with the browser
hm
then how does it securely talk to external apis
Like how does discord function "securely"
Good that you added quotes :)
you dont need ssl on the client side to request pages via https
your computer already has all the certificates it needs for a client
electron is basically Google chrome but can only open specified page
you can do fetch just like in browser
yeah its dumb to bundle a whole browser for a desktop app
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
💀
im very interested in tauri, never tried it, but will probably give it a try when their android/ios support is better
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
how different is tauri from electron?
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
oh damn
any expensive calculations or calls you want to do, do it in rust and your frontend can just "invoke" it
Can you use anything besides js/ts?
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
but we can't use it directly? idk maybe it can by using the .node or what file is it I forgor
I think so but its not ready to use
as tauri is
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
💀
wtf
Damn my small business that makes 49 million a year

yup
I see
this looks like shit ngl
Cool in concept
but like anyone offering a pro license for 3k usd
Wouldn't bother using it
Tauri is free no matter what
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
that'd be virtually impossible to begin with
and even if it was the case
its not worth 3000
I tried Tauri and i hated it
why
tried running the app and it said "error unable to access 127.0.0.1"
not a tauri issue
i was like fuck it and rewrote everything in C++ with raw windows API and directx

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

you don't use html css, do you?
on the app
no lmfao
i had to write my own multithreaded renderer
ah yeah that's the thing lmao
Tauri > *
you only say that because of the amount of time you put into it
well yea lmfao
I bet you, if you had to you wouldn't do it over again
time goes fast when you code in C++
yea because by the end of it you've suffered so much you dont notice time passing
😭
Me: 5am
Me: Holy fuck how is it 12pm already
what encoder you'll use for the screen recorder?
hello
encoders builtin to windows
the progress is super slow in ultralight, current state is messy. tbf I think it's a solo dev so it makes sense
hm
even as a solo dev, expecting 3000 for a thing thats not even well developed
is absurd
does it depend on the "graphics settings"? 
nope
to market it off as ready to use for a small business is crazy
it just requires windows 10 1803 or 19-something or newer
which im sure most people nowadays have
yeah uh I mean
i think it's aimed more at enterprise. i remember taking a glimpse in the UL discord and there being talk about a big game company using ultralight
ew no
like, software x264, nvenc, or wat
Right, but the thing is, as tim has pointed out it has no basic functionality a desktop app would require
Already releasing a license for it is absurd
well as long as it works then ig... sure
im not that big into obs lmao i just copy code cuz im dumb
it's actually not only on obs, afaik
Also, electron imo is still a better option even for entirprises
while electron bogs down memory, its still better in hingsight due to it being battle tested and having a large community behind it
nah
millions (ig) of people use discord with electron, so ig no one cares about memory thingy
not really
Not just discord
spotify uses electron
im copying other people's screen recorder and changing the code a bit lol

im not that smart
ic
ah yeah that app, true
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
pro
nah ez
dont ask me why I wanted to but now i am
what does it do?
Rcon stuff
I found rcon in Minecraft server
Allows you to communicate to a server that supports rcon remotely
ooooo
Meaning you dont have to physically be in the server
fancy
My client only supports rust rn, but I plan on supporting other games eventually
also @pearl trail why are u still awake smh
go to sleep u have uni tmr
wait not tmr
in a few hours
idk maann I'm too nervous
samee
both of you need to sleep wtf
its only... 2am
also my water gallon made a noise suddenly 💀
only is crazy
water gallon jumpscare
yeah I can't sleep now 💀 I need to wake in 4 hours
I can't 😭😭😭
omw finding tutorials
lets gamble try merging?
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
wild that this still flagged
yeah dik why it is falgged tbf it's a normal word
ppl need to grow some fucking backbone
what the actual fuck
that ain't it chief 😭
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
freaky
yes
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
what is this for
a minecraft version api
you would if you are getting paid
(I am)
@lyric mountain do you have a way to sponsor you using paypal btw
wdym?
like, u can receive payments via paypal yeah, but it doesnt have tiers like patreon
I mean do you have a platform like kofi where i can pay on
I got banned off of patreon twice 💀
only ones I know are kofi and chargebee
how?
they suspected me of suspicious activity
are you on any of those
oh wait you mean ME literally?
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
remember to MATERIALIZED VIEW any slow query that's not required to be realtime
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
so its basically a cache?
Bot sending message does not working?
kinda, but permanent
I mean, probably permanent I never tried restarting postgres to see if it persists
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
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
sir, dont forget im using sqlite
ah, I forgor
.,.
but well there's this https://sqlite.org/lang_with.html#materialization_hints
tho it only works for current connection apparently
well yeah that wont help on serverless then
still shocked that this is like <100ms on all of these scuffed endpoints https://github.com/mcjars/versions-worker/blob/770434c33c0415ac6a35b062ffc5e10196f87c86/src/api/v2/requests.ts#L164
what's that for btw? are u making a launcher of some sort?
ah
how do i do this
look at your tsconfig
...what
okay nvm i created one
earlier but i didn't see it
but how do i use it? Is it done automatically?
h
how does your tsconfig look like?
is there a better way to do configs like this?
currently hardcoded into source
something more open source friendly
you could put them in the db
note: using dockerfile
you could make a roles.json
if you want to release it for public use, a json config file would be the simplest way
json config in root dir?
yeah
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
glad coolify has this
Has anyone used godot here?
my game was stolen 🥲
I feel sorry for your lost
A few times
how can a game be stolen
For some odd reason I can’t get godot-rust to hotreload
On windows
I downloaded their example and it works
arent you supposed to be sleeping
Never used Godot rust before, sorry :c
I made a copy of the folder and changed project name and it doesn’t work
why rust on everything
fr I’m thinking of just using cpp
One message removed from a suspended account.
Cause I’m learning rust and wanted to build something so I thought best to build a game
One message removed from a suspended account.
Well I wanted to learn game dev too so XD
Use bevy if you want a rust engine
One message removed from a suspended account.
One message removed from a suspended account.
One message removed from a suspended account.
Hmm
then make a game just by using rust and not a game engine
For some reason I don’t like c# and gdscript isn’t type safe so I don’t wanna use it
its the language designed for godot
its the best language for godot
also so what if its not type safe
Rust with Godot will be a struggle. Use bevy if you insist on an engine, or even better you can craft your own engine and just steal bevy’s ECS
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 
One message removed from a suspended account.
One message removed from a suspended account.
One message removed from a suspended account.
nah I'm in uni rn
ooooo
Or anything bevy really
@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
});
i'd guess the pipe one. wait tim for the real ans
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
yeah that's what i think
?
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
i never tested this, but from what i understand, piping will handle backpressure for you, the data event doesnt
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
👀 I cleaned up all my node_modules.
Went from 800,000 files to 110,000 files in my dev folder.
Ezpz
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
Just use a variable called “responseMessage” and set it there, then you only need to do interaction.reply once
any subsequent ones would be editReply
still way too much xDD
mine has 2.9k files and most of that is dev deps like typescript/eslint/etc
mhm sure
ah yes, the schreibgeschutzt files
💀
deutsch ist ein kvaliteten sprahe (?)
???????????????
deutsch ist eine qualitative sprache
One message removed from a suspended account.
One message removed from a suspended account.
romaji pls
One message removed from a suspended account.
nanii
instead you can speak javascriptanese
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
oh I have actually
but for some reason it still didnt show
could be because its on an smb share
javasucuripto
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)
:^)
jararacasucuript then
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
yes its like 2.5x what you usually pay
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
How can I use @mention as the bot's "prefix"? I've heard that doesn't require privileged message intent (discord.js)
not like a vps but an actual computer
They are dedicated servers
bro 💀
mfs using literal computers as servers
and making it way too overpriced
who tf is this
Experience fast, reliable, and secure hosting with Tempest. Choose from a range of dedicated servers and game servers such as Rust, CSGO, Gmod, and more! 24/7 support available.
who would even buy there
dont tell me those prices are monthly
you can literally get the same hardware for that price bro 💀
Apparently a lot of people
this one guy literally on their dick bro

White knighting the fuck outta them
same way as always
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
What is this operator called in javascript?
{
...object
}
I can't find a way to google it
spread operator
Thank you
So I can basically do message.content.startsWith("<@botid") and it should work?
yes
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
What is the difference?
one was for roles the other mentions of a user
i've never seen a concrete explanation, but i think it was related to the mobile app
no, both were for the same user
ah i remembered, one was for when the user had a nickname set in the server
Discord has a lot of formatting stuff
So if I use just <@id> it should work then?
Should work fine
it seems the exclamation thing is deprecated, so yeah discord should not be sending that ever again
is it monthly
I know someone thats offering better parts, roughly same amount of ram for cheaper price
yuh
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
Wtf is that
vercel analytics

russians invaded my site
you buy those for the network, unless you have 1gbps fiber at home
i wanna use an open source alternative to vercel analytics but i need a domain for HTTPS
well at that point get a VPS
way cheaper & better
most likely yeah, but for some stuff you might prefer having an entire machine for yourself
well not a 3rd gen desktop ryzen cpu
i mean it literally
seems like yt is now blocked in russia but my project cant really fix that lol
Bid on cheap servers using our server auctioning tool. Enter your desired specs, and when the moment is right, make your bargain, before somebody else does!

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
damn the most bandwith consuming thing on my site is a literal json file that the tv requests for some funny ui thing 💀
but a rust server quite honestly unless you are managing hundreds of players
you dont need a dedi
a vps is fine
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
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 
EU just have better prices for their servers
thats what people do :)
yeah
nah
i run a few vps servers from a mini pc in my room
all those small hosts and pterodactyl panels and "bot" hosting, they all do that
yk
As many times as I have setup pterodactyl
I am sure I can do so professionally now
💀
its horrible and clunky
Oh trust me, fucking hate it
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
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
not for me
I am the one who sells addons to summerhosts 
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
tools are born innocent, the society corrupts them (by using for a completely unrelated task)
yea nah
pterodactyl as a product is fine
how people use it is fucking stupid and the worst thing to use
it's like noodles, they're completely fine
but people use them to fuckin repair walls
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...
I cant imagine any of this is safe to use / eat off of
holy shit dedi prices in brazil are insane
150 usd per month for intel E3 and 32gb ram
Hetzner ❤️
Time to make the cheapest host in the US 
From who
i smell a business opportunity
Hetzner
Makes sense
this lookos pretty good for cheap vps
research and development? ❌
Starting a war with pricing? ✅
I also have a free 100GB backup storage bucket in Finland
Whos this
As part of my Hetzner plan
damn
but is it one of those restricted vps's where you can't even download canvas
I want to setup my own video distribution thing, but I cant even tell where to begin
ughh guhh sparkedhost, heroku
still pretty expensive
especially the 12 months part
i've never seen anyone offer 2 cpu cores for less than 5$
i pay 8$ a month for 4gb ram, 30gb of disk, 4 cores
Datalix offers a range of hosting solutions from shared hosting to dedicated servers.
except ARM
Check out pulseheberg too Tim
ddr3 💀
yeah i know that one
less than $3 thewn
:^)
how much is 2 GBP in usd?
ig like 2.40?
2.55
close
shitty anti ddos
I know a lot of servers use it
its cheaper than galaxygate with double the cores
https://tempest.net being one of em
Experience fast, reliable, and secure hosting with Tempest. Choose from a range of dedicated servers and game servers such as Rust, CSGO, Gmod, and more! 24/7 support available.
why do i still pay for galaxygate even, gonna cancel that shit
https://datalix.de makes me want to move to germany
Datalix bietet eine Reihe von Hosting-Lösungen von Shared Hosting bis hin zu dedizierten Servern.
yeah true, idk i might need to switch away from galaxygate
no way shits that cheap
twinningg
german hosting has always been this cheap
me personanly, i live next to germany so thanks for the links
yea and im jealous
holy shit they have benchmark scores
datalix is also insanely good
they ar egood
no way
can confirm
I mean thats why 60% of vps resellers in germany/eu resell datalix
this shit is fucking cheap
They're good. I used them for like 3 years until I outgrew their shared VPS plans and needed a dedi
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
i just have like 15 processes running on the galaxygate vps you know
How to uncompress bottum?
so i don't want to gothrough the pain of getting all the processes started up again on the other vps
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
this is a vps right lol
yes
@quartz kindle btw no idea where they get those benchmarks for
but they seem inaccurate
fuck i need to download all the folders and upload it again
Seems like they get them from Geekbench, but even geekbench reports a different score than what they display

Hetzner is still cheaper for dedis
benchmark scores depend on which benchmarking script you use, you cant compare scores created by two different scripts
yeah, impossible to beat hetzner in dedis
buy it and run a benchmark on it yourself
I mean fair enough, but they should not be that drastic
otherwise you are doing smth wrong
Their site reports 36k, another site reports 17k, and another reports 11k
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
It also depends on what they were doing to benchmark them
have been for 1.5years
Yea, and datalix even gives them a reseller ui
and a subreseller ui lol
I mean thats how he can afford to have only one other staff
If I ever run a german rust server, def using datalix as my provider
just make all the resellers do the work
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
you do need to take things holistically into account
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
you can reset bandwidth on attacks
and you can reset it if you do a mistake
but the additional ddos protection they provide does look nice
i dont see myself using 10tb in a month
hetzner also isnt unlimited afaik
well its fairuse 50tb afaik
also, "unlimited" doesnt really exist, everyone has a "fair use" clause in their terms and can terminate you if you exceed some arbitrary volume
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
that cpu thing is horrible tf
just logged into my galaxygate for the first time in a while
abandoned stuff still running lmao
my galaxygate bandwidth usage lmao
secrets manager is the most important resource on this list
One message removed from a suspended account.
secrets manager
One message removed from a suspended account.
I could put my secrets in dynamodb
dont come crying back to amazon after your secrets get leaked because of not using secrets manager
i dont think aws has anyone for me to cry to
Cause the ydont give any fucks
One message removed from a suspended account.
$fucks->setCount(0);

How much did they charge
Or is it static
I had to move to aws secret manager refently
Since github only lets u store 100 secrets
Uncaught Error Error: getaddrinfo ENOTFOUND discord.com
this just occured
out of nowhere
what the fuck can i do to fix it
Contact discord
dns flush?
i did
idk i can search discord.com fine
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
based
i am serious this is a big fucking problem
it's just on vsc
i can do node . on terminal though
it sounds stupid but you sure it's your local terminal?
what is this newListing kopie
it's a folder
try ping discord.com ?
paying 33/year on galaxygate, but im gonna cancel
dns usage skill issue
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)
you locked yourself out through ufw
happens if you clear ufw settings and forget to ufw allow ssh
if you're still connected, dont logout
do ufw status
but I didn't clear the settings and ufw is inactive
yes
where are you trying to connect from?
I'm trying to connect to the server via ssh from a different location.
I can't control anything.. includes mouse and keyboard
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.
hm, are you trying with your public ip?
yes, port forwarding and public ip
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
hmm.. Is it possible that someone has ssh access and has ufw enabled?
maybe, it all depends on how easy your pc password is
and if u have root access enabled
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
always disable root asap, make an account for you
okay
Hi I'm again and it was hacking. I'm going to fix my server tomorrow. tyvm
yes i will
btw, shut it down until you're ready to work on it
better limit potential damage
uhh I want to do so but i can't because
no ssh, no keyboard, no rdp...
you dont have physical access to it?
yes..
how did u get that ufw image
nmap from windows pc
ah, right
"yes I have" or "yes I don't"?
if it's a vps you can use the backdoor to access it
I don't have physical thing
all providers have one for when you lock yourself out
what provider is it?
At my home, self-hosting
I have two houses and I forgot to tell that I'm in another house
// 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
sorry
ah, nvm then
remove quotes from transforms
they're not strings, they're operations
also from the %
oh wait that's not css, that's tailwind
nvm then
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
if you go to the file where swing is declared it'll tell you the issue
in the browser I mean
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?
that sort of thing is better done with a time-series database
i think mongo itself also has a special time-series collection you can try using
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?
what is it running in it?
maybe, worth a try
make sure to remove everything related to it
cache usually is left behind
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
Right, so you are on macos, so you have to remember: Apple = annoying as fuck to do anything related to an external network
You have to approve it doing such actions
Its a "security" concern
yeah
Apple will literally block it from doing ANYTHING if its not trusted
Buy a mac, get mac problems
:^)
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
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
honestly most things are equally stupid to disable on windows as win update will revert them everytime
just go straight to linux 
pretty much
it's only secpific for vsc
i can run the discord bot in my terminal using node .
just vsc has no internet connection
install a linux vm and code from there
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
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
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
somehow i gave great effort not to lock myself out of SSH through UFW and explicitly whitelisted the SSH port but I STILL got locked out 🤦♂️
I can check again
yes please
i instead just allowed vsc
and it worked
i directly deleted google chrome as well lmao
oh my days
it works
It seems to be part of google chrome's testing suite
listen max let me kiss you bro @digital swan
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
i think i actually preferred system preferences to the new iphone like settings app
it seemed to work better
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
yeah i know that thingy though
annoying as hell but better safe than sorry
Want to send an email using your own mail server? Need a cert for that
Want to connect to any external api ? Cert
yeah i had to build a network of 2 switches and 8 devices for my end project
i couldn't run it at all as my switch for some reason didn't get on the net of my pc
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
apple goated for that though
i used to have 9 million bazillion viruses on windows ngl
I would assume if im developing something I am smart enough not to do it wrong and connect to the wrong server

how do i scan my mac for viruses?
i think malwarebytes has one
building and publishing apps for mac is such a pain in the ass, I completely dropped macOS support for all of my projects lol
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
Protection bots
Fuck u
no thank you
in fact he impedes help
youre currently yapping
thats mean
Least toxic conversation on #development 
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
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
man
One message removed from a suspended account.
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 )
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?
cant you use dedicated analytcs tools like cloudflare analytics or google analytics thing?
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
you could selfhost plausible
not sure you can do it with a button, but you can with a slash command
i was looking at plausible and saw it had a 600 req per hour limitation which drove me away from them, but i didn't know it was open source ?
use the selfhosted version
its open source and obv without limits
ill definitely look into this, do you think it would be resource intensive?
assuming they are backed by a time-series database/storage plus eventual consistency
should be very effeicient
ok i thought so
i’m working on a “smash or pass” game lol
oh by the way tim you’ll be proud of me!
is there an easy way to restrict this to only me being able to access / create an account on the selfhosted version or is this something i would have to implement myself?
oh cool, thanks a lot!
congrats
its pretty good btw, installed for my site yesterday and i like it lol
pro
nop
the rabbit hole only gets deeper from here
I didn't know that they still send these messages about the bot being on 75 servers after these changes with verification
prob to notify
Prob they just kept the code for that
And never delated/remove it
yes
it doesnt want to exist 💔
y
nerd
u
nerd
no
even yt agrees
powershell and its dumb policies
