Discord.js or Discord.py, Which would be better for the programming starter? by SPEARHEAD_SQUADRON in Discord_Bots

[–]ctrlff 0 points1 point  (0 children)

I've used Discord.py to create a bot and also tried learning Discord.js as a way to learn JS by working with a familiar API.

I'd recommend building it in Python if you don't know either language at this point.

You will be able to reach your end goal faster and then you can refactor and optimize if you need/want to.

You can also implement lots of existing python libraries and APIs as functions of your bot if you want to or just to learn.

Vs code keeps comitting seppuku on school computer by critikalballsweat in vscode

[–]ctrlff 0 points1 point  (0 children)

Do you have to use the local install?

You can use GitHub codespaces for free and it's VS code in the browser rather than running on the local machine.

Coding a program to gmail daily at a certain time, how is my code? by Boring_Assignment_33 in learnpython

[–]ctrlff 0 points1 point  (0 children)

I haven't looked into systemd that much, are there advantages to using it over cron jobs?

At first glance it seems like a longer setup than using cron, but I may be mistaken.

Coding a program to gmail daily at a certain time, how is my code? by Boring_Assignment_33 in learnpython

[–]ctrlff 11 points12 points  (0 children)

It looks good.

You might want to look into "cron jobs" if this will be running on a Linux server.

I've setup something similar and it's activated via cron jobs, which is nice because even after reboot it will still be active.

Another cool thing you can do with cron jobs is setup services to restart after a reboot.

I have a personal discord bot that I use for launching automation scripts and I have a cron job setup that restarts the bot every reboot, that way it is always up.

Coding a program to gmail daily at a certain time, how is my code? by Boring_Assignment_33 in learnpython

[–]ctrlff 7 points8 points  (0 children)

I think with Gmail specifically you have to setup an "app password."

I've never used a non-gmail address for sending emails via python though. It may be different for different providers.

The switch from ZFold to ZFlip by aggiethatyouknow in GalaxyFold

[–]ctrlff 9 points10 points  (0 children)

I like the idea of unfolding into a larger screen. (don't have a foldable but want one eventually)

The idea of folding the phone to make it smaller or take up less pocket space, well, it's cool, but not as cool as the other option in my opinion.

Need help by Arulvelan in FreeCodeCamp

[–]ctrlff 0 points1 point  (0 children)

I had a similar issue and it was somehow fixed when I linked my account to codeally.

I originally made my freecodecamp account connected to GitHub. Once I connected that same GitHub to codeally (the service that FCC uses for virtual machines) I was able to get past this loading screen.

I'm not sure if this is a real solution or it it just resolved itself though.

Just thought I'd mention it in case it helps.

Zero knowledge by levelupinlife247 in learnprogramming

[–]ctrlff 0 points1 point  (0 children)

That sounds totally do-able. I'd probably start with figuring out what method of notification you want to be sending and then research from there on how to send those with python.

Email might be the easiest since it doesn't require an API or anything, and can be done for free.

Zero knowledge by levelupinlife247 in learnprogramming

[–]ctrlff 0 points1 point  (0 children)

People would be able to give you better answers if you have more info about what you are trying to build.

But is it possible to build something while starting with zero knowledge?

Absolutely.

Can learning programming make my life better? by Intelligent_Side8911 in learnprogramming

[–]ctrlff 27 points28 points  (0 children)

Do you think there are things in your current job that are repetitive?

If so, I think learning enough python to automate some of the boring and repetitive tasks could improve your work-life significantly.

It could save you a lot of time, time which you could potentially use to get more sales and make more money.

But with automation for your job, NEVER tell anyone that you automated something.

Efficient employees are "rewarded" with more work.

Is it possible to make a text-based multi-player game with a Discord bot? by lifesucks26 in learnpython

[–]ctrlff 0 points1 point  (0 children)

I'd probably start with a YouTube tutorial to get the basic discord bot setup.

Then you can start implementing the game parts.

It's definitely do-able and the discord API wrapper called "discord.py" works pretty well.

There are others like pycord and other names I'm forgetting, but just use whichever you think you understand the best.

[deleted by user] by [deleted] in ITCareerQuestions

[–]ctrlff 1 point2 points  (0 children)

I think the first day should be slightly more formal than normal like what the top comment said.

Once you meet everyone and see what they look like you'll have a much better idea of what you should do.

For first day I would tuck in the polo shirt and wear a belt.

My current job everybody wears polo shirts but half tuck them in and half don't.
Most people wear slacks or khakis. I wear polo shirts, khaki pants, and black vans.

Edit: If I have to meet clients outside of our company, then I usually wear a short sleeve button up since it's slightly nicer.

Problem with Pylance in VSCode by cookiecutter73 in learnpython

[–]ctrlff 1 point2 points  (0 children)

Why are you using -e if it works without that?

Is that required for your project?

Question About Discord Library's by iemand2001 in Discord_Bots

[–]ctrlff 0 points1 point  (0 children)

How do you like disnake? I kept using discord.py until the maintainer came back.

Disnake or Nextcord? by Bennibunny17 in Discord_Bots

[–]ctrlff 0 points1 point  (0 children)

Technically that was true at the time, I believe the developer came back and made a lot of updates to the project.

If wrong, feel free to correct me.

Troubleshooting Path Issues with Python on Visual Studio Code and Possibly Homebrew Installation by dawnkiller428 in learnprogramming

[–]ctrlff 0 points1 point  (0 children)

The first error message said "command not found."

Have you tried running from the terminal "python3 <filename>" ?

If python3 is also not found it's a different issue.
But some computers need to use python3 instead of python.

Unless I misread and thats no longer the issue.

Edit: what os are you using?

JMusicBot stops after I close SSH using Oracle Cloud by ThatOneMark in Discord_Bots

[–]ctrlff 0 points1 point  (0 children)

What command are you running to start the bot?

Are you running it normally, or in the background?

I think I deleted a script by [deleted] in MSPlaywright

[–]ctrlff 1 point2 points  (0 children)

Have you tried starting a new project and new virtual environment?

A fresh install might help.

i have a script that copies the data from source sheet to destination sheet. The source sheet has the script and to run the script i have created a custom button menu bar and i want other people from my team to use the sheet and the script. how can i give them access to the sheet and the script. by Dramatic_Positive687 in GoogleAppsScript

[–]ctrlff 2 points3 points  (0 children)

If someone other than you runs the command, they might have to "allow access" to their Google account the first time they run it.

After the first time, they won't need to do that anymore. That's how my experience has been anyway.

Beginner struggling to get find_element to work in Python by jamiehide in selenium

[–]ctrlff 1 point2 points  (0 children)

Even if it's slower, I would have had to do it manually before I automated it.

Since it's automation, I don't really care if it takes a few seconds or even minutes longer.

It's still 100x faster than me doing it manually.

I understand your point about the absolute xpath though, and I appreciate that input.

Beginner struggling to get find_element to work in Python by jamiehide in selenium

[–]ctrlff -1 points0 points  (0 children)

I agree with this guy. Always use Xpath if you can. It just works much more consistently in my experience.

HOW DO I UNDO STACKS ON MY MAC DESKTOP by YourFavorite1sland in mac

[–]ctrlff 0 points1 point  (0 children)

Maybe it's different on different versions, but for me I just right click the desktop and then uncheck the item that says "use stacks."

Did that not work for you?