#dev-general
1 messages ยท Page 233 of 1
um
Ok finishing setup for the jetbrain toolbox
thing
Is jetbrain where I find all the cool dev download I will need?
You can give it the source code and it'll fix that
@distant sun Here
again, shouldn't it do that automatically?
Not necessarily, most of the times it's just the jar, so it'll show the decompiled java, since it's kotlin it's a bit different
what dafaq
why does day 9
i need longs?
tf
Wait
part two is easy
just use prefix sum

What was day 9 about?
I forgot already lol
All I know is that I needed a long[] instead of an int[] or it crashed lol
Yeah
Day 9 was about the the thing where its like you need to check
if 2 numbers in the past preamble
add up to the current number
My solution for part 2 is only O(N+N^2) ๐
Oh I remember yeah
For part 2 I did 2 nested for loops with some magical offsets and magical streams :^)
I didn't have to manually add shit 
Thank you LongStream 
bruh
i used one loop
public static long getContiguousSet(List<Long> list, long target) {
List<Long> prefixSum = new ArrayList<>();
long sum = 0;
for (long l : list) {
prefixSum.add(sum);
sum += l;
}
for (int i = 0; i < prefixSum.size(); i++) {
for (int j = 1; j < prefixSum.size(); j++) {
long begin = prefixSum.get(i);
long end = prefixSum.get(j);
if (end - begin == target) {
long min = Long.MAX_VALUE;
long max = Long.MIN_VALUE;
for (int k = i; k < j; k++) {
if (list.get(k) < min) {
min = list.get(k);
} else if (list.get(k) > max) {
max = list.get(k);
}
}
return min + max;
}
}
}
return -1;
}
๐
Prefix Sums ftw
I see 3 loops
So did mine lol
For part 2?
yeah
Lemme turn on the computer lmao
the main idea tho with prefix sums
you just add them together
like
[1, 3, 5, 7, 9]
apply prefix sum
you get
[0, 1, 4, 9, 16, 25]
then take any two numbers
inside that array
and if you subtract them
it equals the sum in between
those 2 indexes in the original array
Yes I know how it works, I think I had to use it to implement radix sort? ๐ค
Radix Sort 
Yeah
its a useful algorithm
for general purposes as well
Have you seen Gravity Sort
the one with beads
and shit
ngl tho it's really dope, fast as fuck
Yeah
Have you seen gravity sort though
like
who has the mental power
to think of how smart
that is
i would never think gravity kekw
it will be the last thing i would think of
final long[] raw = // ...
outerLoop:
for (int i = 2; i < raw.length; ++i) {
for (int j = 0; j < i - 1; ++j) {
final LongStream longStreamSum = Arrays.stream(raw, j, i).parallel();
final LongSummaryStatistics statistics = longStreamSum.summaryStatistics(); // :^)
final long min = statistics.getMin(), max = statistics.getMax(), sum = statistics.getSum();
if (sum == invalidNumber) {
System.out.printf("%d + %d = %d", min, max, min + max).println();
break outerLoop;
}
}
}
streams are dope
idk lmao but the first crash I was like 
yeah that lol
wanna 1v1 fist fight
Not sure if this is where I'm supposed to put this, but I'm trying to create my first plugin. I have very very basic knowledge of java and bukkit. I'm trying to create a plugin that randomizes all the items in a player's hotbar after a set amount of time. It would keep randomizing every few minutes or so until a command is used to stop it. Would this be possible for me to do or do I need to know more about java first?
I would highly recommend to learn more about Java first
How do you recommend doing that? I'm not exactly sure where to look to find everything I need.
?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
@unborn hedge ๐
It's not something to rush it
It will take days, maybe even weeks
Make sure you get and understand what the topic is about, learning by itself is a long tedious process
And ask questions if you're in doubt, people are here to help
Hi efe
Thank you!
Yup, if you take a code from me from 4 years ago or even from last year it's so much different
what's this day thingy you two were on about earlier?
is this like advent of code or something?
probably
advent of code is way too hard for me lol
actually, I suppose it just requires some thinking outside the box
^
ye
6 was easy
Gave up on 7 tho
still have to do 7, 8, 9 and 10 if I ever get to it lmao
Didnt had time for 5+ ๐ฆ
I just can't even with these lol
Surely, there must be an efficient way to count the arrangements
๐ฅฒ
fuck
no im not homosexual

