search for: alevan

Displaying 20 results from an estimated 41 matches for "alevan".

Did you mean: llevan
2006 May 19
9
[NEW SITE] psitsNOT
psitsNOT ("Photoshop it''s NOT") is an over-the-web image editing application made with Rails, RMagick, and AJAX. It provides everything you need to make a raw digital image look good on the web. http://psitsnot.alevans.com You''ll need an OpenID URL to log in. Feedback is welcomed! --Al Evans -- Posted via http://www.ruby-forum.com/.
2006 Jul 05
5
How do I reset rails in production mode on DreamHost?
Hello! I am testing rails on DreamHost. I believe it''s running on apache. In development mode, it ran very slowly. So I changed it into production mode and switched to fcgi. It''s very fast now. But the problem is that if I add actions to a controller, it''s not applied. I know that in production mode, I need to restart web server. But I don''t control the web
2006 Aug 02
5
monitor fcgi?
Im trying to get a new app up on dreamhost. What fun :/ Id like to try out the ''frao_handler'' which just keeps dreamhost from automatically killing my fcgi processes. But Im also worried about things getting out of hand. I seem to remember that captures in views can cause problems with fcgi (I might just be making that up????), and I do have few in my app. And well Im
2006 Jul 01
0
fcgi_watch update
I''ve updated fcgi_watch to version 0.3.1. There''s no real functional difference, but I fixed a bug that caused it to report multiple copies of the same FCGI process as "running" under certain conditions. The updated version is here: http://www.alevans.com/dl/fcgi_watch-0.3.1.tgz For those just tuning in: fcgi_watch is a supplement to (or replacement for) <rails_app>/script/process/reaper. The standard reaper script searches for all processes started with a given pathname using the output from a ps command, and performs an action on the...
2006 Jul 07
1
Cronjob / .rb help clearing session table (new to cronjobs)
I just launched my first ROR app and i need to implement the session database cleanup. I am new to cronjobs. I have used one once but it was all copy/paste. I was hoping someone knew of a good tutorial or resource to get started here or might be able to give me a little help. I have seen a lot of posts that reference setting a cron job to clear old sessions but I am not clear on: Can you
2006 Jun 02
0
psitsNOT now available as a Rails Engine
...ture-rich, psitsNOT lets you rotate and crop; adjust brightness, contrast, and color balance; then reduce grain, enhance color contrast, sharpen, and set the final size of an image. It does a great job at enhancing digital photos for display on the web. A demo site is online at http://psitsnot.alevans.com (You''ll need an OpenID URL to log in and edit photos! See the links on the login page.) psitsNOT is now available as a Rails Engine! Not only that, but when its name gets Railsified, it comes out to p_sitsnot_engine! :-) Following the instructions in the README, you can build a b...
2006 Jun 21
0
fcgi_watch (reaper replacement for shared servers)
...can "expire" processes older than a given number of hours. You can also set a maximum number of FCGI dispatchers that you want to allow for a given application. "fcgi_watch expire" will terminate the extras -- gracefully, if possible. You can get fcgi_watch here: http://www.alevans.com/dl/fcgi_watch-0.3.0.tgz I wrote fcgi_watch to solve my FCGI management problems, and it''s made my life easier. Hope it helps someone else out!:-) Please email me with any problems, suggestions, improvements, etc. --Al Evans -- Posted via http://www.ruby-forum.com/.
2006 Jun 22
0
SessionCleanup (clean up sessions within Rails app)
...essionCleanup is not for you! TODO! SessionCleanup presently only handles sessions stored in the file system (CGI::Session::PStore) or in the database (CGI::Session::ActiveRecordStore). I would welcome contributed code for the other possible cases! You can get SessionCleanup here: http://www.alevans.com/dl/session_cleanup-0.3.0.tgz I wrote SessionCleanup to help with a case where I have work files associated with sessions, and because I didn''t want to have to use a cron job to maintain my Rails apps. Maybe it''ll be useful to someone else:-) Please email me with any prob...
2006 May 17
3
What am I missing?
There''s got to be a simple answer to this... def logout reset_session flash[:notice] = "Logged out" redirect_to :action => ''index'' end The flash never shows up, and doesn''t seem to be in the new session. --Al Evans -- Posted via http://www.ruby-forum.com/.
2006 Jul 03
3
ActionMailer -- anybody ever see this?
I''ve got a mailer that works -- about every other time. Authentication fails the other half of the time. There doesn''t seem to be any particular pattern to it -- work once, fail once, work three times, fail twice, .... For example, here''s one attempt from my development.log: Sent mail: Date: Sun, 2 Jul 2006 18:50:57 -0500 From: someone <someone@something.org>
2006 Apr 20
5
Rails, FCGI, Dreamhost
Is anybody getting acceptable performance with a Rails application on Dreamhost? By this, I mean response times no greater than 3 seconds, and no large numbers of FCGI processes that you have to kill manually. If so, how? I''ve ended up running a constant ping script (once every ten minutes), and still have to kill some number of excess dispatch.fcgi processes every day. Along with
2006 Aug 16
5
too many SESSIONS?
I just notices my app was down, and in the log file were lots of these: No space left on device - ../config/../tmp/sessions//ruby_sess.898b1cf95e14f8e3 So i figured that i had too many sessions. I went through and deleted the sessions and then in a few minutes, the site was back up again. Can anyone explain this? Did I do the right thing? Is there a way I can tell my app to accept more
2006 Jun 06
4
PHP FTP functions equivalents?
Two questions from a PHP guy thinking of moving to Rails: 1. Does Rails have equivalents for PHP''s FTP functions (www.php.net/ftp)? 2. What about image editing functions similar to PHP''s GD2 functions? (I would basically want to be able to crop, rotate, draw lines, add text...) I searched online for the above but I got somewhat conflicting info about image editing and
2006 Jun 22
4
Can I peek at all "active sessions"?
My users need to login to run the app I''m building. I''d like to give them an "Other users currently active:" piece of information. I could track it myself in the database based on login/logout, but that doesn''t really count for people just leaving the computer logged in and never coming back. Does Rails have an API for me to monitor sessions and take a
2006 May 18
3
capistrano and Dreamhost issue
Hi, i''m striving to capistranize a foo app on DH. Everything is hosted on DH to simplify a bit : - svn repository (http access) - the application - the DB I used the recipe of Jamis Buck modified by Geoffrey Grosenbach which you can find here : http://nubyonrails.com/pages/shovel_dreamhost I did the least modifications possible. As recommended. 1) When I launch the
2006 Jun 06
4
Checking if a directory is empty using File
Hi, I have one minor issue. I''m trying to check whether a directory is empty given some path to the directory. My code does the following: if(File.directory?(dirpath)) # dirpath = public/images/1 if(File.zero?(dirpath)) FileUtils.rm_rf(dirpath) end end The problem is, while testing this, if I put a file in the directory and run the above code, it still ends up deleting the
2006 Aug 22
7
Cleanup at session expiration
I''m going to explicitly time out sessions if they''re idle more than X minutes. Like online banking sites do. How do I set things up so that, when a session expires, a set of database records and a set of files that may have been created (which are identified via a seperate set of database records) are deleted just before the session data? TIA, Bill
2006 Jun 22
12
invalidating a session on multiple login
How do I do the following: if a user is logged in, then opens another browser tab and logs in again (either as himself or as someone else), I want to invalidate the session in the first tab and throw up a "logged in from another browser window" screen. RIght now, user1''s session silently becomes a duplicate user2 session instead (from what I understand, sessions are bound to
2006 Aug 04
8
Capistrano /usr/bin/env: ruby: no such file or directory
Hi, I''m deploying to a prod linux server via Capistrano, but the last step, running the reaper, won''t complete. Ruby is stored in /usr/local/bin on the server, and I''m deploying from winxp. $ ssh mcalogin@lx07 Password: mcalogin@LX07:~> env | grep "^PATH" PATH=/usr/local/bin:/usr/bin:/usr/X11R6/bin:/bin:/usr/games:/opt/gnome/b in:/opt/
2006 May 09
7
FCGI and the never ending saga of deploying on Dreamhost
I''m trying to setup an app on Dreamhost and running into no end of problems. The app is running with edge rails and I''m currently getting the dreaded ''Rails application failed to start'' white screen when trying to access it. I''ve gone through all the ''gotchas'' and troubleshooting docs at Dreamhost and the rails wiki to no avail.