#general
3141 messages · Page 1838 of 4
baseURl/configureSecurity
Bax if you use the docker version of Nexus, I wrote a patched image that masks the IP.
reading is exhausting
Project based matrix authentication with no overall access is what I do if I'm lazy
I think my nexus instance is older than docker, Glare 😄
Either way, I'm not running docker. Happier to just scream test and be pretty sure it's fine to take down foreversies.
Gotcha. I also maintain patched jars for the non-docker version since I'm not using the docker version yet myself
So instead...
So if you need some for a specific version, just lmk.
i had it set to this
bruh with just read perms they can already see users
not that i really care but thats kinda pepega
Agent WhyIsEverythingAFSecurityRisk
Works fine for... 1 plugin lol
jenkins keeps reeing about it lol
Remove it?
yeah i did now lol
weird how my builds are smaller on jenkins than when i build them locally
well their MB is not the same as window's MB apparently
Is there actually a good reason to open ipv6 along ipv4 for a Minecraft server/proxy
@tired heath dont think so
is 1.18.1 stable? the warning is gone from the website and no new info under announcements
I use it now more than a week to pregen worlds and setup stuff, so far had no issues, only the world has a lot of glitched structures but I guess that is a general 1.18 thing
I'm unaware of any glitched structure issue, and haven't experienced that myself in the multiple worlds I've created and pregenned so far
Maybe just a funny seed
But my friend confirmed same stuff in vanilla
so no paper stuff
structures and generation has always been fun
it's practically just plopped in, 95% of the time their considerations to how stuff is formed lines up
the other times you get a village house in a tree
Efficient use of space!
Vertical stacking.
we're gonna get flats in villages soon!
Was exposed to covid and my employer is saying I need to come in anyways if I'm asymptomatic
Seems irresponsible to me but alright
what are some common mistakes you guys notice that cause bugs or issues? i just realized i didn't validate an input. it didn't cause any issues (yet), but it's frustrating that i missed it
input validation, forgetting that the person interfacing with stuff is an idiot (e.g. bad configuration and 0 validation of it), forgetting to check stuff, state in/validation, etc
perpendicular neighborhood
@void void best emily
uwu
@shadow mauve Is that 1.18 and Optifine?
Do you see the renderer freaking out in vanilla?
No havnt even tried
I'm 90% sure you could switch to Fabric and use Sodium/Iris and be fine
I will try that and report back
Modern modding is a way better alternative than OptiFine, I might have a link here
A list of recommended OptiFine alternatives on the Fabric mod loader.
I have a pack with some forbidden fabric mods on this list that haven't been officially released for 1.18.1 yet
It uh
works
I either had to build them myself or find a fork from another impatient soul
Yeah no same lmao my mods folder is cursed
I used to back it up but my raspberry pi needs a reinstall and I've been busy on a commission
Canada
oh thats weird
here if youre exposed you take a test and if youre negative youre clear
I have that flickering issue in 1.18 with iris and sodium
iirc vanilla too but I haven't checked in a bit
I've only ever seen it as a Sodium bug personally
anyone else experiencing a problem with realms where some progress is lost across the entire server?
ok nvm it's probably just a datapack being dumb
Wow this vacuum is way too smart
It just used LIDAR to map out my whole house in like 10 minutes, mostly figured out what to avoid before it bumped in to it, and then took the most direct path back to its charging station without hitting anything or getting lost on the way
I can see, on the map it made, chair legs and such
It didn't figure out my desk since the feet are too low for the LIDAR but it figured out the legs and my slippers sitting next to it
wait till it finds one of these bad boys 🐀
That's what the 🐱 is for
What vacuum is it?
iLife A10
You can even see my feet in the map where I was blocking it from running in to the outlet on the floor under my desk (which I marked as a no-go zone after mapping was done)
those sound great until I remember my living area is in a constant state of chaos
also I love that your vacuum has lidar but teslas won't
I use like a $100 roomba and it just bumps into everything, and if there's any cable on the ground, it usually grinds the heck out of it or tugs it and whatever it attached to it with it :P
the more expensive vacuums definitely seem worth it
I think it redoes the mapping every cleaning run too
It just has a mode to only generate a map and not do any cleaning so you can map things out ahead of time
It doesn't have to try to wedge itself into every nook and cranny when it's in mapping mode, only areas where the LIDAR doesn't make it clear if there is a wall or not
It basically just went around peeking around corners and bouncing off the few things where the LIDAR could see but it couldn't fit
I had a $100 roomba, it literally just does a random walk around the place
It'll go over the same area many times and not go to some places
Then I got a better one that would generate a map as it ran but it didn't have LIDAR so it bounced off everything to create the map and forgot it after a run
It would get stuck on cords or jammed in to places all the time
lol yeah if you're gonna make a purchase that is basically the embodiment of affluence and laziness probably don't cheap out on it
and I don't mean that in a bad way at all, they're neat
Oh I'm super lazy, that's why I got it 😛
But I also have three animals here so I would need to go sweep twice a day to keep the hair under control
Forget that, let the robot do it 😛
just a normal day
I'm not surprised that your favorite cat video is of a cat being cooked


