#💻︱programming

1 messages · Page 28 of 1

gaunt berry
#

anol pls ban me for misusing channel

spice plaza
#

have you all just been lurking here watching lmao

#

welp, pog

astral hinge
#

ok

slate rain
#

Anyone interested in Python?

plush walrus
#

yes :>

toxic crown
#

Yes

hearty bloom
hushed stream
#

I would personally go for java(script) in stead of python

astral hinge
#

js too good

fiery vector
#

I am in the iss

#

Is crayzy

dense zinc
#

But not for me

gaunt berry
fiery vector
#

Ich bin in der iss

hushed stream
#

lol

#

i dont think u can say that since typescript is a fork of javascript

#

also; typescript is easier

#

if u learn it in the good way

wheat relic
#

@sweet barn The bug in skywars happens for how many players are in the game when starting

#

It's dropping the players 1 by 1 in order of cage number or something

sweet barn
#

?

wheat relic
#

In skywars

#

it counts down to go

#

and says "go" and resets the chest 12-16 times depnding on map size

#

and you get kit after last person falls from cage it's p hot

sweet barn
#

If this just started happening like 10-20 minutes ago we’re aware and it’s being fixed rn 🙂

wheat relic
#

yes yes, just saying how it be happening if you didn't know

#

Also

#

Snowball and egg throwable fix is hot

#

I can actually throw them consistently over 1egg 1egg 0 egg 0egg 2 egg

elder void
#

It should be fixed now :D

wheat relic
#

How did that even happen?/

dusty pivot
true nimbus
#

hey can somebody help me progam a server i am doing on bedrock pese

quasi oasis
#

Best to know JavaScript first as TypeScript is just a superset of JavaScript

native wraith
#

WATCH THIS VIDEO AND LIKE AND SUBSCRIBE. BEST SONG EVER!!! https://www.youtube.com/watch?v=j9V78UbdzWI

TO JOIN THE GIVEAWAY (3 iPhone 12 Pro and 2 iPad 2020 Pro)
READ THE PINNED COMMENTS

Follow my Instagram : https://www.instagram.com/matthewordrick/
Stay at home please, Our funeral service is only available if everyone behaves to the rules of the pandemic.

#Staysafe #StayatHome

I do not own the music and videos, neither ads or monetization.
...

▶ Play video
upbeat matrix
#

that was my friend using teamviewer

#

sorry

dense zinc
#

Just learn neither!

#

You're welcome problem solved

#

Be like me and waste 2 years learning swift and then never use it

#

I've been so busy with life

#

But after next week it should be good to maybe write a line of code or two

#

but only one or two.

gleaming zenith
spice plaza
#

scratch is the best block game

dense zinc
#

No offense to scratch coders but

#

It’s not uh good

#

Sure it’s good to learn concepts and get started with coding

#

Especially for younger kids

#

But I know people still using it sadcat sadcat sadcat

plush walrus
#

oof

spice plaza
#

yeah I can never make something good with it

#

need at least a little amount of OOP elements

rancid trail
#

xD

#

I never used scratch

#

I didn't understand it either it was weird

#

lOl

#

I should probably get into creating Minecraft content

#

it sounds kinda fun

#

but I have like 0 experience with java

#

ecks dee

#

let alone code for Minecraft o_o

gaunt berry
#

scratch doesnt even hide passwords lmfao

#

ignore german

spice plaza
minor roost
#

oh no

dense zinc
gaunt berry
#

oh

#

yes

#

i do

#

but it was on by default

dense zinc
#

wack

gaunt berry
#

so i didnt notice lmfao

#

still crappy design

#

showing your password by default

wheat relic
brisk badge
#

which course did you follow?

#

how much did it cost you?

#

nice

gaunt berry
rancid trail
#

Ehh I have experience in other languages, making a simple plugin could be a way familiarize myself with java and Minecraft code particularly I guess

#

It's just that I haven't done much with it so far so I wouldn't be very quick at making something lolol

#

But thanks for the tip :)

dull silo
#

i also feel like im not good enough in python and when i wanna write for example 10 lines of code i need at least 3 google searches -.- should i start a course ? can you suggest me any ?

#

Oh well xd

#

me and java aren't buddies either yet

rancid trail
#

If you need that many look-ups for 10 lines you should definitely do some kind of course

#

Codecademy might have something for python not sure

#

And I'd suggest watching some yt videos about types and stuff maybe, also to get to know the pythonic way of programming better

#

To prevent writing explicit for loops and studf when you can write something like (var in somelist)

wheat relic
#

But then their is grifpatch who is mega sweaty

dense zinc
#

Coding is how Minecraft works

dark elk
#

Wut is the best version to make plugins?

#

I mostly play 1.12.2, But I wanna create a server setup thing.. But I just need to know what version the best is to code the plugins etc

#

Ahh and the easiest version? Or is everything the same

#

Ahh alright xD tyty^

#

Alright thanks.

gaunt berry
#

id start with the latest version since its

#

well the latest

#

ye but you can do more in 1.16 than in 1.12 for example

#

ye

#

1.12 should be fine

#

i wouldnt choose a really old version like 1.8 tho

#

unless you explicitly want to make something on that

#

i mean ye but i still wouldnt start on a 7 year old version

#

no i need to rank up my message counter

#

ok so where did we stop

#

we were discussing if 1.8 is a good version to start coding

#

so imo its not

#

xd

torpid crypt
#

@dark elk All versions have mostly backwards version compatibility. If you want to be able to do the most then going for the latest version is probably your best bet. With spigot plugins, there isn't a version that's harder than another to learn since the code for a 1.8 plugin will look mostly the same for a 1.16 version of it, except you can't always make a 1.16 plugin that'll also work for 1.8

#

worded poorly, I'm on phone and tried to explain while stuffing pizza in my face

queen vine
#

