r/programmingrequests • • Aug 09 '22

need help Turning a Manual Input into a Random Input

2 Upvotes

Need someone to help / tell me how to change a manual input on the STUMPS app, into a random input, where the person's input is decided by a generator. Any help is much appreciated.


r/programmingrequests • • Aug 09 '22

[PAID] Tasker workflow to automate Stortz and Bickel App (Volcano)

2 Upvotes

I am looking to setup Tasker to open the S&B App at certain times, and automatically turn the heat/fan on, and/or run a Workflow/Iteration.

It does not have to be Tasker; any other method that would work on an Android device would be fine. A further option would be instead of actually using the S&B App, to instead just send the relevant BLE signals to accomplish what I need to do.

Edit: This post may be helpful: https://www.reddit.com/r/VolcanoVaporiser/comments/vgr5cn/replacement_bags_for_hybrid/ijgzbxl

As will this: https://github.com/ImACoderImACoderImACoder/onyx


r/programmingrequests • • Jul 31 '22

Hold to spam tap floating widget for Android

2 Upvotes

There is a lot of apps on the Play Store that will take care of spam-clicking for you, they all let you set one or multiple points on the screen and starts clicking them when you hit the start button. But I am looking for something slightly different.

What I want is a floating point on the screen that you can touch and move. And as long as you touch it it, will tap that point on the screen at a pace of about 5 times per second (possibly adjustable), and then stop as soon as the point is released.

My use case would be for battling in Pokemon GO, but I am sure there are other mobile games that could make good use of such an app and heal some sore fingertips.


r/programmingrequests • • Jul 31 '22

python/javascript Seeking collaborators for Django and desktop app for DAW project collaboration for artists/bands, producers, engineers etc.

Thumbnail self.programmingbuddies
2 Upvotes

r/programmingrequests • • Jul 23 '22

[SMT] I'm looking for a bot or api to scrape my finance websites and automatically update a live csv

2 Upvotes

I'm hoping to either scrub Mint(intuit) or my personal financial websites. They require sign-in and 2fa to access detailed reports, and what I would like is to be able to have something to report transactions, fill them into a live csv that I can link to a google sheet.
I have the linking and live csv parts figured out but I cannot for the life of me find anything to either actively track or report on my spending & income. If anyone knows of a program (preferably free or <5$/month) that already does this I would love to hear of it, otherwise I'd be happy to pay for what's made. I have absolutely no preference of language, so long as I can run it on windows. I appreciate any responses


r/programmingrequests • • Jul 19 '22

need help Kindle Programming Request

2 Upvotes

Hey guys, odd request but would anyone be willing to make me a Polish to English Dictionary for the kindle? I've been trying to find one or make one for the past couple hours but No one's wanted to do this I guess nor can I code in the slightest. I've found a github set of code which could work? I don't understand any of the lingo so I'm not really sure. If there is anyone who's proficient in this kind of thing, I'll be willing to pay as I'd rather this than have to buy a tablet to be able to translate words in Polish Books. If anyone is interested, pm me so we can discuss things like links, prices etc.


r/programmingrequests • • Jul 14 '22

how much might it cost to get all the page titles from commoncrawl?

2 Upvotes

The crawl archive for June/July 2022 is now available! The data was crawled June 24 – July 7 and contains 3.1 billion web pages or 370 TiB of uncompressed content. Page captures are from 44 million hosts or 35 million registered domains and include 1.4 billion new URLs, not visited in any of our prior crawls.

https://commoncrawl.org/2022/07/june-july-2022-crawl-archive-now-available/


r/programmingrequests • • Jul 14 '22

need help Zhiyun Transmission Transmount Emulator

2 Upvotes

Hey everyone, I couldn’t find anything online so figured I’d try here. I currently have a Weebill S camera gimbal from Zhiyun. The Weebill S is capable of being remotely controlled from controller and gyroscopic field monitor. I’m looking to see if it would be possible to emulate the transmount systems that Zhiyun makes with a pc programmed controller.

