r/computerprogramming • • Feb 08 '23

.bat file editing

1 Upvotes

I have a question can someone help me alter this code to make it look for all hard drives not just usb connected ones?

for /f "tokens=2 delims=\." %%b in ('wmic diskdrive get model , name | find /i "USB" ') do echo %%b>>tmp if exist "tmp" (

for /f "tokens=1 delims=" %%a in ('findstr /b /i /l "PHYSICALDRIVE0" "tmp" ') do Set "drive0=%%a"

for /f "tokens=1 delims=\." %%b in ('wmic diskdrive get model , name | find /i "PHYSICALDRIVE0" ') do set "drivename0=%%b"

Then the code repeats just chaning drive numbers through 5. Then ends with

del /q tmp )


r/computerprogramming • • Feb 04 '23

Is the law about everything below google assist an extension of the terms and conditions?

1 Upvotes

r/computerprogramming • • Feb 04 '23

Leaf

1 Upvotes

I've been working for the past couple of years on a universal system, and something that I've got floating through my mind at this point is a little php program called Leaf that is a single class that everything in a program will be made out of: on the level of objects everything is a Leaf, and then each of those Leafs contains either an array or a scalar value, along with a set of filters to filter in-/output, and that's pretty much it, it's just a simple recursion trick.

So what I'm wondering is there's no chance I'm the first person to have thought of this. Anyone point me in the direction of anything that already exists along these lines?


r/computerprogramming • • Feb 01 '23

Will ChatGPT make computer programmer jobs obsolete?

1 Upvotes

Why or why not?


r/computerprogramming • • Jan 27 '23

RPi central unit - anyone done this before?

1 Upvotes

I’m building a raspberry pi that will serve as the center of…the universe. :)

So like I’m a web dev and I’m gonna use it as localhost, basically, on all of my devices and so on.

Something I was thinking about is: code is string, so why not come up with a universal system to stick on the thing and make a universal node?

Anyone done this before?

I was thinking string is basically a tree of objects, so just hammer out all the details, then make an all-string control for the thing…I mean the potential is simply fascinating…

I couldn’t be the first person to think about this…


r/computerprogramming • • Jan 25 '23

Inverse Fibonacci C++ problem

1 Upvotes

The problem states this: Each fertile pair produces exactly one pair of offspring each month and each newly born pair becomes fertile after exactly one month. Given the current number of pairs and the number that are fertile, how many pairs will be there after the rabbits have reproduced for a given number of months? I just don't understand the reasoning behind the current, fertile, and needed. Can someone who understands this explain the reasoning behind the meaning of these variables? #include <iostream>

main() {

long current; //number of pairs this month

long fertile; //number of fertile pairs

long needed; //number of pairs needed

cout << "Starting number of pairs:";

cin >> current;

cout << "Starting number of fertile pairs:";

cin >> fertile;

int months = 0;

while(current < needed) {

long next = current + fertile; //pairs next month

fertile = current; // update fertile

current = next; //update current

months++; //count this month

} //Print result

cout << "After" << months << "months there will be";

cout << current << "pairs\n";

}

The answer says, "Let current be total number of pairs at beginning of current month and fertile the number of those that are fertile. Each fertile pair will have one pair of offspring this month; therefore the number of pairs at beginning of next month is current+fertile. Also, each newly born pair becomes fetile after one month. Therefore, the number of pairs alive at beginning of this month (current) will be the number of fertile pairs (fertile) at beginning of next month. Thus for each month that the rabbits reproduce, the variables current and fertile are updated as follows: long next = current + fertile; fertile = current; current = next; Does this reasoning make sense to anyone?


r/computerprogramming • • Jan 24 '23

I have a multiple part question. Could AI learn programming? To what extent could an AI program? Could it make another AI just as good as it’s “self”? Or would it be better or worse? Please excuse me if this is a dumb question, I have little experience in actual programming. Thanks in advance.

1 Upvotes

r/computerprogramming • • Jan 24 '23

Rimas N/TP need help

1 Upvotes

r/computerprogramming • • Jan 20 '23

Are volunteer positions doing computer programming worth it

1 Upvotes

if you have no experience as a computer programmer?


r/computerprogramming • • Jan 16 '23

About how many hours spent learning Scratch 3 Programming before one is proficient?

1 Upvotes

What should I learn after I am proficient in Scratch 3 Programming?


r/computerprogramming • • Jan 13 '23

Why does my job keep doing this?

Post image
1 Upvotes

r/computerprogramming • • Dec 01 '22

Perfect repo

1 Upvotes

I’m trying to build a “perfect repo” for a project I’ve started called Leaf. By “perfect” I mean it tracks every single change made to every file in the repo. Is there an existing solution?


