#programminghelp — Public Fediverse posts
Live and recent posts from across the Fediverse tagged #programminghelp, aggregated by home.social.
-
Was going to look it up on Google but I can't seem to formulate my thoughts so I'll ask Fedi for help.
So, I have a little Python script I wrote that calculates the average size of all files in a directory, this Python script lives somewhere in my development project folder.
The issue is, to run my little Python script, I have to pass the path to the script like this assuming I just opened my terminal.
python3 ~/dev-projects/small-programs/average_size.py
It can get really tiring having to pass the path and it's likely I'm not in that directory where that script resides, opening a terminal default to your home directory.
Is there a way that I can run this script without having to pass the path to the script every single time?
I can find myself wanting to run my own scripts that I might execute anywhere when I need to.
:boost_requested:
-
Was going to look it up on Google but I can't seem to formulate my thoughts so I'll ask Fedi for help.
So, I have a little Python script I wrote that calculates the average size of all files in a directory, this Python script lives somewhere in my development project folder.
The issue is, to run my little Python script, I have to pass the path to the script like this assuming I just opened my terminal.
python3 ~/dev-projects/small-programs/average_size.py
It can get really tiring having to pass the path and it's likely I'm not in that directory where that script resides, opening a terminal default to your home directory.
Is there a way that I can run this script without having to pass the path to the script every single time?
I can find myself wanting to run my own scripts that I might execute anywhere when I need to.
:boost_requested:
-
Was going to look it up on Google but I can't seem to formulate my thoughts so I'll ask Fedi for help.
So, I have a little Python script I wrote that calculates the average size of all files in a directory, this Python script lives somewhere in my development project folder.
The issue is, to run my little Python script, I have to pass the path to the script like this assuming I just opened my terminal.
python3 ~/dev-projects/small-programs/average_size.py
It can get really tiring having to pass the path and it's likely I'm not in that directory where that script resides, opening a terminal default to your home directory.
Is there a way that I can run this script without having to pass the path to the script every single time?
I can find myself wanting to run my own scripts that I might execute anywhere when I need to.
:boost_requested:
-
Was going to look it up on Google but I can't seem to formulate my thoughts so I'll ask Fedi for help.
So, I have a little Python script I wrote that calculates the average size of all files in a directory, this Python script lives somewhere in my development project folder.
The issue is, to run my little Python script, I have to pass the path to the script like this assuming I just opened my terminal.
python3 ~/dev-projects/small-programs/average_size.py
It can get really tiring having to pass the path and it's likely I'm not in that directory where that script resides, opening a terminal default to your home directory.
Is there a way that I can run this script without having to pass the path to the script every single time?
I can find myself wanting to run my own scripts that I might execute anywhere when I need to.
:boost_requested:
-
Examination of Git Tools That Streamline Code Management
How these 5 Git tools make writing computer code faster and easier. Learn how tools like Git Stash and Aliases help you fix mistakes and save time today.
#gitcommands, #codingtips, #softwaredevelopment, #gitstash, #programminghelp
https://newsletter.tf/how-to-use-git-tools-to-fix-code-faster/
-
Examination of Git Tools That Streamline Code Management
How these 5 Git tools make writing computer code faster and easier. Learn how tools like Git Stash and Aliases help you fix mistakes and save time today.
#gitcommands, #codingtips, #softwaredevelopment, #gitstash, #programminghelp
https://newsletter.tf/how-to-use-git-tools-to-fix-code-faster/
-
These 5 Git tools help you work faster than before. Using short names for commands can save you 50% of your typing time every day.
#gitcommands, #codingtips, #softwaredevelopment, #gitstash, #programminghelp
https://newsletter.tf/how-to-use-git-tools-to-fix-code-faster/
-
These 5 Git tools help you work faster than before. Using short names for commands can save you 50% of your typing time every day.
#gitcommands, #codingtips, #softwaredevelopment, #gitstash, #programminghelp
https://newsletter.tf/how-to-use-git-tools-to-fix-code-faster/
-
#Nix #Systemd #Bash #ProgrammingHelp
Does anyone know how to make it so that instead of just grabbing the latest PNG file, systemd passes the file in question to the script? %f doesn't seem to work; $1 ends up giving me the name of the binary and $2 is undefined.
-
#Nix #Systemd #Bash #ProgrammingHelp
Does anyone know how to make it so that instead of just grabbing the latest PNG file, systemd passes the file in question to the script? %f doesn't seem to work; $1 ends up giving me the name of the binary and $2 is undefined.
-
#Nix #Systemd #Bash #ProgrammingHelp
Does anyone know how to make it so that instead of just grabbing the latest PNG file, systemd passes the file in question to the script? %f doesn't seem to work; $1 ends up giving me the name of the binary and $2 is undefined.
-
#Nix #Systemd #Bash #ProgrammingHelp
Does anyone know how to make it so that instead of just grabbing the latest PNG file, systemd passes the file in question to the script? %f doesn't seem to work; $1 ends up giving me the name of the binary and $2 is undefined.
-
I know this is a big ask but would anyone be willing to tutor me with aspnet core and auth? I've been beating my head against this for like months and I just want to get to actually making my application. aspnet core identity seems like it's too limited and not really meant for what i'm trying to do (support an SPA and third party client mobile apps), but the docs are confusing me so I'm not even sure if that's right. I was thinking of using keycloak, but that's a huge undertaking it seems like and has been giving me trouble too. #fediHelp #aspnetcore #programmingHelp
-
I know this is a big ask but would anyone be willing to tutor me with aspnet core and auth? I've been beating my head against this for like months and I just want to get to actually making my application. aspnet core identity seems like it's too limited and not really meant for what i'm trying to do (support an SPA and third party client mobile apps), but the docs are confusing me so I'm not even sure if that's right. I was thinking of using keycloak, but that's a huge undertaking it seems like and has been giving me trouble too. #fediHelp #aspnetcore #programmingHelp
-
I know this is a big ask but would anyone be willing to tutor me with aspnet core and auth? I've been beating my head against this for like months and I just want to get to actually making my application. aspnet core identity seems like it's too limited and not really meant for what i'm trying to do (support an SPA and third party client mobile apps), but the docs are confusing me so I'm not even sure if that's right. I was thinking of using keycloak, but that's a huge undertaking it seems like and has been giving me trouble too. #fediHelp #aspnetcore #programmingHelp
-
Is there a technical name for this part of a URL?
I tried looking online and a lot of resources seem to just refer to it as a subdirectory, but I want to refer to this in the context of an API so the directory concept doesn't really apply.
#programming #http #url #help #programminghelp -
Is there a technical name for this part of a URL?
I tried looking online and a lot of resources seem to just refer to it as a subdirectory, but I want to refer to this in the context of an API so the directory concept doesn't really apply.
#programming #http #url #help #programminghelp -
Is there a technical name for this part of a URL?
I tried looking online and a lot of resources seem to just refer to it as a subdirectory, but I want to refer to this in the context of an API so the directory concept doesn't really apply.
#programming #http #url #help #programminghelp -
Is there a technical name for this part of a URL?
I tried looking online and a lot of resources seem to just refer to it as a subdirectory, but I want to refer to this in the context of an API so the directory concept doesn't really apply.
#programming #http #url #help #programminghelp -
I would like to learn programming. I'm familiar with the idea but don't know any language (I'm good with excel and have worked with microcontrollers 10 years ago).
I have an idea, a tool for work, it's a GUI where I click on a drawing and get a popup with relevant links/text. Should be pretty straightforward.
Any advice on what my step 0 should be?
I've been thinking of checking out PirateSoftware's develop.games -
We had this set up with WebSecurityConfigurerAdapter before, but that's gone sice 5.something, so we need to replace this with component based stuff according to some migration doc I found #Java #SpringBoot #SpringFramework #SpringSecurity #ProgrammingHelp
-
We had this set up with WebSecurityConfigurerAdapter before, but that's gone sice 5.something, so we need to replace this with component based stuff according to some migration doc I found #Java #SpringBoot #SpringFramework #SpringSecurity #ProgrammingHelp
-
I'm a bit desperate, I really need to set up CAS authentication in a Spring 6.1+ application, and I have no fucking idea how... All I've been able to find is this thing https://docs.spring.io/spring-security/reference/servlet/authentication/cas.html#cas-pt but I am trying to configure it using Java, not XML gibberish... the CAS I'm trying to set up, to be more exact, is ECAS, the EU Login CAS. Does anybody have any pointers? I beg you fedi, please help me, this shit is due Monday and I have 0 idea how to do it... :nkocry: #Java #SpringBoot #SpringFramework #SpringSecurity #ProgrammingHelp
-
I'm a bit desperate, I really need to set up CAS authentication in a Spring 6.1+ application, and I have no fucking idea how... All I've been able to find is this thing https://docs.spring.io/spring-security/reference/servlet/authentication/cas.html#cas-pt but I am trying to configure it using Java, not XML gibberish... the CAS I'm trying to set up, to be more exact, is ECAS, the EU Login CAS. Does anybody have any pointers? I beg you fedi, please help me, this shit is due Monday and I have 0 idea how to do it... :nkocry: #Java #SpringBoot #SpringFramework #SpringSecurity #ProgrammingHelp
-
🦀 utoipa - Auto-generated OpenAPI documentation
- Simple, Fast, Code first and Compile time generated OpenAPI documentation for Rust
- It can be used with frameworks like Axum, Actix, Rocket...
-
🦀 utoipa - Auto-generated OpenAPI documentation
- Simple, Fast, Code first and Compile time generated OpenAPI documentation for Rust
- It can be used with frameworks like Axum, Actix, Rocket...
-
🦀 utoipa - Auto-generated OpenAPI documentation
- Simple, Fast, Code first and Compile time generated OpenAPI documentation for Rust
- It can be used with frameworks like Axum, Actix, Rocket...
-
🦀 utoipa - Auto-generated OpenAPI documentation
- Simple, Fast, Code first and Compile time generated OpenAPI documentation for Rust
- It can be used with frameworks like Axum, Actix, Rocket...
-
IMHO, good code is code that is scalable and easy to test.
I don't believe in things like "readable". Something is readable when you share the same background culture and language, so readable is not mesurable. In other words, readable is subjective, not objective.
- Easy to test, usually also means easier to read.
- Easy to read (whatever that means in clean code) is not necessarly easy to test (setup may still be hard)#Coding #SoftwareDevelopment #SoftwareTesting #code #programminghelp
-
IMHO, good code is code that is scalable and easy to test.
I don't believe in things like "readable". Something is readable when you share the same background culture and language, so readable is not mesurable. In other words, readable is subjective, not objective.
- Easy to test, usually also means easier to read.
- Easy to read (whatever that means in clean code) is not necessarly easy to test (setup may still be hard)#Coding #SoftwareDevelopment #SoftwareTesting #code #programminghelp
-
-
-
CW: Outdated
Does anyone know why #DNSPython hangs, when run under #GithubActions, while being imported?
Thanks
-
Does anyone know why #dnspython hangs, when run under #githubactions, while being imported?
Thanks
-
CW: Outdated
Does anyone know why #DNSPython hangs, when run under #GithubActions, while being imported?
Thanks
-
🦀 Awesome Rust
👉 A curated list of Rust code and resources
-
🦀 Awesome Rust
👉 A curated list of Rust code and resources
-
are there still any ways to automate crossposts between mastodon and twitter since the api has been changed? i see that most platforms that used to do that are now charging for their services and im not willing to pay for that #TechHelp #programminghelp
-
So what's the easiest way to handle time and date data with timezone information in #python (#pandas, #datetime, #numpy, or #xarray). I find myself switching back and forth between datetime64, Timestamp, adding timedelta or tzinfo haphazardly and have never really settled on what's the best way to handle these data. I'm primarily working with pandas dataframes or xarray datasets. #programmingHelp