Displaying 20 results from an estimated 272 matches for "actors".
Did you mean:
factors
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
has_and_belongs_to_many :movies
end
The underlying database structure is as follows:
studios
id: integer
movies
id...
2008 Sep 30
2
[LLVMdev] Integer handling
OvermindDL1 wrote:
>
> It is using the Actor-Oriented model, not Object-Oriented.
> /* snip */
> By keeping the type system based on the actual types it allows
> arbitrary message passing to any other actor without needing to load
> any code relating to the actors, you can just send a structure with
> the appropriate ID and format and it will 'just work' as the pattern
> matching will ensure the other actor handles it correctly, or it gets
> dumped with a message stating no match.
>
Hm. I don't know much about the Actor model (but I...
2008 Sep 30
0
[LLVMdev] Integer handling
...ems like your language is very high level indeed (it almost sounds
> dynamic). If you can pass arbitrary messages without needing to statically
> know the type of anything, and pass data transparently from one machine to
> another.
It is in no way dynamic, everything is compiled down. All Actors are
fully compiled code, each could be akin to its own Process. Each
Actor has its own event loop, parses its own messages, etc...
When a Message is sent you just build up a structure and send it off.
At compile time the structure is stuffed into a bitstream with some
metadata at the front describ...
2013 Jun 15
2
Plotting two y-axis vs non-numeric x-axis
Hi dear all, the following code is correct. but I want to use non-numeric
x-axis, for example
if I replace time <- seq(0,72,6) by
month <-
c("Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec","Pag")
Ofcourse I use factor(month) instead of
2009 Apr 16
0
[LLVMdev] LLVM and coroutines/microthreads
...I am also working on an Actor based language. I initially started
with Erlang (too difficult to bind into C++ where I have some required
libraries that I need). I then went to Stackless Python (almost
stupid-easy to bind with, but the switching was too slow anytime there
was a native frame in an Actors callstack (as it did what you are
doing, copying the stack around, without a native frame on the
callstack switching was pretty fast though, and since Python did not
operate over multiple threads simultaneously I was forced to create
multiple processes and link them as a mesh, ala Erlang, worked we...
2009 Apr 16
2
[LLVMdev] LLVM and coroutines/microthreads
I saw this was mentioned briefly last year, but there seemed to be
some confusion as to what coroutines entailed and the thread died out.
This technique has an unfortunate number of names, but it does get a
lot of use, including popular languages like Ruby.
I'm currently working on a programming language called Minnow
(http://www.minnow-lang.org). It's an actor-based language, where
2010 Mar 18
3
Using indexing to manipulate data
...one of R's advantages is it's ability to index, eliminating the need
for control loops to select relevant data, so I thought this problem would
be easy. I can't crack it. I have looked through past postings, but
nothing seems to match this problem
I have a data set with one column of actors and one column of acts. I need
a list that will give me a pair of actors in each row, provided they both
participated in the act.
Example:
The Data looks like this:
Jim A
Bob A
Bob C
Larry D
Alice C
Tom F
Tom D
Tom A
Alice B
Nancy B
I...
2001 Feb 26
2
R ignoring quantile() in source()d file
Can anyone explain this behavior? Essentially, I've created a short file
to be read in via source() that gets some descriptive information on a
series of variables in a data frame. For each variable, I do three
things:
print('last.hc.actors')
quantile(last.hc.actors,probs=seq(0,1,0.1),na.rm=T)
stem(last.hc.actors)
where the variable name is (in this case) last.hc.actors. All that is
fine, except that R seems to quietly ignore all the quantile() steps. I
narrowed it down to bare minimum, trying with a file, test.R, that
contains...
2010 Apr 10
3
nfs-alpha feedback
I ran the same dd tests from KnowYourNFSAlpha-1.pdf and performance is
inconsistent and causes the server to become unresponsive.
My server freezes every time when I run the following command:
dd if=/dev/zero of=garb bs=256k count=64000
I would also like to mount a path like: /volume/some/random/dir
# mount host:/gluster/tmp /mnt/test
mount: host:/gluster/tmp failed, reason given by server: No
2008 Sep 30
0
[LLVMdev] Integer handling
...ointer-like' constructs are in function arguments, and only to local
variables on the actor's stack, since those are very controlled.
By keeping the type system based on the actual types it allows
arbitrary message passing to any other actor without needing to load
any code relating to the actors, you can just send a structure with
the appropriate ID and format and it will 'just work' as the pattern
matching will ensure the other actor handles it correctly, or it gets
dumped with a message stating no match. I guess I could have 'message
header' files to define message types...
2009 May 12
4
has_many :through and scopes: how to mutate the set of associated objects?
I have a model layer containing Movie, Person, Role, and RoleType,
making it possible to express facts such as "Clint Easterbunny is
director of the movie Gran Milano".
The relevant model and associations look like this
class Movie < ActiveRecord::Base
has_many :roles, :include => :role_type, :dependent => :destroy
has_many :participants, :through => :roles, :source
2007 Sep 10
6
RSpec view spec writing problem (unable to generate url_for in RESTful resource link_to)
...code:
- I''m using a restful design
- I''m using nested (multiply nested) resources
- I am trying to test a show.rhtml view, that includes links (link_to)
to resources managed by another controller
- The use_case model has a many-to-may through relationship with
actors, and I''m displaying links to the associated actors on the use_case
page
- I can''t get the links to generate when running rspec (but it works
great in the app)
- I am in the early stages of the project, and want to move forward
BDD, but I have some existing code that...
2008 Sep 30
2
[LLVMdev] Integer handling
OvermindDL1 wrote:
>
> I know why it was removed, and it does make sense, just would be nice
> if there was an option to be able to get two pointer to a specific
> llvm::IntegerType, functionally they would be identical, but for user
> code (hence, my code) would be useful as I could match it for the
> different ones at generate different code for each.
>
Well a language
2008 May 20
0
[PATCH] Fix compilation on 64-bit platforms
Use "z" modifier to print gsize. Use gsize for the index argument of
swfdec_text_field_movie_xy_to_index().
---
swfdec/swfdec_text_field_movie.c | 10 +++++-----
1 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/swfdec/swfdec_text_field_movie.c b/swfdec/swfdec_text_field_movie.c
index 1f7bc4b..729c2e2 100644
--- a/swfdec/swfdec_text_field_movie.c
+++
2017 Jan 13
11
[Bug 99396] New: Crash in nouveau_dri.so when switching apps with alt-tab in Gnome
https://bugs.freedesktop.org/show_bug.cgi?id=99396
Bug ID: 99396
Summary: Crash in nouveau_dri.so when switching apps with
alt-tab in Gnome
Product: Mesa
Version: git
Hardware: Other
OS: All
Status: NEW
Severity: normal
Priority: medium
Component: Drivers/DRI/nouveau
2006 May 26
3
capistrano on windows (again)
Hi all
I didn''t get a response to my first post so I thought I''d try again. is
anyone successfully using capistrano to deploy their app from a windows box?
I''m trying to deploy a test app to my dreamhost account but all i get is
"rake aborted!" with no further information. Can someone please confirm if
capistrano even works under windows?
many thanks
al
2006 Aug 17
1
More on n-way.
...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, Director and Writer, and belongs_to
Country and Language
@Movie
id
name
country_id
language_id
year
Join tables:
movies_actors
movies_writers
movies_directors
Everything works! But I have a situation where I can have an *Actor*,
that is ALSO a *Director* or a *Writer too.
If I update some Actor information, I have to update it on the other
tables (Directors,Writers), if it''s there.
Solution ?
Using database, I...
2006 May 24
0
capistrano on windows
I''m trying to deploy my app to the production server (on dreamhost) from a
windows box. however, all I get is "rake aborted" without any further error
messages. I have no idea where to even start debgging this. I''ve checked and
re-checked the details in deploy.rb but otherwise I''m stumped. any ideas
anyone?
thanks
al
output from command line:
2006 Apr 18
3
Capistrano and Certificates
All,
I''m setting up a deployment script with Capistrano at the moment, and
am running into some trouble when it attempts to pull the code down
from the SVN server when I run the deploy task.
The SVN server runs over https, and the problem seems to be when I get
asked whether I want to accept or reject the certificate. I hit ''p'' to
accept the certificate permanently,
2005 Nov 07
5
Switchtower deployment
Hi,
Has anyone experiences using SwitchTower (Windows) in a shared hosting
environment (Textdrive)? I already patched the SwitchTower rake tasks (I
don''t know if someone is interested on it), but i still experience some
problems (not in the sudoers list, ...).
Thank you for answer (and thank you to the textdrive guys, i never had a
such fast support!)
--
Jean-Etienne Durand