why blitz lol
he can't even =offtopic
well he has access to staffchat ?
Yes I will
Just give me 2 years
I'm still working on the plan to take down funnycube and take his power
you'd need a BigInteger to store that jesus christ
I did lol
what is this for?
lol
start what
advent of code
what is it about
basically a programming challenge every day until the 25th
aah
anyone a link ?
your words are marked
Cool thank you
ยฎ๏ธ
โข๏ธ
(c)
ok stop
yeah 
me
weirdo
thx ๐ข
You only need a long for the actual result
??????????????????
64 bits cannot store THAT number
I think what he's implying is that your result is wrong and the correct answer can be stored in a long
The actual number is nowhere near what you got

well yes that is way more than probable, but the comment was on the number I sent
the constraint is far far less
which comment?
read what I said
^
for the actual result
I wasnt commenting to what you said was I?
sigh forget about it
๐คทโโ๏ธ
I mean yes no shit the result is way off
let result = 0 asLong
You don't have to be a prodigy to know that, Sherlock
Again, did not even tell you about any of that 
oh fuck off
lol
tail [x] *= x
?
elara?
Brister?
Haskell
mitten
rust
J
go
pascal
C#
ruby
python
much LOVE to Go!!
you forgot the funny
javascript
typescript
y'all forgetting about the best language, Elixir

no you don't 
tomorrow
bad
try and see
shouldnt be an issue tho right
probably works fine
๐
ya use CompletableFuture ?
I just need it running in an async task
every second
then get player uuids
and thats it
all should be good async
idk why the async part is so important
the getNearbyPlayers() method isnt that heavy afaik
?
oh nvm voice talk exist
AsyncPlayerPreLoginEvent
a.k.a APPLE
:] now you will think of APPLE every time you work with that event
go away
How can you disable that people can decompile your plugin and see the sourcecode ?
u cant
use a license
Open source it, that way they won't need to decompile 
It is opensoruce kinda, If I know how to put it in there without copy pasting everything
what
If it's open source why do you want to prevent decompiling? .-.
Matt I think you are too smart for this shit
OpenSource.disable();
Because it gives the wrong code, with many error's
if it's open source why are you worrying about it
there is no other reason
it's open source
tell the people to grab the code instead
and if people decompile it, it's on them for being that stupid
and also if you decompile you can't see the gradle build
Weird flex, but okay.
KiteBoardPlugin.openSource()
๐
KiteBoardPlugin.makeOpenSourceLater(delay = โ)
PDm ^^
๐ญ
๐ x1
Always
banana

banana
cyberpunk
/ban Conclure
lmao
Soz
It could belong here if I were looking for API help
๐ช
Ouch
large oof size
If I use git via command line. How get intellij to update class name clours
cba to rewrite every project I've ever done in kotlin
why
why not
CTRL + ALT + SHIFT + K
๐ณ
i promise that wont break atleast 50% of the code
nice promise
promise.reject()
epic
Just looking at that and seeing how much boilerplate java has, jesus
๐ฅฒ
java fans be like "no its more verbose"
u love to see it
one guy argued for that kotlin is bad cuz of the name fun
fun is epic
override fun
everything is defaulted to public
And there is one amazing thing Java lacks, internal
how do you achieve package-private 
You don't, closest you can get is internal which is visible to the module only
not needed anyways
Yeah
I'd like to disagree but okay
It's package-private
yeah me too I agree

