#dev-general
1 messages Ā· Page 235 of 1
well I would be surprised if it didn't
yeah
ima try it now, and just hope it works
Sorry for that stupid question XD
im new to java still
ye it does efe
It works
What does this mean? if(currentItem != null && currentItem.getType() != Material.AIR) {
Hey i need help I made a scoreboard and a tablist. But each player only receives 1 of both, if 2 people are joined, one of the tablist and one of the sidebar (scoreboard) get
Thank you
how can i fix that?
I would put them in different classes
then in the different classes make a PlayerJoinEvent
They are in different classes
Then just register them in main
Just set it to give the player the scoreboard in the PlayerJoinEvent
then in your tablist make it give you your tablist
But then the player only has 1 scoreboard and there are 2
Sidebar and Tablist
Now im confused lol
why xD
idk whats going on now XD
xD
i would wait for someone else who has more experience to try help
Because im quite new to Java
too xD
What seems to be the issue
I have 2 scoreboards and the player only gets 1 of the 2
^
You can only have a single scoreboard active at a time
Please use a paste service to share configs, errors, code and long logs.
⢠HelpChat Paste
Paste it here, not in dms.
frosty i too have a question
Use same objectives & teams in the same scoreboard.
Paste Services
When asking for help with a config/menu/code issue please use one of these:
(However we do prefer if you used our paste :))
⢠HelpChat Paste - Usage
⢠Hastebin
meta#setLore
Thank you
Odenix
The home of Spigot a high performance, no lag customized CraftBukkit Minecraft server API, and BungeeCord, the cloud server proxy.
Thanks
Np
Thank you
Tysm
AOC day 10 part 2 has been running for a while now
recursion š¬
oh god i think it crashed
can i download a plugin src from github, edit it, and then compile it?
i am trying to make small edits
to a plugin
that is open source
probably?
my github codespace crashed ā¹ļø
i swear to god if i've lost the past hour of work
?????????????????
I did part 2 in linear time 
š¬
im pretty sure mine must be in factorial time or something
it's crashed twice now
i've heard a lot of people resolved this with ||memoisation||
assuming your general algorithm is correct
hmm
im not sure my current implementation can be memoised
it's basically ```
combinations(node) {
if children is empty
return leaf == maximum ? 1 : 0
return (reduce + (map combinations children))
}
which is the jankiest pseudocode i've ever seen but still
I have every combination in a Tree structure
Not public, no.
Oh ok...
Would you guys ever make it public, but just for educational purposes or to add features by yourself, as long as you don't publish as your own
Not for me to say. Maybe at some point in time but probably not anytime soon.
Ok, thank you
Yup! š
some people just cant open source ca they š¦
Cool profile animation by the way Glare
this policy also applies to Niall, who recently has not been following this policy. Based on this knowledge, Niall may be breaking the policy and actions could be taken upon this.
Oh how the tables turned
"Wow why don't you open source?" "Just open source it!"
Also them: "No. I am not open sourcing MY projects!"
when is kiteboard becoming open source
In progress
now!
OpenBoard
argh i cant figure it out for part 2 yet
i dont wanna brute force
this whole thing is literally a math problem
but i hate number theory
and solving modulo equations
I mean that's Clip, Glare's are all open source xD
^
I open source all my work because nothing I do is like
amazing code that that people really want to use
So i know
the algorithm is the || chinese remainder theorm || for part 2 of the aoc
however
my head hurts just trying to think of this
I'll have to look that up as well
brute force is not an option, I can tell you that much
I got it
I think i got it
saw a video about it
didnt type code yet
but i got the algorithm
i hate yall aoc problem creators
forcing me 30 minutes of my life to learn a theorm

well I don't mind maths all that much, I have to do a fuck ton now anyway
im doing advent of code to prepare for a different competition this week 
we can fail together
awesome
@prisma wave #showcase message will function similar to kotlins is expression?
@forest pecan
@obtuse gale
what is ffs
ok
Wedding?
yes conclure, wedding
he's on DND anyway
I mean dnd doesnāt work
yes it does
it doesn't sound the ping tho
it blocks the notifications
Discord is still noisy

lol

