From: Alex Baranosky on 22 Mar 2010 20:50 So I am interested in writing a program to read a file I write, with different reminder info in it, and then have it send emails to my account with the proper message on the proper days as reminders for me. Ruby's one of my favorite languages so I thought I'd code it in Ruby. At first thought it seems I would like this software to run all the time, so a web app would make most sense. Then I thought I could probably get away with having it run in the background, and have it start running on startup. The webapp version, seems like the better approach, though I'd like to avoid paying much of anything for the hosting. My bandwidth usage would be TINY, so perhaps something that charges by the bandwidth would be best option for this? (Heroku??) An ideas on what would be some good ideas for a little app like this? Ruby-world specific libraries, or Rails libraries etc... Maybe Rails isn't even the right approach, considering how simple the webapp is; it's really just a extremely simple service; its just a glorified spam bot ;) (for myself) All ideas are welcome. Thanks for the help, Alex -- Posted via http://www.ruby-forum.com/.
From: Christoph Jasinski on 22 Mar 2010 21:54 [Note: parts of this message were removed to make it a legal post.] Hi, consider using sinatra / padrino which are tiny ruby web frameworks. Your app sounds a little like http://www.memorari.us/ (know the guy who built that one). Pieces that came in my mind: - file uploads (your file may be in CSV or YML for easy parsing) may simple HTTP uploads or plugins/gems like paperclip etc. - ActionMailer ( http://lindsaar.net/2010/1/26/new-actionmailer-api-in-rails-3) - Managing uploaded files - Managing content (like turning some notifications off or modify the target) Cheers & good luck Chris
From: Ben Bleything on 22 Mar 2010 22:05 On Mon, Mar 22, 2010 at 5:50 PM, Alex Baranosky <abaranosky(a)hotmail.com> wrote: > So I am interested in writing a program to read a file I write, with > different reminder info in it, and then have it send emails to my > account with the proper message on the proper days as reminders for me. Neat! > At first thought it seems I would like this software to run all the > time, so a web app would make most sense. Does it? I don't think so. > Then I thought I could probably get away with having it run in the > background, and have it start running on startup. The webapp version, > seems like the better approach, though I'd like to avoid paying much of > anything for the hosting. My bandwidth usage would be TINY, so perhaps > something that charges by the bandwidth would be best option for this? > (Heroku??) Sure, a webapp is running all the time, but unless there's a request coming in, it's not doing anything. That means that you'd need to automate something to hit the app every so often to get it to do whatever it is you want to do. > An ideas on what would be some good ideas for a little app like this? > Ruby-world specific libraries, or Rails libraries etc... Maybe Rails > isn't even the right approach, considering how simple the webapp is; > it's really just a extremely simple service; its just a glorified spam > bot ;) (for myself) Skip the webapp idea altogether. What you want is a script that can parse a file and for each entry in the file say "do I need to email about this?" and then either do so or move on to the next. Then, set it up to run under cron however often you like, and you're set. You'll likely want to leave behind an artifact of the last run time, so you'll know when the last run was and therefore be able to figure out if any events fired in the meantime. You might be interested in chronic for date parsing: http://github.com/mojombo/chronic Ben
From: Alex Baranosky on 22 Mar 2010 22:08 Hey Thanks Christopher, My thing is like Memorari, except I want to be able to set things to remind me say every 2 weeks, or every thee weeks, etc... Thanks for the ideas. Alex -- Posted via http://www.ruby-forum.com/.
From: Alex Baranosky on 22 Mar 2010 22:57 Oh thanks for the ideas Ben, I guess you're right now that I think of it. I'll have to look into setting cron jobs on windows. -- Posted via http://www.ruby-forum.com/.
|
Next
|
Last
Pages: 1 2 3 Prev: read CSV file using csv library Next: less than sign for inheritance in classes |