[CommunityEngine] Re: about scalability

2010-09-01 Thread sprite
Way too general of a question. You could scale CE for millions of
users through multiple servers with load balancing, db read slaves,
etc.

On Sep 1, 2:01 am, bergerlijk dhimt...@gmail.com wrote:
 hi,
    I am thinking of using community engine, but i am confused about
 the scalability issue of community engine,i,e how many users it can
 handle. Please provide me with the solution regarding the issue.

-- 
You received this message because you are subscribed to the Google Groups 
CommunityEngine group.
To post to this group, send email to communityeng...@googlegroups.com.
To unsubscribe from this group, send email to 
communityengine+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/communityengine?hl=en.



[CommunityEngine] Re: CE memory footprint

2010-01-21 Thread sprite
My passenger processes are running at around 30MB

I merged CE code with my own code though and also stripped out some
models, etc. I also eliminated the need for Engines (my app was
running on a pre desert build of CE).

I am running Rails 2.3.5 on Ruby Enterprise Edition with Apache/
Passenger 2.2.2

On Jan 21, 7:25 pm, rmahnovetsky rmahnovet...@gmail.com wrote:
 so if my app was originally about 60MB and your is about 70MB then
 that makes 130MB which is about what we see. Well it is hovering from
 105 to 130MB now since we added minimagick in. Sound right?

 On Jan 22, 1:42 am, Bruno Bornsztein bruno.bornszt...@gmail.com
 wrote:

    Before I added the plugin I was using around 60-70
   MB and now with CE I'm using around 130 - 140MB. Is this normal?

  It's been a while since my apps have been running on Passenger, but this
  doesn't sound right to me. As I recall, my apps used to hover around 70 MB.
  Anyone else?



-- 
You received this message because you are subscribed to the Google Groups 
CommunityEngine group.
To post to this group, send email to communityeng...@googlegroups.com.
To unsubscribe from this group, send email to 
communityengine+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/communityengine?hl=en.



[CommunityEngine] Re: CE memory footprint

2010-01-21 Thread sprite
I just pay attention to the commits and if I see anything that I want
myself I manually add it to my code. It seemed like the best option to
me because my CE install was so modified that it would be hard for me
to upgrade to desert branch and I didn't want to be stuck on Rails
2.2.2 with engines. Of course you do lose the ability to automatically
update CE stuff as you do when running it as a plugin.

The site I'm working on is http://www.vipwithme.com

On Jan 21, 11:09 pm, rmahnovetsky rmahnovet...@gmail.com wrote:
 wow 30MB is awesome. Maybe that is an option for me I can merge CE
 with my own code. That will remove desert anyway, maybe that can save
 me a bit of memory. How do you go about getting the latest fixes for
 CE? I image it would be a manually process?

 Raf

 On Jan 22, 10:31 am, sprite aake.gregert...@gmail.com wrote:

  My passenger processes are running at around 30MB

  I merged CE code with my own code though and also stripped out some
  models, etc. I also eliminated the need for Engines (my app was
  running on a pre desert build of CE).

  I am running Rails 2.3.5 on Ruby Enterprise Edition with Apache/
  Passenger 2.2.2

  On Jan 21, 7:25 pm, rmahnovetsky rmahnovet...@gmail.com wrote:

   so if my app was originally about 60MB and your is about 70MB then
   that makes 130MB which is about what we see. Well it is hovering from
   105 to 130MB now since we added minimagick in. Sound right?

   On Jan 22, 1:42 am, Bruno Bornsztein bruno.bornszt...@gmail.com
   wrote:

  Before I added the plugin I was using around 60-70
 MB and now with CE I'm using around 130 - 140MB. Is this normal?

It's been a while since my apps have been running on Passenger, but this
doesn't sound right to me. As I recall, my apps used to hover around 70 
MB.
Anyone else?



-- 
You received this message because you are subscribed to the Google Groups 
CommunityEngine group.
To post to this group, send email to communityeng...@googlegroups.com.
To unsubscribe from this group, send email to 
communityengine+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/communityengine?hl=en.



[CommunityEngine] Re: CE memory footprint

2010-01-21 Thread sprite
Nothing really NSFW yet since it is under development.

Anyways here are my passenger memory stats:

30299  1259.2 MB  22.0 MB  Passenger ApplicationSpawner: /var/
www/vipwithme
30333  1260.3 MB  23.3 MB  Rails: /var/www/vipwithme
30335  1260.3 MB  23.4 MB  Rails: /var/www/vipwithme
30337  1266.6 MB  34.2 MB  Rails: /var/www/vipwithme
30339  1267.6 MB  35.5 MB  Rails: /var/www/vipwithme


On Jan 22, 12:32 am, rmahnovetsky rmahnovet...@gmail.com wrote:
 I probably shouldn't have opened that site at work ;)

 I might branch my code and give it a try with CE embedded in my code.
 I'll report back and let everyone know if there was a memory
 improvement or not.

 Raf

 On Jan 22, 2:13 pm, sprite aake.gregert...@gmail.com wrote:

  I just pay attention to the commits and if I see anything that I want
  myself I manually add it to my code. It seemed like the best option to
  me because my CE install was so modified that it would be hard for me
  to upgrade to desert branch and I didn't want to be stuck on Rails
  2.2.2 with engines. Of course you do lose the ability to automatically
  update CE stuff as you do when running it as a plugin.

  The site I'm working on ishttp://www.vipwithme.com

  On Jan 21, 11:09 pm, rmahnovetsky rmahnovet...@gmail.com wrote:

   wow 30MB is awesome. Maybe that is an option for me I can merge CE
   with my own code. That will remove desert anyway, maybe that can save
   me a bit of memory. How do you go about getting the latest fixes for
   CE? I image it would be a manually process?

   Raf

   On Jan 22, 10:31 am, sprite aake.gregert...@gmail.com wrote:

My passenger processes are running at around 30MB

I merged CE code with my own code though and also stripped out some
models, etc. I also eliminated the need for Engines (my app was
running on a pre desert build of CE).

I am running Rails 2.3.5 on Ruby Enterprise Edition with Apache/
Passenger 2.2.2

On Jan 21, 7:25 pm, rmahnovetsky rmahnovet...@gmail.com wrote:

 so if my app was originally about 60MB and your is about 70MB then
 that makes 130MB which is about what we see. Well it is hovering from
 105 to 130MB now since we added minimagick in. Sound right?

 On Jan 22, 1:42 am, Bruno Bornsztein bruno.bornszt...@gmail.com
 wrote:

    Before I added the plugin I was using around 60-70
   MB and now with CE I'm using around 130 - 140MB. Is this normal?

  It's been a while since my apps have been running on Passenger, but 
  this
  doesn't sound right to me. As I recall, my apps used to hover 
  around 70 MB.
  Anyone else?



-- 
You received this message because you are subscribed to the Google Groups 
CommunityEngine group.
To post to this group, send email to communityeng...@googlegroups.com.
To unsubscribe from this group, send email to 
communityengine+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/communityengine?hl=en.



[CommunityEngine] Re: Clean up Tag implementation

2009-07-01 Thread sprite

I just patched in the latest tags code from edge into my code base and
I'm experiencing the same issues.

Surrounding  the tags in quotes makes them one tag

 TagList.from('Multiword Tag, Oneword')
= [Multiword, Tag, Oneword]
 TagList.from('Multiword Tag, Oneword')
= [Oneword, Multiword Tag]



On Jul 1, 1:34 pm, Bruno Bornsztein bruno.bornszt...@gmail.com
wrote:
 Great. Thanks!

 On Wed, Jul 1, 2009 at 9:59 AM, Errol Siegel errolsie...@gmail.com wrote:
  Thanks for  the feedback.

  Just to clarify: the item about showing tags in a comma-separated list only
  applies to the New and Edit views -- they are shown separated by plus signs
  in the text input field.

  I have used AATOS in other projects and not seen these behaviors so what
  you are saying  makes sense -- there may be some bugs in the CE code that is
  causing these issues.

  I'll come up with some specific, reproducible use cases.  If you agree that
  they are bugs then I'll add them to Lighthouse (and help fix them).

  On Wed, Jul 1, 2009 at 6:40 AM, Bruno Bornsztein 
  bruno.bornszt...@gmail.com wrote:

  These are use cases that *should* be covered
  (acts_as_taggable_on_steroids is built to cover them). If they aren't
  working, I consider these bugs, not feature requests.

  1. Disallow any whitespace in the tag_list input

  Not necessary.

  2. Allow only alphanumeric characters in the tag_list input

  Probably not needed: tags should be URL encoded when used in route
  generation.

  3. Display the tag list separated by commas

  Sure, that's fine... I often use a little tag icon by each tag as well.

  4. Automatically Capitalize tags -- not sure if everybody would want
  this

  I'd say no to this.

  4. Provide a tag admin interface so the administrator can easily edit/
  delete tags (mainly to make it easy to delete inappropriate tags).

  Great idea!

  Bottom line: sounds like our tagging implementation is a little broken 
  (not handling commas, quotes correctly) and needs fixing.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
CommunityEngine group.
To post to this group, send email to communityengine@googlegroups.com
To unsubscribe from this group, send email to 
communityengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/communityengine?hl=en
-~--~~~~--~~--~--~---



[CommunityEngine] Re: Clean up Tag implementation

2009-07-01 Thread sprite

Changing delimiter to

self.delimiter = ','

in tag_list.rb seems to take care of the problem. Let me know if that
works.

On Jul 1, 1:34 pm, Bruno Bornsztein bruno.bornszt...@gmail.com
wrote:
 Great. Thanks!

 On Wed, Jul 1, 2009 at 9:59 AM, Errol Siegel errolsie...@gmail.com wrote:
  Thanks for  the feedback.

  Just to clarify: the item about showing tags in a comma-separated list only
  applies to the New and Edit views -- they are shown separated by plus signs
  in the text input field.

  I have used AATOS in other projects and not seen these behaviors so what
  you are saying  makes sense -- there may be some bugs in the CE code that is
  causing these issues.

  I'll come up with some specific, reproducible use cases.  If you agree that
  they are bugs then I'll add them to Lighthouse (and help fix them).

  On Wed, Jul 1, 2009 at 6:40 AM, Bruno Bornsztein 
  bruno.bornszt...@gmail.com wrote:

  These are use cases that *should* be covered
  (acts_as_taggable_on_steroids is built to cover them). If they aren't
  working, I consider these bugs, not feature requests.

  1. Disallow any whitespace in the tag_list input

  Not necessary.

  2. Allow only alphanumeric characters in the tag_list input

  Probably not needed: tags should be URL encoded when used in route
  generation.

  3. Display the tag list separated by commas

  Sure, that's fine... I often use a little tag icon by each tag as well.

  4. Automatically Capitalize tags -- not sure if everybody would want
  this

  I'd say no to this.

  4. Provide a tag admin interface so the administrator can easily edit/
  delete tags (mainly to make it easy to delete inappropriate tags).

  Great idea!

  Bottom line: sounds like our tagging implementation is a little broken 
  (not handling commas, quotes correctly) and needs fixing.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
