r/ProgrammingPrompts • • Aug 14 '14

Food for starving Artists-Program

1 Upvotes

Hi programmers! I have a suggestion for those
who look for a project idea, for learning, to make
money or to make something good.

I mean good in both ways. Good as in quality.
Good as in morally. Do you know the saying
Fast, good, cheap pick two? Now you got it.
Maybe I'm the first who's telling you.

Before I tell you my project idea, something about
me:

I have pirated. Programing environments, 2D-tools,
3D-tools, games, music, movies. That was a long time ago.

This is my reason to write this for someone who
wants to make something.

An upload-reporting program.

This allows everyone to report to their favorite
artist if something is uploaded against the artists
will somewhere. This automatically sends the
appropriate authority the message to act accordingly.

It consists of the following 4 parts:

  • A web interface that allows everyone to send
    details about the upload (the link, the file format,
    the required programs to do it, the personal details
    of the reporting person MAYBE, and what else might
    be required to do it).

  • A database that stores all the text-strings of the
    report.

  • A part that takes all the relevant text-strings in a
    nicely formated email, with greeting and regards.

  • An outgoing interface that sends the emails when
    and where it should be send.

For example if someone finds an upload on youtube,
he/she can just go to the artists website, put the
link, the name of the work, the type of the work and
other details in a web form hit submit, and that's all.
All the details are processed on the server and
youtube is contacted or/and the authorized organi-
zation(s).

In one form or another the four parts are floating
around in mini-php-scripts, so it's not too hard to
create a program like that.

It would be a great idea if it's made with a good
documentation, to make it easy to use for people
who don't know much about programming or com-
puters in general.

Legal organizations and hosting organizations could
probably make it easy to streamline this process
and create interfaces to make it easy to find instantly
the ip of the uploader and/or viewer and set all the
legal stuff in motion.


r/ProgrammingPrompts • • Oct 20 '17

modification to the existing Plex Movie meta agent to automatically create movies tags, genre or collection

1 Upvotes

ok so over on my other thread called "some love for non English speaking people" somebody recommended this method for something im trying to archive, however after trying i could not get it to work (not sure if im doing some wrong), he or she if going to get back to me with a correct/ fixed code because that one is not going to work, meanwhile i wanted to ask to the community to see if someone know how to do this (python coding) reference: https://www.reddit.com/r/PleX/comments/76y8k8/some_love_for_non_english_speaking_people/


r/ProgrammingPrompts • • Apr 01 '20

optimize this function if you're bored.

6 Upvotes

private float roundTarget(float target) {
if (target > 0) {
if (target <= .5f) {//greater than zero but less than .5
return target = .5f;
}
return target = 1;//greater than .5
} else if (target < 0) {//less than 0
if (target >= -.5f) {//less than 0 but greater than -.5
return target = -.5f;
}
return target = -1;//less than -.5
}
return target = 0;
}


r/ProgrammingPrompts • • Apr 27 '20

We arelooking for help in creating a corona tracking app

12 Upvotes

Hey everyone!

Under the hackathon of the german Bundesregierung we crated a BLE Tracking app.

We wanted to do this open source and as a community driven project, but until now this was not really succesfull. Iam a first grad student and dont have the time nor the knowledge to realize this alone.

https://github.com/MoritzGan/TrackCovidClusterAndroid

Iam know looking for People that maybe want to join forces and create a really open source and privacy preserving tracking App.

If you are interested and know android dev/ java/kotlin/ swift or ionic/ angular please pm me :)

Everyone is welcome!


r/ProgrammingPrompts • • Mar 06 '23

Boxes / Containers database

2 Upvotes

I had an idea of database where you can store data about boxes in tree format. The structure of box object looks like this:

Box structure:

Attribute nameValue TypeDescription
idnumber (unique, counted globally)This number will be used for operations on that container.
attributiveskey-valueIn this object attributes like name, size, location will be stored. Attributes will be used for searching and filtering.
boxesarray of boxes objectsThis allows the boxes to form a tree structure.

Actions on that data will be preformed in javascript. The actions needed are add, delete, edit, filter and search. The data would be saved in JSON. Easy integration to other applications is needed.


r/ProgrammingPrompts • • Oct 17 '21