I love programing

#

like so much

#

actually

#

sad momenyt

#

well

#

bye pro

#

gamers

#

sorry gramers

gaunt berry
#

ah yes

zinc steppe
gaunt berry
#

why i prefer cs over java:

astral hinge
#

@queen vine

#

20 hours?

queen vine
#

yeah

astral hinge
#

slep

wheat relic
#

@sweet barn PLEASE

#

fix

#

FOUR DAYS WHY

signal drum
#

🙄 this is not a 'ask cube devs to fix bugs' channel

plush walrus
wheat relic
#

It happened somany times and has had patches for only a few days

wheat relic
plush walrus
wheat relic
#

but this was meant to be fixed on the 29th of april 2021

signal drum
#

and?

plush walrus
spring tiger
#

This is the programming channel, not a bug report channel @wheat relic

wheat relic
elder void
#

Yes, likely because the fix did not work correctly. This is not the usage of this channel, please move this elsewhere.

dark elk
queen vine
#

Because I don’t get adds on there

dark elk
#

oh wow that's kinda smart ngl 😂

quasi oasis
#

I was scared that this would kind of turn into that and I have seen more and more people reporting bug related things in this channel. Make sure to keep that out of this channel. Thank you. 😃

hearty bloom
#

this channel is kinda hot :)

plush walrus
quasi oasis
tepid ember
#

Moin kurze Frage ist wer Gut in Discords Bauen (Bots Kanäle Verifizieren usw) Wenn ja schreib mich mal bitte per pn an Danke

gaunt berry
astral hinge
#

JS too hot🥵 🥵 🥵

spring tiger
#

