search for: avatar

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

Did you mean: avatars
2008 Mar 20
0
Having trouble with a remote-crop-then-resize using attachment fu =(
...o near the edge right now!@ UGH =( CONTROLLER: SCENE.RB # POST /yings # POST /yings.xml def create @ying = Ying.new(params[:ying]) scene = Scene.find(params[:ying][:scene_id]) 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 =>...
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. Wh...
2011 Aug 07
2
PROBLEM WITH PAPERCLIP
...ip 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 *with =>has_attached_file :avatar, :styles => {:medium => "300*300>", :thumb => "100*100>" } created a migration file with following columns => class AddAvatarColumnsToPicusers < ActiveRecord::Migration def self.up add_column :picusers, :avatar_file_name, :string add_column :...
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"...
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...
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 configuration; turning off drb will fix it, as will running ''rake spec'' instead. I saw something like this in Brian''s post here [http://rubyforge.org/pipermail/rspec-devel/2007...
2007 Dec 06
0
saving the user id for thumbnails using attachment_fu
I am using attachment_fu to create thumbnails, and it is working great. However, I am have a view with all my users thumbnails displayed and am trying to make it so when you click on a thumbnail of their avatar, it shows that users profile. In order to accomplish this I have saved a user_id identifier for each avatar, but the problem is that attachment_fu only saves this user_id for the main image and does not save it in the column for the thumbnail. So when I try and access the user_id to display the c...
2009 Jan 07
0
how rails insert object id to database?
[4;35;1mUser Create (0.5ms) [0m [0mINSERT INTO `users` (`name`, `avatar_file_name`, `avatar_file_size`, `created_at`, `updated_at`, `avatar_content_type`) VALUES(''hello'', ''Screenshot.png'', 253800, ''2009-01-08 08:27:19'', ''2009-01-08 08:27:19'', ''image/png'') [0m [paperclip] Saving at...
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 butto...
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)
...or I would include them in the config as well. Let me know whether these can be applied against the current source tree. Thank you, -Tom Rudnick ----------------/---------------------------------------------- Tom Rudnick | USDA Natural Resources Conservation Service Fort Collins,CO | tom at avatar.itc.nrcs.usda.gov (970) 295-5427 ** The 3rd Millennium started Jan 1, 2001. see: ** ** http://aa.usno.navy.mil/AA/faq/docs/millennium.html ** -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- -------------- next part -------------- --- misc.c.1.6 Mon Feb 12 11:11:1...
2005 Dec 25
3
SQLite primary key schema
...n, which breaks all kinds of things. Take as an example my ''users'' table. In Postgres the schema is (generated with pgAdmin III): CREATE TABLE users ( id serial NOT NULL, login varchar(80), "password" varchar(255), created_on timestamp, updated_on timestamp, avatar varchar(255), CONSTRAINT users_pkey PRIMARY KEY (id) ) WITH OIDS; ALTER TABLE users OWNER TO george; Everything works just dandy until we cross over to the SQLite world: CREATE TABLE users ( id serial NOT NULL, login character varying(80), "password" character varying(255),...
2008 Sep 02
4
Attachment_fu, Paperclip, & S3
...on''t seem to work; I''m probably sending them incorrectly because visually obvious options, like ''rotate'', clearly don''t do anything (or throw any errors, either). Does anyone know what I''m doing wrong here (?); # Attempt no.1 has_attached_file :avatar, :convert_options => { :rotate => "-rotate -90" }, :styles => { :thumb_45 => ''45x45#''.... # Attempt no.2 :convert_options => { :rotate => "-rotate ''-90''" } # Attempt no.3 :convert_options => { :rotate => "-...
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...)...
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...
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 ''uploader'' generator -...
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 -------------- next part -------------- An HTML attachment was scrubbed... URL: <http...