nitro
Smh my head
roflmaosmh
whats rofl stand for
roll on floor laughing
Ye
you are rolling on the floor laughing, also laughing your ass off, and at the same time shaking your head
wow
O.o
honestly it doesn't matter
only worry about what db type to use when you have a fuck ton of data
a fuck ton = millions of entries
Hmm okay, then letās say I have a ton of userdata, what would be most beneficial
I'm really not sure
As he said, it's different based on use-case.
I'm not an expert in databases, I can't answer your questions
This is somewhat a X Y question.
What does the user data pertain
Do you need it relational or not?
Uhm for the time being, let me come back later with a better question
@forest pecan how have u been
i hate yall
Why u died
Yes u

pulse you any good at dbs?
A relational database structures data into tables and rows, while MongoDB structures data into collections of JSON documents. JSON is a self-describing, human readable data format. Originally designed for lightweight exchanges between browser and server, it has become widely accepted for many types of applications.
@forest pecan
Not good at all of databases 
@frail glade hmm yeah I guess that makes it clear
I've literally only used mysql/mariadb
pulse pls
DmS
I've used a bit of redis and mysql really only
Idk maybe itās worth using mongo instead of mysql :0
it's probably not conclure
is it for a public plugin?
because most people don't have mongo available to them
Ah okay
Also is there an alternative to redis? Probably not needed but just out of curiosity
depends how you're using redis
lots of people in this community use it as a messaging service, but it's also a cache
if you're using it as a messaging service, then yeah, there's alternatives
rabbitmq I believe is one of them
if you're wanting a cache, a popular alternative is RAM
Lol
xD
yeah, as of now I use redis to cache data over different backend servers
It's actually crazy how little of ram some stuff uses as a cache.
is there any form of like
companion object val x = setOf()
or companion val x = setOf()
or do I just have to do
companion object{
val x = setOf()
}```

well fuck
I've encountered the point where I can no longer store things in memory
with 3 javadocs loaded (only types & methods), I'm using a whopping 6gb of memory
time to setup a db ig
I've encountered the point where I have more RAM than storage
Literally me ^
ez
just be like my networking teacher with his 110tb of "anime"
lol
there's a guy on spigot called strahan
he literally has a server rack just for "anime"
My networking teacher had to make a deal with the general manager of one of the ISPs to make his network uncapped
due to the TBs of bandwidth he uses per transfer
Ok ..
He's flexing
Anime is weird
what is a codec
mongo wants me to make a codec
i've never used mongo before i don't know what i'm doing
I've used MySQL maybe once or twice and now I'm doing a whole skyblock core where the islands are stored in sql and dynamically loaded
This is fun
6 hours in and I got the whole loading / unloading system done
Now another 600 hours to fix bugs
worst comes to worst i'll go to mysql
it's just mongo should be the perfect database for my needs
so I need to learn how to use it
Imma engrave "DB" into a mango and call it a day
TheĀ CodecĀ interface abstracts the processes of decoding a BSON value into a Java object using aĀ BsonReaderĀ and encoding a Java object into a BSON value using aĀ BsonWriter. The BSON value can be as simple as a boolean or as complex as a document or array.
Mongo is interesting
i'm storing at least a million big objects so it's perfect
yo is this correct SQL
How do you even store parts of map on sql
How much time does reading 1 class take?
save the island as a .schematic and serialize it
using this util I stole off stackoverflow
not sure yugi
If it is algebra, infinite
I got a test :(
wait were u talking to me or gaby yugi?
https://paste.helpch.at/cacuseguwu.java here if someone wants
Do the classes need to be stored in the db then tho, atleast if its not much time?
maybe just store commonly called ones, and read the rest on request
like a sort of cache policy
the db is the storage
imo it's better to have the db as storage rather than the javadoc site itself
also it's already in it's proper serialized form so that's a bonus
less processing to do
but to answer your question, I'm not sure 1 class exactly
but to scan all methods & types from a 1.16.4 javadoc, it probs takes 30 seconds
The complete Javadoc?
not really
it took 10 seconds before I added backwards support for old javadoc types
Isnt network delay to navigate them a factor tho?
it's doing too many checks which is slowing it down
yes network delay is a massive factor
you literally couldn't use this software if you're scanning anything that isn't localhost
it'd take hours otherwise
hmm
(assuming you didn't get banned for an attempted ddos)
š
anyway I'm not going to bother caching anything anymore
it's all going to have to be fetched from mongo at request
memory footprint is just too large otherwise
I'm fairly sure this is a perfect use case for mongo, so speed shouldn't be too bad
Is loading an entire javadoc into memory needed tho? like what usage would the bot provide later on exactly?
find closely named methods / classes ?
yep
ah
that's one of the usages
speaking of which that may be a problem
actually nah
anyway here's an example
Ah nice
uses levenshtein algorithm for searching
hold up what's that
Word distance
I just implement something off my head t hat prob exists
there's two tables per type (types vs methods, so 4 tables total)
one table is just proper names like commandexecutor, or commandexecutor~oncommand
the other table is fqns
if neither have a direct match, levenshtein
Eh
I prob just make something that checks the similarity
As a percentage
And find the best match
that's what levenshtein does lol
prob what you just described
well sort of
levenshtein distance is how many characters have to change to meet the original string or something
you can calculate a percentage from that though
Wait why the 2 tables?
I dont think I understood
one table for names e.g. commandexecutor, and one table for fqns e.g. org.bukkit.commandexecutor
ah
those two tables cover the broad category of types
i.e. classes, interfaces, annotations and enums
then we've got 2 more tables for methods
and there'll be 2 more tables for fields
eventually
You are using key values pairs right?
methods will encompass methods and constructors
Otherwise I assume you can do all that with just 1 table in sql
hmm
Pretty much
ez
@ocean quartz Any chance we could get either an annotation or something which would limit the CommandSender to only console, since right now it also includes player (just for convinience sake so I have to write less stuff <3)
The feeling when @quiet depot Still doesn't follow me back on GH :c
idek who I follow
pretty sure I follow eccentricnz because he has the coolest mc plugin ever
and thatās about it
fuck css

ah i follow 3 people
two because cool projects
one cuz close griend
friend
frosty Iāll follow you if you make something super epic
hmm
he made FrozenJoin 
FrozenJoin+
fj is abandoned
still works tho xD
I've not got the time, otherwise I've got some pretty cool ideas to rewrite it
whenās your next holiday break?
In a week
I've got 2 projects for Gian to finish, an ongoing large one which needs constant additions, so time is on the low
ah rip
Is there a way to avoid like having to put all boilerplate stuff in each html file? Such as like navbar, menu, etc
I mean SupporterCodes is fairly massive cause I'm a 4head
you added me to that one right?
They're both OS
I swear Iāve seen it
ah
are they paid commissions?
@obtuse gale with php u can include files in ur shit, so u can have a file for ur header, footer, etc, and just include it where u need it
I mean he said he was gonna pay, so we'll see š
yes but php
whatās wrong with php?
looks gross
yeah I mean there is a lot wrong with php ig
its nice for some simple things i guess
I guess I never tried it.
honestly not a lot harder than html/css
I've only rly done 1 full website
ive done some basic shit with php and it didnt look hard...
but like $ for each variable
well web dev is definitely something you should get into blitz
pays well š
boring as fuck a lot of the time tho
oh is he a web dev now?
what's funny is I got a job offer... they didn't know I know shit about that xD
We got streaks on SC
PHP has quite a few questionable design decisions
Hey Iām young I just donāt use any social media that isnāt discord
But I guess it's fine
I mean for including files like I suggested, I donāt think any of phpās flaws are being exposed
Same
I've deleted every single sm account I didn't need
Because it was a big fucking waste of time
discord lol
now I have other things to waste time on
i use insta to talk with primitive friends but thatās it
lmao
primitive friends?
xD
who don't have discord
oh
^
xD
I use Messenger, Insta, SC
ew facebook
I just dont message people
I don't use discord for personal shit
ez sln
I used Messenger because of school now I'm going to delete the account
Messenger is nice Piggy, cause it's the easiest place to have a group in
my family keeps trying to get me to use messenger but thereās no way
Anti social gang
xD
oh well
Otherwise I don't use FB, cause it's fucking trash
xD
There still probably is a way to find your handle tho
cough Follow me on insta @hot hull cough
Sure
(jk not my ig)
oh
To find all my social media you would need to make 1 google search, 1 click, another google search and there it all is
Yea I use my irl name for it
nah
Now I need to find my old one to get access
Only place i have non irl people added is SC, which I've got 3 people from here
š
4*
Iām proud to say that my irl name is in no way linked to my handle
apple
Hmm
You seem like an Adam Piggy
although if you try and find it please let me know privately
š or š
Sure
Sellinq, what u mean
SC is uh
too new for me
I dont understand wtf its even for at this point
to put in pigs mouth as a tradition for celebration
I think I uninstalled ti from random people sending me the most random pics
Aren't you like 17
Ah close enough
ancient
"ancient" lmao
wha?
yes
I mean nto sure about where you are from but sc just started to get popular here
and i still suck cos i dont know how to use it properly lol
Piggy, how do you print out the entire project structure
so š
I use the tree command from gnuwin
yo if I delete my messenger
Does IJ have a default thing?
do my friend lose the messages?
no
or they can still see them?
not that Iām aware of
yes
They can see them
I guess this is more of an #off-topic question
They can still see it
frosty Iāll send u my tree.exe when I get on pc
lol
Wait I think you already sent me it
ill send you my keylogger.exe
I'll send you my creditcardsnatcher.exe ā¤ļø

the more css i do will i start to hate it less or na?
Uh you will hate it at some point while debugging
i hate kotlin at some point while debugging
But i mean, depends
oh no, this is ussually worse
Positioning hell
thereās no denying it
is getting better at it just a matter of using it lots?
mr robot
good series
Finally someone whose seen the show šÆ šÆ
these days using css is completely optional
š
with bootstrap you should only need to use html
If this isn't sexy, then idk what is
ew
why only html? Theres stuff you cant do with bootstrap isnt there?
omggg
white theme
I'm not deleting my facebook anymore
yuck
how could I
He means mostly
It's fucking window explorer
can you do most stuff with bootstrap?
Eat my ass Sellinq
Youll only need css for very specific stuff
facebook market place is too good tier
hm
Most things that you will commonly need, yes
I guess the only logical thing to do rn then is to just jump into a massive project and struggle for hours 
Try auditing the webdev course from coursera
Offered by Johns Hopkins University. Do you realize that the only functionality of a web application that the user directly interacts with is through the web page? Implement it poorly and, to the user, the server-side becomes irrelevant! Todayās user expects a lot out of the web page: it has to load fast, expose the desired service, and be comfo...
auditing?
Yea they have an option to take up a course without getting the certificate
To attend the course for the certificate you need to pay for the course
40 hours sounds like alot
40 hours 2 per day that's 20 days.
Its doesnt actually take 40 hours
is it actually good? or is it just gonna cover all the basic stuff i already know about css/html?
I had that course as an extra credit course sponsered by my uni, I attended only during the last week and finished it easily
It has enough to get you well started
<img src="img/logo.png" class="navbar-brand" width="55">
<a class="navbar-brand text-light">Test</a>
``` Like this for example is in a navbar, is there a way to remove most of the spacing between. the text and the image without custom css?
Does Sublime Text have any benefices over VSC?
ah
when do you even need a text editor
file configuration
WebStorm is what you use for that smh
liquid
ive started using vsc for html/css
ew
I've always used VSC and now I'm thinking of moving to ST
because for me VSC loads very slow
sublime text is good
and fast
vsc just feels lighter... probably because it is
y
vsc š
sublime gang
when I used it
it would take a lot of time
to load the app
when I wanted to edit something
Matt helped me find out the reason
but like minutes long
webstorm gang
I downloaded webstorm but havent got a chance yet to use it
phpstorm >
I don't use anything else besides jetbrains ides
https://i.lemmotresto.com/2020-12-14--07-52-32am.png for example currently
I have no reason for a text editor
oh wait
wtf
why would .4 come out on rider first
lmao
welp
wdym?
2020.4 didnt
I had 2020.2.4 installed
The update was to 2020.3
o
Just a question - why does worldguard need worldedit?
and also special vector classes
And heap loads of other stuff lol
o
__Engine__Hub
world isn't really a specific name tho
the thing that connects us all
it's not like Deluxemenus
Exactly
when sk89q was first developing worldedit he bundled in apis that he thought would be beneficial to everyone in the community, so he always made it a dependency of his other plugins to make it a trend. Didn't really work, but that's the reason why
I believe the api in particular that he was pushing was wepif
vault eventually took over though
omg
ive finally done it
day 10 part 2
memoization saves the day
Julia has also overtaken Go in the Languages tab
you dont need a tree š
Too much Java, too little Elara
Elara day 25 is unironically the goal
well
idk if julia has that structure
Map?
yeah, it has Dict which is basically the same thing
Oh I see
I want xml and yaml to show up on my repos. But it's just java.
import elara/std
let fileContent = readFile("input.txt")
let numbers = (fileContent.lines() map toInt).asSet()
let part1 => {
let match = numbers first (num) => {
numbers contains (2020 - num)
}
return match * 2020 - match
}
print(part1()ā)
This will be elara day 1 part 1
I think
Probably
what's in other?
@prisma wave beutiful =>
Just Go I think, and probably misc stuff from Gradle scripts etc
Ikr, I think it's pretty hot
ah
Haven't used Scala yet
which one is better
Uh
They're all different
Julia is great for data processing and mathematics and things
Scala as far as I know is just mostly functional Java, so similar to Kotlin
Haskell is
Haskell
Haskell is Haskell yeah good explanation lol
as it should
No
I think I will do another day in Clojure to get it as the highest %
hmm so kotlin or scala
as far as I know (barely used Scala)
Scala definitely focuses more on FP although it's not elitist like Haskell, it's in theory multi-paradigm
Scala compiler is pretty slow and Scala is pretty tricky to learn
Scala (as far as I know) has more advanced features like pattern matching, Option types, lazy variables, whatever implicit means
Kotlin is very multi-paradigm
Similar to Java so easier to learn
Compiler is often faster than Java's
So personally I'd pick Kotlin but only because I've hardly ever used Scala
hmm interesting
every language has their advantages
this might be the end of my kotlin career
Give me a random program to make
minecraft with no edges
Advent of code
Especially elara
No, something else
Wtf, Charlie already got his hacktoberfest tshirt
How big / complex
Elara is the advantage
medium perhaps
Make a lisp interpreter
create a chess program
lol
oo
what if you made a chess plugin in mc
that would be pretty cool ngl
aw it's already made
:C
unique plugin ideas are too hard to find
A brief update on the progress for Chess in Minecraft! Bonus points to those who can name the chess game illustrated in the thumbnail.
Agenda:
- Promotion
- Pins
- Limiting moves during checks
- Checkmate/stalemate
- Play as black
- Capture calculation
- AI
Minecraft's PokƩmo...
everything has already been made in minecraft
still isnt unique
web browser š

