r/programmingrequests • • Sep 19 '20

need help [C#] Could somebody create a battery percentage system tray icon for Windows 10?

2 Upvotes

https://github.com/kas/percentage exists but there are problems with it, it does not check the background color of the taskbar, the text is blurry or not readable, it would be awesome if somebody could create a minimal program which just displays 100% for example, using the same font as the default clock / date


r/programmingrequests • • Aug 16 '20

Mnemonic Generator

2 Upvotes

I am aware of programs like soundex and megaphone that take a name and break it into phonetic classification. But would it be possible to take a word and classify it then compare to other classified phonetics and return similar sounding phrases and words? Right now i have a spreadsheet of Russian words with potential mnemonics and it is a headache to think of them. Wouldn't automation be as simple as having both a Russian and English phonetic database and comparing the two?

Also I have very little programming knowledge so feel free to crush my hopes of automating this process.


r/programmingrequests • • Aug 15 '20

solved Is there a way to extract URLs from the many HTML files that I've downloaded?

2 Upvotes

I've used Wayback Machine Downloader to backup a couple small sites. Many of the HTML files feature hotlinks, embedded content, and outgoing URLs (all of which is content that isn't downloaded).

Is there a program or a script that I could run that would scrape all URLs from numerous files and put them into a text document? It'd be very difficult to do this one document at a time. (I'm not savvy enough to script something like this myself.)


r/programmingrequests • • Aug 09 '20

Lifelong idea: Game where people have to guess the genre of a song by listening to it for 15 seconds.

2 Upvotes

Sorry if this idea doesn't belong here.

The idea is for the game to be somewhat similar to those found on Sporcle.