Trying to learn a bit of JS so I can have live updating graphs from my raspberry pi sensors
Have to say I am finding it hard :(

elder void
#

JS has a lot of quirks that can be difficult to wrap your head around

hearty bloom
#

TL?

gaunt berry
#

Teelöffel

plush walrus
#

So, I have tried to restrict Nginx access by IP and it did not really work,

this is how my /etc/nginx/sites-enabled/default looks like

server {
        listen 81 default_server;
        listen [::]:81 default_server;

        allow MY:PUBLIC:UP;
        allow 192.168.0.104;
        allow 192.168.0.145;
        deny all;```*the port 81 is intentional*

192.168.0.104 - my computer local IP
192.168.0.145 -  my server local IP

And now the issue is that I can access the web server using the server local IP (`192.168.0.145`) but when I use my public IP, I get 403 Forbidden.
Any ideas on how to fix this?
languid flame
#

||IP leaked?||

astral hinge
#

🤦

plush walrus
gaunt berry
#

ip leaked

dense zinc
#

Guys DDOS me: 127.0.0.1 (this totally isn’t local host)

languid flame
#

My IP is the numerical version of the alphabet

hearty bloom
#

and did you restart the service?

plush walrus
#

yup, I did

plush walrus
#

(default generated by nginx)

hearty bloom
#

and restart

#

what happens?

plush walrus
#

I can access it using both public & private IP

spring tiger
#

it sounds like you've put the wrong public ip if you're able to only connect with the private one

plush walrus
#

hmm, well then how can I check what is my Public IP?

hearty bloom
plush walrus
#

which is the one I used

hearty bloom
#

and is the ip linked to the decide you are using correctly?

spring tiger
#

afaik you have to login on your router and see what wan/public ip address you have
that's how I got my Pi working

plush walrus
#

oh turns out there is some 2nd public IP that I am actually using so I just added it and it works

plush walrus
#

And actually, I have 1 more issue :)

When I run Nginx on my Pi, everything works fine etc. (website running)
But when I point my domain DNS at it and try to access it (using the domain), I get ERR_TOO_MANY_REDIRECTS.
I have had this issue before and could not fix it and I only have 2 things that might cause this.

  1. I use Cloudflare for my DNS so maybe some Cloudflare issue

  2. Port-forwarding is done the way that every traffic to my public IP is forwarded to my Pi on local network, but on my PUBLIC.IP:80 there is router visual interface running so that's why I used port 81. But when I use PUBLIC.IP:81 I can access everything but when I do example.com:81 I get the redirect error

I am currently trying to set and use the DNS settings provided by the domain operator but their admin site is down atm so I just wanted to see if anyone else has had this issue and knows a solution.

plush walrus
#

👀

dense zinc
#

Sike I didn’t even read it 😎

plush walrus
#

:(

plush walrus
hushed stream
plush walrus
hushed stream
plush walrus
#

mhm

hushed stream
#

are you using ubuntu for nginx?

#

or linux

plush walrus
#

Raspberry Pi os (Debian 10)

hushed stream
#

linux based

#

s

#

o

plush walrus
#

yup

hushed stream
#

sudo ufw allow <port>

#

that opens a port

plush walrus
#

I know, I allowed 81

hushed stream
#

But have you enabled the rest of the ports?

plush walrus
hushed stream
#

have you enabled port 80 too?

#

and 443

plush walrus
#

ye

hushed stream
#

mhm

#

i personally have a vps w ubuntu

#

can you send the redirect error?

plush walrus
hushed stream
#

clear the cookies

plush walrus
hushed stream
#

browser cache?

gaunt berry
#

is it a browser error or nginx error

plush walrus
#

browser error

gaunt berry
#

delete browser data

#

or try with another browser

hearty bloom
#

Trying to set up Apache2.
I would like to have it redirect:
/api/* to /var/www/api
and the rest to /var/www/web

anyone knows if it is possible to do it directly inside the sites-enabled/?.conf file?

plush walrus
#

I think I already fixed it 😎

spring tiger
#

Bit of a different programming project
Over the weekend I made a plant monitoring system. Its a bit basic for now but I'm excited to work on it in my free time after exams

plush walrus
#

damn that looks so cool!

spice plaza
#

:O

hushed stream
#

amazing!

hearty bloom
spring tiger
hearty bloom
#

ooo. this was the main reason why I started learning python 4 years ago 😂
then I discovered Java 2 months later and forgot about python... :(

#

still need to learn this xd this is too good

spring tiger
#

I've been doing so much Java I have started to forget my python syntax so I definitely need to keep up

hearty bloom
fervent stirrup
#

humid shade

quasi oasis
#

We're just waiting for @spring tiger to join the dev team

spring tiger
#

😳

minor roost
#

python java c++ code html ();

lyric patio
#

Python is kinda hell

gaunt berry
#

especially if you got used to putting semicolons and curly brackets

lyric patio
#

Yea

stray pendant
#

!play black and wight

candid patio
#

Aha

minor roost
#

hmmm knowledge

cinder mason
shadow haven
#

Rust crazy

dark elk
#

Hai can someone help me? If I make this simple gamemode message then he sends me the old gamemode. But I wanna send the new gamemode.. But getNewGamemode() doesn't work :v


import org.bukkit.ChatColor;
import org.bukkit.Sound;
import org.bukkit.entity.Player;
import org.bukkit.event.EventHandler;
import org.bukkit.event.Listener;
import org.bukkit.event.player.PlayerGameModeChangeEvent;

public class Gamemode implements Listener {
    
    @EventHandler
    public void OnChangeCommand(PlayerGameModeChangeEvent e) {        
        Player player = e.getPlayer();
        
        player.playSound(player.getLocation(), Sound.ENTITY_VILLAGER_YES, 2F, 1F);
        
        player.sendMessage(ChatColor.GRAY + "You have succesfully changed your gamemode to " + ChatColor.GREEN + player.getGameMode());
                
    }
    
}
spring tiger
#

I haven't done bukkit but I have done fabric, and it looks like you never actually set the player's gamemode

dark elk
#

But that sends the old gamemode, But I wanna create a kinda gamemode cmd.. So I need to know how to get the new gamemode 😛

spring tiger
#

quick look at the documentation, you want to do
e.getNewGameMode() and not player.getNewGameMode()
@dark elk

dark elk
#

Oh bruh sec I'm gonna try that xd

#

Pff I feel really dumb right now.. I couldn't find that 😂 But thanks Mit. potatosmile

spring tiger
#

np :)

desert tulip
#

Im not that good at json but it throws me error here, could someone help me? :D

#

it says on line 1093

gaunt berry
#

json is just a way to store data, nothing we can help with

desert tulip
#

I know json but with minecraft programming idk

#

okay

quick briar
#

Hey, how do i change my gamemode to creative on cubecraft?

hearty bloom
hearty bloom
#

and next time it would be better to send it as text and not screenshot ;)

jovial pine
quick briar
#

is there anything interesting i can do ?

desert tulip
#

I only know json basics tho :v

quick briar
#

Hey, do you know about the levers in the blockwars lobby? what is their actual purpose ?

hearty bloom
desert tulip
#

ok

quick briar
desert tulip
#
"profile_card_screen@common.base_screen": {
    "button_mappings": [
      {
        "from_button_id": "button.menu_cancel",
        "to_button_id": "button.menu_exit",
        "mapping_type": "global"
      }
    ],
    "$screen_content": "profile_card.profile_card_screen_content",
    	"$screen_bg_content": "Lounge_bar.dmodbg",
  },

  "profile_card_screen_content": {
    "type": "panel",
    "controls": [
      { "main_panel@profile_card.main_panel": { "layer": 1 } }
    ]
  }
}
hearty bloom
#
"profile_card_screen@common.base_screen": {
    "button_mappings": [
      {
        "from_button_id": "button.menu_cancel",
        "to_button_id": "button.menu_exit",
        "mapping_type": "global"
      }
    ],
    "$screen_content": "profile_card.profile_card_screen_content",
    "$screen_bg_content": "Lounge_bar.dmodbg"
  },

  "profile_card_screen_content": {
    "type": "panel",
    "controls": [
      { "main_panel@profile_card.main_panel": { "layer": 1 } }
    ]
  }
}
desert tulip
#

ty

hearty bloom
#

np :)

desert tulip
#

oh you removed the , from Lounger_bar.dmodbg?

quick briar
#

Can i join you guys

#

?

hearty bloom
desert tulip
#

oh I remember now

#

There is more errors but I think I will be annoying if I ask alot sadcat

#

in other files lol

#

Ima try solve them myself with my json skills

hearty bloom
#

try to solve it and if you are lost, feel free to yeet the json here :)

spring tiger
#

Or shove it in a JSON validator

desert tulip
#

Okay :D

#

I understand Javascript but I dont understand json that much lol

sharp sentinel
#

C

quasi oasis
sharp sentinel
#

D

hearty bloom
#

E?

minor roost
#

Sharp

fast vault
#

F

lyric patio
#

G

burnt lake
#

I’ve just started using unity and started a great course having much fun can’t wait till I can start to make some cool ahead

#

Games*

lyric patio
#

I also wanted to create some unity games but my knowledge of programming is small

#

I only know C but only the basics

spring tiger
#

Unity has some great tutorials, you generally do not need to know C to begin with it.

flint pond
#

Hii! Anyone here who knows how to code .net core? I need some help with my website (I'm willing to pay you for it😝)

quasi oasis
lyric patio
#

Yee

hearty bloom
spice plaza
#

C# is closer to java in style, ain't it?

plush walrus
#

lol

sage mauve
#

Hey, I'm planning to learn another coding language, any recommendations?

spring tiger
#

Which languages do you know already?
I'd suggest Java or Python in general, or Java script/node.js

hearty bloom
# sage mauve Hey, I'm planning to learn another coding language, any recommendations?

depends what you already know but:
if you want to start with website backed development PHP is the way to go
if you want to start with website frontend development JS (TS) is the way to go
if you want to start with me Minecraft development or pretty much anything, learn Java. but i would suggest learning Java only after you know another language
if you want to start with coding without knowing much, learn python

fathom salmon
#

what about c++... xD

gaunt berry
#

what about c#

languid flame
#

I just learnt that gates exist

#

In something

hearty bloom
#

but ig for desktop applications /shrug

sage mauve
lusty pagoda
hearty bloom
gaunt berry
sweet barn
#

I think you’re thinking of C#

modern copper
#

Ye

quasi oasis
#

C# is basically Microsoft’s Java

quasi oasis
quasi oasis
gaunt berry
#

(atleast thats what i heard pls dont murder me if im wrong)

hearty bloom
hearty bloom
lean tulip
#

Hi, how do I print hello world in Java. Print doesn’t work. Is it system method

#

Also I’m using .Net so maybe that’s why it doesn’t work

signal drum
#

System.out.println("Hello world!")

lean tulip
#

Thanks I knew that I was just testing you

#

I prefer to use loggers

gaunt berry
#

what

#

.net in java

#

why how what

quasi oasis
lean tulip
#

Nah nah I'm calling the java code from VB.net using the ABI. ;)

quasi oasis
#

Oh well then you’ve completely lost me

lean tulip
#

Sorry I'm making stuff up 😛

#

Thanks for the reply though

clever sluice
#

@hearty bloom a little late to the game of electron vs c++/c# but in my personal experience, they are more useful in terms of calling system code which hasn't been ported to electron. It is also significantly more performant since it isn't running your application inside of chromium 😛

#

For example, the only reason you are able to manage the system clipboard from electron, is because electron made a C++ module that can be used from within JavaScript. Here is the module in C++ https://github.com/electron/electron/blob/da8c35e3b256b4f9ad0c16edfbc2b56748b3a740/shell/common/api/electron_api_clipboard.cc and here is the interface which calls it in JS https://github.com/electron/electron/blob/da8c35e3b256b4f9ad0c16edfbc2b56748b3a740/spec/api-clipboard-spec.js (it's a little more complicated than this, but it's a good example)

gaunt berry
brisk badge
#

does anyone here have knowledge of java swing?

sick shadow
#

Nope, I never heard that before!

plush walrus
#

So I just wanted to ask if it is safe to leave your MySQL query like this:

insert_query = f"INSERT INTO messages (id, msg_link) VALUES ({int(msg_id)}, '{msg_link}');"
``` because if the variables are customizable, someone can put in like `;` which may cause issues.
If if it not safe then how can you make it safe?
*I am using Python btw*
signal drum
#

i don’t know Python but I bet if you look up ‘python SQL injection’ that you will find your answers

plush walrus
elder void
#

It's probably not safe, example of how to do it safely:

hearty bloom
elder void
#
cursor.execute("""
            SELECT
                admin
            FROM
                users
            WHERE
                username = %(username)s
        """, {
            'username': username
        })
plush walrus
#

thx

hearty bloom
#

too lazy to thing what I should put there

plush walrus
#

thx, I will check that out too

hearty bloom
#

try this xd

spring tiger
plush walrus
elder void
spring tiger
#

Yeah you're right
I remember there being classes for PreparedStatement that can sanitize your inputs

#

I must be getting python and java mixed up
It's been a long day
I have exams tomorrow
AaaaaaaaAaa

plush walrus
#

gl :)

minor roost
#

GL

hushed stream
#

good luck!

karmic igloo
#

Teacher, don't ask me to make something in turtle graphics in my next class. I will show you up!

wild shadow
#

i love recursion

karmic igloo
#

👍

#

i didn't make it with recursion though XD

#

not really at least, it's more looping

#

i just wanted to see if i could do it at all

low lake
#

idk who will need this but im sending a code

#

if u save this code as .bat its a not working troll ddos tool

#

its turkish

#

wait I will edit

#

k edited version

plush walrus
#

uhh maybe send in codeblock

low lake
#

what is codeblock lol

low lake
#

yey I make

#

as a batch file

#

and as exe

#

note: its not working and using working ones are illegal

muted knoll
#

Someone to help me with PMMP? blobwarm

wheat relic
#

Pmmp is bad

#

And

#

You should use some better bedrock server engine

odd sonnet
#

Hello! Does anyone have any recommendation videos for beginners in Java?

muted knoll
wheat relic
#

because it just is

gaunt berry
#

because it is

muted knoll
#

is?

#

but with pocketmine all the bedrock plugins are made

gaunt berry
#

use nukkitx

muted knoll
#

no?

gaunt berry
#

or run a java server with geyser

muted knoll
gaunt berry
#

use nukkitx then

muted knoll
gaunt berry
#

pocketmine is garbage

muted knoll
gaunt berry
#

because it is

#

if you want to use pmmp so badly, go for it

#

i wouldnt recommend it tho

muted knoll
#

oh okay

#

you are developer?

gaunt berry
#

(unless you specifically want to use php to make plugins ofc but thats up to you)

gaunt berry
muted knoll
gaunt berry
#

neither

#

i do c#

muted knoll
#

oh okay

gaunt berry
#

and java sometimes but mostly c#

muted knoll
#

i´m learning, html, css, php

#

I learned*

#

sorry

#

i´m mexican

#

xd

gaunt berry
#

as i said, if you want to use php to code plugins, go with pmmp

muted knoll
gaunt berry
#

aight

muted knoll
#

Now, do you know where I can get someone to help me with pmmp?

gaunt berry
#

read their documentation

muted knoll
muted knoll
plush walrus
#

Uhh probably really dumb issue but I have an error in my SQL syntax

check_query = "SELECT reason from users where user_id = (?)", int(user_id)
cursor.execute(*check_query)``````ProgrammingError: 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right 
syntax to use near '?' at line 1```
gaunt berry
#

just use microsoft word files banter

plush walrus
#

get the same error basically

#

ProgrammingError: 1064 (42000): ... syntax to use near '?' at line 1

#

mope

elder void
#

the id needs to go in the execute?

plush walrus
#

well it has to be used in the query

elder void
#
check_query = "SELECT reason FROM users WHERE user_id =?"
cursor.execute(check_query, (int(user_id),))
#

Have you tried that?

plush walrus
#

not yet

#

ProgrammingError: Not all parameters were used in the SQL statement

clever sluice
#

Ensure that the value you are giving in for user_id is indeed an integer

elder void
#

Oh replace the ? with %s

plush walrus
clever sluice
#

🧠

elder void
#

No worries :)

plush walrus
gaunt berry
#

":man_bald:"

#

didnt know u were bald tbh

spice plaza
#

congrats on bald

plush walrus
#

I just used thsi first man emoji I could find >:c

spice plaza
#

simple solution

#

use a blob

minor roost
fading violet
violet jetty
#

enderman_face stare ¯_(ツ)_/¯

lusty pagoda
#

I challenge you to know this code 😏
<html>
<body>
</body>
</html>

bleak sluice
#
public class Main {
    public static void main(String[] args) {
        do {
            System.out.println("CubeCraft On Top");
        }
        while (true);
    }
}
minor roost
spring tiger
#

@prisma cypress This isn't the place to report hackers 🙂

minor roost
lusty pagoda
#

grats

languid flame
#

I did this in computer science, not sure what I was meant to be doing but it looks cool and it crashed the PC bc they are bad

#

(Pls tell me I did good idk how to code)

gentle patio
#

@languid flame you did good

hazy escarp
bleak sluice
gaunt berry
languid flame
hazy escarp
#

that section of code inside for i in range

#

that repeats itself a certain amount of times

hearty bloom
#

anyone knows what is IntelliJ's problem here?

gaunt berry
#

name cannot be applied to java.lang.string

#

thats whats happening

#

also, your method call is ambiguous

spring tiger
#

@hearty bloom you need double apostrophes, not single
' -> "

#

maybe

hearty bloom
#

but it has never been a problem

#

this is (or was) the correct syntax

spring tiger
#

apparently you just need to reload gradle and also maybe reload your ide

gaunt berry
#

maybe cut it out and paste it back in

hearty bloom
#

adding colons fixed one error xd

#

well, kinda 😂

#

now it throws errors on runtime

spring tiger
#

yeah you can't use colon

hearty bloom
lusty pagoda
#

Hiii majska

hearty bloom
#

I won't keep distracting you 😂 go study :)

hearty bloom
lusty pagoda
#

Hii mitty

hearty bloom
#

conea?

lusty pagoda
#

?

hearty bloom
lusty pagoda
#

am not conea

#

94

#

@languid flame is my other clone

hearty bloom
#

lol

#

I was just confused haha

lusty pagoda
#

Yeah I did that trick.... Ppl thought I'm Conea

languid flame
#

What

lusty pagoda
#

Masjka thought me you

languid flame
#

Majska is thicc

#

Auto corrected thick to thicc

#

Love to see it

lusty pagoda
#

Thicc

languid flame
lusty pagoda
#

Wait Conea!

#

Since when do you code those stuff?!

hearty bloom
wintry lily
#

Why

winged apex
#

Mm

lusty pagoda
#

What coding language do I need to code a discord bot? @hearty bloom

#

I disturbed 😰

gaunt berry
#

any

hearty bloom
gaunt berry
#

there are wrappers for literally any language

hearty bloom
#

but most common ones are java, js and python

lusty pagoda
#

Python then

#

But it's getting kinda difficult for me

gaunt berry
#

if you need help feel free to ask here

plush walrus
lusty pagoda
#

well

#

Uh

#

What do you mean by "basics"

#

Shouldn't I learn the entire language?

plush walrus
#

ye well I think you should know how functions work and maybe classes

lusty pagoda
#

I'm learning through an application called SoloLearn

#

Any better one maybe?

hearty bloom
plush walrus
#

I don't really know but I think all of them are kinda the same

lusty pagoda
#

Yeah it teaches well

#

Mimo for example is a pay to learn tho ;-;

#

Not all are the exact same..

#

Btw how did y'all learn coding? School?

plush walrus
#

uhh I learned it myself from some tutorials etc.

lusty pagoda
#

wow

#

Teach me then 😔

plush walrus
#

alr

lusty pagoda
#

wat

#

Btw

#

Why did you unfriend me? Is it because of Robin? ;-;

spring tiger
#

W^3 schools and SoloLearn are perhaps your best bet at free python stuff
https://www.w3schools.com/python/python_intro.asp
SoloLearn is good because it quizzes you
W^3 is good because it has an interactive examples and lets you mess around with their examples

plush walrus
#

I agree, I check W^3 schools for help sometimes :)

lusty pagoda
spring tiger
#

ty :)

lusty pagoda
#

Is there an app for that website?

#

nvm just created a shortcut

hearty bloom
lusty pagoda
#

Yay my pc supports python ;-;

#

It's been more than 5 mins trying to open it

#

Maj
Anything should I learn before starting with python?

hearty bloom
#

nah

#

python is the perfect introduction to coding

lusty pagoda
#

A good start right

minor roost
#

:3

karmic igloo
hearty bloom
#

i never actually knew it was w^3 and not w3

#

always been calling in it double-u three schools 😂

wild shadow
#

WHAT

#

it was called W CUBED this whole time?

clever sluice
#

Wait

#

What

#

This has to be a meme

wild shadow
#

but it still says W3Schools

clever sluice
#

😕

#

Confusion

wild shadow
clever sluice
sweet barn
#

W3 stands for world wide web, w cubed doesn’t make any sense thonk

wild shadow
#

mitgobla lied to us

languid flame
#

😆

cobalt ridge
#

See

#

Add

#

This code

#

You'll get rtx

wild shadow
#

Anyone know assembly?

cobalt ridge
#

import Relistico demo
print= (f.ture)
S = RTX SHADERS
Print = blocks name.txt
w = Block 218x218
Insert (''BlocksPht.img'')
close ('''')

inland cove
#

01001000 01100101 01101100 01101100 01101111 00100001

minor roost
#

ascii

solar dawn
#

is there anyone who can make a minecraft skin for me for free

signal drum
#

hmmm... yes, programming chat 🤔 let's ask in there because that makes sense...

minor roost
#

Is Java 16 going to affect cubecraft?

sweet barn
#

Nope, but you may need to install it if you don’t have it already to launch the latest snapshot and likely 1.17 as well

chilly sonnet
#

-p join

#

-join

#

-p hello

gaunt berry
#

@chilly sonnet couldnt find the song "join"

#

@chilly sonnet command "join" not found

#

@chilly sonnet couldnt find the song "hello"

junior jasper
abstract scroll
spring tiger
elder void
#

If you use the default Java version that the launcher provides, then it'll handle it all for you. It's only if you use a custom Java version that you'll need to make sure you're up to date :)

wild shadow
#

Anyone know assembly?

#

(╯°□°)╯︵ ┻━┻

gaunt berry
#

┬─┬ ノ( ゜-゜ノ)

minor roost
#

hi

#

wtf

minor roost
#

can enzone speak

spice plaza
#

has anything actually been removed between java 8 and java 16?

pastel osprey
#

@wild shadow what are you trying to do?

spice plaza
#

like I noticed some parts of reflection have been deprecated but nothing actually had been removed

hearty bloom
#

anyone knows how to fix?

elder void
#

You're doing something with shading in dependencies? You need to specify to exclude the LICENSE file

hearty bloom
quasi oasis
#

Gradle makes me cry

wild shadow
pastel osprey
#

oh lmao

#

which assembly version are you going to try and learn

wild shadow
#

<o/

pastel osprey
#

like 6502, x86, some arm version or something?

#

i would start by doing research into how assembly serve components in electronics. like what things need assembly and where do i put it.

wild shadow
#

ping pong

signal drum
hearty bloom
flat palm
#

What if we add just a 2?

#

ops my bad

gaunt berry
flat palm
gaunt berry
#

yes i just wanted to tell if you didnt know

spice plaza
dense zinc
hearty bloom
#

gradle is cool

pastel osprey
flat palm
#

do look like a kid?

#

to let you know i learned html/css/java script/java/python

#

and i'm active member in python server

pastel osprey
#

what

flat palm
#

.

#

it's somethign more complicated tahn your mind

pastel osprey
#

coherent sentence please

flat palm
#

i learned like 5+ deffrent programming language

pastel osprey
#

good for you, do you have certificates for them?

pastel osprey
#

well done

flat palm
#

and i got google certificates too

pastel osprey
#

nice

plush walrus
flat palm
#

i do'nt have roles there but ya i always talk with ppls therea dn help them

plush walrus
pastel osprey
flat palm
#

Look

#

i'm in tho

pastel osprey
#

windows 7?

flat palm
#

oh

#

it's not a normal win 7 🙂

#

want to see?

pastel osprey
#

i mean sure

flat palm
#

There

#

want me to stream to proof

#

share my screen

#

my own design

pastel osprey
#

which distro

flat palm
#

?

#

you can come priv

#

click join vc

pastel osprey
#

i cannot join vc right now

#

im on my phone

flat palm
#

ah ok

#

Bye then

minor roost
#

wait because this week on Saturday at 4 p.m. I got banned and they didn't unlock me and they didn't unlock me

little seal
#

holaa

flat palm
#

Idk talk to staff @minor roost

little seal
#

hola

flat palm
little seal
#

si?

flat palm
#

umm

#

espagnol?

little seal
#

espanol si

flat palm
#

There amigo

little seal
#

lol im joking

flat palm
#

.

little seal
#

i speak english

knotty mica
steady marsh
#

@brisk trout are you a anti cheat developers

brisk trout
#

No I'm not

steady marsh
#

@brisk trout can you tell me who are sentinel developers

brisk trout
#

@sudden saddle wants to help

steady marsh
#

Ok thanks

sudden saddle
#

@steady marsh @hard bay @fluid pivot and me

#

But youre going to have to make an appeal for me to help you with your Sentinel ban

plush walrus
#

is it possible to host Bedrock Edition sever on Debian distros?

gaunt berry
#

try it out

plush walrus
#

well I found only Ubuntu and Windows server

gaunt berry
#

there are also 3rd party server softwares but the ubuntu should be fine

twilit monolith
#

Oh lord long time ago since I did this O.o

plush walrus
gaunt berry
plush walrus
#

OH THANKS!

gaunt berry
#

its probably better to use a third party server since mojangs version is quite resource hungry

plush walrus
#

ye, ik

minor roost
#

what programming language do you guys use?

torpid crypt
twilit monolith
#

What? No I'm not 👀 @torpid crypt

karmic igloo
#

woot woot, finally got cave generation working on my game!!! Hype

#

😉

#

👍

steady marsh
#

@sudden saddle I appealed already gamertag - TIvSPOT

#

@hard bay can you rewiew my appeal it's about sentinal gamertag-TIvSPOT

#

@fluid pivot can you rewiew my appeal it's about sentinal gamertag-TIvSPOT

safe knoll
#

@steady marsh Please refrain from tagging multiple staff members. As we have said your appeal will be looked at once a sentinel dev is free. Tagging them won't speed it up

knotty mica
#

well hulk he have the normal pfp in discord

frigid plover
#

kkkkkk

hearty bloom
#

@steady marsh also this channel is for coding discussions. not about sentinel appeals :)

cloud tartan
#

lol

pastel osprey
#

does anyone know the rust library rocket and diesel?

pastel osprey
#

im trying figure out how their migration schema works.

#

sorry, their modeling system.

#

woops

plush walrus
#

Alr so I wanted to ask what is the best way to store a list in 1 MySQL column like this

+-------+------------------+
| id    | list             |
+-------+------------------+
| 12345 | val1, val2, val3 |
+-------+------------------+
```I am not really sure about how to store more values in 1 column and if it is a good way to go
hearty bloom
#

or just go JSON ig

plush walrus
#

hmm, I guess that works

gaunt berry
#

or just use excel files

hearty bloom
#

just learn foreign keys

plush walrus
#

oki

hearty bloom
#

it doesn't even solve his problem

gaunt berry
#

it a joke

hearty bloom
#

I know,but it doesn't even make sense

gaunt berry
#

thats the joke

brisk badge
#

lmao

dense zinc
#

@plush walrus use google drive

plush walrus
pastel osprey
#

use a c# script to send individual keystrokes to a microsoft word file hosted on a server using windows server 2012.

#

bang

#

database

dense zinc
#

@plush walrus store a MySQL database in your MySQL database

pastel osprey
#

revolutionary thinking

ashen bramble
#

henlo I need help. I am designing a hangman game and am trying to write a function that hides the scentence whit "_", but also keeps the spaces

#

I have this so far but Im so lost idk what to do lol:

    hiddenword = ""
    for i in (word):
        if " " in word:
            hiddenword += " "
        else:
            hiddenword += "_"
    return hiddenword```
plush walrus
#

can you send in codeblock?

#

`

ashen bramble
#

there

plush walrus
#

I guess this does the job

def split(word):
    return [char for char in word]
    
def makeHiddenWord(word):
    hiddenword = ""
    for char in split(word):
        if " " in char:
            hiddenword += " "
        else:
            hiddenword += "_"
            
    return hiddenword
    
print(makeHiddenWord("word"))
#

@ashen bramble

ashen bramble
#

so what you did is you split the word seperately?

plush walrus
#

ye, I created a function to split the word

ashen bramble
#

ahh

minor roost
indigo nacelle
#

Does anybody know a way to alert the user if their browser does not support a certain font type in just html? If not, I can just write Java for it

mortal rapids
#

COVID-19

indigo nacelle
#

Ty

spring tiger
#

@indigo nacelle You should probably have a fallback font rather than not allowing the user to see the website

ocean sparrow
#

Anyone knows what permissions /var should have? 👀

hearty bloom
viral beacon
#

!rank @viral beacon

lusty pagoda
ocean sparrow
#

yes

lusty pagoda
#

I know it doesn't make sense but yeah.

lusty pagoda
#

@spring tiger sorry for disturbing you
I hope you aren't studying, reply later if you're busy
You seem like you code, do you help developers coding of you just design (idk your job)?

spring tiger
#

I'm not on the development team, they're more experts than I am at coding 😝
I've done some coding as part of my job but I mostly manage behaviour work

lusty pagoda
#

What kind of designers are you?

untold grail
ocean sparrow
indigo nacelle
lyric patio
bronze marlin
#

Add daily challenges by every gamemode

Example: Make 200 kills and get 3k exp

lament temple
brisk badge
#

why does everyone use pyhton

spring tiger
#

it's one of the easier languages to read and pick up on, and it's heavily used for prototyping or quick setup

brisk badge
#

hm i prefer java

spring tiger
#

java and python are both the current most popular languages so its entirely dependent on what language fits what you want to do and which you prefer anyways

vague viper
#

Bean.exe

lusty pagoda
spring tiger
#

java doesn't need schools, its just as freely available to learn online as python

ocean sparrow
lusty pagoda
#

Btw any tips before I start with Java? Like should I learn any language before starting with Java?

ocean sparrow
lusty pagoda
#

I wha

spring tiger
lusty pagoda
#

w3schools is easy

#

Good for beginners

#

Code the pressure plate in cc.

bronze marlin
#

I’m a Java Developer for now 7years haha

lusty pagoda
#

0.0

honest radish
#

._.

elder cave
#

._.

spice plaza
#

I picked java up with tutorials on how to make different things. Schools are defo not needed if you spend enough time with it :^)

