#Coding

1 messages · Page 2 of 1

crude kernel
drowsy herald
#

There’s just one more file left

#

I’m sure you can do it

crude kernel
#

Oh a Yaml?

drowsy herald
#

Yes

#

xD

crude kernel
#

Ok maybe I could

#

But to be safe probably shouldnt Kek

drowsy herald
#

It definitely works now

crude kernel
#

W

drowsy herald
#

For legal reasons this is my own repository

crude kernel
#

ofc ofc

livid spear
#

insane mona lisa drawn by chatgpt

hot stump
#

im scared

livid spear
#

its a droplet bro Lmao

summer trail
#

Bro said 💧

barren current
#

im trying to put a node.js script executable on devices without Node.js installed.
For the past hour ive been trying to using chatgpt and nothing is working. Could anyone help?

crude kernel
#

@barren current Sure could use a break from coding

barren current
#

@crude kernel haha never!!

crude kernel
#

So you want to run Node scripts without node installed?

barren current
#

Yep

barren current
crude kernel
#

So I'm guessing you can't install node for some reason?

barren current
#

I can. But for some reason pkg command can’t be found. I tried getting the path of the file but even there the command won’t work

crude kernel
#

Are you running on linux?

barren current
#

macOS

crude kernel
#

Ah ok

barren current
#

👀

#

Is this bad 😭

crude kernel
#

I think pkg is a python command

#

Do you have python installed?

#

You can check with python –version

barren current
#

Does npm need to be installed as well ´?

crude kernel
#

Eventually

#

But that should happen when you use the pkg

barren current
crude kernel
#

No worries, we can do apt-get update and apt-get install python to get it back

barren current
#

Okok

#

Apt-get command is not found

crude kernel
#

Oh what about just apt update

barren current
#

That’s what I get

#

The operation couldn’t be completed. Unable to locate a Java Runtime.
Please visit http:// www.java.com for information on installing Java.

crude kernel
#

Ah ok looks like apt doesn't come with Mac, you can also manually install it if you look up python

barren current
#

Ok

#

What version

crude kernel
#

Latest is fine

barren current
#

Ok

#

3.12.0

#

Do I need to restart my pic after

#

Pc*

crude kernel
#

If it asks you to

barren current
#

Okay it’s done

crude kernel
#

Now pkg should work

barren current
#

Okay ima try

#

Still not working

#

Pkg is not found

crude kernel
#

Maybe Seven will know more, I don't have a mac so I don't know how the pathing etc works

barren current
#

Ok thanks for the help tho

#

Can I ping him or it’s too late/early

crude kernel
#

Yeah he's probably asleep rn, I'd ping when he's on online

barren current
#

Okay

#

Im trying to make a node.js script executable on devices without Node.js installed.
For the past hour ive been trying to, using chatgpt and nothing is working. Could you help me please? @drowsy herald

#

macOS

barren current
#

@drowsy herald Do you know how to do this?

drowsy herald
#

I’m confused as to what you’re trying to do

barren current
#

okok

#

im trying to make a node script executable on any device that dont have the app or the website on there computer.

#

(im using macos btw)

drowsy herald
#

You need node to execute any script on any device

#

It’s impossible to do it without

barren current
#

ok

#

is there a way to do that using python

#

or something

tepid star
#

macOs ssunlaugh

#

is it possible to get a linux subsystem hooked up on mac

#

im doing it for windows

still pike
#

anyone tried coding macros? they are SO annoying to code

alpine crow
#

Install python and get an IDE, or better yet just use replit

#

Python shouldn't need any extensions other than pip for packages but yeah

#

Python is very user friendly

barren current
alpine crow
#

That's how programmers are

barren current
#

Okay I don’t know how to code python 😭. I’ll probably look up a document or video

#

Thank you

alpine crow
#

"Programmers always seek ways to become more lazy" @barren current think about this quote eh

barren current
#

Haha yeah

barren current
#

@alpine crow when you said the script needs to be altered wdym by that?

alpine crow
#

One needs nodes remember

#

And pip is a different library