Basically, a song is randomly chosen from a specific bank of of a couple thousand songs (probably embedded from YouTube). Then the 15 second clip begins from a random position within that YouTube video (as long as it's not within the last 15 seconds of course).

When the song is uploaded, it is uploaded with a specific genre that is the "correct" genre (using Apple as a source). Each question is multiple choice and the players are presented with something like 12 broad genre options.

Of course, the player can't see the title or the artist of the song. That's so they base it entirely on the sound.

The game is probably done 20 songs at a time. The players are given usernames and some sort of high score type accomplishment just like they are on Sporcle.

But the REAL point of the game is to try to see what other regular people think that a song's genre is. If enough people play the game, then we'll have a really solid profile for each song. For example, Apple might automatically categorize every Drake song as Hip-Hop/Rap. But if 90% of people think that one of his songs is R&B/Soul, then you could argue that Apple is basically wrong.

You could even give the songs a weighted score based on how good at the game each person is. That way you could stop people from trolling and just calling every song the wrong genre.


r/programmingrequests • • Aug 05 '20

I need a Google Hangouts Timed Script

2 Upvotes

So our manager got some weird ideas on logging our attendance and wants us to chat "IN [time in]" whenever we start work and "OUT [time out]" at the end of the day. I'm a bit forgetful so I'm hating this extra chore. I'd like to have a script that automatically messages the hangouts at a certain time within a 5-day frequency (Mondays to Fridays) without having to worry about forgetting and fuckin up my attendance because of such a small error.

Thanks in advance!


r/programmingrequests • • Aug 05 '20

need help I'm trying to construct a Sudoku puzzle with a weird extra rule but I'm stuck and I think I need a program to help

2 Upvotes

I have made a few Sudoku puzzles and I have an idea for a new puzzle but I have not been able to create it as it keeps failing over and over. I've been trying for weeks and I don't even know if it's possible at this point.

I have 0 clue how to program but I imagine it would be fairly easy to figure out a program for this. The rule is kind of hard to explain but I'll try:


If an EVEN digit is surrounded by an EVEN number of EVEN numbers (a king's move away in chess), then the cell must be equal to that number. Same goes for odd numbers.


Example: if you know a cell is EVEN and it has 2 even numbers and 6 odd numbers around it, then it must contain a 2. Similarily if an ODD cell is surrounded by 5 odd numbers and 3 even numbers, then it must contain a 5. If an even number has 3 even numbers around it, then nothing happens - it can be any even digit.

I would like it so that if a cell is able to meet this requirement, then it MUST meet this requirement without breaking Sudoku rules. In the final puzzle I would like these cells to be coloured grey so the solver knows that they are the special ones.


Visual explanation: [this is an example with random even/odd digits in the grid (green = even, purple = odd).] (https://i.imgur.com/kSZfkRB.png)

The number tells you how many digits of the same parity surround that number. Basically if a purple cell has an odd number in it, then that must be the value in the cell. If a green cell has an even number in it, then that must be the value in the cell.

Obviously this configuration in the image cannot possibly work as there would be many rows/columns with the same digit in them.


Now where I keep getting stuck is that obviously I can't have two of the same number in the same row, column, or box. So if I have a 2 that meets the requirement, there cannot be another 2 that meets the requirement anywhere in the row, column, or box. This obviously gets harder and harder to add more digits and ensure that the rule is satisfied without breaking regular Sudoku rules. I have come very close but it always seems to fail.

THIS IS THE CLOSEST I'VE COME

As you can see everything works except the bottom right area where it spectacularly falls apart.

At this point if someone could just prove that a working configuration does not exist I'll be happy and move on to something else. Or if it does exist, then please help me find it 🙏


r/programmingrequests • • Aug 02 '20

Android/Java side project

2 Upvotes

Looking for someone who wants to work on an android/Java retail side project. Hoping to improve skill and learn. Thanks for your interest


r/programmingrequests • • Jul 31 '20

not enough info A Script That Notifies If An Item Is In Stock

2 Upvotes

Hi, can anyone help me with a script that tells me when an item is re-stocked on an online store that doesn't have the option by default.


r/programmingrequests • • Jul 28 '20

Find if Tiktok user is live without a mobile device

2 Upvotes

I'm hoping someone can give me a python or some other automated script to get if a Tiktok account is live or not, it doesn't display it on the website so I cant scrape it from there.

Any Ideas?


r/programmingrequests • • Jul 27 '20

A firefox or chrome addon for rottentomatoes.com for sorting movies by audience rating

2 Upvotes

Spare me any spiels about how I should leave the narrative to the critics because of this or that. This feature should already exist.


r/programmingrequests • • Jul 24 '20

Looking for help developing a simple order creator for the Papa Louie franchise (preferably on Desktop.) If you're willing to help me code the UI, DM me! (Image is a UI mockup.) (Reposting because i got spam filtered)

2 Upvotes

r/programmingrequests • • Jul 17 '20

[C network programming] Help. im totally retarded in socket programming :(

2 Upvotes

Can anyone help me with these 3 questions? i literally have no clue on how to do these type of coding.

It is needed to be done in freebsd jails using freenas. if someone can help me that would be great. or at least point me to a right direction.

1)Write a program in C that fork() 2 childs and wait for the 2 childs to exit, and then the program will output the exit status of both child.

2)Write a program in C that fork() 2 child but only wait for the 1 child to exit, and then the program will output the exit status of the waited child.

3) Write a file in C that will fork 2 child. In the child, users are able to enter strings to write into the pipe. Parent program then will output the strings entered by users on both child. (HINT: you need to create two pipes).


r/programmingrequests • • Jul 15 '20

need help Returning page numbers - pdf file

2 Upvotes

So I need something that will make work so much easier for me.

Everyday I extract the report of my client's accounts from a consolidated report of my company. What I do is I search for the client's name, take note of every page number with my client's name, and print the noted page numbers. To ease my life, I need a code that returns a list of page numbers that contain a certain word in the pdf file.

How do I go about this? What program should I use?


r/programmingrequests • • Jun 30 '20

A bit of C code.

2 Upvotes

Can someone please help me with a C procedure named copyName( ) that takes two arguments; a string (character array) called name[ ] and a long long integer numCopies (so it is 64 bits long). The procedure makes as many copies of name[ ] in the memory as indicated by numCopies. The subsequent copies start from where the previous copy ended. So, for example, if the first copy started at 0x1000 and had five characters, then the next copy will start at 0x1005. The procedure has no return value. Since the string can have variable lengths, use C language’s null convention for termination. The characters are encoded using ASCII standard.


r/programmingrequests • • Jun 18 '20

[Python] Automated file downloads and upload from GDrive

2 Upvotes

Hi everyone! I am a Game Designer but I've managed to learn something about programming, especially I use python as it is such easy sometimes that helps me a lot in doing my tasks.

I've tried to create an automation script (specs further ahead) but I can handle only a few passages of such automation, that I could not complete even with the aid of mighty google. So I'm trying here! The script should take a .docx specific document in my drive, that is quite big, export it in HTML and then update it again on the drive, "taking care" of the unwanted old version.

- I give a URL to the script providing the address of my document. It's a Game Design document and it must stay private within my workgroup. Note that the document is big
- The script will export such document in .html
- Bonus points: The script will look for Header 1s and make them foldable (like spoilers in old forums)
- Then the .HTML file, that is exported as a .zip must be unpacked and the .HTML file should be uploaded in the same position of the .docx file on GDrive, replacing the old one
- This procedure should automatically happen let's say every time I turn the PC on, or every couple hours if my PC is online and working

I've managed to make up to the second point (exporting HTML file) but the only thing I can get is the zipped file, and I'm not able to do anything with it. Also the code is probably dirty as it's a collage of things I found online but I don't actually know why or how are they working. So please help me :)

