r/programmingrequests • • Feb 26 '18

[REQUEST] Need a simple program that makes a specific change to txt files (Ready to pay)

2 Upvotes

I'm looking for someone who can write some sort of code/executable that does a very specific thing to txt files. Here is what I'd like it to do in this order:

Find lines starting with G32 in the txt file Insert a new line below these lines In the new lines copy the values of the original line Add 3 to the X value and subtract 2 from the Z value of the new line

Thats it. Example of txt file: https://pastebin.com/m6fC0VK4

Should be a simple program to make but I'm unfamiliar with programming languages so cannot do it myself. As a token for thanks I am ready to pay something to whoever does this for me. If this isn't the right place for such request kindly let me know a better one.

Thanks


r/programmingrequests • • Jan 14 '18

Finding a Russian alphamagic square

2 Upvotes

The programming task is to find a Russian alphamagic square (of which there are currently none discovered, so you will be the first).

An alphamagic square is a magic square that remains magic when its numbers are replaced by the number of letters occurring in the name of each number. Hence, for English, 3 would be replaced by 5, the number of letters in the English word "three".

The list of the names of numbers in Russian (from 0 to 1000, "ноль" means "zero" and "тысяча" means "one thousand") is here.

I know absolutely nothing about coding, but I am very enthusiastic about recreational mathematics. I hope one of you fine fellows can solve this problem via programming fairly quickly, it would be very much appreciated.

This is not homework or anything of the like, I am just interested in finding such a square.


r/programmingrequests • • Jan 04 '18

Need Python 3.6 script converted to exe

2 Upvotes

Hi, i need this script converted to an .exe, Im not sure how to do it, i have tried cx_freeze and other methods but nothing is working for me. Has anyone had luck doing this before and could give us a hand?

Script code attached here. https://pastebin.com/8qeLENnq


r/programmingrequests • • Dec 15 '17

[REQUEST] Modify the said program below

2 Upvotes
def main():
num = input('Enter a number 1 - 9,999,999: ')

try:
    num = str(int(num))
except Exception:
    print('not a number')
    return

assert 1 <= int(num) <= 9999999, 'not in range'

print(num)

while len(num) > 1:
    last, second_last = (int(n) for n in num[-2:])
    num = num[:-2] + str(last + second_last)
    print(num)


if __name__ == '__main__':
main()

here's an example run:

Enter a number 1 - 9,999,999: 50123
50123
5015
506
56
11
2

Hi, Would anyone be able to modify the program above, that after it displays the break numbers it will prompt me to enter 1 to 100 and then example I enter 26 it will give the possible results how it got 26 using only the given break numbers. Please include the main 9541 number in the computation not just after it breaks it. Please have the program not use the same number all over again if it has used two 9's it is left with only two more 9's as when you break 9541 it has four 9's when we break it. This goes with the rest of the numbers (no repeat) I mean.

Example: I break the number 9541 gives the results below:

9541 
955 
910 
91 
10 
1

The display of the result would be liked example -

Enter numbers from 1 to 100:  26

9541 
5 
1 
1 
=========================
9+5+4+1+5+1+1 = 26 

and so on. ( can use any operator +, - , * , /) as long as it gets 26 results

after this is done it will go backs to a loop and ask me to enter 1 to 100 again: I enter 30

it displays how he get's 30 but uses the remaining number available the program cannot repeat any number being used from previous number 26

if the number I entered will not be possible like it will just display FALSE and loops back again asking me to enter another number from 1 to 100.

I hope that I have explained clearly what I require.

Thank you very much :)

NOTE: I DO NOT OWN THE PROGRAM ABOVE EVERYONE CAN USE IT.


r/programmingrequests • • Nov 29 '17

[REQUEST] How to implement a Binary tree with limited info (in C)?

2 Upvotes

I have this homework (due tomorrow) but I can't seem to find a way to do it.