I can buy the appropriate WiFi antennas and whatever other hardware may be needed, just trying to skip the big bill on being able to simply control the gimbal remotely.


r/programmingrequests • • Jul 07 '22

solved✔️ Started a new job and I'm working from home, just need a simple batchfile

2 Upvotes

Hey,

I'm very happy because I've landed the job I've wanted, which gives me time (and money) to start learning coding on my own. I'm still far away from that stage, due to onboarding and induction stuff, but I'm already geared up to work from home.

TLDR in this paragraph: basically what I want is a script file that when I click it it changes the power settings to economy and makes the two displays switch to mirror mode, and clicking it again to revert it (or another script for that) to high performance and expanded screen. It's not a payed job, I'm literally asking for someone to do me a favor, I know your time has worth. :)

The setup is my own rig and a chromebook (don't hate, it's pretty easy to learn how to work around the bugs) with two monitors. I just want to have the option to have both turned on (spotify and torrenting, for example) and I'm afraid I would forget to change the settings. Since I'm a no icon desktop guy, I'm willing to sacrifice that for 2 icons that would serve as reminders.

I can't code but I can somewhat interpret simple strings, tho.

thnaks in advance


r/programmingrequests • • Jun 03 '22

need help Google Apps Script - Help with approach to a project

2 Upvotes

Update: To explain visually what I'm trying to achieve, I've tried to do this in a vid https://www.youtube.com/watch?v=lxN_6U28zmM

I couldn't find a community that helps with the logic/pseudocode of a program, so hopefully this question sits fine here.

With Apps Script, I've imported Calendar Events into a Spreadsheet ["Time Blocks" tab] and calculated their duration in minutes. There's also a column with the unique ID of each Event.

On the "Task Estimation" tab are some tasks with the estimated time needed to complete the task and some other bits I was playing around with.

Now my brain is blocked with the logic of it all and can't work out how to move forward.

The aim for a basic version of my App Script is to assign each of the tasks to a calendar event time period ("Time Block"). Each task will then be sent to a Calendar with its corresponding details.

I'd eventually like to also apply conditions/settings to the tasks such as:

  • 450 minutes is the maximum time that can be assigned to tasks each day.

  • If a task does not have to be done in one go (can be split into different sessions) then it will be split into 45min sessions.

Here is the spreadsheet so you have a better visualisation of what I have: https://docs.google.com/spreadsheets/d/1RnlGCdLHaNfaCRnOwQ6ObJXUeVXdk6yrakTP_0CDhPU/edit?usp=sharing

In summary, this is a time-mapping project, and I'd like some ideas with the pseudocode please.

Thank you so much for your help!

Please keep your answers simple as I'm not great with coding!

Below is the Apps Script code that I have so far [updated 12th June -- any suggestions for improvement to my code would also be appreciated!]:

//getEvents & print to spreadsheet:  
function getEvents(){     
const TimeBlocksSheet = SpreadsheetApp.getActiveSpreadsheet().getSheetByName("Time Blocks");
const cal = CalendarApp.getOwnedCalendarById("[email protected]");
var Futuredate = new Date();
Futuredate.setDate(Futuredate.getDate() + 3); //how many days ahead do you want to block for?
const calEvents = (cal.getEvents(new Date(), Futuredate));
  
// Getting tasks
var tasksList = SpreadsheetApp.getActiveSpreadsheet().getSheetByName("Task Estimation");
var lr = tasksList.getLastRow();

  
//Task Settings
var sessionDuration = tasksList.getRange(2,13).getValue();
var dailyLimit = tasksList.getRange(5,13).getValue();  
var taskBuffer = tasksList.getRange(8,13).getValue();
//end of task settings
  
var timeBlocks = [];
var tasksArray = []; 

//Time Blocks(Events)

var lr = TimeBlocksSheet.getLastRow();
TimeBlocksSheet.getRange(2,1,lr,5).clearContent(); //clears content row,col,lastrow-1, 3cols
  
for(var i = 0;i<calEvents.length;i++){
  var unique = calEvents[i].getId(); //unique Event ID   
  var title = calEvents[i].getTitle();  
  var startdate = calEvents[i].getStartTime();
  var enddate = calEvents[i].getEndTime();
  var blockDuration = (enddate - startdate) / 60000; //converts the milliseconds into minutes
  
   function roundDown (blockDuration, sessionDuration) {
    return Math.floor(blockDuration/sessionDuration) * sessionDuration;
  }
  
  var noOfEventSessions = roundDown(blockDuration, sessionDuration)/sessionDuration; //uses roundDown function to get a whole number for number of sessions the Eventblock can take
    
  timeBlocks.push({
    BlockID: unique,
    BlockName: title,
    BlockStart: startdate,
    BlockEnd: enddate,
    AvailableTime: blockDuration,
    NoEventSessions: noOfEventSessions,
    allocatedTime: 0
    
  });

  TimeBlocksSheet.getRange(i+2, 1).setValue(title);
  TimeBlocksSheet.getRange(i+2, 2).setValue(startdate);
  TimeBlocksSheet.getRange(i+2, 2).setNumberFormat("dd/MM/yyyy h:mm:ss am/pm");
  TimeBlocksSheet.getRange(i+2, 3).setValue(enddate);
  TimeBlocksSheet.getRange(i+2, 3).setNumberFormat("dd/MM/yyyy h:mm:ss am/pm");
  TimeBlocksSheet.getRange(i+2, 4).setValue(blockDuration);
  TimeBlocksSheet.getRange(i+2, 5).setValue(unique);  
    
} //closes For loop
  
//Task loop  
for(var i = 2; i<=lr-4; i++){
  var taskID = Date.now() + Math.floor(Math.random());//unique task ID
  var taskTitle = tasksList.getRange(i,1).getValue(); //get task name
  var taskSplittable = tasksList.getRange(i,2).getValue(); //can the task be done over different session/days etc?
  
  
  var taskDuration = tasksList.getRange(i,3).getValue() * 60; //task duration in minutes, must be entered in spreadsheet as decimal e.g 1.5 = 1hr 30mins (90min) #### try to change ease of entering ####
  var taskDurationWbuffer = taskDuration * taskBuffer; // This is est of how long the task will take including the desired buffer entered in spreadsheet
    
  function roundUp (taskDurationWbuffer, sessionDuration) {
    return Math.ceil(taskDurationWbuffer/sessionDuration) * sessionDuration;
  }
    
  var noOfTaskSessions = roundUp(taskDurationWbuffer, sessionDuration)/sessionDuration; //uses roundUP function to get a whole number for number of sessions the task will require for completion
    
  tasksArray.push({
    TaskID: taskID,
    TaskName: taskTitle,
    TaskSplittable: taskSplittable,
    TaskDuration: taskDurationWbuffer,     
    TaskSessions: noOfTaskSessions,
  });
     
}//closes for loop
  
tasksArray.map(isSplittable);
timeBlocks.map(blocks);

var freeEvents = [];
//freeEvents.map(freeEvents); //should word in () match the var name?
  
//var occupiedEvents = [];
//occupiedEvents.map(occupiedEvents); //should word in () match the var name?

function isSplittable(task){
  var splittableTasks = [];  //do i need this?
  if (task.TaskSplittable == "Yes") {
    splittableTasks.push(task); //do i need this?
    var taskSessionsCounter = 0;
    
    while (taskSessionsCounter < task.TaskSessions){
      function blocks(block){ //1 here I want to loop through the timeBlocks array
        
        while (block.allocatedTime < block.NoEventSessions){
        block.allocatedTime++; //2 add +1 to each block in timeBlocks.allocatedTime
        } //closes while block
        
        } 
      var occupiedEvents = timeBlocks.find(function (item){
      return item.allocatedTime == item.NoEventSessions;
      });
      
      Logger.log(occupiedEvents);
      //occupiedEvents.filter(block);//3  once timeBlocks.allocatedTime = timeBlocks.NoEventSessions splice/send event to occupiedEvents array
     taskSessionsCounter++;
        }
            
      //6 add properties to the occupiedEvents array: taskID, tasktitle
      
    }
    
    //7 then Logger.log(occupiedEvents);
    
else if (task.TaskSplittable == "No") {
  return [task.TaskName + " cannot be split, decide what to do"];
  } else{
    return ["Not sure yet"];
  }
  
} //closes splittable tasks function


} // closes getEvents function

