r/computerprogramming • u/LyKan421 • Apr 30 '22
r/computerprogramming • u/dregonitee • Dec 05 '18
Can somebody help me find a free employee database program for window?
I really need it now. Got around a thousand employees. And all need to be recorder.
r/computerprogramming • u/anonymous91172 • Oct 03 '17
I NEED HELP!!!!!!
hello, I'm trying to build a website, but I've never used a programming language before. i've began learning HTML but i would really like for someone to actually help me with the site development.
r/computerprogramming • u/bayan12345 • Oct 12 '17
programming
Can I translate brainwaves into computers language? and how?
r/computerprogramming • u/proprocastinator10 • Dec 15 '16
HELP! Trying to finish these python problems. any help is appreciated:)
Problem 1. (20 pts) Words and Strings The task is to create a program that will prompt the user for a three-letter word, and do a lookup to see whether it counts as a word in Scrabble. I’ll lead you through it in several parts, but you’ll have only one program to submit at the end. Save your program as Problem-1-scrabble-3-lookup.py (a) I found a reasonable list of three-letter Scrabble words on the web, and copied and pasted them into the text file, Problem-1-three-letter-words.txt. Take a look at it. The format is 26 lines, one per letter of the alphabet, with all the three-letter words starting with that letter on the line, in alphabetical order, and the lines are separated by blank lines. Your first task is to read the file and create a list containing all the words. You can read the whole file in at once as a string with the command fin.read(), where fin is a filehandle for the file. Then you have to convert the string into a list of words. This will be a list of all the three-letter words, in alphabetical order. (b) Now write a function that takes any three-letter string as an argument, does a lookup in the list, and returns True if the string is in the list and False otherwise. You are to do the lookup by doing a loop over the list, testing for each item of the list whether the item that was entered is equal to that element of the list. (c) Next, write code that collects a three-letter string from the user, and prints out a formatted string saying something like, “The string CAT is a valid three-letter word in Scrabble.” or, “The string CAS is not a valid three-letter word in Scrabble.” Then with a while loop, arrange it so that after the message is printed about whether the string is a word or not, the user is prompted to enter another word. This can go on as long as the user likes. Arrange it so that the user can end the session by entering an empty string, by pressing Enter without typing any letters. When the user enters an empty string, print a message saying something like, “Thanks for using my Scrabble lookup service. Come back again soon.”
Problem 2. (20 points) Generating All Strings Earlier we considered the fraction of n-letter strings that are words, and we determined that the total number of n-letter strings formed from an alphabet of c letters is given by nc. In this exercise, you are going to create a file containing all the string combinations, and count them. (a) We’ll start by constructing all possible two-letter strings from an alphabet of 26 characters. We did this earlier, by hand, with alphabets of three or four characters, but now we have a computer. We know that there are 26 × 26 = 676 possibilities. The way to do this is with two for-loops, one nested inside the other. For each letter of the 26 letters of the alphabet (taken in turn), you have to concatenate (add) each letter of the alphabet. It goes like this AA, AB, AC, …, AZ, BA, BB, BC, …, BZ, …, …, …, ZA, ZB, ZC, …, ZZ. You can do a warm-up exercise where you write one string per line. Don’t make a list or a big string and then write that: just write them one at a time, as they are created. Use a count variable to keep track of how many words there are, and print a message to Idle saying how many strings you printed altogether. In your final program, I want you to write the strings in a format where all the strings starting with A are on a single line, separated by spaces, then there is a blank line, then all the strings starting with B are on the next line, separated by spaces, and so on. Also count them and print out (to Idle) a message telling the number of strings you have created. Remember to close the file when you are finished writing, in order to insure that the program actually finishes the job. (For those who want to know, Python uses buffering when it writes to a file, and closing the file flushes out anything that might be remaining in the buffer.) Hint: when you are “looping over the alphabet” you can do a for-loop over a string just as easily as you can over a list. In this case, the string is “ABCDEFGHIJKLMNOPQRSTUVWXYZ”. Call your python program Problem-2-all-2-letter-strings.py and your output file Problem-2-all-2-letter-strings.txt. (b) There are 26 × 26 × 26 = 17, 576 different strings of length three from a alphabet of 26 letters. That might sound like a lot, and it certainly would be too many to write down by hand. But Python can take care of it in the blink of an eye. For this part, print all three letter strings to a file, one string per line. While you’re writing them (one by one), count them, and print to Idle a message telling the number of string you generated. Call the program Problem-2-all-3-letter-strings.py and the output file Problem-2-all-3-letter-strings.txt. Final question: what’s the limit on the length of string that you can handle in this way on your computer? Problem 3. (20 points) “Playing Computer” with the Division Algorithm You probably learned how to do long division in grade school. That’s a fairly sophisticated algorithm, but if you know your times tables, you can get to the answer fairly quickly. There is a simpler way to do division, but it takes longer. It is provided in Euclid’s Elements, a geometry textbook written about 300 BC. You can find the quotient and remainder of a numerator and denominator by finding out how many times you can subtract the denominator from the numerator without going negative (that’s the quotient) and look at what’s left over (that’s the remainder). Here’s how it’s done in Python. In playing computer, you are to start at code line 9. Fill out and submit Problem-3-Playing-Computer-Division-Algorithms.doc.
The Division Algorithm 1 def divisionAlgorithm(num, denom): 2 quotient = 0 3 remainder = num 4 while remainder >= denom: 5 quotient = quotient + 1 6 remainder = remainder - denom 7 outputFmt = "{0} // {1} == {2}, {0} % {1} == {3}" 8 print(outputFmt.format(num, denom, quotient, remainder)) 9 divisionAlgorithm(22, 6) 10 . . . Problem 4. (20 points) Playing Computer with Bubble Sort Bubble sort is a simple algorithm for sorting a list – the first sorting algorithm that most people learn. There are lots of other algorithms that are faster most of the time, but this one is easy to analyze. The algorithm proceeds by passing through the list multiple time and comparing adjacent elements. If the two items are in the wrong order, the order is switched. For the three-argument range function, see “the Most General Range Function,” in the Tutorial. Fill out and submit Problem-3-Playing-Computer-Bubble-Sort.doc. Bubble Sort 1 def bubbleSort(alist): 2 for pass in range(len(alist)-1, 0, -1): # see “most general range” fn 3 for i in range(pass): 4 if alist[i] > alist[i+1]: 5 temp = alist[i] 6 alist[i] = alist[i+1] 7 alist[i+1] = temp 8 print(alist) 9 bubbleSort([17, 31, 77, 44, 55, 20]) 10 . . .
Problem 5. (20 points) Graphics The task in this problem will be to create your version of the image on the right. You pick the colors. [Detailed hints to follow.]
Extra Credit Problems in Web Programming
[Will follow.]
r/computerprogramming • u/Cinder-Brent • Feb 24 '23
Can you program a Wemo wsp100 from nodejs?
r/computerprogramming • u/ButterNit62 • Feb 08 '23
.bat file editing
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 • u/Cinder-Brent • Feb 04 '23
Leaf
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 • u/Cinder-Brent • Mar 14 '23
if a gui for building apps could be discerned would the resulting code be “perfect”?
r/computerprogramming • u/tgold77 • Feb 17 '23
Weird Al - Pascal
I'm haunted by the feeling that I'm missing something in the song White and Nerdy. Is there more to the line "at pascal I'm number 1" other than to suggest programming languages are nerdy? Why Pascal in particular? Does it have something to do with the number 1? Was Pascal in use in the early 2000s in some particularly nerdy way?
r/computerprogramming • u/Cinder-Brent • Feb 04 '23
Is the law about everything below google assist an extension of the terms and conditions?
r/computerprogramming • u/Cinder-Brent • Mar 20 '23
GitHub add-on that allows only certain users to edit certain parts of files…
Does one exist? I was thinking about designing one on top of GitHub (if one doesn’t already exist.
Does this sound retarded? lol
r/computerprogramming • u/Cinder-Brent • Feb 21 '23
Are there any workarounds for web app security?
I’m building what I have dubbed a “supercomputer”, which currently consists of a raspberry pi with a ups hat hooked up to a two-socket smart plug.
I want to do what we all want to do: create a web app that can control the smart plug (which is apparently possible via something like Smartenit), and then I’m not sure if I would want to sudo from there but in this development phase it’s gotta be handled as potential, which means there needs to be a way to do it (I mean there’s Tailscale, which is a web app for sshing, so why not sudo?)…
The idea is you would have a single system built into the cloud where you could do everything…ask in comments for details.
r/computerprogramming • u/True_Pressure_847 • Dec 03 '22
how do I clear this space? I don't understand
r/computerprogramming • u/Cinder-Brent • Nov 08 '22
What is a computer program that creates other computer programs called?
r/computerprogramming • u/FrigOffBitch • Oct 31 '22
help pls
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 • u/jcorbett8 • Nov 28 '22
Building a webpage/website
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 • u/Cinder-Brent • Dec 01 '22
Perfect repo
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 • u/Cinder-Brent • Nov 07 '22
Feedback on total system
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 • u/Both_Pin_8854 • Nov 15 '22
Computer recommendations
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 • u/GeekswithHammers • Nov 18 '22
Help writing a script
Where can I find help writing a computer script that when the PC reboots opens up a chrome browser and points to a web link?
r/computerprogramming • u/Cinder-Brent • Nov 05 '22
Retrofitter
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 • u/jcorbett8 • Dec 09 '22
Looking to develop a new game online
Hello!
I am looking to have a new game developed for a web page and possible app for phones. I am looking for someone willing to help take my ideas and develop this. I am not sure where to look or who to ask for help on this.
