r/programmingrequests • • Aug 25 '20

need help Comparing Chrome History

3 Upvotes

Can someone perhaps make a code where it compares an archived history from Google Chrome to the present version of the archived history (what I have now as my history)?

And it compares from the timeframe in the archived history to the same timeframe in the present version of the archived history. After doing so, it isolates any differences, like if the archived history has a link the present version doesn't have.

Much appreciated, thanks!


r/programmingrequests • • Aug 12 '20

Help with a firefox extension converted from old (pre v57) to new webextensions

3 Upvotes

Hi

Three weeks ago, I asked here for help to convert an oldschool firefox extension into the current (webextensions) format. (I supplied the code for the old one).

User This_Hippo kindly came up with the code for a modified javascript file and a new manifest.json.

I have only just been able to test it (because installing Firefox 79 nuked my old Waterfox!).

I can't get the modified extension to work (Firefox 79). Could someone help please.

-----------

I made the .js and manifest.json as instructed. Then, to install them, followed the procedure in

https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions/Your_first_WebExtension

first, practicing on mozilla's example-extension "borderify" (which worked OK)

(I put the manifest.json and borderify.js in a new folder on the D: drive)

...then doing the analogous thing with the new files, enlarge.js & manifest.json

The result is that Firefox loads and sees the Thai Text Enlarger extension, but the extension has no effect (i.e. if does not increase the size of the Thai text in webpages).

-

The only diagnostics I could think of are:

Firefox > debugger > inspect > inspector says:

"Your addon does not have any document opened yet".

(I have some regular (english&thai) www pages opened in several tabs in Firefox)

Firefox > debugger > inspect > console says:

Error: Can't find profile directory

---------

So I'm stuck - what should I do next?

thanks :)

The code for the original (oldschool) extension is in my post :

https://www.reddit.com/r/programmingrequests/comments/hx2lvw/updating_a_useful_pre2017_firefox_extension_to/

And the code for /u/ This_Hippo 's modified version is in his reply to that post.

(Sorry to start a new post here, but the old one has sunk pretty low. )

System details: Firefox 79; Windows10 Home, v2004, build 19041.450


r/programmingrequests • • Aug 07 '20

Code that Reads Thousands of Text Files and Cross References with a List of 50 Phrases

3 Upvotes

Hi, I'm not sure if this is the right place to post so I apologize if it isn't.

I'm trying to write a code that can read 3,500+ text files that are stored in a folder on my desktop.

I want the code to search those text files for 50 specific phrases.

Then I want the code to pull the sentence (or 10 words before/10 words after) the phrase appears so I can see it in context.

My brother said I need to learn regular expressions. One string is the contents of the text file and one string is the phrase. The phrase is your regex search on the other string.

He said the code will be about 20 lines.

I hope this is OK that I'm asking but could I pay one of you guys to write it for me?

Thank you so much for your help.


r/programmingrequests • • Jul 10 '20

need help Need python or matlab script (or even excel function) to copy row and paste in new spreadsheet if condition is met.

3 Upvotes

Condition is if the value of the box in a specified column is an exact literal match to any value in the dictionary.

Essentially, I have a documents with roughly 30,000 rows and need to copy and paste about 200 based on their text ID in the first column to a new document.

I have no coding experience and desperately need this for my biology research


r/programmingrequests • • Jul 04 '20

iOs, Iphone

3 Upvotes

, I am looking for someone who can program an iPhone

I am looking for help on a weird and unique request. This request is based purely for testing and both parties have agreed.

At work, we had the usual discussion about phones and computers, iPhone vs Android, Mac vs Windows, the usual. In this conversation we made a bet, he claimed that it is impossible for an iPhone to get any virus, and suddenly, we made a bet.

He bet me that he will open anything I send him, in any format, and that I wont be able to send him a file that will corrupt his phone, be it open an app, take a picture, delete everything, doesn't matter, aslong as it is something that will make him loose control of his phone.

He will accept anything I send him, and he will accept the request or the warnings the phone gives him if it "detects" a virus ( I dont even know if this can be called a virus) or a corrupt file.

