#💻︱programming

1 messages · Page 30 of 1

honest heath
#

i just spent two hours trying to make this 8 appear:

pastel knoll
gentle patio
honest heath
#

if cubecraft are spending two hours trying to insert a single number in an already ordered list

#

i would be concerned

gentle patio
#

XD

shadow garnet
gentle patio
#

lmao

quiet arrow
sudden mural
#

Im coding bot, what do you guys do?

kind osprey
gaunt berry
#

or an app ^^

gleaming zenith
#

What’s the best learning „course“ or something alike to learn Java?

quiet arrow
#

Yeah indeed, I was on phone so just searched “python online”

#

programiz

gaunt berry
#

when git breaks

#

gotta love it

gaunt berry
#

cube bedrock

#

these thingies

cinder mason
gaunt berry
#

ad revenue bigbrain

#

wait that doesnt exist on github

quasi oasis
gaunt berry
plush walrus
cinder mason
#

cuz i want that

#

look at this awesome github's

#

good people

gaunt berry
#

how mine

#

probably awful tbh

plush walrus
#

yes because it is commonly used 😉

gaunt berry
#

xd

#

ty

plush walrus
#

since when is the official documentation bad tutorial 😳

#

good point haha

cinder mason
#

discord bot's trash

sharp crystal
#

You have recent dc bots on ur github 😂

cinder mason
#

😂

gaunt berry
#

github actions be going brr

cinder mason
#

😂

gaunt berry
#

@lusty pagoda

warm oriole
#

me irl

lusty pagoda
#

🙂

plush walrus
#

haha

dense zinc
#

Make an API

#

but don't document it

arctic narwhal
#

thats what toby does

#

have you seen toby document anything he does?

#

exactly, no, cuz he doesnt banter

gaunt berry
#

who needs a documentation when you can just look at the source banterbanterbanterbanterbanterbanterbanterbanterbanterbanterbanterbanterbanterbanterbanterbanterbanterbanterbanterbanter

rancid trail
plush walrus
#

who needs API when you can just-

#

not use it

gaunt berry
#

just write a script that sshs into the server and reads microsoft word files

#

servermanager explained in 2 seconds

#

(servermanager is a gui for the bedrock dedicated server software i made for hazard)

#

i originally wanted to make an api for that but why do that if ssh works just fine, right?

dense zinc
#

This was hours of work

sharp crystal
minor roost
#

Im programming my own discord mod.

#

its going not that bad 🙂

#

i made it so you can have a nice background and more colours everywhere]

gaunt berry
#

ok cool thats against tos

#

so its nothing to discuss here

wild shadow
#

awaiting?

#

What's the alternative to await? asyncio.create_task()?

spring tiger
#

await waits for the called function to finish
asyncio.create_task allows a function to run concurrently (at the same time as something else)

wild shadow
spring tiger
#

I guess, you have to await tasks (wait for them to finish)

gaunt berry
#

is there any cheap and good vps provider in america/france that i can use to host a vpn

#

something like this in similar price range

#

oh wait they also have servers in america

#

but is there something similar in france(or any eurpean country really)

plush walrus
#

well I do not think you can really go below 4€/mo

gaunt berry
#

it doesnt need to go below

#

shouldnt go above 10€/month tho

#

just need something to protect me against china 2.0

#

aka germany trying to spy on everyone using a trojan

#

and with my current vpn i get decently high ping

#

and its also in germany and i dont want a trojan the vpn

#

idk if thats a possibilty but you can never know

#

yes

#

is that much?

#

probably not but its plenty for my use cases

#

xd what a scam

#

ye

#

contabo

#

dont run a vpn on it tho

#

good

#

also wouldnt recommend doing anything with sensible data on em since they will probably get infected

#

why is every vpn so expensive

plush walrus
#

is it though?

gaunt berry
#

i mean

#

paying 7€ a month for 2gb ram and 2 cores

plush walrus
#

4€/mo? that's cheaper than Spotify

gaunt berry
#

not the yellow from the egg

#

its even limited to 1tb/month

plush walrus
#

I mean, don't really see the point of making your own VPN server if you ask me

gaunt berry
#

what the actual frick

plush walrus
#

I mean ye, privacy but still

#

agree

gaunt berry
#

and tbh i dont trust any vpn provider now

plush walrus
#

and well do you trust the VPS provider?

gaunt berry
#

as long as its not in germany yes

plush walrus
#

use some non-german vpn provider

gaunt berry
#

might still be manipulated by the state tho

plush walrus
#

just as the vps can be

gaunt berry
#

if its outside of germany theres nothing the government can do

plush walrus
gaunt berry
#

they dont monitor the traffic tho

plush walrus
#

they can

gaunt berry
#

they install a trojan on ur device

plush walrus
#

I am talking about the VPS

#

you can not know

gaunt berry
#

they have their methods

#

and i know how

#

they fake updates for apps and if you install that "update" ur device is infected

#

atleast thats what i read

plush walrus
#

okay so imo this is a bit dumb, if you do not trust any VPN provider, making your own VPN server sounds cool but then you are just relying on the trust of the VPS provider so it does not really fix the issue of privacy

gaunt berry
#

i do trust vpn providers but you never know

#

i dont

#

nothing tbh

#

companies do everything for money

#

nor a phone

#

dont have to if i have a vpn do i

arctic narwhal
#

The law hasn't even passed, calm down

