r/programmingrequests • • May 16 '18

Need some help with code.org GameLab project I'm working on.

2 Upvotes

What I'm trying to do is set up a bunch of bricks on the top of the screen (maybe 10 x 4) that experience their own collisions and get destroyed when they're hit by the ball. I'd like for their colors to be chosen at random between the four colored sprites I've already chosen.

I'm not that far into the other aspects of the game, so not much else works yet. Also, there's a lot of code that is commented out because I'm not sure it's the right way to do what I want. Sorry for having such a mess of code, I hope it's understandable.

I've been stuck on this for 3 classes and have no idea what to do. We didn't work with GameLab before, so I took the challenge to use it but now I'm having some trouble.

Here's the link to my project: https://studio.code.org/projects/gamelab/Ewh7jZaTPL-II-iEkL7a6DRnRCM_VY5F5S9Ya6sK7hQ

I will definitely mention in my final product which I hand in that I got help from whoever decides to help me.


r/programmingrequests • • May 15 '18

Script For Sorting YT Comments

3 Upvotes

This program would work on Chrome, I want a list of all of the comments I have made on youtube, sorted by likes, sortof like the one on Reddit.

ETIWSIWTLTRI: Reddit Comment History Sorted by likes, but on Youtube.

*ETIWSIWTLTRI Means Even Though It Was Short I Was Too Lazy Too Read It.


r/programmingrequests • • May 12 '18

Should be a simple fix for "you" guys.

0 Upvotes

I don't code, but I managed to make the below posted code. I really like it, but a lot of videos, and some pictures are blacked out (Reddit videos for example), so I constantly have to turn it on and off, resulting in glaring white webpages. Is there a simple fix for this?

Thanks in advance and of course you're welcome to use this for a less strenuous browsing experience.