quiet marlin
#

hey

hearty lodge
#

:^)

bronze marlin
spice plaza
#

uhm

#

what is it? what's your username smh

plush walrus
#

A website

spice plaza
#

smh

plush walrus
#

To host open-source code

spice plaza
gentle patio
lyric patio
#
printf ("Y'all n00bs\n");
return all;
brisk badge
dense zinc
plush walrus
spice plaza
hearty bloom
lyric patio
#

F

quiet marlin
graceful ginkgo
hearty bloom
#

java would not even let you compile the code lol

graceful ginkgo
#

is printf even a function in java

#

Idk java lol

#

just doesnt seem very java-like

quasi oasis
#

System.out.printf

graceful ginkgo
#

fair enough

#

adding 2 objects in front of a function will make anything seem like java

left sail
#

How sentinel work

left sail
#

I know

#

Ban randoms but leave hackers flying

#

Weird

signal drum
#

Just wanted to say that making a good anti-cheat is extremely hard

lusty pagoda
graceful ginkgo
#

starting a print with new line

#

thats kinda cursed

plush walrus
#

lol

lyric patio
#

xd

hearty bloom
minor roost
#

hi

hearty bloom
hearty bloom
minor roost
hearty bloom
#

nope, Czech

minor roost
#

oh I can't speak that sorry