r/programmingrequests • • May 17 '22

(Python) Take a text file with a list of words, and find n-character strings with x results along with the corresponding words

2 Upvotes

I don't code at all, and I don't know if this subreddit is appropriate for this, but here I go.

If you take a list of words (separated by newline) like:

clean
clear
dream
see

and tell the program to find 3-character strings with 2 results, it should output a text file that contains

CLE clean clear
LEA clean clear

So essentially, the strings are alphabetized and the words that contain that string are beside it. Or if I tell it to find 2-character strings with 1 result, it should give

AM dream
AN clean
AR clear
... (and so on)

(or maybe even n-character strings with 0 results!)

I hope I was clear enough, thanks!


r/programmingrequests • • May 16 '22

homework My website looks nothing like the one in the video I'm using as a guide, please help

2 Upvotes

In visual studio code im making a responsive website with the help of a youtube video, the problem is that my site looks nothing like the one in the video cause some of the code isn't running. How do i fix this? help

This is the video that i used: (I'm 19:20 minutes in)

https://www.youtube.com/watch?v=TVFu4-Kd4oM&t=1163s&ab_channel=Mr.WebDesigner

These are the links to my code and how the site currently looks: (sorry its that i dont know how to share with github)

https://imgur.com/a/5elkNtk

https://imgur.com/a/8zrvkr1

https://imgur.com/a/SGlLaQw

https://imgur.com/a/7kmuYvQ


r/programmingrequests • • May 13 '22

C++ Need help for a tip

2 Upvotes

Need someone to write me a program in C++.

Will tip if i get my request.

The program structure should be like this.

Menu

  1. Registration of new employee

  2. Registration of e-mail address

  3. Printing of a list of employees

  4. Printing of Fibonacci

  5. Quit program (it should have a loop)

  6. You must register first name + last name in a list.

  7. For all new employees, you must automatically create an e-mail address with the syntax of your 2 initials + three letters in the first name + three letters in the last name followed by @ universum.nu. Example [email protected]. Use a function. (nothing should be entered by you) There should also be a check for duplicates.

  8. Print a nice list with surname, first name, e-mail address. Use a function.

  9. A printout of the nth century in the Fibonacci sequence. If I enter 7, the Fibonacci number 13 should be displayed.

*NOTE ONLY IN C++ NO OTHER LANGUAGES*


r/programmingrequests • • Apr 09 '22

need help [C#] Need someone to help make an app for Razer Switchblade UI (I have link to SDK)

2 Upvotes

I just need someone brave enough to help write a discord app that will work on my deathstalker keyboard. DM me for specific design request.

$50USD prize

http://assets.razerzone.com/eeimages/sbui/Razer_SwitchbladeSDK_v2.0.2.zip


r/programmingrequests • • Jan 23 '22

Issue with a Black Jack Game, changing a value of an Ace from 11 to 1 when the user points breaks 21

2 Upvotes

So I'm trying to make a Black Jack game in Java. However, I've been having an issue with making the user's Hand point value drop from when it goes over 21 and has an Ace. I thought this would be simple 'if handArray has an Ace type and points>21 -> change value of Ace'.

But this is proving to be fairly difficult. Maybe I'm overthinking it, but my vrain is fried and I'm tired of looking at this lol. Here is my code: Basically I have a Card object with a value, all the cards are stored in an array, then I have Hand object that stores an array of Cards:

Edit: I basically forgot write the post

https://pastebin.com/kAx4XZE9


r/programmingrequests • • Jan 17 '22

Looking for new Action Replay codes for Pokémon Emerald and Platinum

2 Upvotes

Hello. I have an odd request - But I hope its interessting for some of you?

I don't know if you all remember ActionReplay codes? Those cheats allowed you to alter your gameboy games.

There is a new hype in the pokemon challange world: Warp Randomizer. Those modifications change all warp zones in the game and make it like a maze. People then try to beat it as fast as possible. "Beat" can mean different things: The most famous one requires the runner to beat all gyms and E4 members in the right order. Often in a race against other.

But sometimes you run around for three hours and can't figure out the way to the last gym. You found everything but the last piece to complete your puzzle.

When you surrender the challenge you have to use external tools to figure out where the warp leads to. This isn't only very tendious but also streamer unfriendly.

Now to my request: You don't need to search long to find port codes online which allows the player to use any warpzone to get into the area he wants. But sadly there aren't any codes for the gyms and the different E4 members. And because of the randomizer you can't just use a normal town warp and enter the gym normally.

Is there anyone who is interessted enough to write new codes for the different warp zones for each gym (8) and E4 members (5 Including the champion)? This would make it very user friendly to just port inside the gym and allows backtracking to figure out the way into it.

SadlyI don't know how hard it is to figure out the right variables for the different warp zones. I think otherwise it's probably not too hard to write the code (might be wrong. But those are only one-two lines long)

I hope I could pique someone's interest. Thanks!

(Note: I think Emerald is more famous in case someone wants to try his luck on only one game)

Edit: The codes needs to be for the US version of the games.


r/programmingrequests • • Jan 14 '22

I'll pay for help to program a record-function/macro for my Arduino Arcade Stick project

2 Upvotes

Hello everybody,

I'm currently building different fightsticks/arcadesticks and I want to build a really broken one for fun (not for tournaments or anything).

I want a code who's doing exactly what is done in this video:

https://www.youtube.com/watch?v=uXvHTJOQdkQ

2 Buttons. One button start and stop recording all button and stick inputs (as well as the timing and the duration) and one button to play/repeat and stop the recorded sequence.

I would love to learn how it's done, but sadly I can't find any code or tutorial for doing that...

So I need the help of a proffessional programmer, I will pay you for your hours of work.


r/programmingrequests • • Jan 11 '22

[PySpark request] Totally stuck on how to pre-process, visualise and cluster data

2 Upvotes

So I have a project to complete using PySpark and I'm at a total loss. I need to retrieve data from 2 APIs (which I've done, see below code). I now need to pre-process and store the data, visualise the number of cases and deaths per day and then perform a k means clustering analysis on one of the data sets identifying which weeks cluster together. This is pretty urgent work given the nature of COVID and I just don't understand how to use PySpark at all and would really appreciate any help you can give me, thanks.

Code for API data request:

# Import all UK data from UK Gov API
from requests import get


def get_data(url):
    response = get(endpoint, timeout=10)

    if response.status_code >= 400:
        raise RuntimeError(f'Request failed: {response.text}')

    return response.json()


if __name__ == '__main__':
    endpoint = (
        'https://api.coronavirus.data.gov.uk/v1/data?'
        'filters=areaType=nation;areaName=England&'
        'structure={"date":"date","newCases":"newCasesByPublishDate","newDeaths":"newDeaths28DaysByPublishDate"}'
    )

    data = get_data(endpoint)
    print(data)

# Get all UK data from covid19 API and create dataframe
import json
import requests
from pyspark.sql import *
url = "https://api.covid19api.com/country/united-kingdom/status/confirmed"
response = requests.request("GET", url)
data = response.text.encode("UTF-8")
data = json.loads(data)
rdd = spark.sparkContext.parallelize([data])
df = spark.read.json(rdd)
df.printSchema()

df.show()

df.select('Date', 'Cases').show()

# Look at total cases
import pyspark.sql.functions as F
df.agg(F.sum("Cases")).collect()[0][0]

I feel like that last bit of code for total cases is done correctly but it returns me a result of 2.5 billion cases, I'm at a total loss.


r/programmingrequests • • Dec 11 '21

need help Request: Webpage that is accessible via unique token

2 Upvotes

Hey Y'all,

I'm just trying to figure out how difficult this would be, depending on the difficulty/time/money needed I could be able to pay someone for help with this too.

Essentially I have some educational videos, that people pay to watch (I grant them access via youtube private share), I would love to have them watch it on my website (both to get more data on if they have watched it and such, as well as to be able to add some marketing on the page regarding other products and videos).

The simplest solution I can think of right now is:

  1. Embed video on my webpage that is hidden behind a token paywall

  2. Once someone pays me I give them an access token

  3. When they enter the token on that page, they are granted access to its contents

    1. The token would have to be unique and such that it can only be used on one computer simultaneously

    2. Ideally the token would only be valid for say 12 hours upon activation (so you pay, get the token, and you can use it whenever you like, but when you do, you have 12hrs to watch your video)

Anyone have any idea how difficult this would be? Is there an easier way to do this, are there any glaring holes in the plan?

The potential problem I see is the embedded youtube video - I dont know how to check how many of these videos (theyre all 4-8 hours long) my site can handle, but I assume itd be too heavy to host myself. If its a YT embed I think they can probably just right click and copy the link right? or is there a way to stop that? A possible solution I have for this (but dont know if its feasible) is to set the video to private, but then give my google account access to the video, and then somehow connect my webpage with my google account, that way they can watch it on my site, but if they open the link elsewhere itll show as private.


r/programmingrequests • • Nov 28 '21

need help a game with javafx!!

2 Upvotes

i wanna know how to detect a collision between a monster and the bullet (fire), what i did it just comparing fire_x with monster_x and fire_y with monster_y look at the function in the image, is there any perfect way to detect a collision ? and if you take a look at the video you'll see that monster disappears just when the bullet comes by his left and when it go by his right nothing happened!!

vedio::

https://drive.google.com/file/d/14zMpFqMY2zXg7xXLy90y21ygYNH1ywo9/view?usp=sharing

image :

https://drive.google.com/file/d/1spVJj9HwcVa3I_xkDhVVrMR-bZlwBqsK/view?usp=sharing


r/programmingrequests • • Nov 24 '21

Javascript How to intercept streaming JSON in Firefox

2 Upvotes

Hello, I have been inspired to try my hand at writing a userscript or maybe an extension if it ever gets to that, if I understand what I am doing.

There is a website I use that provides its search results ins streaming Json files. Each page is in a json file with the same name and URL. I want to append all of those together so that I can convert them into some kind of database or another.

Thank you.

I am having trouble finding a way of doing this in Firefox. I would even by happy with an extension that already exists that does that. Does anyone have any recommendations?


r/programmingrequests • • Nov 19 '21

Rewrite the recursion part

2 Upvotes

Hello, I have a code in python with about 100 lines. I was wondering if someone could help me rewrite the recursive part of it in a different way. I can provide the code via Discord. Thanks for the help!


r/programmingrequests • • Nov 12 '21

Android Crawler retrieve final html

2 Upvotes

Dealing with a webpage that initially sends an html page before completely loading the final html code and when requesting the html from the url, I can't get to the final HTML unless I use a webview and wait for it to completely load. Have tried with HtmlUnit, Selenium Chromedriver etc and I just can't get to the finishline. I want to do stuff in the background and webview doesn't really allow this as it needs to be set as the context to work with it which isn't desired. Can someone help me with this?


r/programmingrequests • • Nov 06 '21

C# - german keystrokes with Github tool Carnac

2 Upvotes

Dear programmer,

I want to make educational videos for Photoshop in german and I found a programm to display the keystrokes I press. It's from Github and it's called Carnac. The tool is really awesome, but it does show pressed keys in english only. For example CTRL would be STRG in german, PRINT is DRUCK and so on.

I searched a lot on Google and it seems like other people were looking for a solution as well. There is an issue open on the github regarding this problem, but the modified versions don't print out the german keystrokes.

https://github.com/Code52/carnac/issues/110

Is there a kind soul in here that could look into this issue and help me to get this working?

And here is a link to the Github page of Carnac

https://github.com/Code52/carnac