This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# http://groups.google.com/group/rufus-ruby/t/354ddbeacd16de51 | |
require 'rubygems' | |
require 'rufus/scheduler' | |
scheduler = Rufus::Scheduler.start_new | |
tloop = nil |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# http://groups.google.com/group/rufus-ruby/t/354ddbeacd16de51 | |
require 'rubygems' | |
require 'rufus/scheduler' | |
scheduler = Rufus::Scheduler.start_new | |
scheduler.cron '0,10,20,30,40,50 * * * *' do | |
tloop = Thread.new do |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# http://groups.google.com/group/rufus-ruby/t/354ddbeacd16de51 | |
require 'rubygems' | |
require 'rufus/scheduler' | |
scheduler = Rufus::Scheduler.start_new | |
scheduler.cron '0,10,20,30,40,50 * * * *' do | |
_until = Time.now + 5 * 60 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# http://groups.google.com/group/rufus-ruby/t/354ddbeacd16de51 | |
require 'rubygems' | |
require 'rufus/scheduler' | |
module Tstamp | |
FNAME = '.tstamp' | |
def self.stamp | |
File.open(FNAME, 'w') { |f| f.write(Time.now.to_f.to_s) } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ ~/.multiruby/install/1.8.7-p72/bin/irb | |
irb(main):001:0> DateTime.new! | |
NameError: uninitialized constant DateTime | |
from (irb):1 | |
irb(main):002:0> require 'time' | |
=> true | |
irb(main):003:0> DateTime.new! | |
NoMethodError: undefined method `new!' for DateTime:Class | |
from (irb):3 | |
irb(main):004:0> require 'datetime' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'rubygems' | |
require 'rufus/scheduler' | |
s = Rufus::Scheduler.start_new | |
def long_job | |
puts "#{Time.now} processing" | |
sleep 6 | |
rescue |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<process-definition name="activation" revision="j0.0.3"> | |
<cursor> | |
<set field="activator" field-value="userName"/> | |
<to-editor /> | |
<to-publisher /> | |
<to-super-publisher /> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<link rel="alternate" type="application/rss+xml" title="RSS 2.0" href="http://jtonedm.com/feed/" /> | |
<link rel="alternate" type="text/xml" title="RSS .92" href="http://jtonedm.com/feed/rss/" /> | |
<link rel="alternate" type="application/atom+xml" title="Atom 1.0" href="http://jtonedm.com/feed/atom/" /> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## lib/business_logic.rb | |
require 'rubygems' | |
require 'rufus/scheduler' | |
module BusinessLogic | |
@scheduler ||= Rufus::Scheduler.start_new |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# | |
# http://groups.google.com/group/rufus-ruby/t/354ddbeacd16de51 | |
# | |
require 'rubygems' | |
require 'rufus/scheduler' | |
scheduler = Rufus::Scheduler.start_new |