r/programmingchallenges • • Aug 27 '18

Create a bot that can take a given user's twitter feed, analyze it, and replicate the user's tweeting patterns

0 Upvotes

I've seen many examples of people teaching bots how to write episodes of Dr. Phil and other tv shows. I am curious to see how that process maps to a shorter and linguistically different medium such as tweets.

Bonus if you can get the bot to be able to verify if a tweet came from a given user.


r/programmingchallenges • • Jan 01 '14

Come check out the "formal methods in computing science" study club over at /r/computingscience -- complete with ranks and awards to track your progress as you complete accomplishments!

4 Upvotes

r/programmingchallenges • • Oct 19 '19

If you want to know the power of preprocessing then you must watch this tutorial.

Thumbnail
youtu.be
5 Upvotes

r/programmingchallenges • • Jul 18 '19

I’m treated with disrespect by the corporate culture at a large company. I don’t quite understand

8 Upvotes

not sure if this goes here but it’s a challenge related to coding. So I code in .nets languages and software. I developed an end to end system that has about 4 separate moving system in it. I developed all the code and the files except for a starter file that an experienced api developer taught me with. When I give input, I’m ignored or contradicted. When I talk to some of the higher ups in IT, I’m treated with dismissal and sometimes condescension. I’m not a jerk to people. I’ve been there a while so I’m not new to the company. I get along with all my peers at the office. My immediate boss and I have a great working relationship. He actually has to vouch for my skills to the other higher ups to build their respect for me. Any other Coders run into this? Thoughts?


r/programmingchallenges • • Jan 07 '14

2D Space Ship Inertial Dampener Problem

3 Upvotes

Here's an interesting problem that I just came across/am currently solving in my video game which I wanted to share with the community

Inputs

  • Vector2 containing center of mass of ship

  • Vector2 containing ship linear velocity

  • float containing ship angular velocity

  • A list of thrusters - each thruster contains a

    • float for thruster strength

    • vector2 for positional offset from ship center of mass (assume it is calculated to rotate around the ship properly as the ship turns)

    • float for angle of rotation offset from the ship's forward vector

Output

List of thrusters that should be turned on to slow down the ship. Assume that

  • you cannot lower each individual thruster strength, only on/off

  • the ship has enough thrusters to be omnidirectional (maneuver in x, y space as well as rotate around the z-axis)

  • the ship has uniform mass distribution

Bonus points

Optimize so that the slowing down takes the shortest amount of time. Assume you can lower individual thruster strength. Ensure the function works for nonomnidirectional ships.

Don't Google for a solution, solve it. That's what makes coding fun :D


r/programmingchallenges • • Mar 28 '19

Day 1 Beginner - Having trouble keeping integrity of script in TextEdit

3 Upvotes

Hi Reddit community,

From the start, I want to be clear that I have never coded before. I am very new to this. So if I misuse a word, please forgive.

I am collecting samples of HTML code. I need the code itself, not the segment of the webpage it links to. My workflow originally was the following:

  1. Use a blank "Pages" document (I work on a Macbook): copy and paste HTML examples from the internet into the document.

  2. File > Export to PlainText document

  3. Erase all from "Pages" document

  4. Paste in a new HTML code example

  5. File > Export to PlainText document

And so on a so forth. Because of this methodology, I do not have a backup of the collected HTML code samples.

I went to open my PlainText files and extract the HTML samples and found that they have been converted into the END PRODUCT (sorry if wrong term), not the code.

When I preview the files (single-click and hit the space bar), the preview shows the code. When I open the files (double-click) the document has the end product (for example, see below)....

My question is: is it possible to convert these documents back to code form on Plain Text?

CoolLogo

  • About

  • Contact

  • FAQ

  • Help

Heading

Left heading

  • Link 1

  • Link 2

  • Link 3

  • Link 4

  • Link 5

Heading

Heading

Heading

© Copyright Your Site | Terms of Use | Privacy Policy


r/programmingchallenges • • Dec 24 '18

Programming has beaten me

3 Upvotes

I have tried to learn programming for the last couple years on my own. I have completed several projects using HTML , CSS , JavaScript , PHP and MYSQL.

The problem is that all I am doing is searching on Google and watching Youtube video tutorials of how other people are coding and then I would copy their code.

