similar to: triggering a query within a loop

Displaying 20 results from an estimated 3000 matches similar to: "triggering a query within a loop"

2006 Aug 16
3
Question RE Rails associations
Hi, I am new to Ruby and Rails programming and am having difficulty with the following scenario... Consider the following model: class Studio < ActiveRecord::Base has_many :movies has_and_belongs_to_many :actors end class Movie < ActiveRecord::Base belongs_to :studio has_and_belongs_to_many :actors end class Actor < ActiveRecord::Base has_and_belongs_to_many :studios
2006 Jan 21
7
n-way joins
Hi, I''m somewhat of a Rails newbie and am trying to understand how to formulate n-way (3 or 4 way) joins in Rails (where the join tables contain extra data as well.) Let me give you my basic entities: foos id - pk name - unique bars id - pk name - unique bazs id - pk name - unique frozs id - pk name - unique then i have two separate join tables: foos_bars_bazs - 3 way join
2008 Mar 29
3
primary key?
can you use 2 pirmary keys. the standard user_id key exists but i would also like to use another key for my links. i am not sure how to implement this. also i don''t want any auto incrementing of this second primary key that i would like to use for my relationships. if there is a good db, model, relationship tutorial out there i would love to know about it.
2006 Jul 28
7
auto_complete_for exists but not being found by Rails
Anybody encounter this. I know the method exists in the auto_complete.rb file in my rails installation, but it itsnt accessing it throught he program. Any ideas? -- Posted via http://www.ruby-forum.com/.
2012 Oct 21
5
Error occured while evaluating nil
This is the code if !params[:ratings].nil? params[:ratings].each_key do |r| @selected_ratings << r @movies << Movie.where(''rating = :rating'', :rating => r) @sort = params[:sort] end elsif @selected_ratings = @all_ratings @movies = Movie.order(@sort) @sort = params[:sort] end This is the error You have a nil object
2007 Aug 16
1
Branch 'vivi' - vivified/ui
vivified/ui/main.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) New commits: diff-tree be3bc1a6cd88c0f2294b4f6059898c3989f172eb (from da8a9e9b145d5cb1aebc04764e9ed66856a31c9b) Author: Benjamin Otte <otte at gnome.org> Date: Thu Aug 16 21:42:39 2007 +0200 Set the title correctly diff --git a/vivified/ui/main.c b/vivified/ui/main.c index df123a9..13d03ab 100644 ---
2007 Apr 25
2
Flash Skin and Rails View Issue
Hi, I have an issue embedding a flash movie into one of my rails views. /movies/index.rhtml embeds /resources/movies/episode1.swf and episode1.flv e.g index.rhtml includes: <object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase=" http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="320"
2012 Oct 10
5
Theora integration question
Hello, I am programmer working on a product which integrates Theora. I have a question regarding the memory use on some of the internals of Theora. Is this the right forum for this question, and if not, does anyone know where an appropriate place to ask is? Thanks Sam -------------- next part -------------- An HTML attachment was scrubbed... URL:
2009 Mar 06
1
questions
Hello, I have some questions about the library. First, I would like to be able to get how many frames in a movie, skip to a given frame, and render one selected frame. Looking at the API, I see that there are functions for this in swfdec_sprite_movie.h. But I don't see how I can get to those functions starting from a swfdec_player. Second, there are some movies that are collections of
2007 Jun 20
1
Branch 'as' - libswfdec/swfdec_graphic_movie.c libswfdec/swfdec_movie.c libswfdec/swfdec_movie.h libswfdec/swfdec_sprite_movie.c
libswfdec/swfdec_graphic_movie.c | 35 +++++++++++++++++++++++++++++++++++ libswfdec/swfdec_movie.c | 3 +++ libswfdec/swfdec_movie.h | 2 ++ libswfdec/swfdec_sprite_movie.c | 13 ++++++++----- 4 files changed, 48 insertions(+), 5 deletions(-) New commits: diff-tree 255d2e184bae07fbcd9db8a906450a21e0f687c7 (from 9ed04d23be28c9dd349a2f5024546c465d09da96) Author: Benjamin
2023 Dec 27
1
User doesn't have write access to directory
I have a user that is a member of a group that should have write access to a directory but they cannot write to the directory. $ la | grep Movies drwxr-xr-x 345 *HOME\movie editors* HOME\movie users 36K May 22 2023 *Movies* $ id testuser uid=3000038(HOME\testuser) gid=100(*users*) groups=100(users),3000038(HOME\testuser),3000026(HOME\photo users),*3000031(HOME\movie
2004 Jun 18
5
Slowdown on lots of motion
I'm playing the "Honey" movie (both Honey-small and Honey-large) and I notice significant slowdown during periods of lots of motion (when the camera shakes, when the first man hops into bed, when people turn around and approach the camera, etc.). The audio plays smoothly all the time but when there is a lot of motion, the picture freezes and resumes when there's less motion.
2006 Aug 17
1
More on n-way.
Hey, i found some n-way threads on the list, but I think they don`t solve my case, or I didn`t understand how all of it works. I''m new to Rails, so be pacient. :) I''ll use an example of movie catalog, I''m realing doing a kind of movie catalog, for laerning rails, and I did this: Models: Movie, Actor, Director, Writer, Country, Language The Movie model HABTM Actor,
2023 Dec 28
1
User doesn't have write access to directory
On Wed, 27 Dec 2023 17:22:21 -0500 Rob Campbell via samba <samba at lists.samba.org> wrote: > I have a user that is a member of a group that should have write > access to a directory but they cannot write to the directory. > > > $ la | grep Movies > drwxr-xr-x 345 *HOME\movie editors* HOME\movie users 36K > May 22 2023 *Movies* > > $ id testuser
2012 Jul 26
2
Get XML or JSON data from api into data frame
Dear all, I am new to R in general and ways to retrieve XML or JSON data in particular. I have tried to get information through the XML package and various websites without being able to do exactly what I want. I hope someone of you can give me some help. I want to retrieve information about movies from IMDB or rather the unofficial api, www.imdbapi.com. I have a vector with a lot movie-ids
2005 Jun 30
4
A Memoir on FastCGI and Apache
With the release of our filmfury.com project, I''ve been trying to rise to the stature of a true system administrator in the last couple of days (haha). I''m trying to understand how all of the pieces to this apache/fastcgi deployment fit together. Here''s what I''ve learned so far: * You need a separate FastCGI server for each Rails application on your
2004 Jul 08
3
asterisk to asterisk config
Hi, I would like to set two separate asterisks to talk to each other. Any suggestions? I'm a "baby" asterisk fan, only started to play two weeks ago, first managed to use kphone with asterisk and a X100P card that is up and running as well. Thanks, Eugen Find local movie times and trailers on Yahoo! Movies. http://au.movies.yahoo.com
2006 Dec 17
2
Route generation and clash prevention
Let''s say you''re building a movie rental website. You have customers, movies, and rentals to manage. REST style urls might look like this: /customers/4 /movies/15 /rentals You''d probably also want administrators to be able to view all of the rentals done by a particular customer, and other similar details: /customers/4/rentals /movies/15/rentals /rentals/529/customers
2004 May 12
2
i cannot find kinit
the name of my active directory domain is niit.edu.pk so what should i write in this parameter default_relam = YOUR.KERBEROS.REALM also while trying to join the domain i eecute this command kinit Administrator@your.keberos.REALM My shell gives me the error cannot find kinit. can any one tell me where in my file system can i find kinit Regards ===== Sahibzada Junaid Noor Ph #
2001 Jan 26
5
ogg pic format (again).. here's why
I sent a little mail some time ago asking if there was going to be an ogg pic-format, and you replied that PNG, MNG and JNG is good enough (sorry for this late answer btw).. But, consider this: The ogg video-format (tarkin ? where do you get these names from anyway ? :) ) needs a way to compress its frames. Are you going to use MNG for that ? :) .. If you had an ogg pic format, that format could