CommunityEngine group.
To post to this group, send email to communityengine@googlegroups.com
To unsubscribe from this group, send email to 
communityengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/communityengine?hl=en
-~--~~~~--~~--~--~---



[CommunityEngine] Login slug bug

2009-05-29 Thread sprite

  def generate_login_slug
self.login_slug = self.login.gsub(/[^a-z1-9]+/i, '-')
  end

should read

  def generate_login_slug
self.login_slug = self.login.gsub(/[^a-z0-9]+/i, '-')
  end

The way it is now it substitutes 0's in a name for -
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
CommunityEngine group.
To post to this group, send email to communityengine@googlegroups.com
To unsubscribe from this group, send email to 
communityengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/communityengine?hl=en
-~--~~~~--~~--~--~---



[CommunityEngine] Ordering by if user has avatar in user index

2009-05-23 Thread sprite

How do I order by created at like the default is, but display users
without an avatar last?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
CommunityEngine group.
To post to this group, send email to communityengine@googlegroups.com
To unsubscribe from this group, send email to 
communityengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/communityengine?hl=en
-~--~~~~--~~--~--~---



[CommunityEngine] Re: Boritz: Suggested improvement to photos_controller#show

2009-04-04 Thread sprite

Needed a similar fix in comments_controller#index

  def index

@commentable = comment_type.constantize.find(comment_id)

if comment_type == 'Photo'
  @commentable = @commentable.parent if @commentable.parent
end


On Apr 1, 5:33 pm, sprite aake.gregert...@gmail.com wrote:
 Meant Bornsztein no idea why I typed Boritz... Sorry.

 On Apr 1, 5:29 pm, sprite aake.gregert...@gmail.com wrote:

  Just a recommendation. I noticed the behavior on TennisMetro.com is
  the same. Since for each picture you upload it generates 3 thumbnails,
  if you try to view those through show it causes a server error.
  (Crashes on @photo.previous_photo)

  I ended up doing this

    def show
      @photo = Photo.find(params[:id])
      @photo = @photo.parent if @photo.parent # If this is a thumbnail
  set the photo to the parent pic.
      if @photo
        @user = @photo.user
        @album = @photo.album
        @is_current_user = @user.eql?(current_user)
        @comment = Comment.new(params[:comment])

        @previous = @photo.previous_photo
        @next = @photo.next_photo
        @related = Photo.find_related_to(@photo)

       respond_to do |format|
          format.html # show.rhtml
       end
      end

      rescue ActiveRecord::RecordNotFound
        flash[:error] = The picture was not found.
        redirect_to :controller = 'base', :action = 'site_index'
    end

  Of course your code will be slightly different since you don't have
  albums.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
CommunityEngine group.
To post to this group, send email to communityengine@googlegroups.com
To unsubscribe from this group, send email to 
communityengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/communityengine?hl=en
-~--~~~~--~~--~--~---



[CommunityEngine] Re: Error when deleting a private message

2009-04-01 Thread sprite

Shouldn't that say redirect_to_user_messages_path(@user, @messages) ?

