#💻︱programming

1 messages · Page 31 of 1

lusty pagoda
#

@plush walrus
About Me Hey, my name is KristN, real name Kristián. I am a "14 year old" student who likes to code mostly in Python. In my free time I also like to play games
You're 17?

plush walrus
#

?

wooden aspen
#

i understand wat he means but im too bad to explain

signal drum
#

is this even relevant?

plush walrus
#

It's not

rancid trail
#

I don't get it xd

bright hawk
#

can anyone help me

plush walrus
#

Probably try to Google how to set up DNS for Minecraft bedrock

sharp crystal
#

make a normal record too

#

not only a svr

signal drum
lusty pagoda
#

Or 17 I don't remember

plush walrus
lusty pagoda
#

You told me you're 17!

#

WERE YOU LYING?

plush walrus
#
  1. Never said that
  2. Not relevant to this channel
lusty pagoda
hazy escarp
#

exposed

plush walrus
lusty pagoda
#

You told me once you're 17...

plush walrus
#

I asked when because I never said this but ok

lusty pagoda
#

So you I thought you would go and edit the website.
I forgot to ask if it's coded using html

plush walrus
#

Ofc it is haha

dense zinc
#

Yes

#

Best language

gaunt berry
#

uwupp pro language ngl

hard roost
lusty pagoda
gaunt berry
#

@lusty pagoda ^^

gaunt berry
#

double ping because the first imagr had nono words in it

lusty pagoda
#

o

minor roost
#

Can anyone help me with LuckPerms?

  1. I've create two group, which is
    🔪Staff (Owner➡️Moderator)
    🔪Donator(MVP➡️VIP)
  2. I'd assigned the prefixes too using bukkit color codes.
  3. The permission also get listed down (eg: essentialx.*)

The main question is:
A. How do I add someone to the rank?
B. Why the prefixes won't work?
C. What is weight?
D. What is parent?

bright hawk
gaunt berry
#
  1. You need essentials and vault installed on ur server
#
  1. dont have the words to describe it rn lol
#
  1. parent = group
#

i just got back from school pls dont kill im tired ok

minor roost
#

Thanks bro! Appreciate that

queen hound
gaunt berry
queen hound
#

ohhhh

#

Nice

#

I didn't know there were free things like that

plush walrus
#

Oops he already told u me dumn excuse me lol

queen hound
queen hound
#

Nope

plush walrus
#

SSL certificate?

queen hound
#

Go on the website of let's encrypt

#

And look at sponsor

plush walrus
#

Nah this would be way too much

#

Or I dunno

queen hound
#

My point is

#

It's free for us because others paid

plush walrus
#

Ohh yes, I know, I thought you meant you pay this for a single certificate

queen hound
#

ofc not lol

#

Unless you are an internationnal corporation like amazone

plush walrus
#

Don't see why, you can just use certbot and you easily have https

queen hound
plush walrus
# queen hound The point of the S in Https is security

Not sure if that's true but https is basically http in a combination with SSL ot TLS. And cloudfare itself does not really provide extra security if we're talking about https but they have some protection services etc

queen hound
#

It is, look it up

round pike
#

Yeah but i would say get HTTPS

#

its not that expensive

plush walrus
#

Well https simply means that request to/from the server can not be viewed or modified by 3rd party

#

I actually used cloudflare but meh, I just switched because I didn't like it

#

Yes

#

Found it way easier to set up

#

I was having seizures while trying to set up the cloudflare server certificate

queen hound
#

It gets rid of all the immature childs with less brain cell than a jelly fish

queen hound
#

I know this was a generalisation and it doesn't apply to everyone, sorry if I offended anyone

#

But for the little time I've been hanging out in vc, I had multiple people say slurs and use sound board to annoy people

sharp crystal
plush walrus
sharp crystal
#

Too many struggles 🥲

plush walrus
#

I haven't had any struggles hyperthonk

sharp crystal
#

Try to make an automatic cert system then <3

gaunt berry
#

dont you have to run like a single command xd

#

its been a while since i used it

hearty bloom
#

Comment Lines almost on 50% :))

round pike
hearty bloom
round pike
hearty bloom
round pike
#

Maybe u know if its exist on eclipse? 😅

hearty bloom
#

no idea xd

round pike
#

Ahh ty anyways 😂 im using eclipse for game dev 😂 would be nice to have this

gaunt berry
#

use intellij™️

round pike
#

Im lazy to switch 😂

#

I have intellij but lazy to switch

spring tiger
#

Surely having 50% of your text be comments is way too many comments no? 😂

round pike
#

He just commenting everything 😅

brisk badge
hearty bloom
gaunt berry
#

just copy paste that 500 times

dense zinc
#

I hate doing documentation

#

Otherwise I would open source my stuff

minor roost
#

I want to create a menu that only admin(s) can open it using Deluxe Menu. Can somebody help with the has_permission tag?

hearty bloom
obsidian cypress
#

Is there a shortcut in intellij to hide all javadocs? coz for me the issue is once I've javadoced everything, I know what stuff does so I don't need the docs so it just makes it harder to navigate.

plush walrus
#

I think there is an option to hide files with a certain name if that's what you're talking about

hearty bloom
#

it shows a list of all methods inside a class and you can click it which sends you to the method

obsidian cypress
#

ngl I use ctrl + alt + f a lot of the time to find stuff. Even to navigate between classes if i know the project

obsidian cypress
#

thx 💜

obsidian cypress
#

lol

#

can this channel be used for asking non-mc related programming questions, e.g about apis of other services/games?

queen hound
#

