#💻︱programming
1 messages · Page 2 of 1
Laugh in Lua paradigm
😭
^
Well gl geting a certificate on other port
Plus I will need those ports sooner or later anyway
Browsers require certificate for some domains
No i mean both
Ig yes but I rather test not locally to actually make sure everything works correctly
Testing after pushing to production with force push is really the only way
I'm trying to get into coding mods and stuff but it's just too hard exporting the files to mc
Anyone know any good like tutorials to get into coding/mods?
Ok hope I didn't get hacked
You'd want to get into Java first as Minecraft is written in Java (and mod loaders like Forge or Fabric uses Java). Learn the fundamentals as well as OOP. After that I'd say you know enough to start with modding.
Isn't there a difference from JavaScript and C,++?
Yes, several big differences
So why would I. Learn 2 , languages rather than 1
Don't be confused though. Java and JavaScript are not the same
They're 2 different languages
Well, they both use a C style syntax meaning that if you know how to read/write in one language, it'll be easy to switch to the other.
As for differences, Java is an interpreted language whilst C++ is compiled. Compiled means that it's been "translated" to binary code that the computer understands while interpreted means that it needs an interpreter (a different program) to understand the Java code
Compiled languages tend to be much faster than interpreted languages
Java uses the JVM (Java Virtual Machine) as an interpreter to run Java programs
Too complicated I'll just learn C++
C++ does have more complexity than Java, but if you're intetested in Minecraft modding you can't use C++
No
Modding is just modifying the client. Creating a client is creating one from complete scratch, although don't be confused by names like BadlionClient or LunarClient. What those clients do is take the vanilla client and modify its code but directly in the client
Bro I'm talking about bedrock
You could use any but if you mean like Badlion/Lunar/etc, Java as you'll be modifying the game's code, which is written in Java
Oh. Bedrock doesn't support modding
It does
They have their own scripting ways of doing things
And ur talking about java this whole time?
Yes. For future reference, when you mention "modding", most people will go with that you mean modding the Java Edition of Minecraft. If you mean Bedrock, make sure to point that out
I don't think everyone in this channel has done modding xD This channel is kind of a general purpose thing related to programming
Microsoft has some documentation of their behaviour packs. I believe there's also a wiki called bedrock.dev or something like that which a bunch of information
Modding bedrock is significantly harder as it isn’t possible to decompile it
Never said you were 🙂
Hack Microsoft, grab their source code and we make the first ever client. Ez
Bro
Technically, making a custom Bedrock client is possible. Make it from scratch and just use their protocol and authentication
Is that really a client or just an injection/pack/whatever the name is?
I'm not familiar with Bedrock injections as I've never really looked into it
For the third time cya
reminds me of this
C++ is a horrible language. It's made more horrible by the fact that a lot of substandard programmers use it, to the point where it's much much easier to generate total and utter crap with it. Quite frankly, even if the choice of C were to do nothing but keep the C++ programmers out, that in itself would be a huge reason to use C.
In other words: the choice of C is the only sane choice. I know Miles Bader jokingly said "----", but it's actually true. I've come to the conclusion that any programmer that would prefer the project to be in C++ over C is likely a programmer that I really would prefer to ----, so that he doesn't come and screw up any project I'm involved with.
C++ leads to really really bad design choices. You invariably start using the "nice" library features of the language like STL and Boost and other total and utter crap, that may "help" you program, but causes:
- infinite amounts of pain when they don't work (and anybody who tells me that STL and especially Boost are stable and portable is just so full of -- that it's not even funny)
- inefficient abstracted programming models where two years down the road you notice that some abstraction wasn't very efficient, but now all your code depends on all the nice object models around it, and you cannot fix it without rewriting your app.
In other words, the only way to do good, efficient, and system-level and portable C++ ends up to limit yourself to all the things that are basically available in C. And limiting your project to C means that people don't screw that up, and also means that you get a lot of programmers that do actually understand low-level issues and don't screw things up with any idiotic "object model" crap.
Hello Duck
yo
Never heard of it
it is like processing for rust
alex😞
is it still maintained?
alex?
idk
i just saw it on utube
while looking for creative coding in rust
it has 4k stars on github
Eva!
but does not look maintained anymore (?)
heeyy!!!
i mean 5 month old an't that old
3 months*
2 months*
more like 21 days
2 months
...
it says jul 18 here
who that
the ex cubecraft content creator 🙂
I don't understand how calm you were with this person @torpid crypt, so direspectful yet you still provide him a lot of informations. You're a saint tho
so many ex cc
anyways @plush walrus did you ever make a image to simple shapes thinge?
no
oh alr
programmer eva
java do be kinnda both
Programmer swegg?!?!?
yesyes
Java isn’t necessarily interpreted. It’s still compiled, it’s just byte code rather than machine code. It’s faster than purely interpreted languages
so it will be completely ineffective against disputes between you and Discord
True. I just didn't feel like fully explaining it to an impatient beginner that wanted to skip learning the different types of languages there are 🙂
the smartness of ppl here makes me feel dumb
why is it always me and landon getting pinged for no reason
Programming is everything but smartness
You literally tell computer to go beep boop
What program do you want
Litterally compiling an empty C file is technically a program
and this time in #💻︱programming like ☠️
coding is a lot more then that
I know that's my job
But in the end
Its simple instructions for simple machine
Computer are dumb
Most programming out there isn't even challenging
Basic knowledge and understanding of procedural paradigm will get you through 90% of what being made
The hardest thing in programming is time management
function getElements(): Array<HTMLElement> {
return Array.prototype.slice.call(document.body.getElementsByTagName("*"), 0);
};
const allElements = getElements();
var allWords: Array<string> = []
allElements.forEach((element) => {
var innerText = element.innerText
if (innerText != undefined && innerText != "" && innerText.length != 0) { // <--- THIS CONDITION
var innerWords: Array<string> = innerText.split(/[ \n]/)
innerWords.forEach((word) => {
allWords.push(word);
});
};
});
console.log(allWords);```
How is it possible that all the empty strings pass all the conditions?
This will most likely answer your question https://stackoverflow.com/questions/154059/how-do-i-check-for-an-empty-undefined-null-string-in-javascript
@plush walrus
amngus\
bro you used 18+ emoji and are saying 13+ only ._.
i swear sus people are getting dumber and dumber every day
lol
Hui hui
Funniest part is that the entirety of this server should be 13 or older
You need to be 13 plus to legally own a discord account :)
Maybe this one is not that good
Children may only use discord for school groups
Then it would be better
Wow professional coder talk here
By the way in javascript never use == and != Always use === and !== It will save you a lot of time debugging code
Using != and == evaluates your statement after type conversion so that both operands have the same type. Meaning that 6 and "6" are equal in that matter
=== and !== Is checking that both type and value are the same
!=== is valid in typescript?
Never used typescript but as far as I know it only provides strong typing and more class features and interfaces so I would say no
You should google it
Yea I don't think so since it's strongly typed
yeh
traps are soo smooth brained these days
that does not work - I get the same output
but it does filter out <empt string> && undefined but "" still remains
It might be empty string inside of a string I.e """"
So you'd have to check for "\"\""
oh wait
yea I realized only now
I am splitting the text after the condition. meaning the string is not empty before I split it
but then I split it and push to the array which has no check for empty string
🤦♂️
Hi
Player p = (Player) sender
Instead of -
And probably on what line and character too :)
By the way @plush walrus
Array.split()
Will keep empty group as default regex behaviour also match them
- adds an empty group if your input is ended with a separator
thanks
hey can anyone smart code me a quick addon that makes blue ice 10x more slippery
Indeed
@quiet arrow what do you call your your main class thinges in your apps?
main? idk
other then main
am doing rust stuff that gonna cause problems
The name of the program maybe? Not sure, haven't had the problem yet
name of my program too long
same, but i finaly got an idea, am gonna call it App
Call it "FluffyUnicorn" :D
thx for the help
if i do that, my friends gonna cringe too hard
call it "HappyDuck"
Obfuscation by UwU
call it "Dont Cringe"
too long, need it to be under 7 letters
Stay safe everyone, and don’t code in Scheme
alr 
java hater
java is lovely
we have python at school 
we have exam next month and there is nothing about python in the textbook AAAAAAA
You guys know how coding works?
Yes
Explain 10101010111101001110110001010
"a "0" represents no flow of electricity, and "1" represents electricity being allowed to flow."
Ohh I think I get it
Basically the way that computers count
Low voltage or high voltage
@minor roost https://www.youtube.com/watch?v=QZwneRb-zqA&t=205s
A little exploration of some of the fundamentals of how computers work. Logic gates, binary, two's complement; all that good stuff!
The simulation tool is now available for download!
You can find it here: https://sebastian.itch.io/digital-logic-sim
Along with source code over here: https://github.com/SebLague/Digital-Logic-Sim
If you'd like to...
a very nice video about how it works
there is an other video about how it remembers too
If I send a windows user a .py file and they download it, but they don’t have python installed, what will show on their screen? Will it prompt them to download python from the Microsoft store, or something else?
It will just say "Windows cannot open this file" and prompt the user to select a program to open it
I think my brain has been fried
if they try to run it
Ty ty
Depends on its css 0_o
Since most devs are lazy probably the right one
Still dont get that meme xD
True haha
To me it's not a matter of laziness or whatever, to make the snake responsive in the way that both viewport has the same content, it must be the right one
Left one is not even the same asset tho
And "Not lazy" Approch would be to convert the Snake to some SVG
so that no matter the viewport you can display it the same way
o
The left one if the snake is alive in the pic (bruh)
https://github.com/griffi-gh/yarge/blob/master/README.md
My attempt at a professional-looking github README
"tests" table is updated automatically with github actions
if you need to show the whole length of the snake go with the first option
depends on how the snake feels

Rust cool, looks like a nice language
Mit made me choose Go tho, no regrets on that part
go is pretty cool
I've been loving Go
I like how it feels high-level without actually being high-level/using interpreters/jits
I think I love the package system most, it's amazing to have several files that share all variables/functions. And not having to import it all constantly
While not exposing it all to the other ones
Quite a big change compared to Python
maybe java applet? not sure how exactly it works
Java applets were small applications written in the Java programming language, or another programming language that compiles to Java bytecode, and delivered to users in the form of Java bytecode. The user launched the Java applet from a web page, and the applet was then executed within a Java virtual machine (JVM) in a process separate from the ...
Is that still being used?
🤣
I have a book about java from my dad that is about java 1.1 or smth lol
Java applets (and oop in general) are talked about as the most modern and innovative thing ever
Whats wrong with java script
Yep i know
Sadly
I ain't saying its bad, but I dislike it and wanna stay as far from it as possible
If you don't like Javascript for those reasons, then I highly suggest you try out Typescript
java applets are dead
they are not supported in chrome since... version 60?
not sure
js is actually pretty good since es6
es modules, classes, arrow functions
if you prefer strongly typed languages, there's TypeScript
i guess you can bundle java runtime using wasm
but loading times wouldn't be great
0.1+0.2==0.3 is false in all languages that use floating point numbers, even java
😏
that's how it's defined in the floating point standard, it's like that everywhere
hello homies i heard someone talk about ts am here
The math.max and math.min are mathematically correct so smoll brain meme
Or well, their infinum and supremum
YEH BOI LETS GO
To be more precise it is false in all languages that use IEEE 754 Floating point numbers standard. There are other way to represent number with arbitrary precision that does not have this problem.
You can apply at https://partners.cubecraft.net
For any further questions, please make a ticket in #💌︱team・help
Ok , thanks 👍🏻
Do you in rank mini YouTuber?
I wish added is the rank mini YouTuber
We do not have such rank
When will added ?
Guys, please make a ticket as this is a channel for discussing the programming topic
oh sry
Even this channel get used as staff help now😭
Interesting 🤔 maybe that could mean something
bro school just started after two weeks...
and they released hacking google on the last 3 days of my holidays ;-;
and i can't even take part in the ctf
docu, i finished it when i woke up today morning, there is a ctf as an easter egg in one of the videos :)
more then one tbh, they gave us the link
When can I be unbanned from java
Uh maybe the not best place to ask but where can I find a good bad apple pv midi that matches the original video
and uses a single track
I want to parse it to play it in a game with a lua controller
or maybe a tool that can "convert" a regular audio file
without producing garbage consisting of 15 tracks and lots of overlapping notes
Looking Youtube might be the best place to start
bro go to h4ck1ng google with dot inbetween them
oh
It’s been so long 
Hello palombo!
Send me this sticker as a photo pls
Right click, copy image?
Pretty sure that works
Phone
Same xd
I'm on phone
That doesn't work
I know
Lmao
why does it look like vscode but like visual studio at the same time
Hey all I’m looking to start learning Java script so I can move on and start helping with small developer work on different Mc servers and looking for anyone to send me videos or links to help me get started in learning to code. Any helps appreciated!
W3schools
ye thats a good site
ahh programming, a painfull period of my life
You can say that again, though you can get a hang of it once you learn the ropes
Theres nothing more frustrating and comforting like coding in a mobile device
true
You lay down, then you can code
but i didnt had the patience
Though i would prefer coding in a bigger device like an ipad
Gives more room to be like a mini computer
Why not use a laptop or pc
i kinda agree
just download visual studio code
Well first of all, sit in a couch, lie down, and code
Can the laptop or pc do tht?
Wow, unexpected
tbf i dont know if you wanna do this
i mean sit in a couch sure but lie down
Im a slouch, im doin it
well then go ahead
Ok then, good luck to you on coding
me wondering how they code in anything other then laptop or pc
Nah i stopped
JavaScript and Java are not the same thing. We use Java for MC programming. Make sure when searching for tutorials that you are typing “Java” and not “JavaScript” or you will be learning the wrong stuff.
Ahhhh okay lol Ty for letting me know
if you find yourself java to hard just do html, its totally different but easier and in my opinion more fun
but you aint gonna make programs with that
I have heard that python is a great beginner language (it also has a lot different functionality) but I only just started leaning about computer science
bro what
what indeed
javascript server software exists
but it is better to learn java since it is more widely used
A server software exists in a lot of languages but he won’t be much help to 95% of people on Minecraft related stuff with JavaScript so it’s best to steer him in the write direction that is most beneficial down the line. Especially if he’s looking to make money in the future.
i mean he can still make websites for mc servers
but it is overall pointless to learn for mc
i still hate java doe
it memory hog
Haha yeah it’s not for everyone
how do you guy use java instead of a more performant language?
could write a c++ or c# software instead of java
or maybe rust
Minecraft was written in Java. Our server software might be custom but it was built off a popular software also written in Java. The API for customizing Minecraft is also written in Java. We didn’t choose Java, Java chose us. Also much of the world enterprise software is written in Java. It’s cross platform, widely used, decently fast, and you can limit the resources used.
You would be doing yourself a disservice using another language with Minecraft development, reinventing the wheel.
Java is my favorite language, it’s a preference thing. It grows on you over time 😆
from my exp it is still a memory hog
Splitting our codebase between Java and Kotlin wouldn’t be beneficial for costs and then only certain people can change stuff but yes Kotlin is a cool language and definitely useable but you should learn Java first.
i mean slowly translating it will not cost that much
besides i don't see cubecraft dieing anytime soon
Eh.. It costs a lot of money to pay devs.
i wonder how much is the pay
Varies based on experience and time at CubeCraft 😆
Sometimes reinventing the wheel is needed to improve on things 🙂 A friend and I are making our own 1.19.2 server software in Go and we're doing pretty great atm. Got some basic stuff going atm like player movement, chunks, chat, etc. The purpose for it though is mostly for minigame servers than something like survival. I aint touching too much on world generation 😂 We're getting incredible server performance from it too, which was kindof the main reason for making our own software from scratch
Sounds like a fun project 😄
We even implemented our own stuff to it that Spigot can't achieve programatically such as adding/removing/changing custom biomes on runtime 😛
Though I was talking more from a worker standpoint. If you learn Go or C++ then you limit your overall chances of being hired.
Go is just for the project that I mentioned. In Java for example I have 7 years in that xD
That’s good, my advice was for beginners but that is a lot of experience. Think I started learning 9 years ago.
Ah, yea. Java is very good I'd say for beginners. It was indeed what I started out with and it's very useful if one day they'd like to try out any other C style language ^-^
or mostly any other language, doesn't have to be explicitly C style
i start when i was 12 for some reason
my parents still disappointed in me because i didn't code up any apps ;-;
they don't like my image to painting project thinge
anyways guys can yall suggest me a way to use my second disc for linux without deleting the windows files init ;-;
Wdym second disc?
Ssd 256 is great
For linux since programming doesnt take much space
It only takes someone else code on github
@copper ice suggestion for distro?
Arch 😈
I was using Zorin OS
Cuz it looks like windows
e
Oracle linux :trolley:
silly me decided to have a go with android studio
the thing is i want to have a login system
hovewer i can't find a good tutorial that would explain how to:
- Securely store passwords and other user data in DB
- Securely communicate in an encrypted way with backend servers
you'll want to look into salting databases for safe storage practices
Security of users' passwords should be at the forefront of every web developer's mind. Tom takes us through the insecure ways in which some websites deal with passwords.
Note: At circa 8mins, the animation does not show how the 'salt' is also stored in the database alongside the username.
Hashing Algorithms and Security: http://youtu.be/b4b8kt...
just don't make a database for that
instead use oauth2 with google or discord
best thing you can do
every person basicly has gmail
it will be little bit harder make alts since new gmail per account
“I am currently inside of a YouTube thumbnail”
well thing is i have to
i dont want it to be linked with google facebook or anything
just write them on a piece of paper and throw it into the drawer/under the closet
like if salt is diffrent every time, how can i compare password stored in database(in hash + salt format) with the one the user wrote. Like without knowing what salt was used theres no way
like i would have to store the salt used in my db next to hash-salted password and user name
and then it makes no sense
You need to know the salt. Salts are stored in plain text. It doesn't matter if an attacker gets access to it, since they don't know how you use it on the passwords
Yea like joona said you can store the salts in the database as text
Cuz salts are useless for an attacker
Alright thanks
You could make a client/server with it from scratch, or if there's server software that's made in python that supports "plugins", you could make those in python as well. But yea, keep in mind that you'd be on your own without a lot of help if you go down that path since no one really does that
check MineRl
You can, the official coding in Minecraft book from Mojang uses a Python library
There's a coding book from mojang??
You don't need to know the salt when comparing a login attempt to a stored (hashed + salted) password
Good practice involves generating a secure random salt every time a user signs up
i might be stupit but if the salt is not added to the password in the login attempt, then it's not going to match?
Yeah that's the point, you generate their salt and store it along with the password
You don't, that's not how it's done
How is it done then?
You can verify your password against a salted hash without knowing the salt, refer to https://stackoverflow.com/questions/30279321/how-to-use-phps-password-hash-to-hash-and-verify-passwords for more information.
That's not quite how it works. The default provider (bcrypt) for password_hash concatenates the salt, cost factor and hash into one string which is returned. So you're still storing the salt, just in the same field as your hash.
Misunderstood that in that case, my bad
How do you program 
How would I have a python file with the playsound module play the audio file, but continue to run more code in that program? Like if I were to do:
playsound(“coolsong.mp3”)
print(“hey”)
The song would play properly, but “hey” wouldn’t print until the audio is done playing. Any suggestions?
Python 3 btw
Though I’m sure you would assume that 0_o
@indigo nacelle You can use threading (overkill) or make them async functions and asyncio.gather() both of them
I’ll look into that ty
Asyncio is part of the standard lib so that’s great as well
Yeah I looked at both and threading works best in my project (and it’s easier to understand) so ty for da help
Well, that’s a first threading being easier. But great to hear you can continue
The duel servers are embarrassing
Fak
??????
lol I saw that video previous week
No not really
Well you just gotta read some tutorials online and follow up with your deployment
how can we "learn you about making a server in mc"
Lol
@quiet arrow keyboard suggestion pls
oh
I don't even know which one I have
i want to buy mechanical keyboard i need suggestions ;-;
The apex 7 is nice
I have a logitec, apart from my alt dying because I used it as a hotkey in mc I'm happy with it
So maybe don't bc alt is important 😭
is it hot-swappable?
This happend with my space on my old keyboard
I think so
have been using logitech for 2 years, never had problemo till date
even alt fine
rip
Gk61
75% keyboard ❌
hotswap ✅
needs some rgb ✅
under 100$ ✅
am in need of them back ticks am a programmer💀
NVM i saw that escape key got backticks
i never understand how people can do work with a 60 percent
i assume all keyboard have them?
didn't knew
you just get used to it
but i like the arrow keys so i might just get 65 or 75
What do u need on a 100%?
Useless buttons!
ur useless
Love you to
hey daddy
No.
sorry
ikr
i just want to change my keyboard, kinda wana to start at smallerst so i don't have to spend too much
Bruh
I don't think 100s are that much cheaper
I agree on that the right side is a bit useless, but having no arrows (without having to press combinations) just isn't efficient
For example
TKL superior
cuz with 60% the buttons are to small
tbh
damn
😎
Huh. Is that profanity? Ima put dead heart anyways
Mommy
nice!
Diffrent command probaly
You could look into f-strings and regex, if you want to make it look nicer and more readable
The split and indexing is really confusing since you’ve got no clue what it does and how the output looks
Indeed different commands, macs are Unix based
You can use os.system or something to check on which platform your code is running
Macs will be darwin, and windows win64 I think? Not sure
please
absolutely hate .format()
txt1 = "My name is {0}, I'm {1}".format("John",36)
txt2 = f"My name is {name}, I'm {age}"
Just make a second script that generates a line for every integer from -2147483648 to 2147483647
I know, they could use a switch!
🤨
Format is decent if you have to use the same var several times
But not sure when you’d need the same var several times in the same string
Yea that's a good question
also, f strings weren't released until 3.6, so .format has always been the standard for most people
Ah yes when I am formatting a million strings I will use f string next time
The more you know
anyone good at making roles for a server?
How could I implement queue like system in my sql database?
What does that mean?
You mean queuing SQL queries?
nu
i mean i want to store (in my case) songs in a queue system
so when 1 ends, another starts etc etc
but i want to be able to move songs in the queue, insert/ delete them etc
and i want to store that in sql db
well add a song, when it's played remove it and play the one with an id + 1 of the previous one or something like that
aka have a table with an id which is just 1, 2, 3, 4, ... and then the url of the song for example
ye but its gets tricky when i want to be able to delete songs and move them in the queue cuz changing ID of hundreds of songs seems dumb and wouldnt be even sure how to do it
well you can just call a song with a different id when you want to shuffle
Have two tables, one with songs info and an unique id (can just use increment depending on your sql flavour) and a second table that handles the queue
The queue column can just be a list of unique ids of the first table
If you're displaying the queue you can just with as in your query to fetch song info instead of ids I think
Hmm whats the diffrence then, like why store them in two tables? And how does that solve the problem of having to re-arange "queue id" of every song when doing actions like moving songs up and down or deleting?
You don't have queue ids, only song ids
If you input 4 songs for the first time your queue could be
1,2,3,4
if you then move 3 to play second you just change the column in the queue table to
1,3,2,4
You can then either remove song info after the bot leaves the voice channel or keep it, and check against it to not need to requests it wherever you did it before
If you're in python, you can also just use asyncio queue if you don't care about keeping the queue if your bot dies
so just grab first song from the queue table?
dont get it tbh
theres no explicit "order" in sql unless u specify one
so like the order of the ids can be diffrent depending on how i querry for them
Your song info table has a ID column that increments with each song info you add to it
In the queue table you have a column that has a list (or string with ,) that references these numbers
ah a list or string
yes that makes more sense
tho its not gonna be a discord bot, trying to make an android app
thanks for help
Aah, your sql would probably be sqlite then? Not sure if that has auto increment
rn yea sqllite but i would rather move to a not local db
Well, good luck with the app :p
ty
💀
Ight bet
Thanks db ur a lifesaver
i’m a lifeguard
Why does frontend programming suck so much?
fr bro
what's new
Do someone know how to make mods for minecraft bedrock edition or java Edition for 1.19
I fixed it
Just changed the teams to |||| so they’re same width
Alex big brain
Looks nice
You made this website?
Ye
Noice
plemiesmp Cygan_Gan45
The first one works
It all uses the same code, so it didn't work
No sry but can you be my friend

?
i hope this helps
https://www.youtube.com/watch?v=aq1HlPwCxY4&ab_channel=bob123bob123
https://www.youtube.com/watch?v=MRDv8Gjle54&ab_channel=xJemGames
if not just try to search onto google
I hope you enjoy!
--------------------------------------------------------------------------------------------------------------------------(Editing stuff)
- Paint.net -- https://www.getpaint.net/download.html
- First Video -- https://youtu.be/U69FkEFduEM
- 7-zip ---https://www.youtube.com/watch?v=gFhfrPMy6BY&t=14s
- Wallpaper -- https://www....
Thanks for watching! I make texture packs for both Minecraft Java and Bedrock on this channel, so subscribe to see all of those packs.
Method 2 - 12:05
▶️Music: Lil Uzi Vert - 1600 (Instrumental)
IF YOU HAVE ANY QUESTIONS, LEAVE A COMMENT! :D
Sky Template + MCPatcher Folder:
http://www.mediafire.com/folder/ts13xfn4cxr9r/Sky_Files
Cube The S...
ok i'll try that
Anyone familiar with Forge?
I am trying to get the developments environment of Forge 1.19 working. Everything goes okay, until i try to run the "runClient". Instead of opening Minecraft, it shows an error. Does anyone know what could be wrong here? Things I tried:
- Reinstalling JDK (I am using 17.0.5)
- Trying different IDEs (Eclipse and IntelliJ)
- Doing the entire setup over several times
- Uninstalling older versions of the JDK
(I used this tutorial https://www.youtube.com/watch?v=LpoSy091wYI)
This is caused by a java error btw "EXCEPTION_ACCESS_VIOLATION:
Not that i can answer your question but meanwhile your modding journey if you somehow find good forge docs feel more than welcomed to share them here
As I cannot
people looking for yt wallpaper makers?
Qrmees I swear I see u in ffa everywhere
When is winter games coming out???
Could you get the stack trace?
Exit code 1 is very broad
This error message is not on the normal console, but on the gradle consol. The error that shows is a Java error called "EXCEPTION_ACCESS_VIOLATION"
This problem is most of the time caused when having not the latest jdk - or multiple versions of the jdk installed on the machine, but that's not the case for me. I am also using the latest forge versions (tried multiple)
So you've tried --stacktrace and that was the only thing you saw?
I will send you more details when I get back to my pc :)
Okiii
Anyone here does bedrock coding cuz I'm trying to get into it
Command blocks or mods? If so, what language and program
And I would suggestion watching detailed videos to learn more about something
console.log(([](!![]+[])[!+[]+!+[]+!+[]]+([][[]]+[])[+!+[]]+(!![]+[])[+[]]+(!![]+[])[+!+[]]+([![]]+[][[]])[+!+[]+[+[]]]+(!![]+[])[!+[]+!+[]+!+[]]+(![]+[])[!+[]+!+[]+!+[]]+[])[!+[]+!+[]]+(![]+[])[+!+[]]+([][[]]+[])[+!+[]]+(![]+[])[+!+[]]+([][[]]+[])[+!+[]]+(![]+[])[+!+[]]);
Can someone explain to me how the above code logs “banana”? No need to go over each character, but how are letters that aren’t nan logged???
C++ and createing mods
Idk program
I have none
I do hàve a bit of python knowledge but that's it
good question
console.log((![] + [])[+[]] +
(![] + [])[+!+[]] +
([![]] + [][[]])[+!+[] + [+[]]] +
(![] + [])[!+[] + !+[]]);
fail
similar to this
maybe this can help as theres some explenation
It's hard to believe, but when you run the above code on the browser's developer console, you'll see incredible . This is not a bug, and it…
and this
Yeah check it out:
Idk it works on my machine 🤷♂️
I am sure it does, send over the code and I'll take a look 😈
i spent a lot longer than i should in this
Aeee eu daria logo 5 estrelas mano 😎
brasil?
@minor roost B)
Portugal
😄
xD
poop
Casamento é um erro
Depende
Sim, sim, eu falei pelo meme, mas eu não faria isso
Você faz esses sites como uma forma de praticar o que sabe ou também vende?
Pratica
São projetos de escola
Mas eu faço trabalho pra um pessoal da sala
Ganhei 50 reais esses dia
Obrigado <3
1 ano
Está se preparando para fazer vestibular(es)?
English por favor
Check out my new website please http://localhost:8080/
🔥🔥🔥
i have a little problem
well tell us about it
give me a few minutes to explain everything
here i have a logo
Okay
and i have some weird login button
it all worked before i added a video
but after i added this
it didnt showed my logo and login button anymore
where did you add that?
but it did show all my other buttons
@true mantle
here
dont focus on that weird buttons
i need to fix that
but ik how
top left should be a logo
top right a login button
isnt it just behind the video?
it is
when i refresh
u have a few ms
where u can see it
but how to get it infront of the video
its been a while since i did css or html, but i believe there is a thing in the css called "z-index"
if you set that to -1, it should be rendered last
np, it looks very good btw
thanks just the home page still need to let the buttons work and design that stuff
so still alot to do
i wanna make inventory button invisible
How to hide this button, Send me the texture of the inventory button
I would suggest a texture pack, but I’m not sure about bedrock texture pack capabilities
Ik but texture packs didnt work O_O
Can you just show me the texture of inventory button
Anyone know how to code for Onix client ?
Like, work on onix client with their team?
It can do C, Ruby, Js, write HTML, python, C#, Java, R, and more
Would y’all invite this bot to ur own servers? (If it was based on programming) If not, I would appreciate suggestions
You might want to improve the code then
I'm pretty sure you can just do min(my_array)
They’re also called lists in python not arrays
I only want the bot if it can code in scheme 😎
If you want to code in python in discord, I think you'll have more fun with a bot of your own and an eval command
yeah that too
@quiet arrow how did u get that active dev badge
I have a bot
Integrate your service with Discord — whether it's a bot or a game or whatever your wildest imagination can come up with.
Yeah, it can do longer tasks I just have it limited for the moment
I forgot to put to a limit on it and it slaughtered my api request rate when it bugged out
$Find implement generators in scheme pls ty
😮💨
If the bot was online right now 💀
ah
But why would you write 8 lines of code when you can do it in 1?
To get higher stats on the amount of lines plugin in VSCode
task: return highest number
lines: 142
number = 0
while number + 1 > number:
number += 1
return number
Lol
What model are you using (if any)
But I assume it is ai right?
i have one class with form--hidden and one without but it doesnt display the one without that class
when i remove the class i get this:
i gtg eat so if you need more information just ask it and u will receive it about 30-60 minutes
text-curie-beta
It’s only slightly worse and 10x cheaper than the davinci series
fixed
any1 help?
Why do texture packs not work?
I think its HTML
Im not a mod lol
i thought u are
Html/css
hello there
Hi how are you
fine.
mainly works on minecraft bedrock protocols
anyone knows how to fix this? discord.js v14
sadly they are discontinuing support for new discord features, would avoid
That’s not true
Danny resumed development last year
The 2.0 rewrite is out (2.1 already I think) and supports everything as far as I know
Oh they did? That went quiet
[2021-8-28] Danny stops dpy development: https://gist.github.com/Rapptz/4a2f62751b9600a31a0d3c78100287f1
[2022-3-06] Danny starts dpy development again, after announcement of v10: https://gist.github.com/Rapptz/c4324f17a80c94776832430007ad40e6
[2022-3-14] Danny reworks async stuff, breaking changes for all! https://gist.github.com/Rapptz/6706e1c8f23ac27c98cee4dd985c8120
[2022-8-18] Danny releases discord.py 2.0, officially supporting slash commands and other modern discord features <#381965829857738772 message>
I didn’t get muted 🥳😎
You have to make a file and put the basic information in it
does anyone have feedback on the looks?
this is a double pendulum simulator for school btw (dont want to spend too much time on it)
debug to see what filePath is set to
then check if that path is valid
Any reason why the variables values are displayed twice?
I’d either remove the bottom left part or add the slider constraints at the top and remove their values there. Don’t think info should be available twice
The energy bar is really fun. But but weird, if you split it up in colours I’d except to have the values for each colour in each colour and total absent or below/above
And then as a “mathematician” axes should be labelled, always with name & scale.
Looks really amazing btw! Will you share it once it’s done, I’d love to play with it
thank you!
- Oh lol yeah, I forgot that those were still there 👀. I can remove them by now indeed :)
- I dont really understand what you mean. Can you explain that a bit more? :p
- i didnt add them to keep it more clean, but i see that it's a bit random if you dont know what it means
- will do :p
You currently can’t see how much energy is potential and how much is kinetic
I’ll try and make a drawing
Like this. But then good
Ah, that makes a lot more sense. That looks a lot better, indeedc
yeah but the tens are barely readable too
maybe i just should do it on every frame
@quiet arrow thank you
Very amazing
hey cubecraft do you want to add all games from Java edition to bedrock edition games that fail on bedrock version please update skyblok the end added and update survival gmaes all games update and added all java missing games on bedrock edition
Can I have these show for all options, at all times in IntellIJ?
https://www.jetbrains.com/help/webstorm/viewing-method-parameter-information.html#configure_parameter_hints_in_editor this might help
does that make it twice as fast?
PC Heath Check
Yes but that’s not it worth
Bruh it’s like having a nightmare but while reading
.
well lowkey forgot about it
and forgot how to do it again >-<
What type of SQL database are you using?
For example with Microsoft SQL you'd use their Service Brooker for making queues. With other SQL providers they might have something different or you make your own
SQL lite with django's api wrapper for it
like i can just have this
class Queue:
def __init__(self):
self.items = []
def __str__(self):
return str(self.items)
def is_empty(self):
return self.items == []
def add(self, item):
self.items.append(item)
def remove(self, index):
if index < 0 or index >= len(self.items):
return None
else:
self.items.pop(index)
def size(self):
return len(self.items)
def peek(self, index):
if index < 0 or index >= len(self.items):
return None
else:
return self.items[index]
def move(self, start, end):
if start < 0 or start >= len(self.items) or end < 0 or end >= len(self.items):
return None
else:
self.items.insert(end, self.items.pop(start))
but the data would be lost incase the program dies
there is a built-in Queue class in python
never really tried it and not sure if it fits your needs but I'd check it out if I were you
bare in mind the built in queue is not persistent
you'll want to have your SQLite server setup in serialized mode so you can support using it in a multi-threaded application without the risk of concurrency issues (i.e if two threads pop the queue at the same time)
https://www.sqlite.org/threadsafe.html
then in your queue implementation you would just add your SQL queries into your methods as you would normally and it should be thread safe
Yea that class aint helpfull sadly
the question remains how to store queue data in sql?
well that depends on what data type the queue is storing
if its just strings then you'd just have one column (primary key) for position in queue, and second column for the string
ye just strings but its get tricky when moving those strings in the queue
or deleting them/inserting at the start etc
this sounds more like an array implementation and not a queue. generally with a queue you do not insert into it at an index. you only pop the front element, and insert into the back
well true but i want to make a song queue and there has to be options for the user to move songs in the queue or delete them
and ideally it would be persistent
i have a working alternative with just an array but the data is lost if the program dies
well you'd do the same logic as your code with what you would do with your SQL queries
in the case of your move method, you would first get the song in the database with an ID of start, and then get the song with the ID of end, and just switch their string values
all other actions are trivial, you're just doing regular database inserts, select, and deletes
hmm ig, but it just seems much less time efficient tbh
Hi
I’ve used google, but can’t find the answer I’m looking for, so I’ll ask it here:
(Python)
How do I ignore keyboard interrupts throughout the entire program? At any point in the program, let’s say the user does crtl + c. I want there to be no effect on the program, and no errors.
Thanks in advance 🙂
Threads @indigo nacelle
https://stackoverflow.com/questions/842557/how-to-prevent-a-block-of-code-from-being-interrupted-by-keyboardinterrupt-in-py
Ff
Yeah
um
This is not lua I think. I think it is python
Indeed. Who said it's Lua?
No one said it was. Python is like lua. So I thought it was lua.
never do it
MERRY CHRISTMAS
💀
Thats cursed on so many levels
they should def just time u out
How long is ur screen?
Hey are there any devs in here? I was wondering what code the bedrock server is based on. Is it completely reverse engineered and built in house, or has Microsoft/Mojang struck a deal with the major servers to share the code/protocol? Thanks
https://www.cubecraft.net/threads/behind-the-cube-1-feelin-lucky.264600/ Here's a little about it
@outer nexus
Cool, I hadn't heard of Geyser before! Do most of the popular minigame servers use a similar Java-to-Bedrock translator and write their games with the Bukkit API?
Leaderboard maybe For like highest level or somethin idk
Ye
In this video...
In this video, I show you how to get toggle sprint discovered by Oranjus
Side note this video was rushed and I didn't really like it but I should upload so yeah your welcome
Oranjus: https://www.youtube.com/channel/UCjhQ707wV8SiGiCxItH5M4Q
Second Voice: https://www.youtube.com/channel/UClWkQwJzo-gBEOu6enJRYgw
Texture Pack:...
Bro I tried but it didn't worked
I m a mobile player
Oh
Ah yes #💻︱programming
how muxj y'all think this pretty much new PC is
maybe around $1000
with everything there included
900 cad + the 4k monitor and negotiation
pc alone maybe $550 usd at most. psu leaves barely any room for an upgrade. not much storage although u can always add more. 4k monitor is cool and all but you wont be getting 60fps on it with a 1660 super unless youre running low settings
and dont let that paragraph fool you, a single 140mm fan is not enough to keep that pc cool
bro with all fancy graphics on and 12 rendered in cubecraft 50v50 my friends PC was doing 100 fps and his GPU is 1060
why is there an increase in people thinking #💻︱programming is the support channel
what's the hint
I find this somewhat unimpressive for a 1060 tbh
Polly cheated
What
I mean without monitor is about 600$ PC plus I'd ask her to keep the GPU because I've got smth else I mimd
so technically I could get it for easily less then 500$
if you're buying you could probably get something better than that for 500
Not the suppliers I'm able to reach
Hell+o ===>Hell(o)
did you follow the instructions on-screen
what
you got banned for cheating right? follow the instructions listed on the ban screen
I can't join server again so I make new account in minecraft
Bro wants to keep hacking
Pretty bad deal tbh
No way you can game on 4k with a 1660
And you can get that pc for like 600 euro
Maybe less
and 16x16 textures
Nah
- it's 900 cad
1 cad = .69 euro
The pc + monitor comes to 619 euros without monitor it's like 500 euros
Also 1660 super is heavily underrated
it's now 700 cad / 483 euro so the 600 euro you said isn't worth it anymore
yep it's a very good gpu
anyone down to wager
what is that
Where u 1v1 or 2v2 for money
import random
USER_WINS = 0
COMPRBKNUTER_WINS = 0
WINNING_POINTS = 20
availableOptions = ["rock", "paper", "scissors"]
while True:
computerChoice = availableOptions[random.randint(0,2)]
if USER_WINS >= WINNING_POINTS and COMPRBKNUTER_WINS >= WINNING_POINTS:
WINNING_POINTS += 1
print("\n>> Extra point for DRAW! ( {} - {} )".format(USER_WINS,COMPRBKNUTER_WINS))
continue
elif COMPRBKNUTER_WINS >= WINNING_POINTS:
print("\n[SYSTEM] The computer wins with the result:"
"\n( {} - {} )".format(USER_WINS,COMPRBKNUTER_WINS), "\n~~~~~~~~~~~~~~~~~~~~~~~~~~~"
"\n> 1st Place: COMPUTER\n> 2nd Place: YOU\n~~~~~~~~~~~~~~~~~~~~~~~~~~~")
break
elif USER_WINS >= WINNING_POINTS:
print("\n[SYSTEM] YOU win with the result:"
"\n( {} - {} )".format(USER_WINS,COMPRBKNUTER_WINS), "\n~~~~~~~~~~~~~~~~~~~~~~~~~~~"
"\n> 1st Place: YOU\n> 2nd Place: COMPUTER\n~~~~~~~~~~~~~~~~~~~~~~~~~~~")
break
atPlay = input("Choose: Rock, Paper, or Scissors [Type Q to Quit]."
"\n=>> ")
if atPlay.lower() == "q":
break
elif atPlay.lower() not in availableOptions:
print("\nPlease pay attention to the three available options.\n")
continue
elif atPlay.lower() == "rock":
if computerChoice == "rock":
USER_WINS += 0.5
COMPRBKNUTER_WINS += 0.5
print("\nThe Computer Chose {:s}\n\nDRAW!\n({:.1f} - {:.1f})\n"
.format(computerChoice,USER_WINS,COMPRBKNUTER_WINS))
continue
elif computerChoice == "paper":
COMPRBKNUTER_WINS += 1
print("\nThe Computer Chose {:s}\n\nTHE COMPUTER WINS!\n({:.1f} - {:.1f})\n"
.format(computerChoice,USER_WINS,COMPRBKNUTER_WINS))
continue
elif computerChoice == "scissors":
USER_WINS += 1
print("\nThe Computer Chose {:s}\n\nYOU WIN!\n({:.1f} - {:.1f})\n"
.format(computerChoice,USER_WINS,COMPRBKNUTER_WINS))
continue
elif atPlay.lower() == "paper":
if computerChoice == "rock":
USER_WINS += 1
print("\nThe Computer Chose {:s}\n\nYOU WIN!\n({:.1f} - {:.1f})\n"
.format(computerChoice,USER_WINS,COMPRBKNUTER_WINS))
continue
elif computerChoice == "paper":
USER_WINS += 0.5
COMPRBKNUTER_WINS += 0.5
print("\nThe Computer Chose {:s}\n\nDRAW!\n({:.1f} - {:.1f})\n"
.format(computerChoice,USER_WINS,COMPRBKNUTER_WINS))
continue
elif computerChoice == "scissors":
COMPRBKNUTER_WINS += 1
print("\nThe Computer Chose {:s}\n\nTHE COMPUTER WINS!\n({:.1f} - {:.1f})\n"
.format(computerChoice,USER_WINS,COMPRBKNUTER_WINS))
continue
elif atPlay.lower() == "scissors":
if computerChoice == "rock":
COMPRBKNUTER_WINS += 1
print("\nThe Computer Chose {:s}\n\nTHE COMPUTER WINS!\n({:.1f} - {:.1f})\n"
.format(computerChoice,USER_WINS,COMPRBKNUTER_WINS))
continue
elif computerChoice == "paper":
USER_WINS += 1
print("\nThe Computer Chose {:s}\n\nYOU WIN!\n({:.1f} - {:.1f})\n"
.format(computerChoice,USER_WINS,COMPRBKNUTER_WINS))
continue
elif computerChoice == "scissors":
USER_WINS += 0.5
COMPRBKNUTER_WINS += 0.5
print("\nThe Computer Chose {:s}\n\nDRAW!\n({:.1f} - {:.1f})\n"
.format(computerChoice,USER_WINS,COMPRBKNUTER_WINS))
continue
is there any problem with dis?
Run it and you will find out! ;)
I can't find out
don't have time to open vs code
import random
input("Rock, paper or scissors: ")
print(random.choice(["Draw!", "You lost!", "You won!"]))
Work smart, not hard
true...
Yes, it's not very readable. Pretty hard to figure out what's going on. So hard to see
So for a few tips;
- I believe there is a random.choice to pick from a list
- Try to extract some code that looks similar out to functions and give them a descriptive name
- Use f strings instead of .format, I think they're more readable; and if you scroll up you'll see that it's faster 🤣
- I don't like while True a lot, what I've been doing lately for loops is having functions call themselves / call in a loop. I find it pretty beautiful
Here, I'd try to make it 3 main functions. user_play, computer_play, results You start the loop by calling user_play which handles the input, which could then calls computer_play with the user's choice as argument, etc...
This would also completely remove the need for the global vars you're using now as you can just keep passing them through the arguments of functions if you'd want.
I've been having to much functional scheme 😭
If you really want to make it harder for yourself, try to find a way to check who wins with positions in your options list, so you don't have to hardcore the results. If you do it right, you should be able to just add an extra option to the list and it will keep working in the cyclic way the game doesn't work then so nvm
I'll try and make my own solution to the last part as well
I can't use f strings although I have updated python but TYSM!




