Coder Social home page Coder Social logo

como-nos-sentimos's People

Contributors

arturhoo avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

Forkers

porterha

como-nos-sentimos's Issues

Geotagged tweets never get weather info

As they are not put in the Beanstalk tube for geolocation, geotagged tweets don't have weather data attached during the backend's pipeline.

A better solution would be to pass the geotagged tweets to the geocoder, which would then differentiate it from the rest, but still find weather information.

Map Class in processing code

Currently the Map class is used to erase Hasmap structures in the Processing code:

void clearFeelingsOccurrence() {
  Iterator j = feelingsOccurrence.entrySet().iterator();
  while (j.hasNext ()) {
    Map.Entry me = (Map.Entry)j.next();
    feelingsOccurrence.put(me.getKey(), 0);
  }
}

I expect it to be a problem when converting existing code to processingjs

Website sections

Important sections:

  • Filters
    • Only with location
    • Feeling
    • User
    • State
  • More stats
  • Faq
    • Cities are incorrectly displayed on the map.
    • How does it work?
    • How are the colors chosen?
    • Incorrectly identified feelings, eg.: Parece que hoje fico sem celular, bateria fraca.
  • About
  • Contact
  • Facebook like, Twitter tweet, Github clone/watch (ribbon?)

Analytics not prepared for outage

If, for some reason, no tweet is fetched in a one hour or more timespace, the database will not have a entry for that hour with count=0

Better file organization

There are multiple local_settings.py files around that could be merged.

The files feelings.txt and query_terms.txt should also be put in the root directory as they are relevant to all three components of the system.

Geocoder inserting null locations

Ideally, if there is nothing to insert, the geocoder would simply not create the key location in the Mongo document. Example of the issue:

{ 
"_id" : NumberLong("212260966136684544"), 
"author" : { "location" : "Margem Sul", 
             "screen_name" : "Carla1906", 
             "name" : "Carla Caetano" }, 
"text" : "Boa tarde a todos! Estou  a morrer de fome por isso quero jantar.", 
"created_at" : ISODate("2012-06-11T19:12:12Z"), 
"feelings" : [ "fome" ], 
"created_at_local" : ISODate("2012-06-11T16:12:12Z"), 
"location" : null, 
"feelings_size" : 1
}

Put the JS code in a separate file

More or less similar to #7, as generating a separate JS would make it easier to reload the sketch without reloading the webpage.

The JS would need to be generated by the Flask application, still based on the template engine.

Multiple feelings in a tweet: multiple issues

Right now, in branch v2, when a tweet has multiple feelings, they are all identified and stored, posing several issues:

  • How to represent a tweet with more than one feeling?
  • Right now we only represent the first feeling of the array in the DB. When searching for the tweets with specific feelings, we have to specify the size of the array so that we don't get those with multiple feelings, eg:
db.dev03.find({$or: [{'feelings': 'feliz'}, {'feelings': 'triste'}], feelings_size: 1})

The problem, is, although indexes are used, they are not used in the best way possible. Maybe create a new index?

PFont support in processingjs

Quoting processingjs.org:

Font support for the Canvas element varies across browsers. FireFox currently has the best support, but still uses a pre-defined set of fonts. (Documentation to follow soon.) Good alternatives to the browser's Canvas-font functions are available: such as the Glyph method. See also: Canvas Text, BurntToys Bauhaus

We make good use of PFont in our processing work, let's see how we can address that.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.