search for: 50x50

Displaying 20 results from an estimated 29 matches for "50x50".

Did you mean: 0x50
2006 Jan 13
1
file_column - how to test for empty column?
...g to determine if that column is empty or not, and display a generic image if that column is empty. I have tried both of the following code blocks: <% if @newsentry.image -%> <%= link_to(image_tag((url_for_image_column "newsentry", "image", :small), :size => "50x50", :border => 0, :class =>"news_photo"), :controller => ''news'', :action => ''article'', :id => @newsentry) %> <% else -%> <%= link_to(image_tag("/images/news/photo_news_sm.jpg", :size => "50x50", :bord...
2006 Feb 24
1
File Column
...ay of having both image uploads (and thumbnail generation) while also allowing non image uploads? class Entry < ActiveRecord::Base validates_presence_of :name, :file validates_uniqueness_of :name file_column :file, :magick => { :versions => { "thumb" => "50x50", "medium" => "640x480>" } } end -- Posted via http://www.ruby-forum.com/.
2011 Jan 03
2
Adding style to model (paperclip)
hello, I have a model (item) with one attachment (photo) and one style (small): class Producto < ActiveRecord::Base has_attached_file :photo, :styles => { :small => "50x50"}, end I would like to add a new style (:large), so I modify item.rb: class Producto < ActiveRecord::Base has_attached_file :photo, :styles => {{ :small => "50x50"},{ :large => "150x150"}} end it seems to be ok, but when I submit in edit or new views, I get...
2007 Dec 17
3
not able to view the images after the upload
...ate?iframe_remote=true] The image is shown as as STRINGIO insted of showing the image name. My Model is as below.. class Entry < ActiveRecord::Base require ''remote_uploads.rb'' file_column :image, :magick => { :versions => { "thumb" => "50x50" } } def self.content_columns filter = %w(created_on updated_on lat lon image lock_version) super.reject {|c| filter.include? c.name} end end Thanks.. -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message...
2005 Nov 16
0
image conversion w/ file column
hey I''m trying to find a way to convert images that were uploaded using file_column *before* file_column generates a thumb and copies them to the final dir - this because 50x50 is pretty small and png would be a much better format (in smaller dimensions) than jpg or gif. This is what i have in my model (using rmagick for the conversion): file_column :image, :magick => {:versions => { "thumb" => "50x50" }} before_validation :convert_to_png...
2014 Oct 16
0
[fdo] Xinit without option set string no in xinitirc
...th the xinit system, here is the story : When I compiled the xinit from the source code with these options on the configure: ./configure --without-twm --without-xclock --without-xterm Everything works fine , but at the end the file xinitrc in /etc/X11/xinit/xinitrc -no & -no -geometry 50x50-1+1 & -no -geometry 80x50+494+51 & -no -geometry 80x20+494-0 & -exec no -geometry 80x66+0+0 -name login Usually the output without these options is : -TWM & -XCLOCK -geometry 50x50-1+1 & -XTERM -geometry 80x50+494+51 & -XTERM -geometry 80x20+494-0 & -exec XTERM -geomet...
2006 Jan 05
5
File_column crashing WEBrick when using :magick options
...ne. However, when I try and use the :magick options to make resized versions, WEBrick dies. This is the Media model: class Media < ActiveRecord::Base file_column :media_item, :magick => { :versions => { :thumb => {:size => "50x50"}, :medium => {:size => "640x480"} } } end This is the output from WEBrick when it dies: script/server: No such file or directory - file -bi "./script/../config/../publi c/media/media_item/tmp/1136422120.515000.5...
2020 Aug 31
2
EmitTargetCodeForMemSet & LTO issue
...*Software Engineer* -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20200831/65acc4b7/attachment.html> -------------- next part -------------- A non-text attachment was scrubbed... Name: logo signature mail 50x50.png Type: image/png Size: 1939 bytes Desc: not available URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20200831/65acc4b7/attachment.png>
2005 Jul 04
1
eigen of a real pd symmetric matrix gives NaNs in $vector (PR#7987)
Full_Name: cajo ter Braak Version: 2.1.1 OS: Windows Submission from: (NULL) (137.224.10.105) # I would like to attach the matrix C in the Rdata file; it is 50x50 and comes from a geostatistical problem (spherical covariogram) > rm(list=ls(all=TRUE)) > load(file= "test.eigen.Rdata") > ls() [1] "C" "eW" > > sym.check = max(abs(C - t(C))) # should be 0 for symmetry > sym.check [1] 0 > eW <-eigen(C, sy...
2006 Aug 09
1
Migrating a Field to External Model
...ly see what''s going on. Since it''s happening in validations maybe the model is helpful as well: class Product < ActiveRecord::Base belongs_to :brand validates_presence_of :name file_column :image, :magick => { :versions => { "thumb" => "50x50", "medium" => "175x125>" } } end By the way, I''m new to the list, so please let me know if I should be posting code snippets externally somewhere or other etiquette issues. Thanks, Gabe
2001 Mar 07
4
R.xpm?
I use AfterStep on Linux. I made an R.xpm file (attached) and put this icon in the "wharf". To invoke R I click on the R icon. I did not find an offical R.xpm, and so I am submitting this one for your collective consideration.... The idea behind the icon is that it looks like a scatterplot, which is "statistical". My main beefs with my R.xpm are that it doesn't have a
2015 Apr 17
0
[ANNOUNCE] x11perf 1.6.0
...Char in 80-char rgb core line (Charter 10) -crgb24text Char in 30-char rgb core line (Charter 24) -crgbftext Char in 80-char rgb core line (Courier 12) -magpixwin10 Scale 5x5 from pixmap to 10x10 window -magpixwin100 Scale 50x50 from pixmap to 100x100 window -magpixwin500 Scale 250x250 from pixmap to 500x500 window -minpixwin10 Scale 10x10 from pixmap to 5x5 window -minpixwin100 Scale 100x100 from pixmap to 5x5 window -minpixwin500 Scale 500x500 from pixm...
1998 Apr 24
0
R-beta: 3d visualisations
Is someone working on a 3d vizualisation set of functions ? I read dream dream dream in PROJECTS about 3D GRAPHICS. When I want to visualize 3d data, I use Geomview but with a dataset greater than 50x50 that's too hard for my poor computer. I know a little R but nothing with S+, are the plan to emulate S+ or to have R functions to visualize 3d data ? -- Hervé Dréau Interne en Médecine hdreau at worldnet.fr dreau at b3e.jussieu.fr Médecine Linux Java -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-....
2008 Aug 21
0
Elastic net loop problem
Dear Members, I am working on Elastic net and using R package for that. I have two matrix. My response is a matrix of size 50X50 and predictor is also in same size. I want to extract only cloumns from the matrix and do the elastic net analysis then store them as a matrix. library(elasticnet) library(lars) XB<-matrix(rnorm(2500,0,1), ncol=50,nrow=50) y1<-matrix(rnorm(2500,0,1), ncol=50,nrow=50) en1<-enet(x=XB,y=y1[...
2006 Sep 05
1
problem in contour/contourLines (PR#9205)
Full_Name: Dominik Heide Version: 2.3.1 OS: Linux (Suse 9.3) Submission from: (NULL) (134.76.220.200) The contour functions has sommewhere (I think in .../main/plot3d.c) a maximum number of line segments that is set using a define. The contour line in my data too long for this and therefore not correct analysed (I get the message 'contour(): circular/long seglist -- bug.report()!').
2007 Jan 04
1
rmagick working in console but not in my app
hey all, When I do this in script/console I get: >> require ''RMagick'' => true >> include Magick => Object >> f = Image.new(100,100) { self.background_color = "red" } => 100x100 DirectClass 16-bit >> f.crop_resized(50,50) => 50x50 DirectClass 16-bit But in my application I keep getting the same error as if rmagick was not installed though it is and I can use it with irb. This is the error I get: ActionView::TemplateError (undefined method `crop_resized'' for nil:NilClass) on line #7 of app/views/items/list.rhtm I...
2008 May 09
0
Attachment_Fu : how to remove thumbnails only and regenerate
hello guys i am using attachment_fu for product images i have hundreds of products and their images with thumbnails :thumbnails => { :thumb => ''100x100>'' } now we have decided to have thumbnails of size 50x50> only. how do i destroy the existing thumbnails for images and regenerate the new thumbnails i shud be doing something like this product_images.find(:all) for each prod image destroy the thumnnail. ---what method create new thumbnail from existing images for products ---what method end pls...
2009 Apr 20
0
User defined model and validations?
...here I would like to allow an admin user to define data that should be in a template, and then allow regular users to create instances of this template and have it validated. ie: - Template would have name, files and then x many fields of say "Text max length 20 chars", "Image size 50x50", "Text 10 chars, not required" etc. - After the template is defined, end user would load it and save implementations of that template. The template would be easy to create say template has_many template_fields. But how can I load this template, validate it''s data and save...
2006 Mar 08
3
file_column Cropping -> image offset information
...column. These are my settings: file_column :image, :magick => { :versions => { :thumb => "80x80>", :medium => "150x150>", :square => { :crop => "1:1", :size => "50x50!" } }, :geometry => "400x300>" } With a square thumbnail i had the following problem; the offset information of the images wasn''t reset. The i found this in the rmagick documentation: http://redux.imagemagick.org/RMagick/doc/image...
2005 Jul 04
0
eigen of a real pd symmetric matrix gives NaNs in $vector (PR#7989)
...s is another manifestation of what I reported (reproduced below) on 2003-12-01. cajo.terbraak at wur.nl wrote: >Full_Name: cajo ter Braak >Version: 2.1.1 >OS: Windows >Submission from: (NULL) (137.224.10.105) > > ># I would like to attach the matrix C in the Rdata file; it is 50x50 and comes >from a geostatistical problem (spherical covariogram) > > > >>rm(list=ls(all=TRUE)) >>load(file= "test.eigen.Rdata") >>ls() >> >> >[1] "C" "eW" > > >>sym.check = max(abs(C - t(C))) # should...