#dev-general
1 messages ยท Page 236 of 1
Gitkraken is weird
ah didn't know how to push
click push
what does hypixel api do
link
https://github.com/HypixelDev/PublicAPI/wiki/Using-the-API-with-Java
https://github.com/HypixelDev/PublicAPI/tree/master/Example/src/main/java/net/hypixel/example
you can get player stats
or something like that
by the looks of it
ye seems like you can get info from the server
useless
wow
no it's useless dad
@quiet depot How does one use this tree.exe thing
git bash
good
Lemme rerun the stup
what does the setup even do?
Install shit I guess
run cd /usr/bin && explorer .
then paste that file in
restart git bash
you should be able to use tree
@frigid badge got it down to 27mb usage ๐
for some reason automatic gc isn't working
running gc manually through yourkit got rid of the excess shit
explorer command not found
wtf
go to ur git bash installation
e.g. C:\git-sdk-64\usr\bin
oh it probably wasn't running cuz no xmx
Gotta go rn, will do it later
docdex is multithreaded, take notes minecraft
lmao nice
luckily only have to do this once
bit like cracking a password
oh nvm I have to do it again because still haven't implemented fields & constructors
oof
I'll give you 20$ for that cpu
no deal
frosty, $20 for the cpu and u wont be able to use it unless u got a $50-100 new motherboard anyway ๐คฃ
I mean the cpu is like 300 right?
nah
Not bad, but I'm probably gonna go with amd when I upgrade
no one is giving away i7 7700ks for $100 lol
when
But, how about he resells that and divides it to buy slightly cheaper ones of both

this isn't iphones where the tech was always bad from the beginning and prices were only there because of brand
i7 7700k is still somewhat of a beast
It's a beast yea
:bruh:
Time to start web dev amirite Piggy
3rd gen ryzen is cheaper than that and better
unless its all out of stock, which has inflated those prices
So design is what u mean
no
design can be separate from frontend dev
a frontend developer turns a design into code
generally they also make the design, but it's not a guarantee
I personally suck at design but can turn anything into code
so cube makes the design
and i make the site
can freelancing be put on a resume?
yes
why not?
I mean I made a portfolio site once, I'll see if I still have it when I get home
anything can be put on a resume
Hmm, I mean how would one specify it if was for an individual instead of a company?
Or should it not specify the customer in that case?
No Kali
unless it's a big customer, don't bother
ah
they won't care if you sold a plugin to craig1234 from helpchat
they might care if you're applying to hypixel and have worked with gian
Oh im nto tlaking about plugins
unfortunate craig1234 ๐ฆ
I havent touched spigot in months I think
I have worked with gian for 1 project
oh ok
actually really any business/individual would be a good thing to mention
so long it's of decent size
Alrighty
I have made a few webpages for some small companies in my state through a friend of mine. So I guess that counts
@quiet depot you should probably optimize the gc for your usage
and nicely done
that's a lot from 1gb lol
working on optimizing the actual indexing/population now
cuz currently it spins up an executor with a thread per javadoc
that'll result in an oom though if the memory is capped
so got a little algorithm that decides a nice number depending on javadoc quantity and total memory
What if I make a really nice plugin that no one knows about
Can I put it in my resume
Something like my current Skyblock core that loads islands and saves islands to mysql
I can lie too
no employer will be impressed with basic loading and saving to mysql
I mean the actual blocks themselves
Something similar to the way Hypixel or Cubecraft store
a different world format you mean
sure that would be something to put on your resume
It's weird
I make a schematic with FAWE and store the file itself on the database
Then I get the position in the grid and paste the island in
Unload the island when the player logs out, and calculate the gained stuff in between when they come back, now that'd be something
I do unload it
But this is a more casual skyblock with no island calculations
I made it to spread the load across multiple servers
Just need to set the same db to all the servers
Storing files on a database ๐ค
Yeah
It's weird code
If you search for "Java MySQL object saving" you can actually save any object
So I just save the .schematic
The saving, deleting and loading only takes around 300 lines of code total
Yea I know it's possible, just seems a bit counterintuitive
Needs minimal setup and works fine
Just suffering a little making the inicial island as I need to load the schematic and make a new one
I can easily just forget about it and make an easy core but then I can't easily spread the load across servers
The only thing I might need to rewrite is actually caching the schematic for online islands
Worldedit might complain about pasting for a non-existant file
I have a bone to pick with this server. Once again my posts in showcase are being RIDDEN with UNFAIR and FAKE downvotes. A user "Modded Pro" seems to have some sort of VENDETTA against me and my actions. I have been polite and sent warnings, clearly you are not prepared to change your ways so prepare for repercussions.
Have a nice day ๐
clearly
is there a way to make IJ auto download plugin updates?
cant find one myself :/ but im blind
Make a plugin to auto-update plugins 
๐ฎ
lol
@quiet depot :O
nice
Hopefully it gets here in a reasonable timeline
how tf you switch between the tabs so fast
o lmao
what's that easy?
changing the Profile Views thing
thats the whole point
ah#
well idk what the conversation is about
I'm just trying to farm xp
so ... :))
nah it's not just you
it looks fine to me
it's tiny unless you click
its elara mitten just more complicated because that's how life works
speaking of which, I procrastinated learning again
elara is more important tho

