hashes -- Seem like mutant potatoes [closed] - ruby-on-rails

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 7 years ago.
Improve this question
What I have researched about hashes doesn't make them that much clearer to me... what I see is a new [THING] that I cannot see the value in right now. I would RTFM if I could find one worth a beans instead of asking... here is what I was wondering...
I've been looking for answers for a few days now with now avail
Where the heck is a syntax manual for Ruby and further more RoR.
What are these things good for...
I know twitter somehow relies on something of this nature but what is exactly

There's a wealth of information out there, http://ruby-doc.org/core-2.3.0/Hash.html for example is pretty clear on what hashes are.
You need to get your head around some of the basics, there are plenty of tutorials out there, https://www.railstutorial.org/ is one that comes up often, http://guides.rubyonrails.org/getting_started.html is the most obvious place to start.

Related

Ruby on Rails: Data gather from blogsites [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 5 years ago.
Improve this question
This is a very broad question, so please bear with me.
I wanted to create an app that gets data from another website, specifically medium.com. However, I don't think medium has an API.
Specifically, what I wanted to achieve is to search the medium.com of articles that has 500 or more likes, or perhaps one that has 50 or more responses (comments). I wanted to do it with ruby on
How do you think I can do that? Please if you know how, point me in the right direction. Thank you in advance :)
I would recommend webscraping using the ruby gem called nokogiri.
It is a generic way of obtaining data that can be used for almost any website.
Take a look at these links to get started :-)
Web Scraping with Ruby and Nokogiri for Beginners
And a personal favourite
Parsing HTML with Nokogiri
Currently, there is no API to get all POSTS, neither search them, see https://github.com/Medium/medium-api-docs/issues/48

What does “consume an API” means? With details, please [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 6 years ago.
Improve this question
I would like to know what "consume an API" means in a less technical language possible and would like too some simple example in git and, if possible, using Ruby. I understand that I may be asking a lot, sorry for that, but I can not understand 100% of the examples I found.
I can not go on, because I have not yet been able to fully understand the subject.
Example:
I have a application, a CRUD simple and a API isa JSON that extract the results this CRUD?
Sorry for my limited understanding. I would very much like details with code example, just something basic.
It means that you take in data from an external source/url and do something with it. Here is an example:
http://www.theodinproject.com/courses/ruby-programming/lessons/file-i-o-and-serialization

How to write a program that outputs source code [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 6 years ago.
Improve this question
This might not be the right place for this to ask, but I am interested in artificial neural networks and want to learn more.
How do you design a network and train it on source code so it can come up with programs for, for example, easy number theory problems?
What's the general name of this research field?
This is a hugely interesting, and very hard, problem area. It will probably take you months to read enough to even understand how to attack the problem. Here's a few things that might help you get started, and they are more to show the problems you will face than to provide solutions:
http://karpathy.github.io/2015/05/21/rnn-effectiveness/
Then read this, and related papers:
https://arxiv.org/pdf/1410.5401v2.pdf
Next, you probably want to read the classic papers in program synthesis and generation at the parse tree/AST level (mostly out of MIT, I think, in the early 90s.)
Best of luck. This is not trivial.

Creating parallell timeline in Xcode [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
I am trying to create a schedule in xcode, preferably Objective-C. Basically I will have some sessions over specific times that are going to be distributed over some locations/rooms and I want to have a parallell timeline for each of these rooms.
What I am looking for to create is something like the app Magine (http://imgur.com/gallery/gXwsbzk/).
I figure I will probably need to create a UICollectionViewLayout, but that is pretty much how far my knowledge goes. Any level of guides ot help is greatly appreciated. Maybe there is even an open source class somewhere that accomplishes just what I am looking for?
What I am looking for is obviously something like MSCollectionViewCalendarLayout. Hopefully I'll be able to modify the source code to better fit my needs.

Rails best practices [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 9 years ago.
Improve this question
Can anyone help me with few indication about best way to do few things.
At this point I am in a situation where I have a task(.rake), and the code become so ugly that I need to split it out. So if I will create another file, probably a module with multiple classes and methods or just methods, where should I put the file (libs probably?)? (this file may be used by models as well). Also if I want to do the same or a module?
Any books, tutorials, articles, and opinions are welcomed.
Thank you
Check out the Rails Guides for an introduction - beyond that, there are many different [opinionated] resources on the matter, ie:
Railscasts

Resources