Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
Unknown Quality Score

No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.

0 Endorsements
~4K People Reached
Favorite Forums
Favorite Tags
Member Avatar for straylight

What I am trying to find out is how to securely send a username and password to an API. Basically I am accessing a restful API using a URL like "https://myapi.com/api/username=test&password=test123". If the username and password are correct the API will return a JSON page. How would I go about …

Member Avatar for joefazee
0
291
Member Avatar for straylight

I am trying to devise a program to scheduling "events" onto 3 different stages using dynamic programming. I have a start time a finish time and an interval associated with each event. int max1(int x,int y) { if (x>y) { return x; } return y; } int max2(int x, int …

Member Avatar for Adak
0
443
Member Avatar for straylight

I have a script that collects user IDs following a specific twitter user. The Twitter API allows only 4999 followers to be retrieved every call. I am trying to find out how to retrieve all the followers if a user has over 5000 users following them. I am using PHP …

0
92
Member Avatar for straylight

I am attempting to reverse a string for a homework assignment and then reverse each word in the string. The trick is we are suppose to code it without using functions. Like "I like cats" should be 1st "stac ekil I" and then "cats like I". Here is what I …

Member Avatar for rithish
0
1K
Member Avatar for straylight

Basically I am attempting a HW assignment for questions that a frequently asked in interviews. I am not sure if I am having problems with the coding or actually understanding what they question is asking for. Basically I am asked to find an element in a sorted array and that …

Member Avatar for Bob
0
204
Member Avatar for straylight

Hello, I am very new to C and having the hardest time with arrays. I am attempting to find a pivot point in a sorted array for example { 1 2 4 5 9 } might become { 5 9 1 2 4 }. I am thinking it should be …

Member Avatar for deceptikon
0
587
Member Avatar for straylight

I am very new to C and I am hoping for some pointers. I am attempting to take an input of 7 integers of an array and search through them to see if any number appears only once. Here is what I have so far #include stdio.h #define ARRSIZE 7 …

Member Avatar for straylight
0
205
Member Avatar for straylight

I am having some problems working with the tell method when working with a file. Basically what I am trying to do is use the tell method to find where I currently am within a paragraph and to only display the characters up to a certain tell count. For example: …

Member Avatar for TrustyTony
0
282
Member Avatar for straylight

Title says it all. I am looking for a way to find the values of a column within a row. I am unsuccessful at being about to create a for loop that searches each value in the row and inputs a value if it is x. For example: [CODE] there …

Member Avatar for woooee
0
165
Member Avatar for straylight

Not sure if it is possible but is there a way to multiply,add,or subtract values in a tuple? Say for example I have: [CODE] a=raw_input("enter 2 numbers separated by a /: ") #5/2 entered b=a.split("/") c=a[0]+a[1] print c [/CODE] The value comes out to 52 which is obviously wrong. Is …

Member Avatar for straylight
0
346
Member Avatar for straylight

So I have been working on Pascal's triangle and going about it a different way then most. I am attempting do to a series of if and elif statements to check for the values in rows and columns of those rows. However my novice skills in python are stopping me …

Member Avatar for straylight
0
236
Member Avatar for straylight

So I have a program that takes the value of an item.. checks the values with price then prints a result. Now my professor is asking for a 4th function that acts as a "data exchange" between the other 3 functions and act like a host for all the values …

Member Avatar for TrustyTony
0
162
Member Avatar for straylight

say for example the first 5 apples you buy cost .50 and the next 5 apples you buy after that cost .40 and every apple after that is .30. How would I go about creating a function that could tell okay apples 1-5 cost .50 then add any extra in …

Member Avatar for straylight
0
131
Member Avatar for straylight

Hello, I am a very entry level python user so my knowledge is behind at the moment but I am have a problem creating a function that will take an x range and pass it through as a parameter to my function and output all the results. For example this …

Member Avatar for joehms22
0
137