Statistics regarding count of images that my app handles - ruby-on-rails

I've got a REST webservice created using sinatra. I'd like to get a count of number of images processed by my app, so I can use it for analytics purposes. How would one be able to do it?
What would be a way to do this i.e like a field on the DB? or Analytics like GA? or some other way?
Any opinion is apreciated

Related

Firebase chat backup/export like whatsapp in SWIFT

i implemented a chat app in swift using firebase real time db, there user can send images, emojis and Text.Now i have a requirement of export chat or get the conversation's backup with media and text as per whatsApp.help me to solving it out.
While Firebase offers a backup for the Realtime Database, this doesn't fit your needs here, since you'll want a per-user export of the data.
Since this is specific to your application, you will have to code it yourself, just like the good folks at WhatsApp have probably done. It should be a matter of iterating over all data sources for the user, getting the data through the relevant API (that you're already using to display that data), and then writing to a local file). You can do this either client-side in your Swift code, or server-side on a server you already may have, or using Cloud Functions.
If you're looking for some inspiration for the latter, there is a sample repository that shows how to clean up a user's data, based on a set of wipe-out rules. You'll need to significantly modify this example though, so I'm not convinced this will be less work than rolling your own from scratch.

Retrieving and Displaying tweets into an Windows 8 metro application

so basically I'm trying to display the latest tweets from 5-10 different sources/twitter accounts in a new application I'm trying to make.
Similarly the way tweetro/metrotwit retrieve and display tweets in the application. But on a much smaller scale.
Any ideas on how this could be done?
Would be much appreciated.
Duncan
Simply use the Twitter API to send a Web Service Request accessing those specific tweets in a data friendly format like XML or text. Then simply bind that data to a ListView or whatever pleases you.

How best to aggregate site statistics (especially search demand)

I am working on a rails application that uses sunspot solr for search. I have been asked to log (or capture in some way) each search that happens on the site; the query, the user that did the search, the result count that resulted from their search...etc, so that the company can report on what people are searching on (demand), and other things.
Before I go and make a table, that will receive an ever-growing number of rows of search data, I'm wondering if anyone has done this in a better way? Can I use analytics (google?) in some way for this? Is there some kind of service I can send this information too, such that we could easily pull reports, or create reports from?
In short, is there some better/smarter way than creating my own table and storing this all in our own DB?
I had never done this, but here are some thoughts.
If you just need to store that data I think you should do it yourself.
If you need to also provide a way to analyse the data yes, see if there is anything already done (I'm not sure but it seems google analytics only support internal search using their search bar).
If your client already have some BI tool they just need a way to access the data, and it would be easier to have it in a owned DB wich you can easily be query instead of using a provider api.

iOS and twitter integration - getting multiple users' statuses

I'm interested in adding a twitter feed to my iOS app but I had a quick question: I'd like to stream the most recent updates from a group of about 10 different users - is there a way to do this directly using the twitter api? (Just to clarify - I'm trying to make an app for a sports team and id like a section where users can check out the most recent tweets from all the athletes)
I've been looking around but I can't find a way to do this directly. I'd rather not search for each account individually and have to aggregate the results. Any thoughts on how to handle this?
thanks
Looking here: https://dev.twitter.com/discussions/3941 seems to make me think it cannot be done directly. They recommend creating a list and simply pulling that feed. Another idea would be creating an account that only follows the users you're interested in and pulling that feed. Not sure how appropriate that would be.

iOS app without API, alternatives?

Im thinking about learn to develop app for iOS. I had a lot of ideas, but most of them i would need the API of that website. For example: http://www.filmaffinity.com/en/main.html
The point is: is there any other possibility of collect/use information of a site without the API, anything else without the typical parsing or scraping?
Thanks you
To get the most up to date information to your users, you would need to use the API. If you want to store the data locally, you could do some initial scraping and build up your own database and distribute it within your app. This approach is not ideal because your data may become out of date quickly (unless you have a database update mechanism) and the owners of the sites you are scraping may not take too kindly on the matter

Resources