I talked to a friend, and he said it would be hard, and I wouldn't be able to do this on a windows computer.

Me and my work collegue (the one I made a bet wth) are both at work, on a ship far away, the project will be documented and papers provided if to prove that this is just a test or project. He will accept any "damage" or changes that will be made to this phone.

His phone is a regular iPhone pro 11. It not not jailbroken.

* I will not have access to his phone
* I am not allowed to put on developer mode
* I am allowed to get his system speccs (SN, and different techincal info)
* I am allowed to send any file that I wish, be it an app, link, picture, video etc

Thank you, if you have any questions, please ask.

As I do not know the depht of my request, I can't tell how hard it will be to make

I know this can be difficult, but I have read that "If an iPhone user is dumb enough to press accept on anything you give him, yes, then this can be possible"

I would like say again; This is only for internal use between me and work college, this will be documented, and proof that the owner of the phone is in on this will be provided if needed.
It doesn't matter as much what the file/app does, aslong as it does something to prove to him that it is possible. He has agreed upon a complete system wipe, or something as simple as doing a simple task as I mentioned above.

This bet is mainly to prove to work colleagues to be carefull with cyber activities and that everyone could be a pontential target, iPhone or not.


r/programmingrequests • • Jun 28 '20

Image Scan bot

3 Upvotes

Hi there! A friend and I have been trying to work on a bot that will image scan the screen and then either double click and continue, or stop the bot entirely if the picture is found. We've been running into some trouble with it however in actually detecting if the picture is on the screen or not. I would really appreciate it if someone could help out. I'm sure it's an easy task but it's confusing the heck out of us.

Thanks in advance!


r/programmingrequests • • Jun 26 '20

need help Javascript injection help?

3 Upvotes

I have 4 short lines of script that I want to inject into the body tag of every webpage I visit.

<body>

<script> ... </script>

</body>

Is this possible? If so, how should I go about doing it?


r/programmingrequests • • Jun 10 '20

I suffered a lot from the solution of this code. Is there anyone who can help me? I am a beginner

3 Upvotes

I just want to click on the icons interact with me and I also want to add dates. What should I do?


r/programmingrequests • • Jun 09 '20

not possible Looking for bot/program to scan the screen for an image and do action based on what it sees

3 Upvotes

for example it search for an Image uploaded to the program. If it find it, it does certain action.

Otherwise, it does another action (like scrolling mouse or clicking next)


r/programmingrequests • • Jun 07 '20

need help Where can I find something about speeding up real time in c# program?

3 Upvotes

I'm working on a project, smart home energy system and I need to speed up real time to watch state of system... Like 1 real minut to be 15 in program? Any help?


r/programmingrequests • • Jun 05 '20

Manga Log

3 Upvotes

Javascript help

I have been using memento database and would like to use use the custom auto fill feature but I have no clue (I was getting error messages just at the copy pasta stage). Here is the Memento instuctions https://wiki.mementodatabase.com/index.php/Data_Sources#Step_1_.E2.80.94_Add_a_new_custom_data_source_for_Autofill and MAL's unofficial API https://jikan.moe/

==================================

For those interested in using my custom database (past default features, it stores read history, has a simple sort algorithm, and provides color indicators) :