hearty bloom
#

and English ofc XD btw maybe we should go to #💬︱english・general, unless you have something coding related
*I can count to 10 in Spanish btw :))

minor roost
#

ok

covert field
#

Hello

plush walrus
#

Damn, since when looks codeblock hot on phone

hearty bloom
#

daam

plush walrus
#

🥵

lusty pagoda
graceful ginkgo
lusty pagoda
#

My ambitious is becoming a good programmer and instead of showing my mistake you say "cursed"._.

graceful ginkgo
#

f

quiet marlin
#

hi

hazy pecan
#

What the heck is this chat for?

spring tiger
#

@hazy pecan Discussion about all things programming

hazy pecan
#

Who asked you?

plush walrus
#

This dude called batman5158, do you know him?

hazy pecan
#

THAT WAS AN ADMIN???

#

Omg I am so sorry I have rage problems.

ruby pivot
#

Don’t be racist to the admins

vale escarp
#

@cobalt copper

minor roost
bronze marlin
#

Java-Spigot is easy

#

Haha

#

I know I can make it easier with color translate but then idk when it goes wrong haha it take a long time to change the color then

#

I know

#

Haha look

#

On line 35

#

You mean this

#

Yea I use now this &

plush walrus
signal drum
#

luckperms <3

plush walrus
#

