Displaying 20 results from an estimated 5159 matches for "picturable".
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,
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,
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
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 "place" models all
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,
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
2006 Apr 02
7
RANT: belongs_to -> refers_to
Every once in a while, I pipe up and whine that "belongs_to" should really
be ''refers_to" [http://dev.rubyonrails.org/ticket/2130]. It''s time again.
I''ve got a bunch of stuff going onto eBay, so, like any good engineer, I
don''t just post it manually: I design a Rails-based inventory database that
creates a semantically-correct XHTML/CSS auction
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 way, the windows-version of the MySQL Query Browser was able to
show 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 can apply to the
2006 Feb 08
1
Adding children via small subform
I''ve read AWDR and especially the part concerning adding child
line_items to an order. Unfortunately I want to do my process in
reverse 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
2020 May 24
0
Clients send tons of Notiftication requests
I am still fighting with this issue.
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
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 this picture while
playing the FLAC file?
thx
-------------- next part
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 understand the
2008 Jul 01
2
rateable plugin problem
I am having some problem figuring out how to use the rateable plugin. i
followed as close as the directions located at
http://www.naffis.com/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
2006 Sep 08
4
Does acts_as_attachment :storage => :db_system work?
I found the post about needing to install acts_as_attachement_1_1_6 if
you are not on edge rails. But I am having trouble getting db_system
storage to work. As far as I can tell in from the database, things are
working, but I don''t see how my model table hooks up with the db_files
table so I am having trouble altering the image_tag from the tutorial
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
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
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 (for embedded art) :)