[

Comics database w/my comics - https://drive.google.com/file/d/1Ay4Qe3REMNTQ3qyp9-UdcxVA5RZcs4L8/view?usp=drivesdk

Comics database no entries - https://drive.google.com/file/d/1AyXgtGs6SQpD_CRr_c5k9zkw0oH8yr_y/view?usp=drivesdk

Notes for editing(1. Javascript fields are ran in the order that they are listed. 2. The result of the java fields is the result of the last line. 3. The database is modular so you can add date slot indefinitely as long as the format kept.)

(I'm happy to answer any other questions, I'm pretty proud of it took a long time to do (though that's because I'm beginner) *Q:*what is the point of some these features A: I like pack-rating data don't judge me)

]


r/programmingrequests • • May 25 '20

How to make a calculator for a webpage

3 Upvotes

Hi guys.

I've got an idea about a tool that I want to post on my blog. It's a kind of calculator that tells you how long it should take you to learn to speak a language.

It's got 6 drop-down boxes where the user can pick different options. They are: language, the level that you aim for, past experience, motivation, consistency in study routine and the daily time put in. (Oh, and on the subject of language learning - I know that the actual question is highly subjective - I just want to make a tool that can help people "estimate" and plan their studies)

You can see the google sheet here:

https://docs.google.com/spreadsheets/d/e/2PACX-1vTI5pcINgo7-8yh-ybhfSQqO1H_tawA6M-A5bX77DMHsN8Sk-Pbv-fsta7X5pSW7FggIFzTSa-Q8mUN/pubhtml

I thought that there'd be an easy way to embed such a sheet on a wordpress blog, but it doesn't seem like it.

I'd need the script to be modifiable so I can change the number of languages, the coefficients for the different options, etc.. But the backend doesn't need to be pretty.

Which programming language would you suggest is used for making this?

And how much work is it for someone who knows what he's doing? I'm probably going to need to have someone help me program it because my skills are limited to... the most basic html..


r/programmingrequests • • May 06 '20

ISO help scraping Twitter account (~.~)

3 Upvotes

Hello! Please let me know if this isn't the right place to post...

Currently regretting my degree in Bioethics as I stare blankly and frustratingly at this github file and Python 101 lesson T.T If someone doesn't mind taking a couple minutes to help me scrape this twitter account, I would be so grateful!

My boss is expecting me to pull info from this account and create an excel of the names, amount of donation money they received, and from whom... manually lol.
Even with my very little cs knowledge, I realized the time I put in inputting could be reduced probably like 10-fold if knew what to do with this github file, which version of python to download, and lowkey where to begin period (。_°)☆

I would be so very appreciative if you didn't mind helping! <3


r/programmingrequests • • Apr 24 '20

solved Need help with task from school!

3 Upvotes

I've to create one 6-sided dice simulation. And need help with it. C# or Python

PM me for more info, i'm willing to pay! 25-50$


r/programmingrequests • • Apr 22 '20

Answering some theory of comp questions please

3 Upvotes

Can someone help me with studying for my theory of computation class? I am very clueless and there are some problems I need help with that my professors did not explain clearly

Help me answer some study guide questions so I can understand how to do them for my exam


r/programmingrequests • • Apr 21 '20

Need Someone to hold my hand and help me with a Project.

3 Upvotes

I have a project due on may 14th, and we have to learn a new language for each project we have. I know basic c++, I have chosen to do my project in python, and Perl. I have about 50% of the Perl part of the program done, and would like someone to help guide me through python. Need someone for me to be able to ask stupid questions kind of like a mentor ship.

Comment below, and dm me for more details. I'm a new programming student, and so I will ask a lot of annoying question, sorry and thank you in advance. I am willing to pay if you take this as a tutoring session as long as it's not above my budget


r/programmingrequests • • Apr 09 '20

Tring to automate soundboard functions, Can anyone write a script?

3 Upvotes

I'm trying to automate a few functions on the winamp soundboard. This is what I need to be done:

  1. Open a specific File and play it.

  2. Open a folder.

This should be executed by a hotkey. Because of the software, it's too complex for it's global hotkeys. I think it's a simple task, I just don't have the experience to do it myself.


r/programmingrequests • • Apr 08 '20

need help Memory allocation in C

3 Upvotes

Guys I need to write programs in C (one in Windows API and second in Posix API) that allocate 1000 bytes of memory within the process, write in each byte a number 20 and then deallocate the memory. I'm not allowed to use standard malloc functions, instead I need to use these functions:

Windows API:

#include <windows.h>
#define heapNew GetProcessHeap()
void *malloc(size_t size){
    if(heapNew)
        return HeapAlloc(heapNew, HEAP_ZERO_MEMORY, size);
    return NULL;
}
void free(void *block) {
    if (block != NULL && heapNew)
        HeapFree(heapNew, 0, block);
}

Posix API:

#define SIZE unsigned int;
#define HEADER struct header_t
HEADER {
    SIZE size;
    int is_free;
    HEADER *next;
};
HEADER *head, *tail;

HEADER *get_free_block(SIZE size) {
    HEADER *curr = head;
    while(curr) {
        if(curr->is_free && curr->size >= size)
            return curr;
        curr = curr->next;
    }
    return NULL;
}

void free(void *block) {
    HEADER *header;
    if(!block)
        return;
    header = (HEADER *)block - 1;
    header->is_free = 1;
}

void *malloc(SIZE size) {
    SIZE total_size;
    void *block;
    struct header_t *header;
    if(!size)
        return NULL;
    header = get_free_block(size);
    if(header) {
        header->is_free = 0;
        return (void*)(header + 1); 
    }
    total_size=sizeof(HEADER) + size;
    block = sbrk(total_size);
    if(block == (void*) -1) {
        return NULL;
    }
    header = block;
    header->size = size;
    header->is_free = 0;
    header->next = NULL;
    if(!head)
        head = header;
    if (tail)
        tail->next = header;
    tail = header;
    return (void*)(header + 1);
}

I don't know how to implement these functions so that they do the task above (allocate 1000 bytes and fill each byte with 20 and then deallocate the memory), as I've never done this before. Thank you in advance.


r/programmingrequests • • Apr 07 '20

Hello all, I'm looking for someone to direct me and help create a text filtering program. I am more than willing to $50 for someone to create this program for me. Details in the body text.

3 Upvotes

Hello friends, I'm trying to find a program or application that allows me to take a page of text, filter out specific lines/parts of that text, and output only the filtered results in a neat and orderly fashion. The results would preferably be displayed in a word doc/notepad.

To be more specific, where I work I receive a database return as a block of unformatted/unorganized text. The information we need to take down is always at the exact same location and line. For the sake of my eyes and saving a bit of time, I was hoping to create or find an existing program that could take that database return and display only the information I need. To clarify, the locations of the data in the returns are always in the same spot, however the content of the data is always different. Once again I would be more than willing to pay upon someone upon the completion of this. Please send me a message or reply if you have any ideas/want to take it upon yourself to create this.


r/programmingrequests • • Mar 26 '20

help

3 Upvotes

Nothingness....


r/programmingrequests • • Mar 16 '20

how to automate clicking on webpage?

3 Upvotes

I basically need to click on a dropdown menu, select a random option (could be default to the 1st option), and click on an 'Answer' button, and then do it all again as the options change after each answer.


r/programmingrequests • • Mar 16 '20

homework In totally lost on how to write a basic pseudocode

3 Upvotes

The question asked me to develop an algorithm for a sports betting company that helps identify the customers with the most points won in the next year and choose 5 of them to give rewards to. The selection method will be made through the amount of betd made by each user (given that each bet placed is 5 points)


r/programmingrequests • • Mar 15 '20

Node.js Script that scrapes Yandex images

3 Upvotes

I'm looking for someone to write a Node.js script that extracts/scrapes images from Yandex Images, people have done some in Python: 1 2 3. I attempted one a few days ago with no luck. I did wrote one for Bing albeit based on someone' else's code. but I'm completely lost in Yandex Images (For the people who are saying that "Why not stick to bing?", because Bing images is pretty bad, and google is scraper unfriendly).

If anyone's interested please PM me to get in touch.


r/programmingrequests • • Mar 13 '20

Replace script in Wordpress File Manager

3 Upvotes

Hi. I would like to add expire headers on all the external components on my WP website. I found this guide but can't really execute the last step.

I am able to create the .php file and put it in the theme folder. But then the article says "Then, simply replace the external .js call and replace it by a call to your externaljs.php file, as shown below:"

Where is the external .js call? I have no idea where to find it so I can't replace it.

https://catswhocode.com/add-expires-headers/

Thank you!!