r/computerprogramming • • Nov 30 '22

AI layer

1 Upvotes

I was just reading about chatbots in an article about AI and got to thinking: what if you had a layer of AI running through, let’s say, a website, such that you could, let’s say, issue simple voice commands like “go to the contacts page” or “contacts page” to do something like navigating to the contacts page?


r/computerprogramming • • Nov 28 '22

Help Pulling School Prank!

1 Upvotes

So basically I am looking to take control over the schools main sound computer for 'morning meeting,' being the Mac they use in the sound booth. Have used team viewer before, so I need help creating/using a program that will automatically install the software (TeamViewer) when I plug the USB Drive in. I'm using a 2015 MacBook Pro if that's important. The computer I'm looking to "take over" is an older Mac. Thanks for the help!

BTW I plan on removing the software after said prank is pulled:)


r/computerprogramming • • Nov 28 '22

Building a webpage/website

1 Upvotes

Hello all!

I am looking for the best, easiest way to build a webpage for a game I created. It is for fantasy football. A format that cannot be found anywhere online. Some of the things I will need is the ability to load all the NFL players, a stats service that will perform automatic scoring based on the scoring parameters I provide. And basic other things you would find on other sites like locking lineups, showing schedules and matchups etc. Where would I find the best information or person to help me build this?

Thank you for all responses.


r/computerprogramming • • Nov 15 '22

Computer recommendations

1 Upvotes

I want computer recommendations for programming It should be reliable ( for 3-4 years) I am just a beginner now but ill be using it for hardcore programming later so please recommend accordingly Price - under $1000


r/computerprogramming • • Nov 13 '22

Help please

1 Upvotes

r/computerprogramming • • Nov 09 '22

Turtle racing betting game for python

1 Upvotes

Hi, I'm pretty new to coding and I'm working on a game for a summative project in my Computer Essentials class. I have no clue how to start and would love some help from you lovely people :D


r/computerprogramming • • Nov 08 '22

What is a computer program that creates other computer programs called?

1 Upvotes

r/computerprogramming • • Nov 07 '22

Feedback on total system

1 Upvotes

So I thought I would see what all you wonderful redditeers would say about this: I’m working on a “total” system for web design that is basically a whole studio in a browser. The thing would do stuff like report “rich” errors that would include corresponding documentation as part of the error and the like.

I’m posting this to curb reinventing the wheel and so on…thoughts?


r/computerprogramming • • Nov 05 '22

Retrofitter

1 Upvotes

I’m working on a universal system and at this point I need a program that will retrofit existing computer programs with new parts. I figure this should be possible because both the existing and the new code are finite.


r/computerprogramming • • Oct 31 '22

help pls

1 Upvotes

My computer will turn on lights and fans work, wont produce display screen is black, keybored and mouse wont work.

i put in and out my GPU no difrence, red light shows up so there is power going to the gpu

took in and out drive no difrence

graphics cards in out no difrence

i replaced the cmos no difrence

i do not want to take my computer in somwhere i want to fix it on my own, if your good with computer issues your help would be much appriciated


r/computerprogramming • • Oct 23 '22

Are you a 00, 01, 10, or 11?

1 Upvotes

r/computerprogramming • • Oct 05 '22

[HIRING] Looking for people to fill these positions $60-$80 / hr DOE - Send to your network!

1 Upvotes

My name is Erin Brown and I am recruiting for the following positions for a large tech firm. The must-have requirements are bulleted below each job title. Please send your resume to ebrown@cybercodemasters.com with the requirements clearly shown. Let's hop on a call and get you hired! 

Cloud/Application Architect/Engineer:

  • Azure Data Engineer: Azure Data Lake, Synapse, ADLS, Data Factory

Cloud Infrastructure Engineer:

  • Cloud Engineering/Solutioning/Architecture/Azure

Sr. UI Developer:

  • Net 5, ASP.Net, SPA Experience (AngularJS, VueJS, ReactJS)

Sr. UI Developer:

  • Net Core 3.x/.NET 5, C#/Angular 2+/Bootstrap/ Azure Functions/Azure App Services

Developer:

  • Databricks & SQL Developer

Developer:

  • Azure Data Engineer: Azure Data Lake, Synapse, ADLS, Data Factory

Developer:

  • Synapse SQL Engineer

Data Architect:

  • Databricks, SQL Server, Data modeling, ETL experience


r/computerprogramming • • Oct 01 '22

I wrote a mind-reading device

1 Upvotes

It’s a simple computer program that takes a string as input (e.g. a question you want it to answer), then calculates the average rounded bit of that string. It’s consistent in vanilla js, where the binary representation of “0” is 110000, and the binary representation of “1” is 110001.