Ye ^

gaunt berry
#

permissionsex pro plugin

brittle kindle
#

I programming in python😱

sweet barn
spice plaza
#

luck perms and it's web editor <3_<3

#

don't use it enough to know the commands so that editor is really useful

gaunt berry
#

luck perms' web editor is great but i prefer the command interface

bronze marlin
#

Normally I use luckpermsGui

quiet marlin
#

hi

minor roost
#

var Game = function(){
this.pipes = [];
this.birds = [];
this.score = 0;
this.canvas = document.querySelector("#flappy");
this.ctx = this.canvas.getContext("2d");
this.width = this.canvas.width;
this.height = this.canvas.height;
this.spawnInterval = 90;
this.interval = 0;
this.gen = [];
this.alives = 0;
this.generation = 0;
this.backgroundSpeed = 0.5;
this.backgroundx = 0;
this.maxScore = 0;
}

Game.prototype.start = function(){
this.interval = 0;
this.score = 0;
this.pipes = [];
this.birds = [];

lusty pagoda
#

?!!?!!

spice plaza
#

and now we have flappy bird

#

sOuRcE cOdE l33kEd!!1!

signal drum
#

why it no work :'(

rancid trail
#

Hi, how can I send a message AFTER the chat event has happened?

#
public void chatCheck(AsyncPlayerChatEvent event) {
        
        String m = event.getMessage();
        
        String[] wat = {"wat", "what", "wat?", "what?"};
        //Player p = event.getPlayer();
        
        for (String s : wat) {
            if (m.equals(s)) {
                Bukkit.broadcastMessage("Patat!");
            }
        }
}
#

My code right now

#

The problem right now is that the message gets sent before the player's message since it does these checks before sending the message in chat

spring tiger
#

from spigot forums:
"send the message the tick after the event gets ran using the BukkitScheduler "

rancid trail
#

Yes, found that one too

#

Are you familiar with BukkitScheduler?

spring tiger
#

No I've not worked with Bukkit, but it makes sense you have to send it after the event has finished.
seems to be a bunch of examples of scheduling on the wiki
https://bukkit.fandom.com/wiki/Scheduler_Programming

BukkitWiki

This tutorial will guide you in using the scheduler provided by bukkit. It will allow you to defer the execution of code to a later time. This is not the same as registering a Listener, a block of code which is executed in response to an event in the game. Blocks of code may also be scheduled to be executed repeatedly at a fixed interval, with o...

rancid trail
#

Aye, thanks

small plank
#

hi

gaunt berry
#

its haunting me

lapis saddle
#

F

small plank
#

Can a Developer review my code of my project dm me pls i want tips 🙂

#

to improve my skills

pastel osprey
#

do you have the project on github?

#

I’m not a dev on this project but i might be of some assistance.

small plank
#

Do u have experience with packets en schedulers?

small plank
pastel osprey
#

oh lmao

small plank
#

they pay me $100 for the hole servercore

#

with staff ranks chat party friends etc

small plank
small plank
spice plaza
small plank
#

give my your opinion if it is clean or i can improve some code

small plank
spice plaza
#

nah

#

I'm saying

#

you could put it on github

#

as a private project :^)