On Mar 31, 5:52 pm, Stephen step...@startmeetingpeople.com wrote:
 I have enabled messaging with my application that uses CE.

 When I select a message to delete I receive the following error:

 ActionController::RoutingError (user_message_url failed to generate
 from {:action=show, :controller=messages, :user_id=#User id:
 14, login: Stephen ...

 When I check the database the message is deleted. I think the error is
 from this line in CE.

  redirect_to user_message_path(@user, @messages)

 Has anyone else seen this problem?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
CommunityEngine group.
To post to this group, send email to communityengine@googlegroups.com
To unsubscribe from this group, send email to 
communityengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/communityengine?hl=en
-~--~~~~--~~--~--~---



[CommunityEngine] Re: Looking for advice - broke polymorphic_url behavior

2009-04-01 Thread sprite

This is probably not the best way to do it, but I ended up copying and
pasting all the routes for User for each of my subclassed user types.

On Mar 31, 1:39 pm, moritz a5s...@yahoo.com wrote:
 I've subclassed the CE User type using single-table inheritance and it
 all seemed to work fine.

 Now I discovered that polymorphic_url (used in commentable_url in
 BaseHelper) doesn't work well with it.  Instead of user_photo_path for
 example, it looks for myusertype_photo_path, which it can't find.

 I'm not that familiar with the route management and I'm looking for
 options to revive the behavior of comments w/o going all the way back
 to one single user class.  What are good options for it?  Can I make
 polymorphic_url believe that myusertype is a user and to just use
 that?  Other alternatives?

 Thanks in advance.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
CommunityEngine group.
To post to this group, send email to communityengine@googlegroups.com
To unsubscribe from this group, send email to 
communityengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/communityengine?hl=en
-~--~~~~--~~--~--~---



[CommunityEngine] Boritz: Suggested improvement to photos_controller#show

2009-04-01 Thread sprite

Just a recommendation. I noticed the behavior on TennisMetro.com is
the same. Since for each picture you upload it generates 3 thumbnails,
if you try to view those through show it causes a server error.
(Crashes on @photo.previous_photo)

I ended up doing this

  def show
@photo = Photo.find(params[:id])
@photo = @photo.parent if @photo.parent # If this is a thumbnail
set the photo to the parent pic.
if @photo
  @user = @photo.user
  @album = @photo.album
  @is_current_user = @user.eql?(current_user)
  @comment = Comment.new(params[:comment])

  @previous = @photo.previous_photo
  @next = @photo.next_photo
  @related = Photo.find_related_to(@photo)

 respond_to do |format|
format.html # show.rhtml
 end
end

rescue ActiveRecord::RecordNotFound
  flash[:error] = The picture was not found.
  redirect_to :controller = 'base', :action = 'site_index'
  end

Of course your code will be slightly different since you don't have
albums.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
CommunityEngine group.
To post to this group, send email to communityengine@googlegroups.com
To unsubscribe from this group, send email to 
communityengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/communityengine?hl=en
-~--~~~~--~~--~--~---



[CommunityEngine] Re: Using CE in production?

2009-03-31 Thread sprite

Probably not.

Here is my site anyways: http:/www.vipwithme.com

Some unique features I have are albums and the tag browser for
listings http://www.vipwithme.com/listings

On Mar 31, 7:40 am, Bruno Bornsztein bruno.bornszt...@gmail.com
wrote:
 Are you using CE on a production site? If so, I'd like to post a link on the
 communityengine.org page:http://communityengine.org/live.html

 Post a reply with a link to your site and a short description, and I'll
 update the Web site.
 Thanks!
 Bruno
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
CommunityEngine group.
To post to this group, send email to communityengine@googlegroups.com
To unsubscribe from this group, send email to 
communityengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/communityengine?hl=en
-~--~~~~--~~--~--~---



[CommunityEngine] Re: attachment_fu error testing in rails 2.2.2

2009-03-29 Thread sprite

Thanks. I ran into the same issue :)

On Feb 17, 5:04 pm, Bruno Bornsztein bruno.bornszt...@gmail.com
wrote:
 Check out the latest stuff in edge... I encountered this problem today and
 fixed it.

 On Tue, Feb 17, 2009 at 2:08 PM, Bruno Bornsztein 

 bruno.bornszt...@gmail.com wrote:
  Are you overriding any controllers, by any chance?

  On Wed, Feb 4, 2009 at 9:25 PM, SimianLogic learnyoura...@gmail.comwrote:

  It looks like a modified form of this patch is in /vendor/plugins/
  community_engine/engine_config/initializers/attachment_fu_fix.rb

  This code works for me while in development mode, but as soon as I
  switch to a production environment uploading an image bombs out with a
  NoMethodError (chunk of the trace below, pointing back to the
  attachment_fu_fix file). Has anyone else run into this? Running in
  development all the time is a suboptimal solution.

  NoMethodError (undefined method `after_resize_callback_chain' for
  #Class:0xb6ade4c0):
     /usr/local/lib/ruby/gems/1.8/gems/activerecord-2.2.2/lib/
  active_record/base.rb:1833:in `method_missing'
     /vendor/plugins/community_engine/engine_config/initializers/
  attachment_fu_fix.rb:25:in `send'
     /vendor/plugins/community_engine/engine_config/initializers/
  attachment_fu_fix.rb:25:in `run_callbacks'
     /vendor/plugins/community_engine/engine_config/initializers/
  attachment_fu_fix.rb:13:in `callback_with_args'
     /vendor/plugins/community_engine/engine_plugins/attachment_fu/lib/
  technoweenie/attachment_fu/processors/rmagick_processor.rb:35:in
  `process_attachment'
     /vendor/plugins/community_engine/engine_plugins/attachment_fu/lib/
  technoweenie/attachment_fu/processors/rmagick_processor.rb:22:in
  `call'
     /vendor/plugins/community_engine/engine_plugins/attachment_fu/lib/
  technoweenie/attachment_fu/processors/rmagick_processor.rb:22:in
  `with_image'
     /vendor/plugins/community_engine/engine_plugins/attachment_fu/lib/
  technoweenie/attachment_fu.rb:317:in `with_image'
     /vendor/plugins/community_engine/engine_plugins/attachment_fu/lib/
  technoweenie/attachment_fu/processors/rmagick_processor.rb:31:in
  `process_attachment'

  On Jan 21, 12:58 pm, simplicoder simplico...@gmail.com wrote:
   I got this error when doing a rake community_engine:test in rails
   2.2.2 install of CE...
   Error:undefined method `after_attachment_saved_callback_chain'

   This seems to have been fixed in the March 2008 version of
   attachument_fu according to its CHANGELOG on github...

   But implementing the monkeypatch it references athttp://
  blog.methodmissing.com/2008/1/19/edge-callback-refactorings-at...

   into attachment_fu_hacks.rb is the easiest fix.

   In defense of linkrot, the code is:
   module Technoweenie
     module AttachmentFu
       module InstanceMethods

         def self.included( base )
           base.define_callbacks *
   [:after_resize, :after_attachment_saved, :before_thumbnail_saved]
         end

         def callback_with_args(method, arg = self)
            notify(method)

             result = run_callbacks(method, { :object = arg }) { |
   result, object| result == false }

             if result != false  respond_to_without_attributes?(method)
               result = send(method)
             end

             return result
         end

         def run_callbacks(kind, options = {}, block)
           options.reverse_merge!( :object = self )
           ::ActiveSupport::Callbacks::Callback.run(self.class.send(#
   {kind}_callback_chain), options[:object], options, block)
         end
       end
     end
   end
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
CommunityEngine group.
To post to this group, send email to communityengine@googlegroups.com
To unsubscribe from this group, send email to 
communityengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/communityengine?hl=en
-~--~~~~--~~--~--~---



[CommunityEngine] BBorn

2009-03-29 Thread sprite

Which of your site is running on edge? I can't sign up to Kirbly
because it's invite only.

I tried upgrading to latest SWFUpload but I'm not getting the upload
button for some reason. Wanted to compare my HTML with one of your
site where it actually works.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
CommunityEngine group.
To post to this group, send email to communityengine@googlegroups.com
To unsubscribe from this group, send email to 
communityengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/communityengine?hl=en
-~--~~~~--~~--~--~---



[CommunityEngine] Re: BBorn

2009-03-29 Thread sprite

Well I figured out my problem. When updating my uploader.js I somehow
managed to grab it from master instead of edge.

On Mar 29, 7:23 am, sprite aake.gregert...@gmail.com wrote:
 Which of your site is running on edge? I can't sign up to Kirbly
 because it's invite only.

 I tried upgrading to latest SWFUpload but I'm not getting the upload
 button for some reason. Wanted to compare my HTML with one of your
 site where it actually works.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
CommunityEngine group.
To post to this group, send email to communityengine@googlegroups.com
To unsubscribe from this group, send email to 
communityengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/communityengine?hl=en
-~--~~~~--~~--~--~---



[CommunityEngine] Re: BBorn

2009-03-29 Thread sprite

Getting this error now

Processing PhotosController#swfupload (for 127.0.0.1 at 2009-03-29
07:45:51) [POST]
  Session ID: 551e161357f86cf49c5d7b55f0adf2f2
  Parameters: {Filename=jessicahot.jpg, album_id=14,
Upload=Submit Query, _vipwithme2_session=19ffd7c
aafb7a918c5e6a472a5d27c37, user_id=1,
Filedata=#ActionController::UploadedStringIO:0x8cee7a0}
[I18n] loading locale: en from config
[I18n] Locale set to en
Filter chain halted as [:login_required] rendered_or_redirected.
Completed in 0ms (View: 0, DB: 63) | 406 Not Acceptable [http://
localhost/1/albums/14/photos/swfupload?_vipwithme2_sessi
on=19ffd7caafb7a918c5e6a472a5d27c37]

On Mar 29, 7:23 am, sprite aake.gregert...@gmail.com wrote:
 Which of your site is running on edge? I can't sign up to Kirbly
 because it's invite only.

 I tried upgrading to latest SWFUpload but I'm not getting the upload
 button for some reason. Wanted to compare my HTML with one of your
 site where it actually works.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
CommunityEngine group.
To post to this group, send email to communityengine@googlegroups.com
To unsubscribe from this group, send email to 
communityengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/communityengine?hl=en
-~--~~~~--~~--~--~---



[CommunityEngine] Re: BBorn

2009-03-29 Thread sprite

So it seems the session IDs don't match... but why?

On Mar 29, 8:04 am, sprite aake.gregert...@gmail.com wrote:
 Processing PhotosController#swfupload (for 12.228.3.116 at 2009-03-29
 10:01:09) [POST]
   Session ID: aad4900bce548456f9a9af5a101e0fab
   Parameters: {Filename=paris-hilton-picture-1.jpg,
 album_id=14,
 _vipwithme2_session=a8af949a13d3f8c326e0fdd7a005ee50,
 Upload=Submit Query, user_id=1, Filedata=#File:/tmp/
 CGI21423-3}
 Filter chain halted as [:login_required] rendered_or_redirected.
 Completed in 1ms (View: 0, DB: 7) | 406 Not Acceptable 
 [http://www.vipwithme.com/1/albums/14/photos/swfupload?_vipwithme2_session=a8...]

 On Mar 29, 7:47 am, sprite aake.gregert...@gmail.com wrote:

  Getting this error now

  Processing PhotosController#swfupload (for 127.0.0.1 at 2009-03-29
  07:45:51) [POST]
    Session ID: 551e161357f86cf49c5d7b55f0adf2f2
    Parameters: {Filename=jessicahot.jpg, album_id=14,
  Upload=Submit Query, _vipwithme2_session=19ffd7c
  aafb7a918c5e6a472a5d27c37, user_id=1,
  Filedata=#ActionController::UploadedStringIO:0x8cee7a0}
  [I18n] loading locale: en from config
  [I18n] Locale set to en
  Filter chain halted as [:login_required] rendered_or_redirected.
  Completed in 0ms (View: 0, DB: 63) | 406 Not Acceptable [http://
  localhost/1/albums/14/photos/swfupload?_vipwithme2_sessi
  on=19ffd7caafb7a918c5e6a472a5d27c37]

  On Mar 29, 7:23 am, sprite aake.gregert...@gmail.com wrote:

   Which of your site is running on edge? I can't sign up to Kirbly
   because it's invite only.

   I tried upgrading to latest SWFUpload but I'm not getting the upload
   button for some reason. Wanted to compare my HTML with one of your
   site where it actually works.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
CommunityEngine group.
To post to this group, send email to communityengine@googlegroups.com
To unsubscribe from this group, send email to 
communityengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/communityengine?hl=en
-~--~~~~--~~--~--~---



[CommunityEngine] Re: BBorn

2009-03-29 Thread sprite

Can't make any sense of this. The session ID passed in is actually
correct. The session ID displayed in the Rails log is wrong...

Processing UsersController#show (for 12.228.3.116 at 2009-03-29
10:59:02) [GET]
  Session ID: 1fc819f0a5fa5f46a3c70520146ee57f
  Parameters: {id=camgirl}
Rendering template within layouts/application
Rendering users/show
Completed in 133ms (View: 110, DB: 3) | 200 OK [http://
www.vipwithme.com/camgirl]

Processing PhotosController#swfupload (for 12.228.3.116 at 2009-03-29
10:59:36) [POST]
  Session ID: aad4900bce548456f9a9af5a101e0fab WTF?
  Parameters: {Filename=jessicahot.jpg, album_id=14,
_vipwithme2_session=1fc819f0a5fa5f46a3c70520146ee57f,
Upload=Submit Query, user_id=1,
Filedata=#ActionController::UploadedStringIO:0x7f060573dfb8}
Filter chain halted as [:login_required] rendered_or_redirected.
Completed in 1ms (View: 0, DB: 1) | 406 Not Acceptable [http://
www.vipwithme.com/1/albums/14/photos/swfupload?_vipwithme2_session=1fc819f0a5fa5f46a3c70520146ee57f]
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
CommunityEngine group.
To post to this group, send email to communityengine@googlegroups.com
To unsubscribe from this group, send email to 
communityengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/communityengine?hl=en
-~--~~~~--~~--~--~---



[CommunityEngine] Re: Crash after 10-15 mins of AJAX Requests

2009-03-19 Thread sprite

Yeah I figured it out. It seemed to be development mode not keeping up
with the amount of requests I was hitting server with causing the call
stack to get backed up.

On Mar 19, 2:05 pm, Bruno Bornsztein bruno.bornszt...@gmail.com
wrote:
 ListingsController

 This appears to be coming from a controller/model in your application, not CE.

 On Tue, Mar 17, 2009 at 5:03 PM, sprite aake.gregert...@gmail.com wrote:

 http://gist.github.com/80786

  I believe the error is in community engine. I am calling a function
  called update_links every 10 seconds. After about 15 minutes I get
  stack level too deep errors in community engine.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
CommunityEngine group.
To post to this group, send email to communityengine@googlegroups.com
To unsubscribe from this group, send email to 
communityengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/communityengine?hl=en
-~--~~~~--~~--~--~---



[CommunityEngine] ActiveRecord::AssociationTypeMismatch

2009-03-18 Thread sprite

Has anyone had problems with AssociationTypeMismatch? It seems to be a
bug in development mode only, but I can't confirm 100%.

ActiveRecord::AssociationTypeMismatch (PhoneNumber(#75011690)
expected, got PhoneNumber(#69347040)):
c:/ruby/lib/ruby/gems/1.8/gems/activerecord-2.2.2/lib/
active_record/associations/association_proxy.rb:256:in
`raise_on_type_mismatch'
c:/ruby/lib/ruby/gems/1.8/gems/activerecord-2.2.2/lib/
active_record/associations/belongs_to_association.rb:22:in `replace'
c:/ruby/lib/ruby/gems/1.8/gems/activerecord-2.2.2/lib/
active_record/associations.rb:1276:in `active_phone_number='
/app/controllers/phone_numbers_controller.rb:89:in `set_active'
c:/ruby/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/
action_controller/base.rb:1253:in `send'
c:/ruby/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/
action_controller/base.rb:1253:in `perform_action_without_filters'
c:/ruby/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/
action_controller/filters.rb:617:in `call_filters'
c:/ruby/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/
action_controller/filters.rb:638:in `run_before_filters'
/vendor/plugins/community_engine/lib/localized_application.rb:
22:in `set_locale'
c:/ruby/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/
active_support/callbacks.rb:178:in `send'
c:/ruby/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/
active_support/callbacks.rb:178:in `evaluate_method'
c:/ruby/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/
action_controller/filters.rb:186:in `call'
c:/ruby/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/
action_controller/filters.rb:635:in `run_before_filters'
c:/ruby/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/
action_controller/filters.rb:615:in `call_filters'
c:/ruby/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/
action_controller/filters.rb:610:in `perform_action_without_benchmark'
c:/ruby/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/
action_controller/benchmarking.rb:68:in
`perform_action_without_rescue'
c:/ruby/lib/ruby/1.8/benchmark.rb:293:in `measure'
c:/ruby/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/
action_controller/benchmarking.rb:68:in
`perform_action_without_rescue'
c:/ruby/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/
action_controller/rescue.rb:136:in `perform_action_without_caching'
c:/ruby/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/
action_controller/caching/sql_cache.rb:13:in `perform_action'
c:/ruby/lib/ruby/gems/1.8/gems/activerecord-2.2.2/lib/
active_record/connection_adapters/abstract/query_cache.rb:34:in
`cache'
c:/ruby/lib/ruby/gems/1.8/gems/activerecord-2.2.2/lib/
active_record/query_cache.rb:8:in `cache'
c:/ruby/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/
action_controller/caching/sql_cache.rb:12:in `perform_action'
c:/ruby/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/
action_controller/base.rb:524:in `send'
c:/ruby/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/
action_controller/base.rb:524:in `process_without_filters'
c:/ruby/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/
action_controller/filters.rb:606:in
`process_without_session_management_support'
c:/ruby/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/
action_controller/session_management.rb:134:in `sass_old_process'
c:/ruby/lib/ruby/gems/1.8/gems/haml-2.0.6/lib/sass/plugin/rails.rb:
19:in `process'
c:/ruby/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/
action_controller/base.rb:392:in `process'
c:/ruby/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/
action_controller/dispatcher.rb:183:in `handle_request'
c:/ruby/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/
action_controller/dispatcher.rb:110:in `dispatch_unlocked'
c:/ruby/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/
action_controller/dispatcher.rb:123:in `dispatch'
c:/ruby/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/
action_controller/dispatcher.rb:122:in `synchronize'
c:/ruby/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/
action_controller/dispatcher.rb:122:in `dispatch'
c:/ruby/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/
action_controller/dispatcher.rb:132:in `dispatch_cgi'
c:/ruby/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/
action_controller/dispatcher.rb:39:in `dispatch'
c:/ruby/lib/ruby/gems/1.8/gems/mongrel-1.1.5-x86-mswin32-60/bin/../
lib/mongrel/rails.rb:76:in `process'
c:/ruby/lib/ruby/gems/1.8/gems/mongrel-1.1.5-x86-mswin32-60/bin/../
lib/mongrel/rails.rb:74:in `synchronize'
c:/ruby/lib/ruby/gems/1.8/gems/mongrel-1.1.5-x86-mswin32-60/bin/../
lib/mongrel/rails.rb:74:in `process'
c:/ruby/lib/ruby/gems/1.8/gems/mongrel-1.1.5-x86-mswin32-60/lib/
mongrel.rb:159:in `process_client'
c:/ruby/lib/ruby/gems/1.8/gems/mongrel-1.1.5-x86-mswin32-60/lib/
mongrel.rb:158:in `each'
c:/ruby/lib/ruby/gems/1.8/gems/mongrel-1.1.5-x86-mswin32-60/lib/
mongrel.rb:158:in `process_client'
c:/ruby/lib/ruby/gems/1.8/gems/mongrel-1.1.5-x86-mswin32-60/lib/
mongrel.rb:285:in `run'

[CommunityEngine] Crash after 10-15 mins of AJAX Requests

2009-03-17 Thread sprite

http://gist.github.com/80786

Any ideas? It will work fine for 10-15 mins then my server will crash.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
CommunityEngine group.
To post to this group, send email to communityengine@googlegroups.com
To unsubscribe from this group, send email to 
communityengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/communityengine?hl=en
-~--~~~~--~~--~--~---



[CommunityEngine] Re: Photos thumbnail creation

2009-02-14 Thread sprite

Override in the photos model

  # Anchor image resizing to top to avoid cutting off heads!
  def resize_image(img, size)
size = size.first if size.is_a?(Array)  size.length == 1  !
size.first.is_a?(Fixnum)
if size.is_a?(Fixnum) || (size.is_a?(Array)  size.first.is_a?
(Fixnum))
  img.crop_resized!(size, size, Magick::NorthGravity)
else
  img.change_geometry(size.to_s) { |cols, rows, image|
image.crop_resized!(cols, rows, Magick::NorthGravity)
  }
end
self.temp_path = write_to_temp_file(img.to_blob)
  end

On Feb 14, 7:54 am, Bruno Bornsztein bruno.bornszt...@gmail.com
wrote:
 I think there's a 'gravity' setting you can pass:

 http://www.imagemagick.org/RMagick/doc/imageattrs.html#gravityhttp://www.imagemagick.org/RMagick/doc/imusage.html#geometry

 On Sat, Feb 14, 2009 at 9:14 AM, Sachin brightsp...@gmail.com wrote:

  Hi,

  When someone uploads image with height greater than(almost twice) the
  width, the thumbnail generated points to the center of the image,
  which misses the face, as mostly face will be in upper portion of the
  image.
  I know that having a image cropper javascript for allowing users to
  select portion for thumbnail would be a bigger task, but if we could
  quickfix or hack a solution of generating thumbnail with upper portion
  of the image with rmagick/image-magick that would be great.

  I tried finding any settings/config about rmagick/imagemagick but was
  not successful.

  Has anyone tried this?

  Please point me to correct direction.

  Thanks,
  Sachin
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
CommunityEngine group.
To post to this group, send email to communityengine@googlegroups.com
To unsubscribe from this group, send email to 
communityengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/communityengine?hl=en
-~--~~~~--~~--~--~---



[CommunityEngine] Best way to implement albums.

2009-01-25 Thread sprite

I need to implement albums for my application. I really want to nest
it as user/albums/photos but I think I might just leave the photo
nesting as user/photos and then have a dual belongs to relationship to
both user and album in order to not break the default CE photo
functionality. What do you guys think?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
CommunityEngine group.
To post to this group, send email to communityengine@googlegroups.com
To unsubscribe from this group, send email to 
communityengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/communityengine?hl=en
-~--~~~~--~~--~--~---



[CommunityEngine] Re: production-only bug? undefined method 'merge' for nil:NilClass

2009-01-24 Thread sprite

I have the same issue.



On Jan 16, 5:09 pm, simplicoder simplico...@gmail.com wrote:
 Here's a link to that 
 file:http://communityengine.googlegroups.com/web/ce-barebones-debug.zip

 On Jan 16, 7:06 pm, simplicoder simplico...@gmail.com wrote:

  Well I uploaded my barebones app so you can try it out for yourself,
  ce-barebones-debug.zip.

  It's a straight engines 2.2.2  CE v0.10.8 install, with only two
  files in the app dir, a view file copy of offerings/
  _chooser.html.haml ... and an users_controller copy only without any
  methods or anything in it.

  run script/server -e production

  when I and my coworkers on their respective macs try it, we have
  errors.

  I put the view one in there because it shows exactly how odd it is
  that production catches a haml error in the main app dir, but not in
  the engines dir.

  Check it out, lemme know how it works for you.

  On Jan 16, 6:00 pm, Bruno Bornsztein bruno.bornszt...@gmail.com
  wrote:

   I think this might be specific to your environment. I have several apps
   where I'm overriding users_controller without problems. Anyone else
   experience something like this?

   On Fri, Jan 16, 2009 at 5:16 PM, simplicoder simplico...@gmail.com 
   wrote:

Ok so in order to be able to override users_controller at all, you
gotta add this line:

AppConfig.default_mce_options ||= {}

above this line, in the plugin's users_controller, line 15:
uses_tiny_mce(:options = AppConfig.default_mce_options.merge
({:editor_selector = rich_text_editor}),
  :only = [:new, :create, :update, :edit, :welcome_about])

Then everything should work in production.

Don't know why it cares so much about that in production and not dev.

I'd like to see a dev vs production documentation on the differences
and order-of-operations for engines, though maybe this is a rails
problem, I dunno.

On Jan 16, 4:53 pm, simplicoder simplico...@gmail.com wrote:
 Well that's kinda weird I guess...

 What's worse is even if you have nothing in the top-level
 users_controller except,
 class UsersController  BaseController
 end

 It still throws the production exception, so there's no way to
 override any methods for users I guess, except editing the plugin's
 users_controller I guess maybe with a mixin module would be
 easiest.

 On Jan 16, 3:10 pm, Bruno Bornsztein bruno.bornszt...@gmail.com
 wrote:

  You *can* override the whole controller, but in some cases that will
cause
  problems, as in your case. Because you replaced the whole
users_controller,
  and users controller calls AppConfig when loaded, you got an error 
  in
  production, because your app's users_controller was being loaded
  *before*AppConfig was set (it gets set in the CE plugin).

  On Fri, Jan 16, 2009 at 3:08 PM, simplicoder simplico...@gmail.com
wrote:

   Ok, I guess I didn't understand the way engines worked.
   Apparently only methods can be overwritten.

   I thought it would just be easier to copy the whole thing, as the
   engines docs say it simply overrides the plugin controller.

   Thanks for your help!

   On Jan 16, 2:47 pm, Bruno Bornsztein 
   bruno.bornszt...@gmail.com
   wrote:
You *shouldn't* be copying the entire controllers out of CE. You
just
   need
to override the particular actions you'd like to change.

On Fri, Jan 16, 2009 at 2:05 PM, simplicoder 
simplico...@gmail.com
   wrote:

 Yes I copied it straight out, no mods or anything.
 The plugin order in environment.rb is what you said to put...

 Now the comments_controller is giving me fits.
 I copy it straight out of the plugin to the main app dir... no
 modifications.

 Works fine in dev.
 But in production I get this error:
  NoMethodError in CommentsController#create
undefinedmethod`controller_name' for nil:NilClass

 Try it out with a fresh rails project and CE install... just
overwrite
 the comments_controller and see if the same thing doesn't 
 happen
for
 you in production mode...

 I don't know if it's an engines problem or if production 
 rails is
 ignoring the config.plugins directive or what.

 If anyone gets it to work please zip it up and post it 
 somewhere
for
 me, so I can diff it, because I'm hella stumped.

 Thanks for any help!

 On Jan 16, 8:58 am, Bruno Bornsztein 
bruno.bornszt...@gmail.com
 wrote:
  Hmm.. this isn't happening to me on my production sites. 
  Anyone
else
 seeing
  this?

  Looks like line 15 of UsersController is calling
  AppConfig.default_mce_options, which for some reason is
   undefinedat
   that
  time. Might have something to with the 

[CommunityEngine] Flash Player 10 Multiple File Upload

2009-01-17 Thread sprite

Is there a fix to get the Multiple File Upload to work with F10?

I found this article but not sure how to implement it in Community
Engine http://danielinsley.com/entries/general/swfupload-and-flash-10

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
CommunityEngine group.
To post to this group, send email to communityengine@googlegroups.com
To unsubscribe from this group, send email to 
communityengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/communityengine?hl=en
-~--~~~~--~~--~--~---