nelson will fight a candle relentlessly
oh
Different chew.
bruh
Yep totally free. Don't pay for a crappy fork that is most likely just Paper anyway.
yup but its not opening
If you need help go to #paper-help
i downloaded it
And explain your issue / be descriptive.
IIRC the barrier block outlines are only in certain gamemodes, not survival.
But you can use a modified client and see them.
So there's no way to 100% hide them from everyone.
I think if you're an op you see them also
yeah adventure will hide the outlines
the thing with barriers and creative mode / op is the barrier particle effect which is different than the bounding box outline
although you might only need to hold the barrier item to see the particles, can't remember
You still see barrier block outlines in survival? Huh
sure do
you can technically change light block levels in survival too
the vanilla client just doesn't outline them
aint that somethin
outlines are there cause you can interact technically
in adventure you can't interact unless explicitly defined
thats why you see no outlines
if you had a mod to be able to interact with light blocks the server would let you change their light level by default
which is awful design lol
the client can be trusted 🙂
pretty sure paper patches that right?
I remember there being a machine maker patch about that
Not on paper you can’t 😛
Oh yeah, pure just linked it
Who's this machine maker guy why is he patching all my exploits smh
Question?
How many servers should I be able to run on a Ryzen 7 5800X with 128gb ram, because right now I have 2st 32gb server one for each gamemode
Yeah, dedicated
nah
realistically 8G is good for a server unless it has many people
Yes. I found it surprising someone who had a dedicated would still be asking that question lol
12G if you have 100+ players
Coz there is no answer to it
Not my question 🙂
1 dedicated server with 2 vps on it, each running 2 servers
or 2 vps each running 2 servers (for halv the price ofc)
That’s cursed but ok
If you already own the dedi why would you create more overhead
If you want the most out of it
For an separate instance for the two diffrent servers
e
🤣
lollll
WHAT
lol
Post in #paper-help
sounds like you have a case of PowerBoard
go bother them about it lol, its their plugin thats causing it
mfw I got called twice now that my delivery will be here in 2 hours
call them back to make sure
must be important
Does anyone know a way to show my group manager rank on top of my head infront of my name?
like Hypixel does
nametagedit?
it syncs with group manager?
you can make NTE display pretty much whatever you want
yes
hello mikro 
helo
i remember the days when i played with bungeecord and i really liked GM
i wanted global groups
literally the only reason i used groupmanager was the essentials chat integration
and i'm pretty sure that's the only reason people used it aswell
so what i tried to do, was symlinking yml files
didn't go that well
moved to PEX
that worked fine, had to set up NetEvents plugin to sync pex globally and that was it
there was one paid plugin which made life easier and iirc claimed there is no other way
but just had to configure pex properly
luckily that's a past now - luckperms is the way to go
wat am I supposed to use
luckperms
idk ask them
Omw
hypixel forums post inc
Well uh I doubt hypixel uses &8[&7MEMBER&8] for nons
They use simpler ranks
Such as &2[MOD]
So I will remove the bolds?

gotta append &r to fix names

Lmao shut up I play on cracked cause it's easier to use multiple instances to test plugins such as trade
I don't have 200 alts
who asked tho
I have a very good awnser to that
I don’t want to know it
Lmao this is funny
Ew cracked
What?..
Notch himself told if you have no money for the game crack it
where lol
lmao
@AndresLeay Just pirate it. If you still like it when you can afford it in the future, buy it then. Also don't forget to feel bad. ;)
790
.
Exactly lol
how
His own rules
no it's Microsoft's rules
Microsoft sucks
Lame for him
ok and?
to sell it
“Microsoft sucks” - someone using windows and playing on Minecraft
this is a legit use case
Switching to Ubuntu
now
lol
It is sharvesh, the issue is that he’s saying piracy is good and allowed because notch said so
I think it's on there as <an old tweet from notch>

and if it was added we'd have to overwrite paper-chan in the middle
If you were broke too you would crack it stop the cap
no I wouldn't lol
lol
I am pretty pretty sure you would
and theres not denying to this
if I was broke I'd not play the game and work on getting not broke
it's a ten year old tweet and we don't support piracy here
end of discussion
if I was broke I imagine there'd be bigger problems that not being able to minecraft
Hi noah
What if you are 10 lol and can't get a job
oh really?
fun fact if you're 10 you can't use discord
gotcha, alright time to shut up
Is it time to report a discord account for being underaged?
I am 16 tho..