Not in game but there is a block "scripting" language, similar to the animation stuff from unity
ah nice!
epic
discord dying again?
I'm dying inside
Same
But mine is a good reason!
MCDONALDS
YES
Micky D's
Wdym Kali, I said a good reason, not hecking depression
organ failure?
Hello everyone! I feel like I want to get started on making my own plugins, but I am not sure where to start with it. How well do I need to know java? Some people say you just need to know the basics but some people say that's not true? How difficult is it to learn how to make plugins and how difficult is the spigot api? sorry if this not the correct place to ask questions like this but I couldn't find anything else.
learn Java
... that is the single most unhelpful comment you could have made
Learn it to an extent such that you will be able to grasp the topic easily
(cause i wasnt finished talking...)
How do I create the src folder if IIJ didn't for some reason?
you just create it and mark it as a source folder after?
"Just the basics" is pretty much not true. I say you have to learn how to work with it first (how to work with classes and methods, instances, operations, etc)
Well that is kinda basics
i guess code quality
is another thing
but that is considered also the basics
yeah but youtube tutorials say "basics" and not consider anything in it
mhm
use programmingknowledge
?learn-java
Start with this -
https://docs.oracle.com/javase/tutorial/java/concepts/index.html
Breeze through this skipping stuff that doesn't seem relevant like bitwise operators-
https://docs.oracle.com/javase/tutorial/java/nutsandbolts/index.html
and then hit this
https://docs.oracle.com/javase/tutorial/java/javaOO/index.html
They're the first three from this larger thing - https://docs.oracle.com/javase/tutorial/java/index.html
Which you should definitely go through overall. But those three should be enough for slightly better understanding of wtf is happening here without feeling like a huge time sink
That one is a small part of this larger site - https://docs.oracle.com/javase/tutorial/index.html
wherein "Essential Java Classes" and "Collections" also have good useful stuff
And also im confused af why this doesnt parse:
int bin = Integer.parseInt("110100010010110010000111110000010110", 2);
@wheat jackal š save those links somewhere and read them over time, also follow some academy/guide of sorts to also practice, practice is very important. You won't learn Java over the course of one or two days, it takes a lot of time to get good, but it takes effort to understand what you're doing
Then you can jump back and forth between learning more and making plugins, but read those pages over time before you jump onto spigot
Oh and also, don't be afraid or shy to ask, people are here to do their best to help you out!
alright thank you guys for your support! also I see lots of people talking about the java ide? eclipse vs intellij and stuff like that, which one is more beginner friendly if you can even say that. I have only been using visual studio code since I have been doing web-development and python for a while.
yeah that's what I thought
It's uuh that's a bit complicated sadly, it's a whole environment you get familiar with
I personally loved IntelliJ IDEA (due to many reasons), but I really, really don't like the way Eclipse manages projects and files layout
But eeeeeh....... each on their own tbh
You'll have to see what you're comfortable with, again, over time
so I have to work with cooldowns that are saved on a database, which would be a better plan?:
- keep them in memory permanently while the plugin is enabled and save it when is created & on shutdown
- keep the objects in memory for an interval - like a cache - and query the database afterwards to update the stored value
- other?
Normally i'd keep them all in memory and query from cache always, query from database only on startup and write to both simultaneously
hmm, alright
On my previous design I had a problem with storing the data because a player can have multiple cooldowns (but only one with the same identifier) and multiple players can have one cooldown with the same identifier.
Try making that into a diagram it'll help you figure it better
ok will try
CREATE TABLE IF NOT EXISTS `COOLDOWNS` (
id INTEGER PRIMARY KEY,
uuid TEXT NOT NULL, -- player's uuid
name TEXT NOT NULL, -- unique name for each cooldown
duration INTEGER NOT NULL, -- duration in seconds
start_timestamp INTEGER NOT NULL -- start timestamp in seconds
);```
What I was trying to avoid are multiple queries for one cooldown
- check if there is a cooldown with the same uuid and name
- if true, update the duration and start
- if false, insert```
@obtuse gale
Firstly, it's a compiler hack. The Java compiler isn't intended to be used like that and so it can cause compiliation errors, or worse:
I was working with a project using Lombok recently and method references for a lombok generated method were causing some pretty difficult to debug runtime errors.
Secondly, it requires an IDE plugin. You have to properly configure your build tools and IDE to avoid hundreds of errors, and installing an IDE plugin + setting up annotation processing takes time, especially if you're inexperienced.
Generated code also doesn't show up in Javadocs, so unless users have source code available it's going to look like nothing is accessible
If Lombok's code generation does something unintended, it can be difficult to debug, and usually requires you to remove the annotations and do a certain impl manually anyway. However, once you get used to this it's very discouraging to do, so it's easy to rewrite an entire class just to make it work with Lombok
There's also an extra degree of complexity with Lombok. Java is supposed to be explicit, and transparent. If you don't notice an annotation at the top of a class, it's easy to wonder where a method is coming from, or why a field is never initialized.
It also can be harder to work with. Again recently, IntelliJ couldn't find usages of a constructor, because as far as it was concerned, there was no constructor - Lombok generated it - meaning I had to find every usage of the class and search for a constructor which wasted a lot of time.
A final, slightly petty point: Lombok'ed bytecode doesn't match the source code (obviously), but it means a pretty annoying IJ warning (look at BungeeCord source for example)
Lombok may seem good in the short term, but it comes with a heavy price. Favour IDE generated boilerplate, or consider using a language like Groovy or Kotlin if you really dislike boilerplate.
Xp
Why ping them? lol
Lmao
Plus the size of your message doesn't matter for xp
No idea
Because the original tagged him lol
lol whatttt that was weird
Should've sent it in multiple messages maximum xp
?
@ocean quartz Did you see my mf commands suggestion? š„ŗ