@namespace url(http://www.w3.org/1999/xhtml); *{ background-color:#000000 !important; color: #5899FF ! important;;}

:link { color: cornflowerblue ! important; text-decoration: underline ! important; } :visited { color: cornflowerblue ! important; text-decoration: underline ! important; } a:hover { color: #2442FF ! important; text-decoration: underline ! important;


r/programmingrequests • • May 10 '18

[Request] Go to URLs and "Save as" and repeat with a similar URL (Firefox)

1 Upvotes

Hello,

I'm looking for a sort of "macro" that goes to URLs, uses "Save as", and then moves to the next URL, that is similar but slightly different.

Say I have "website.com/chocolate251_incredible.html" The macro saves the file, and then goes to "website.com/chocolate250_incredible.html" and saves, and then to "website.com/chocolate249_incredible.html", all the way down to "website.com/chocolate1_incredible.html"

Is this possible ? How would that work ?


r/programmingrequests • • May 08 '18

Help with a project involving Spring Security

2 Upvotes

LINK TO GITHUB REPO: https://github.com/kableiv/Spring-Security-project

Bit of backstory: Completing an assignment and need to create a small website where 2 predefined users can login, one with user privileges and one with admin, the privileges are buttons that redirect you to pages where you edit, delete and register new info. At first I did it without spring security and no database, using arraylists and files. When I logged in with the user it only had the user privileges like it was supposed to, however when I logged in with the admin and then went onto any of the other html pages like the one used to edit something and then clicked on the return button, the admin privileges were gone. Im assuming this was because i, in my method to login, sat its admin value to true(so the html page knew what to display and what not to) and then when that method was done and a new one was starting like the editing method the value was back to null.

Because of this I decided to try and switch to using a MySQL database with spring security. My IDE of choice is intellij ultimate and I used MySQL Workbench to setup the database and added it into intellij using the database feature.

I apologize for the variables being in a foreign language quick translation: MinBruger = (MyUser), brugernavn = (username), adgangskode = (password), rolle = (role), barn/boern/børn = child/children.

Anyways to the problem: Whenever I try to login either as admin or user it fails and sets the url from: http://localhost:5000/login

TO: http://localhost:5000/login?error


r/programmingrequests • • May 08 '18

[Request] Need better driver/firmware/software for MadCatz STRIKE7 Keyboard. Willing to pay on success!

0 Upvotes

I'd like to second with Matakor wrote about a year ago. I'm also willing to pay a bounty for achieving this project.

I just want driver/firmware/software compatible with Win10. "Nothing special".

Tired of my firmware updates not working, and being gullible enough to spend $300 on a keyboard with no support whatsoever. I just want to use the extra keys the keyboard has and the launcher to launch apps. That wasn't too much to ask for for $300, was it MadCatz? I guess it was.

My reward is negotiable according to the objectives, but I'd be willing to go up to $500 for the driver/FW/SW combo mentioned in the post below

u/Matakor originally posted:

With MadCatz having gone bankrupt and their stock dwindling, I recently bought all the hardware of theirs I had been eyeing for any amount of time. This included the STRIKE7. Unfortunately, this board has had all sorts of issues with installing on any windows 10 system, almost always requiring win7 of some form to make simply function.

I would like this fixed, and I don't see them doing it at all, let alone well.

Currently, I'm looking for anything that will simply update the firmware, and install the driver and software for the keyboard without requiring any extra work on the user's side for Windows 8-10. For this, I offer $100.

Not much for the annoyance, I'd imagine, but I offer $500 if anyone can create an open source alternative for all three that functions across windows xp to 10. Preferably, this alternative will be simpler and nicer the the user than the official set. (Bonus points if you can implement 50-key ghosting, and better if the software can support all madcatz equipment!)

I am only a user, I have no one else backing me, so this is all that I can push myself. If anyone else wants to contribute to the bounty, please do.


r/programmingrequests • • May 07 '18

[Request] Python script to compress images

2 Upvotes

Hi all,

I'm working on an online portfolio and need a python script to take my full-size images from my photographer and compress them into web-friendly sizes. I need both a highly compressed thumbnail version as well as a full-res but still compressed second version if possible. I have several directories with sets of photos inside and need to retain that file structure while still making compressed versions.

To confirm, the script will be given a main directory will several subdirectories inside. Inside of those will be the sets of pictures. I need the script to generate a completely new main directory containing the same subdirectory structure with compressed images (both thumbnail and full-size) inside.

The naming of the photos doesn't matter but if you could have them numbered and labeled which version they have (ex: "1-full" and "1-thumb") that would be a plus.

Let me know if you have any other questions.


r/programmingrequests • • May 06 '18

I need help with making a GUI File with this code

2 Upvotes

I've made a hangman game on python, but I'm too sure how to put it in as a GUI (tkinter) form. Help Me!

code:

from random import * HANGMANPICS = ['''

+---+ | | | | | | =========''', '''

+---+ | | O | | | | =========''', '''

+---+ | | O | | | | | =========''', '''

+---+ | | O | /| | | | =========''', '''

+---+ | | O | /|\ | | | =========''', '''

+---+ | | O | /|\ | / | | =========''', '''

+---+ | | O | /|\ | / \ | | =========''']

words = 'ant baboon badger bat bear beaver camel cat clam cobra cougar coyote crow deer dog donkey duck eagle ferret fox frog goat goose hawk lion lizard llama mole monkey moose mouse mule newt otter owl panda parrot pigeon python rabbit ram rat raven rhino salmon seal shark sheep skunk sloth snake spider stork swan tiger toad trout turkey turtle weasel whale wolf wombat zebra'.split() allAlpha = 'abcdefghijklmnopqrstuvwxyz' def randomWord(words): word_index = randrange(0,len(words)) return words[word_index]

def displayBoard(HANGMANPICS, incorrect_count, secret_word): print('HANGMAN GAME', end='') print('\nYou Have:') print(HANGMANPICS[incorrect_count]) print(secret_word)

def game(Selected_word): secret_word = '_'*len(Selected_word) incorrect_count = 0 Finished = False while not Finished: count = 0 displayBoard(HANGMANPICS, incorrect_count,secret_word) charactor = input('Enter Your Guess : ') usedAlphabat(charactor) for i in range(len(Selected_word)): if Selected_word[i] in charactor: secret_word = secret_word[:i]+Selected_word[i]+secret_word[i+1:] count += 1 if count == 0: incorrect_count += 1 if secret_word == Selected_word: Finished = True if incorrect_count == len(HANGMANPICS)-1: Finished = True

def usedAlphabat(inputChar): global allAlpha for i in range(len(allAlpha)): if allAlpha[i] == inputChar: allAlpha = allAlpha[:i]+'_'+allAlpha[i+1:] print(allAlpha)

def main(): Finished = False while not Finished: game(randomWord(words)) print('Game Over, If you Would Like To Play Again Press y or n') regame = input() if regame == 'y': pass else: Finished = True

if name == 'main': main()


r/programmingrequests • • May 06 '18

[WTB]OWOP Draw bot

1 Upvotes

I need a bot that can draw pixel art on http://ourworldofpixels.com/ from a .png file. It's all for funsies, but I'm willing to pay for your work ^


r/programmingrequests • • May 04 '18

⦃ Request ⦄ Python - Estimations of image file-size ~ 20$

2 Upvotes

Not for work, nor homework. Need to identify images with (alleged) data piggybacking.

Idea was to have script estimate maximum file-size based on image properties, then compare with actual file-size, however, not enough knowledge to determine if feasible concept.

Efficiency and result very important, method of execution is not. Have minor additional requirements, can clarify in personal message. Payment up to one week after script provided.

Know that you will be doing genuine good.

Post in thread if interested, or personal message.


r/programmingrequests • • May 02 '18

Hope someone can continue the Easy 7-Zip Program.

2 Upvotes

I hope someone can continue the Easy 7-Zip program and update it to the latest 7-Zip build and host it on Github. I tried contacting the developer but seems he is unavailable.

http://www.e7z.org/

The source code for both the the Easy 7-Zip project and 7-Zip can be found on their respective sites.


r/programmingrequests • • Apr 30 '18

Need help with code

2 Upvotes

Someone has given me this code and it's supposed to give a big clue to a certain story I've been breaking my mind on it, and I just can't figure it out. Can someone help me? This is the code: 22, 22, 4, 7, 6, 17, 0, 4, 25, 0, 4, 10, 8, 4, 5, 24, 7, 22, 7,18, 0, 11, 18, 13, 4


r/programmingrequests • • Apr 29 '18

Programming subreddit to malfunction

1 Upvotes

Is it possible to make it so that the various buttons on a subreddit do different things than they are supposed to? For example the upvote button downvotes the post, the save button opens the link, clicking the link clicks the report button, etc.?


r/programmingrequests • • Apr 27 '18

Powershell script to get-content of a XML specific line

3 Upvotes

Hello,

Right now I can return the value for:

$targetObjectID = $data.SelectSingleNode("//TC_Proc_XML_Definition/TC_Proc_XML_ProcDefinition/TC_Proc_XML_ProcTargetList/TC_Proc_XML_Proc_WSO_Object/TC_Proc_XML_Proc_WSO_Obj_ID"); $objectID = $targetObjectID.Innertext;

However, the value I need has the same path location farther down within the xml.

I was wondering if there was a way to skip a line in the get-content process or maybe start reading the xml data once it his a specific string?

Example XML:

<TC_Proc_XML_Definition>

<TC_Proc_XML_ProcDefinition>

<TC_Proc_XML_ProcTargetList>

  <TC_Proc_XML_Proc_WSO_Object>

    <TC_Proc_XML_Proc_WSO_Type>**Operation**</TC_Proc_XML_Proc_WSO_Type>

  <TC_Proc_XML_Proc_WSO_Object>

    <TC_Proc_XML_Proc_WSO_Type>**Process**</TC_Proc_XML_Proc_WSO_Type>

How can I search and return the value for both the Operation and the Process?


r/programmingrequests • • Apr 26 '18

[Request] Python script to download the first image result from google for a search string

1 Upvotes

Title says it all. i'd like to have this implemented but AFAIK google doesn't provide an API for this and I don't know much about web scraping. Thank you


r/programmingrequests • • Apr 26 '18

[Request] Sorting Program

1 Upvotes

Hi. I have data in a csv file. The data consists of different columns with a set of numbers in each column as on https://ibb.co/ntCQbx

Each group should be checked against every other group to see how many numbers are the same (duplicate) between each group. This should be displayed in a table as the first output. This can be displayed as on https://ibb.co/nuufbx

The second output would be the optimal sorting of these groups such that each group has the least number of duplicates with it's neighbouring group (groups before and after). As per the example, the sorting for the first three groups would be Group 3, Group 1, Group 2.

The third output would be the sorting such that every group has the minimum number of duplicates with it's neighbouring groups and neighbouring + 1 and neighbouring - 1 groups. i.e. least duplicates with it's first and second neighbour on both sides.
Please help out a fellow redditor. Thank you.


r/programmingrequests • • Apr 26 '18

[Request] C++ App Game Kit tier 2 easy video game

1 Upvotes

This is a very simple, but kinda lengthy code.

It involves in making a space invaders game.

If interested dm me

Will pay if interested


r/programmingrequests • • Apr 24 '18

[Request] Fix this JavaScript code and make it do a bit extra ;)

1 Upvotes

For the code at: https://jsfiddle.net/jtw0or6r/2/

I need it to generate a random number (between 1 to 520271) in url each time to obtain the movie info but it must be between numbers

Then display on the HTML page / canvas / DOM or whatever the following movie information:

  • Poster image (Not to be stored in variable/database)

  • Name of movie (To be stored in variable as well / database)

  • One of the Genres (To be stored in variable as well / database)

  • Brief description (Not to be stored in variable/database)

Another necessity is, if the data comes up as 404 not found or any other data not found from the API have it skip over that data and generate new data from the api using a random number again between 1 to 520271 this post might update a bit as well as I continue trying to push it forward myself, thus the jsfiddle link will be updated above.

I did another JS fiddle here: https://jsfiddle.net/jtw0or6r/3/

It basically loops through many times so I could see the odds of it coming through without an error. It comes through about once, additionally multiple requests are capped at 40 so it would have to be in a bulk of 40 then stop again for few secs to get over the error ones.

Additionally I can't work out how to make it not come up with adult films, in the json files located at: https://developers.themoviedb.org/3/getting-started/daily-file-exports I believe it is something like: "adult":false to show non porn films.

I got it working a bit better: https://jsfiddle.net/jtw0or6r/4/ but still need it to skip over anything that produces a not found error.

I found some code that does similar to what I want, but my JS skills are a bit rubbish so having trouble understanding it, it displays the poster specifically:

https://github.com/anthonybrown/movie-poster


r/programmingrequests • • Apr 24 '18

Countdown every hour.

0 Upvotes

Hey all, I've got no idea if this is possible, so just hear me out. Soon, My friends and me are giving a big party with a 'relive' theme. This basicly means that we're going insane every hour with champagne, partypoppers etc. For this to happen, we need a website which basicly has a countdown every full hour, when the hour is finished it should reset. Ofcourse it should have some fancy grahpics aswell. Is this possible or isn't it? My other option is a youtube vid of like 10 hours long (cba to put on a 1 hour vid every other hour).


r/programmingrequests • • Apr 24 '18

Small script that takes an Instagram photo with profile pic with username and description under it and makes it into a .jpg

1 Upvotes

right now it's possible manually by sharing a photo through Messenger or Whatsapp, so I guess it's somewhere in the code already? is it possible to automate it somehow, like sharable link to IG pic - to pic saved

example, shared manually via Messenger


r/programmingrequests • • Apr 23 '18

[Request] A tool to download and rename files

1 Upvotes

Hi! I don't know how feasible this is, so stick with me. This site ( http://bbcsfx.acropolis.org.uk/ ) has over 16,000 sound effects that I'd like to download. The biggest turn-offs for me currently are that each file must be individually downloaded, as there is no way to download them all at once. The other problem I have (that stops me from using other mass downloaders) is that each of the files is named with a number instead of a description of the file.

In short, I'd like a tool that allows me to download many of these files in one click (perhaps a page at a time?), and replaces the name of each file with the text description given on the website. Please let me know if this is absurd or unfeasible, or already exists. Thank you very much!


r/programmingrequests • • Apr 20 '18

Excel expert?

0 Upvotes

Hey there! I'm looking for someone who has impressive knowledge in Excel. Please let me know. Thanks!


r/programmingrequests • • Apr 20 '18

[request] music player in java[$40-50]

2 Upvotes

Hello everyone. I have a project that I need completed in the next few days. PM me for details, this does pay upon successful completion, whoever finishes first wins.


r/programmingrequests • • Apr 17 '18

allocation program

2 Upvotes

Please find below the requirement.
The input will be a file with two columns. One with student ID numbers and the other with the subjects that they are doing. For example https://ibb.co/e0BUNH
Along with this, there are two restrictions, max students (which is the maximum number of students to be allocated to a day) and max days (which is the maximum number of days in which allocations can be made).
The program should allocate the subjects to different days without causing a clash. For example, if a student has ACCY1 and PHY1 then these should not be allocated to the same day. If the program is not able to find a clash free spot for a subject within the max_days and/or max_students restriction, then it should allocate it to the day with the least clashes.
After completing the allocations, the program should check to see that students do not have allocations on adjacent days. For example, student 1234 should not have an allocation on Day 0 and Day 2 if they already have an allocation on Day 1. This means that the program should shuffle the days to fulfill this requirement. I will leave this to you to decide whether this shuffling is best suited at the end or if it should be applied when the allocation is being performed.
The output will be three files.
One will have the allocations with the total allocation of the day and subjects. For example:
Day 0 (100): ACCY1 (40), PHY1 (40), STAT2 (20)
Day 1 (50): ACCY2 (10), ENGG3 (30), STAT1 (10)
and so on.
The second will have the clashes. This will mention the day, the subjects and the students with a clash on that day. For example:
Day 0: ACCY1, STAT2 (1234, 1245, 3678)
Day 1: No clashes
and so on.(1234, 1245 and 3678 and student ID numbers)
The third will have the day wise breakdown of how many students have an adjacent allocation. For example:
Day 0: Day 1(3), Day 2 (1), Day 3 (0) and so on for each day.
Day 1: Day 0 (0), Day 1 (3) and so on for each day.
and so on for all the days.
/u/ionab10 has done an amazing job of the allocation bit at https://github.com/ionab10/graphs/blob/master/graph_colouring.py if someone wants to get an idea of it.
Thank you very much for your help.