Oh... Good.
half of me wants to ping mods
I really want to as well
🍿
half of me thinks they’re already debating what to do with him
The thing is, I didn't do anything, suddenly you just started being toxic and now you're turning it on me
stop the reply chains
discussing offline mode
"you can't discuss offline mode"
at least I have a life
guys stop being toxic
I never said I had a life
drunk
Everyone drop it
How does that offend you
@void void we don’t support offline mode servers here. Sorry.
I am not in offline mode Tho
I didn’t say you were. But arguing the point here makes no sense.
Ocelot, he is using offline mode for a legit use, which is not bad, the issue is that he said piracy is “good” just because an old tweet from notch said so
I didn't say it's good I said Notch is approving it, also I sent the link for that
https://twitter.com/notch/status/157261795139125248?lang=el
@AndresLeay Just pirate it. If you still like it when you can afford it in the future, buy it then. Also don't forget to feel bad. ;)
790
stop the cap
Again: let’s drop it.
@plucky sparrow Add me
why even
Just do it
why should I do it
To Chat
You can chat here
Unfortunate for you
And I am stopping it here, I just want him to know that his is toxic asf
Continuing to tell someone they're toxic isn't dropping it.
why doesnt your christmashat fall off?
Anyone else get some wierd dates from getFirstPlayed? and also with getLastPlayed, like 6h wrong
define weird
Like I joined 2021/08/20 but output right now shows 2021/12/26
getLastPlayed is 6h wrong
already did
If it's 4 months and 6 days off then I dunno.
They should return a UTC time.
delete your player.dat and try again ¯_(ツ)_/¯
hmmm
i feel called out lmao broke asf
MC was the only game i could legitimately afford 
that one weeb : dear poor people get rich
dear poor people get rich
dear homeless people: buy a house lmao
Just inspect element your PayPal balance
damn I wish I could justify buying a laptop now that frame.work is available in europe ;_;
https://databin.svenar.nl/naqopuhi.md my server is lagging after getting this error
that tells us nothing
I suggest using the help channel as well as providing the full log
Hi
hi
Do you guys look?
@quiet shore cool thx for boost
Guys, when I couldn't download the world edit plugin, can you send a file compatible with paper mc?
Check your console
okey
when you try to download a legacy version is it supposed to add 5 seconds each time you answer wrong? lol
Probably
If you don't like it, I propose a solution... don't download a legacy version.
I'm not doing it for myself, just testing my plugin on older versions but I love this is a feature
hey
yes, that is intentional
IMO it should multiply the wait time by five when you get it wrong
i'm seeing the warning removed for papermc 1.18.1
does this mean we are at a good release now?
ok
check pins in paper-gelp
Should store it on a server so they can't just reload the page heh heh heh
well you probably could just download the sources and compile it anyways if we're talking about legacy servers
what exactly is the purpose of a data transfer object?
I mean, Ive never heard of that term before
but, a literal 2 second google just suggests that it's a plain object with no logic inside of it for doing stuff
?
it seems like it's just a pojo, but also have a converter to convert X -> SomeDTO or whatever. i'm not too sure what the use case is though
regret to inform you it's broken on mobile
I think it should say try again in x seconds
INVALID ANSWERS, TRY
people get those answers wrong?
me neither xd
they do. I think the question is too hard @left swift for your average 1.8 user
better name for that would just be a data class tbh
this reminds me that I have a Paper 1.7 repo that can be successfully built somewhere on my PC lmao
Invalid Answers. try
set the border closer?
I meant if there was some sort of tool t clear unmodified chunks
both Chunky and MCA Selector has it
For a radius or unmodified chunks
@warm anchor 
anyone have any fix for this , works fine in singleplayer but not in latest paper 1.18
test against spigot jar then open an issue @formal tusk
when will 1.18 come out
it's been out for ages
the good version
it's been out for ages
as stable as any other version
sorry next time we will send you a mail personally
make sure your address is updated!
no
i meant
like did it say in anncouncments
so stable 🙂
I didn’t receive the mail???
What a bad service
You receive mail. I use my eyes.
you mean you dont think about paper-help while eating your Christmas dinner with family??
He doesn't care about paper-help during the holidays.
So there is a packet of mentos fruit near me and the only colour I have seen come out of it is just pink.
There is 5 left and the next I will have is pink.
ok
cat has a family?
ok to be fair neither do i