welp xD
Coursera keeps sending me notifications to complete the scala course as well
oof
ded
do i make the switch to allman
Nay
oof to matt
Dont
For people interested in web development shit, I wrote my first blog this week: https://panoply.tech/blog
it doesn't ๐
do it
the only thing putting me off is this
what have you got to lose
it dont look right
i love it for classes and functions
ew
niceeeeeeeeee
Move to c# allman pleb
o
c# ugly
just like kotlin
๐ฆ
and then proceeds to convert a poor man to the allman gang
@dapper arch White theme code snippets, my dissapointment is immesureable
I stole them from somewhere that had white background ๐ฆ
I suppose I could have used a dark mode plugin first
yea odin was sxtanna's
and ty
it's looking good ๐
also still pretty fast which is nice
obviously
Is 1.16.4 finally on par with 1.8 performance wise
Ffs i just want 1.8 to die
pvp ๐ฅฒ
Pretty sure downloading one plugin fixes that
it does not
"its just not the same"
uhh kinda
Literally like 30 versions behind
I've said this a while ago but blockhitting doesn't work on 1.16 servers
Tbh I can't play anything before 1.13 just because minecraft without swimming feels sluggish af
whats that website
?
it does in software
"yeah so today were gonna use microsoft access 1997 instead of office 365 version of access"
๐ญ
Rip
it might be 23 years old but it has a really nice feature so we're not gonna upgrade ๐ฅฒ
just ONE really NICE feature
LMFAo
๐ค
Too old! (Click the link to get the exact time)
oh
but my cannon jars 
eh its only 5 years