I am not writing any code I am just copying the code from external sources and making slight modifications. This makes me not a programmer but a fraud who steals code.

I cannot write code because I struggle to memorize the syntax.

I can analyse requirements and think of solutions that I can use to solve problems but I cannot code my solutions i need to copy external code from Google or Youtube.

If all I am doing is copying code and I cannot write code should I just quit programming ?

Another problem that I am having is lack of patience. When I encounter bugs and I am not able to fix them after several hours of trying I become frustrated and I start to question if I am even right for this field.

Are some people not just meant to become programmers ?


r/programmingchallenges • • Jan 31 '19

I dont wanna fail programming so please help!

0 Upvotes

Create a small Python program that will help me understand Variables and Names.
If I have 10 dollars and my friend John gives me his 10 dollars how much will John and I
have left?

  1. Make sure to declare (my_money, john_money, john_and_my_money)
    Refer back to the Variables and Names work we did in class.

Small help:
my_money = 10
john_money = 10
john_and_my_money = my_money + john_money
john_money_left = 10 – john_money
print “I have”, ____
print “John has” , ____
print “John gave me” , ________
print “John now has”, ________


r/programmingchallenges • • Jul 12 '18

Need help

1 Upvotes

So ive been getting booted offline and ordered stuff to my adress the past week i know who it is and its getting annoying vus he wont stop this is happening thrue xbox is there anyone out there who can help me and get this guys adress or family members name id grately appriciate it msg me if can help


r/programmingchallenges • • Jun 24 '18

targetting a specific part of the first line and the last line of a string.

1 Upvotes

Hello!

I am sorry if this is in the wrong subreddit but stackoverflow won't let me post this so that's why I am trying it overhere....I want to target a specific part of a string in the first and last line using regex (I'll put an example at the bottom). I've tried this using the re.findall(r'\A(^.*$\r?\n){1}', string) regex. The problem is that I can't get it to work in python and it that it targets the whole line and as soon as I try to change it to something else instead of it targeting every single character it just crashes in Rubular.

[10:31:15] [Client thread/INFO]: Setting user:
[10:31:15] [Client thread/INFO]: (Session ID is token:)
[10:31:16] [Client thread/INFO]: LWJGL Version: 2.9.4
[12:04:45] [Client thread/INFO]: [CHAT][12:04:49] [Client thread/INFO]: [CHAT][12:04:49] [Client thread/INFO]: [CHAT][12:04:52] [Client thread/INFO]: Stopping!
[12:04:52] [Client thread/INFO]: SoundSystem shutting down
[12:04:52] [Client thread/WARN]: Author: Paul Lamb,

I want to target the fat black portions.

I hope someone can help,Newlander007


r/programmingchallenges • • Feb 26 '18

Return the starting index of string `s` in string `t`.

1 Upvotes

Expected runtime: O(n), where n is the length of string t.

Example:

  • Input:

    s = "inter" t = "The inter-process communication must be efficient."

  • Output: 4

Solution approach and example implementation here: http://ruslanledesma.com/2018/01/10/index-of.html


r/programmingchallenges • • Jul 12 '17

Open Challenge to Anyone

1 Upvotes

I challenge you to build a program that will generate a cube of grids, 26x26x26, each row along each axis would have to have a-z along said row. It must be able to repetitively generate random cubes. Good Luck


r/programmingchallenges • • Sep 10 '18

I need help with school project!!

1 Upvotes

Hellow , i have an app that takes as input from serial port , and i need to change the code so that it takes data from ethernet.. it is in visual basic!! Any ideas?? Thank you!!!


r/programmingchallenges • • Aug 15 '19

Python to Javascript sending text

1 Upvotes

How would you go about sending text from python to js. Should i open a socket from the python end and how do you recieve from js end


r/programmingchallenges • • Mar 15 '19

Effective project onboarding checklist

Thumbnail
jtway.co
0 Upvotes

r/programmingchallenges • • Jan 15 '18

How to code a shooting game using javascript (Part 1)

Thumbnail
youtu.be
1 Upvotes

r/programmingchallenges • • Dec 29 '18

Undergraduate Research Small Grants Program

Thumbnail
helptostudy.com
0 Upvotes

r/programmingchallenges • • May 30 '18

Macro Issues - Script not responding in program

1 Upvotes

I'm a programmer and there are times that I run into some redundant work. This is where macros and some loop modifications can be very useful in making work more efficient/faster.

I've tried a few macro programs with this software I use at work, N4 Niagara.

Unfortunately, the macro program doesn't recognize anything that happens within the software window.

I've tried creating a simple vbs script to click around, but it doesn't recognize any key inputs or mouse clicks that are automated. I've also tried MouseRecorderPro and TinyTask, same deal.

I've tried opening the software as Admin as well. I've searched many forums to resolve this, but haven't found anything that works.

Has anyone thought of a workaround or knows of a way to override this?


r/programmingchallenges • • Oct 13 '19

Find a sequence of positive Integers

1 Upvotes

Given X and Y, Where X and Y are respectively the sum and product of all the numbers(+ve integers) in the sequence. Task is to write an program that find the sequence/set of positive integers that satisfy the above.

Example 1: X=5, Y=5 The only sequence is { 5 }

Example 2: X=5, Y=6 The sequence is { 2, 3 } (Here 2 + 3 = 5 = X and 2 x 3 = 6 = Y)

How do I implement this in algorithm/program?


r/programmingchallenges • • Apr 27 '18

Time for the new battery of Kotlin puzzlers! Have fun ;)

