#Coding
1 messages · Page 2 of 1
Oh a Yaml?
W
For legal reasons this is my own repository
ofc ofc
insane mona lisa drawn by chatgpt
im scared
its a droplet bro 
Bro said 💧
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?
@barren current Sure could use a break from coding
@crude kernel haha never!!
So you want to run Node scripts without node installed?
Yep
ChatGPT told me to download that file, unzip it and i think do something with pkg
So I'm guessing you can't install node for some reason?
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
Are you running on linux?
macOS
Ah ok
I think pkg is a python command
Do you have python installed?
You can check with python –version
Does npm need to be installed as well ´?
I might of uninstalled it. « Command not found: Python »
No worries, we can do apt-get update and apt-get install python to get it back
Oh what about just apt update
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.
Ah ok looks like apt doesn't come with Mac, you can also manually install it if you look up python
Latest is fine
If it asks you to
Okay it’s done
Now pkg should work
Maybe Seven will know more, I don't have a mac so I don't know how the pathing etc works
Yeah he's probably asleep rn, I'd ping when he's on online
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
@drowsy herald Do you know how to do this?
I’m confused as to what you’re trying to do
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)
You need node to execute any script on any device
It’s impossible to do it without
macOs 
is it possible to get a linux subsystem hooked up on mac
im doing it for windows
anyone tried coding macros? they are SO annoying to code
Yes there is, the script needs to be altered ofc but yes, but you can run python otherwise
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
Thank you so much! Should I convert my old code using like a website or create a new code.
Well it's all about preference at that point,
That's how programmers are
Okay I don’t know how to code python 😭. I’ll probably look up a document or video
Thank you
"Programmers always seek ways to become more lazy" @barren current think about this quote eh
Haha yeah
@alpine crow when you said the script needs to be altered wdym by that?
There's the package difference first off all ,coz we were talking about 2 different languages right JS and python
One needs nodes remember
And pip is a different library
Yeah.But do I need to install pkg?
Or whatever it’s called on python
Okay thank you
@fathom spruce
how fun
@drowsy herald @honest crow @crude kernel that was it
I see
If that's just to show you the things you're working with yea sure
Grasping everything is the problem
Because CSS files are naturally l a r g e
true
fair
Just for one page
yea
omg
alr question
should i leave html and all that for a bit and finish this first ?
cz i still havent learneed arrays 💀
i think so
If not
Go find website page templates on the Internet
And try to recreate them
They're good practice
That's what I did
cz thats the main course of javascript and the html and css is like a side course for people that the teacher think they are more advanced
You can build a page without JS
true
So hone your HTML and CSS first
alright
@reef coyote well now you do
finally
i have done a little python in the past but I want to learn how to code roblox games
eamny
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
That sounds cool
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)
Tbh
I wish Roblox Lua had like callbacks as if it was Haxe with Lua support
would make me doing things so much easier
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
Complicated
JAVASCRIPT
@crude kernel Why is the start making it seem like it's all common sense?
Fair.
Yes
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).
Wheee
W
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 👀
Ooo, I'd be interested in that, Zaka!
So far nothing but boring overexplained lectures :P
How's the lectures going, Zaka?
So far nothing really Python related in terms of explanations :/
Woo! Congrats!
What
Nice

my brain hurts now
Make it unhurt
how
Learn more! 
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"
Always keep learning
I got my bot to work which is the best part
so
we chillin
just got to find a bot hoster
I really wish I had an SSD to run my Linux distro on :)
A flash drive is sooo slowwww
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
Ah true WSL is a lot faster and convenient
Whee?
Yippee!
oh
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
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 😂
Yay! I look forward to watching!
On second thought not tonight sorry :P
@crude kernel@grave topaz@zenith hatch Ok...So, that example..
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
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
if you leave a data type empty it comes out as an error @astral harness
since there was nothing to assign
Data types are always numbers?
mhm
Its like those block games for kids you know
Booleans are the equal things, right?
Otherwise, I need to go brush back up on some of these terms in Python
The square only goes in the square hole, so a variable typed as an int only takes ints
Has to do with it, but that would be the double equals for comparing
Boolean is True/False
coding does more logic XD
Oi. Chuu Chuu Rocket is perfectly logical.
true
but in this case
it's 10x more
especially when doing an actual development project
I have no idea what Chuu Chuu Rocket is 😂
@flint bison I thought that you showed Zaka Chuu Chuu
thing is
What
Zaka probably slept at that time XD
The code for CCR is basically just a bunch of string beans
Oh intersting
arrays and lists XD
I don't think I learned lists or arrays..