Let’s create a “Popular Congress”

0 Upvotes

With modern technology we should be able to change the way we achieve democracy.

Rather than voting on “politicians” we should be voting on “policies”

Bio-verification in smart phones is widespread now. It’s a good time to implement a verifiable voting system via these devices so that we, the people, can choose what is best for our country. It would be a truer more direct democracy. We would no longer need to elect other people to represent us because we would be able to represent ourselves directly.

Maybe utilize a form of blockchain so that votes can’t be altered by any outside party

I just don’t know how to code. I took some codecadamy courses a while back but never got that far into it.

The hardest part would be the red tape, getting this kind of thing actually voted into the system by the very representatives it would set to dismantle.

Soooooooo, what do ya’ll think?


r/ProgrammingPrompts • • Jan 21 '23

Quizlet Web Scraper

3 Upvotes

Create a program which requests a Quizlet flashcard set URL and scrape it for the term and definition of every card in the set.

Save the term and definition in a json, csv, or any other big data file type.


r/ProgrammingPrompts • • Aug 24 '18

Create a print double extension for Chrome

1 Upvotes

Basically have to get a duplicate of everything i print for a lot of documents I have to print for uni. It is of course possible to click a button to raise the amount of copies printed but having it automated would help me a lot! Please let me know if this goes way beyond what is acceptable in this subreddit. I just want to give it a try.


r/ProgrammingPrompts • • May 27 '22

Universal Filter & Sort Browser Extension (Advanced?)

Thumbnail self.chrome_extensions
1 Upvotes

r/ProgrammingPrompts • • Dec 28 '16

[Medium-Hard]Which Steam Games do you and your friend share?

7 Upvotes

Any language is acceptable.


r/ProgrammingPrompts • • Dec 24 '14

Merry Christmas to all who Celebrate!

7 Upvotes

r/ProgrammingPrompts • • Jul 23 '17

AI to generate ShowerThoughts

19 Upvotes

1.) Acquire large data set of relatively factual information (all of Wikipedia?)

2.) Exclude sentences that aren't declarations

3.) Remove sentences with uncertain context

4.) Feed these cleaned declarative statements to a deep learning algorithm

5.) Wait some time

6.) Ask it to spew out some content


r/ProgrammingPrompts • • May 06 '20

Word decoder

3 Upvotes

I've been trying to think of a way to do this on python,

It works as there are 5 columns with letters in it The columns can me mixed and see how many possible words you can make for example

Column 1: L O B F A K N E R I Column 2: L I N A Z U F O M E Column 3: E W T N V A L S G P

You can make the word BEN From the B in column 1, E in column 2 and N in column 3


r/ProgrammingPrompts • • Mar 11 '14

Password Generator!

7 Upvotes

Create a program that reads/writes a text file in which are stored passwords for different accounts. I envision the passwords being formed by random combinations of words which relate to your life in some way (this way, even though the password is random, it is still memorable). This would probably require a resizable list of words which could also be saved in the file and be modified through the program's interface.

BONUS!: Encrypt the text file while not in use by the program. I can't imagine why...


r/ProgrammingPrompts • • Nov 21 '14

need help with text game (Java)

4 Upvotes

So i started learning coding a week ago and Java is my first language I found a simple text based dungeon with health potions and random enemy's appear. im still getting the hang of reading and understanding what the code is doing. But my question is how would i go about adding something like a counter to count enemies defeated (among other things). going in and changing whats already there is easy, im not at the point where i can figure out how to implement the things i want to add. Any helps tips will be appreciated. here's what i got from youtube.

package tutorials;

import java.util.Random;
import java.util.Scanner;

