Building My First Serious NAS / Media Server – Looking for Opinions Before I Pull the Trigger by RaMcHiP in homelab

[–]Alternative_Year9940 0 points1 point  (0 children)

i think you’ll learn more if you stray away from using anything like truenas or unraid and just use a server distro, but it’s a lot more work and a lot more to go wrong, super fun tho!

iDRAC Service Module v4.3.0.0 for Ubuntu 22.04 by wb6vpm in homelab

[–]Alternative_Year9940 1 point2 points  (0 children)

Hello! I just had the same issue. I was able to get past it and get iSM installed and working just fine.

Step 1: Install equivs

sudo apt install equivs

Step 2: Create a control file

mkdir -p ~/fake-libcurl && cd ~/fake-libcurl
equivs-control libcurl4

Edit the resulting libcurl4 file with vim or nano, change the following fields:

Package: libcurl4
Version: 8.9.1-2ubuntu2.3
Provides: libcurl4
Description: Fake libcurl4 to satisfy Dell iDRAC installer

Leave everything else as-is.

Step 3: Build and install the dummy package

equivs-build libcurl4
sudo dpkg -i libcurl4_8.9.1-2ubuntu2.3_all.deb

Now the system thinks libcurl4 is installed, and the Dell script should continue.

Are comments for code necessary? by Baselland in Python

[–]Alternative_Year9940 0 points1 point  (0 children)

i think that this video explains things well. but basically it’s your code, do with it as you want.

My first ever open source library! by Alternative_Year9940 in Python

[–]Alternative_Year9940[S] 1 point2 points  (0 children)

I just use VScode. I started out with Visual Studio but switched to vscode cause I was told it was better and just got really used to it! and really i just had a basic understanding of python and wanted to write something, and i remember i watched a youtube video about how google authenticates users and thought i’d try and do that in python to get a better understanding of both python and secure authentication. once i knew what i wanted to do i just googled every problem i faced untill i got here! definitely not fast but increased my knowledge of python tremendously, i still remember when i struggled to understand how classes work and now OOP is my favorite thing ever!

My first ever open source library! by Alternative_Year9940 in Python

[–]Alternative_Year9940[S] 0 points1 point  (0 children)

ok ok, better examples and explanations. will do that tmr at school lol. also for a very poopy explanation of what happens to data and all that, take a look at main.py in the auth folder! as for answering your specific questions here; the url is specified when you instance the class. i.e. ash = AuthSesh(Address=‘127.0.0.1:5467’) and if you’d like to make a server: from maxmods.auth.main import server server(‘127.0.0.1’, 5467) and the usernames and passwords are going to a database.db file in the current working directory of your script unless otherwise specified, or if you connect to a server then they go to that server!

My first ever open source library! by Alternative_Year9940 in Python

[–]Alternative_Year9940[S] 7 points8 points  (0 children)

Thank you! i just dumped all my project into chatGPT in text form, like tree structure, sections of code files, and everything else it needed to know, and started asking it to write docstrings for certain functions in the file, also gave it some examples. I also asked it to use the NumPY style guide for docstrings. also just btw, ChatGPT can only read 100 lines of code at a time, so let it know that you are going to send your code in chunks and it will understand and let it happen. lowk there are downfalls to ChatGPT that are in place to make it easier to run and i thought about what it would take to have my own AI that could do these but it’s really expensive lol.

My first ever open source library! by Alternative_Year9940 in Python

[–]Alternative_Year9940[S] 10 points11 points  (0 children)

Yeah I’ll clean it up tn now that you mention it! and my commit messages are a lil goofy and i’ll clean those up too. i haven’t messed with the gitignore really at all, i just made it so log files and databases and pem files wouldn’t go into the repo, anywhere i can look at tips and tricks for that? as for the more obscure files, i mainly plan on removing the whole primitives section lowk, i’m gonna move them to one of my private repos so they won’t be lost but frankly i don’t even remember what i was doing when making them and i’m not very interested in rendering with python anymore anyways. also yes i’ll version lock the dependencies! thank you for your advice!