-
Notifications
You must be signed in to change notification settings - Fork 17
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
have some questions... #10
base: master
Are you sure you want to change the base?
Conversation
Did you get it hosted on heroku? I don't think you're quite getting the website down, yet. I should be able to click on a button to randomize it, and see your likes. Where are you running into confusion? More specifically, is there any code in the Sinatra app that is getting you bogged down? |
for the heroku auth issue, try
Let's say you have an array filled with 100 items. array = (1..100).to_a
=> [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100] If we want to randomize them, you: array.shuffle
=> [62, 4, 53, 12, 59, 74, 47, 1, 57, 40, 25, 46, 65, 98, 30, 49, 7, 14, 8, 73, 77, 29, 84, 85, 93, 68, 32, 91, 2, 21, 11, 100, 51, 23, 52, 79, 89, 6, 15, 9, 97, 10, 37, 27, 45, 36, 34, 63, 38, 17, 94, 13, 22, 71, 3, 19, 60, 82, 90, 5, 64, 58, 86, 31, 76, 18, 28, 88, 92, 67, 44, 72, 20, 96, 24, 33, 26, 66, 95, 56, 54, 41, 43, 35, 75, 70, 87, 42, 39, 81, 50, 83, 99, 16, 48, 78, 55, 61, 69, 80] So, to get a random item in an array, we'd shuffle and take the first item: array = (1..100).to_a
array.shuffle.first
=> 25 HERE'S THE AWESOME: Ruby has a built in method [6, 10, 57, 100, 240].sample
=> 57 Example: http://rubyfiddle.com/riddles/9b34c |
Thanks Jesse! I now have the array thing okay but
|
Nope--- you can push to github just fine. Need to push updates to heroku, which never touches your github repo. |
are you doing and if so, does that user have access to the repo you created?
Update your github code (git push origin master) and I’ll take a look. Jesse Wolgamott @ Comal Productions, Inc. On Thursday, December 5, 2013 at 1:19 PM, Mike Adeleke wrote:
|
Yeah I did with no joy... I have access the repo and just pushed my changes. I do not know why I cannot work with heroku though.. |
I’m highly confident your app is linked to someone else’s account. Login to heroku and see if you can see your app listed. Jesse Wolgamott @ Comal Productions, Inc. On Thursday, December 5, 2013 at 1:36 PM, Mike Adeleke wrote:
|
ok, finally type in heroku apps from command line and post what you see. Jesse Wolgamott @ Comal Productions, Inc. On Thursday, December 5, 2013 at 1:43 PM, Mike Adeleke wrote:
|
Ok, looks like you should go to heroku support. No idea what is wrong. Alternatively, destroy the heroku app, and try again. On Thu, Dec 5, 2013 at 2:49 PM, Mike Adeleke [email protected]
|
Just contacted Heroku and will let you know the updates. Thanks! |
Heroku and I have been going back and forth over the weekend. Nothing they say has been working unfortunately. |
If I were you, I’d cut bait and try again. Clone the github repo into another folder At least, I’m betting for #4. On Monday, December 9, 2013 at 12:39 PM, Mike Adeleke wrote:
|
This is unbelievable. Started over in a new folder and still no joy. I am wondering if I have a deeper error. |
Likely your ssh key is linked to the wrong user. maybe? possibly? Jesse Wolgamott @ Comal Productions, Inc. On Monday, December 9, 2013 at 12:52 PM, Mike Adeleke wrote:
|
I would normally say it’s not worth it — but it probably is worth figuring out. You’ll likely use heroku a bunch. alternative for now: try out http://nitrous.io Jesse Wolgamott @ Comal Productions, Inc. On Monday, December 9, 2013 at 12:53 PM, Jesse Wolgamott wrote:
|
I like this! But can I add a repo to it? Take care, Mike Adeleke College housing - the agony = Domi On Mon, Dec 9, 2013 at 12:54 PM, Jesse Wolgamott
|
Yes, you can clone from the command line. Jesse Wolgamott @ Comal Productions, Inc. On Monday, December 9, 2013 at 1:04 PM, Mike Adeleke wrote:
|
Totally unsure. Seems related to https://dashboard.heroku.com/account where SSH_KEYS are. Is there anything there? Jesse Wolgamott @ Comal Productions, Inc. On Monday, December 9, 2013 at 1:10 PM, Mike Adeleke wrote:
|
Yeah there is one assigned to my gmail. I'm surprised because I have used heroku often and rarely had issues - other than incompetence ;) |
I had some hiccups but this is what I have so far.