public class Main {
public static void main(String[] args) {
 
    //System objects
    Scanner in = new Scanner(System.in);
    Random rand = new Random();
    
    // Game Variables
    String[] enemies = { "Sully's mom", "Old Dildo", "HER FACE!!!!", "Assassin" };
    int maxEnemyHealth = 75;
    int enemyAttackDamage = 25;
    
    //Player variables
    int health = 100;
    int attackDamage = 50;
    int numHealthPotions = 3;
    int healthPotionHealAmount = 30;
    int healthPotionDropChance = 50; //Percentage
    
    boolean running = true;
    
    System.out.println("\t Welcome to Sully's Butthole");     
    //Label
    GAME:
    while(running){
        System.out.println("\t-----------------------------");
    
        int enemyHealth = rand.nextInt(maxEnemyHealth);
        String enemy = enemies[rand.nextInt(enemies.length)];
        System.out.println("\t# " + enemy + " has appeared! #\n");
    
        while (enemyHealth > 0){
            System.out.println("\tYour HP:" + health);
            System.out.println("\t" + enemy +"s HP:" + enemyHealth);
            System.out.println("\n\tWhat would you like to do");
            System.out.println("\t1. Attack");
            System.out.println("\t2. Drink health potion");
            System.out.println("\t3. Run");
        
            String input = in.nextLine();
            if (input.equals("1")){
                int damageDealt = rand.nextInt(attackDamage);
                int damageTaken = rand.nextInt(enemyAttackDamage);
            
                enemyHealth -= damageDealt;
                health -= damageTaken;
            
                System.out.println("\t> You strike the " + enemy + " for " + damageDealt + " damage");
                System.out.println("\t> You recieved " + damageTaken + " in retaliation");
            
                if (health < 1){
                    System.out.println("\t You have taken too much damage, you are too weak to go on");
                    break;
                }
            }
            else if (input.equals("2")){
                if (numHealthPotions > 0 ){
                    health += healthPotionHealAmount;
                    numHealthPotions--;
                    System.out.println("\t You drank a health potion, healed for :" +healthPotionHealAmount +"."
                                     + "\n\t> You now have " + health + " HP."
                                     + "\n\t> You now have " + numHealthPotions + " health potions left. \n");
                }
                else{ 
                    System.out.println("\t> You have no health potions left, defeat enemies for a change to get one!");
                }
            }
            else if (input.equals("3")){
                System.out.println("\tYou run away from the " + enemy + "!");
            
                continue GAME;
        }
            else {
                System.out.println("\tInvalid command");
            }
        }
        if (health < 1){
            System.out.println("You are swallowed by the darkness of sully's ass never to be seen again.");
            break;
        }
            
        System.out.println("-----------------------------");
        System.out.println("#" + enemy + " was defeated!#");
        System.out.println("#You have " + health + " HP left#");
        //if the random number is less than 40 it drops
        if (rand.nextInt(100)< healthPotionDropChance){
            numHealthPotions++;
            System.out.println("#The " + enemy + " dropped a health potion!#");
            System.out.println("#You now have " + numHealthPotions + " health potion(s).#");
        }
        System.out.println("-----------------------------");
        System.out.println("What would you like to do now?");
        System.out.println("1. Continue Fighting");
        System.out.println("2. Exit dungeon");
        
        String input = in.nextLine();
        
        while (!input.equals("1") && !input.equals("2")){
        System.out.println("invalid command");
        input = in.nextLine();
        }
        if (input.equals("1")){
        System.out.println("You continue your adventure.");
        } else if (input.equals("2")){
        System.out.println("You exit the dungeon.");
        break;
        }
    }
{
    System.out.println("####################");
    System.out.println("#THANKS FOR PLAYING#");
    System.out.println("#####################");
    }
}

}


r/ProgrammingPrompts • • Aug 11 '19

Please spread the word around.

16 Upvotes

I created the sub r/GoProjectIdeas/ today specifically for golang enthusiasts who cannot find an idea for a project to work on or need others to contribute to their existing go projects. Hoping to see many contributors.


r/ProgrammingPrompts • • Mar 07 '25

Death notifier

5 Upvotes

Sounds a bit morbid, I know. The idea consists of:

  • An application that watches Wikipedia articles about people for the "died" entry

  • User interface for selecting certain people or categories of people (actors, musicians, etc.)

  • Mailing list for notifying users when those people die


r/ProgrammingPrompts • • Aug 07 '19

Fizz Buzz Challenge. Except you can only use 1 line of code.

11 Upvotes

Here is my submission using the R programming language

code:

replace(replace(replace(1:100,grepl(0,1:100%%3),"FIZZ"),grepl(0,1:100%%5),"BUZZ"),grepl(0,1:100%%3)&grepl(0,1:100%%5),"FIZZBUZZ")