Thank you!


r/programmingrequests • • Jun 03 '20

need help Looking for Microsoft Teams bot that alerts to potential severe weather as forecast by the Storm Prediction Center

2 Upvotes

The Storm Prediction Center (spc.noaa.gov) puts out forecasts of potential upcoming severe weather a few days in advance. These are not watches/warnings, but are notifications that there might be some activity.

Areas of various levels of risk are defined by polygons and are published here - this is a static link and the most current information is always found there. A sample copy of this file is posted below for your convenience.

I would like a bot to monitor this feed and if my location is ever within one of the polygons for an alert to post to a teams channel. The psuedo-flow looks like this:

  • Configure the bot with a location to monitor. This should be stored as lat/long in decimal form to two decimal points. It would be ok to ask that I look up and enter my own coordinates.

  • At six hour intervals query the published polygons.

  • If my location is within a polygon, post a notice to the teams channel.

To determine if the location is within the polygon or not, the winding number algorithm might be a good choice.


r/programmingrequests • • Jun 01 '20

Looking for command line utility that lets user compare values in binary insertion sort process in order to make a "Favorites" list.

2 Upvotes

Hello,

I’m looking for a software/command line utility that can accomplish the following:

Binary insertion sort with user input for comparing items.

In other words, an application that can help you find the position of an item in a list of your favourites according to your preference, with as few comparisons as necessary.

All of this assumes transitivity, meaning if I like A more than B and C more than B, I’ll like A more than C. No exceptions!

This method of sorting would be used to rank my favourite movies. Let’s show what it would look like in practice:

>>Enter item to start binary insertion sort in favoriteMovies.txt:

>>”Heat”

>>Position found! [1]

>>Enter next item:

>>The Silence of the Lambs

>>Do you like it more than “Heat” [1]? (y/n)

>>Y

>>Position found! [1]

>>Enter next item:

>>Philadelphia

>>Do you like “Philadelphia” more than “The Silence of the Lambs” [1]? (y/n)

>>N

>>Do you like “Philadelphia” more than “Heat” [2]? (y/n)

>>N

>>Position found! [3]

>>Enter next item:

>>Forrest Gump

>>Do you like “Forrest Gump” more than “Heat” [2]? (y/n)

>>Y

>>Do you like “Forrest Gump” more than “The Silence of the Lambs” [2]? (y/n)

>>Y

>>Position found! [1]

In the end, the favoriteMovies text file would look like this:

Forrest Gump

The Silence of the Lambs

Philadelphia

Heat

Of course, this list should be able to be indefinitely long and also work with a preexisting file.

To further elaborate, let’s show an example with 1000 items:

  • First, the program asks whether I like it more than item in line 500

  • If I say no, it asks whether I like it more than item 250

  • If I say yes it asks me whether I like it more than item 375

  • If I then say no it asks me whether I like it more than item 312

  • If I then say yes it asks me whether I like it more than item 343

  • If I then say no it asks me whether I like it more than item 327

  • If I then say yes it asks we whether I like it more than item 335

  • If I then say yes it asks me whether I like it more than item 339

  • If I then say no it asks me whether I like it more than item 337

  • If I then say yes it asks me whether I like it more than 338

  • If I then say yes it will insert itself between line 338 and 339

I believe this shouldn’t be too hard from a programming perspective, right? After all, the only difference to a normal binary insertion sort would be that the comparison is done by a human instead of a computer, with corresponding “yes/no” questions.

So, does anybody know something like this that exists already/can help me out with some code?

I believe this python script provides a solid foundation, yet sadly, I have no idea how one would combine it with user input rather than letting the script compare the integer size. Also, it lacks the convenience of being able with a already existing favorites list.

Any input is highly appreciated!


r/programmingrequests • • May 23 '20

homework Please help, I'm stuck on a small part in my homework assignment

2 Upvotes

Here is the assignment:

"Write a program called test4.py that plays the following card game:

The game starts with certain initial amount of dollars.

At each round of the game, instead of flipping a coin, the player shuffles a deck and draws 6 cards. If the drawn hand contains at least one ace, the player gains a dollar, otherwise they lose a dollar.

