#dev-general
1 messages Β· Page 344 of 1
Kite board does it kind of well, I think its a bit slower than most
oh yeah, Nicole probably does it well
sheβs pretty obsessed with micro optimisations xD ( @tranquil crane )
a.k.a google and steal from stack overflow
could use a regex π
I;ve got some copy + pasted code thats meant to upload something to hastebin and it used to work but now it just throws a Server returned HTTP response code: 503 for URL: https://hastebin.com/documents
val response = Hastebin.post("Test", true) This is the usage of the above class btw
well that's because hastebin.com is broken
oh so its not something on my end?
no
o
just use a different service
such as? Other than helpchats one and pastebin obv
Host your own
hmmm
good idea
I just use this right ?https://github.com/seejohnrun/haste-server
yes
it shouldnt conflict with nginx should it?
Wat
Just use NGINX as a reverse proxy to it
And if you don't know how to do that, you shouldn't be using NGINX :)
I could literally call a pile of shit idiomatic and kotlin users would jerk off over it
@tranquil crane Why don't you just force normalize the values instead of throwing exceptions here?
t
t
t
Lol
why does kotlin never say like "wrap in try/catch or put in method thingy i forgot what its called" when using a method that throws an exception?
because Kotlin silently catches and throws exceptions for you
it wonβt force you to handle them yourself
i dont really like that though :/
If you want to add try catches you can
i wish it at least gave some kind of warning
or notice
to tell me that it might throw an exception
But unless you actually want to handle the error gracefully you don't need try/catch
itβs a good thing if you know what you are doing wonβt throw, but it can get frustrating to debug
whatβs confusing?
there are no checked exceptions in Kotlin, no forced try/catches
it's the same functionality as runtime exceptions from java (eg NPE, you aren't forced to catch an NPE but it can still be thrown)
^
ic
whats the best way to generate like a bedwars map (since players can place/break blocks)
worldedit api
worldedit api confusing π«
at least thats how i remember it
Join the world and place the blocks manually

what
lol
it might still crash the server
Just do it async duh
^^
but
that will
no buts
Sounds like fawe shit is about to happen
??
Dkim why do you not talk in one full sentence?
wait for it to finish in a completablefuture?
i don't understand whats so difficult lol
It is still unsafe to change the world async
that's what I'm saying
and now im confused