paper help losers
Why should i build my plugin with shad-plaugin?
shad?
shade
well, if you want to shade something in, like a dependency or something
upload to spigotmc in parts
either every part as an update, or even separate resource
So, what you do is upload a bootstrap jar
and, then you release the base data
and then, everything after that is a patch file
sounds like a blockchain
maybe here and there you release a much wider roll-up patch for people who forgot to update
😄
do what microsoft does for windows update
collect the current state on the client, then the server generates the necessary patch
to go from x -> y
don't worry how long it takes, and that it's incredibly slow, because it'll just run in the background
xdelta3
blockchain spigot plugin
isnt that against spigot's rules? It should work offline too
XP still lives on in my heart...
and, that only counts for premium stuff
and nightmares
yeah it's made substantial improvement. my partner's friend's husband got a job working at microsoft on the windows update system
he told me some of the nightmares, it's ancient code they don't care touch else they might incur demons
Paper developers suggesting to break spigotmc rules, you heard it here first folks 👀
apparently there's a master xml file that no one actually knows how to make, except for one guy who makes it manually. everyone just assumed it was generated automatically
well
it's windows
he said tracking down the guy who made the xml to talk to him so he can document the process and later automate it, went through over 10 people, because no one had any idea where it came from
windows moment
what happens if something in the xml is wrong
how u get that out of talk of windows xp and windows updates
ded moment
probably tears a hole in the fabric of spacetime or something
i read between the lines obviously
time to start deleting every xml i can find on every computer in my campus
maybe you should scroll up a bit
to the conversation I was in
yes
ded moment
that sounds like a fun plugin. boots up a windows XP VM alongside the server that you can RDP in to manage the MC server
piss
pretty sure it's an internal file at microsoft, which is used as the source of truth for how windows update generates patches
but I talked with him several months ago, and am no expert, am probably misrepresenting and misremembering things
oh
if your memory is accurate though seems like I'd do well in a position at Microsoft
this sounds exactly like something I'd end up doing
i fixed the autocompletion bug finally turns out brigadier enabled breaks shit, 
1 down 500 to go
only to end up rewriting everything 1 week after i finished it
my favorite horror story is oracle db
Oracle Database 12.2.It is close to 25 million lines of C code.What an unimaginable horror! You can't change a single line of code in the product without breaking 1000s of existing tests. Generations of programmers have worked on that code under difficult deadlines and filled the code with all kinds of crap.Very complex pieces of logic, memory m...
What an unimaginable horror! You can't change a single line of code in the product without breaking 1000s of existing tests.
I'm glad the JVM isn't at that level yet lmao
mvn build --notests 
Oracle and OpenJDK has actually been putting in a lot of work and making a lot of process at cleaning the JDK up
well ig package would be the right one but shh
on another note they take forever to approve your requests to join projects and shit
problem with codebases is that sometimes you just need to have a period of time where you say, fuck it, no features, lets clean some shit up and fix a few issues
now if they could only get rid of Object in old code an use generics that'd be great
issue there is that then you start infringing upon everything else, e.g. now every change request probs has to be rebased, etc
obviously it has to be an ongoing progress, but graal largely exists as a research project for an attempt at creating a better GC system, written in Java. and it's generally been really successful so far
"we'll get back to you within 2 weeks" and proceeded to finally accept my request after 2 months
which, gets in the way of dev time, etc, etc; so, you just end up in this case where code bases just rot
||| code courtesy of the tf source leak |||
Music: Hall of the Mountain King
channel discord --- https://discord.gg/8TYgJhwA7S
channel patreon --- https://www.patreon.com/shounic
custom files --- https://pastebin.com/raw/e32aG4nP
[ hud / crosshairs / hitsound / killsound / gfx cfg ]
FAQ:
Q: How did you make that? What editing software do you u...
Graal is just everything rewritten in Java tbh
guess everyone at OpenJDK forgot about Metropolis
the only ones I can think of that have succeeded at that are C/C++ and Rust
but i don't really look at that many language implementations
sounds insteresting what's it about
I can't fucking spell gg
Well, not a major one
java's JIT and graal's work at AOT compilation ends up being legit good enough these days to match C code compiled with -O2 optimization most of the time. It's absolutely possible, with time, for Graal to become a fully self-hosted JDK/JVM
Graal still has the AOT?
The only real slowdown Java has over stuff like C is the GC and much much more heap allocation. The upside is Java can allocate on the heap faster than malloc() can
yeah
I fucking hate the way IJ commented that block of code too, but, I was tired and really CBA
oh
never knew that, interesting
and also of course bounds checks, and other sanity checks the JVM does like type validation
java's JIT and graal's work at AOT compilation ends up being legit good enough these days to match C code
tbh though wasn't that usually the case given equal level developers for both?
you missed my point
like using C doesn't just magically mean it'll be fast you actually have to know your shit for it to be fast
in java code ofc you can micro-op shit for the JIT
welp
but, the goal is that you don't gotta do that stupid shit to get good perf out of it
the point is that the machine code generated from the JVM's JIT can match the optimization level of C code compiled with -O2. Java still has several things inherent to it, which I mentioned a few being GC, lots heap allocations, bounds checking, type validation, and others, which will mean it's always going to be doing more work than C
but Java of today is orders of magnitude more efficient than it was several years ago, and it's continuing to improve
yep
it's definitely come a long way
surprises me that people still think it's as slow as it was way back in the day
Well, I mean, people just regurgitate shit
especially around areas which they don't understand, just look at the perf improvements java has had over the past few years alone
The biggest thing is Java is a simpler language than C. Not simpler in terms of syntax, C is dead simple. Simple in terms of being able to write code that works first try, code which is safe and not leaking memory, code which can handle errors clearly and effectively. So that's the tradeoff.
Rust does all of that at compile time, and is extremely good at it. But that also creates inherent complexities and limitations that can be difficult to work around. And of course it has the most complex language syntax I've ever seen
people still think we're in java 1.4 territory
yeah
how long ago was 1.4 i can't even remember
(The Java version not the Minecraft version)
computers didn't exist yet
At least there are automated tests, can't say that where I work
.g java 1.4 release date
(DiscordBot) https://en.wikipedia.org/wiki/Java_version_history
The Java language has undergone several changes since JDK 1.0 as well as numerous additions of classes and packages to the standard library. Since J2SE 1.4, the evolution of the Java language has been governed by the Java Community Process (JCP), which uses Java Specification Requests (JSRs) to propose and specify additions and changes to the Ja...
...
https://en.wikipedia.org/wiki/Java_version_history
J2SE 1.4[edit]. J2SE 1.4. Codename, Merlin. Released, February 6, 2002 (19 years ago) ...
February 2002
Not joking, dennis ritchie wrote the C code and then compiled it by hand using the rules of the compiler he just wrote
One of very very few languages (and only early languages) which was entirely self-hosted from the beginning
that's just on another level lmao
he did! the assembly was the output of the C program
C is supposed to map pretty damned tight towards the ASM output
these days C compilers generate huge unbelievably complex instruction sets for seemingly simple C programs. But that's not how it always was
yeah back then most things were 1:1
but in that case... why bother writing C in the first place?
So, "compiling" manually is trivial, especially back then
basically just shorthand for assembly
nowadays you have much more complex instructions and such as well as steps of optimisation to produce more efficent output, etc
most of that is from linking against libraries and whatnot from what i remember
Well, more
x86 is more complex
SSE, etc
and then you have many other architextures too
x86 is a fucking behemoth
it was still useful to write the C code, as a shorthand for assembly, because that's what it is (was). a shorthand
There was a video named "top ten craziest x86 instructions" and, like, wtf
I've only seen bits and pieces of x86 so far
https://fgiesen.wordpress.com/2016/08/25/how-many-x86-instructions-are-there/
Aug 25, 2016 ... To not leave you hanging: Intel has an official x86 encoder/decoder library called XED. According to Intel's XED, as of this writing, there ...
TOP TEN CRAZIEST X86 INSTRUCTIONS! YOU WON'T BELIEVE NUMBER 8!!
Support What's a Creel? on Patreon: https://www.patreon.com/whatsacreel
Office merch store: https://whats-a-creel-3.creator-spring.com
FaceBook: https://www.facebook.com/whatsacreel/
In this video we’ll look at some of the most complex instructions available in x86/64 Assembly language.
I have checked against the manuals from Intel and AM...
Even if you don't know x86 it's pretty understandable
if you want to have your mind blown, see https://youtu.be/KrksBdWcZgQ
A processor is not a trusted black box for running code; on the contrary, modern x86 chips are packed full of secret instructions and hardware bugs. In this talk, we'll demonstrate how page fault analysis and some creative processor fuzzing can be used to exhaustively search the x86 instruction set and uncover the secrets buried in your chipset....
me when PCMPxSTRx
i know a little of it but not enough to write hello world in it
😌
there are more instructions available on most CPUs than what is publicly documented
sounds kinda like public APIs vs internal methods to me
I wrote diff (not entirely obviously) in x86, but if you asked me now I couldn't even let the program exit with exit code 0.
bad analogy but meh
this was the first x86 assembly I've ever written https://github.com/DenWav/aoc2021/tree/main/day03/problem2
Previously I had only written 8086 assembly, which is significantly simpler
ay you now have a new follow C:
as you can see, I just fucking gave up on memcpy https://github.com/DenWav/aoc2021/blob/main/day03/problem2/copy_matched_lines.s#L82-L117
I've only written one very simple one before and it defo wasn't x86 or annything fancy
would have been better to implement my own memcpy in assembly imo
pmsl
x86 did away with the shift registers instruction that the 8086 has
so you can't dump all of the registers with a single instruction anymore
# memcpy seems to screw with all kinds of registers
# So just to be on the safe side...
push rax
push rbx
push rcx
push rdx
push rdi
push rsi
push r8
push r9
push r10
push r11
push r12
push r13
push r14
push r15
call _memcpy
pop r15
pop r14
pop r13
pop r12
pop r11
pop r10
pop r9
pop r8
pop rsi
pop rdi
pop rdx
pop rcx
pop rbx
pop rax
I also only did it once, forgot all about it and now Secure Programming comes along, gives a piece of assembly code and asks to find the security vulnerability. Like, come on
probably lack of bounds checking
I mean, that was one of the common ones
But, as an example the professor wrote like ten lines of C code to print "Hello name" and there were four security vulnerabilities in that
well
gotta love buffer vulnerabilities and all
10 lines of C to do that is already a sign you're doing something wrong
printf();
or more accurately, doing way more than you should be
best security in code is not having the code at all
s t o n k s
joy is all of the buggy baby bumpers using a managed language gives you
this is probably the most assembly I've seen in a repo ever
i heard stef loves assembly
small problems generally don't need a lot of code to solve, but with assembly even doing simple things sometimes requires a lot of instructions when you don't know how to use all the fancy vector shit like me
fortran was also fun https://github.com/DenWav/aoc2021/blob/main/day09/problem2/solution.f90
iirc not even the JVM has that high of a percentage (Even including inline assembly)
Actually 11:
#include <stdio.h>
char ∗hello(const char ∗name) {
char message[256];
sprintf(message, "hello %s \n" , name);
return message;
}
int main(int argc, char ∗∗argv) {
char ∗message = hello(argv[1]);
printf(message);
return 0;
}
This was the code, if you feel like it, find the four security vulnerabilities, three of them are quite easy, the other one is more difficult imo
never tried fortran but heard it has a bad rep
fortran definitely has some things which are much less convenient than C, but there's other things which are way easier than C
remove the requirement of defining all variables at the top of any function or procedure and honestly, it's not that bad
other than that oddity it feels much more modern than C does in some ways lol. Much richer type system
...I definitely need a revision on this topic
That said, this is modern fortran, it used to be much much more rigid than it is now, much harder to work with. The file type is f90 because it's the 90's version of Fortran where they removed a lot of ridiculous shit like every line has to be 8 characters indented, unless it's a comment....
it supports complex number types natively too, pretty cool
you rather than me
A lot of bugs in C can be exploited to form a security vulnerability, so you can also just look for bugs if you find that easier
kinda reminds me of how go is basically this language designed around "devs out of college know jack shit but we need productivety"
well fortran isn't remotely like go lol
hey thats me
Like, theres so many languages out there which look interesting but are so stupidly complex to get into and such
it's a language targeted for mathematical shit, basically made by/for a bunch of mathematicians
Sad thing is, i'm probably one of the best java devs out of my college and that says a lot lol
well from my year
and because of that, modern fortran compilers can sometimes produce more efficient code and use more obscure intel instructions etc than C compilers, being a language targeted at efficient math work
I mean, the larger companies want you to both know how to program pretty well and want you to know all the theoretical stuff behind it as well, even though those are two studies, not one.
Like, java is one of the weird areas where it's a pretty darned simple language and easy to work with (but, the ecosystem is somewhat kinda semi-ass at times)
out of all of the problems, fortran produced by far the smallest binary
I'm guessing some of it has to do with sprintf and the fact that message has quite a decent amount of memory allocated there
Like, fortan at least from my understanding is a pretty powerful language, but, at the same point, so much of a chore to get into for most
and only linked with system, which in macOS land is the same as only using kernel syscalls
and then you have go, which seems to cut out stupid things in the quest of being "easier"
yeah massive chore tbh lol
I like that C# for example has nuget which just works out of the box, so you dont need a build system like gradle or maven, its just integrated
The memory isn't allocated, but the problem isn't necessarily that there is too much memory in use: 256 characters isn't that much.
the syntax gets tiring after a while though, as much as I like it
hmm
I mean, it's consistent, for the most part
being able to use var now already solved most of my grudges with java
grr
but, java is so far behind other languages
and we have such a dated ecosystem which has many massive pros and cons
i shouldn't be struggling this much
e.g. we had the node.js "random person deletes a library and breaks the entire ecosystem" solved before n.js existed
There are 256 characters, but how long will the message be that is going to be stored in there?
The memory isn't allocated
my mistake yeah got a bit mixed up with something from C++
ahh
you wouldn't know
sprintf is shoving the result into message which is 256 chars long, but name can be longer. And it's returning a pointer to an invalid memory location, once the function returns, which then gets printed out from printf. That's all I can see
Yep, that's two out of four
oh y'all are talking about it down here
oh i had it backwards
Indeed, it's not that it is too much, but that it may be too little
oh no check on the length of argv
Yes, that's another one
ah
yep that's what I was thinking
we have 1 left?
does sprintf automatically add the ending null terminator?
sprintf doesn't change the null termination I believe and the provided string is null-terminated, so that shouldn't be an issue.
it sounds like it would, being labelled as safe printf after all
It's at least not listed as an issue here.
wait
why am I getting all the standard library calls mixed up
#include <stdio.h>
char* hello(const char ∗name) {
char message[256];
sprintf(message, "hello %s \n" , name);
return message;
}
int main(int argc, char ∗∗argv) {
char* message = hello(argv[1]);
printf(message);
return 0;
}
might as well move it down here so it isn't all the way at the top lel
at this point it's a guess lmao
technically the * should go on the name, but doesn't matter
I copied from a PDF, which didn't really like the monospace font, so I manually tried to make it readable, but may have missed some stuff
technically that's a style issue, but in C the * is a label on the name, separate from the type
might be something to do with printf being passed message instead of the return value of hello directly but I really doubt that
sheesh this stuff be do going on 
Storing it in a variable first is fine
gg I've been getting the * on the wrong part of the expression for god knows how long
for instance, this is legal:
int notAPointer, *isAPointer, **pointerToAPpointer;
If you did:
int* thing1, thing2;
then only thing1 would be a pointer.
Is the other security issue that the result of sprintf isn't checked? Doesn't verify that it returns a success value
https://stackoverflow.com/questions/2948361/when-and-why-can-sprintf-fail
Jun 1, 2010 ... It may fail with wrong format string, for example, which cannot happen in your case. If buffer is not big enough, it may. Otherwise, no reason ...
the buffer not being big enough seems to already be mentioned here though
this is how I handled that, not the most efficient way, but to do the format and find the needed length, then doing the actual format with the now-known length https://github.com/DenWav/wat/blob/master/native/src/logger.c#L19-L25
no it would have no idea about that
all it gets is a pointer
Yes, but that falls under the buffer overflow issue
You could count it separately, but then there are five issues 🙂
I disagree in that instance, they are different issues. But that's cool, that means there's something else somewhere...
i swear it's going to be something extremely obvious and me and DenWav will end up headdesking
I think I know it
I personally didn't find it obvious when I was going through the manual, the three obvious ones you have spotted already
is there a way to get the latest build of 1.17.x from v2 API? without the need to specify the build
should either be:
printf("%s", message);
or
puts(message);
Since otherwise printf would try to parse message
Yes, very good
seems like I still have some more catching up to do for C
I'm by no means an expert, just gotten my hands dirty with C a few times lol
If you were to put formats in the provided message, C would start grabbing those from the stack (if it doesn't already fail with a segmentation fault).
enough that I am aware of the fundamental things you gotta watch out for
No, you have to specify the build. You can grab the list of builds first, take the last one from that and use that, but note that we do not recommend auto-updating.
that's odd, printf should retrieve the length of the arg array from the al register
which the C compiler should set to 0 beforehand
i assumed the parameters were all in the right places to begin with :P
but yeah you should never pass a string to printf, the format string should be a literal, to prevent that kind of issue
Haven't tested it myself, just said what was stated in the manual
that's what I had to do when calling printf from assembly at least https://github.com/DenWav/aoc2021/blob/main/day03/problem2/main.s#L122-L126
I only understand a bit of this lmao
lea rdi, [rip+printf_input]
mov rsi, rax
mov al, 1
call _printf
I mean there's a comment on each line to explain what it's doing
Looking back at my old Assembly I don't seem to be doing that. But that may just be my code being wrong.
or could just be a macos thing
load effective address of instruction pointer + input to rdi
move rax to rsi
move 1 to al
call printf imported from somewhere
well i meant based off of the little I know about x86
how the registers map to function arguments is listed here https://github.com/DenWav/aoc2021/blob/main/day03/problem2/main.s#L51-L52
rdi is the first arg, rsi is the second arg, etc
there are other rules for non-int functions (or functions with param lists longer) which utilize other registers and/or the stack, but I made sure to only use int functions (functions which take integers or pointers) in all of my functions, and any functions I called
that's defined by the calling convention, this is at least true for macOS
is that a specific calling convention or one that's just used for that particular piece of code? I can't really tell
I remember that being the convention as well
rdi first, rsi second, I believe there's a third one as well and then more arguments go on the stack.
rdi, rsi, rdx, rcx, r8, r9
I think there's more after that, but that's all I needed for my reference
I think I should have done mov rax, 1 tbh, to clear out anything else in that register to be safe
but the info I found said it only reads al
Looking back at the course manual for systems architecture they don't state anything about al, they only state that rax controls the vector arguments, which should be set to zero if you're not going to be using them.
But this was also for x86_64 AT&T
ah, so I'm right that I should have nuked all of rax
the reason that code worked is probably just that the value stored in rax immediately prior (the result of the problem) was small enough to just fill al
still a security risk
Probably, but if you're going to do more Assembly, should definitely check it, cause looking at my old code, the syntax is different so there are probably differences.
all of the potential issues with asm waiting to blow up in your face makes me wonder how those guys at OpenJDK manage to retain their sanity lmao
10k lines of assembly
Like, that instruction you wrote would have been movq $1, %rax for me.
if you're going to do more Assembly
I did want to try it but ended up giving up partway through :/
(I believe it would work without the q as well, but still.)
oh I'm not a fan of assembly
wrote a whole bunch code a while ago
called the switch to 64 bits thing
now I have to put r in front of all the registers? what?
makes no sense to me
If you work with different sized registers, you need different instruction to accomodate for those.
In my message above the q is to make it for 64-bit registers.
Hello guys there is a channel to ask about textures?
er, I mean
we do server stuff
if you're creating resource pack stuff this is probs far from the best community for it
First

I always wanted to do that
😐
oh no
secon
slow mode is coming
those reactions going crazy
Let's go
reactions are lagging on my screen
that's just because you're here
who are you
Same. My screen was flashing lmao
nomana my beloved, 🧱
holy these samples are big
Yep, broke my client for a few seconds :p
new forums entirely
I learned to never click on announcements after everyone ping
It’s instant client crash usually
i like to watch the chaos
Damn the new forums looking fancy
The new forum looks great
what forum software is that?
pls make forum default dark theme
eyerape is that
oh nvm im blind
ohhh yeaaa using the superior forum software now
its literally at the bottom lmfao
hangar powered by xenforo
Am I dum forum looks the same to me

it was discourse yea
so why are they using 2 forums?
is the old one gonna go away after hangar?
epic
Is this what it looks like or is my cache fucked
tomorrow
Oooh
old forum has registration disabled already
it'll go read-only soon
I see you guys aren't using PaperAuth for the accounts
Paper on its way to overtake Spigot:
Xenforo: ✅
Plugin repo: 
Biggest market share: ✅
will a migration happen later?
paperbucket
Don't worry about that for now, it is intentional, things behind the scenes are being worked on :)
Ah nice, love to follow the web development, tryna learn a thing here on there for when I start doing websites
Don't forget to ping mini every now and again to work on hangar 
Can't wait for Hangar do
new forum looks amazing 
As I'm making great progress with my world gen resource
Time to claim my username so I don’t have to pay $10 to change it 
that has paper support(Only really implemented platform atm)
in the footer
is the footer supposed to look like that?
o em gee
try refreshing
gimme your user agent
AND FUCKING BREAKS SHIT
i swear i dont do it on purpose
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/96.0.4664.110 Safari/537.36
Ded really just here breaking shit all day
but make it default xd default light mode is eyerape after using discord
gecko
i prefer light mode for forums tbh
yes and we think that you're bad
Wow, new forums site looks incredible!
if you cant make it ded proof dont make it at all 
But why I receive this message when trying to register?
well cuz you should probably register and not login?
Yeah, but this is register window
after you fill everything in?
https://forums.papermc.io/members/amaranth.26/ woo member #26
Look at my join date 😛
thats no fair
only second user?
ofc, kash cheated
fabulous
bruh, it was some kind of one-time bug
see, i'm not the only one breaking stuff
im going to be top poster on paper forums, believe it!
Member #58 ye
number 80
► Lazy Town - New Videos!: http://bit.ly/2pomR9p
Sing along to the Songs of Lazy Town!
Subscribe to the Lazy Town YouTube channel: https://www.youtube.com/channel/UCNuLcjVa3vCeHFyUeTKtBlA?sub_confirmation=1
Click to watch more Lazy Town Videos 🎬 🎤🎼
🎬 🎤🎼 All New Lazy Town - Karaoke/Sing-a-long HD : https://www.youtube.com/playlist?list=PLZs...
They would reset accounts especially for hangar?
If anything, you'd need to do a password reset or similar at some point
even better yet https://forums.papermc.io/members/69/
mini is writing the front end, 2030 is too soon of a release date
actually not working on hangar right now, just rebooted my PC, lol
I completely changed the layout of my room, had to rewire everything
PAIIIN
F
the other day i changed the mounting bracket position on my desk and it was horrible
my fingers still hurt thinking about it
ye looks nice
no longer piano party in the kitchen tho
that couch next to the desk looks dangerous tho, id probably take a nap break every 10 minutes lol
reason 12457234 why hangar isnt done 😛
where else should I put my couch tho? lol
I only have this room and a big kitchen
Not sure where best to ask but, how would I go about custom model data texture for a chest? I've done it with other items, but chests are... funky.
Hangar is probably the thing that I'm most waiting for in minecraft)
jesus that place is kinda narrow
and that sofa is thic
wait, is that your bed behind the PC? o.O
yes thats what I did today
lemme get a non distorted photo
Like, now I kinda wanna go see minis house just to see what the fuck of a layout his place is
Yeah doing a landscape shot that goes around a corner makes my brain die
Yeah
I'm assuming the room is L shaped anyway
I was trying to figure out the problem
Oh, or not...
Why has my Forums post been removed
cable management tm
and the couch is collapsible so I got room for VR shit
ignore that cable mess next to my desk, thats my 5.1 sound system that I need to connect....
Okay, that makes the place look like less of a total abomination
the rest of the cables are somewhat nicely managed
It reminds me of trainwreckstv old apartment if you know who that is, everyone used to say he lived in a shipping container
it really is like the most oddly proportioned room in terms of length vs width
Looks nice for the space available tho
It looks like someone took a bedroom and walk-in closet at the end of a hallway and made it in to an apartment
oh don't worry this flat doesn't have a single 90° wall
this is the flat
the walls are not even that far off angle wise 😂
Actually quite small, room wise, yet a lot of space
My living room has 39sqm
its enough to spend a weekend as 2, or to invite friends for an evening
But it's opened to the staircase
am pretty happy and lucky that I have this
am living around parks, I can walk to everything, I have the subway/tram infront of the house, 5 min cycle to work, 2 min to autobahn, its perfect
I have a few km to the next bigger city... with 20k people living around
but, like, what else can you do
oh 20-40min (depending on BAC) to the cologne party street is a big plus too
Countryside rocks 
having a bigger flat would just mean more work, not worth it 😄
living out of the city has some pros but defo some cons
until am in an actually stable relationship for once it makes no sense for me to move
Means more space to fill with dumb crap you need to tidy up
I can't even buy stupid amount of cloths since I only have a small drawer 😄
for me, I just kinda hate the bed in the living room setup
I did cheat and have some cloths stored under my bed now tho