barren current
#

Or whatever it’s called on python

alpine crow
#

Modules

#

And yes you do need them

barren current
#

Okay thank you

drowsy herald
#

@fathom spruce

fathom spruce
#

@drowsy herald @honest crow @crude kernel that was it

crude kernel
#

I see

fathom spruce
#

a video for each one and 2 like small homeworks

#

for each lesson

honest crow
#

If that's just to show you the things you're working with yea sure

#

Grasping everything is the problem

fathom spruce
#

yea these are just the things to work with

#

this for HTML

honest crow
#

Because CSS files are naturally l a r g e

fathom spruce
honest crow
#

Can exceed 100 lines

#

Most of the time

fathom spruce
#

fair

honest crow
#

Just for one page

fathom spruce
#

yea

honest crow
#

Imagine building an entire website

#

xd

fathom spruce
#

omg

#

alr question

#

should i leave html and all that for a bit and finish this first ?

#

cz i still havent learneed arrays 💀

honest crow
#

Are you decent with HTML and CSS

#

Or do you still have some problems

fathom spruce
#

i think so

honest crow
#

If not

#

Go find website page templates on the Internet

#

And try to recreate them

#

They're good practice

#

That's what I did

fathom spruce
honest crow
#

You can build a page without JS

fathom spruce
#

true

honest crow
#

So hone your HTML and CSS first

fathom spruce
#

alright

steady harness
#

@reef coyote well now you do

reef coyote
#

finally

tall helm
#

i have done a little python in the past but I want to learn how to code roblox games

summer trail
#

You’re gonna have to learn RLua or something

#

A variant of Lua

reef coyote
#

eamny

tall helm
#

hmm

#

That seems difficult

crude kernel
#

Ah roblox huh

#

It might actually be a bit easier with an engine

#

The most programming you'll do is on the environment like objects and sometimes when people enter places

#

Aside from that you'll be able to code in events to happen when a player does something, say use an item or even log in

#

But because you'll be interacting with the items you want to "command" while building it up it'll be a whole lot easier

tall helm
#

That sounds cool

crude kernel
#

It sure is

#

Just takes some work :P

#

(Haven't actually coded in Lua but that doesn't matter as languages have the same rough concept :D)

summer trail
#

Tbh

#

I wish Roblox Lua had like callbacks as if it was Haxe with Lua support

#

would make me doing things so much easier

crude kernel
#

They don't have callbacks?

#

Huh...

summer trail
#

idk

#

i don’t use it

#

how can i know

#

i mean like

#

if not implemented or if possible it should run on some type of cross-platform language with callbacks cuz i do NOT know Lua in depth

tall helm
#

Complicated

worldly thorn
#

JAVASCRIPT

astral harness
#

@crude kernel Why is the start making it seem like it's all common sense?

crude kernel
#

Hahaha

#

Its mainly about logical thinking so thats probably why

astral harness
#

Fair.

deft urchin
#

Yes

astral harness
#

I defo can see why it can be fun. I've been enjoying it once I got over being skill issued (and I know I'll still get skill issued).

astral harness
deft urchin
#

W

crude kernel
#

I'll be starting my next school semester next week, we'll be doing a "bootcamp" next week where the teachers cram all sorts of knowledge about machine learning and AI and Python in our brains, if I don't forget I'll try posting some stuff I learnt and maybe it comes in handy for others trying to learn Python or who want to understand machine learning 👀

astral harness
#

Ooo, I'd be interested in that, Zaka!

crude kernel
#

So far nothing but boring overexplained lectures :P

astral harness
#

KasenPeek How's the lectures going, Zaka?

crude kernel
#

So far nothing really Python related in terms of explanations :/

worldly thorn
#

I CODED AN APP.

#

WOOHOO

astral harness
#

Woo! Congrats!

open dune
#

What

deft urchin
spark goblet
deft urchin
#

my brain hurts now

astral harness
#

Make it unhurt

deft urchin
astral harness
#

Learn more! ChimataCelebrate

deft urchin
#