The game runs until the player either runs out of money or doubles their initial amount.

To test the game, given the initial amount, run it 1000 times to determine how many rounds does the game last on average.

Provide a user with an interface to enter the initial bankroll. For each entered number, the program should respond with the average duration of the game for that initial bankroll."

I've completed my code for this already using a random.sample() function and it worked perfectly, but now he is telling us that we can only use a random.choice() function, and I am stuck. Here is my code (It doesn't work because of the random.choice() function.

import random

faceValues = ['ace', '2', '3', '4', '5', '6',
              '7', '8', '9', '10', 'jack',
              'queen', 'king']

suits = ['clubs', 'diamonds', 'hearts',
         'spades']

def shuffledDeck():
    deck = []
    for faceValue in faceValues:
        for suit in suits:
            deck.append(faceValue + ' of ' + suit)
    random.shuffle(deck)
    return deck

def faceValueOf(card):
    return card.split()[0]

def suitOf(card):
    return card.split()[2]

def scoreOf(initial):
    countFlips = 0
    bankroll = initial
    while 0 < bankroll < 2*initial: #The game will run until the player has $0 or 
double their initial starting money
        start = 0 #This is the value that will cause 'bankroll' to be increased 
based on the presence of an ace in the deck 
        flip = random.choice(shuffledDeck(), 6)
        countFlips += 1
        for currentHand in flip:
            if faceValueOf(currentHand) == 'ace':
                start += 1
        if start >= 1:
            bankroll += 1
        else:
            bankroll -= 1
    return countFlips

initial = int(input('Enter inital amount: ')) #Had to use a float to convert the 
string into an integer,
finalAmount = 0                                 #Kept getting an error for 
'bankroll'
for x in range(1000):
    finalAmount += scoreOf(initial)
    
print('Average number of rounds: ', finalAmount/1000)

Please help, this is the last assignment I have to complete


r/programmingrequests • • May 04 '20

Ejecting/reinserting a USB device via script

2 Upvotes

Is there a way to eject/reinsert a USB device via bat script or something? I have a wireless SNES controller that takes up the first spot in my joypad list. All my other controllers disconnect themselves when I turn them off. But this one stays "active" even when the controller is off.

I don't want to have to remove the dongle every time I want to stop using it.


r/programmingrequests • • May 04 '20

Trigger automatically loading old content on Facebook?

2 Upvotes

On Facebook, when you scroll to the bottom of a public page it loads more content dynamically using AJAX. However, on extremely long pages, you can be scrolling for hours to get back to a post made years ago by that page. There are no built-in controls to skip to a certain date in a public Facebook page's posts.

I was wondering if anyone would be able to help in making a script that automatically can send the request to the server to load more content from the past a bunch of times really fast? That way it loads years' worth of posts all at once instead of requiring the user to manually scroll down for hours.


r/programmingrequests • • Apr 28 '20

Could someone Help me with a tea Session optimizer?

2 Upvotes

Hello! I am a big fan of Chinese tea ceremonies and the huge variety of tea there is and I often hold little tea sessions for my friends showing them different types of tea and varieties.

Some time ago I came up with the idea of a system that would optimize the tea choice based on the participants of the tea session. How I imagined it to work is that at every session, each participant rates the tea we just drank and gives it a score out of ten. I would then have a program where I can input the name of the tea and the participant and what rating the person gave the tea. This is all so that at some point, once this database has some information and ratings in it, I can select the people that will be attending the tea session and the program will calculate the perfect tea for this group of people based on the ratings.

I would be very thankful if someone could help me with this or point me in the right direction!


r/programmingrequests • • Apr 27 '20

I need help with a programming project, C# Visual Studio.

2 Upvotes

I have to create a windows forms application. I was wondering if anyone could help me out with it, since I am very lost in the whole thing. Feel free to contact me.


r/programmingrequests • • Apr 27 '20

Read an XML and download files

2 Upvotes

I have a bunch of these xml files with links to video podcasts (enclosure url) and the corresponding metadata for those podcasts. Originally you were supposed to use this to import all these podcasts into iTunes but I don't think iTunes supports this anymore. Is there a way to quickly download all the videos linked in this file and update the title, description, author, etc.

example: https://podcast.ucsd.edu/Podcasts/rss.aspx?podcastId=6719&v=1

I don't really know much programming aside from some really really basic java.


r/programmingrequests • • Apr 19 '20

homework Programming for pay, need someone to make me a poker game in C++

2 Upvotes

As the title says $20 for a small c++ program I will provide all the details, dm if interested or reply to the post.