gaunt berry
#

yes but i have to prepare yk

arctic narwhal
#

it won't pass

gaunt berry
#

but ye ur right

#

i should just wait and see how it evolves

arctic narwhal
#

what, moving out?

#

yeah

#

I will

gaunt berry
#

i will too

#

i wanted to move out anyway so like

#

a few more years

#

and im outta here

opal shadow
gaunt berry
#

im annoyed by how scummy every company here in germany is

#

well almost every company

#

but most of them are

dense zinc
#

I just use a free one

#

For when I do sketchy things

gaunt berry
#

aka make a documentation

gaunt berry
#

most vpns are blocked on mc servers

#

but private ones arent

plush walrus
#

good point

#

but

#

why do you need to hide your IP for an MC server?

gaunt berry
#

yes that was actually the reason i wanted to make my own in the first place

#

no

#

still the germany thing but nyvil is right

#

i should just wait and see

#

tbh i wouldnt be surprised if it passes

#

the government here is full of idiots but thats about all i can say without getting banned here lol

dense zinc
plush walrus
#

okay tell me

dense zinc
#

Some servers sell ip’s

plush walrus
#

Most serious servers should not and the not popular servers do not have good VPN blockers

gaunt berry
#

not like you cant really do anything with those anyway but ok

#

i love how they called it "total stimmen" instead of "stimmen insgesamt"

#

sounds kinda like a quite well known quote 👀

#

but ye gotta follow the rules

#

wait u german? xd

dense zinc
#

Yes

gaunt berry
#

did i ask you smh ||staff feedback thread moment||

desert mulch
#

Is that every variable "i" or every "i" in the file

wild shadow
# spring tiger I guess, you have to await tasks (wait for them to finish)
import asyncio
async def spam():
  for i in range(10):
    print(i)
    await asyncio.sleep(0.25)
async def eggs():
  for i in range(10, 20):
    print(i)
    await asyncio.sleep(0.5)
async def main():
  t1 = asyncio.create_task(spam())
  t2 = asyncio.create_task(eggs())
  await asyncio.sleep(10)
