#dev-general
1 messages ยท Page 283 of 1
nice
A member of staff has requested I move your message to a paste,
Most likely beacause it contains a config/error/code snippet.
wtf
You're welcome
xD
what in the
btw pulse progess on foobar?
i didnt start level 3 yet
i was doing some usaco
cause gold had dynamic programming in it
usaco?
ah
gold division has dynamic programming in it
and thats in foo bar level 3 apparantly
with like shortest path algorithms
and stuff
as well
ah I see
wow
nice
For web development what tool do you guys use? Do you use visual studio or a jetbrains alternative?
or other
if you want something super lightweight you could do brackets
like lightweight ide
very lightweight not many many features
but usually most ppl go vsc
i think there is a jetbrains php ide?
Yeah phpStorm
imagine wanting to use PHP amirite
I don't know much about web development at the moment so whatever would be easiest to learn with. Not sure if more features or less would be better.
use WebStorm
only problem with WebStorm though is that you need to pay for it
Haha, I have to learn php at uni ๐ฅฒ
I have the education licence so i think I have access
I think
Awesome
ikr
idk why jetbrains ide is so expensive though without it
I get it with the GitHub Student Developer Pack
top quality tools for a top quality price
Yeah ig but idk if its worth spending the hundred bucks
per year
lol
or not 100
500 bucks per year for the ultimate
I guess it would be for corporate companies
per user
its not company
Buy IntelliJ IDEA Ultimate: Get JetBrains Toolbox subscription for an Organization, for Individual Use or view Special Offers.
DrJava is a great IntelliJ alternative
For individuals its 249
500 for first year, then 400 for next year, then 300 for the third and on
oh
Oh yeah nvm
I mean for a year its not that bad I guess
i like how intellij itself is like 150 bucks but getting every product in jetbrains is 250
lmao
Yea all the other products are just IntelliJ IDEA Ultimate with a few plugins bundled with and some changes for menus
yea ig
You can use Ultimate instead of any of the other IDEs if you want
yeah
OS License 
oh yeah that
This might be a hard-to-explain question, but does anyone know of a website that I can host that does something like this?
No, a place for my clients to leave a review for me, and for all the reviews to be in one place.
your spigot profile 
i just managed to have an entire shave in the time the gradle daemon took to start wtf
it's still going
lmfao
Lmao
@surreal quarry what os do you use?
operation system
window manager
its a terrible name but yea i like it
I should start getting used with other OS than windows.
yea windows bad
not really
dual boot
then you can use linux for most still, windows for anything else like apps that dont work, gaming, etc
no idea what dual boot is or how to set it up and idk what the requirements for that are xD
as in PC components
it would work fine iwth a normal pc
you just install 2 OS give each a bit of the hard drive and then when you start your pc it asks you which OS youwanna boot into
oh well the hard drive part might be hard because I have like 100 GB left
I think I'll do a windows reinstall at some point. I just need to find everything I need and get them on a USB stick
yea
oh nvm I have 200 GB in total 30 for C and 170 for D
well probably less space for ubuntu since most of that memory is games
if you install windows first, i know at least w/ ubuntu it recognizes windows and makes it really easy
even tho I uninstalled a lot I don't play anymore
im assuming manjaro and others are similar
how much does the os take? Like Ubunt 20.40 or whatever is the best
or which is the best I guess?
if i reinstall i would go w/ manjaro which is arch based
yea
the main difference is the package manager
arch's package manager is much better
but idk never used linux, do the commands mostly transfer?
talking about the line commands
because I kinda want to learn to use those
from windows -> linux or between different linux distros
for different distros i believe its the same except the package manager, and windows -> linux is sorta similar, but you will need to learn some new one. you use them so much though that it doesn't really matter you pick the main ones up in about a week at most
windows cmd sucks compared to something like bash
^
than manjaro?
aren't they the same?
zsh > bash
true
i think i use all of those
than ubuntu
zsh good
ah yeah definitely
so i suck at web dev and i want to add a scrollbar, but even if i add the overflow: scrollbar to the css it doesn't work. https://github.com/PulseBeat02/PortfolioWebsite website here: https://pulsebeat02.github.io/PortfolioWebsite/
any tips
oh
but the overflow-y doesn't work tho I see
yeah
ah found something dk if it will help but try setting height: 100% for your body
I just found this on a stackoverflow post
lets see
@forest pecan one question. how did you make the /PortfolioWebsite ? can you just do /ProjectName and it will display that project?
what doesn't work?
System.out.println(Pattern.compile("\\_(\\d*?)\\_").matcher("org.bukkit.craftbukkit.v1_16_R3").group(0)); this
"No match found"
What do you want to match there?
Read the warning Dkim
System.out.println(Pattern.compile("_(\\d*?)_").matcher("org.bukkit.craftbukkit.v1_16_R3").group(0));
new code
still won't work
Also why *??
\d* matches digits
i just did github pages
lol
in regexr it works fine, as shown in https://regexr.com/5ldgv
yeah I know but does it do that?
Yeah
\d+ - 5 steps
\d*? - 10 steps
I wondered how you can listo ther pages
Yea
afk, pls ping me if u come up with an answer :))\
@half harness no explanation just pinging
xD
Pretty bad habit of asking for help and going afk "because someone will fix it for me" instead of trying to figure it out by yourself while someone else helps
๐
@half harness idk what this is but _(\\d+?)_ it works xD
@Override
public void onEnable() {
}
yes?
how to crash your server in only 70 bytes
class a extends JavaPlugin{@Override void onEnable(){System.exit(0);}}
๐ฅฒ
You escape the matrix
i love writing breaks for every single switch case SO MUCH
its really ENGAGING and THOUGHT PROVOKING
for real tho
why are you doing this to yourself mrister bitten
๐ฅ
commission
trying to resist the urge to give into lombok rn
๐
well
No
hey its not your problem after you turn it over
No
i could probably persuade them to use kotlin
but
it's a framework so im not sure they'd be happy if i used a language they didnt know
Persuade them to use Elara
tempting
Very
if you put them through lombok's hell they'll eventually learn that kotlin is the way
i just wrote about 30 classes just so i could have a single line loggingComponent.getLogger().warning
god
๐
rip
ENtERpriZe
ALL OF THIS just for a simple logger
why lmfao
theres no way it had to be that complicated
well
i wanted to make it very extendable and very customisable
so
Logging:
Prefixes:
Info: "&a[Info]"
Warn: "&c[Warning]"
Error: "&4[Error]"
Debug: "&9[Debug]"
Disabled:
- Debug
``` i made this
and then i needed a proper serialization toolkit
then i could add different logger abstractions that used that
and then it was ready ๐
wait no it's not
need another component to translate the colour codes ๐
lol
Not for me ๐ญ
"fuck you!".log()
}```
I tried .find() and it seemed to return true but .group(0) just gave an error
Just import elara/logger
whoever invented hcaptcha deserves nothing but good things in life /s
hmmm
word cannot express how much i enjoy writing @obtuse galeable or @NotNull before every single thing
it's so rewarding ๐
oops
lmao
lol
what the fuck do I believe now? https://i.imgur.com/rl7PDZh.png
because it says I am human
but also
I am not
but how the fuck is the captcha wrong? Like hCaptcha and its creator can both suck my balls
Have you tried the new shadow captcha?
Try to login on the minecraft website to find out ๐ฅฒ
I gave up at one point and used the audio option
hcaptcha gives you 2 pages of things moving so its very blury
and I completed it
like it says its fine
but also says captcha is wrong
so what the fuck do I do now? refresh and do it again
of course
๐
lmao
๐ groupCount returns 1
sometimes they give trains for example and they give a door of a train
but I have to guess its a train door
or the one
where there is a traffic light
thats like 0.11 cm
in the other box
and you are like
should i click that?
oh not for me lmao
not clicking and clicking
yea
well all their photos are bad
like they're training the AI on very bad photos
I guess
googles captcha trained them enough to see most clear photos
now they need to take it one step further
btw if you didn't know captcha data is used to train AIs
like is there a train in the back? https://i.imgur.com/asly1Qf.png
like the page is white its 1:26 and I have to stare at a 10x10 pixels photo
to see if 2 of the 100 pixels is a train
I've literally spent last 15 minutes with this instead of doing what I wanted to. I even forgot what I was doing
lol
I GOT IT
YESSSSSS
๐ฅณ
Code: ```java
final Matcher matcher = Pattern.compile("(\d+?)").matcher("org.bukkit.craftbukkit.v1_16_R3");
matcher.find();
System.out.println(matcher.group(1));
I had to do find()

;-;
what are you trying to do, extract the version?
๐ซ
yes
bruh lol
took me 3 hours
you can just do this
but i did it
server#getVersion?
i need a number
isn't that a thijng?
yes
this returns the v with it
;-;
but you can substring
Bukkit.getServer().getClass().getPackage().getName().split("\\.")[3];
v1_16_R3 is what ends up being outputted
VERSION = Bukkit.getServer().getClass().getPackage().getName().split("\\.")[3];
Yea
or
Bukkit.getServer().getClass().getPackage().getName().split("\\.")[3].split("_")[1];
if you want to get the 16 I guess
idk what would you be using the 16 for tho
-_-
why didn't u tell me earlier
๐ซ
actually
why didn't I think of that
or anyone else that saw my question :c
well because they're not as smart xD
O_o
now time to see why my domain isn't working
xD
I go to to my server console to restart the server when I see this-
xD
also
why does it say im on liquidbounce
every other time it says im on intellij
:c
btw Pulse this is where I know that from: https://www.youtube.com/watch?v=MWu2UiLLJI8 I think or this one: https://www.youtube.com/watch?v=o1zNIm8GVPY
don't remember
xD
xD
ok what the hell
github recommends using the dig command to test but git bash doesn't even find it
lmao
im sure linux has it ๐
can you go to: https://blitzoffline.com and tell me if anything shows?
a big black screen with a thing in the top left and right
but why would they recommend it if it doesn't exist? ๐ฆ
it does 
well not in git bash
and that's what they recommend to use
well anyways I know its just for me
it will show up
eventually
clear your cache
open your chrome history
lol
yeah not on chrome
yeah I know how
I just thought of something else lmao
I will switch to chrome tho I think
but I like Opera Gx a bit to much xD
edge > chrome
im not using windows 
o
netscape
Might be
possiblke
i can't put higher
Health must be between 0 and 2048.0, but was 100000.0. (attribute base value: 100000.0)
lol
1024 hearts
Its exponent is not a multiple of 2 even
It's just a weird measurement
yea
They could've used Short like everywhere else
its 2048 so it doesnt fill your screen with red ass hearts
lmao
at that point a side of your screen is just hearts
if you need higher dkim you can decrease the damage
you could probably make the client think they have more hearts
idk how I didn't think of that :p
yeah but thats kinda hacky. just make it so each heart value is worth more
by decreasing damage
or smthing
Boundary break :)
And that isn't hacky?
doesnt require nms
lmfao
just listen to attack event
set attack damage
lmao
not hacky at all
lol
lets give the entity 10,000 hearts
??
instead of cancelling the damage
๐คท
lmao
lolll
uhh
knockback
event.setcancelled gets rid of knockback and damage
but setdamage sets the damage to 0
mob.flashRed()
d;spigot Player#flashRed
boolean isLeashed()```
Returns whether the entity is currently leashed.
whether the entity is leashed
๐คจ
Yeah the docdex doesn't have it yet
its because you aren't using flashRed
Such madlad...
you've sent like 13 messages about your issues
and didn't mention what the actual issue was once
oops
lol
idk why but I feel like my headphones have more bass out of nowhere
I'm at 30% youtube volume and 50% headphones volume and its fucking loud
well its middle of night but still
ah nvm I was wrong
i always have my headphones volume at ||this is offtopic||
for some reason its 100% on youtube side
nvm then
ah this is more like it
oh damn I clicked wrong channel xD
fuck I've cleared my cache and history and all that and still doesn't work ๐ฆ
I hate this
no
democracy will decide
ok
;-;
put it
i won't downvote unless its bad
if you want to showcase it
uh
uh i have to open up mc without hacks then
i dont think anyone would have noticed
i guess if you have a big overlay
when they'll find out
don't mind my horrible fps
hmm
maybe when i put this plugin into actual use
๐คท
its a little useless right now
oh well
ill showcase
nice
damn my back hurts
obs makes my mc fps go to 8
lol
hm
whats a good way to remove mobs
right now I make players remove by uuid
but thats sorta weird
damn anyone can borrow me 100$ to buy a desk chair? XD or just borrow the chair
i have tabcompleters and a command to show what mob it is tho
destroy any evidence of it every existing with 20,000 megatons of explosives
or just kill it normally
up to you
๐ณ
nice visual code github integration works
"nearest" or "closest"
They didn't need to call us out like that ๐ฉ
hmm pulse kinda made me start working on websites again but I have no idea what to do xD
lmao
damn the gradient
pog
oh on bigger screens it looks even better damn https://i.imgur.com/y6tLKvj.png
it destroys my eyes
i like to do web dev
but the only issue is screen sizes
which is a fuckmess to deal with
you have to use like vs
vc
i forgot
the unit
you use which is relative to the screen
yeah
I always sit on a wooden chair on computer work lol
thien my other chair broke finally and I now sit on a chair with no back
F
Are the gradient there generated?
yeah its css's inline-gradient and I just give it 3 rgb values
Nice
I also use this tho: https://cssgradient.io
it gives you the css line directly
and you can preview it
which is nice
even tho I use a live server so it auto updates my website
nice
I guess I should make a protofolio website and showcase absolutely nothing?
btw @forest pecan did you get the scrollbar to work?
Lmao
i have to play my clarinet lmao
xD
and then i can get on my computer and code
the issue was that on my old mac screen the screen was too smal
so i didnt see the div
and i was like confused af
xD
well its not just yours
mine as well
I just zoomed out a lot
there should be a scrollbar there. that's what the hieght:100% should fix
ah I thought he chose to play it. I never liked things you have to blow xD. but at the same time I've not really played any instruments at all
I played violin for about 5 years as well, haven't touched it in over 10 lmao
nice lol
๐
@half harness is /remove all a thing? if not you should add that as well
oo good idea :>
lmao idk
fontawesome is pretty nice. weird that I've not heard about it before
How can I make this look better ๐ค
or even better yml UUID: world: world coords: x: y: z:
@half harness ^
hmm anyone here sing VS Code?
is there a way to change TAB to do 2 spaces instead of 4?
Yeah
Go to settings and search for tab and you'll find tab size
kk
2 spaces ftw
Java yes, html, css, js, nay
Yeah 2 for all those
uhh btw this is in chat
hmm
used yaml because it looks nice in discord
JSON?
on hover
๐
yep
and on click they can copy it
hmm
the thing is
you can't directly copy to clipboard, so u have to (somehow) put in chat... what text should I put in hover ๐
"click to something"
hmm can't you? oh I for some reason tought you can
just make it recommended in chat
as command
or whatever its called
wot
like it opens the command terminal and pastes it there
yes
and they can just ctrl+a and ctrl+c
which is what I said -_-
but
what text should I put in hover
ah yeah copy to clipboard is 1.15+ only
I also just realized
or even check version and do copy to clipboard for 1.15+
would it give an error if I have ZOMBIFIED_PIGLIN("ZombifiedPiglin", EntityType.ZOMBIFIED_PIGLIN); in my enum?
and I have a /spawn random
maybe
it might spawn a high version specific one
hmm
should I just make 10 enum classes
i can't think of anything else
also why do I only have 1 upvote in #showcase ๐
I can't use interfaces and implementations for enums ๐ซ
rip
well I guess its time to read 100 pages on what flexboxes are and how to use/make them
uhhh
well actually idk if they're 100 xD
probably 1-2
oh and finally
I can see my website updated as well
jesus that took a while
๐
this is bad
Already at 1.12 and so far every version had a mob addon
i dont like the way its going ๐ซ
xD
now im at 1.11
NOO
parrot
illusioner
don't even know what that is
why are there so many new mobs in 1.11
ugh idk
40 new mobs from 1.10 -> 1.16
because 1.11 ?
Making a whole class for just one animal - polar bear :p
You can
Oh well you're on your own with that 
You can still do it in 1.ass iirc
okay, 1.8 - 1.16

