r/programmingrequests • • May 25 '19

need help I need a motion detector/pedometer type thing.

2 Upvotes

I'm building limb 'enhancements' and am basically going to put a rocket on my leg. I need it to have a sensor that can tell when my leg is in kicking motion (this rocket is for kicks not running). After it can sense my leg in kicking motion, it will need to send a signal to my hybrid rocket engine to combine the fuel and the oxidizer to create the thrust. Then it needs to immediately close the mechanism combining the fuel and oxidizer.

So it just needs to detect the motion of a kick and send a quick signal. Also I'm willing to use a raspberry pi.

Thanks in advance, any suggestions you have for an easier method is welcome. Yes I'm taking safety precautions. No I don't want to manually turn it off and on. Also, this isn't urgent.


r/programmingrequests • • May 17 '19

need help This progect can supposedly forge someone's handwriting

2 Upvotes

So I just came ccross this extremely interesting project called "My Text Is Your Handwriting" by Tom SF Haines who is a lecturer in machine learning at the University of Bath. It supposedly learns yours or someone's style of handwriting and tries to replicate it by writing your input text. Something like that. I read that he wrote it for Linux and also got it ot run on Mac; I was really wondering if someo one of you absolute big brains here could compile this code for Windows? I have absolutely NO experience in coding or compiling so I thought I'd ask here and also thought since this project is so interesting, some of you might entertain the thought at least! Lastly, if this is the wrong sub then I'm very sorry and would appreciate if you could direct me to subs who would be interested in doing this then.


r/programmingrequests • • May 14 '19

need help FORTRAN 77 help

2 Upvotes

What is a better way to compile and run a FORTRAN 77 program?

      PROGRAM hello
            PRINT *, "Hello World"
      END PROGRAM hello

Currently I am doing this,

gcc -c hello.f

gfortran hello.o

./a.out

Is there a better way? Also how do I name the file so I don't have to use ./a.out every time. Thanks!


r/programmingrequests • • May 04 '19

need help What Do I Add And/Or Change To This Java Code For A Vending Machine So That It Can Execute The Mentioned Operations

2 Upvotes

My question is WHAT code should I add and/or change in this Java code so that the vending machine program can execute these extra operations below:

  1. The user can buy more than one type of item at the same time. Prompt user whether he/she would like to add something else to his selection after selecting the item, if yes then he is asked to enter item index number of the next item, and it continues until user says no and then purchase of all items is made.

  2. A VAT of 10% is charged on every purchase and change given after purchasing an item, all shown on a receipt.

  3. An admin pin code should be entered and then transition to a sub-menu where all the admin operations are numerically listed. Customers can only use the landing page menu and these 4 options, 1. INSERT MONEY NOTE 2.DISPLAY PRODUCTS 3.PURCHASE PRODUCT/S 5.EXIT (Set admin pin code to 8595)

  4. The user can choose to insert an amount of money between 10, 20, 50, 100, and 200 Namibian dollars.

The landing page menu would finally look like this:

**** Welcome To SuperC Vending Machine ****

**** Office Building - NUST Main Campus ****

Please Select An Option From Below

Option 1: Insert Money Note

Option 2: Display Products

Option 3: Purchase Product

Option 4: Enter Admin Pin Code - Once correct pin is entered, the user is shown a Sub-menu with these options: 1. Add new product, Remove product, Restock product, Remove Money, Add Money, Display Products, Exit)

Option 5: Exit

AND

The receipt AFTER purchasing a product/s should display this:

** X Vending Machine **

** NUST Office Building **

(The following should be aligned in a kind of TABLE LAYOUT, that we can easily do just by spacing the words in the System.out.println() functions )

Name QTY Price Total

Coke 330ml 3 12.45 37.35

S/Chips 750g 1 24.95 24.95

Bar one 1 8.70 8.70

VAT@15% - 10.65

Total - 81.65

Tendered - 200.00

Change - 118.35

**********************************CODE IMAGE


r/programmingrequests • • Apr 27 '19

need help A program that changes my Twitter bio daily

2 Upvotes