if __name__ == '__main__':
  asyncio.run(main())```
HA HA HA
#

threading but with extra steps

dense zinc
#

@arctic narwhal is making me switch to MongoDB

#

I was pleasantly surprised when he showed me example code

gentle patio
minor roost
#

Minecraft sucks

#

I made it

#

It sucks

warm oriole
#

dont play it then

#

also this is not a spam channel

spring tiger
opal shadow
sick shadow
severe condor
zinc steppe
gaunt berry
copper lance
#

hello

soft socket
#

Does anyone know why my discord is zoomed in

#

How do u put it bigger

spring tiger
#

Settings (bottom left) -> Appearance -> Zoom Level

dense zinc
#

Control + or - works for me too

soft socket
soft socket
gentle patio
#

Emagine using the app version :V

dense zinc
#

Will tr

gaunt berry
#

have you tried getting good

gentle patio
#

i agree

spice plaza
dense zinc
#

I’ve switched to the dark side

languid flame
dark bone
#

Ok so idk if cubecraft is monitoring these chats but i was temp banned for automatic cheat detection and i only have an auto clicker that I use for my survival afk fish farm and i accidently left it on and when I went to the PvP server it banned for hacking and im not sure how to get unbanned do please help

cerulean moss
#

how tf you accidentally leave an auto clicker on??

#

also your in the wrong chat (:

minor roost
#

Print("I am a hackerman")

spice plaza
#

hacks.setEnabled(true);

gaunt berry
#

xdddd windows update broke cubeiconreverter

#

thank you microsoft, very cool

#

cant even look at my code anymore

drowsy terrace
spice plaza
#

clearly a direct attack from microsoft 😤

#

they liked the old icons

gaunt berry
#

yes

#

tbh i have no idea why the error is cause since it seems to work fine in the c# interactive console

#

System.UnauthorizedAccessException: Access to the path '7e87c82b79aa575f28cc6d7976a6988d0ee65b' is denied.

#

yes that is definetly the path that i i gave you

rancid trail
#

Nvm xd

minor roost
#

Maybe you say "d:" and you should"D:"

#

XD

rancid trail
#

what no

#

I used a comma in my string selection instead of a colon ._.

#

very awkward

indigo nacelle
#

‘Test’

#

Hmm

#

test

sick shadow
torpid surge
#

Anyone knows arduino ?

#

Arduino programs

torpid crypt
sharp crystal
torpid surge
#

@torpid crypt cuz its typed on a notebook

#

:/

brisk badge
hearty bloom
torpid crypt
sharp crystal
#

i use IntelliJ ultimate for java coding ;o

brisk badge
#

idk never tried others tbh

#

eclipse has everything i need

torpid crypt
#

Eclipse isn't bad, it's good from anywhere between beginner to advanced, IntelliJ simply has more things which makes your life easier when doing certain things or has more options on how you wany your project setup and other integrations that eclipse doesn't have

next zinc
#

print("egg")

minor roost
#

;

hearty bloom
#

it's a faster IDE but with less features. it's also free, so imo the best free choice for php, ...
but for Java I would always chose Idea.
(and since I have Jetbrains student pack, I use only Jetbrains products)

sharp crystal
#

oo

#

starts using word

torpid crypt
sharp crystal
#

I'm working on my own ide too, its terrible but im trying

#

True

#

The autocorrection is amazing too

#

🥵

brisk badge
#

System.out.println("Egg");

brisk badge
#

no

spring tiger
#

@minor roost Please don't advertise Disord servers

earnest harbor
#

Can anyone teach me?

minor roost
#

System.out.println("I am a hackerman!");

tawny kelp
#

6

gaunt berry
#

yes :c

hearty bloom
minor roost
hearty bloom
#

lol

#

Tesla AI xd

minor roost
#

@gaunt berry

gaunt berry
#

n

#

o

minor roost
#

yes

brisk badge
#

hurts

hearty bloom
#

lol

#

yes

#

true

sharp crystal
#

they would be legends if they used .then

brisk badge
#

if (drone.getStatus() == DroneStatusses.COLLIDING)
dontCollidePlsIHaveAFamily();

ebon flume
#

is that..

#

bash

#

please no

#

and everybody knows the best way to write it is just

#
while(true){
  drone.setColliding(false);
}
#

constant blocking loop

#

it blocks everything so the drone can never hope to collide

sharp crystal
brisk badge
ebon flume
#

nah, the key is to run a thread blocking loop in a single threaded context

#

that way the drone will never even lift off the ground

#

preventing 100% of all collisions

#

unless a human picked them both up and crashed them together

dense zinc
#

Multithreading is cool

wild shadow
ebon flume
#

lmao

tight trench
#

Hello, if l want to learn programming, in which language do I learn, can anyone give me advice?

dense zinc
tight trench
dense zinc
#

For Cyber security I believe you should learn C++ or phython, not too sure tho

ebon flume
#

with cyber security, you can use basically anything

#

depending on what area of cyber security you want to go into

#

if you want to go into offsec, prolly python for scripting

tight trench
sharp crystal
tight trench
#

Java or Java script?

tight trench
spice plaza
#

Java

tight trench
#

Oh ok

#

I wonder how many days and months to learn

plush walrus
#

a lot

vernal swan
#

int main(){
printf("Why is there a programming channel in here?");
Return 0;
}

spring tiger
#
def reason():
  return "To talk about programming!"

print(reason())
>>> "To talk about programming!"
vernal swan
#

printf("I see, what language is that???\n");
fgets(answer, 1024, STDIN);

spring tiger
#
"Python"
vernal swan
#

printf("Oh i thought it was Lua");

jaunty widget
#

I wanna get into programming, what language is worth learning?

#

I have absolutely 0 experience

plush walrus
#

Henlo

#

does anyone know if it is possible to run Minecraft Java from command line (.cmd file)

spring tiger
#

@jaunty widget Python is a good starter language :)

jaunty widget
spring tiger
plush walrus
#

ye I-

#

have that

spring tiger
#

main jars are located in .minecraft/versions/<version>/<version>.jar

plush walrus
#

ohhh

#

alr ty

spring tiger
#

as for the login thing i'm not sure sorry :(

plush walrus
#

no problem, and I can just open the launcher and use pyautogui :>

spring tiger
jaunty widget
spring tiger
jaunty widget
#

In what context would you use these things?

#

like the str and int

plush walrus
#

well

#
print("1" + "1") #11

print(1 + 1) #2
#

These 2 are different, in the first example you are adding together 2 strings (text) in the 2nd one, you are adding up 2 integers (numbers)

#

And you work with data types a lot, for example you can create a list with more strings inside and store them

ebon flume
#

any jvm language tbh

#

for minecraft, java is prolly the best due to its learning resources

#

but you can use kotlin, scala, even clojure

tight trench
#

Ok thx

ebon flume
#

oh they're asking about CC

#

i thought they wanted minecraft in general

jaunty widget
#

Why doesn't this work?

#

I want the height the block starts at to be HEIGHT-PLAYER_SIZE

#

Yeah its python

#

So its always at the bottom

spring tiger
#

you need to move Player_size up 1 line

jaunty widget
#

Because player_pos doesn't know what Player_size is right

#

Ah i get it

#

Thanks

#

So kinda like telling someone to get something out of the fridge without even telling what the fridge is. Ik its a weird comparison but im trying to understand lol

#

Alr thanks

#

Makes sense

gaunt berry
#

telling someone to drink without giving them water

jaunty widget
#

Yeah

#

It works now

#

Thanks

#

Are variables case sensitive in python?

#

So im assuming its easier to have either all capital letters or none right

ebon flume
#

python is normally snake casing

#

variables_are_like_this

#
my_var = 12
#

lower case with underscores

jaunty widget
#

The format thingy

ebon flume
#
my_var = 12
#

i.e. js

#

cpp

#

java

#

bf?

#

gotcha lmao

tight trench
#

You mean I need a period of development and knowledge to join

#

So l start learn Java now the first that ok?

#

Yes lneed long time for this

#

Yes

#

Yes thx you

#

But it is very hard lol

#

In fact, I learn through YouTube

#

Does this site teach me the basics?

#

Oh cool

#

When did you start learning?

jaunty widget
#

What does this mean?

#

I don't understand anything about the errors

#

Python btw

tight trench
#

Oh my God that long time!!!

spring tiger
#

@jaunty widget A tuple can't have values added to it. You can only read from it

tight trench
#

I want to learn all languages ​​how long does it take?

jaunty widget
#

So i should change the ( to [?

ebon flume
#

good luck learning brainfuck

#

you dont need to

#

just learn like

#

python java go

#

js

tight trench
#

Lol ok

#

Ithink Java and python and C++ and cybersecurity

#

I like learn cybersecurity

#

Are he know cybersecurity?

#

I hope me too learn it

jaunty widget
#

So right now i got this block spawning randomly anywhere from 0 to 900 but i want it to choose from either 0, 100, 200, etc. how would i do that?

#

Yes

#

Thanks

tight trench
#

15

#

Yeah

#

I hope to be Programmer

#

I will dedicate hours to learn;)

#

Ok

#

So l apply to Developer if l perfect at java

#

Ok

#

Ok

#

I don't know how I will find out about them, but I will look for them

brisk badge
#

id say you should learn the languages you like

#

no one cares about ur future jobs

#

and if you dont have fun in programming, you will never improv e

plush walrus
#

ohhh

#

thanks

jaunty widget
#

What am i doing wrong? The video i am watching does the exact same thing with the idx thing and for him it works.

sullen jacinth
#

You forgot to add “:” in line 41

#

@jaunty widget ^

jaunty widget
sullen jacinth
#

At the end of the for loop

#

Can’t send u a screenie now me on mobile

jaunty widget
sullen jacinth
#

After “enemy_list”

ebon flume
#

line 40 should be

jaunty widget
#

It still gives the error

ebon flume
#
for idx, enemy_pos in enumerate(enemy_list):
#

you forgot your brackets

sullen jacinth
jaunty widget
#

What am i doing wrong?

#

Python btw

spring tiger
#

You're missing a ] bracket on the previous line (line 18)

jaunty widget
spring tiger
#

enemy_pos = [...]

#

You're missing the close bracket on the end of that line

jaunty widget
#

it worked but now its saying this

spice plaza
#

show above line 17

jaunty widget
spice plaza
#

oh wait nvm I'm blind

#

is that a * after the comma in the randint

jaunty widget
#

Yeah

#

shift + 8 for me

spring tiger
#

randint only takes 2 arguments. You're passing 4

gaunt berry
#

what is the 0 supposed to do

spring tiger
#

random.randint(a, b)
Picks a random integer between a and b

gaunt berry
#

after the * 100

jaunty widget
gaunt berry
#

xd

jaunty widget
#

This is what its like in his github

#

But i want it to be either 0, 100, 200, etc.

#

till 900

gaunt berry
#
enemy_pos = [random.randint(0,9)*100]```
should work
jaunty widget
#