Uh i did not, where?
Uh check pings from me
Oh, that's been a thing for ages now
Wait what
Epic
Use ConsoleCommandSender as the sender and it'll be console only
const val CREATE_TABLE: String = """
CREATE TABLE IF NOT EXISTS `COOLDOWNS` (
id INTEGER PRIMARY KEY,
uuid TEXT NOT NULL,
name TEXT NOT NULL,
duration INTEGER NOT NULL,
start_timestamp INTEGER NOT NULL
);
"""```
Would the spacing cause any problems when running the query?
don't think so
shouldn't do, but maybe use .trimIndent() anyway
Also explicit type specification, ew
Big ew
trimIndent doesn't work because it is a const
alright
Wait what's proper naming convention for tables?
testTable or test_table
I see
yep there aren't any official conventions
Probably snake case though
^
Ssssssssss
Any idea why a VPS would randomly not be able to connect to external hosts such as api.spigotmc.org or google.com ?
Bad DNS?
wdym?
Do an nslookup using 8.8.8.8
And what does that mean š¤£
no clue
waffle it might be something todo with dns
I tried switching the server's name servers from 127.0.0.53 to cloudflare, but that stopped me from pinging anything
No no no
just for some context, this issue started occurring after an outage
nslookup google.com 8.8.8.8
It forces a DNS test using that specific DNS
if it works, your current DNS is broken and just needs to be reset / adjusted.
What happens if you just ping 8.8.8.8
Hmm
I honestly think it might still be the host
What does a traceroute to 1.1.1.1 do?
does this command ever stop?
Yes
I've never used traceroute before
It gets all the jumps between you and the IP to see where the problem might lie.
It's gotta be DNS
Cause you can ping it and tracert it but not resolve it via dns
And what does that mean šµ
Means try changing your DNS servers
I tried that, wasn't able to ping anything
š
You didn't mess with IP tables did you?
I did not
Idk if Vesta does weird stuff. Ensure port 53 works.
The server worked just fine and ~15h ago or smth that issue happend.
53 is open on udp and tcp
Alrighty and the other?
root@vesta:~# cat /etc/NetworkManager/NetworkManager.conf
cat: /etc/NetworkManager/NetworkManager.conf: No such file or directory```
# ifupdown has been replaced by netplan(5) on this system. See
# /etc/netplan for current configuration.
# To re-enable ifupdown on this system, you can run:
# sudo apt install ifupdown```
I probably should've asked. What OS and version?
Welcome to Ubuntu 18.04.5 LTS (GNU/Linux 4.15.0-128-generic x86_64)
Have you tried rebooting the resolver?
idk what that means but I have restarted it with reboot
cat /run/systemd/resolve/stub-resolv.conf
I forgot why the 127 is supposed to be there but what happens if you change that to 1.1.1.1?
donāt change that file
127 I think is to resolve local stuff or to tell it to go to the parent
hey lime
see pms
sooo... I'm trying to set up github pages and I created a repo as they said called: blitzgamer-88.github.io then I chose the github desktop path and I selected as they said "Set up in Desktop" but when I open it, github desktop tells me this: https://i.imgur.com/PKvYqd4.png
I didn't create any files
this is how my repo looks ... https://i.imgur.com/kByWCjD.png
can someone maybe enlighten me to what step I've missed?
The directory you are cloning to is not empty
also
No need to clone an empty Repo
then again, havent used the github desktop client yet do idk how that has you handle stuff
so
well that's what they said. I just clicked Set up in Desktop and it opened github dekstop to that page
š¤·āāļø
oh
Can you show the full UI
I'm just following this https://pages.github.com
Websites for you and your projects, hosted directly from your GitHub repository. Just edit, push, and your changes are live.
like does it specify a path to clone to?
ew
there you go
go ahead and remove gh desktop and download that
Provides native Win32 open source ports and utilities