1.8 is just boring factions servers and 300 different expensive spigot forks
miss me with that
one of the best websites ever
absolutely
300 different expensive spigot forks
with API breaking changes and shit ton of bugs
obviously
hm
bUT mY cAnNOn jaRs ๐
1.7 is pretty nice
wHAT
no its not
Eventually microsoft will fix newer versions so they are better than 1.8
i doubt it
they have no incentive to
whats nice is using updated software
1.8 is nice
however MineKraft will fix 1.16 performance
BEDROCK
multithreading will make EVERYONE switch to the latest
lol
PDC is nice, new blocks are nice, consistent mechanics are nice, non buggy api is nice
Honestly 1.16.4 is great imo
how about pvp
magic numbers ๐คข
dkim theres like 10 different plugins that fix pvp
What even is blockhit pvp
its not perfect tho
u spam left and right click with ur sword at the same time
whats ping wars
its better than suffering through 1.8.8 just for pvp
๐ฆ
1.8 is the equivalent of Adobe Flash Player
lmao
lol
it actually is lmao
I have a question - have any of you used BLC or lunar before
yes
hypixel is fun
I'm on like a 40 daily reward streak
and like a network level of like 55
:o
wdym 2k?
2k hours?
๐ฎ
what version do u play on
hypixel
.
u forgot the .
yAy
@prisma wave do u know how the return when expression works?
does it just put an implicit return at the end of each when statement?
asking because as im having to explicitly return inside of an if statement that should just return there, i assume this is so it just reduces overhead
yeah pretty much
return when (x) {
1 -> println("lol"); 3
2 -> 4
else -> 5
}```
the last expression is returned
alright np, ty
always a pleasure
although i don't think there's any overhead reduction, it's just a bit cleaner
hm and that i guess ๐
lol
Yea it's an optimisation I believe
Comparing hash codes is faster than comparing strings
So if it's a constant you can do that
yo what's the newest and best version of sublime text? I know there's sublime text 2 but I think I've heard of 3 maybe?
or even 4?
or will this https://www.sublimetext.com
just download me the best version
oh
did't see that
didn't*
Integrate your service with Discord โ whether it's a bot or a game or whatever your wildest imagination can come up with.
Game changer.
<img src="img/logo.png" class="navbar-brand" width="55">
<a class="navbar-brand text-light">Test</a>
``` So... how much does bootstrap actually do, like can i make it so theres only a little bit of space between the image and the text with bootstrap or like?
Setting a standard
rushed feature tho
@hot hull ๐ mine shipped too
@steel heart
wanna switch science grades
we can switch math grades and science grades
๐
Ye sure
im not pulse but ill swap
@static zealot sublime 4 is in beta
Go away he is mine (:<
use 3 for now
8am
1:20
Kekw
to someone who is more experienced than I am with gradle, I'm having an issue where my plugin loads as PAPI.
I am using PDM for a plugin for the first time cause I wanted to try it out, and its working great. I just tried to add a new dependency and ran into an issue.
I added PAPI as a compileOnly dependency, and it seems to be adding it into the jar, as well as its plugin.yml which means that its actually running PAPI and not my plugin. I think the issue is from this here
// FIX intrinsics generation with PDM.
jar {
// TODO fix this shading PAPI or something causing JCore to load as PAPI
from { configurations.compileClasspath.collect { it.isDirectory() ? it : zipTree(it) } }
}
Adding this solved an error I was getting about Kotlin Intrinsics, but it seems to be causing some issues as well. any ideas what I could maybe change this to so it stops adding PAPI into my jar?
full build.gradle for root project https://paste.jaims.dev/netigisoyo.js
build.gradle for bukkit module https://paste.jaims.dev/olaxuwoyut.nginx
or is there another way to fix the Intrinsics error (https://paste.jaims.dev/hapijeqate.cs)
Huh, found an interesting "bug" with property mapping when used with Kotlin on an internal property, so, ConfigMe will map the bean properties based on the getter names, but when using internal it'll not work, the properties will be saved as variable$moduleName and a lot of mapping issues will happen
Yeah
I'll see if i can fix it
Damn, it comes from Java's bean package, so can't really fix the "getting" part
Might have to make a hack solution
So, a solution: get the bean name as descriptor.getName().replaceAll("\\$.*", "") :kek:
Ooo nice
just 1.16.4 atm
not gonna bother loading the others till I implement fields & constructors
got the loading times down loads btw
takes 20-30 secs now
vs 90+ secs
couldn't really optimize the actual indexing but I just made it more parallel
Lit
vs the 1+GB it used to take
What was the issue earlier?
oh I see
only thing I'm storing in memory now is key names
which prevents nosql injection & also allows me to keep the algorithm stuff in java, and not on mongo
hmm,
I need help ๐ญ
with?
Life
well I'd start off with finding a new role model, x didn't succeed at that goal
k
He just wanted to help others
Who the hell is x?
some dead rapper
oh
The dead rapper sounds like someone whose rapping career died
Is Tupac remembered?
2 legends
well I've been testing with just spigot
but it should work with all
I'll need to load the jdk on there too so it better work
Nice it's pretty cool
actually there's one thing that'll break it
it uses the javadoc index to get all types https://hub.spigotmc.org/javadocs/spigot/index-all.html
spigot's looks like that
but java's looks like this https://docs.oracle.com/javase/8/docs/api/index-files/index-1.html
the problem is with the fact that it's multi paged
haven't added support for that yet
shouldn't be too difficult though
Lmfao Piggy
I wish web development was like... good
<img src="img/logo.png" class="navbar-brand" width="55">
<a class="navbar-brand text-light">Test</a>
``` So... how much does bootstrap actually do, like can i make it so theres only a little bit of space between the image and the text with bootstrap or like?
So how make those two elements closer lol
but keep distance between the rest of the elements in the navbar
https://getbootstrap.com/docs/4.1/utilities/spacing/ This might help explain it better than I can haha
You could use like a ml-1 class which would add a very small margin to the left
that looks the same from what I can see,...
Play with the numbers, see if it makes a difference.
It can go upto 5
depending how much of a margin you want
Could you send ss of what you have rn?
<body>
<nav class="navbar bg-primary">
<img src="img/logo.png" class="navbar-brand " width="55">
<a class="navbar-brand text-light ml-1">Test</a>
<a class="nav-link text-light">One</a>
<a class="nav-link text-light">Two</a>
<a class="nav-link text-light">Three</a>
<a class="nav-link text-light">Four</a>
</nav>
<h1>Hello, world!</h1>
</body>```
that ml-1 does nothing
<nav class="navbar navbar-light bg-light">
<a class="navbar-brand" href="#">
<img src="/docs/4.1/assets/brand/bootstrap-solid.svg" width="30" height="30" class="d-inline-block align-top" alt="">
Bootstrap
</a>
</nav>
Try using something more like that for the logo and text
put it in a container
That too lol
would that group the two elements?
now the logos ontop of the text lol
ah
making it an inline container solved that
now theyre a bit too close so i tried adding ml-3 to the text but it didnt move it at all
Try pl-3 which does padding instead of margin
still didnt move
@quiet depot What do I do with the tree.exe now? If I run it, it shows the plugin structure but exists immediatelly which is kinda ??, and If I try running tree in bash it doesn't exist
Add it to the path
did you add it to /usr/bin?
Then you should be able to access
also wym exists immediately
๐ณ
bash: tree: command not found
Is this git bash?
yes
Or an actual Linux install
It's git bash yes
Figured it out, danke bb
@obtuse gale have you seen some of the navbar examples on the bootstrap docs? They have some pretty good examples which you can play with, to get what you want exactly. I always use one of them then just tweak it to what i want.
another really good place to find examples is bootswatch @obtuse gale
(thereโs also bootstrap themes on there)
you just click preview on one of their themes and thereโs code examples for everything
bookmarks that for reference for my own use later :3
The feeling when 10 other plugins have issues, so your plugin cucks up as well, even though it works fine in testing :C
Lol
@prisma wave have you ever seen this issue? #dev-general message
Huh, i guess it's in the Kotlin docs:
internal declarations become public in Java. Members of internal classes go through name mangling, to make it harder to accidentally use them from Java and to allow overloading for members with the same signature that don't see each other according to Kotlin rules;
Yeah unfortunately that's how internal is used
Yeah, i guess i'll have to go with my hacky solution for it
any reason you can't just have them public?
Basically because it needs to be an Optional which sucks to be passing around, so i have a public variant that'll make sure it's never null, so the writable property is internal to be written but not public to be used on the api
It's not a big deal, just me over complicating it
Hmm
Document-
Anyone here experienced with Hetzner (the server hosting provider) - as I've just purchased a network upgrade (1 GB/ps to 10 GB/ps) for my dedicated machine and it's been "booted in rescue mode" but I don't see my files, how can I find my files/exit rescue mode?
@ me
Does anyone know a bungee plugin where you can set servers to groups so if you run /test it will send you to servers under the group test so for example.
Groups:
Test:
- test1
- test2
- test3
what
make it ๐
theotherpig
Hi i need someone who know to make spigot plugins version 1.16.4.Project is about Anti-Cheat idea is good.So if anyone know to work with that DM me i working on c# side.
please use #783231033629212672 or #783231030860972032 if you're willing to pay
Oki ๐
C# side? 
Not trynna be rude, but I understood nothing of that sentence
maybe understand better
@surreal quarry shut up weeb

@surreal quarry i'm sorry for my English but i want create anti cheat which you need run on your pc like .exe then all of this data sending to server then plugin checking everyhing then allow or not.
And that .exe app is writen in c#
like 3rd software
idk really... i pay before sometime some guy in facebook
and you know what?
i got blocked......
I have full plan on paper how that work and its possible
that block 80% of cheat for sure
everything i need is plugin
Well I mean yea just scan through system files, not really that complex, issue is I doubt anyone will trust a 3rd party software being ran on their pc
Here in my country there is 2 server with 3rd software
And they have a lot of player
BTW i play on some server
i'm sure i play without cheaters
String#substring function starts at 1 right, unlike Collections that start at 0?
pretty sure its 0 indexed too
@surreal quarry sorry i try to ping Frosty ๐
@hot hull correctly scan just minecraft files and sending me UUID and maybe HWID but for now no
starts at 0
ah k
What type of programmer are you that don't start on 0? smh
o
Julua
But I play on Linux 
also doubt anyone's going to install an exe
to play on a minecraft server
or scala
gomoon
or rust
haskellmoon
rustmoon
that is a good idea

i just noticed something awful
seems like a certain james gosling forgot the Liskov Substitution Principle
what is volatile
iirc it means the value will always be stored in ram, not cpu cache
because if it's in the cache of 1 core, it might not update for another core or something
so for multithreading
volatile is good
genius
Lol
computer manufacturers dont want you to know this easy trick
Yeah
Lol
fortnite
the banned word
how could you? where did you get the power to say it
fongoda
doesn't work
please
die you devil
...
its a good game
but there are better games
that came out in 2020
what is this "f word"
Cyberpunk xD
none of those start with an f
F||riend||
๐ฌ
F||orge||
fabric
face
face
fact
factor
factory
faculty
fail
failure
faint
faint
fair
fair
faith
fake
fake
fake
fall
fall
false
fame
familiar
family
family
famous
fan
fan
fancy
far
far
?

I love how some words repeate
for adjectives, nouns and adverbs xD
I forgot to remove them lmao
fabric
face
fact
factor
factory
faculty
fail
failure
faint
fair
faith
fake
fall
false
fame
familiar
family
famous
fan
fancy
far ```
here better
...
fabric
face
fact
factor
factory
faculty
fail
failure
faint
fair
faith
fake
fall
false
fame
familiar
family
famous
fan
fancy
far
familiarity
:]
fabric
face
fact
factor
factory
faculty
fail
failure
faint
fair
faith
fake
fall
false
fame
familiar
family
famous
fan
fancy
far
familiarity
@obtuse gale cool
message quotes will never die !
Dev general ya know
they are the best source of xp
ye I know
we're just using the general part
we don't need the dev part
lmao
When you drop 999 IQ sentence
So this is a weird one. I'm using github pages and I've made some changes to index.html in my pc, used gitkraken to upload and I have this basically: <link rel="stylesheet" type="text/css" href="css/style.css"> but the problem is when I go to the page it doesn't actually use style.css
its just the html
I've tried using the actual github link instead
https://github.com/BlitzGamer-88/blitzgamer-88.github.io/blob/master/css/style.css this you mean right? I tried using instead of css/style.css but still doesn't work
oh wait
something definetly wrong lmao
what the fuck
Try ../css/style.css
I've messed up something because now it doesn't work on local either
ah in local it works if I just use href="css/style.css">
but if I use the actual url
it doesn't work
ah
It's loading it correctly
wonder if raw.githubusercontent will work
well in local it works
when I post it to github it doesn't
try /css/style.css
nope
I mean that screenshot i sent you is from your GitHub website
doesn't work on local or on github pages either
wait what?
this is the link
this is how it looks for me https://i.imgur.com/8OZIJ35.png
Smells like cloudflare caching
possibly
enable development mode
in cloudflare dashboard
it looks like this for me
ah
so its just for me then
huh no idea where to get to the dasboard. I didn;t set up any cloudflare
oh then nvm about cloudflare lol
hello can someone help me im trying to add sub permissions here the class im trying to do it with ๐
#development for dev support :)
thanks @obtuse gale
fetching user data from different games I suppose?
or just statistics in general
ยฏ_(ใ)_/ยฏ
i think you can get info about players ranks and stuff as well
theres a discord bot which uses it to sync your rank (and i think guild ranks) with discord roles
im sorry
but who the hell wants to parse this:
departure location: 44-825 or 849-962
departure station: 26-296 or 316-965
departure platform: 46-889 or 896-949
departure track: 48-351 or 369-960
departure date: 25-869 or 884-966
departure time: 31-217 or 232-956
arrival location: 32-559 or 574-967
arrival station: 50-383 or 394-952
arrival platform: 29-128 or 150-962
arrival track: 30-630 or 647-957
class: 45-262 or 277-966
duration: 35-602 or 619-965
price: 41-913 or 926-966
route: 38-191 or 212-950
row: 25-509 or 523-965
seat: 39-783 or 802-973
train: 36-64 or 80-969
type: 42-750 or 767-974
wagon: 29-803 or 821-974
zone: 47-659 or 672-968
all the substrings and indexOf and lastIndexOf
๐คฎ
Regex my dude
its still pain in ass to make a regex though for that
Not really
if you look at the data carefully
there are a lot of areas of mistakes
for example you cant check for the word or simply
departure platform: 46-889 or 896-949
has or in it twice
you would need to find last occurance
And you put the easiest example lol
I don't know the exact details of what you have to extract but it isn't hard
@forest pecan https://regex101.com/r/Dh5WUK/1
ty for spoonfeed ily
jkjkjk xD
I used my big ass for loop and it worked lmfao
Map<String, Set<Range>> props = new HashMap<>();
String line = br.readLine();
while (!line.isEmpty()) {
int colonLoc = line.indexOf(':');
int firstDashLoc = line.indexOf('-');
int secondDashLoc = line.lastIndexOf('-');
int orLoc = line.lastIndexOf("or");
String propertyName = line.substring(0, colonLoc);
Range first = new Range(Integer.parseInt(line.substring(colonLoc + 2, firstDashLoc)), Integer.parseInt(line.substring(firstDashLoc + 1, orLoc - 1)));
Range second = new Range(Integer.parseInt(line.substring(orLoc + 3, secondDashLoc)), Integer.parseInt(line.substring(secondDashLoc + 1)));
props.put(propertyName, new HashSet<>(Arrays.asList(first, second)));
line = br.readLine();
}
im too lazy to learn regex

@prisma wave
Should you worry about an objects hashCode being to big in size? It would be converted to a negative int eventually right?
I highly doubt you'll manage to get an overflowing hash code
It's statistically unlikely
Most hashes are in the 10000-100000 range
I think
Although that might be hex
But I shouldnโt worry about it if it would go to the negative thing?
Probably not
wits been like aggeges since ive made a spigot plugin.....
wits been like aggeges
shush
in spanish
we have to make our "daily routine" videos
and we have to film like
shit we do everyday
like waking up, brushing teeth
oh god those videos lmao
I've seen them xD
lies :^)
bro it has the weirdass
music in the background
at least i lowered it by 45 decibals

too good for you to understand 
ffmpeg lol
Lol
they are watching mine
so fuck me
oh shit
i just said in the credits
Senora
when my spanish teacher is a male

Anyone experienced with hetzner "rescue system"?
AHAHAHAAH
IKR
@prisma wave what have they done to you?
no more elara mitten
oh rly? xD
you saw nothing
good
that's what I thought
so I have a navbar made with hml and css, and in this navbar I have an icon (img). How would I set it to be the height of the navbar
but if that's not an option just set the height using a proportionate unit
percentages for example, are one such proportionate unit
they're proportionate to the parent container fyi
you're going to need to provide an example
this is weird
made it position: absolute
and now if I use percentages
it uses the parent height and width
interesting
yeah now
just use bootstrap
please
it's so much easier
you can theme the fuck out of bootstrap
helpch.at & piggypiglet.me use bootstrap
they don't look anything like bootstrap
angularjs ๐
ew
lol
OH
also bootstrap has the benefit of being responsive
so like there's really no reason not to use it
lol k
I'm doing it to torture myself
what happened to squidward
ah
even with bootstrap it's super useful to know how to use flex
my navbar is so responsive that if the screen is 600 px or less it just hides the icon and doesn't float it to right anymore lmao
do you know how to properly use chrome dev tools to test responsiveness?
You can change the device size
and make custom sizes and drag around and that stuff
and also change signal strength
no xD I don't even use chrome
well
use chrome
their dev suite is the best afaik
they've got loads of presets for different device sizes
ah I see. interesting
you can also select signal strength to see how slow or fast your site loads
what browser do you use?
under bad signal
Opera Gx
what the fuck
nah
Yeah
why on earth do you use opera?
lmfao
right anyway
for speed
just run your shit through critical and she'll be right
compress images a bit
blah blah
use cdns
google has a nice site for testing speed: https://developers.google.com/speed/pagespeed/insights/?url=https%3A%2F%2Fpiggypiglet.me
apparently my site isn't great
looks like the main issues with my site is images and not using cdns
I'm just to good
font :d
oof