Yeah im stupid lol

#

I removed that 0 earlier

#

But i messed up the code so i started again and forgot to remove it again

gaunt berry
jaunty widget
#

Im slowly starting to understand all the errors

#

But hey

#

I got another one lol

gaunt berry
#
enemy_pos = [random.randint(0,9)*100, 0]```
#

you still need the 0 since its the other dimension(probably y)

#

while the randint is the x dimension

jaunty widget
#

Oh yeah

gaunt berry
#

could also be the other way around, depends on how you implement it

jaunty widget
#

The y should be 0

minor roost
#

im getting into programming, and at the moment my eyes and brain are likeyudodis

minor roost
#

lmao

jaunty widget
#

Just started today with Python

minor roost
#

starting in couple of weeks hopefully

jaunty widget
#

How do i fix this?

#

I read that IndexError: list index out of range means im trying to get something that doesn't exist

spring tiger
#

What does your enemy_pos variable look like

#

also, your line 97 should be
enemy_pos[0] = random.randint(0,9) * 900 otherwise you're putting a list within a list with how you currently have it

spring tiger
#

yep, so enemy_pos[1] does not exist, because your enemy_pos list only has one item in it.
you need to add the 0 to that list that quartz mentioned:
enemy_pos = [random.randint(0,9)*100, 0]

jaunty widget
#

Its working now

#

Except its not following the 0,100,200 etc. x coordinates

spring tiger
#

What do you mean? The random.randint(0, 9) * 100 will definitely be giving values of 0, 100, 200, ..., 900

jaunty widget
#

They aren't really at those x value's

spring tiger
#

What does the drop_enemies method do?

jaunty widget
#

I don't even know lol. I understood it till 30 mins into the video

spring tiger
#

I'm not sure it's a good idea to jump right into the deep end like this 😅

The reason they are not at 0, 100, 200, ...
is because of that line 32. it's setting it differently.

jaunty widget
#

Learned a lot from it tho

#

So thats a good thing

small plank
#

@spring tiger do u have good tutorials to learn java the best and fastest way?

#

i know

spring tiger
#

will always suggest w3schools and sololearn for learning java and python

#

both are great websites

#

all free

small plank
#

I know Java a lot 😄

#

@minor roost do u know what this means?

#

I don't know, sorry.

#

i never used this before

#

so

#

thats the reasons im learning this class

#

i got that

ebon flume
#

int result = x + y;

small plank
#

@ebon flume

#

its not

#

it requires 1 more

ebon flume
#

you forgot the +

signal drum
#

^^

ebon flume
#

you write the plus in the missing box lmao

dense zinc
#

^

brisk badge
#

lol

lusty pagoda
ebon flume
#

it is also programming haha

brisk badge
#

but now there is the real question that not a single computer will solve correctly

#

whats 9+10

lusty pagoda
#

That seems pretty... Easy ?

#

910 o-o

brisk badge
#

0:

lusty pagoda
#

If it's "9"+"10" maybe idk

brisk badge
#

xd

#

or "9 +1 0"

#

if its not an equation but a string

lusty pagoda
#

same.

grand pilot
#

"9"+10

ebon flume
#

fun fact, in nodejs, “9”-1 will print 8

#

but “9” + 1 will print 91

opal shadow
#

3"3=

ebon flume
#

this is because plus symbols suffixing strings are string concat delimiters

#

otherwise, it’s arithmetic

lusty pagoda
#

Is SQL something good for beginners?

#

And what about Machine Development

sullen jacinth
lusty pagoda
#

I read about it.
I should have a good knowledge about Python. Because it's more dependent on it

ebon flume
#

SQL is used for interacting via databases

#

it's p easy

#
SELECT * FROM users WHERE username="saif";

would be a simple sql statement to select users that have the username saif

sullen jacinth
#

it’s better to start with something more essential imo

jaunty widget
#

How do i get a screen to pop up?

#

Im using python btw

spring tiger
#

You won't be able to do that on browser

#

You'll need to get Python installed on your PC

jaunty widget
spring tiger
#

Are you using Pycharm?

jaunty widget
#

I use "sublime text" to write it in

spring tiger
#

Ah right, you need to install pygame by opening your terminal and typing pip install pygame

jaunty widget
#

I already did that yesterday

spring tiger
jaunty widget
#

Works now, ty

dense zinc
#

Maybe cause I never learned it but

lusty pagoda
#

@dense zinc

#

SQL

dense zinc
#

I tried to learn it at least for a project in Java

small plank
lusty pagoda
#

SoloLearn

small plank
#

free?

grand pilot
#

Yes it's free

small plank
#

oki

minor roost
spring tiger
#

Both

minor roost
#

Ok thanks

lusty pagoda
#

Not sure honestly

lusty pagoda
#

spam = eggs
print (spam * 3)

plush walrus
#

Lol

lusty pagoda
sharp crystal
#

define eggs

#

i--

lusty pagoda
#

I'm
Not
A programmer

slate basin
#

print("Hello nerds.")

brisk badge
#

O

#

egg is defined actually

sharp crystal
#

egg.split("🥚")

minor roost
small plank
#

c# isnt hard

#

its easier then Java

#

xD

south spruce
#

both arent very difficult to learn

#

i've tried both, havent immersed myself into either of them too much tho

ebon flume
#

they're both very similar syntactically - and both follow the same programming paradigm that is object-oriented program

#

the only different are the standard libraries - not too sure how different they are, but it's quite hard to compare since both Java's stdlib and the .NET core lib are absolutely massive

#

it just depends on what you want to do

wild shadow
icy spruce
hearty bloom
#

<@&720637031071350795>

#

:D

small plank
#

GG

brisk badge
#

death threat @mods

sharp crystal
#

egg.throw()?

brisk badge
#

still a death thread

#

wont survive it

sharp crystal
#

:c

brisk badge
#

egg.keepAlive();

sharp crystal
#

egg.throw().letSurvive();

brisk badge
#

YES

#

thats ok

sharp crystal
#

the immortal egg

#

😂

brisk badge
#

💪

brisk badge
#

to learn as a first oop

small plank
#

Java is not that easy

#

Go do c# it will be easy

brisk badge
#

for an oop language it is

jaunty widget
#

I just installed it on my mac

#

Im using sublime text and the language it python

sharp crystal
#

I wouldn't use sublieme text tbh

jaunty widget
sharp crystal
#

I would recommend using pycharm

spring tiger
#

pycharm and vscode are both great python editors

hazy escarp
#

isn't pycharm too overwhelming for a beginner

#

sublime is way easier and has all he needs

brisk badge
#

WORD

#

or just notepad

#

yes

#

u can even change the font and size of every single letter

#

why would u want more

sharp crystal
#

and word has got autocorrectionsheesh

plush walrus
#

by any chance, do you know how to format the request to the auth server?

#

nvm I found a library for it :>

brisk badge
#

(especially when it is set on Dutch like mine)

hollow bramble
#

if i were to make a client for cubecraft, how many of you would use it

dense zinc
#

Wouldn’t trust a random client tbh

hollow bramble
plush walrus
#

hello, I wanted to ask how to kill a subprocess after let's say 30 seconds that was started using subprocess.call() in python

spring tiger
#

You want to use subprocess.Popen, and assign it to a variable
Popen doesn't wait for the process to finish, so you can then sleep for 30 seconds,
then you can kill the process via the variable you assigned it to

#

welp. that's no longer the case. I am not up to date with Python

#

If you are on 3.5+, use subprocess.run and add the timeout parameter

plush walrus
#

oki ty

small plank
#

@spring tiger What language is the Translations bot?

spring tiger
#

Believe it's Java

small plank
#

🤨

spring tiger
#

I didn't make it though, that would be @hearty bloom and the other devs on the Translation Team

small plank
#

It uses to much ram 😄

small plank
spring tiger
#

Java does not use much RAM if you make your bot correctly. Same for pretty much a lot of languages.

#

In terms of easier, that's entirely up to what language you know best

small plank
#

True, but i use c# with a 8gb ram vps that uses 4gb of the 8gb for c#

I got a java 8gb ram vps that uses 6gb of the 8gb for exactly the same code but then other language

spring tiger
#

That's likely some misconfiguration on your end. 2gb increase is definitely not down to Java.

dense zinc
#

Wanna know something

#

Just abuse threads Banter performance 100

dense zinc
#

When I’m 16 banter banter

small plank
#

wdym

small plank
#
namespace RAT_server
{
    public partial class Form1 : Form
    {

        private RATSession currentSession = new RATSession();
        public Form1()
        {
            InitializeComponent();

            Task.Run(() =>
            {
                TcpListener listener = new TcpListener(IPAddress.Any, 6969);
                listener.Start();

                while(true)
                {
                    TcpClient client = listener.AcceptTcpClient();

                    RATSession session = new RATSession();

                    session.Start(client);

                    currentSession = session;
                }
            });
        }
    }
}```
#