I would like a program that changes my Twitter bio every day to a random entry in a Google Sheet. I don't know much about programming, but I think that Google Apps Script would be the best option. I know how to get Twitter API keys.

Thanks!

EDIT: I found instructions for changing the bio ("description") using the Twitter API


r/programmingrequests • • Apr 11 '19

solved A program that pulls Artist, Track, Album from this site

2 Upvotes

https://www.radiok.org/playlist/?date=01%2F01%2F2019

With my limited knowledge and the HTML tags not being set up in a way that allows me to easily mine the data. I want to be able to pull specific dates into an Excel sheet for the purpose of tracking how often artists, songs, albums are played. Once it's in there I would just manually use conditional formatting to check for duplicates (unless there is a better way to do that?). Any guidance/help is greatly appreciated. Thanks!


r/programmingrequests • • Apr 09 '19

need help Help with automating (chess-related) sequence of tasks for my computer! (details in post)

2 Upvotes

To be clear I have no programming experience outside of being a 2nd Year CompSci undergrad, but I'm willing to obtain and learn whatever I need to accomplish this as soon as possible. I'll try be as concise as possible. I want to create chess repertoires but it's incredibly tedious to do so manually. I want my computer to perform the following tasks in order:

  1. [USER STEPS] Open the site beta.chesstempo.com/opening-training and select desired repertoire. Open the site lichess.org/analysis and set Average rating to 1600 + 1800. Open the program Scid vs PC and activate Stockfish 10 Analysis Engine ("Lines" set to 1). Setup repertoire opening on all three windows. Let the next move be named X-a if white to move, and X-b if black to move, X being the move number as per standard chess notation.

  2. [BEGIN AUTOMATIC STEPS] Identify if black or white repertoire on ChessTempo. If colour to move matches repertoire, play move suggested by Lichess (pale blue arrow) on all three windows. Else, play most popular move from Lichess Opening Explorer. Repeat until Lichess page no longer contains the word "CLOUD".

  3. Now if colour to move matches repertoire, wait until analysis on Scid reaches Depth 30 (number on left) and play corresponding move on all three windows. Continue to play most popular move if colours do not match. Repeat until most popular move occurred in less than 6 games, and colours do not match.

  4. Reverse a move on all three windows until Opening Explorer's next most popular move that you haven't checked has occurrence greater than 5, and colours do not match. Perform steps 2 and 3. Thus you will follow every variation in the tree that has occurred in 6 or more games. If reversed back to X-a/X-b, end code.

