Rails Create US State Graph [closed] - ruby-on-rails

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 8 years ago.
Improve this question
I have a client that recently decided to add in-site surveys as part of an effort to better understand their user base. They are requesting an export of the survey data, which using Axlsx hasn't been to hard.
However, they've also requested a US Map Graph that displays which users live in which states - kind of like this one. We store the GeoIP of each user's City/State/ZIP, etc. so the data is there, but I'm not sure how I'd go about generating such a graph as part of the Excel output.
Any ideas about this being feasible to spit out in an Excel export? I haven't been able to find much information about creating them in Rails.
EDIT I just want to point out that the actual Excel export works great. What I'm struggling with is getting a graph to come out in a similar format as the above link. I'm already using the axlsx gem to export the data into Excel/creating various graphs. I haven't been able to figure out how to create a US State's graph with it though

You might want to take a look to the gem axlsx,
which is a spreadsheet generator for Ruby. They have a fair amount of examples.
Hope it helps.

Related

How to create a user/event tracking tool, backed by Ruby on Rails [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 3 years ago.
Improve this question
are there any good references to start looking into building a simple but efficient tracking/event tool? Super simple version of a tool like Google Analytics. I am assuming this consist of two separate applications. One for the front-end which gets embedded into the client's website, and a back-end API to handle the events, queue, etc.
Preferred tools for the back-end for me is Rails.
I appreciate the help.
You'd be reinventing the wheel, but you'll need a javascript library to track the user and a rails API. Pretty much what you seem to know you need.
Here's the documentation on building a rails API: https://guides.rubyonrails.org/api_app.html
Refer to the top answer here for the javascript module: User Activity Tracking or Logging with javascript

what's an efficient way to document your RSpec tests? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 4 years ago.
Improve this question
I'm working with a large set of test cases and am wondering what an efficient way of documenting them all is. Right now I'm just using a spreadsheet to crudely record them, so I'm curious if there's a better way.
Looking for something like Apipie or zipmark, which can automatically generate documentation for an API
Check out https://github.com/square/fdoc
In a Rails or Sinatra app, fdoc can help document an API as well as
verify that requests and responses adhere to their appropriate
schemata.
It can help generate API documentation:
fdoc also has a scaffolding mode, where it attemps to infer the schema
of a request based on sample responses.
https://github.com/square/fdoc/blob/master/docs/scaffold.md

Logo Lookup API? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 5 years ago.
Improve this question
I'm working on an iOS application where I'd like to be able to display stores with their respective logos. I've spent a while looking for an API that does this and I can't find anything besides XigniteLogos. Unfortunately this is outside of my budget - is there a free solution available?
This is a very interesting question.
My first thought was that you could try doing a Google Image search. I know Google has a service called Goggles which can recognize logos, so searching the other way must be possible using Google.
I did a sample search on Google Images for "General Mills logo" (I guess I am hungry for breakfast right now) and the first result that was returned was from SeekLogo.com
I am not sure what SeekLogo is, or if they have an API, but they may be exactly what you're looking for. If not, you could try a Google images search and use the first result... (Google does have an image search AIP but... it's been deprecated? The announcement of that says that the documentation / community may have solutions which are still supported...)

meta tag parsing in Rails [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 6 years ago.
Improve this question
I was looking for something to help me parse general meta-tags from websites similar to this github project I found for open graph data. Here's a demo app.
Basically, I'd like to be able to have a user input a URL from a news site and have it retrieve from that the Title, Desc, etc., leaving as little work possible for the user. Before I go roll my own I was wondering if there was a current project / gem that exists similar to the project above? (as it only works with open graph and not general meta-tags)
I also noticed that facebook's linter does this as well even without open graph specific tags.
I would recommend the Nokogiri gem. It is an HTML, XML, etc. parser so you can use it to parse pages on your own. The nice thing about this approach is that it affords you the most flexibility for your specific use case. You can use the gem to parse any meta and header tags as long as you can express them using XPath or CSS3 selectors.
You can also try this free (for most) Open Graph API that I built: http://www.opengraph.io/

Car make model dropdown web service [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 7 years ago.
Improve this question
I once found a slick looking car make/model dropdown menu web service that advertised form helpers for Ruby on Rails, have subsequently been unable to find this again by Googling for it.... Anybody know the service I am talking about?
Edmunds provides this data for free through an API. You just have to sign-up to get an API key.
See documentation here:
http://developer.edmunds.com/api-documentation/vehicle/
Sign-up to get a key here: http://developer.edmunds.com/index.html
One example of making the call (many more examples given on their site):
https://api.edmunds.com/api/vehicle/v2/makes?fmt=json&api_key={your API key}
I was looking for exactly this kind of information for motorcycles. From what I can tell the API does not provide motorcycle data, but it seems to have just about everything for cars - Make, Model, Year, Trim, Style, even Maintenance Schedules.
With the json or xml data, you will have to roll your own drop down menus. Edmunds does provide some premade widgets, but they are pretty specific (e.g. return True Market Value), so there is a good chance they won't have exactly what you need.
http://developer.edmunds.com/widgets_and_apps/index.html
It doesn't include form helpers or anything, but here's a Ruby implementation that uses the KBB database to retrieve make/model info:
http://tektastic.com/2008/03/car-or-auto-make-model-year-database.html
I'd probably cron this outside of the app and update the db from time to time, then use collection_select in the app to construct the dropdowns as normal. You could also adapt it to use ActiveResource for live retrieval, but that seems excessive and perhaps bannable by KBB.

Resources