adambutler / poll Goto Github PK
View Code? Open in Web Editor NEWVoting done simply in real-time
Home Page: http://poll.lab.io
License: MIT License
Voting done simply in real-time
Home Page: http://poll.lab.io
License: MIT License
V```
Vv
A Dockerfile
which creates a docker image containing a running poll
-server would have several benefits:
poll
I tried to setup one based on Ubuntu 15.4 but failed to setup database connection. I don't want to install poll
together with Ruby and MySql on my desktop system
الحمد لله
It seems that is not working to me.
Any help?
sudo rails server -b xx.xx.xx.xx -e production
=> Booting WEBrick
=> Rails 4.1.6 application starting in production on http://xx.xx.xx.xx:3000
=> Run `rails server -h` for more startup options
=> Ctrl-C to shutdown server
Exiting
/usr/lib/ruby/1.9.1/uri/generic.rb:213:in `initialize': the scheme http does not accept registry part: :@ (or bad hostname?) (URI::InvalidURIError)
from /usr/lib/ruby/1.9.1/uri/http.rb:84:in `initialize'
from /usr/lib/ruby/1.9.1/uri/common.rb:214:in `new'
from /usr/lib/ruby/1.9.1/uri/common.rb:214:in `parse'
from /usr/lib/ruby/1.9.1/uri/common.rb:747:in `parse'
from /var/lib/gems/1.9.1/gems/pusher-0.14.1/lib/pusher/client.rb:53:in `url='
from /home/ubuntu/poll/config/initializers/pusher.rb:3:in `<top (required)>'
from /var/lib/gems/1.9.1/gems/activesupport-4.1.6/lib/active_support/dependencies.rb:241:in `load'
from /var/lib/gems/1.9.1/gems/activesupport-4.1.6/lib/active_support/dependencies.rb:241:in `block in load'
from /var/lib/gems/1.9.1/gems/activesupport-4.1.6/lib/active_support/dependencies.rb:232:in `load_dependency'
from /var/lib/gems/1.9.1/gems/activesupport-4.1.6/lib/active_support/dependencies.rb:241:in `load'
from /var/lib/gems/1.9.1/gems/railties-4.1.6/lib/rails/engine.rb:648:in `block in load_config_initializer'
from /var/lib/gems/1.9.1/gems/activesupport-4.1.6/lib/active_support/notifications.rb:161:in `instrument'
from /var/lib/gems/1.9.1/gems/railties-4.1.6/lib/rails/engine.rb:647:in `load_config_initializer'
from /var/lib/gems/1.9.1/gems/railties-4.1.6/lib/rails/engine.rb:612:in `block (2 levels) in <class:Engine>'
from /var/lib/gems/1.9.1/gems/railties-4.1.6/lib/rails/engine.rb:611:in `each'
from /var/lib/gems/1.9.1/gems/railties-4.1.6/lib/rails/engine.rb:611:in `block in <class:Engine>'
from /var/lib/gems/1.9.1/gems/railties-4.1.6/lib/rails/initializable.rb:30:in `instance_exec'
from /var/lib/gems/1.9.1/gems/railties-4.1.6/lib/rails/initializable.rb:30:in `run'
from /var/lib/gems/1.9.1/gems/railties-4.1.6/lib/rails/initializable.rb:55:in `block in run_initializers'
from /usr/lib/ruby/1.9.1/tsort.rb:150:in `block in tsort_each'
from /usr/lib/ruby/1.9.1/tsort.rb:183:in `block (2 levels) in each_strongly_connected_component'
from /usr/lib/ruby/1.9.1/tsort.rb:210:in `block (2 levels) in each_strongly_connected_component_from'
from /usr/lib/ruby/1.9.1/tsort.rb:219:in `each_strongly_connected_component_from'
from /usr/lib/ruby/1.9.1/tsort.rb:209:in `block in each_strongly_connected_component_from'
from /var/lib/gems/1.9.1/gems/railties-4.1.6/lib/rails/initializable.rb:44:in `each'
from /var/lib/gems/1.9.1/gems/railties-4.1.6/lib/rails/initializable.rb:44:in `tsort_each_child'
from /usr/lib/ruby/1.9.1/tsort.rb:203:in `each_strongly_connected_component_from'
from /usr/lib/ruby/1.9.1/tsort.rb:182:in `block in each_strongly_connected_component'
from /usr/lib/ruby/1.9.1/tsort.rb:180:in `each'
from /usr/lib/ruby/1.9.1/tsort.rb:180:in `each_strongly_connected_component'
from /usr/lib/ruby/1.9.1/tsort.rb:148:in `tsort_each'
from /var/lib/gems/1.9.1/gems/railties-4.1.6/lib/rails/initializable.rb:54:in `run_initializers'
from /var/lib/gems/1.9.1/gems/railties-4.1.6/lib/rails/application.rb:300:in `initialize!'
from /home/ubuntu/poll/config/environment.rb:5:in `<top (required)>'
from /home/ubuntu/poll/config.ru:3:in `require'
from /home/ubuntu/poll/config.ru:3:in `block in <main>'
from /var/lib/gems/1.9.1/gems/rack-1.5.2/lib/rack/builder.rb:55:in `instance_eval'
from /var/lib/gems/1.9.1/gems/rack-1.5.2/lib/rack/builder.rb:55:in `initialize'
from /home/ubuntu/poll/config.ru:in `new'
from /home/ubuntu/poll/config.ru:in `<main>'
from /var/lib/gems/1.9.1/gems/rack-1.5.2/lib/rack/builder.rb:49:in `eval'
from /var/lib/gems/1.9.1/gems/rack-1.5.2/lib/rack/builder.rb:49:in `new_from_string'
from /var/lib/gems/1.9.1/gems/rack-1.5.2/lib/rack/builder.rb:40:in `parse_file'
from /var/lib/gems/1.9.1/gems/rack-1.5.2/lib/rack/server.rb:277:in `build_app_and_options_from_config'
from /var/lib/gems/1.9.1/gems/rack-1.5.2/lib/rack/server.rb:199:in `app'
from /var/lib/gems/1.9.1/gems/railties-4.1.6/lib/rails/commands/server.rb:50:in `app'
from /var/lib/gems/1.9.1/gems/rack-1.5.2/lib/rack/server.rb:314:in `wrapped_app'
from /var/lib/gems/1.9.1/gems/rack-1.5.2/lib/rack/server.rb:250:in `start'
from /var/lib/gems/1.9.1/gems/railties-4.1.6/lib/rails/commands/server.rb:69:in `start'
from /var/lib/gems/1.9.1/gems/railties-4.1.6/lib/rails/commands/commands_tasks.rb:81:in `block in server'
from /var/lib/gems/1.9.1/gems/railties-4.1.6/lib/rails/commands/commands_tasks.rb:76:in `tap'
from /var/lib/gems/1.9.1/gems/railties-4.1.6/lib/rails/commands/commands_tasks.rb:76:in `server'
from /var/lib/gems/1.9.1/gems/railties-4.1.6/lib/rails/commands/commands_tasks.rb:40:in `run_command!'
from /var/lib/gems/1.9.1/gems/railties-4.1.6/lib/rails/commands.rb:17:in `<top (required)>'
from /home/ubuntu/poll/bin/rails:8:in `require'
from /home/ubuntu/poll/bin/rails:8:in `<top (required)>'
from /var/lib/gems/1.9.1/gems/spring-1.1.3/lib/spring/client/rails.rb:27:in `load'
from /var/lib/gems/1.9.1/gems/spring-1.1.3/lib/spring/client/rails.rb:27:in `call'
from /var/lib/gems/1.9.1/gems/spring-1.1.3/lib/spring/client/command.rb:7:in `call'
from /var/lib/gems/1.9.1/gems/spring-1.1.3/lib/spring/client.rb:26:in `run'
from /var/lib/gems/1.9.1/gems/spring-1.1.3/bin/spring:48:in `<top (required)>'
from /var/lib/gems/1.9.1/gems/spring-1.1.3/lib/spring/binstub.rb:11:in `load'
from /var/lib/gems/1.9.1/gems/spring-1.1.3/lib/spring/binstub.rb:11:in `<top (required)>'
from /usr/local/lib/site_ruby/1.9.1/rubygems/core_ext/kernel_require.rb:54:in `require'
from /usr/local/lib/site_ruby/1.9.1/rubygems/core_ext/kernel_require.rb:54:in `require'
from /home/ubuntu/poll/bin/spring:16:in `<top (required)>'
from bin/rails:3:in `load'
from bin/rails:3:in `<main>'
thans
Just tried out the example poll, and noticed the results have a mouseover capability.
For Firefox 31 on Fedora, the positioning for the mouse cursor to get the desired popup isn't correct. Some of the segments don't show at all when moused over, some show the result text only when in other location
(not hovering above the segment).
I would do screenshots to illustrate the problem, but Fedora doesn't want to include the mouse cursor in them. Duh. 😦
It would be nice if attributes could be added and used to filter through the options. By this I mean that a user viewing the results could do so. Perhaps they could also save their attributes and filter views with a new URL (results only), one that would link back to the original poll URL.
Attempting to visit a non-existent poll should not throw a 500. E.g: http://poll.lab.io/the-polls-speak-to-me
Instead User should see a 404 page.
A
SMS voting could allow question authors to list questions that are less likely to be voted on more than once by a user.
SMS voting would disable the web based form and allow only one vote per phone number per question. If a user texts a vote more than once then their vote is updated as per the website behaviour.
Wouldn't it be nice to be able to embed polls and results onto a webpage?
If I visit https://poll.lab.io/ and enter a question and submit, it says:
We're sorry, but something went wrong.
If you are the application owner check the logs for more information.
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.