Displaying 20 results from an estimated 29 matches for "demello".
Did you mean:
adamello
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 Nov 04
8
alternatives to script/runner?
I''ve been using script/runner to add and delete files from the
database in response to inotify events. This works in theory, but is
too slow to keep up with a large number of events in succession; I''m
suspecting that the bottleneck is that script/runner has a huge
startup cost.
One thing I thought of was to queue inotify events, and call
script/runner once a minute to clear the
2006 May 11
9
Undoing a SHA1
Hello for my password recovery system I want to recover the users
password and send it to them. In the DB its saved via SHA1 (login
generator)
--
Posted via http://www.ruby-forum.com/.
2006 Aug 17
7
preventing multiple logins
I want to set my app up to prevent multiple simultaneous logins by the
same user. What strategies are people using? Is it worth going to
database session storage just for this?
martin
2006 Mar 22
3
database access from outside rails
I need to have a daemon read from and write to the database, and it
would be nice to be able to use ActiveRecord and all the model/* files
from my rails project rather than doing things the long way. Is there
any recommended strategy for that?
martin
2006 Jul 10
2
inline javascript in partials
When rendering the following partial, the <script> block isn''t getting
rendered at all. Does rails strip this out or is it some limitation of
the browser?
<% remote_options = {
:update => update,
:with => "Form.serialize(''#{form}'')",
:url => { :action => "process_multiple" }
} %>
<% do_before ||= nil %>
<% click_fn =
2006 Jun 23
3
Help Analyzing The Log...(first time newbie)
Hello.
Can someone please help me read this error log located in the log
folder? [
displays ''ESC'' in my editor, but did not display in this copy and paste.
so i''m wondering what that means too..
Session ID: cefa85a414c483d345b4e2fd5ce9449c
/ ^ just the session id /
Parameters: {"action"=>"index",
2007 Jul 31
2
merb speed
Hi,
We have a rails app which is essentially a web UI to a unix
filesystem, and which has been performing rather slowly. I''ve been
looking at rewriting it in merb, so I did a quick spike where I ported
over all the rails code necessary to log in as a user, and generate
the same file list page that rails was serving up. However, the
numbers appear quite bad (twice as slow as rails, for a
2006 May 19
1
ldap authentication and useradd
we''re in the process of setting up an openldap server, for unified
unix and webapp authentication, and i''m trying to find a good
equivalent of adduser that takes care of generating unique unix
numerical uids. what are people using for this? [i''ve googled around
and found http://prope.insa-lyon.fr/~ppollet/ldap/useradd.pl but it''s
dated 2000]
martin
2006 Apr 26
3
acts_as_taggable gem: deleting tags
I have the following quick-and-dirty hack in my model:
def after_destroy
# search for orphaned tags and delete them
orphans = Resource.tags_count :count => ''= 0''
orphans.keys.each {|tag| Tags.find_by_name(''tag'').destroy}
end
It''s nice from a readable code perspective, but it seems inefficient -
is there some way to do this with only one
2006 Jan 22
1
direct sql "delete from"
I was thinking, if I don''t manage to figure out the problem with
acts_as_taggable, that I could untag objects via a direct SQL DELETE
on the tag join table (something like "where tag_id = tag_to_delete
and user_id = current_user"). Are there any dangers to this approach?
martin
2007 Jul 27
1
locals within a partial
How do you access something you''ve passed to a partial in the locals hash?
<% for file in @file_list %>
<tr id="file_row_<%= file[0].id %>">
<%= render_no_layout :template => "/shared/_file",
:locals => { :file => file } %>
</tr>
<% end %>
but when rendering the shared/_file.rhtml template it complains about
2005 Feb 28
0
Re: win32utils installer
Hi All,
I am working on this bug report by Martin. I am surprised that this has
gone unnoticed for so long. Can we do something to catch such omissions
in the test/unit modules?
-- Shashank
Shashank Date wrote:
> Martin DeMello wrote:
>
>> The win32utils installer (from
>> http://rubyforge.org/frs/?group_id=85&release_id=1233) only seems to
>> install the .so files; the .rb files aren''t installed unless you get the
>> packages individually. Is this a problem with my setup or with th...
2004 Mar 15
0
Re: [OT] outwit - unixlike tools for windows
"Martin DeMello" <martindemello@yahoo.com> wrote in message
> Looks like a *very* useful addition to the windows toolbox - contains
> programs to manipulate the clipboard, registry, ODBC layer and a few
> other windowsy things using the unix ''take input from other programs,
> format...
2006 Aug 06
4
DRY Scaffolds
I''ve got 8 scaffolds, each one can be considered an ''item'', such as a
blog, photo, etc. Using login_engine and user_engine, I list all blogs
belonging to a user by saying:
@user=session[:user]
@blogs=@user.blogs.find(:all)
but then let''s say I want to create an option where I want to slice it
differently:
@user=session[:user]
if @someOption ==1
2006 Aug 06
2
file upload with form_remote_tag
Is there a way to use form_remote_tag and to upload a file? The default
behavior ignores the upload when the Javascript serializes the form to
create the parameter list.
Basically, i''m just looking for an ajax file upload capability. Any help
would be appreciated.
thanks.
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
2006 Jan 22
2
acts_as_taggable: weird SQL problem with untagging
Setup as follows:
class Resource < ActiveRecord::Base
belongs_to :user
validates_presence_of :filename
validates_uniqueness_of :filename, :scope => "user_id",
:message => "already exists, try uploading another file or deleting first."
acts_as_taggable :join_class_name => ''TagResource''
2006 Apr 01
5
Upload a zip using a form and extract if afterwards on srv?
Hi all
It like my visitors to be able to upload a zip file (or any other
possible compressed file archive) to my server. After upload, my web app
should extract the content to the server and delete the zip file.
Is this possible somehow? I''m very thankful for help.
Have a nice weekend,
Joshua
--
Posted via http://www.ruby-forum.com/.
2006 Aug 04
9
Mongril or Lighthttttp? Yes
I was writing my blob at http://railsblob.blogspot.com/ which is for new
people who are new to Rubby and I was learning if Mongril or
Lighthttttp? or Web Rick is better for me. Have you any advice. Thanks?
Rails Blobber
--
Posted via http://www.ruby-forum.com/.