output:

 [1] "1"        "2"        "FIZZ"     "4"        "BUZZ"     "FIZZ"     "7"        "8"        "FIZZ"     "BUZZ"     "11"      
 [12] "FIZZ"     "13"       "14"       "FIZZBUZZ" "16"       "17"       "FIZZ"     "19"       "BUZZ"     "FIZZ"     "22"      
 [23] "23"       "FIZZ"     "BUZZ"     "26"       "FIZZ"     "28"       "29"       "FIZZBUZZ" "31"       "32"       "FIZZ"    
 [34] "34"       "BUZZ"     "FIZZ"     "37"       "38"       "FIZZ"     "BUZZ"     "41"       "FIZZ"     "43"       "44"      
 [45] "FIZZBUZZ" "46"       "47"       "FIZZ"     "49"       "BUZZ"     "FIZZ"     "52"       "53"       "FIZZ"     "BUZZ"    
 [56] "56"       "FIZZ"     "58"       "59"       "FIZZBUZZ" "61"       "62"       "FIZZ"     "64"       "BUZZ"     "FIZZ"    
 [67] "67"       "68"       "FIZZ"     "BUZZ"     "71"       "FIZZ"     "73"       "74"       "FIZZBUZZ" "76"       "77"      
 [78] "FIZZ"     "79"       "BUZZ"     "FIZZ"     "82"       "83"       "FIZZ"     "BUZZ"     "86"       "FIZZ"     "88"      
 [89] "89"       "FIZZBUZZ" "91"       "92"       "FIZZ"     "94"       "BUZZ"     "FIZZ"     "97"       "98"       "FIZZ"    
[100] "BUZZ"

r/ProgrammingPrompts • • Mar 19 '14

MOD: Would anyone be interested in helping me mod this subreddit?

6 Upvotes

I am amazed at how fast numbers have grown on this sub though I fear that my schedule keeps me from moderating things as well as I should. If anyone would be interested in helping me keep this running here, I would be very grateful. Thanks!


r/ProgrammingPrompts • • Jun 14 '20

Determine the least number of coins possible to make change

21 Upvotes

This is a somewhat simple one inspired by my working at a grocery store. Write a program capable of telling you the smallest number of coins you can make change with for a given amount. Examples, 25¢ should return 1, 35¢ should return 2, and 58¢ should return 6. I’m working off of American currency here but whatever you use should work just fine too as long as you adjust for it.

Bonus features for a extra work:

  1. Make the program also tell you what coins you received

  2. Write this as a recursive method

  3. Add a feature that allows the program to make change if you’re out of a certain coin. Example: 20¢ can be made with two dimes but if you’re out of dimes you’d need 4 nickels. You can take this further by making it able to work with only a certain number of coins. For example, having one dime, you can make change for 20¢ with a dime and two nickels.

  4. Combine ideas 2 and 3

  5. Create a register class that keeps track of how many of each coin you have and totals up how much is in the register, this is well combined with idea 3.


r/ProgrammingPrompts • • Sep 05 '22

A script/bot to identify all addresses on Google Maps (in a range) that satisfy a given trait or keyword, targeting those keywords EVERYWHERE in the data associated with the address instead of just the name and default labels like Google seems to do.

8 Upvotes

I originally wanted something like this for urban exploration (post) because Google Maps has a built-in feature to identify a place as "Permanently closed," but doesn't allow you to filter for that. Simply searching "Permanently closed" shows some results but not others, and sometimes those addresses don't even display on the map (They only appear once you specifically search for it). I'm not a programmer by any means, but I was thinking that if you have a bot or script check every address in a range (either through whatever database or API Google Maps provides, or by entering addresses from an external database if it has more than Google does) it may be possible to get more results.

While that is the main draw for something like this to me, it seems like it could be useful in general as well. Searching for other keywords like "Restaurants" or "Barber" sometimes seem to do a pretty bad job at finding stuff, either not displaying things until you get really zoomed in or just straight up missing something that has those key words somewhere in the name or description. A bot that looks through all the addresses and shows a map that truly shows all the locations that satisfy that search, whether the keyword is directly in the name or hidden somewhere Google apparently doesn't check that well like a description or review, could be really useful.


