search for: avatars

Displaying 20 results from an estimated 135 matches for "avatars".

2008 Mar 20
0
Having trouble with a remote-crop-then-resize using attachment fu =(
...d]) scene.yings << @ying @ying.scale_to_scene(params[:ying], scene) avatar = Avatar.create!(:uploaded_data => params[:ying] [:uploaded_data], :content_type => ''image/png'', :filename=> "#{RAILS_ROOT}/public/images/avatars/yings/ #{@ying.id}_thing.png", :ying_id => self.id, :size => (@ying.width).to_i * (@ying.height).to_i ) avatar.ying_id = @ying.id avatar.scene_id = nil avatar.user_id = nil @ying.avatar = avatar avatar.thumbnails....
2006 Mar 31
4
How to have a form within a form?
Say I am building a blogging platform, and I want to allow users to be able to add an avatar without leaving the page, when they''re writing a post. I need the avatar information to be included in the form for the post. So for example, after a user adds a new avatar while writing a new blog post, it would be available to be selected as the avatar to be used for that post. What is
2011 Aug 07
2
PROBLEM WITH PAPERCLIP
hello, i am trying to upload a image file ...using paperclip in rails 3 i did as follows 1. In gemfile => included gem paperclip 2.In config/environments /development.rb => Paperclip.options[:command_path] = "/usr/bin/" (convert path) 3.created a controller *picusers *and defined => def create @picuser = Picuser.create(params[:picuser]) end 4.created a model *picuser
2010 Jun 09
4
rails+sinatra sent image
Hi! I have simple rails application - users with name and avatar and in sinatra I want to create new user. form for new user <form action="/users/create" enctype="multipart/form-data" method="post"> <p> <label for="name">Name: </label> <input type="text" id="name" name="user[name]" >
2013 Sep 19
0
Performance problem generating URL for thousands of images, due to hitting HDD for each one
Hi, I have a model where I''m using Carrierwave to let users upload their avatars. I have one version for the avatar, cropped to a square called "cropped". class User mount_uploader :avatar, AvatarUploader end class AvatarUploader < ImageUploader version :cropped do process :crop end end In one of my pages, where I''m listing a few thousand u...
2008 Dec 04
1
upload test images using rake with populator
I am wondering if it is possible to upload test images to the database along with the other fake user data. I am using populator along with faker for fake test data and it is working very well. I am able to do things like: User.populate 100 do |user| user.username = Faker::Name.first_name user.email = Faker::Internet.email end but I am wondering if theres a way to do
2007 Aug 14
2
AssociationTypeMismatch with RSpec 1.0.8, autotest running with drb
Before I chalk this up as a bug and report it, I just want to make sure I''m not doing something silly. Running ZenTest''s autotest on OS 10.4.10 with RSpec 1.0.8, drb, produces the following failed test: ActiveRecord::AssociationTypeMismatch in ''User should create an avatar with uploaded_data'' Avatar expected, got Avatar This only happens with that exact
2007 Dec 06
0
saving the user id for thumbnails using attachment_fu
...n for the thumbnail. So when I try and access the user_id to display the corresponding profile, it says the user_id is 0 and there is no user with that id. Is there any way to get attachment_fu to save the user_id to the thumbails too? Perhaps there is some other solution. Heres the code for the avatars so you can get a sense for what I am trying to do: <% for avatar in @avatar -%> <%= link_to image_tag(avatar.public_filename()), {:action => "index", :controller => "users", :user_id => avatar.user_id } %> <% end %> So this user_id is 0 b/c the at...
2009 Jan 07
0
how rails insert object id to database?
...#39;2009-01-08 08:27:19'', ''2009-01-08 08:27:19'', ''image/png'') [0m [paperclip] Saving attachments. [paperclip] Saving files for avatar [paperclip] Deleting files for avatar [paperclip] Writing files for avatar [paperclip] -> /home/ning/pa/public/system/avatars/34/medium/Screenshot.png [paperclip] -> /home/ning/pa/public/system/avatars/34/original/Screenshot.png [paperclip] -> /home/ning/pa/public/system/avatars/34/thumb/Screenshot.png [4;36;1mSQL (45.3ms) [0m [0;1mCOMMIT [0m Redirected to /users/34 Completed in 1500ms (DB: 47) | 302 Found [ht...
2011 May 22
1
How do you crop an image with carrierwave 'after the fact' in rails?
What I''d like to do is upload an image, then take the user to a new page where I will use Jcrop to let the user select the part of the image they want to crop, and then store that image. Essentially, I want to make it a 2-stage process. I know how to do the javascript part, and I understand the basic flow of how to create this functionality. However, I am not aware of the carrierwave
2011 Aug 25
0
Rails 3.0 Fleximage Error Errno::EACCES
Hi, I''m using Fleximage on my website so users can upload avatars. I recently upgraded to Rails 3.0 and switched host to slicehost.com. I successfully installed imagemagick and the gems rmagick and fleximage. Everything seems to be working fine except when I try to edit my account and upload an avatar. After selecting an avatar and click the update account button...
2003 Mar 13
2
Bizarre problem - happens only under XP and not 2000
...ws machines does not produce the error. This is what the CVS update ~should~ look like: ******************************************************************** In \\plasma\home\kier\vb2: cvs -q update -d -P CVSROOT=:pserver:{username}:{repository} ? language ? admin/spellcheck ? images/afp ? images/avatars ? images/styles/new/images Success, CVS operation completed ******************************************************************** And this is what it looks like when I run the same thing on the XP box with the Samba 2.2.7 machine: ******************************************************************...
2001 Feb 12
2
patches for UnixWare v2.x pty (misc.c,configure.in)
I have attached two patches to the current source code. The first addresses the pty problems with UnixWare 2.x with connecting with SSH2. It sets the sigaction to SA_RESTART. This fixes UnixWare v2.x, but haven't heard any feedback as to effects on other OS'. The first patch is against misc.c. The second patch adds a section "*-*-sysv4.2uw2*" to configure to set the
2005 Dec 25
3
SQLite primary key schema
So after successfully getting the test SQLite db to run from memory, I tried running some tests but found that somewhere in the schema translation from Postgres (my devel database) and SQLite Rails fails to properly set the ''id'' column, which breaks all kinds of things. Take as an example my ''users'' table. In Postgres the schema is (generated with pgAdmin III):
2008 Sep 02
4
Attachment_fu, Paperclip, & S3
For various reasons, I made a git branch and installed Paperclip in place of attachment_fu. Paperclip works great except that images seem to have lost some quality; edges have gone a little too jaggy to be able to drop attachment_fu just yet. After a post on the Paperclip Google Group, someone suggested the :convert_options could be passed additional attributes, like ''quality'',
2008 May 13
0
assert_no_difference question
I have the following test code: assert_no_difference Avatar, :count do a = create_avatar(:description => nil) assert a.errors.on(:description) end further down, create_avatar looks like: def create_avatar(options = {}) Avatar.create(:description => "Foo Descr.").merge(options) end (Borrowed from the user test in acts_as_auth...) It seems to pass, as my avatar model
2009 Oct 08
2
Variable sizes with paperclip
How can i create variable sizes with paperclip. That the user can set the size he want and paperclip makes the picture. I only can create fixed sizes. -- Posted via http://www.ruby-forum.com/.
2011 Aug 03
1
Dynamic Inline CSS
So I''m making a user profile page for my app. However I want the user''s avatar to have an inset white box-shadow. Therefore using <img / > isn''t an option since it doesn''t support inset shadows (or at least not in Chrome). So instead I''m using a <div> with some inline css to set the image. Here''s kinda what I want but of course it
2011 Apr 21
2
Rails 2.3.11 and carrierwave, can't find generator
I added carrierwave to a 2.3.11 app that I have updated with Bundler. I just tried to use the following: script/generate uploader Avatar The following error is coming back: NOTE: Gem.cache is deprecated, use Gem::source_index. It will be removed on or after 2011-08-01. Gem.cache called from /Library/Ruby/Gems/1.8/gems/rails-2.3.11/lib/ rails_generator/lookup.rb:234 . Couldn''t find
2018 Aug 28
2
IceCast - Is it still being developed?
Hello! I was just wondering if the IceCast platform was still being actively developed? Thank you, Jason -- _DEFINE YOUR DESTINY IN ULTIMA GENESIS: CALL OF THE AVATAR [1]! PLAY FOR FREE TODAY._  FOLLOW US ON SOCIAL MEDIA! [2] [3] Links: ------ [1] https://titanx.games [2] https://www.facebook.com/titanxgames/ [3] https://twitter.com/intent/user?screen_name=_TitanXGames --------------