search for: pictur

Displaying 20 results from an estimated 5159 matches for "pictur".

Did you mean: picture
2008 May 09
1
FLAC__metadata_get_picture()
Hi all! I have a problem to get _all_ images from flac file. I have flac file with 3 images inside ( FLAC__METADATA_TYPE_PICTURE ) How to get _all_ images with bool FLAC::Metadata::get_picture() func? This function is wrapper FLAC__bool FLAC__metadata_get_picture(). flac-1.2.1/src/libFLAC/metadata_iterators.c: ... 285 FLAC_API FLAC__bool FLAC__metadata_get_picture(const char *filename, FLAC__StreamMetadata **picture, FL...
2006 Jan 09
1
Saving an upload
I am creating a database for movies (films) and television shows (shows) that will have has_and_belongs_to_many relationships with the pictures table. CREATE TABLE screenshots ( id serial NOT NULL, filename character varying NOT NULL, content_type character varying NOT NULL, primary key (id) ); CREATE TABLE films ( id serial NOT NULL, name character varying NOT NULL, has_subtitles boolean NOT NULL, is_...
2005 May 23
1
has_and_belongs_to_many dual insert error ?
Hi ! (See references at the end) I have a slight problem. Whenever I save one of my domain models, which contains an has_and_belongs_to_many relationship with another one, the relationships are doubled. My domain is a series of pictures, where each picture can be tagged with one or more words. So, a picture of my dog could be tagged "Jordy, Dog, Dog 2005", for example. In my form, the tags are presented to the user in a single INPUT type="text". The user edits the list, and separates the words using a...
2005 Dec 23
6
file_column and HABTM
I have several models that will be using file_column by way of the "Picture" class (HABTM). Right now, all pictures are stored in: public/picture/image/1/filename1.jpg public/picture/image/2/filename2.jpg Is there a way I can dynamically define the "store_dir" based on the model? For example, if I have "user", "product" and "plac...
2006 Mar 18
2
Need help with my view populating rows
Hello, I was talking with someone in IRC, trying to get one form with however many fields to make new rows. He worked with me on the controller, but then I didn''t get the help with the view I needed, and I''ve been trying to do it on my own. I''m uploading pictures to my Pictures table. As you know, I need a few fields for each picture. I''ll need the filename, content-type, comment, id, and foreign key referencing the project it is in. This is my controller. class ProjectsController < ApplicationController before_filter :login_required, :e...
2006 Aug 02
3
newbie question, adding conditions to collection of sql objs
I have: @pictures=@c.pictures How do I add limit and order_by conditions. I have tried the following: @c.pictures.find_all(:limit=>5) @c.pictures, :limit=>5 @c.pictures :limit=>5 None of these work. -- Posted via http://www.ruby-forum.com/.
2008 Jun 15
11
Ouch! Can't figure out this file upload issue...
Okay, so this is driving me crazy. I''m trying to do a file upload using code from a book. What happens: I get wrong number of arguments (1 for 0) in the upload controller save action. No idea why. Schema: The schema for the picture model object is just a textfield named comments and a binary field called data. Upload controller: def get @picture =Picture.new end def save @picture=Picture.new(params[:picture]) if @picture.save redirect_to(:action=>''show'', :id=> @picture.id)...
2006 Apr 02
7
RANT: belongs_to -> refers_to
...eer, I don''t just post it manually: I design a Rails-based inventory database that creates a semantically-correct XHTML/CSS auction posting with a variable number of thumbnails (stored with file_column) and Textile fields. I start out with class Item < ActiveRecord::Base :has_many :pictures end class But I want one of those pictures to be featured as the gallery photo. So, naturally, I gravitate towards adding class Item < ActiveRecord::Base :has_one primary_picture, :class_name => ''Picture'' end I am encouraged in this futile pursuit by the docs, which...
2006 Mar 17
1
Picture upload - picture gets chopped
I implemented the picture upload code from the AWDWR-book.(where it saves the picture to blob-field in db). It worked well on my windows-box, but now I exported my code to Linux-box and when the picture is uploaded, it gets cut. Only the upper 30 % of the picture file is saved to db. Any ideas how to fix this? By the...
2006 Jul 26
4
Upload File
I got this error: NoMethodError in PictureController#new You have a nil object when you didn''t expect it! The error occured while evaluating nil.uploaded_file= and the line code is here: @picture.uploaded_file = @params[''picture_file''] -- Posted via http://www.ruby-forum.com/.
2006 Aug 02
4
applying conditions to ActiveRecord call in model.rb
If @c is an instance for the User class and lets say I want to call @c.pictures, which would be the user''s pictures. How can I setup up RoR so that I could append the condition "status=''available''" to the conditions arguments EVERYTIME .pictures is called. This way I can only call available pictures Is there some kind of filter I ca...
2006 Feb 08
1
Adding children via small subform
...se and in doing what I thought would work I get a null object error when trying to append the children to the parent. This is a _major_ stumbling block in my Rails use as almost every one of my projects has needed this so its a pretty vital problem I need to overcome. My two tables: Reviews -< Pictures (Parent) -< (Child) I have a form where you first add a Review and after clicking an Ajax link it produces a sub-form ready for inputting the child pictures. However, no matter whether I want just one child or a group of children on the form I can''t seem to get the Child objects to &...
2020 May 24
0
Clients send tons of Notiftication requests
...I did the following: I connected to the NAS with a read-only account called kodi. I traversed various folders and I finally opened an image. Everything went fine. Looking at the logs, the get_entry mask file only shows the final folder: smbd_dirptr_get_entry mask=[Anhelina Viber] found Users/luca/Pictures/Canon/Alessandro/Amici/Anhelina Viber fname=Anhelina Viber (Anhelina Viber) smbd_dirptr_get_entry mask=[Ginevra TikTok] found Users/luca/Pictures/Canon/Alessandro/Amici/Ginevra TikTok fname=Ginevra TikTok (Ginevra TikTok) smbd_dirptr_get_entry mask=[Ginevra Whatsapp] found Users/luca/Pictures...
2007 Apr 10
3
FLAC: software for displaying embedded picture
hi, I tried to put a picture in a FLAC file (I'm learning all the command line options), but unfortunately I can't find any software that can display the picture when playing the file. I tried Winamp, VLC media player, ... but none of them displays the picture. Can somebody tell me what player I need to actually see t...
2013 Apr 24
3
join table naming
Hi, I’m an amateur learning rails and could use some help… I created a join table “pictures_questions” and append to it in the following way: @picture = Picture.new(params[:picture]) … if @picture.save @question.pictures << @picture Everything works fine but honestly I think I got this working by sheer luck and trial and error. I have 2 questions: 1. I do not unde...
2008 Jul 01
2
rateable plugin problem
...om/blog/articles/2006/08/31/rails-ajax-star-rating-system but there seem to be some problem. I am getting the following error You have a nil object when you didn''t expect it! The error occured while evaluating nil.rating Extracted source (around line #1): 1: <%= number_with_precision(picture.rating, 1) %>/5 Stars<br> 2: <ul class=''star-rating''> 3: <li class=''current-rating'' style=''width:<%= (picture.rating * 30).to_i -%>px;''> 4: Currently <%= number_with_precision(picture.rating, 1) %>...
2006 Sep 08
4
Does acts_as_attachment :storage => :db_system work?
...ticles/acts_as_attachment) so that it pulls data from the database. (Everything works fine if I want to use :storage => :file_system) How are my generated model and db_files connected? and what do I need in my show action to send the image to the browser? I tried code like this: send_data @picture.data_file.data, :filename => @picture.filename, :type => @picture.content_type, :dispo\ sition => ''inline'' But I get an undefined method error for data_file, which doesn''t surprise me since I don''t see any link between the db_files table and my picture...
2009 Nov 26
13
How to display an image on RGL plot?
Hi all. It's been a long time since I wrote to this list. Glad to see the R project well and working. I am working with a 3D plot similar to this: http://old.nabble.com/file/p26525177/rgl-device.png rgl-device.png The underlying picture is a JPEG image, loaded with the rimage package and coerced to the matrix. Spheres denote control points, collected from this picture and must be situated over the certain points of the image. I display the image with rgl.points. In case of the standard video camera image (704x576) it has to dis...
2007 Nov 20
3
How to rename image file before saving it using file_column?
Hello, I''m playing with the file_column plugin and I would like to rename the file when uploading it and before saving it to DB. I''ve tried it with before_create method in my model and also in the controller with the following code: @picture = Picture.new(params[:picture]) @picture.filename = ''newname'' Which doesn''t worked. How it could be done (if it is possible)? Thanks. -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because yo...
2007 Apr 11
1
FLAC: software for displaying embedded picture
hi, does somebody else knows more software that can display the embedded picture in FLAC files? The software must run on windows. thx 2007/4/10, Jud White <jwhite@cdtag.com>: > > I just installed foo_ui_columns and foo_uie_albumart, however the > albumart plugin only supports images in the directory. Thought I'd let > you know that path is a dead end (...