huh?
You forgot the .
what is 1.ass
1.8

public static String getIp()```
Get the IP that this server is bound to, or empty string if not specified.
the IP string that this server is bound to, otherwise empty string
;-;

Amazing
๐ข
Truly amazing
public Entity getEntityByUniqueId(UUID uniqueId) {
for (World world : Bukkit.getWorlds()) {
for (Entity entity : world.getEntities()) {
if (entity.getUniqueId().equals(uniqueId))
return entity;
}
}
return null;
}
๐คข
wait
theres no craftworld documentation right?
xD
CraftWorld#getHandle().b(uuid)
Does that really need answer?
๐
public Entity getEntityByUniqueId(UUID uniqueId) {
for (World world : Bukkit.getWorlds()) {
for (Entity entity : world.getEntities()) {
if (entity.getUniqueId().equals(uniqueId))
return entity;
}
}
return null;
}
```lag?
Tbh that might be one of the cases using a parallel stream makes sense
whats a parallel stream?
does anyone else have IntelliJ constantly running out of memory even though you have like 4gb allocated to it?
Eyup
my ij is using 1.3gb ram rn
Because
time to just throw 16gb at it and see how it reacts
would Bukkit#getEntity make a MethodNotFoundException?
Does it exist?
MethodNotFoundError?
what ploogins r u using?
whats codeglance
ah like sublime
ye
try disabling that
:(
lol
mine just freezes every once in a while for a solid minute and it's just obnoxious
I'm not at the moment
this was happening on a build older than this one before I updated though
what jvm are you using?
what jvm is intellij using though
uh one sec will have to go digging for that
the gradle jvm is 1.8.0_242, not sure how to find the one intellij is using
fefo i cut times by half on docdex, found a super optimized jaro winkler impl
for (World world : Bukkit.getWorlds()) {
for (Entity entity : world.getEntities()) {
if (entity.getUniqueId().equals(uuid)) {
return entity;
}
}
}
return null;
```if I run this every tick, will it cause lag?
most likely
thereโs a few metrics in the jaro winkler algorithm
hm
why would you
it certainly wouldn't make your server feel very good
cause lag though? probably not
maybe a couple at most
I can make it async and use callbacks
making that async kind of sounds like a bad time
but for now ill make it sync and see the lag
oh
yes
true
hmm
what can I do ๐ซ
common characters and transpositions
what exactly is your overall goal here
:c
get entity by uuid in 1.8
why would you run that on every tick,,
typically most impls of the algorithm have separate loops for counting
this impl does it all in one
why not just have your own uuid -> entity map or something
bc
additionally Iโve stopped using strings, only using ascii byte arrays now
a plugin might remove a mob
do you have the uuid stored in a yaml file or something
how much of a performance improvement is that?
because memory-wise it wasn't that much 
anyways ive been procastinating enough, I've got a big assignment due tmr morning that I haven't started
idk about itโs effect on performance
ChunkLoadEvent -> get entities matching the uuids, cache them, every like 5 seconds or so loop over the whole map and remove any where Entity#isValid is false
but it saves a bit of memory so whatever
lol
mate
OR
you could make it 5 seconds and lose nothing, the chances of a player finding that mob within 5 seconds of it appearing in the world is so astronomically small
why not just listen for the spawn event
it isn't called on chunk loading
o
yes ^
well
actually no
if you listen to ChunkLoadEvent you can do Chunk#getEntities
There is an event Reason or whatever but it literally states it never gets called and yeah it says you should do that instead ^^^
"You Can't Just Shoot A Hole Into The surface of Mars"
epic
that's a big hole
someone knows a cool font? I'm trying to have a big Blitz show on my page xD
and I'm bad at fonts I usually just use defaults
lmao
liar
except for you โค๏ธ
๐
but i meant compared to others
the one right above me has 10 more
im wondering
im trying to find a way
to display my github projects on my website
with some cool icon or smthing
im not sure how to tho
hmm I'm pretty sure there are some tools for that but I don't remember who posted them
damn I am 99% sure I've seen something for that when I was searching for custom profile README things
Yeah
I wonder if you can use the github-readme-stats repo to use on your own website not just github
because that does have extrapins option
Yea that would be cool
idk how it would be done tho
the github markdown looks like this html [](https://github.com/anuraghazra/github-readme-stats) so I tried ```html
<a href="https://github.com/anuraghazra/github-readme-stats"></a><a href="https://github-readme-stats.vercel.app/api/pin/?username=blitzgamer-88&repo=github-readme-stats">README CARD</a></a>```` but doesn't seem to work
Rip
@forest pecan https://i.imgur.com/iWvf0Cr.png
the mob gets to move