Anyone here ever tried doing mods and launching them from eclipse ? (I've got some trouble with it, ping me if you know how it works)

queen hound
#

k thx

#

There is a way to do it, but it just didn't seem to work for me

quiet arrow
#

You should be able to do it from Eclipse, you just won’t have a premium mc acc

plush walrus
#

How does the CubeBot work when it comes to linking accounts & receiving your rank roles.
Why aren't the roles instant?
What slows down the process?
How does it all work pretty much?
This would be interesting imo since not many people actually know how it works.

obsidian cypress
languid flame
minor roost
#

What is the use of has_permission tag in deluxemenus?

plush walrus
#

Ooof, that's kinda sucks

spring tiger
obsidian cypress
#

does the queue sometimes get lost? because i waited for like a day and only when I typed in the linking help channel did I get my roles.

spring tiger
#

No that's intentional.
The message in the link channel states you have to react to the message to receive your roles :stuck_out_tongue:

obsidian cypress
#

ohhh

#

i didnt see that

spring tiger
#

It's reacting to the message or typing in the channel

obsidian cypress
#

surely that's an unnecessary step though?

spring tiger
#

All I know it is used for reducing the load on us and the Discord rate calls

dense zinc
#

I think reacting helps cause you can do it on an event which I don’t think gets rate limited or something

obsidian cypress
#

Maybe executing a give role api request on a user not present in the server counts towards the error ban

#

In that case doing it on reaction would reduce rate limits, if someone links their discord account but is not in the server

minor roost
#

Active chat rare moment

plush walrus
# spring tiger It's not complicated. The reason it's not instant is because of Discord Rate lim...

Well the message or reaction makes sense, I think it's so you get the member object without having to make an API call and then you add the roles just in 1 call.
Honestly I didn't know verified bots have extended rate limits but this server is partnered, wouldn't it be possible to communicate it with Discord to extend those limits (maybe)?
And even if you delay the calls you still gotta do them for every member at some point meaning you don't really reduce them or is there some other way?

queen hound
#

Once the bot is verified, I don't think you can update it live

plush walrus
queen hound
#

I thought it was you need it to be verified to enter it in more than 100 servers

#

This process is currently available for bots in more than 75 servers, oh 75

plush walrus
#

Yes, but I think you gotta cross some amount of guilds which I think is 75

queen hound
#

exactly

plush walrus
#

Ye I said that incorrectly^

queen hound
#

Thats what I just found out

queen hound
plush walrus
spring tiger
#

Yeah no that isn't how it works

queen hound
#

I mean, "if your bot is in more than 75 servers" is the only requirement they give

plush walrus
#

But alt accounts are against ToS afaik so yes that ain't gonna make it

queen hound
#

well who's to say it's an alt ?

#

Even if it's the same ip address you can just say that it's your sibling's account

plush walrus
#

the device

#

it's gonna be on 1 device

queen hound
#

And ?

plush walrus
#

That's a clear evidence that one person owns multiple accounts

queen hound
#

Lmao, how many accounts do you thin I have ?

plush walrus
#

¯\_(ツ)_/¯

queen hound
#

||many||

#

Anyway, it doesn't mention anything about verifying those servers

plush walrus
#

Well nobody really cares until you are trying to bypass the bot verification

plush walrus
queen hound
#

They weren't before, and too many people created fake bots to have the certified developper badge

#

(One of the server devs has it)

minor roost
#

they prob got that legit

#

@queen hound

queen hound
#

Maybe

minor roost
#

wait

queen hound
#

I wasn't saying they didn't get it legit

minor roost
#

Lemme check voltana

queen hound
#

I was just saying some didn't

queen hound
minor roost
#

Yea

#

Discord employee

queen hound
#

oh since the server is partnered

minor roost
#

Cerberus#0005

#

Look at this guy

#

He’s in the discord bug server

queen hound
#

Discord bug ?

#

hmmm

minor roost
#

Yeah

#

Discord testers

#

I can send inv link

queen hound
#

Found it

minor roost
#

check Cerberus#0005

queen hound
#

He's got Bug hunter, certified moderator, hype squad eventer, nitro, nitro classic, hype squad badge

minor roost
#

And disc employee

queen hound
#

yeah

minor roost
#

Also wdym nitro classic

queen hound
#

Well second nitro badge

#

Anyway

#

Cerberus has a different colored bug hunter badge

#

Bug catcher

minor roost
#

night#1337

#

@queen hound

#

9 badges

queen hound
#

What server ?

minor roost
#

One

queen hound
#

How do you find a user ?

#

oh well, I found this person @minor roost

minor roost
#

Nice

queen hound
#

10 !

#

Oh I found night btw

#

Also

#

Did you pass the quiz for discord bug catching ?

#

It doesn,t seem to be working for me when I message the bot

#

But it might be due to the fact that it says that bug catching is closed between friday and monday

queen hound
#

lol

#

lmao

#

People would be happy to get it lol

#

You just said it

#

They are badge hunting

#

All they want it to get badges

#

So giving them an exclusive badge would just encourage them to do it

queen hound
#

oh ok

#

yep lol

opal shadow
#

™✓

queen hound
#

but yeah, with that being said, it's kinda sad for people like me that would have wanted that badge and would have really worked properly just to get it

#

Same way I applied for the discord certified moderator badge, because I'm a moderator in many servers

#

I know lol

#

also

#

Do you know how to collect data from a json response in node ?

#

oh ofc, thats not what I meant

#

I mean that it's sad that discord is removing the ability to earn certain badges

#

No need for one

#

well thats the problem, I know because I copy pasted an example, so I know it's possible, I just don't know what to put as number and arguments lol

#

btw, the real response I recieve

#
{
    "request": {
        "type": "City",
        "query": "New York, United States of America",
        "language": "en",
        "unit": "m"
    },
    "location": {
        "name": "New York",
        "country": "United States of America",
        "region": "New York",
        "lat": "40.714",
        "lon": "-74.006",
        "timezone_id": "America/New_York",
        "localtime": "2019-09-07 11:38",
        "localtime_epoch": 1567856280,
        "utc_offset": "-4.0"
    },
    "current": {
        "observation_time": "03:38 PM",
        "temperature": 18,
        "weather_code": 113,
        "weather_icons": [
            "https://assets.weatherstack.com/images/wsymbols01_png_64/wsymbol_0001_sunny.png"
        ],
        "weather_descriptions": [
            "Sunny"
        ],
        "wind_speed": 0,
        "wind_degree": 345,
        "wind_dir": "NNW",
        "pressure": 1011,
        "precip": 0,
        "humidity": 58,
        "cloudcover": 0,
        "feelslike": 18,
        "uv_index": 5,
        "visibility": 16
    },
    "forecast": {
        "2019-09-07": {
            "date": "2019-09-07",
            "date_epoch": 1567814400,
            "astro": {
                "sunrise": "06:28 AM",
                "sunset": "07:19 PM",
                "moonrise": "03:33 PM",
                "moonset": "12:17 AM",
                "moon_phase": "First Quarter",
                "moon_illumination": 54
            },
            "mintemp": 17,
            "maxtemp": 25,
            "avgtemp": 21,
            "totalsnow": 0,
            "sunhour": 10.3,
            "uv_index": 5,
#
            "hourly": [
                {
                    "time": "0",
                    "temperature": 18,
                    "wind_speed": 28,
                    "wind_degree": 15,
                    "wind_dir": "NNE",
                    "weather_code": 122,
                    "weather_icons": [
                        "https://assets.weatherstack.com/images/wsymbols01_png_64/wsymbol_0004_black_low_cloud.png"
                    ],
                    "weather_descriptions": [
                        "Overcast"
                    ],
                    "precip": 0,
                    "humidity": 68,
                    "visibility": 10,
                    "pressure": 1008,
                    "cloudcover": 75,
                    "heatindex": 18,
                    "dewpoint": 12,
                    "windchill": 18,
                    "windgust": 35,
                    "feelslike": 18,
                    "chanceofrain": 0,
                    "chanceofremdry": 87,
                    "chanceofwindy": 0,
                    "chanceofovercast": 90,
                    "chanceofsunshine": 15,
                    "chanceoffrost": 0,
                    "chanceofhightemp": 0,
                    "chanceoffog": 0,
                    "chanceofsnow": 0,
                    "chanceofthunder": 0,
                    "uv_index": 0
                },
                {   "time": "300", ...   },
                {   "time": "600", ...   },
                // 6 more items
            ]
        }
    }
}
#

OHHHH

#

ok thx

#

Now I understand

#

so the reason the first one was a 0 in the example I copied, was because there weren't any index

#

alright, thx a lot Krypton

#

whats the point of that zero now ?

#

ok so since country is the first

#

I put 0

#

if I wanted the second result I would put 1 ?

#

oh ok

#

Thx a lot

queen hound
#

hey Krypton are you still there ?

#

I keep getting this error

#

TypeError: Cannot read property 'name' of undefined
at C:\Users\Helene\Desktop\Discord Bot\bot.js:31:35
at processTicksAndRejections (node:internal/process/task_queues:96:5)

#

When I do data["location"]["name"]

full nova
#

Please don’t swear

queen hound
#

I sweared ?

#

What did I say ?

queen hound
#

I want to make sure not to say it accidentaly again

full nova
#

You said the sh- word...

queen hound
#

...

full nova
#

which is considered a swear word

queen hound
#

I know depending on the context it can be a swear word, but the way I used it was a curse word

#

Or am I mistaking between the two ?

dense zinc
queen hound
#

I don't think so

queen hound
#

Thats a statement I found

#

Anyway

#

The way I used it and if I remember correctly was : "Ah sh&t..."

violet rivet
dense zinc
#

I think the s word is more of a swear

#

Just refrain from saying it again as we do keep it family friendly

queen hound
#

But doesn't swearing implies that you are using it to attack someone ?

queen hound
#

I just think that the way I used it isn't that bad

violet rivet
#

It was

queen hound
#

For instance, discord is a 13 + platform

violet rivet
queen hound
#

k

#

By curiosity, how would you have formulated the way I felt when I realised my mistake

#

For reference, imagine the way you would have felt after walking on an animal defecation*

violet rivet
#

Defection the frog

#

Idk man seeing a frog defect to the dogs would be weird

queen hound
#

I was missing an a lol

#

I'm talking about the "thing" that comes out of the body when you go to the bathroom

violet rivet
#

I would watch

queen hound
#

Man you do not understand

violet rivet
#

Hahah

queen hound
#

Anyway, it doesn't really matter anymore

#

We should probably keep this chat for programming stuff

violet rivet
#

Ur typing like a college student writing a scientific paper on the angle of the sun

queen hound
#

lol

#

Well I am 16 years old

violet rivet
#

Same here

queen hound
#

And english isn't my main language

violet rivet
#

I speak what I can

queen hound
#

Do you speak french ?

#

spanish ? (I can understand it, altough I don't speak it)

violet rivet
#

Only English

queen hound
#

japanese ? (I'm learning it)

queen hound
violet rivet
#

Yes

queen hound
#

You should try learning another one

#

It can be a nice experience

violet rivet
#

Wait no I can speak some Latin

queen hound
#

I mean...

#

Alright, try it

violet rivet
#

I am rusty been like 6 or 5 years

#

But I have 3 years of Latin books

queen hound
#

You learned latin at 10 years old ?

#

from 7 to 10 ?

violet rivet
#

3rd grade

#

To 5th

#

Idk

queen hound
#

interesting

#

Anyway

violet rivet
#

:)

queen hound
#

Try it I'm curious

#

French is a latin root language

#

So I should be able to understand some of it

violet rivet
#

Porcus igni

queen hound
#

I can assume igni might have something to do with heat maybe ?

violet rivet
#

The pig is on fire

queen hound
#

porcus sounds a lot like porc which is pig meat, so I'm gonna say it means cooked pig

#

OMG

#

Knew it

violet rivet
#

Yes

#

Latin is pretty hard

queen hound
#

Yeah

violet rivet
#

The diagraming and gramma components

#

Grammar

queen hound
#

The fact that it's always the root word makes it that almost every words are different

violet rivet
#

French is also hard

queen hound
#

In most modern language, we use prefix and suffix which often comes from latin or greek

violet rivet
#

Spanish is very easy

queen hound
violet rivet
#

Still

queen hound
# violet rivet Spanish is very easy

In that sense, I would argue you that spanish grammar is really similar to french grammar, but I agree that most word in spanish are easier to learn because they sound the same

#

While most words in french are completly different

violet rivet
#

Spanish in general is pretty simple to learn

queen hound
#

@minor roost Yo, do you think you can still help me with my array problems ?

#

{
"request": {
"type": "City",
"query": "New York, United States of America",
"language": "en",
"unit": "m"
},
"location": {
"name": "New York",
"country": "United States of America",
"region": "New York",
"lat": "40.714",
"lon": "-74.006",
"timezone_id": "America/New_York",
"localtime": "2019-09-07 08:14",
"localtime_epoch": 1567844040,
"utc_offset": "-4.0"
},
"current": {
"observation_time": "12:14 PM",
"temperature": 13,
"weather_code": 113,
"weather_icons": [
"https://assets.weatherstack.com/images/wsymbols01_png_64/wsymbol_0001_sunny.png"
],
"weather_descriptions": [
"Sunny"
],
"wind_speed": 0,
"wind_degree": 349,
"wind_dir": "N",
"pressure": 1010,
"precip": 0,
"humidity": 90,
"cloudcover": 0,
"feelslike": 13,
"uv_index": 4,
"visibility": 16
}

queen hound
#

hmmm

#

I still can't figure it out

#

When I try putting only one of the big tittles like [current] it only writes undefined

#

Anyway, at least for now I made this

queen hound
#

it shows up as undefined

#

One is ["current"]

plush walrus
#

Well can you show the whole part of the code where you are reading the JSON?

queen hound
#

oh lol

#

gimme a sec

plush walrus
#

And it is probably not a JSON error, also show the part where you are creating the embed

queen hound
#

This configuration works

#

Because it works with my $inspire command

#

I just can't get the right data

plush walrus
#

can you just try printing data["current"] to the console

queen hound
#

if I try putting other parameters like [0]["name"] or ["name"] after ["location"] it says cannot find something of something undefined

plush walrus
queen hound
#

could it be the api just glitching ?

plush walrus
#

Probably no

queen hound
#

Then could it be the way I call the api ?

#

Anyway, thx for trying to help, Imma go to sleep. If you find a way to solve this just ping me and I'll try it tomorrow morning

queen hound
#

It is solved

#

It finaly works

dense zinc
#

Yay

lusty pagoda
queen hound
lusty pagoda
#

FRANÇAIS

queen hound
#

I'm Canadian btw, but yes, from quebec so my main language is french

lusty pagoda
#

O

#

I'm Lebanese, been learning French from the day I joined school, so almost 13 years

queen hound
#

lol

#

Gl

lusty pagoda
#

It's painful

queen hound
#

How good are you at it now ?

lusty pagoda
#

Not well honestly
I sometimes am good with translating and stuff but my vocabulary is still not strong enough

rancid trail
#

I heard Canadian French and French French are quite a bit different

#

👀

brisk badge
#

oui

#

je suis etui

queen hound
#

We just use different expression

#

Sometimes a different pronounciation

#

And we use a bit more english words

queen hound
#

btw, saying Canadian french and Quebec french is the same thing, except a lot more people understand when you say Canadian french, because some people don't know what the province of Quebec is or where it is

#

The same way some people think that places like Alska are countries

#

or that it's part of Canada

#

well as long as we don't make ourselves a country, Quebec is still part of Canada

lusty pagoda
#

spam = eggs
print ('spam * 3')

queen hound
#

true

#

Because you put the quotes

#

spam is a variable

#

Which you didn't declare

#

anyway

#

*3 is a mathematic opperator

#

But now everything is a string

queen hound
#

instead of

#

eggseggseggs

lusty pagoda
#
spam = eggs
print (spam * 3)
#

HOW

#

Did you colour that!

queen hound
#

you need to declare var

#

ohh

lusty pagoda
#

calm down I'm still a beginner

#
spam = "eggs"
print (spam * 3)
queen hound
# lusty pagoda HOW

To put colors, after the first 3 ` you need to put the keyword of the language you used

#

For exemple

#
public void myFunction() {

}

Is the keyword Java

plush walrus
#

html Banter

queen hound
plush walrus
lusty pagoda
#

Sheesh sucks

gaunt berry
lusty pagoda
#

.

signal drum
minor roost
#

I hacked nasa using photoshop

brisk badge
brisk badge
minor roost
brisk badge
#

i hacked nasa using only o

dense zinc
#

@minor roost I hacked it using L

hearty bloom
#

UwU

plush walrus
#

Zrušit stahování!!!!!!

rapid wolf
#

But how-

signal drum
#

smh

#

with the ones and zero's

queen hound
signal drum
#

ever heard of... sarcasm?

hearty bloom
#

I-

#

I hate my life lol

#

my PC crashed some time ago

#

and a library I've been working on got lost, because it's the only one that's not on github or gitlab

dense zinc
#

This is why we always commit to GitHub

quiet arrow
#

Backup on pc before you begin working. If it works backup on a cloud. I have all my coding stuff twice on pc and once on my cloud (which is downstairs but still). And sometimes on GitHub

lusty pagoda
#

I think I started to go serious about learning python

#

I'm installing the softwares and pycharm on an old laggy pc

#

And joined 2 new servers for teaching it

#

Feeling good

#

@dense zinc you're a professional with these stuff

#

oops ping sorry ignore it

dense zinc
lusty pagoda
#

Me downloading a pycharm file that is 366 mb with a 300 kbps internet speed

#

IT'S ALMOST DONE

#

YEPEEE

#

Hi mitty

spring tiger
#

I wouldn't suggest using Pycharm if you're only just starting Python 😛 just IDLE that comes with python is enough for learning, and then vscode is a very lightweight compared to pycharm

lusty pagoda
#

I was watching a YouTube video and it said it's used for environnement

#

Can I share the link?

#

https://youtu.be/rfscVS0vtbw
Here. Jump to the timestamp 1:45

This course will give you a full introduction into all of the core concepts in python. Follow along with the videos and you'll be a python programmer in no time!
Want more from Mike? He's starting a coding RPG/Bootcamp - https://simulator.dev/

⭐️ Contents ⭐
⌨️ (0:00) Introduction
⌨️ (1:45) Installing Python & PyCharm
⌨️ (6:40) Setup & Hello Wor...

▶ Play video
spring tiger
#

if you are fine using it then sure, it's quite a large IDE and has many enterprise features so can be a bit overwhelming for a beginner to python
vscode on the other hand is lightweight, and then IDLE itself is perhaps the easiest thing to start messing around with python

lusty pagoda
#

I have no idea tho, as I'm a beginner and people around me can barely understand 1+1=2 I need your advice

#

Uh help

#

Help help

#

What here?!

#

Oh my God this slow internet!

#

Anyone please!?

#

@hearty bloom HELP

queen hound
lusty pagoda
#

The pic above

queen hound
#

I mean.. what is the difficulty

lusty pagoda
#

What to choose

#

It's the 1st time I download something on my pc

queen hound
#

I suggest selecting the desktop shortcut

#

And update path variable

lusty pagoda
#

Only?

queen hound
#

I mean the two others are just preference

lusty pagoda
#

Thanks tho!

#

Merci !!

queen hound
#

De rien

lusty pagoda
#

Okay help again

#

It will take a while to get used to it

#

Sorry if I'm disturbing anyone

#

Now how to create?

#

What to do here?

spring tiger
#

All those settings are fine, just click create

lusty pagoda
#

I thought I have to do something

#

Thanks mitty

#

WAIT I'M IN THE PHOTO

cerulean moss
#

you were?

lusty pagoda
#

Yes.

dense zinc
#

Wow

#

How do you do stuff with that internet 👀 in a nice way

lusty pagoda
#

Awfully

#

Very normal ping

lusty pagoda
queen hound
#

Like the first 30min can be resumed like this :

#

There are 3 types of variable

#

Strings, Numbers and Booleans

#

print() write the stuff between the parantheses in your console

lusty pagoda
#

I barely know English
So it might be a bit difficult for me
I know it seems boring but still insisting to learn it

queen hound
#

You speak french right ?

lusty pagoda
queen hound
#

then why did you say thx in french lol

lusty pagoda
#

Because I do know French and English

#

And since you also understand French I wrote merci

queen hound
#

oh ok

#

oh btw, @lusty pagoda one of the utility of using VsCode, is it's ability to be used for every language super easily

#

For exemple, you could code in python while having a javascript program running in the background

#

While still having most of the fonctionnalities given by specific IDE

lusty pagoda
#

latest work:

#

number = -5
print(sqrt(36))
number = 6
print (sqrt(49))
print (max(3, 8))
print (min(3, 9))
print (floor(2.9))
print (ceil(2.9))
print (sqrt(number))```
#

ik ik it's not a thing

lusty pagoda
#

ikr

#

name = input("Enter your name: ")
print ("hello " + name + "!")
age = input("how old are you?:")
print ("great!")
print ("so, your name is "+ name + " and you're "+ age +"!")

plush walrus
#

^^

gaunt berry
#
print (f"so, your name is {name} and you're {age}!")
lusty pagoda
#

And what's the difference?

lusty pagoda
gaunt berry
#

its easier to understand

lusty pagoda
#

Understand?

#

I can't understand it....

gaunt berry
#

{ replaces "+ and } replaces +"

#

and you can also do more stuff with fstrings but i wont go too deep into that

lusty pagoda
#

Well I'm still at the 1st step

#

Idk anything yet

desert tulip
#

Is there are a website to learn minecraft programming using json? comfyblob

#

I have knowledge on json but components are confusing me like format version and these stuff

#

And is it possible to code minecraft json using mobile?

#

Like is there are an editor that can open mcfunction file?

plush walrus
#

j- json?

spring tiger
#

@plush walrus Yes, bedrock is data driven and uses JSON for creating addons

plush walrus
#

but json is just to save?

#

save data?

#

orr?

spring tiger
#

yes it stores data, which Bedrock then loads and turns it into what you created

plush walrus
#

ohh like that

#

makes sense

hearty bloom
#

eww

spring tiger
#

hence it's called data-driven and not programming

hearty bloom
#

imagine coding in yaml

#

:>

desert tulip
#

Any good editor for mobile to code in :>?

spring tiger
#

That I'm not sure, sorry :(

desert tulip
#

I just want an editor that can use mcfunction

spring tiger
#

Any kind of text editor should be able to read those

#

Since thats all they are 😛

desert tulip
#

Lmao .mcfunction are so easy

#

just create a file with the function name u want then add .mcfunction and put on the file some minecraft cmds and ur done umwut

spring tiger
#

ya. They basically allow you to not use command blocks :)

desert tulip
#

Found this comfyblob

desert tulip
#

I want to create a dragon mod comfyblob

spring tiger
desert tulip
#

I read on the wiki that there is a web browser and its good with mobile

#

Umm wait I think prisama3d will be good for this mission

#

Thanks for helping

lusty pagoda
#

You can never do blockbench using a phone, that would be 0.9 impossible

spring tiger
#

I'm a bit confused on what you mean

#

Blockbench would very much be possible on phone, every keyboard control is accessible via some button in some way

lusty pagoda
#

And what if I don't have a keyboard nor a mouse?

#

🙂

gaunt berry
#

mit just said that you dont need a kb

#

because there is a button for everything

gaunt berry
desert tulip
#

can u help @spring tiger

#

I tried creating a test addon but its not showing on mc?

spring tiger
#

Have you clicked the pencil (edit) icon the world in-game, and checked if the pack appears in behaviour packs "available" section?

desert tulip
#

It does not appear

#

I didnt put a pack icon btw

spring tiger
#

Pack icons aren't needed, the manifest looks correct so not sure sorry.
I've never made packs on mobile, my only thought is that the game is still in the background so doesn't reload packs

desert tulip
#

Ik its not needed

#

Shall I try make it .mcaddon?

#

Ima try that

#

I'm very confused now sadcat

spring tiger
#

Hmm, inside your zip does it have behavior_pack and resource_pack?
it might be easier to zip the contents of behavior_pack (and call it bp.mcpack) and zip the contents of the resource pack (and call it rp.mcpack), and try importing it that way

desert tulip
#

no I just putted the add-on folder on a zip file then renamed it to .mcaddon

#

this is the first tike that .mcaddon fails with me sadcat

spring tiger
#

ah I don't think it works that way, I think you just zip the behaviour_pack and resource_pack, and then rename it to .mcaddon

my_addon.mcaddon
    behavior_pack
        ...
        manifest.json
    resource_pack
        ...
        manifest.json
desert tulip
#

Wait wha-

#

There is no files inside the .zip file

spring tiger
#

🤔

desert tulip
#

My files sadcat

spring tiger
#

Oh that doesn't look right.
your packs should be in this tree:

com.mojang
    behaviour_packs
        <your_pack_name>
            entities
            loot_tables
            ...
            manifest.json
#

think you just need to move the files in "Test addon" up one directory and should be good to go

desert tulip
#

I just want to make custom recipes

#

it was

com.mojang
behaviour_packs
<my pack>
recipes
manfiest.json
spring tiger
#

yeah that's right, but from your screenshot it looks like you've got it as:

com.mojang
  behavior_packs
    test addon
      Test addon
        ...
desert tulip
#

umm nope

#

there was 2 files and 1 folder on the test addon folder

#

I rewrote the manfiest.json beacause I lost it

spring tiger
#

oh

#

oh I see the issue now

desert tulip
#

It was like this (manfiest.json is not on recipes folder)

spring tiger
#

it's manifest not manfiest 😛

desert tulip
spring tiger
#

😂

desert tulip
#

thanks comfyblob

queen hound
desert tulip
queen hound
#

I'm just messing with ya

#

My code breaks all the time because of spelling mistakes

#

Last time my code didn't work because I was putting ? instead of & in a url

queen hound
#

lol

#

How would you make it

#

Minecraft's basic puny 2 GB of RAM isn't enough to run an AI

#

So you would need to code in plugins idea

dense zinc
#

I mean

#

Not a bad idea

#

Just smash 2 words from the dictionary together

queen hound
#

draw hiccup

#

rung variant

#

broccoli angle

#

governor product

#

portrait edition

#

constituency crouch

#

Technosword, if that helps you I can keep going

dense zinc
queen hound
#

extraterrestrial earthwax

desert tulip
#

Lol idk why I made "saddle" umwut

#

ok bye ima go create my dragon mode ukparrot

desert tulip
#

May someone help me in something?

#

I want the resource pack to be installed when the behaviour pack is insatlled

#

installed*

#

Do I use modules?

#

oh got it comfyblob

desert tulip
#

Why is it 0.00MB?

spring tiger
#

Probably the game doesn't register the size if its very small

desert tulip
#

I will try again

golden cove
#

Honestly the best plug-in would be a plug-in that detects spelling errors

#

I can’t even tell you how long I look at my programs scratching my head

gaunt berry
#

fun fact: that exists

queen hound
#

Thats kinda the point of the entire VsCode extension library

#

Why ?

flint carbon
#

I'm eager to learn scripting. I'm a map maker looking to expand my knowledge and need a teacher that is willing donate at least an hour of their time every-so-often.

queen hound
#

I know some are a bit annoying, but you get quickly used to it

queen hound
#

Thats a plugin for inteliJ I assume ?

dense zinc
queen hound
#

I don't use IntelliJ

dense zinc
#

Hi 👋

queen hound
#

I prefer eclipse, it makes it easier to export and import external files

lavish lava
tawdry sorrel
#

Is this just for programing things in general or just stuff for the server?

hearty bloom
#

Anyone with experience with Kubernates and some time to help me? (doesn't need to be now, I just wanna learn it xd)
also a help with setting up the actual Minecraft kubernetes cluster would be awesome

#

(it doesn't need to be direct help, some tutorials are fine. but also explaining something I didn't understand or answering questions would be amazing :P

tawdry sorrel
#

I can try to help I don't usually use kubernates but I can try to help you out

#

What is it that you need help with @hearty bloom ?

#

Ping me when you respond

hearty bloom
hearty bloom
queen hound
plush walrus
tawdry sorrel
#

I think you can

tawdry sorrel
#

Ping me when I can help u

queen hound
#

Missclick on nitro PLus lol ?

plush walrus
queen hound
#

hmmm

#

Well

#

It probably shouldn't be that hard to just convert it to javascript

plush walrus
#

ye but

#

I suck with js monkey_look

queen hound
#

The only really big difference between the two is that Python use indentation while Javascript use separators

#

For example, the channel description is in javascript

plush walrus
#

ye I know

queen hound
#
camezonda = new Camezonda();
//Always true
while (camezonda.thinkHeIsDevelopper()) {
camezonda.kick();
}
brisk trout
#

I can confirm that Cam is actually a 10/10 pro developer

lavish lava
brisk trout
dense zinc
#

You are right

#

@silver imp this is my formal apology

brisk trout
#

and youn is cracked

hearty bloom
# tawdry sorrel Ping me when I can help u

thanks :)
well first of, I got the basic understanding of what nodes, pods, clusters,... are. do you have any tutorials you would recommend to continue?
and should I choose EKS, GKE or AKS?

#

(amazon, google, azure)

#

or like make custom on my vps

tawdry sorrel
#

Google is good I've not used the two others but a custom could be goode depending on the quality of it but I suggest using google

#

I do have a tutorial I can send you

hearty bloom
#

thanks :)

#

is google paid?

tawdry sorrel
#

Last I checked it wasn't

#

Might have changed thou

hearty bloom
#

epic, thanks :)

tawdry sorrel
#

Np have a nice day

hearty bloom
#

you too

gaunt berry
#

@plush walrus ```js
const { exec } = require("child_process");

exec("python -c 'import db_actions; db_actions.class.function()'", (error, stdout, stderr) => {
if (error) {
console.log(error: ${error.message});
return;
}
if (stderr) {
console.log(stderr: ${stderr});
return;
}
console.log(stdout: ${stdout});
});

source: https://stackoverflow.com/questions/3987041/run-function-from-the-command-line https://stackabuse.com/executing-shell-commands-with-node-js
plush walrus
gaunt berry
#

i made typo

#

read again, this should theoretically work

#

i havent tested it

plush walrus
#

I'll try it later, thanks

ancient fractal
# hearty bloom best would be understanding them so I can use them for my projects, but if you j...

can i ask why you wanna use kubernetes for a minecraft server? its probably one of the most inefficient ways of setting up a mc server lmao, but it is possible and this is a good way to do it if you havent figured it out already https://opensource.com/article/20/10/kubernetes-minecraft-ansible

#

but i use kubernetes + docker for work (albeit im still learning it myself)

hearty bloom
#

and I just think that kubernetes will save us time

#

also I wanna learn it coz it's quite popular and I already know docker

ancient fractal
#

thats fair, if you've got more stuff adding into it its fine

hearty bloom
#

:)

ancient fractal
#

but just a plain vanilla mc server its kinda useless

hearty bloom
#

oh yea

#

it's a bungee

#

with 6 paper servers

#

xd

ancient fractal
#

lmao

#

but yeah its industry standard for cloud stuff so is useful to know especially if thats something you ever wanna go into

hearty bloom
#

yea

plush walrus
#

is this the correct way to use and call js functions?

function send_data(){
  const result = "result"
  return result
}

console.log(send_data())
queen hound
#

well

plush walrus
#

ye but I don't rly need them

queen hound
#

I think you need arguments

#

true

#

but

#

but yeah that works

#

And what you could do is this :

#
function send_data(result){
  return result
}

console.log(send_data(12))
#

And you would get 12 in the console

#

or

#
function send_data(firstNumber, secondNumber, thirdNumber){
  return firstNumber+secondNumber*thirdNumber
}

console.log(send_data(2, 4, 8))
#

etc

queen hound
plush walrus
#

ye I know how arguments and that work

#

but

queen hound
#

oh w8

#

lemme try

plush walrus
#

I had this function which just did not work for me

queen hound
#

I think the problem is how you called the function

plush walrus
#

res.send(api_data());

queen hound
#

I think you need to assign the function to a variable first

plush walrus
#

ohh

queen hound
#

var res = fun(12, 30);
function fun(x, y) {
return x * y;
}
console.log(res);

plush walrus
#

ye but now that I did I get undefined

queen hound
#

hmmmm

plush walrus
#

even though I return something from the function

queen hound
plush walrus
#

ye then I just get function_name is not defined

queen hound
#

app is not defined

#

Thats the error I get

plush walrus
#

ohh cuz it's an express app

#

this is just a part

queen hound
#

ye I know

#

so hmmmm

#

oh w8

#

lemme try something again

#

@plush walrus I did this :

plush walrus
#

hmmm

queen hound
#

or the exec('python -c "import db_actions; print(db_actions.Database.read_api())"', (error, stdout, stderr) => {

plush walrus
#

nah that works

queen hound
#

the rest is good

#

You sure ?

#

It seems really strange

plush walrus
#

ye cuz when I do console.log(api_data) it's fine

queen hound
#

'python -c "import db_actions; print(db_actions.Database.read_api())"'

#

hmmm

#

weird

#

alright

#

Well good luck, this goes over my puny knowledge of programmation

#

@plush walrus error: Command failed: python -c 'import db_actions; db_actions.class.function()'
File "<string>", line 1
'import
^
SyntaxError: EOL while scanning string literal

plush walrus
#

'python -c "import db_actions; print(db_actions.Database.read_api())"'

#

use that

queen hound
#

Thats what I got when I tried the code of the other person

plush walrus
#

ye cuz

#

it was incorrect

queen hound
#

node javascriptTest.js
error: Command failed: python -c "import db_actions; print(db_actions.Database.read_api())"
Traceback (most recent call last):
File "<string>", line 1, in <module>
ModuleNotFoundError: No module named 'db_actions'

queen hound
#

Then it might be the python part of your code that doesn't work, or the bridge between the two

plush walrus
#

like I said

#

that's not the error

#

the error is that the function is not defined

sharp crystal
queen hound
#

Proving the fonctional part of his code

#

He deleted some of his message

#

Thats why the conversation seems heratic

sharp crystal
#

oooh

#

but where are we talking about now? ;p

queen hound
#

lopl

#

Well

#

He says his code returns that his function isn't defined

sharp crystal
#

oooh

queen hound
#

I tried the part he gave

#

Couldn't find the error

sharp crystal
#

@plush walrus bbg could you explain it again?

#

I'll hop on to help you 1 sec

plush walrus
#

ohyes

sharp crystal
#

oki im on

plush walrus
#

I have an express app and I want to call a function to get the page content

app.get('/', (req, res) => {
// call function here
  res.send(function_results)
```But when I try calling the function it returns undefined
sharp crystal
#

okay

#

do youve got the function results code?

plush walrus
#

yes

sharp crystal
#

send it please

plush walrus
#
function get_api(){
    exec('python -c "import db_actions; print(db_actions.Database.read_api())"', (error, stdout, stderr) => {
        const api_data_raw = stdout.split("'");

        const total_messages = api_data_raw[1];
        const total_guilds = api_data_raw[3];

        const api_data = {
            total_messages,
            total_guilds
        };

        return api_data;
    });
}```
sharp crystal
#

okay

#

so

#

lemme take a look

plush walrus
#

I think the function works fine

#

I can console.log pretty much anything and it works

sharp crystal
#

okay

#

Ima write smth for you

#
app.get('/', (req, res) => {

    // Import
    const func = require('file');
    
    // Function
    let result = func();
    
    // Sends result to page
    res.send(result);

});```
#

the func returns the result

plush walrus
#

why do I need to import it?

#

it's in the same file

sharp crystal
#

oooh

#

i didnt know that

plush walrus
#

oh ye

#

it is

sharp crystal
#

so just do let result = func() then i guess

plush walrus
#

ye but

#

it returns undefined

sharp crystal
#

and if you try it with a promise?

plush walrus
#

how to do that?

sharp crystal
#

have you tried to log the function tho?

plush walrus
#

ye

#

still undefined

sharp crystal
#

mhm

sharp crystal
plush walrus
#
const express = require("express");
const {exec} = require("child_process");

const app = express();

const port = 3000;
app.listen(port, () => console.log(`Server running on port ${port}`));

function get_api(){
    exec('python -c "import db_actions; print(db_actions.Database.read_api())"', (error, stdout, stderr) => {
        const api_data_raw = stdout.split("'");

        const total_messages = api_data_raw[1];
        const total_guilds = api_data_raw[3];

        const api_data = {
            total_messages,
            total_guilds
        };

        return api_data;
    });
}

console.log("sheesh");
console.log(get_api());

app.get('/', (req, res) => {
    const api_data = get_api();
    console.log(api_data);
    res.send(api_data);
});```
#

here u go

sharp crystal
#

its late im sorry

#

is there something in the const api_data?

plush walrus
#

ye

sharp crystal
#

log api_data

plush walrus
#

undefined

#

hmmm

sharp crystal
#

there is your problem

plush walrus
#

yee

#

im confused

#

it worked before

#

I swear

#

ye now it works

sharp crystal
#

what did you change?

plush walrus
#

I just

#

console.log(total messages) and total guilds

#

then commented it out

#

and it works

#

im so confused

sharp crystal
#

xd gj

#

maybe you just didnt save or smth

plush walrus
#

but the function is still undefined

sharp crystal
#

huh

#

ima send you something in dms then ig-

plush walrus
#

alr

sharp crystal
#

fixed^

minor roost
#

cough

lavish lava
#

is this is a paid program

tawdry sorrel
#

What's that?

#

It leads me to my 3d printing software

#

/the one I use

minor roost
unborn wigeon
minor roost
#

hmmm

hearty bloom
sour badger
#

does anyone have an f5 button resource pack? lol

tawdry sorrel
#

I just recently finished learning html does anyone happen to know a windows application that I'm able to program in html?

plush walrus
#

vs code

plush walrus
brisk trout
#

for such an awful joke

tawdry sorrel
#

What I wanted to expand my knowledge of programming

brisk trout
lusty pagoda
#

@brisk trout :(

#

Where's... Utf

#

:((((

brisk trout
#

?

lusty pagoda
#

Why no dev :(

#

Resigned?

brisk trout
#

Yeah I've got a lot of IRL stuff going on that I don't really want to go into but need to sort myself out 🙂

lusty pagoda
#

O good luck

#

I hope you get back

#

Very soon

brisk trout
#

Thanks man ❤️

sour badger
#

can someone make an f5 button lol I can't wait anymoreee
;(

languid flame
#

Wow

#

@brisk trout plus only, quite impressive

brisk trout
#

I’m on smoke

golden cove
#

??????????????????????????

#

isnt this a programming channel

gaunt berry
#

ikr pls ban @languid flame he is misusing channels!!!11!1!1!1!11!1!!1!1!11

gentle patio
#

Please get banned @languid flame

languid flame
dense zinc
languid flame
#

Ah

gaunt berry
#

they use the vanilla permission system banterbanterbanterbanterbanterbanterbanterbanterbanterbanter

dense zinc
#

Yes

pastel hearth
#

Anyone know PHP/pmmp plugin development

hearty bloom
#

both php5 and php7-8

sharp crystal
pastel hearth
quiet marlin
pastel hearth
#

I'm wanna make a cosmetic plugin with block bench models

#

But idk how and where to start 🥲

pastel hearth
#

Everyone stop talking....

tawdry sorrel
#

No

dense zinc
pastel hearth
#

Bedrock

wheat relic
#

How to edit KB in minecraft server files?

#

Like where is it

dense zinc
dense zinc
pastel hearth
#

Im talking about PHP

wheat relic
pastel hearth
#

...

dense zinc
dense zinc
wheat relic
#

I thought someone said it was on Vanilla lmao

dense zinc
wheat relic
#

yEs

#

bUt WherE

minor roost
#

How do I create a menu using DeluxeMenus?

sullen jacinth
tawdry sorrel
hazy escarp
#

no

gaunt berry
#

ig

sweet barn
# wheat relic bUt WherE

It’s inside of the NMS entity classes, but its location probably varies depending on which version you’re looking at

karmic oxide
#

can someone help me

#

hello

gaunt berry
karmic oxide
#

ok

#

no one can dounlod my pack

#

0.00/0.00

sour badger
#

someone pls make an f5 button resource pack

gaunt berry
#

just press f5

sour badger
#

for mcpe (mobile players)

#

mobile ft non split has so many benifits but no one has made a resource pack for it

#

like u can literally diagonal god bridge!

#

technically faster cause u can sprint while doing it

gaunt berry
#

why not make one urself then

sour badger
#

idk how to and even if I knew making it on a 2 gb ram tab isn't gonna be fun ;(

spice plaza
#

Considering how you've asked 3 times here with no one offering to make it, here might not be the place 👀

pastel hearth
#

Lol ikr

sour badger
#

I wish someone would make it tho

#

like people have added f3! and F1 too

#

I feel it would be easy to make f5 compared to making a full debug screen idk if it's not maybe I'm just dumb lol

spice plaza
#

¯_(ツ)_/¯

sour badger
#

u making it?

spice plaza
#

F1 would be much easier to do than all of them

#

no.

sour badger
#

F1 and f5 are similar

#

do hides controls and f5 changes perspective

#

I tried to make the F1 f5 but I just can't access the code on this dumb tablet

#

@spice plaza

#

also dont suggest changing f5 control to F1 it does not work

#

wish I had a pc welp

#

😭😭😭

spice plaza
#

¯_(ツ)_/¯

steep crest
#

Hello

#

How can I create a .jar file?

gaunt berry
#

type echo im a jar file > jarfile.jar into cmd

steep crest
#

Thanks

gaunt berry
#

np

hearty bloom
#

poor guy lol

hearty bloom
#

but it usually requires some build library (gradle, maven, ant, ...)

steep crest
hearty bloom
hearty bloom
#

(do you have a pom.xml file or build.gradle?)

tawdry sorrel
#

Lmao my friend just Said that there a web developer and I asked what do you ur they said Wix lmaoooo