i had to do AP Calc today then code lots of stuff for my bot so it dead

#

no

#

i already had to "learn more"

astral harness
#

Always keep learning

deft urchin
#

I got my bot to work which is the best part

#

so

#

we chillin

#

just got to find a bot hoster

crude kernel
#

70% of the way still going

#

Love ML

crude kernel
#

I really wish I had an SSD to run my Linux distro on :)

#

A flash drive is sooo slowwww

shrewd tulip
#

i had it on my flash drive before

#

was so slow

#

so i installed it on my laptops drive

#

but with bios update grub went poof and wasnt able to recover it

#

so had to uninstall it after recovering the data

#

now i use WSL

crude kernel
#

Ah true WSL is a lot faster and convenient

crude kernel
#

Ohh my days

#

The model is chalked

#

No detections is chalked

astral harness
#

Whee?

crude kernel
#

Wheen't

#

BUT

#

I have a new plan

astral harness
#

Yippee!

deft urchin
#

oh

still pike
#

i just had to do a four day python pro creator game

#

my brain is hurting now.

crude kernel
#

😂

#

How'd it go?

crude kernel
#

Oh right

#

Forgot to update this 😂
Basically the project is done from our side, we did most we could, client isn't exactly happy with the not quite polished but the otherwise exact product he asked for. Have yet to receive notice for handing stuff to the new team but he will have to contact me for it :P

#

Anyway now I'm following a course (minor) for a PreMaster, so far challenging but good to go

#

This Block its Compiler Construction and Programming!

#

Programming they're teaching us Python, C++, Haskel and Erlang and a couple other features of those languages
Compiler Construction we're learning the general structure of how a compiler could work, with their own frameworks that is not exactly clearly documented :P

crude kernel
#

A Python "Puzzle" is up next, I'll probably work on that later tonight, @astral harness (and anyone else interested) you're welcome to spectate my struggling since you know (a bit of) Python 😂

astral harness
#

Yay! I look forward to watching!

crude kernel
#

On second thought not tonight sorry :P

astral harness
#

@crude kernel@grave topaz@zenith hatch Ok...So, that example..

grave topaz
#

time to undust this

#

let's say

#

you put a number in

#

like 1

#

it is assigned to the int data type

#

just like the other data types

crude kernel
#

Mhm, its partially why I kinda liked having Java as my first language, cause you get to learn about types (even the dynamic ones)

#

Whereas with Python and Javascript it handles it for you

#

Which is nice

#

but you'll take a minute to understand so called typed languages

grave topaz
#

if you leave a data type empty it comes out as an error @astral harness

#

since there was nothing to assign

astral harness
#

Data types are always numbers?

crude kernel
#

No it can be any type

#

Ints, Strings, Booleans, Lists etc

grave topaz
#

mhm

crude kernel
#

Its like those block games for kids you know

astral harness
#

Booleans are the equal things, right?

#

Otherwise, I need to go brush back up on some of these terms in Python

crude kernel
#

The square only goes in the square hole, so a variable typed as an int only takes ints

crude kernel
#

Boolean is True/False

astral harness
#

Right

#

And coding reminds me too much of Chuu Chuu Rocket..

grave topaz
astral harness
#

Oi. Chuu Chuu Rocket is perfectly logical.

grave topaz
#

true

#

but in this case

#

it's 10x more

#

especially when doing an actual development project

crude kernel
#

I have no idea what Chuu Chuu Rocket is 😂

astral harness
#

@flint bison I thought that you showed Zaka Chuu Chuu

flint bison
#

What

grave topaz
#

Zaka probably slept at that time XD

flint bison
#

What does this have to do with Coding

#

Like the game is easy but like what

grave topaz
#

XD

flint bison
#

The code for CCR is basically just a bunch of string beans

astral harness
#

Yes. This is basically how I remember coding now. ssunLaugh

crude kernel
#

Oh intersting

astral harness
#

Strings and loops.

#

And, I suppose, Booleans are there too..

grave topaz
#

arrays and lists XD

astral harness
#

I don't think I learned lists or arrays..