Thumbnail
blog.kotlin-academy.com
1 Upvotes

r/programmingchallenges • • Sep 18 '14

Saw this in a job posting today.

1 Upvotes

Saw job posting listed as "core programmer." I am not interested in the job, but I thought it might be a fun exercise for you guys. The entire posting was the following text, plus a message saying they will not answer any questions about the strings. As an added bonus, the decoded text will probably not be in English.

ihu59Xmpdb3ENfnse86EocoHZ5BctfzjhtMynjocCao4nu5venFK4XmEb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jfhKm5c9nj EVafRpygUuagkkbKtrDkP3xge1cV9N3ockXkZ83fNMLY7BkNgzX86Bu6ojS7MMzAjcskej22PLBN wiTeVuh1sFHvTmgQmWshzUUFosMRAqrH6m6rrHA22Rubu3bTRPBtKiDBVSc3dMKLZkihdkBtvKoRwCz97zpgtjYGb1A

Edit: added line breaks for readability. The original had none.


r/programmingchallenges • • Apr 25 '19

What is a Test-Class in Java Programm and how can i to implement this class?

1 Upvotes

r/programmingchallenges • • Feb 19 '19

Caps lock “Easy” school challenge in language c

0 Upvotes

CAPS LOCK Create a program that will simulate the CAPS LOCK key. From a standard input, load a character, change it, and print to standard output.

If you find a small ASCII letter, change it to large.

If you find a capital letter at the standard input, turn it into a small one.

Leave all the other characters as they are.

Loading will end if you find an EOF.

When you finish loading, write a message on the new line of the number of rows you have downloaded.

Thank you so much


r/programmingchallenges • • Jul 10 '18

send "spam" emails

0 Upvotes

Hey guys,

I'm building a SaaS product for entrepreneurs to help them validate their business ideas. Basically, and this is from personal experience, it's really easy to go down a rabbit hole and spend a bunch of time building or thinking about a product that ultimately fails. I want to help fix this problem by creating a product that let's entrepreneurs validate their ideas, cheaply.

Part of the idea is to send cold emails to scraped email addresses. The big issue is that mail relay services (like Mailgun) prohibit "spam" so I've been forced to run my own smtp servers.

Doe anyone have experience doing this or have any ideas on the best way to beat spam filters. I know that after the first email blast the domain and IP of the smtp will get blacklisted but I think I'm OK with that for now. The idea being to spin up a new Ec2 instance anytime you get blocked.

Thanks!


r/programmingchallenges • • Oct 17 '18

Am I wasting my time with web development?

4 Upvotes

I am currently a 15 yr old self-learning kid on how to code. I'm pretty familiar with html and css by now and still working on js. Am I wasting my time learning web development? It seems html is the butt of many programming jokes.... Should I be learning python instead? :p Guide me in the right direction, if you will.