r/ProgrammingPrompts • • Jan 30 '17

Full keyboard using only an Xbox controller

2 Upvotes

So I had an idea for a way you could type with an xbox controller (or any similarly formatted controller), but I don't know any programming worth a damn. However, I still like the idea, and think it could be useful (or, at the very least, fun), so if someone wants the challenge, go nuts.

My idea was to use each "button" (a,b,x,y,lb,rb,lt, and rt) to bring up a set of two character wheels, one for the left stick, one for the right stick. Moving the stick to select a character then releasing the button would type that character. The d-pad could be used for quickfire, heavily-used keys (I was thinking Comma, period, backspace, space). By using two wheels per button (plus you could use multi-button holds, like rb AND a, to bring up even more wheel combinations), I imagine you could find a spot for every normal keyboard character without making the wheels too... cluttered, I guess would be the right term. Plus, you could use select, start, leftstick-click, and rightstick-click for toggle hotkey combo keys like shift, alt, and ctrl. By using shift to create characters like !,@,#,$,%,etc. (like on a normal keyboard), rather than sticking them on separate wheels you can de-clutter the wheels even further.

I've seen a few controller to keyboard programs, but they all either just assign specific keys to specific buttons (allowing for use as a simple media controller, but not an actual keyboard) or just use the controller to select characters on an on-screen keyboard by moving up and down across a grid and then pressing a button to select the character (like you would on a console). That is not what I'm looking for. One thing to remember is that I'm not planning to use this for gaming. I'm planning on using it for writing, or navigating. (so maybe use the left stick to control the cursor, right stick to scroll when no button is held down? IDK.). I know that it won't really be practical to use as a keyboard, but I think it would be fun and interesting to use.

Anyway, that's my idea. If I'm in the wrong subreddit (which I might very well be) please inform me, and I'll immediately delete this post.

Basically, I'm a writer and a gamer, and I wanna write a chapter of a book with just my xbox controller (and maybe a mouse). Why? Because why not?

EDIT: BTW, in case my term "character wheel" is confusing, I got the idea for this whole thing from the overwatch communication wheel.


r/ProgrammingPrompts • • Mar 02 '25

Brainfuck interpreter

3 Upvotes

For those who don’t know, this is the brainfuck programming language: https://en.m.wikipedia.org/wiki/Brainfuck

Essentially Brainfuck was developed as an attempt to create the most simplistic programming language possible.

Brainfuck only has 8 commands and operates on a usually infinite array of bytes with the default value of 0.

The commands are the following:

  • increments the byte value currently pointed at by 1

  • decrements the byte value currently pointed at by 1

increments the data pointer by 1

< decrements the data pointer by 1

. outputs the value of the byte currently pointed at (usually as an ASCII value)

, accepts an input byte and stores it in the byte currently pointed at

[ if the current byte is 0, jump forward to behind the corresponding ]

] if the current byte is not 0, jump backwards to behind the corresponding [

Any character besides those 8 in the script is to be ignored and can be treated as a comment.

While this project certainly isn’t for somebody completely new to programming, it‘s a great exercise for somebody that already is familiar with the basics and is looking for a small challenge. It‘s not too complicated either though and it is incredibly rewarding seeing your little program be able to execute scripts written in another programming language.

You can find a sample „Hello World“ script for testing on the linked Wikipedia page, it does not use the input command though.

EDIT: Reddit formatting messed up the description. The commands at the top are +, - and > in that order.


r/ProgrammingPrompts • • Jun 11 '18

Experimental film project

3 Upvotes

Hello guys, i am a Brazilian cinema student and i had an idea for a small project, Glauber Rocha is a brazilian director from the last century that experimented greatly on the cinematic language, he did a movie called “The age of the Earth” that is composed of 8 reels. Glauber separated the movie in 8 so that they could be played in any order, thus creating a movie with many different meanings; the possible permutations of 8 reels is 8! (40,320) so this movie could be played in many different orders. I wanted to create a program that would play the movie at a random order every time without giving the user the ability to select the order. Sadly, i don't know any programming. If any of you are interested in doing something like this as a small creative project let me know! This doesn't have any commercial interest, it is just “something to have”.