Anyone here familiar with the pterodactyl panel?
familiar with the installation process or just the panel itself ?
have you read the pterodactyl docs. they're pretty detailed
they are if you understand anything lmao
i would assume if you have a vm or dedi to setup ptero on you have some understanding of the OS its running and the command line
i believe by default ptero puts them in /opt but all the servers are named as UUID's. its better to access the files via the FTP that your panel gives you or from the website itself
not in /opt
ls -al /opt
the thing is that I want to move my server from the panel to a different place on the machine
so I don't want to have to download then reupload
i assume you still want to use the ptero panel right
No
Idk, but it's just too glitchy and laggy
I keep timing out
Never had that issue when running everything trough screen and commands
Hello everyone. Im considering buying the plugin Guilds but i have some questions I need to be answered before buying it. Anyone there to help?
Questions:
- I saw on GitHub Issues that someone suggested a banner system. Pretty good suggestion and pretty dynamic. Was that implemented? If no is there a way to make it?
- The war arenas can be set my ADMINS and when you join that arena only members of a guild can PvP?
- Is there a way to give like a plot to each guild?
- Does the guild bank has interest?
- Does the leveling system work on unlocking features? Like more vaults or a bigger bank space something like that?
- Is there a way to create a Guild Shop based on the guild level? Or is there a way to when you level up the guild you receive a custom permission?
what plugin
Guilds
yes Guilds
oh yea just read the last thing lol
I'm afraid only WolfeBershad and Glare know enough about that plugin lmao. I don't want to ping them as I know Glare has some problems. Idk about Wolfe
:/
cause if i can find a way for tht i would even pay more for the plugin
if allowed ofc xD
have u checked out the wiki / plugin page? it may answer some questions idk
- Is there a way to give like a plot to each guild?
I know this
The plugin uses WorldGuard for claims
u can always compile the plugin too and test the features that way if u wish, that way u wouldnt have to buy it to be disappointed
currently
and I think people can claim areas themselves
Oh yeah Noitbois it is freemium
so you can compile it yourself I guess.
wdym?
and test. and only pay if you need the support
The code of the plugin is Open Source
oh
You pay for the support and for the feature requests mostly
hmm
about the plots i mean like giving a plot like PlotMeSquared does
custom plot
sized
on a plot world
I don't know. I know the only thing they use for claiming is WG regions.
where can i get the freemium version?
github
its just the code
you'll need to compile it yourself into a jar
or maybe ask a friend or someone that knows how to do it if you don't know
aaaah yeah cause idk how xD
yeah i have no clue how to do it
im trying to compress it and i have no clue what i am doing
xD
Not compress. You need to compile. You need an app like IntelIIJ or Eclipse (first one is better)
omg why have we not been compressing our kotlin jar files?
no more 1.6mb jars amirite?
i mean joke's on you jar files are already compressed
smh
wait
just a quick question
is it possible to compile an image in to the jar
then when running the jar, load the image as a file
Yeah
Normally you'd just add it to the resources folder and maven/gradle would compile it into the jar
this EAP version of IJ for m1 macs is speedy :))
dont kill me but i almost never use maven or gradle
i am the sort of guy that only uses the system libary for everything he does
even though it could be done 1000x easier with a libary
why would i use gradly purely for packing files in to the jar
one sefc
because it's not only a dependency manager
it's very useful even if you don't use external libraries
How does one declare a task with the kotlin gradle dsl
Anyone ever experienced not all files getting duplicated when using cp -r on unbuntu?
tasks {
register<Type>("name") {
}
}```
whats Type?
whatever you want the task to derive from
what
do you know gradle tasks?
no lol
well then start there lol
i need a good argument to start using gradle:
-i already have fast build times, since i dont use libaries and my projects are small
-i dont need it as an dependency manager since i dont use libaries
-i dont need to automate any tasks
even faster build times
you get a standard, uniform layout that is used across virtually all java projects
i dont even know what that means lol
what, the words?
no like in the context
You are very resistant to anything that you don't know about huh? xD
no, it's a project structure and build flow
i literally wrote a render engine from scratch since i couldnt wrap my head around opengl
still dont know about how open gl works
its like reading chinese lol
i have tried using gradle once
because apparetly it was way easier than decompiling minecraft without
and stil i couldnt do it lol
then i just gave up on it
in my head it will always keep the place of dependency manager
i am 100% self thought so i probebly have all the bad programming habits, probeblhy also new ones and maybe even mutated ones ๐
Most of us are self taught, you just gotta be less resistant to change, accepting new things is not a bad thing
a lot of people are self taught
basically this is what im tryna convert into kotlin gradle
task deploy {
doLast {
ssh.run {
session(remotes.webServer) {
put from: 'example.war', into: '/webapps'
execute 'sudo service tomcat restart'
}
}
}
}```
and this
remotes {
web01 {
role 'webServers'
host = '192.168.1.101'
user = 'jenkins'
identity = file('id_rsa')
}```
im stuck at the session()
welp for the past 3 days I've been working on a plugin
no testing or anything
time to see if it compiles
๐
And that's a first ... it did
Anyone know if it is possible to allocate like more ram or some shit to Pterodactyl, cause it's so slow and laggy for some reason, keeps timing out lol
ive been working on a plugin for 2 months already and i havent even started testing or debugging it
๐
well
im in more trouble
likely

i really should be debugging from time to time
u spend 3 months on a plugin just to find out: Error - Invalid plugin.yml
after u fix the plugin.yml
hes watching all of us
u guys are very observant
Error - plugin dont work
we are being spied on
you think?
๐
๐
@forest pecan
@static zealot
@forest pecan ping
@half harness
yoo
yayy
that guy reposted his #783231030860972032 , gaby deleted it
and now...
he repsoted again
pass the ball back nerd
lmao
lol
@forest pecan
@half harness
@forest pecan
barry broke
it doesn't ping
yeah lol
@everyone
@half harness Pls dont ping @everyone
i was pinged
Sane here.
lmao
ยฏ_(ใ)_/ยฏ
?Ban @half harness
;-;
๐
:confused:
idk what to make
a cake
make a cake
Welp turns out its not all good
lmao
error when loading the plugin
fuck
wait what was this about Caused by: java.lang.ClassNotFoundException: kotlin.jvm.internal.Intrinsics
But
the library is there
why would it not find it
common solutions to fix this error: dont use pdm
there is no other solutions to fix this issue.
:)))))
Lol
I wonder if the problem is that in this plugin I use kotlin 1.4.10 but the one that is already downloaded I think is 1.4.0
time to delete libraries
and let's try a clean build
Nope. Doesn't even install the libraries
lmao
well at least I know why its not working
time to see what I forgot
Welp I guess its time for shading
lmao
Hello everyone. Im considering buying the plugin Guilds but i have some questions I need to be answered before buying it. Anyone there to help?
Questions:
- I saw on GitHub Issues that someone suggested a banner system. Pretty good suggestion and pretty dynamic. Was that implemented? If no is there a way to make it?
- The war arenas can be set my ADMINS and when you join that arena only members of a guild can PvP?
- Is there a way to give like a plot to each guild?
- Does the guild bank has interest?
- Does the leveling system work on unlocking features? Like more vaults or a bigger bank space something like that?
- Is there a way to create a Guild Shop based on the guild level? Or is there a way to when you level up the guild you receive a custom permission?
(no i don't know how to convert the GitHub files into a .jar to teste it ๐ฆ )
@bronze yew can you answer him please? I'm sorry if I'm bothering. please lmk if you don't like getting pings.
sorry to insist tho ๐ฆ
No worries, Blitz i don't mind
~~0: Why is this not in the #guilds channel (probably cause you didn't buy it yet, right?) ๐คฃ ~~
- I saw on GitHub Issues that someone suggested a banner system. Pretty good suggestion and pretty dynamic. Was that implemented? If no is there a way to make it?
It's not implemented. Glare is busy and it's not a priority. If you upvote and comment on it in the github there are more chances Glare will implement it.
- The war arenas can be set my ADMINS and when you join that arena only members of a guild can PvP?
Server admins create arenas (warzone) where guilds will PvP each other in a last-man-standing mini-game when the initiate guild challenges between each other. Rewards can be issued via console commands, and all members (include guilds masters) can participate in these mini-game wars.
- Is there a way to give like a plot to each guild?
If you enableworldguard-claimsin the configs, guild masters can/g claimto create a worldguard region at that location with a size defined in the configs that belongs to the guild. You can also make pre-defined regions (like plotme or plotsquared) and sell those regions to guild through guild claim signs.
- Does the guild bank has interest?
No, it's just safe storage, and where the tier upgrade cost, and buff costs are pulled from.
- Does the leveling system work on unlocking features? Like more vaults or a bigger bank space something like that?
Guild tiers have multiple benefits, additional vaults, increase bank size, xp multiplier, damage multiplier, and member limit increase, as well as unlocking more and more powerful buffs. All configurable in the configs.
- Is there a way to create a Guild Shop based on the guild level? Or is there a way to when you level up the guild you receive a custom permission?
There are custom permissions distributed guild wide for upgrading guild tiers, so you could tie it to the third party shop plugin.
@bronze yew yes. He is asking a prepurchase question
Like he knows its OS but he is thinking about buying but he wants to know if those features are going to be added or exist
I answered everything to the best of my knowledge
ye I was just confirming
thats great
rathering the 3. question
what i wanna know is if there is a way to make it work like PlotMe (if you know it) like having a plot world and give a random free plot to the guild
it just needs to be a WorldGuard region
the final part of the senteced runned away from me
hmm
and will i need to manually add each member?
or the Guild plugin will like "claim" that land for the guild and guild members will be able to edit it
claim-signs: false
# Would you like to make it so that claims can only be aquired through the purchasing with signs?
# This will disable the regular claim commands.
force-claim-signs: false```This is the config option for claim signs
would all tiers have access to editing the terrain?
or i can make it like a per tier permission?
all members of the guilds are added to the worldguard region
but there are role permissiosn too
name: Member
permission-node: guilds.roles.member
permissions:
activate-buff: false
add-ally: false
ally-chat: true
change-home: false
change-prefix: false
rename: false
chat: true
demote: false
deposit-money: true
invite: false
kick: false
open-vault: true
promote: false
remove-ally: false
remove-guild: false
toggle-guild: false
transfer-guild: false
upgrade-guild: false
withdraw-money: false
claim-land: false
unclaim-land: false
destroy: true # this one
place: true # this one
interact: true #this one
create-code: false
delete-code: false
see-code-redeemers: false
modify-motd: false
initiate-war: false```
my brain is spinning xD
destroy/place are on the list
so i can make them able to interact with chests furnaces etc
but not build
right?
btw bank = vault right? does not store money?
look up โ๏ธ
thats great gosh u have thought of everything for an RPG server!
bank = money storage (also where the tier upgrade cost and buff cost comes from
vault = item storage
ok good
It's a great RPG system
regarding the question 1... tht was an request from like 2 years ago
fair warning there is no raiding though
thats great
the guild war system warps both guilds to a warzone setup by server admins
You can try asking in the github if Glare is taking commissions. I doubt he is though. The sourcecode is open source and you could pay someone to PR it and Glare would more than be happy merge it into his master.
Although he has said he will be working on it over the holidays... so maybe get a bunch of people to upvote that github issue and it'll get his attention.
yeaaaah but i dont know any dev and no1 better then the owner of the plugin u know...
you know any way i can go arround this problem?
And this is where my support ends ๐ Since the sourcecode is open source the #guilds channel is reserved for people who paid to get support ๐ no hard feelings...
like any other plugin tht has a banner system tht i can add to Guilds?
aww xD
okok
best best is ask in the github and upvote it
most of my doubts are clear now so now I can look into buy it
he should have time over the holidays, and if it's one of the higher voted features he might add it
but i can't confirm anything as i'm just a "helpful" person ๐
btw i was talking about this one
Guild Banner #156
thts the issue
i upvoted and left a comment
yeah i got the notification that you commented on it (i think it was you)
EpicRealms is my crew yes ๐
Then sadly just wait and see
i know he's planning on adding RGB support for tags, prefixes, and guild names next. If the banner idea is simple enough he might add it too.
here's the W.I.P. wiki of guilds
https://wiki.helpch.at/glares-plugins/guilds-w.i.p-migration
@cursive wren i up-voted it too. ๐
html is fine tbh but fuck css
why?
idk i just hate it
Fucking hell.
My fps go to 0
when I'm on my survival server
but when I'm in lobby its fine
oh nvm
its back to normal now
@ocean quartz with your GUI-FM when I want to put items on the second page how do I do it?
Do I just go slot: 55, 56 etc?
You can't do that, the pages are the same for static items, page items are added automatically to the pages with addItem
it also makes sense why it overrides the next page item
lmao
wait
so I can't have different click actions for slots
in different pages?
Wdym?
so in page 1 slot 0 I want a click action but in page 2 slot 0 I want another one
Just check the current page number
Yeah
IIJ broken
is it actually? Cos its doing this on multiple PC's across multiple versions of IJ
I'm assuming that's coming from Java? Like Kotlin and Java together
Also what Kotlin version?
Yeah, that would make sense
javaMethod(nullableThing)
yeah
this IJ EAP version for new macs im using is like wayyyy better than the normal version lol
2020.3 was an amazing update
Is there a javadocs api?
object Thing {
val x:Thing<X>= "Thing"
val y:Int = 5
val z:Thing<X> = "Another Thing"
}
How can I iterate over everything in there of type Thing<X>?
yes
You'll need reflection
sounds like a blast
how does one
I managed to get over all the fields, I just cant seem to cast it to what I need it to be
actually nvm I dont need this lol
hello
can someone help me plz?
With what
gpu
#off-topic , just ask your question
Wait?
what?
Lol
Lmao
now im tryna get a configMe Property<String> by its name
how do I like cast a Field to a Property<String>? Casting it doesnt seem to just work unfortunately
yeah lol
you need to cast the value
getValue takes in two parameters?
The object of whose field's value you want?
Bear in mind that it you're using Kotlin the Bytecode might not be what you expect
properties in objects aren't static unless you have @JvmStatic for example
With MF JDA CMD I cant have optional command params can I?
when updating titles for inventories, do we have to re open the the inventory as well for each viewer?
How do I like deploy my spring boot app
like I can just chuck her on the server than start it with java -jar app.jar but then I cant use the terminal at all since its always in the apps terminal
what?
you can run your Spring Boot app with java -jar if you have built it in to a JAR
yeah
make sure that you don't use shadowJar with Spring Boot though
but then my terminal is always on that lol isnt it
Spring Boot has it's own JAR packaging system that comes with the Gradle plugin
yeah
but when i do my ssh terminal is like locked onto the terminal for the spring boot project
I cant do any commands to the vps
thats my problem
maybe you should try either using screens or running it as a background process
or better yet, in a docker container
what OS you using? (important because RHEL dropped support for screen in favour of tmux)
ubuntu
apt install screen
ye?
screen -S nameofscreen
now just run my app on this?
if you want to do that, I'd recommend using docker
fair enough lol
you don't necessarily have to use docker, but I recommend using it as it's really nice
im doing control A followed my D and its just saying detach aborted
whats it do lol, ive heard about it but never looked into it
docker is basically a system that runs small embedded systems called "containers", kinda like having a virtual machine that only does one thing
o
and it has it's own network and stuff, which is really nice
got that control a thing sorted
o nice
i might set it up in a bit if i get time lol
I don't know that much about docker, I just know a bit about how it works and how to use it lol
just for future reference, how do i get back to the screen i just created
screen -x screenname
ty
yw
now to work out why my things not working lol
is there a certain port something has to run on for https to work?
cos now that ive chucked my thing on my vps its stopped working, saying the server where the page is isnt responding
its running on port 42069 and im going to publicip:42069 and its not working
ah, nvm the port was blocked or smtghn
spring /gradle has a plugin to build things to docker images I believe
Would recommend docker
how fix cloudflare 525 SSL handshake failed
do i need to do something on my server regarding this ssl thingo
probably
how do
do you have SSL on full and have a certificate on both ends?
atm its on flexible
also idk if this is relevant but im not tryna connect directly to the domain, im going to mydomain.org:2053
I am pretty sure cloudflare only provides SSL for port 443
o
flexible SSL is weird
You need the enterprise version to secure other ports afaik
ll try 443 i guess
is 443 the default for https? Does that mean if i ever want a website to run on this then id need to change this or something? Since this isnt a website, just a spring app that has a webhook endpoint
443 is the default port for HTTPS yes
So am I gonna run into problems if I ever wanna put another app on this domain, but one thats an actual website so needs to go on 443
just have all your HTTPS traffic use 443
Can I run two apps on the same port tho?
as long as it's all using the same web server, you'll be fine
o ok
what if theyre both spring apps tho
wont it say like 'cannot start becausesomething else is running on 443'
that sounds complicated
yeah just reverse proxy
with Caddy, it's like 3 lines
with NGINX, probably more like 20, but still pretty easy
surprising lol
import elara/web
webServer "domain" {
reverseProxy "otherDomain:port"
}
oh god
Pragmatic
NGINX actually isn't that much for once
alrighty got this bad boy starting up on 443 now lets se if it works
k8s dropped docker runtime ๐ฎ
(server "domain"
(reverse-proxy "other:port"))
lmao
get rid of it?
I get that when I go to my urkl
except im not going on port 80 im going on port 443 lol
which just gets rid of the port alltogether since its the default
.bashrc
sudo apt purge apache2
:slight_smile:
lmfao
Apache
is that the actual command i do or is this some form of elara joke im misunderstanding
can never be too sure
the command is right
oki
Probably doesn't belong in .bashrc though xd
idk what bashrc is but alrijgt
commands that get executed whenever you start a new bash session
now im getting a 521 "Web server is down" error..... but my spring boot app is up
is nginx running
systemctl status nginx
dont think i even have nginx intsalled....
Unit nginx.service could not be found.
do I need it? Doesnt spring setup the server or whatever
so why no work ๐ฆ
what port is spring running
443
does spring even support tls out of the box
I always reverse proxy spring so idk
I just want it to work lol
just set spring to run on port 8080 or something like that
and just install nginx
also is your firewall open
yeah pretty sure
i checked if the port was open on one of those websites lol idk if they work or do what i need but yeah
ufw status
just screenshot it
Fellas have we figured out who jolheiser is?
What the hell did I do?
I no longer get to chose between package, kotlin file and whatever used to be there
you're not in a source root
what's a source root?
src 
I'm back yea
๐ฎ
@static zealot why dont you use a Pair<Int, Int> instead of Array<Int>
Got it working?
Learning some NLP for fun, anyone knows some good reference/learning materials/resources?
nlp?
natural language processing
seems like everyone does it with python more than kotlin sadly
For this specific kind of NLP it's more like taking in large corpus of text and processing it
like reviews and blog posts then doing stuff like tf-idf to figure out what's important etc.
But resources for learning NLP is really sparse and all over the place :/
why on VPS
File#getAbsolutePath
IS not working and on windows machine it is working fine relented to spigot..
not working?
nope
How exactly?
it is saying null to YamlConfiguration and File
You probably havent created those files?
same jar file
on VPS doesnt work
on localhost windows works
same code same jar file
same paths
If you are using any hardcoded paths, keep in mind that file path separators in linux and windows are different
that probably the issue










