cuibono / cuibono_webservice Goto Github PK
View Code? Open in Web Editor NEWwebservice to receive fingerprint queries from mobile devices, query echonest server and return JSON
webservice to receive fingerprint queries from mobile devices, query echonest server and return JSON
The cuibono_webservice is a Django backend for the cuibono mobile application, allowing users to identify political ads based on their audio and receive information relevant to that ad in return.
i'm going to make a new handler in /api/handlers.py which will receive several inputs (from a web form yet-to-be developed):
it will then execute the following steps:
the mobile client will be expecting json information returned as the result of an /ad/the_hash/ query. for right now, i'm going to make the json object using just information from the ad object that is currently being returned. in the future, though, this will also include information gleaned from other sources.
we need a basic django template for the look and feel of the cuibono public-facing site. this should be the master template that lays down all of the nav links, css magicness, lovely colors and the logo (see issue #7)
need to test and see how it works if there is 18 seconds of the right ad and 2 seconds of something else - do we still get a hit?
(bob says yeah, prob)
i commented out a couple of lines in /api/handlers.py because they're making piston complain. they're both lines that iterate over the tags and articles associated with an add. this seemed fine to me, but i guess it's too crude. something tells me we'll have to use piston's json emitter.
Piston/0.2.3rc1 (Django 1.3.1) crash report:
Method signature does not match.
Signature should be: the_hash
Exception was: 'ManyRelatedManager' object is not iterable
create a landing page for the app to direct to for each ad. this would have:
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.