#dev-general
1 messages ยท Page 259 of 1
I still don't know what Tardis means
So scifi shit
not relational
Tbh that coding contest was super fun, we should do one on HC
That guy did so much documentation and i bet everyone still comes to his discord to ask questions lol
don't think it has a discord
It's a time traveling shit that can change its look (Although it is broken and stuck to a blue police phone booth) and that is larger on the inside than outside @hot hull
hccce kek
Hccce v2
"Time And Relative Dimension In Space"
I was like tier 2 when that happened damn
The TARDIS (; "Time And Relative Dimension In Space") is a time machine and spacecraft that appears in the British science fiction television series Doctor Who and its various spin-offs.
The TV show Doctor Who mainly features a single TARDIS used by the central character the Doctor. However, in the series other TARDISes are sometimes seen or use...
the tardis itself isn't broken
Piggy was right
I mean that wasn't a contest
:))
just the chameleon circuit
a native brit like yourself must be well versed
Of course
Kurzgesagt often used it as an easter egg in their videos.
Whenever there was space or ocean could you see it float around in the bg
a channel of culture
Didn't know that the Tardis has a "perception filter"... That explains some stuff
The name TARDIS is a registered trademark of the British Broadcasting Corporation (BBC).[6] The police box design has also been registered as a trademark by the BBC, despite the design having been created by the Metropolitan Police
Lol
lol
So when we say TARDIS should we actually say TARDISโข๏ธ
And wtf? They copyrighted a product that exists for centuries now?
You mean german?
I barely watch them (neither english nor german)
tbh despite the channel being obviously german, I'd be surprised if the original script was actually german
The police boxes were getting old even in the 60s I believe
But one I found impressive was the video about what happens if you nuke a city... Like damn
It's all natural desasters together and 5 times worse
Well since the english channel has 11M more subscribers than the german i would say that's the original lol
lol
@ocean quartz Kurzgesagt started as a german youtube Channel. Hence the name "Kurzgesagt - In a nutshell"
As the first word is german for the "In a nutshell"
why does german have a word for in a nutshell oof
They then switched to english, probably to gain a bigger audience, and now started with german again by the help of FuNK
Kurzgesagt can also mean "In summary" I would say
Or "basically"
Just a word to summarize things
ah
rip cant record for a while, background noise is too high
they used to be called 'in a nutshell' so i assume that is correct
Yeah sounds better, just thinking about literal translations
Bcs in a nutshell isn't a collocation in German
fair
@prisma wave so if I use guice, do I have to use annotations if I want to distinguish between 2 dependencies of the same type?
Yeah that's the usual way
probably
Hmm okay just have a final class with a sea of annotations then?
whats a class loader
what is an object that is responsible for loading classes?
hmm let's say it's what takes care of bringing the compiled .class files into the JVM
BM you know about this shit, am I getting something wrong? https://github.com/openjdk/jdk/blob/master/src/hotspot/share/ci/ciNullObject.cpp#L29-L32
that looks good
besides the static getplugin
besides the static everything
https://paste.helpch.at/liwasenaka.java it gets worse
doesn't look like it
@SuppressWarnings("unused") WHAAT?
I don't speak C++ but the documentation is pretty clear
It probably means for internal use though
what the
Because you can't add 2 ChatColors (eg gold and bold) I decided that would be a good idea
translateAlternateColorCodes is a function my guy
lol
What the fuck is that
BM uncovered
Components 
even when I was dumb I knew that's a bad idea :)
ยงยงยงยงยง
ChatColor.RED + "" + ChatColor.BOLD
ez
or ChatColor.translateAlternativeColorCodes
oh jeez that took a while to type
OR ChatUtils.convert
XD
Idk why people don't do that more often
"constants"
It's a good idea
"constants"
Mostly constants*
lol
pick and mix
oof
๐ฅฒ
๐ญ
whens ur birthday :)))
๐ฅณ
iirc u said it was soon
ill buy u a birthday cake ๐
liar ๐
Close enough
:C
When's yours
pleb
good
um
setLenient(true) so that's 5:32
๐
wut
2 minutes
liar
we'll find out soon
we'll find out soon
we'll find out soon?
Was trying to find the first version of my first plugin but i don't think i have it anymore
Fun fact, my first plugin was better than its following updates lmao
lol that's not great
My first plugin was FrozenSpawners
I had an alright plugin, then saw everyone had static stuff on plugins so was like "maybe this is better that way"
Fun fact, Scholtes was in a call with me guiding me when I was making that plugin, I knew 0 java, and never looked at a plugin before
oh who was it, I think his name started with J
well someone was in call
and i was java nubb
and they helping me
:))
I was annoying, I didn't even know how to make methods, anything
I'm over here not even knowing what my first language was
nah it was JS
oh no
Yeah this is probably as old as i can get it https://paste.helpch.at/unizafuriw.java
npcmd
that shortcut tho
This one is horrible holy shit https://paste.helpch.at/ujuxoviyob.cpp
imported the wrong chatcolor yeet
Everything is bad, public static fields, package private instance lmao
I read that as package private insurance and I thought u were going into a geiko sponsor segment
I have not
They should get paid to comment all that ๐คฃ
I know I have shared this before but 
synchronized method
means that 2 threads can't call it at once
what are the chances of that in a spigot plugin tho
unlikely
I mean depends on the plugin 
200 lines of imports what the
But in the average Joe plugin it's very unlikely
That has more imports lines than my main has entirely
my main classes are usually just a list of a bunch of listeners and commands
also it imports craftserver but does nothing anywhere with it
Is that supposed to be a "one class plugin challenge"?
lol
shopGUIS
PackageOne, PackageTwo, are the best names I can think of for packages ngl /s
Omg this is the author of dangerous caves
PlayerCountDown is the only class well named
looks like it is lol
Good thing someone picked it up and forked it
I was asked to downgrade this plugin from 1.14 to 1.12 ๐ฅฒ
No money can buy that
Have you seen GPRealEstate
if kotlin could compile to a bunch of java versions with too many issues, why would people not use kotlin?
iwan confused
Don't think so
Wdym?
which part is ambiguous to you?
bunch of java versions with too many issues
The entire thing
Is that a question? Are you asking if Kotlin compiles to multiple Java versions?
if so, then no, you have to provide a target version
oops
Though there isn't any difference of which java version it compiles to
It matters, not really because of the java version but rather because of the classfile/byte code version
But as with most non-java jvm languages you can mostly ignore this since they rarely need more than java 7
You basically only get the VM improvements by using higher versions
Wait, no, not even that's an argument because you can run older byte code with newer vms
So there only is a benefit if the language people explicitely make use of new features
why tf can't I get ** glob to get files recursively
Hi. Why wont it set displayname to value i set?
ItemStack lead = new ItemStack(Material.LEASH);
ItemMeta lmeta = lead.getItemMeta();
epmeta.setDisplayName(ChatColor.translateAlternateColorCodes('&', "&d&lCHANGE &f&lLOCATION"));
epmeta.setLore(Collections.singletonList(" "));
enderpearl.setItemMeta(lmeta);
what is epmeta ;-;
Just me being dumb
if i don't set anything to it it just does nothing, because there is nothing to change
name your variables properly and you won't have this problem 
i know
it was just me being blind
for few moments
Anyone good with CSS?
I have a slight issue
So, i'm making keyframes for my circle that's been made in CSS
and I am unable to move my circle downwards
when you leave a brute force over night
and then it throws an exception at like 3 am in the morning
then you go back down and see the error and be like
๐คจ
The fuck is you brute forcing
Nein
A what
Lmao
@charred viper ur dms are off
oh sorry
-_-
ProtocolLib is a pretty thicc library
If it was only a few kb it would make sense to shade it but it's a big boy
lol
size doesnt matter with pdm
pdm doesn't matter with pdm 
it will be even better with relocations !
we don't talk about those
just relocate 5head
true