I spent so many hours planning and writing this blueprint; I would appreciate it so much if someone with the ability to would help me out, or direct me somewhere I would find the most help (I've posted this in 5 different subreddits, fingers crossed)! I have a rough idea of pseudocode for the steps 2 and 3, but I spent nearly 2 hours straining my brain for a solution to step 4 until I gave up. I'm hoping to automate something like this such that I can set it up and run it overnight and have a completed repertoire when I wake. What external software do I need to do this, and how would you explain the method to someone who's almost totally clueless?


r/programmingrequests • • Feb 22 '19

solved [Request] Windows Program or Script to Move a Large List of Files Automatically

2 Upvotes

Hello. I have very little experience with programming, but I believe what I need is possible....

  • I have a very large and daunting directory of files. Some files are as much as 10 folders deep.

  • I have used an existing program to export a list of the file locations in an excel spreadsheet

    • Example: R:\mainfolder\sub1\sub2\sub3\file.txt

    • They are all in one column and sorted by directory.

  • The cells within that column are now color coded (cell fill) red or green based on a list of criteria.

  • I want to move the red-labeled files to a new root folder that maintains the folder structure of the original directory.

  • I want to move the green-labeled files to a different new folder that maintains the same structure as well.

Is something like this possible?

TC


r/programmingrequests • • Feb 13 '19

what? [IDEA] finding an artist that's similar to two or more different artists

2 Upvotes

The other day I was thinking about how you get recommend similar artists on Spotify or especially Pandora. So I was asking myself if it is possible to program something that you can input two or more artists and as the output you will get an artist that is perfectly in between. It's kinda hard to explain. But imagine a mesh including every artist. Similar artists are of course closer to each other. Then I choose 3 artists I like. The program will find an artist which has a path to each artist I chose in the beginning. The requirement for each path has to be that they're somewhat the same length. So it's kinda like finding a similar artist but based on 2 or more different artists

I hope you get what I mean. And I think it would be interesting to find out what the program would put out if you give it Lady Gaga and Cannibal Corpse :D


r/programmingrequests • • Jan 22 '19

no response from op Extension that grabs certain phrases from source code

2 Upvotes

I would like to build a chrome extension that displays certain phrases from a website's source code. I only care about functionality at this point and it does not need to look pretty. Can you point me in the right direction? I can pay a little bit if someone is able to help me get this done.


r/programmingrequests • • Jan 20 '19

Random file picker for Mac that supports subfolders and can be used as an Alfred workflow.

2 Upvotes

judicious narrow jellyfish long detail enjoy terrific steep wrench follow

This post was mass deleted and anonymized with Redact


r/programmingrequests • • Jan 13 '19

[Request] Linux program for trapping mouse to single monitor

2 Upvotes

Especially a hassle when playing games, sometimes you just want your mouse to be trapped to one monitor. Here is an application (with source code) that does it for Windows, just needs to be ported to Linux which I'm not sure how to do myself.

Thank you!


r/programmingrequests • • Jan 05 '19

Amazon search, can it be done?

2 Upvotes

Okay, so I came across a way of seeing flaws within amazon (uk), where items were selling for free.

It involves looking through upcoming lightning deals yet to start, seeing if extra promotions are running, and if so adding them to a watch list.

I thought then could this be programmed? It seems simple enough, my own experience is only within SQL which would not be useful for this.

Essentially would need a script that ran on the upcoming deals page, clicked on each one, saw if there was extra promotions running, and if yes add to a watch list, if not go back and try the next one.

Any ideas?


r/programmingrequests • • Dec 10 '18

Need help adding things in C#

2 Upvotes

This is what is asked for my class, also to be in C#. I created a console program to run all this below. I need help adding the GPA section to it as well. Please also look over my work please. Thanks a lot.

Write code to maintain a list of student records. The flow of your program should be to read all student records from a file, do stuff with the records (e.g., add, update, look up, etc.), then write the possibly new information back to the file before exiting. · A student record will consist of a name, address, ID (7 digits and ID > 1000000), list of phone numbers, and a list of courses completed. o A name object will have 3 parts, first, middle, and last. o An address will consist of street number, street name, city, state (2 characters) and zip code. o A phone number will consist of area code, exchange, extension and type. For instance, with the number 814- 687-4523, 814 is the area code, 687 is the exchange and 4523 is the extension. o A course will consist of a department name (3 characters), number, semester, year, credit hours and grade. **Fields in the name, address, phone number and course object will need the appropriate set and get routines. These objects also need equals, compareto and tostring methods. **The student object has set and get routines for all data. The student object also methods to return the student's GPA, number of hour attempted, number of hours completed (assume only C- and higher count toward graduation). equals and compareto in the student object are dependent only on the ID field and the tostring only returns their name and ID. Back to the program. After reading in the student records from the file, the program asks the end user to add, update or look up information until the end user is done. When done the program will write the information back into the file. Note there are only two interactions with the file, initially reading in all the students records and at the end writing all the student records back to the file. Using a GUI will greatly help in adding or updating a student record, however it is not required. When looking up information of a student, simply display all information including the calculated methods, hours attempted, hours earned and gpa. Optionally you might want a few ways to display a student's information - everything, contact information only, school information only, or short school info only (no individual course info).

CODE:https://pastebin.com/15AtqKCR


r/programmingrequests • • Oct 24 '18

some code that returns the sound level of a specific window?

2 Upvotes

i need to know the sound level and then get a warning depending of the sound level, so when a window sound gets to high i can notice it right away, im having trouble making the get the sound level off a specific windfow part, i can do the rest


r/programmingrequests • • Oct 19 '18

[Request] Quiz Form of International Trauma Questionnaire (ITQ)

2 Upvotes

EDIT: Resolved! I used Google Forms and Google Sheets formulas, essentially. I'll link it here once I've copied it to a separate Google account if anyone who stumbles upon this wants to take it.

Would it be possible for someone to create a quiz form of this measure? Page 4 indicates how to score a completed test, with separate diagnostic (PTSD vs CPTSD) and dimensional (severity) scores.

The dimensional aspect is essentially just addition of certain scores within their categories (PTSD vs DSO, or Disturbances in Self-Organisation). The diagnostic scoring section consists of a number of parameters and seems feasible based on my very limited knowledge of programming, but that knowledge is...well, limited.

Original page is here.

Thank you for your time.


r/programmingrequests • • Sep 23 '18

[Request] Output text file with some characters stripped

2 Upvotes

I would like to create a Spotify Playlist of the CBC Music Top 20 (Text list is at the bottom of webpage) using this Playlist Converting website.

Basically, I would like a script that:

  1. Removes the numbers at the beginning of the list

  2. Removes the "" around the track title

  3. Removes the 'feat' part at the end (feat usually messes it up).

  4. Outputs the cleaned up list to a txt file

Ideally, I could then set it up to automatically update the Spotify Playlist every Thursday night (when CBC updates their Top 20), but if that's getting too difficult that's no problem.

This will be running on either Windows or Unraid, depending on which I can figure out. :-P

I can install whatever software on either system.

Thanks!


r/programmingrequests • • Sep 18 '18

js + css?, no walkthrough needed

2 Upvotes

site: quora

goal:

  • show 'upvote #' first (above the 'profile pic' & 'date')

  • make 'upvote #' better (large and in a good colour)

  • remove the word 'updated' if it has updated next to the 'date' (dont know if this part is possible)

using: https://chrome.google.com/webstore/detail/stylus/clngdbkpkpeebahjckkjfobafhncgmne

or : https://chrome.google.com/webstore/detail/styleurl/emplcligcppnlalfjknjbanolhlnkmgp

or: https://chrome.google.com/webstore/detail/live-editor-for-css-less/ifhikkcafabcgolfjegfcgloomalapol

whichever you think is simplier

have no idea how to use chrome inspector thing, is it simple?


this is the old code that used to work on chrome:

i dont know if there's a better way/strategy than w/e is being done in this code?

.pagedlist_item > div > div > div > div > .Answer.AnswerBase > div {
    display: flex;
    flex-flow: column nowrap;
}
.pagedlist_item > div > div > div > div > .Answer.AnswerBase > div > div:nth-of-type(3) {
    order: 0
}
.pagedlist_item > div > div > div > div > .Answer.AnswerBase > div > div:nth-of-type(2) {
    order: 1
}
.pagedlist_item > div > div > div > div > .Answer.AnswerBase > div > div:nth-of-type(4) {
    order: 3
}
.blue_icon .icon_action_bar-label .icon_action_bar-count {
    color: green;
    font-weight: bold;
    font-size: 14pt;
}

edit: also dunno why this code not showing good on this site reddit


things that dont seem possible yet, maybe in 2019?

  • color 'upvote #' based on if it's > a number

  • take the 'upvote #' and divide that by the views and show that instead of the 'upvote #'

Violentmonkey if ya know js https://chrome.google.com/webstore/detail/violentmonkey/jinjaccalgkegednnccohejagnlnfdag


the previous request was solved, can see here: https://www.reddit.com/r/programmingrequests/comments/9gsdjg/do_you_know_css_how_to_do_this/?


no walkthrough needed, seems to be extremely hard & complex


r/programmingrequests • • Sep 16 '18

Need a timer app

2 Upvotes

Hey I need an app/program/website that can have several timers running at the same time, also if it could have a background for each timer would be nice
- Each timer has to be 7 Min.
- timers should be reset able by clicking on them
- once timer reaches 0 could play a short audio signal.
- at least 40 timers
willing to pay !

would be better if it was on a website


r/programmingrequests • • Sep 03 '18

Mapping tool for a Zelda II randomizer overworld

2 Upvotes

So, I generated a seed for a randomized Zelda II run, and I've spawned here in-game: https://i.imgur.com/DLaPu2R.png

I want to see if I could create an easier method of mapping and keeping track of where I am and where I've been on this map, since it's been randomly generated I can't look up a map for it, I have to make it myself.

What I'm currently doing is using Photoshop to create a grid, then duplicating tiles (move tool, hold alt and drag a selected tile) into the same positions they are in-game. This is what I've got atm: https://i.imgur.com/lVXqDWB.png

This method is taking a lot longer than I'd like it to, taking the fun out of the game, hence my request here. If you can suggest an easier approach to handling this in Photoshop or another editing program, that'd also be a great help.

(The overworld is going to be larger than this map, the size is just so I have enough room to start.)

Here are the tiles I'm working with: https://www.spriters-resource.com/nes/tloztheadventureoflink/sheet/1629/

What I'm looking for is a tool where I can do the following:

  1. Quickly draw out the shape of a chunk of land, then select which tile to fill it in with.

  2. Draw individual tiles without the fill tool.

  3. Insert information into specific tiles (plain text entry is fine), so that when I click on them it pulls up said information. This would be for the towns, temples, caves and random tiles spawned in the middle of chunks.

  4. Enter important information into a separate box for specific tiles, to pop up on hover as a tooltip (for example, town names).

  5. Create visual links between cave tiles (the pitch black tile) so that I know where they go to on cursor hover or with a UI toggle.

  6. (optional) Create a list of items obtained, and where I'd found them. This information would automatically be placed into the information for the tiles they were found in. It'd also serve as a checklist to reference when searching for items I have yet to find.

I'm interested in learning how to make such a tool myself, but if you feel like it wouldn't be too much of a hassle I'd also be fine with having it be made for me. Thanks either way!~


r/programmingrequests • • Sep 01 '18

I need an album art extractor.

2 Upvotes

This shouldn't be too difficult, but my coding knowledge ends with Arduino. I need something to scan all of the music files in a directory including subdirectories, and pull the embedded art out of FLAC/MP3 files and make a folder.jpg file in that file's directory. Maybe I'm bad at searching for programs, but I can't find anything that does this. Thanks!


r/programmingrequests • • Aug 28 '18

Python... Need a Blender add-on that creates procedurally generated head models from a base head mesh (as in it manipulates the base mesh) and head textures (from a base texture).

2 Upvotes

I want to create an imageset and see if I can classify people with a neural networks trained on 3d model heads.


r/programmingrequests • • Aug 27 '18

[Paid] Soundboard program

2 Upvotes

Hello, I need a program similar to EXP Soundboard, following the same structure - when hotkey is pressed, the audio file assigned to it start playing - but I also want to be able to use my MIDI keyboard as a possible input for hotkeys.

I don't know if this is possible but I want to use my computer keyboard (like in EXP) + MIDI keyboard (I've never saw any program that does it)


r/programmingrequests • • Aug 25 '18

Is there a program that lets you manually sort a list?

2 Upvotes

I was wondering if there was a program that can organize a list according to some sorting algorithm (such as quicksort, mergesort, selectionsort, etc.), but the way it evaluates the value of each item is just by the user manually selecting the higher value item from 2 options.

I was thinking it would work like IGN's video game 2012 presidential election, where 2 characters are almost randomly selected from a list, the user chooses his preferred character, and the user continues choosing until each character can be sorted from most preferred to least preferred according to their choices (e.g. if the user prefers A to B, prefers C to B, and prefers C to D, but also prefers D to B, then the list would be ordered C, D, B, then A).

Also the program could always give new choices each time, so that the user doesn't become overly used to one item, and choose it more often because of familiarity, or choose it less often because of irritation from seeing the same thing over and over.

I thought this might make a good program to sort pictures or music according to the user's preference, or as a method to sort a list that has a value that can't be evaluated automatically by a program, and has to be rated manually.