Member since Oct 07, 2007, follows 1 people, 0 public groups, 67 public bookmarks (69 total).
More »
Tags
| Recent Tags: |
|
|---|---|
| Top Tags: |
More »
Recent Bookmarks and Annotations
-
AstroGrid VOSpace service - Installation on 2009-09-09
-
#
# Install Tomcat and the admin webapps.
yum install tomcat5
yum install tomcat5-webapps
yum install tomcat5-admin-webapps
-
-
Delayed Gratification with Rails // RailsTips by John Nunemaker on 2009-08-21
-
Example 1: Delay Something
Now the fun part: pick something to delay. A great place for delay is email. I’ve seen places where apps have broken due to email not being able to send. Maybe the client changed their email server and didn’t tell the programmer, or maybe the mail server was temporarily down for maintenance. Either way, it generally shouldn’t stop our app.
-
-
collectiveidea's delayed_job at master - GitHub on 2009-08-21
-
Jobs are simple ruby objects with a method called perform. Any object which responds to perform can be stuffed into the jobs table.
Job objects are serialized to yaml so that they can later be resurrected by the job runner.
class NewsletterJob < Struct.new(:text, :emails)
def perform
emails.each { |e| NewsletterMailer.deliver_text_to_email(text, e) }
end
end
Delayed::Job.enqueue NewsletterJob.new(‘lorem ipsum…’, Customers.find(:all).collect(&:email))There is also a second way to get jobs in the queue: send_later.
BatchImporter.new(Shop.find(1)).send_later(:import_massive_csv, massive_csv)This will simply create a Delayed::PerformableMethod job in the jobs table which serializes all the parameters you pass to it. There are some special smarts for active record objects
which are stored as their text representation and loaded from the database fresh when the job is actually run later.
-
-
MagnionLabs.com Background job processing in Rails with delayed_job on 2009-08-21
-
My favorite one so far is:
delayed_job. Because its
simple to set up, simple to use and has lot of powerful features. However,
don’t forget to look at others to see what fits you needs and style
better. For an overview see here. In the rest of the article, I will explain how to install and use delayed_job.
-
-
ActionMailer::Base:Class (NoMethodError) on script/server - Rails Forum - Ruby on Rails Help and Discussion Forum on 2009-07-31
-
I believe it should be ActionMailer::Base.smtp_settings, not server_settings
-
-
Action Mailer Configuration => Rails Wiki on 2009-07-23
-
if RAILS_ENV != 'test'
email_settings = YAML::load(File.open("#{RAILS_ROOT}/config/email.yml"))
ActionMailer::Base.smtp_settings = email_settings[RAILS_ENV] unless email_settings[RAILS_ENV].nil?
end -
And then create #{RAILS_ROOT}/config/email.yml with the following
-
- How to Send Email with Ruby on Rails - About Email on 2009-07-23
-
Setting up Subversion in Linux - Section6wiki on 2009-06-30
-
root@host# apt-get install subversion
Reading package lists... Done
Building dependency tree... Done
The following extra packages will be installed:
db4.2-util libsvn0
Suggested packages:
subversion-tools
The following NEW packages will be installed:
db4.2-util libsvn0 subversion
0 upgraded, 3 newly installed, 0 to remove and 0 not upgraded.
Need to get 1821kB of archives.
After unpacking 6279kB of additional disk space will be used.
Do you want to continue [Y/n]? -
root@host# apt-get install apache2
root@host# apt-get install subversion-tools
root@hotst apt-get install libsvn0
-
-
How to install Subversion [SVN] on Linux Server/VPS... - UK Web Hosting | Dedicated Server and VPS Forum on 2009-06-30
-
cd /usr/local/src/
wget http://subversion.tigris.org/downloa...n-1.4.5.tar.gz
wget http://subversion.tigris.org/downloa...s-1.4.5.tar.gz
wget http://www.sqlite.org/sqlite-3.5.2.tar.gz
tar xzf subversion-1.4.5.tar.gz
tar xzf subversion-deps-1.4.5.tar.gz
tar xzf sqlite-3.5.2.tar.gz
cd sqlite-3.5.2
./configure
make
make install
./sqlite3
.help
.exit
cd ..
cd subversion-1.4.5
./configure
make
make install
svn --version -
"yum install subversion"
-
-
Converting The Repos | .: SNH Homepage :. on 2009-06-26
-
$ hgimportsvn http://url.to.repo/repo
...^^^Sets up the import
$ cd repo
...^^^Changes to the freshly created subdir
$ hgpullsvn
...^^^Pulls down all the changes from svn and creates an hg history
$ hg update (optional)
-
Jyotsna oswal follows 1 people
Highlighter, Sticky notes, Tagging, Groups and Network: integrated suite dramatically boosting research productivity. Learn more »
Join Diigo