and i still get this shit
um show it where the symbol is?
๐ฅฒ
the error is clear
is there a way to just
revert a git branch to a certain commit
that has to be possible
like dont try and merge anything
just reset it
maybe git reset
worth a try
you might be able to provide it with a commit hash or smth
oof.
Wow
ugh is IIJ fine? https://i.imgur.com/UxMlg7k.png
it doesn't show the errors anymore, like it doesn't highlight them
I have to hover over the variable to see it would error
py and it's * for string repeat is so annoying at COC
probably a #minecraft question
hi
i have question
anyone know what the keybind is to show the completer thingies
in intellij
so that i can see it before i start typing
ctrl space?
ya no
lol
I can't believe I spent 6 hours of my day working on a plugin commission for free ๐ฅฒ
oh wait
commission = paid
๐ค
Lol
And then I finally realized interacting with client-sided entities in plugin development is a pain in the butt...
you need to keep track of em yourself
Kotlin has String.repeat :)
Ye ik
CoC tonight?
u want sum coc?
yes
๐
:(
I saw that coming :))
At least there's a man out there who wants to teach us about life, that's cool
o lol xD
Depends how you define familiar
That will be by how much you know and coded with it
I can reliably use Java, Kotlin, Go and Python
But simple things I think I could do in most languages with enough time
What about JS
JS is a pretty simple language though
I spent 100% of my current weeks for Java ._.
I barely even touched Kotlin thus far
yes, I'm horrible ._.
Even though I used to code Kotlin on a plugin before
Your skill as a programmer is not defined by how many different languages you know
^
Wise word, bro
Quick question: Is Atom sometimes feel annoying for you guys? ._.
I don't use Atom
Well it's the truth. There are people who like learning new languages whenever they get the opportunity and there are people who will learn a new language when they've had enough of the previous one or need something different. Both are equally valid
I'm definitely the first
In this area, it's a dread chaos...
@regal gale why use Atom?
Looking forward to haskell and prolog in uni
Someone I know works with Differential Datalog, a Datalog (Prolog-based) dialect and it blows my mind a little
Heard that it has a cooler interface than any normal text editors
And proper function
Atom is meh
It's meh sometimes yeah...
for some reason deluxe tags dont work?
Wrong channel
Were do i type it?
thnx
I don't think it's "light" from my definition because of slow boot-up time ._.
Comparative to iij
Havent used it too much
@prisma wave any idea why I got no exp from like 10 COCs?
Does public games not give exp?
I have no idea
stupid thing
VSC is much more optimised than Atom
Sounds scary
I understand the concept but I don't see how that translates into an actual program
No
are there any plugins where i can have players spawn anywhere between -2k 2k and 2k -2k or similar?
I've seen one use for type checkers/linters
Paste Services
When asking for help with a config/menu/code issue please use one of these:
(However we do prefer if you used our paste :))
โข HelpChat Paste - Usage
โข Hastebin
anyone know why'd I would be getting this error for every new kotlin gradle project i create
happens when i try to sync
@quiet depot I keep forgetting, should my interface be within the implementations package, or outside of it?
Not sure what makes more sense
outside
tnks
I updated the page a tad, it's pretty basic now, but cleaner I guess
If you wanna take a peak 
is it responsive?
yes
hey guys i need help on #general-plugins-2
aight
I removed the footer on mobile
oh
If it's showing up I messed something up
it looks better but iโll have a look when i get on pc
also use bootstrap measurements for device sizes
not 60rem
or just use bootstrap
I just set it so it looks good
gtg
If the device is large enough no worries if it uses pc mode
does deluxe tags work on 1.16.4?
Probably, wrong channel tho
ok but i put it in the other channels and no one help
Then wait for someone to help
o
I'll join soon
gaby idk if I'm going crazy or something but we can't join. well at least me. there is no join button.
probably because its public or something.
@obtuse gale what you doing? xD
wtf am I doing
one more?
Busy Gaby
string.split(" ").map { it.toInt().toChar() }.joinToString("") @obtuse gale
@old wyvern
Wanna finish this before I forget how to structure it
what is this lol
A project
If this is a confirmed feature it looks great
Java twitter posted it so I hope so
ooh I think it is
Project Amber is the group of JEPs including all the new QoL features
o
What would be a clean way of indexing stuff, I have a certain type, which is used as an identifier, however that would mean that there can't be duplicate types, so would having an id (perhaps) system be clean enough, or should I implement a different type of system?
what's the context?
Not relevant I don't think, let's just say storing objects in a map
(type being used as key)
that would mean that there can't be duplicate types Why so?
Since if there's two of the same types, it'll overwrite
Well yea, but then I'd need an additional index
Which defeats the point does it not?
only 1 value should be assigned to a specific type
right now it's an enum type, items are differentiated by their actions
Hey guys, so I have a MySQL problem.
I have to calculate a total price for an order via MySQL queries. That is all fine, and I have done that. But when the column totaalprijs is higher then 500, the column needs to be multiplied by 0.9. But only if it is higher then 500. Does any one has an idea how to do that?
Would really appreciate the help ๐
Query:
SELECT
b.factuur_id,
k.bedrijfsnaam,
SUM(br.prijs * br.aantal) - (SELECT
COALESCE(SUM(k.prijs), 0)
FROM
`bestelling_has_korting` AS bhk
LEFT JOIN
`korting` AS k ON bhk.korting_id = k.id
WHERE
bhk.bestellingen_id IN (SELECT
id
FROM
bestellingen b2
WHERE
b2.factuur_id = b.factuur_id)) AS totaalprijs
FROM
bestellingen b
LEFT JOIN
bestelregel br ON b.id = br.bestellingen_id
LEFT JOIN
klanten AS k ON b.klanten_id = k.id
WHERE
b.factuur_id = '6'
GROUP BY b.factuur_id;
why do you want to do this using sql tho lol
and please always make programming related stuff in english, no reason to write your database in dutch.
should only localize your frontend
probably some assignment from school, lemmo
Yup, it's for school And indeed school makes us do it via mysql
But indeed, I should've made the columnnames and all in english. Thanks for that tip
I am thinking something with an IF statement, but not sure
Yeah I have it ( finally lol ). I used the IF statement wrong. I have it working now ( finally ) !
ah alright neato
Lots of sub queries lol but wadever
good luck with your assignments
๐ซ
yeah really unoptimal
Thanks man
but if it's for school it's purely to show them that you know how to use sql
in practice you don't do stuff like this
rarely atleast
Yup, if I would've done this in a real world case, Such things shouldn't be done in SQL. But it is for school so indeed just to show I can do it
bad pc
lol
It's an assignment for making 'real world queries' people in the administration office would use daily. So yeah...
yup
Have you seen the types of sql queries they do in huge corporate code bases? This is not unrealistic
they'd probably have an ORM to do that though, right?
You can't express a query like that with an ORM I dont think
sure in older codebases it's more frequent
but nowadays nah
and if they really want such complex queries they wouldn't be using sql anyway.
You really cannot do that with an ORM (as far as I'm aware) and retain the performance or maybe even a fraction of the performance
some ORMs can but yes not done simply
I've had constant 2 min compile times in the past, not good
when
pog
Anyone fancy a long discussion about something?
I think that's too far
imagine talking to yourself just to gain some meaningless xp and a new colour
that sounds like such a waste of time
i definitely wouldn't do something like that, would you?
nOpE
no of course not! it sounds ridiculous
I mean, who would be that desperate?
surely not me
programmers are very normal people trust
6
This needs some unpacking.
First, your core mistake: System.Char.ToUpper is a function. It takes a char and returns another char. It doesn't somehow "update" its argument to a new value.
let x = 'a'
let y = System.Char.ToUpper x // y = 'A', x = 'a'.
In the above code, I give name y to the result of the function. The value of y is 'A', but the value of x is still 'a'. After calling the function, x hasn't changed.
From this mistake, all the rest follows.
Second, List.iter is a function that, for every element of a list, makes something "happen". It doesn't replace each element of a list with something new, nor does it create a new list. It just makes something happen for every element. The simplest example of such "something" is printing out to console:
List.iter (fun x -> printfn "%i" x) [1; 2; 3] // Prints "1", then "2", then "3"
Notice that this function takes two arguments: the function that represents the something that need to happen, and the list from which to take the elements. In your question, you seem to be missing the second argument. How would List.iter know which list to use?
The first argument of List.iter needs to be a function that returns unit. This is a special type in F# that basically means "no value". When a function returns no value, it means that the only reason for calling it was to make something external happen (known in functional programming as "side-effect"). This is why List.iter requires the function to return unit - it's extra protection from accidentally supplying wrong function, just as you did, actually: the function you provided returns char. This is why you receive the error that you receive.
whoops
copied from stackoverflow and accidentally pasted here
wtf
my bad! ๐
"who would be that desperate for xp" 
sorry
Experience
=disablexp @prisma wave
im sure it was an accident!
is that rela
Lmao
no xp farming smh.
i wasn't farming
I'll re-enable it in an hour
i was just posting a long stackoverflow answer in case anyone was interested
wait
does that actually do anything
no
this is unnaceptable
I was just going to say "Isn't xp farming bannable"
and by bannable I meant punishable
don't think so!
๐
Gimme exp :(
nice bait lemmo
lmao
kek
๐
dkim ruining it
๐
smh
keep posting the answers from stackoverflow bm! i was quite intrigued from those posts to say the least!
oh really?
oh boy
ur actually going to get tempmuted for that ;-;
lol
first ๐
2nd yeet
i dont get that
๐
๐
what the frick 
i do the first in C++, but i mainly use the second
I define classes with the second type
Programmers will know
allman good
๐ฆ
objectively ๐
now
just say u changed some things, but never really and go to 2.0
or else ima be like 1.231.2
major changes
like...
rewrite
breaking stuff
o
@frigid badge https://paste.helpch.at/azasowozif.sql This is the final query lol. And the jaaromzet is a view which hides also a pretty good query lol
wut is dat
basically dkim
x.x.x
major -> minor -> revisions iirc
I object to that statement
Allman is the root of all evil
go on then
rewrite.updates.bugfixes
Since when do you use allman?
Me
since like last month ๐
Yikes
u can say i switched to the dark side
You did ๐ข
๐ฅฒ
๐
allman is a good style
its just personal preference at the end of the day
I deny
Heard that one before
it's actually objectively good vs objectively bad
and we all know which is which ๐
Yes, k&r objectly good
hello
I'm new to plugin dev
When I turn on my server, it says [06:57:53 ERROR]: Could not load 'plugins/DodgeballV2.jar' in folder 'plugins': uses the space-character (0x20) in its name
ok
Couldn't find help anywhere :(
there aint any spaces in the plugin name or the plugin folder
I use intelliJ with spigot api 1.16.1 and paper 1.16.1
Please use a paste service to share configs, errors, code and long logs.
โข HelpChat Paste
Eric Allman has been currupting the minds of young developers all over the world with his silly brace style. Some say it has caused epilipsis and a mass case of hysteria in the past. It is the work of sinner and devil workshippers and must be taken down in the name of the roman cat- wait no. It just looks weird.
Y'all trynna start a crusade
where?
wdym where
where are u crusading?
Where u from
the UK
THE UK
when intellij auto indents it does the 2nd, any way for it to the first?
i cant help it
no
don't let it
it must do the 1st
the best one
huh?
Thank you, Thank you very much
im asking for it to the first ๐
i mean the second
You can change indentation style in the settings
Dont
best one
Yes
that is the right question
please do the 1st
noh
No
allman style bad
Do not
uni forces me to do the first
but i cbf half the time fixing the auto indents from intellij
what side are u on ๐ฎ i cant remember
Well I don't use allman, but I like it sometimes
For java?
@stuck harbor I can't thank you enough, I was struggling with this since 5 hours
no problemo
In the common interest of "experience points" please forward any additional questions to me, I will respond in full sentences.
Have a nice day! :)
yes
@prisma wave how gay are you on a scale of one to senpai
You didn't specify they had to be relevant questions
For legal reasons I cannot answer that question
Dang and blast
However I would like to clarify that the answer is greater than one
Please interpret that information however you like
Hello!
How are things going for you today
I am typing!!!
That's unfortunate
How come?
You don't need to code something every day
Fefo, you can't use Google shut ya face
i havent coded anything in like 2 weeks ๐ฅฒ
Tsk
Consider learning Go and PRing to Elara if you are ever in need of something to do
I'm never letting that go :)
I love you too
UwU
You can be the actual 3rd man, im just emotional support
smh
Can you be Experience support too
As you wish
oh boy cant wait for ur name to be yellow!

Oh katsu is alive
katsu curry is ๐
I agree!
In fact I agree so much I'm going to write an entire sentence reiterating my point
I am in agreement of you
damn thats crazy
nice
so much passion for katsu curry
i wouldnt suppose this was for "experience points" at all, it cannot be with that much passion!
my 2 passions are katsu curry and helpchat experience points
well, as a matter of fact it is both!
o
as the phrase goes, I am "killing 2 birds with one stone"
of course they're not real birds
I concur, as I, also, like katsu curry
of course not! killing birds would be very sinful and could cause catastrophic damage to the environment!
no one wants to live in a world where birds would go extinct because u killed birds!
exactly!
it would be a disaster
however, as I am not an ecologist I will concede that I do not know of the true impacts of killing birds
for example, it could in fact be beneficial for all we know!
therefore I will refrain from doing so to prevent any potential damage, while conceding that I am not aware of any positive or negative effects
๐ณ
it may also be immoral to kill birds, which is another reason why we should not do it
but that is not important
a positive could be that we get free food!
That is true!
But could this food be worth the difficulty of killing a bird?
they are very hard to catch
and often small, so the food might not fill you up
which is of course a major issue
I feel like I'm about to be curried
idk man u seem to be good at killing 2 birds with 1 stone
stones are quite small objects, which means that you have good aim, allowing you to easily kill birds!
I believe for the moment, until proper research has been done into the moral and ecological implications of killing 2 birds with a single stone (which sounds rather difficult), we should refrain from doing so
It is difficult to throw stones at birds
they fly away rather quickly
and are small
even with good aim, there is a lot to consider
if you are too loud they will fly away
i aint even gonna lie
Thats why you use a nuclear bomb
i was walking on a road and i was looking at my phone and i almost stepped on a bird
lmao
Kill thousands of birds with one nuke
i fully felt the bird on my shoe
The only downside to this approach is that we might accidentally kill something that isn't a bird
poor guy
he was stuck at level 69
that's enough to make anyone depressed
๐
๐
that is some deep pain
Bird targeting drone swarm commanded by our Lord and saviour mr reeves
Hmm
I suggest you go and find some studies into the effects of killing birds with nuclear weapons
I am not an expert but it sounds like they might return from the grave as "zombie birds"
It makes their corpses mutate into humans
maybe I am just being paranoid
Its a good idea really
Who doesn't need overpopulation, famine and death?
that is true
the benefit of killing birds is that the skies would be clearer
and the trees would stop falling down
however if trees never fell down, eventually there would be no room left
and we might eventually be suffocated by large amounts of trees
I am not sure that is worth it
give the trees to the amazon rainforest!
save the rainforest!
it seems that nukes are good after all
we kill the birds, take our trees and ship them over to the amazon
amazing plan ๐
how do you transport trees?
we would probably need a big boat
or that
it sounds quite expensive either way
maybe we should sell 50% of the trees, and ship the other 50%
just print money bro
that way we can afford the shipping costs
oh yeah of course
my bad
that makes things much easier!
there is absolutely 0 impact of printing money
why have governments not thought of this
0 impact of killing birds either
I believe germany thought of it in the 1920s
not sure why they stopped
maybe all the money printers were too expensive to run
Become Nigeria
exactly
A small price for killing the birds
f them birds
hold on
I think we've forgotten something
where does the 1 stone come into this?
404 experience points to go
nice
Oh hey fellow developer
hello fellow person who writes code
How do you do fellow devs ๐
Alias developer
"coder" ๐คฎ
hey! this is my github page! i am a self-learned professional coder who excels in languages such as python and javascript!
damn thats crazy
@prisma wave congrats gamer