Yeyyy

#

Its not what you think, i make a RAT Security Progam

#

That detects RATS Attacks

#

it will show u a message on the right on the screen and it disables everything quick

south spruce
#

java right?

grave kelp
#

Its pretty amazing how java and c# looks alike

#

Learn one of that and you can easily learn the other

hearty bloom
small plank
#

its C#

#

RAT

Remote
Administration
Tool

south spruce
#

Ah

south spruce
gaunt berry
#

thats what a friend told me

#

ah ok

#

¯_(ツ)_/¯

hearty bloom
#

does anyone have a clue what's wrong in here?

south spruce
#

What's the error msg

ebon flume
#

so what you want to do is

#

replace public SerializableThrowable(T throwable) {

#

with

#
public SerializableThrowable<T extends Throwable>(T throwable) {
#

or just

#
public SerializableThrowable(Throwable throwable) {
small plank
#

looks this good @hearty bloom

#

to much methods is not so fine

hearty bloom
spring tiger
#

pretty sure its your private Class<T> type; variable
perhaps it needs to be private Class<T extends Throwable> type;

ebon flume
#

err, on your declaration of type, try try do that there

ebon flume
#

since it requires T, not T extends Throwable for some reason on your variable assignment

#

also, mitgobla, what's the minimum age requirement for a developer position?

ebon flume
#

if i had the legalities covered on my end, and was deemed a suitable candidate, could an exception be made?

gaunt berry
#

you cant work part time if ur under 16

#

even if ur parents allow it

ebon flume
#

you can if you contract through an outsourcing contracting company and have a national insurance number

gaunt berry
#

xd

#

was talking about cubecraft only, not in general

spring tiger
#

No, we do not make exceptions @ebon flume

hearty bloom
#

managed to solve it by making the field just a string

#

but still kinda interested why it didn't work :(

#

just for info, it would do this:

#

or I could just make it unchecked ig

minor roost
#

Did u guys really a programmer or u guys just copy it from stackoverflow?

spice plaza
#

real programmers know what to copy from stackoverflow

quiet marlin
trim juniper
#

haha

sharp crystal
#

We would all be dead without stackoverflow

#

ngl

jaunty widget
#

Can someone help me? I'm completely stuck atm.

#

Im using python btw

plush walrus
#

This will do it but I don't think it's the approach you are looking for but maybe

x = 4
x = 5
print(x+4)```
jaunty widget
#

I need to fill something in at the second line too.

plush walrus
#

uhhh

#

☝️

#

but there's a space between the = and the blank spot

jaunty widget
#

Ah makes sense.

#

Works now ty

plush walrus
#

ye

brisk badge
#

'test'

#

how do u write a code on dc

spring tiger
brisk badge
#

test

#

ah ty

#

java System.out.println("test");

#
System.out.println("test");
#

java doesnt work?

spring tiger
#

you put the java on the wrong line

#

it needs to be on the same line as the first three `

#
System.out.println("test");
brisk badge
#

huh

#

oh a space after java doesnt work

#

okay

#
System.out.println("Hello");
sharp crystal
#
potato
tall hazel
#

I like your funny words magic man

brisk badge
minor roost
#

hii how can i code some thing like this

#

Name ect how can i code that

#

Methods ect

#

just knowing

spice plaza
minor roost
#

yea

#

that

spice plaza
#

lemme just make an example chunk of code 👍

minor roost
#

Sure tyt

#

ty ;]

spice plaza
#
// The main message
TextComponent text = new TextComponent("This is a bit of text with hover text at the end ->");

// The text that would be inside the hover box
TextComponent hoverTextContents = new TextComponent("Hi this is some text being hover");
hoverTextContents.setColor(ChatColor.DARK_AQUA);

// This creates a small chunk of text, added to the end of the message
// that shows the hoverTextContents TextComponent when hovered over
TextComponent hoverableText = new TextComponent(" [Hover over me! :)]");
hoverableText.setColor(ChatColor.AQUA);
hoverableText.setHoverEvent(new HoverEvent(HoverEvent.Action.SHOW_TEXT, new Text(new ComponentBuilder(hoverTextContents).create())));

//This adds the hoverableText TextComponent to the end of the text TextComponent.
text.addExtra(hoverableText);

[player here, idk].spigot().sendMessage(text);
minor roost
#

Looks nice

#

ty btw

spice plaza
#

pretty sure it works at least, haven't touched spigot in a lil bit

minor roost
#

np

#

ty man

unreal bay
#

I have no idea about programming but I think you guys are awesome

oblique widget
#

@unreal bay
THX

minor roost
#

Does anyone knows why cubecraft website is far better than mineplex & hypixel?

#

The report website, can the devs allow us to submit vids w/o Youtube? It's kinda annoying since we always get kicked out for inactivity

minor roost
#

/hack @all time

wheat relic
wheat relic
#

You can use like xbox live and stuff too, I did a few like that

minor roost
gaunt berry
#

can someone make these values strings? Im on my phone rn and its quite hard to do ngl xd

[
Cubecraft,
Eggwars,
Skywars,
MinerWare,
Line Dash,
Blockwars,
Iron Rank,
Cubelet,
Pets,
Helper,
Moderator,
Senior Mod,
Donkey,
Coronavinus,
Katsia,
Majksa,
Hazard,
Quartz,
Stitchie,
Confused Cat,
Loading Cat,
ZedDoubt,
Banhammer,
Kickhammer,
Zedthinks,
Warz,
Forums,
Helper,
Admin,
Levels,
Rubik cube man,
Designer,
Translator,
Gay,
Among Us,
The Crew,
Horse,
Phantom,
Zombie,
Skeleton,
Sea monster,
Hoglin,
Piglin,
Nether,
End City,
Village,
Stronghold,
Ender Dragon,
Enderman,
Bowspam,
Hacker,
Customer Support,
Imposter,
Crewmate,
Keanu,
ben,
Camezonda,
Developer,
big brain,
comfyblob,
banter,
ccg memes,
angrynoot,
YouTuber,
CatsLoveRainbows
]
#

its json btw if you havent noticed yet

#

thank you very much

#

appreciate it

sharp crystal
#

@plush walrus WOOW im so proud!!

#

In ur about me ur using javascript!! im so proud!!!

plush walrus
small plank
#

Can somebody that is good in C# dm me pls

#

I need somebody to review my code

#

And i dont want to get it leaked because its for an game that comes out in 2022

plush walrus
#

alr so is there any way to test run your cron to see if it works?
I found something like run-as-cron command but that does not really work

small plank
#

which language of code?

plush walrus
#

it is a sh script

#

that I am trying to run using cron

gaunt berry
#

make a new temporary crontab entry

#

and test it that way

plush walrus
#

like this?
* * * * * sudo /home/kristn/script.sh

small plank
#

i dont understand SH haha

i make a AntiVirus Software

gaunt berry
plush walrus
#

ohyes

#

oki

gaunt berry
#

this would be better actually

#

since it only runs once

#

every hour and not every n minutes

plush walrus
#

imma use the /5

gaunt berry
#

dont forget the *

plush walrus
#

yes

#

* /5 * * *

#

right?

gaunt berry
#

tip: upload the files directly, dont copy paste them

#

it makes it easier to read

#

and doesnt flood chat

#

well that sucks

#

discord pls add

small plank
#

i saw it 😄

plush walrus
#

alr so I used * /2 * * * /usr/bin/python3.7 /home/kristn/send_webhook.py
but it still did not work @gaunt berry

gaunt berry
#

try * /2 * * * cd /home/kristn && /usr/bin/python3.7 send_webhook.py

#

cron doesnt automatically change the working directory so you have to change it urself

#

making use of cd

plush walrus
#

do I need to restart cron after I edit it?

gaunt berry
#

iirc no

plush walrus
#

well it does not work

#

¯_(ツ)_/¯

gaunt berry
#

any errors?

#

wait

#

i see it

#

* */2 * * * cd /home/kristn && /usr/bin/python3.7 send webhook.py should work

#

alr im gonna go sleep now

wild shadow
gaunt berry
#

if your program does stuff with relative paths then you need it

#

who knows, maybe it gets the webhook link from a config file

#

and if thats the case it wouldnt work without the cd

spring tiger
#

if you're handling paths correctly in the python code it shouldn't be necessary

minor roost
#

Do u guys programme MC cmd block, bukkit/spigot plugin or C++/Java?

shrewd minnow
#

Imagine programming in mc command block

gaunt berry
small plank
#

can someone help me with sftp?

gaunt berry
#

yes

flint carbon
#

I need help with scripts. I'm willing to learn

gaunt berry
#

ok you dont need to ask for help, you can just ask ur question directly

minor roost
shrewd minnow
#

Cool but still my mind isn’t going to change

minor roost
#

How do I receive inputs in C#?

gaunt berry
#

from console?

#

string msg = Console.ReadLine(); iirc

small plank
#

Can sombody help me

#
ProGuard, version 7.1.0-beta5
Warning: com.zerox.connection.chat.ComponentBuilder: can't find referenced class com.google.common.base.Preconditions
Warning: com.zerox.connection.chat.ComponentBuilder: can't find referenced class com.google.common.base.Preconditions
Warning: there were 2 unresolved references to classes or interfaces.
         You may need to add missing library jars or update their versions.
         If your code works fine without the missing classes, you can suppress
         the warnings with '-dontwarn' options.
         (https://www.guardsquare.com/proguard/manual/troubleshooting#unresolvedclass)
Warning: optimization is enabled while shrinking is disabled.
         You need to remove the option -dontshrink or optimization might result in classes that fail verification at runtime.
Please correct the above warnings first.
``` i get this message, im trying to OBF my code
#

And i cant find the lib like com.google.common.base

gaunt berry
#

have you tried using google

#

because it doesnt look like it

dense zinc
#

It’s just a warning, if it still works I would disregard it

minor roost
#

hihi

cinder pike
#

!rank

#

Ima head out

sudden kettle
#

lmfão

minor roost
#

what langs y’all code in

#

m code in py + a bit of c#

brisk badge
#

java

#

java best

#

java better than everything

#

wanna hear more reasons to use java?

gaunt berry
brisk badge
#

me when i accidentally write this.object = this.object

#

instead of just object

gaunt berry
#

i mean

#

ur right

#

this object = this object

brisk badge
#

with dots in between

gaunt berry
#

shutup nerd

brisk badge
#

wajow

#

lets keep clam

#

calm

gaunt berry
#

nO

sullen jacinth
#

I definitely don't get a million of them in a day

brisk badge
#

exactly

dense zinc
#

I used to be plagued by nullpointers but I think I’ve gotten better at preventing them

brisk badge
dense zinc
#

wow is this my commit??

hearty bloom
#

commit on master PU_KermitHoldUP

plush walrus
#

🥶

gaunt berry
#

well this doesnt seem too good

gaunt berry
#

gotta love them corrupted ssds

gaunt berry
#

also love them memory leaks

#

spotify why are you like this

#

its leaking half a kb a second lmao

#

congrats spotify, you achieved comedy

#

ram usage after i closed spotify

gentle patio
#

thas a nice graph

gaunt berry
#

@tranquil ice is the encryption you use for the cube pack the same that hive uses for their pack?

gaunt berry
#

alr then so the signatures.json has nothing to do with the encryption, right?

spring tiger
#

@gaunt berry I see you keep mentioning about trying to decrypt our resource pack. I just want to clarify we have the encryption in place to protect our work that our designers and developers have worked on and dedicated their time to. I don't want any further discussion of this in our Discord.

gaunt berry
#

i understand that you dont want it published, the reason i started this project was to broaden my horizons(and possibly the ones of "my team" too) and to kill some time because apparently i have too much lol. And even though the idea originally came from CubeIconReverter, we would've asked for your permission first because i dont want my lawyer to go brr lmao

plush walrus
#

btw what do y'all think about the GitHub copilot?

gaunt berry
#

can i ask it for the encryption key banter

#

hey i was just making a joke ok

#

its not a discussion

#

its a joke

#

theres a difference

minor roost
#

Maybe cause people kinda freaked out

signal drum
#

Lol

#

Now we will still freak out

minor roost
#

I've got a Real question about how cubecraft managed to make their quest plugin to be individual like action visible only to one player

signal drum
#

✨packets✨

minor roost
#

Yeah I kinda figured it

#

But the Idea is they send Packet of a block to the user for example ?

minor roost
minor roost
#

Look it UP on the net you'll have fun

signal drum
#

Okay lol

#

Ah fun

minor roost
#

A Friend of mine got that she freaked out took like 3 days to understand that the fedora upgrade didin't have the drivers required for her to run it

plush walrus
#

I mean imo the copilot looks really cool and the fact that the AI used for it is gonna get released to Open AI API later this year is also cool

minor roost
#

Never said it was'nt :D

#

You should read the entire conversation WE were speaking of the panic caused by a black screen of the death

#

Due to the fact Microsoft changed the color then I told it was'nt the same lvl

#

It is an opinion

#

But for novice a terminal spamming is scary

#

Usualy they're rare

#

Yeah not surprised what computer is it ?

#

I'm a big fan of the thinkpad t430

signal drum
#

this is a programming text channel, not a channel for suggestions.

cinder pike
#

where is suggesetion channel then?

gaunt berry
cinder pike
#

thanks

gaunt berry
#

youre welcome

sly dagger
#

@cinder pike

cinder pike
#

yes?

quasi oasis
#

I forgot this channel existed for a minute

sweet barn
#

My disappointment is immeasurable and my day is ruined.

gentle patio
#

:v

minor roost
#

Technosword in the wild

dense zinc
#

well guys always read the license O.o

sullen jacinth
#

who reads those things

#

let's be honest

sharp crystal
#

sheesh

#

imagine reading that yea

rancid trail
#

Lmao

minor roost
#

how can somoene get a ign via a uuid for bedrock

dense zinc
minor roost
#

guess i’m just gonna have that hanging

dense zinc
minor roost
sweet barn
#

I believe there is an API to get a gamertag from XUID though

minor roost
bright hawk
#

i need some help

#

so I made my own bedrock server

#

and i have my own domain

#

and I tried to link it

#

but when I try joining from minecraft it says invalid ip

#

i did that in the godaddy thing

#

and for the goal i made another type A one which had the ip of the server which is the goal for that one

#

for bedrock its udp

#

ye

bright hawk
bright hawk
#

thats what happens when i connect from the domain

#

they dont

#

they have the a record as the goal

#

ye

#

any idea what i need to do

#

thx for trying to help btw

#

@minor roost

#

u there?

#

if anyone can help me pls dm me

gaunt berry
#

domains take a while to update, check back in about 30 mins

plush walrus
#

Have you tried it now?

#

And you should probably use importance 5 I stead of 0

bright hawk
#

still doesnt work

plush walrus
bright hawk
#

ye

bright hawk
plush walrus
#

Are you sure you are using the right port in Minecraft when trying to connect?

bright hawk
#

ye

#

the default is 19132

plush walrus
#

Is the MC server listening on that port?

bright hawk
#

ye

plush walrus
#

Is the port open?

bright hawk
#

i can join the server when using the ip

plush walrus
#

Ohh I see