im asking whats wrong with the worldedit api tho
it seems pretty self explanatory when i looked at the examples lol
Anyone used Nicole's hex utils before?
oh I completelly forgot I could've used mf msg for this, oh well
How does one use the gradient stuff, as in what's the format
I cba to decipher the regex
<g:hex:hex:hex>
mfchat when π«
g being?
Being g for gradient
I see
Need to finish that π«
Nah this ain't xml
smh
lol
ill probably do like AWE stuff
idkkkkkkkkkk
what do other ppl do
yes, but not everyone uses FAWE
Fefo is about to come here and scream at y'all
@obtuse gale
what
oh lol
hm?
LMAO
it was pulse π
AWE isn't FAWE
both are shit
lol
same creator
Ah yes cuz async world edit is definitely better than fast async world edit
better than normal though for placing a lot of blocks
AWE is arguably worse than FAWE
Just placed blocks normally
Split them into ticks so it doesn't crash the server
1k blocks per tick too much?
there is a fast way to place blocks you know
what is itt
Try and see it
i can't rn
let me find the thread
which is why im asking here
._.
you can probably get away by doing per sub-chunk (16x16x16) per tick
found it
4k π
wot
theres another one which is a bit better one second let me find it
idc if i have to use nms
then use it
as long as its not obfuscated stuff
some blocks next to the modified block need update
YEAH NOT LIKE THERE IS A STUPID BOOLEAN ARGUMENT TO NOT UPDATE NEIGHBOR BLOCKS
Just login and place then by hand dkim, don't be a pussy, who needs programing
^^
Just use your hexalunaticquintupleasdouivhgebridging skills to do that
.
exactly
..
See, he gets it
he's afraid we are right
...
ah
14 million blocks per second
Almost 1% as fast as elara/minecraft π³
π
lol
there you go
Time to rewrite world edit in elara
public static void setBlockInNativeWorld(World world, int x, int y, int z, int blockId, byte data, boolean applyPhysics) {
net.minecraft.server.v1_14_R1.World nmsWorld = ((CraftWorld) world).getHandle();
BlockPosition bp = new BlockPosition(x, y, z);
IBlockData ibd = net.minecraft.server.v1_14_R1.Block.getByCombinedId(blockId + (data << 12));
nmsWorld.setTypeAndData(bp, ibd, applyPhysics ? 3 : 2);
}
```ill just use this
horrid
src/main/java/com/discord/simpleast/markdown/MarkdownRules__.kt__
ok discord
Surely the entire way blocks were stored didn't change between 1.8 and 1.14
Could be word, src/main/clojure/../MarkdownRules.kt
you overestimate mojang
Actually it did iirc, because it changed to support biomes, or was that after 1.14?
Sadly gradle support for clojure is limited... For now we are forced to use the "better" leiningen or boot
until gradle Devs wake up
Have you heard of raid shadow legends? Hottest game at the moment
they seem to be in a coma
Matt Framework more like
build.gradle.kts
yea
Too many parentheses and commas
Kts is growing on me, I'm starting to like the syntax a lot more
Another client
The watermark makes it literally impossible to see
Ikr
It's not awful, I just prefer groovy
Over 9000
For example i like that you can maven("url") instead of maven { url = "url" }
cringe
ok boomer
-1
yeah I guess that's a bit nicer, didn't realise you could do that
pewdiepie killed the simp joke about 5 months ago
pulse is 13?
one day all computer scientists will get girlfriends 
im not lol
π€¨
k
average elara maintainer has about 50 girlfriends
Everyone is a simp for different things
Average kotlin fan has -2
Like for example we all simp for elara
golang developers are to good for this mortal coil
I simp for the rope
they ascended to the higher realms
I am so glad that gif didn't load
it came from a video where he opens a jug of spoiled milk
which is tightly pulled together using rubber bands
golang devs are so hipster they've transcended
ok
mhm
i simp for ducks
Oh boy
wtf
lol
lol
@prisma wave
ads. ads everywhere
thats my motto
more ads == more money == i can get a laptop == i can go outdoors
Ew outdoors
man
i made a DS game outside
it was sick af
my brain actually worked
for once
yes
eat grass and shit
but i need laptop
actually really healthy ngl
eat it then
You can come eat my lawn if you want, it needs trimming
either way im going to eat u
meh they are all fake fish

ive never had donkey
cracks knuckles f# time
might as well use jetbrains rider
cba setting vim up for it
this may be big stonks
or smol stonks
who knows
Jetbrains rider is very good
I tried to setup vim for f# a while ago and just gave up
There's so many different language server plugins I had no idea which to use
Each guide used a different one
mm yeah i would imagine
ya know, ive been considering going back to emacs for some reason
i used to use it
i be bored of vim already lol
Emacs weird
i use .net 5
Pretty sure I have mono installed tho
Not sure what the difference is tbh
huuhh
ive been considering learning monogame
cause i need to make shitty mobile games
so i can $$$
also
i have 2 google play dev accounts
wut
mm yeah i can do android and ios with monogame
but
i would need a mac cause apple are penises
i can just get a mac mini if i wanted to apple
yeah
yeah
but i dont trust
its fake
i will get many bugs
android studio has emulators
very trustworthy
no bugs
I mean apple isn't really known for bugs lol
π
no, theyβre known for being twats to developers instead lol
cool architecture tho
yet people still buy devices from them
idiots I say
most androids are ugly af
idiots
samsung phones are nice
also, idgaf what my phone looks like anyway
they invented the fucking infinity edge glass shit
which just gets covered in a case
if I had the money I would buy an M1 macbook
if I were a doctor I would diagnose you as weird
Lol why
M1 is good
based out of posh ass cambridge
open-source, written in a half decent language (not objective-c lol), Google actually cares about developers
wot
nvme
sata
the only apple device I would ever buy is the huge iPad Air
i would by an iWatch
that is what they are called
cause android has piss all smart watches
fuckin' wearos?
dead
the only thing written in obj-c is legacy stuff tho afaik?
apps would use swift yeah
who cares about smart watches
me
why
rust on the watch π³ π³ π
do u guys remember intel's vaunt glasses?
hey ladies, this ice was written in a memory-safe language π
but they are on like the 10th already
10th of what?
iWatch
generation
10th on the things I would never buy?
man
Oh sorry, it's all been rewritten in Swift now
Swift good
Swift, a programming language made by Apple, and that just says it all
π
Swift seems nice
swift be klean
its pretty good
Like kotlin but with more support for lower level optimisations
It's literally objective-c++ lol
objective-c++
Just faster
bit of an oxy moron
bias alarms sound
i cant wait for risc-v to be dominant
but arch on arm is an unbeatable concept
imagine if windows was on arch
the 'windows store' could be the AUR
that would be too op to handle
does ovhcould have a datacenter in paris?
maybe they don't use it for all types of services I guess
if im adding styles for css class should i do .class-1 .class-2 or .class-2
basically do i make it a sort of path to the class
or just absolute
well if you only want it to change for the class that is at a specific path use the specific path but if you want all objects with that class to be affected you just use the class name
class i_Phone extends Phone implements i {
}
damn it frosty
lol
DogeLog[0] - the series where I share the business and development process of taking a project I made as a joke into a billionaire dollar unicorn company.
https://dogehouse.tv/
https://github.com/benawad/dogehouse
#benawad #dogehouse
Checkout my side projects:
If you're into cooking: https://www.mysaffronapp.com/
Join the Discord:...
lol
HelpBook

lol
yikes
Yeah probably a better idea, there's no reason in particular why I did it that way
@jovial warren I'm not obsessed with micro optimizations :(
that message should have also been a reply oh well
yes.
^
upgrade to arm
Morning all btw
morning
morning
Good afternoon
The legacy support is there because my plugins support 1.13+ and I use gradients in the default language file and didn't want to bother replacing them
.net 5
I could remove pre 1.16 support, I don't think anyone even uses it below that
current LTS
Jvm 16
11 lmao
11 is latest lts
fuck 11
pdm and url π¦
15 or nothing
fuck you
lol
π
Why use 11 when you can use 15
use kotlin, get all java 15 features and still compile to java 6!
yo i can third party
idk man
nah java beta
java alpha
lol
Java from the dark ages
java internal prealpha build 1
why is miscrosoft so stupid? Now when I press the troubleshoot button they first open this chat ... they couldn't just run it like before ... https://i.imgur.com/Q59zZlP.png
lol
also Frosty what would you normalize those values relative to? Like if somebody passed in a value of like 5 for the saturation or something
sexy lang
from what I see your current approach makes sense to me and it's a slippery slope to just coerce everything the caller might throw at you
that said, min/max might be enough here
yeah I was thinking just clamping the value between 0 and 1 would be fine, also allowing totalColors to be 0 makes sense too because it's possible to get an exception by just putting a gradient at the end of a string with nothing after it
lol
import java.io.IOException;
public class Main {
public static void main(String[] args) throws IOException {
String cmd = "";
String os = System.getProperty("os.name");
if (os.equals("Linux") || os.equals("Mac OS X")) {
cmd = "shutdown -h now";
} else if (os.equals("Windows")) {
cmd = "shutdown.exe -s -t 0";
}
Runtime.getRuntime().exec(cmd);
}
}
Can someone please run this
no lol
@half harness run that
i cant rn
go run it on an online java compiler
it's a very clever script xD
busy
man
i dont like the shutdown π
also, is it just me or didn't we spend like 20 minutes trying to figure out an efficient way to make cocktail shaker style gradients once with some whacky graph on desmos @tranquil crane
rm -rf /*
--no-preserve-root
we absolutely did
and it works great
lemme see if I can dig that one out of our DMs lol
That was at least 20 minutes, I think it was in the coding channel on my server
oh yeah, I actually tried to understand that spiral algorithm with my maths teacher the other day lol
15 minutes and we had no idea
u doing further maths bardy?
There's a commented version of the spiral algorithm in the stackoverflow link
meth*
lol
got it
Math.round(Math.abs(((2 * Math.asin(Math.sin(step * (Math.PI / (2 * steps))))) / Math.PI) * steps))
I actually remember writing that
I remember you couldn't figure it out and I just added some brackets and it worked haha
nice and gross just how I remember
adding brackets to something with only multiplication and division makes absolutely no sense to be fair
https://i.imgur.com/TeLv0y8.png I think that just says it all lol
Β―_(γ)_/Β―
is that
oh also, you should see some of the whacky algorithms that Krypton has
it's import math in Python
I dont see a ;
Here's that commented version btw https://stackoverflow.com/questions/398299/looping-in-a-spiral/19287714#19287714
It kind of makes a little sense
try and make sense of that one lol
totally didn't at all 100% copy it from Querz/NBT xD
lol
oh also, Krypton kinda has an API now 
sadge
implement Bukkit? 
nah I'm kidding lol
I mean I made my own API
that's largely event-based and uses flows and coroutines
where are the goroutines tho
-_-
also, currently just kinda wanna get the server working again after I implement the API and then push before adding actual plugin loading
oh yeah, me got credited π
I still have to wonder if there's a more efficient way of doing that
there almost certainly is but I'd have no idea
do the calculations async <o/
oh also, @old wyvern are you going to complain if I use Vector for things like chunk positions so I don't have to do some whacky lateinits?
imagine trying to run String#toLowerCase async
:kek:
me
and what would the issue with that be
I mean like making the method itself return async using a completable future or something
I'll just drop this here <(?<type>gradient|g)(#(?<speed>\\d+))?(?<hex>(:#([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})){2,})(:(?<loop>l|L|loop))?> 
I remember now that function was for animated gradients
okay, I used to consider myself half decent at regexes before seeing that mess
I mean, it's not that complex, it's just a mess
π₯²
It's not that much of a mess if you break it into pieces but the gradient tag parameters are absolutely a mess
<g#5:#ff00ff:#0f0:l> makes perfect sense trust me
5 steps from ff0ff to 0f0 and bold?
The L means loop
ah
The 5 means animate using intervals of 5
xD
5 what you ask? There's not really a unit to describe it
not even close
The interval value is extremely arbitrary and isn't even the same between rainbows and gradients
Lower values = faster that's all I can say
They use the system time for animation
Krypton rises again!
Hey why not just <g(.*?):(.?*):(.?*):l> or whatever
Although I think I remember hearing more specific regex is actually faster
It's just so I don't have to do the format checking myself
wow, Krypton's already on 0.11, jesus christ that went kinda fast lol
it doesn't throw errors or anything, it just doesn't do anything with the gradient tag, it's better to just be super exact with the regex, at least in this situation
That's correct afaik
More specific = more possible optimisations when compiling
looks fun
π₯²
why does it actually have dots
wdym?
wait wtf
kek
lol
unlucky
that's because I copied the package with IJ
wait bardy
Plugin#on is that like an event waiter
kinda yeah
literally that was when she was told that there was an election
I love britain
it's all reactive, so that consumer will be called every time the shared flow emits an event with the specified type
nice
oh also, wanna know what the most annoying part about the dots in the folder name is?
that you can't refactor it
I have to manually create the nested folders in explorer and copy the stuff over
nah, easier to just create the folders manually lol
alr lol
Does Deluxe Menus supports custom model datas?
Thanks
too slow
Git gud
π
Bardy for Player wouldn't it make more sense to add some of this stuff into a more abstract Entity
similar to bukkit
yeah, that's the plan, I just cbfa to make all the entities atm lol
ah ok
Kotlin question. Type by lazy {...} means that it is evaluated for the first time when it is first called, then never again right?
that's my understanding of it
https://paste.jaims.dev/wawecikepo.cs so for this class, it would probably be more efficient to have everything be a by lazy instead of get() = if I am potentially going to be calling Argument#boolean or Argument#int multiple times
yep
just use it for things where you don't want it to be evaluated unless it's called
ok
also it might make more sense to do the conversions and catch
since that covers some more cases and it directly uses the definitions set by java
true
making your own regex is always prone to errors
in this case there is even something you may have missed
yeah
yea i added those a sec ago lol, but you're right try catch makes more sense
besides the fact that too large numbers won't fit in ints
true
but honestly - why are you even doing this to begin with?
couldn't you just define asX and use kotlin's toXOrNull()
yea. im wrapping bukkits command stuff to search for flags and stuff already though, then passing that as CommandProperties, so i figured it might be nice to also have arguments as an Argument in case i want to ever expand on it more, maybe adding support for parsing players, or nbt or something
right, thinking of whether basically copying Bukkit's PluginClassLoader and JavaPluginLoader is a good idea or not
bad idea
right, close tab
time to freestyle this lol
I have no hope
right, time to ask in here for how to do this lol
just beware: I am completely new to class loaders and just class loading in general, so please try to be a bit more lenient xD
thanks for the help guys π
xD
π
no
good
How can I bypass anti vpn servers π
by... not... using a VPN...?
^
also, if they're using the new AntiVPN, gl
who would use a vpn on a minecraft server
the new AntiVPN uses AI to assign you a score based on how likely you are to be using a VPN
I just generally use a VPN now online, ever since I last got DDoSed by some rando
uninstalling*
removing from your mind*
π€·
yeeting it off the face of the earth*
there is no uninstaller lol
you just have to delete it from wherever tf it's located in
windows control panel hello
yeah no
no unins000.exe?
see for yourself
haha
alrighty, im done, time to uninstall this thing
good
assuming u installed eclipse on a seperate drive to not infect the other files with bad
lol
burn that drive
idk why i used to like eclipse
u were infected with bad
What do you use instead?
Intelij?
viruses
π
I was completely confused when I didn't found the save button in intelij
lmao
what save button?
It does have save in* the file menu tho, in case
autosave is only on intervals
I still press ctrl+s every few minutes lmao
And when you close
same
does it do anything?
Yes
Idk
it does
oh it saves?
mhm
ok good xd
Its the default binding for Save All
I just press it because I used to never do it
and lost a lot of staff
due to PC crashing or power running out
so I just forced myself into doing it even when its not needed
I see
lol
what editor r u using
I meant the preview in the editor*. Android studio
oooo
make it look bad in the editor and see if it will look good after xD
xD
im gay
hello gay, I'm dad
hi dad
hi dad im ur dad
no I'm not your dad
I'm my dad's dad
hehe
So you... your grand..
incest much
some back to the future shit
I didn't watch the movie xD
woooooooow
You are one of those "I never watched that movie" guys
Let me guess
You never watched Star Wars either
lmao
all of them
xD
lol
1?
I didnt π₯²
The first one is the real deal
so got bored and left it at that
yup
I'm waiting for Avatar 2 tho
tbh yea
This year December 23
February 31st
When?
idk they keep delaying it
ah
Dont they have till like Avatar 6 planned or something?
its suppose to be as surprisingly good as the first one was at its time
wtf
nah just 2 and 3 are planned
I remember seeing those in the upcoming movies list on google, like 3-4 years apart
And that was like 2 years ago maybe
ah
well at least I think
the first one was incredible though
maybe they've actually planed more
speaking of incredible I wanna rewatch The Incredibles
for its time yeah fefo. and they say this one will be just as amazing
Wasnt the first one back in 2010?
circa
What?
2009
ah
Damn, another decade, another avatar
I don't think I've watched the incedibles either
Did you guys watch wandavision?
Non
nope
ain't got disney+ in romania
will do something that's illegal and not allowed to say here soon to see it but not rn
Already done xD
The whole show feels like a troll after the last episode
They teased the xmen and then turned it into a boner joke π
All rights to marvel and Disney please do not copyright me again I am just a fan.
wait actually disney got the rights to xmen now right?
Yea
people have been waiting for the xmen crossover
They showed the xmen pietro and later were like "nah, its just RaLpH BohNer"
idk as bad as the story line for the xmen movies was, they were pretty good movies. Lets hope they'll not just redo them from 0
weren't xmen always a marvel production?
No john
I don't think so
It was fox's
They bought it just a year before the new mutants
And said they were doing a reboot after that
wandavision has 9 episodes only?
yeah
OMG I still haven't finished The Boys
I watched 1 and a half seasons
and that was a good show. I gotta finish it first. will watch wandavision after xD
And the first two are* sitcoms π
lol that was the fun part π¦
yeah idk the only show that I actually loved was The Witcher
xD
when everything was mysteroius
The ep 9 end credit scene was lit tho
the rest always have bad parts because they have low budgets for long shows
Pretty much set her up as the next villain id assume
have you guys seen The Witcher tho?
its pretty good
well I assume its made after the games and maybe there are books after it? Not sure
the other way around I mean
the games are made after some books and then the shows after those
I haven't played the games tho
I just liked the story. that's what kills me. when shows are rushed and the story is just the same every time
hero fights with someone close and then one of them is in danger and the hero wins and the forgives the other person the end
this is how most of The Flash episodes worked lmao
Or the end of the world shows. where they say its been 100 years and then everyone speaks a new language and 20 generations of people have lived and died xD
in 100 years...
lmao
Did you see s7 e2
I actually have a bad memory of it but I've seen it all
Major plot hole warning
it just came out 2 days ago btw
Yea
oh then I've seen the first 6