I was given a preorder traversal (an array of strings with all the non-existing children represented as "NULL", so it's a full tree) and nothing else. the program part is not that difficult, but I have no idea how to implement it when the only info I have is a preorder traversal. A bit of code would be nice, but I think I could do it even if somebody explained the process (eli5 style).

Thank you in advance. (save meeeee pleeeaseee)


r/programmingrequests • • Nov 17 '17

[REQUEST] Java program that outputs all possible results of a user-given equation, ignoring order of operations

2 Upvotes

I'm trying to build a calculator that does as the title says. For example, if the user inputs 4*2+3, the program will output "11, 20". However, I'm having a hard time figuring out where to start with this. Currently, my plan is to add each number and operator (I'll only need +,-, and *) to an ArrayList, each of them being a new element. However, I don't know what to do from there to get the math right. There is no limit to how long the equation can be, which has stopped some of my ideas for handling this.

Thanks!


r/programmingrequests • • Oct 09 '17

[Paid Job] Need a webscrapper/bot and a web dev

2 Upvotes

The tool I need has to perform this requirements:

  • Login to website (captcha required however can manual log in if this cant be bypassed)

  • Perform a series of searches (max of 1500 items listed per search)

  • Either extract data directly from site or download excel spreadsheet for search

  • Modify said spreadsheet, remove columns, increase values etc

  • upload the modified spreadsheet to my website

  • Repeat every 24 hours

If that is possible I will also need a search engine on my website so the consumer can look through extracted data from my site.

My website uses a shopify platform and the consumer also has to be able to check out and purchase items from the data

Price is negotiable


r/programmingrequests • • Sep 15 '17

Generalizing GJK algo from 3D to 4D (Bullet engine in Unity)

2 Upvotes

EDIT: idea seems patented. I guess this is GG

I have been looking for true GJK implementation in true 4D space for the purpose of detecting collision between moving 3D objects. I could only find 3D implementation in 3D objects, checked every frame.

Using Bullet Physics in Unity (in assets, opensource), I got nearly everything around it, but their GJK (and any other implementation I can find) is working with 3D objects only.

GJK algorithm is generalizable over any number of dimensions. I would like to sweep moving 3D objects trough time onto 4th dimension, and perform GJK on resulting 4D objects.

Creating 4D object from moving 3D object shouldnt be harder than getting 3D from moving 2D (cube from square or cylinder from circle). If we consider fake 2D, and simulate it in time (laid to 3rd dimension), we can sweep 3D volume of 2D object "falling" trough time. It requires just more of calculations already implemented in most 3D GJK implementations.


Bonus points for:

  • implementing EPA

  • doing "RealtimeSimWithOfflinePrediction", where shapes and colisions get calculated in bullet physic world independently of unity scene (supported natively by unity version of bullet, example included)

  • providing visualisation of 4D object.


If you want to do it but dont understand the logic behind and it would make it difficult, I can supply learning material to get understanding of how is algo working and else. If you meet all requests with good quality I could send you a tip on PayPal (please note I wont tip everyone with solution, if multiple would be a case)

Thanks for reading


r/programmingrequests • • Jul 29 '17

[Request] I'm not even sure if this belongs here, but can anyone decompile an APK/explain how to decompile and APK to get a sound?

2 Upvotes

Hello everyone! I'm not sure if this belongs here, but I'll get straight to the point. There's an Android game that I like called "Show by Rock." It's a Japanese game, and is written as ショウバイロック in Japanese. It has a sound that I would really like to use as an SMS alert. The sound is played if you tap the character that appears next to the word "loading" when you're loading a part of the game. It is specifically one of the sounds played when you tap the female cat girl Cyan, who appears as a white cat girl in a maid costume with black ears. The specific sound is her saying, "Nya nyanyanya." I just find it to be a really cute sound, and I'd love to use it as an SMS alert. The reason I'm asking here is because I don't have any experience with decompiling apps, and I'm not sure how to go about finding the sound in the files. I honestly couldn't even tell you if it's in the APK or not. Or if it's even in the installed files once you install the game. I assume that it is since it can be played while loading, but I'm not positive. I hope that this is an acceptable request on this thread. I can't think of a better one to put it in. Thank you so much!


r/programmingrequests • • Jul 27 '17

[Request] A simple program to delete files that have their hexadecimal hash in their filenames

2 Upvotes

I've exported .csv and .html files of the results of the duplicate images generated by Similarity which is a decent free software. Now the problem is that there are about 15'000 images that have duplicates renamed with their hashes in Hydrus Network.

I'm looking to keep the files with their original filenames, not ones that are renamed to their hashes. I can manually do this in Similarity, but since there are 15K files, it'll take a lot of time so I'm requesting a simple code to do that for me.

Any helps would be much appreciated.


r/programmingrequests • • Jul 26 '17

Help tracing some simple web requests

2 Upvotes

Hey guys, I'm trying to scrap a page on an app, and I'm getting a hard time replicating some calls made on https://play.google.com/store/account?purchaseFilter=apps specifically the "more" button at the bottom.

I asked on stackoverflow here. Anyone can help me trace where to get the parameters "token" and "pctoken"? Or anyone can point me to where I can ask this kinds of questions?


r/programmingrequests • • Jul 25 '17

Need a tapermonkey script and I'm not smart.

2 Upvotes

I need a script for tapermonkey that will push a button 1 named "suspend all" then wait a second and press save changes and then activate all and wait a second then press save changes and then wait a minute and loop.


r/programmingrequests • • Jul 25 '17

[Request] Need help running small Python script

2 Upvotes

I have an image and I need it to be run through a Python script, which is here: https://github.com/fogleman/AllRGB. The script should output an image with 16.7 million unique RGB colors while still somewhat matching the input.

I don't know how to Python and I tried to do it and now I'm stressed and tired and just want the image. Here is the input image, make sure you download the 4096x4096 image and not a thumbnail as per required in the script. I think imgur compresses large images, so it'd be better to send the output through e-mail or some other host. Man I just want a cool background.


r/programmingrequests • • Jul 20 '17

[Request] A simple timer program based on coordiantes

2 Upvotes

Hello, everyone. I don't know if this is the correct subreddit for requesting a program but if it is wrong, then please redirect me.

I want to first mention that I have zero programming experience but I need a simple timer program made. Rough sketch: http://imgur.com/Uydf6Zm.

Purpose: I want to use it for Pokemon Go, and I need the program to calculate how much time I need to wait between two coordinates.

Main Function:

  • I want the program to have 10 coordinate inputs, and I want it to calculate the distance in km based upon latitude and longitude differences of two subsequent coordinates (Eg. Coord 1 and 2, Coord 2 and 3, and so on until Coord 9 and 10).

  • Then based upon calculated km, the program makes time output by dividing km by 2.15 because in game, it takes roughly 2.15km to travel per 60 seconds. So, if two coordinates are 4.50km apart, then the time shown to the right will display 2:00 (2 minutes).

  • Next to each coordinate's input box, Erase Start Copy Paste are 4 buttons.

  • The RESET !!! is also a button but a larger one that once clicked, it erases all the coordinate inputs and defaults to None or 0, 0.

Timer:

  • Has Start Pause and Stop (3 buttons).

  • Makes beeping noise when timer reaches 0.

  • Timer stops ticking when it finishes counting down times.

Map (Optional):

  • The google map on the left is optional. If it is too difficult to code, then forget it.

  • As for the GPS marker, red is the coordinate I am currently at. Blue with numbers are coordinates that I have already traveled to. Once timer finishes counting down Coordinate 2's time, I want the program to mark Coordinate 1 with blue marker on the map and mark Coordinate 2 with red marker on the map to indicate current position. This goes until Coordinate 10.

Timer Text Color (Optional):

  • Green: Represent the times that have been already counted down.

  • Black: Current timer.

  • Red: Times to be counted down.

  • Example -- When Coordinate 2's timer is ticking, Coordinate 1's time color is green, 2's time color is black, and 3's time color is red. But once timer moves on to count down Coordinate 3's time, 2's time color changes to green, 3's time color changes to black, and 4's time color remains red.

I left some details just in case the post gets too long. PM me in reddit for details and if convenient, we can chat via Discord. Thank you.


r/programmingrequests • • Jul 10 '17

Help Needed with Python Project

2 Upvotes

I'm working on Blockchain. Using the MultiChain API .

currently , i am tasked to deploy an application on the Private Blockchain created through the MultiChain API using Python or Java. I elected to go for Python.

Anyways , i have decided that a voting application should be fine. This is because i am working in a single person group and i have till August to Submit my Project , which also serves as thesis for my Engineering Degree.

Also , i have gathered that i can use Flask(and or Django) to create a voting application and i have taken help from Chapter 7 of the book [Python Requests Essentials] (https://www.amazon.com/Python-Requests-Essentials-Rakesh-Chandra/dp/1784395412 ) . I also have the PDF of the book , if needed.

My issue is , how do i deploy it on the Blockchain ? I mean , i get it , i have to have some sort of hosting to publish an Flask App on Web. But i don't quite get how to get the Voting App to communicate with the MultiChain API or simple 'be' on the Private Blockchain that the API offers.

I did come across a Python wrapper for the MultiChain API , called Savoir , but i have no idea what a wrapper is and how to use it.

I am a pretty rookie programmer , not very expert in anything. But i do learn with enthusiasm and my career hinges on the successful completion and subsequent submission of this project.

Please help me out , i will be tremendously grateful and massively indebted to the person who can save my career.


r/programmingrequests • • Jun 22 '17

$50/hr - Need help accessing facebook API to access user's friends movie list

2 Upvotes

r/programmingrequests • • Jun 15 '17

Shared excel doc that can show all users data fast so it will not be overwritten by other users using the doc at the same time.

2 Upvotes

Looking to have a shared excel template that users can not overwrite each others data by editing the same cells at the same time. Can a macro be used to do such a task or any other ideas. I was thinking about maybe using excel as the front ends and Microsoft access as the back end but don't have a lot of experience with that. Any help is appreciated.


r/programmingrequests • • Jun 09 '17

Detectar silabas en palabras

2 Upvotes

r/programmingrequests • • Jun 09 '17

map of the united states (or more awesomely, the world) That will tell you cities with x climate conditions on a scale of 1 to 365 days

2 Upvotes

based on this map

I really wanted to make something like this (and still might if no one helps) but i have very very little programming knowledge and have no idea how to go about doing many of these things.

What i essentially want is a map similar to the aformentioned but for the whole world where cities without 365 day historicals from this site (or a better option if one is available) are just not listed and ones that do have a circle overlayed onto a static world map. The color of the circle goes from completely white to completely blue with as many transitions as possible from white to blue (or ideally 365). now the conditions for the color it is is 0-365 days that meet the specified criteria (this criteria can chosen by filling out max temperature for that day average temperature for that day minimum temperature for that day whether it rained whether it snowed etc.) then it pulls from the data to form a map. if a city has 80 days that have a max temp of less than 90 min temp of more than 40 and no weather conditions like rain are checked (so it can rain or not rain similarly if you left min temp blank it would not check for that) than it would be shown on the map with a very light blue 40 out of 365. it would be awesome as well if it could cache your most recent searches (or whatever you'd call them) so that you can compare without rain to with rain max temp of 85 to 90 etc. Another great feature for it to have if its going to be a world map possibly even a necessary feature if its going to be a global map is the ability to zoom.

The problem is i have no idea how to pull data from their website or if its even possible. and of course i have no experience with coding so id like to ask any of you for help if any of you are interested in doing something like this. I think its a very useful tool to have developed for people who might be searching for places to move to or for people looking for a place to vacation. maybe even just for those who are curious. If its too much work i'd be very grateful if i could be pointed in the right direction for how to pull data from this website or another, and a recommended code to write this in. Thank you all for reading this!

edit: perhaps it'd be better for it to be on a scale of 0 to the max days that a city has that meet the criteria to make seeing the differences between cities more obvious. The max can be displayed somewhere or maybe it could generate a ranking as well that tells you days out of the year in addition to the map. also the data


r/programmingrequests • • May 05 '17

Human-Choice Double Slit Experiment

2 Upvotes

I'd like to create an app that is sort of like the double slit experiment except for mass crowd choices.

So, basically, a person is told to trace with their fingers/mouse a path (it would appear drawn) from a point on the left of the screen to any spot they choose at the right side of the screen. In between is a "barrier" with two doors/slits, and their drawn path can't cross it except through one of those openings.

The app would have two versions randomly distributed. One which records which door the path went through AND the end point on the far side of the screen. The other, however, erases the door data right away and does not record which path was taken, only the end point.

The admin (me) should be able to see a graphic of the collective results of each of the two versions; the one where only people's (hundreds of them hopefully would participate) end point was recorded, and the one where each end point was also associated with the "door" that its path went through on the way there.


r/programmingrequests • • Apr 29 '17

A script that will run all .sh files in a directory

2 Upvotes

Title. I've got a directory with lots of .sh files and want to be able to run them all without having to manually start each one. Is there a script or something of the nature I can write to run them all at once?


r/programmingrequests • • Apr 23 '17

Help me with this problem (The Clever Typist, SPOJ.com)

2 Upvotes

Hello everyone.

Can someone help me with this problem?

I tried a BFS approach but is getting TLE.

Please give me some hints, thanks.


r/programmingrequests • • Apr 22 '17

Do-While Statement for Receipt (C#)

2 Upvotes

Sorry in advance, this is going to be a long question.

So, as the title suggests, I am trying to use a Do-While statement in C# to make a receipt. What I wish to happen is, when an order is placed, the Do-While statement will be able to see the items purchased, and the total that the purchased items should come to.

So, for example, I have two espressos that cost £2.20, a hot chocolate that costs £2.75 and a mocha that also costs £2.75.

I want the receipt to look something like:

Espresso x2 - £4.40 Hot Chocolate x1 - £2.75 Mocha x1 - £2.75 Of course, if say the order had two mocha instead of one, and maybe an extra item, like three americano for £2.50 it would look like:

Espresso x2 - £4.40 Hot Chocolate x1 - £2.75 Mocha x2 - £5.50 Americano x3 - £7.50

I understand how to do a simple Do-While code, but have no real experience of doing a Do-While statement like this. It has to be included in my assignment and the only way I can think of using a Do-While statement in my assignment is with it doing a receipt creation.

Any help would be appreciated.

My Code Currently looks like this:

namespace While_Receipt { public partial class Form1 : Form { decimal priceespresso, totalespresso, pricefilter, totalfilter, priceCappuccino, totalCappuccino, priceAmericano, totalAmericano, priceLatte, totalLatte, priceMocha, totalMocha, priceHotChocolate, totalHotChocolate, priceIceCoffee, totalIceCoffee, priceExtra, totalExtra, TotalOverall; int quantityespresso, quantityfilter, quantitiyCappuccino, quantityAmericano, quantityLatte, quantitiyMocha, quantitiyHotChocolate, quantityIceCoffee, quantityExtra;

public Form1()
{
    InitializeComponent();
}

private void btnTotal_Click(object sender, EventArgs e) { priceespresso = Convert.ToDecimal(txtEspressoPrice.Text); quantityespresso = Convert.ToInt32(txtEspressoMultiply.Text); totalespresso = priceespresso * quantityespresso; lblResults.Text = Convert.ToString(totalespresso);

pricefilter = Convert.ToDecimal(txtFilterPrice.Text); quantityfilter = Convert.ToInt32(txtFilterMultiply.Text); totalfilter = pricefilter * quantityfilter; lblFilterResults.Text = Convert.ToString(totalfilter);

    priceCappuccino = Convert.ToDecimal(txtCappuccinoPrice.Text);
    quantitiyCappuccino = Convert.ToInt32(txtAmericanoMultiply.Text);
    totalCappuccino = priceCappuccino * quantitiyCappuccino;
    lblCappuccinoResults.Text = Convert.ToString(totalCappuccino);

    priceAmericano = Convert.ToDecimal(txtAmericanoPrice.Text);
    quantityAmericano = Convert.ToInt32(txtCappuccinoMultiply.Text);
    totalAmericano = priceAmericano * quantityAmericano;
    lblAmericanoResults.Text = Convert.ToString(totalAmericano);

    priceLatte = Convert.ToDecimal(txtLattePrice.Text);
    quantityLatte = Convert.ToInt32(txtLatteMultiply.Text);
    totalLatte = priceLatte * quantityLatte;
    lblLatteResults.Text = Convert.ToString(totalLatte);

    priceMocha = Convert.ToDecimal(txtMochaPrice.Text);
    quantitiyMocha = Convert.ToInt32(txtMochaMultiply.Text);
    totalMocha = priceMocha * quantitiyMocha;
    lblMochaResults.Text = Convert.ToString(totalMocha);

    priceHotChocolate = Convert.ToDecimal(txtHotChocolatePrice.Text);
    quantitiyHotChocolate = Convert.ToInt32(txtHotChocolateMultiply.Text);
    totalHotChocolate = priceHotChocolate * quantitiyHotChocolate;
    lblHotChocolateResults.Text = Convert.ToString(totalHotChocolate);

    priceIceCoffee = Convert.ToDecimal(txtIceCoffeePrice.Text);
    quantityIceCoffee = Convert.ToInt32(txtIcedCoffeeMultiply.Text);
    totalIceCoffee = priceIceCoffee * quantityIceCoffee;
    lblIcedCoffeeResults.Text = Convert.ToString(totalIceCoffee);

    priceExtra = Convert.ToDecimal(txtExtra.Text);
    quantityExtra = Convert.ToInt32(txtExtraMultiply.Text);
    totalExtra = priceExtra * quantityExtra;
    txtExtraResults.Text = Convert.ToString(totalExtra);

    TotalOverall = totalespresso + totalfilter + totalCappuccino + totalAmericano + totalLatte
    + totalMocha + totalHotChocolate + totalIceCoffee + totalExtra;
    lblTotalOverall.Text = Convert.ToString(TotalOverall);
  }

private void lstResults_SelectedIndexChanged(object sender, EventArgs e)
{

}

} }


r/programmingrequests • • Apr 21 '17

HTTP Header Request Help

2 Upvotes

Hello,

I'm somewhat new to all of this, so apologies if this is ignorant, but I can't find the answer to my question anywhere. I have been trying desperately to change the HTTP Request headers of my php request using Guzzle and curl.

I've had no luck at all. I've tried many, many methods. Some of which I feel should have worked. I'm starting to think there's a piece of this puzzle that I just don't know. What I think is happening is this:

  1. I'm outputting the results of getallheaders() -PHP- into the browser to see what my request headers are. They always come back the same thing.

  2. I've tried using getallheaders() to output to the console, but it doesn't work. I think because it's an extension of apache, it will only work in the browser?

  3. I also think the reason I can't change the request header is because Chrome is setting their own request header and if I were to do this solely through the console, I wouldn't run into this issue. Is this correct?