dashing

Not able to display Month names on Rickshaw Graph on Coffeescript

倖福魔咒の 提交于 2019-12-11 11:14:47
问题 I am working on a project using Sinatra based framework called Dashing. Part of my project is to create a graph using RickShaw Graph. My problem is that I am not able to display month names and dates on the X-Axis. I am using coffeescript to render these values. Here is the code for the graph: class Dashing.Graph extends Dashing.Widget @accessor 'points', Dashing.AnimatedValue @accessor 'current', -> return @get('displayedValue') if @get('displayedValue') points = @get('points') if points

Rufus Scheduler :first_in option unknown with cron

。_饼干妹妹 提交于 2019-12-10 10:34:38
问题 I am trying to use the Rufus Scheduler (within Dashing) to schedule a cron job, but also have it run once upon the server spinning up. I am following the readme here where it is saying to do the following: scheduler.cron '00 14 * * *', :first_in => '3d' do # ... every day at 14h00, but start after 3 * 24 hours end When I try to do this, I get the following error in my job: `cron': unknown option: :first_in (ArgumentError) Has anyone come across this? 回答1: Dashing is using rufus-scheduler 2.0

Rufus Scheduler :first_in option unknown with cron

谁都会走 提交于 2019-12-06 13:31:28
I am trying to use the Rufus Scheduler (within Dashing) to schedule a cron job, but also have it run once upon the server spinning up. I am following the readme here where it is saying to do the following: scheduler.cron '00 14 * * *', :first_in => '3d' do # ... every day at 14h00, but start after 3 * 24 hours end When I try to do this, I get the following error in my job: `cron': unknown option: :first_in (ArgumentError) Has anyone come across this? Dashing is using rufus-scheduler 2.0.24 ( https://github.com/Shopify/dashing/blob/55f90939eae4d6eb64822fd3590f694418396510/dashing.gemspec#L24 )

Scraping a site that requires login username and password on two separate pages

拥有回忆 提交于 2019-12-06 07:24:04
问题 I'm trying to scrape information from my companies Intranet so that I can display information on our office wall board via dashing dashboard. I'm trying to work with the provided information from:This Site.The problem that I'm having other than being a noob is that in order to gain access to the information I want to scrape, I need to login to our Intranet providing my username on one page then submitting to another so that I can provide my password. Once I'm logged in, I can then link and

Dashing does not run on Heroku

谁说胖子不能爱 提交于 2019-12-06 05:01:30
I'm trying to deploy Dashing to Heroku. Everthing runs perfectly on localhost. Deploying with the instructions provided by the github page It seems to be something to be with the backports gem. Below are the heroku log files 2014-11-26T21:12:22.141799+00:00 heroku[web.1]: State changed from crashed to starting 2014-11-26T21:12:32.932667+00:00 heroku[web.1]: Starting process with command `bundle exec thin start -R config.ru -e production -p 23294` 2014-11-26T21:12:40.618062+00:00 app[web.1]: /app/vendor/bundle/ruby/2.0.0/gems/backports-3.6.0/lib/backports/1.9.1/io/open.rb:2:in `close': Bad file

Scraping a site that requires login username and password on two separate pages

房东的猫 提交于 2019-12-04 12:02:21
I'm trying to scrape information from my companies Intranet so that I can display information on our office wall board via dashing dashboard. I'm trying to work with the provided information from: This Site .The problem that I'm having other than being a noob is that in order to gain access to the information I want to scrape, I need to login to our Intranet providing my username on one page then submitting to another so that I can provide my password. Once I'm logged in, I can then link and scrape my data. Here is some source code from my login username page: <form action='loginauthpwd.asp