small plank
#

how can you look then?

#

can i give u acces then to see it?

spice plaza
#

you can invite users to a repo, yeah

small plank
#

oki

#

i'll go do that

#

dm me if you want to see it

#

with your github name

spice plaza
#

I may have a look in a bit, I'll see if I have time :)

small plank
#

i gonna put it tomorrow on github

#

i have to work 40 hours next week 😭

#

haha

#

normally i have to work 24 but there is a person sick so i have to take her hours ;

spice plaza
#

sadge

#

good luck ^^

small plank
#

Thanks haha

#

Rip me 😫😫😫

minor roost
#

node.js

plush walrus
#

react.js

hearty bloom
#

next.js

spice plaza
#

js

small plank
#

Index.ja

minor roost
#

jajaja

sharp crystal
lusty pagoda
#

cubecraft.js

small plank
#

Js is easy haha

vague viper
#

What's a js

lusty pagoda
plush walrus
sharp crystal
lusty pagoda
small plank
#

JavaScript haha

#

In my country we type and say javaskript

#

😂😂😂

hearty bloom
#

or more like

#

it's not predictable

small plank
#

It is

plush walrus
#

Then teach me, I tried it like only once...

sharp crystal
plush walrus
gaunt berry
#

javascript is weird

sharp crystal
brisk badge
plush walrus
#

🧢

gaunt berry
#

🧢

#

wanted to type crontab -e

#

REEEEEEEEEEEEEEEE

brisk badge
#

lol