search for: entity

Displaying 20 results from an estimated 4482 matches for "entity".

2006 Jan 31
4
has_one without inverse belongs_to
I have two models called entity and user. The entities table has a column called users_id that contains the user id of the user that created the entity. In entity I have... has_one :user ... as I want to be able to show the user who created the entity from the entity object. But this produces the following error... Mysql:...
2008 Jul 26
2
Re: Gnumeric rpm
...saction Test > Finished Transaction Test > Transaction Test Succeeded > Running Transaction > Installing: goffice ######################### [1/2] > Installing: gnumeric ######################### [2/2] > I/O error : Attempt to load network entity > http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd > /usr/share/gnome/help/gnumeric/C/welcome.xml:138: parser error : Entity > 'nbsp' not defined > Pro<trademark/>&nbsp;and HTML. &gnum; > ^ > /usr/share/gnome/help/gnum...
2006 Apr 16
8
"Cannot convert String to Integer" after using association
So, I''ve written a partial that does some stuff with a given instance of my class "entity". Entity is ActiveRecord. I''m able to retrieve all sorts of data from an @entity, until I do something like: <% for @attribute in @entity.attributes %> <div id="attribute_<%= @attribute.id %>"> <%= render(:partial => ''attribute'...
2006 Apr 30
16
postgresql duplicate key violates unique constraint
I have a weird problem with creating a new record when using PostgreSQL. From inside script/console ... >> entity = Entity.new >> entity.first_name = "Foo" >> entity.last_name = "bar" >> entity.save Throws an exception due to the following SQL error: duplicate key violates unique constraint. The application was working fine before and suddenly gives this grief. I...
2006 Jan 15
2
single table inheritance: change object ''type'' after create?
...e in the database, and I''m using Single Table Inheritance to keep the different subclasses in the same table, with a field "type". My problem comes when allowing the user to correct a mistake -- say, change a "committee" to a more general "organization". @entity.update_attributes({:type=>"Organization"}) doesn''t change the database. I can understand that ruby doesn''t want me changing the class of an existing object. However, is there a way I can make this change, while keeping the entity''s same "id" (s...
2010 Sep 12
3
reshape matrix entities to columns
...10 7 9 It should read the entities one by one when j is in age column take its value and consider it as the column number for new matrix then go to next entity (j No. columns) and put that entity under the columns number identified in previous step. In other word it should get the each element in No. columns (one by one) and place them in a new matrix under the column number which are equal to entity of age columns of first matrix i have tired ncol, an...
2007 Oct 13
0
5 commits - libswfdec/swfdec_html_parser.c libswfdec/swfdec_text_field.c libswfdec/swfdec_text_field_movie_as.c libswfdec/swfdec_text_field_movie.c libswfdec/swfdec_xml.c test/trace
...arse-6.swf.trace b/test/trace/xml-parse-6.swf.trace index b450ce6..924e689 100644 --- a/test/trace/xml-parse-6.swf.trace +++ b/test/trace/xml-parse-6.swf.trace @@ -167,8 +167,8 @@ childNodes: 0: Loading: xml-parse-2.xml Success: true --- -788 -788 +820 +820 docTypeDecl: <!DOCTYPE foo [ <!ENTITY greeting "hello"> ]> ignoreWhite: true loaded: true @@ -301,7 +301,7 @@ nextSibling: undefined previousSibling: TAG(1): 'empty_element' childNodes: 0: --- -attributes: 1: entities%5Fattribute=%3C%20%3E%20%22%20%27%20%26 +attributes: 1: entities%5Fattribute=%3C%20%3E%20...
2009 Jan 09
1
Is there a problem with webrat?
webrat (0.3.4) I have this in the view: <div id="list_entity_1"> <tr> <td>Just An Entity</td> <td>000001</td> <td id="show_entity_1"><a href="/entities/1">Show Entity</a></td> <td id="edit_entity_1"><a href="/entities/1/edit">Ed...
2008 Apr 13
20
uninitialized constant
Hi guys, I''m part way through a RoR application, for some reason whenever I add new controllers (using scaffold) I get an uninitialized constant [name of controller] error. The first few controllers work fine, the only thing I can see that I''ve changed is the layout file (but scaffold creates a new layout for each controller so can''t see that being the problem). You
2023 Aug 11
1
[PATCH drm-misc-next] drm/nouveau: sched: avoid job races between entities
If a sched job depends on a dma-fence from a job from the same GPU scheduler instance, but a different scheduler entity, the GPU scheduler does only wait for the particular job to be scheduled, rather than for the job to fully complete. This is due to the GPU scheduler assuming that there is a scheduler instance per ring. However, the current implementation, in order to avoid arbitrary amounts of kthreads, has a sin...
2008 Feb 21
5
Question about entities
...9;'s preference on NCRs or character entities? Textile 2 uses decimal NCRs, so a less-than character becomes &#60; whereas RedCloth (3.04 and prior) used &lt;. What is your preference? It gets tough because &#39; (a straight single quote) doesn''t have a character entity equivalent. 2.) How do you feel about encoding characters like quotes in blockcode and pre blocks? Textile 2 does it, but the old RedCloth never did. Example: > This <code>is some code, "isn''t it"</code>. under Textile 2 becomes > This <code>is...
2015 Nov 18
3
RFC: Supporting all entities declared in lexical scope in LLVM debug info
...The local static variable has an open ticket in LLVM Bugzilla: https://llvm.org/bugs/show_bug.cgi?id=19238 Background These are all the entities that can be declared inside a lexical scope (i.e. function or basic block): 1. Local variable 2. Local static variable 3. Imported Entity a. Imported declaration b. Imported module 4. Type a. Record (structure, class, union) b. Typedef In the current LLVM implementation only (1) the local variables are handled correctly. (2) local static variables and (4) Types are associated in clang-FE to the functio...
2006 Feb 28
1
Wrong id after join!
The Problem ----------- After using a join in my find the id attributes set in my Entity objects are wrong! It is setting the Entity id to the value from Postcode id! The Code -------- entities = Entity.find(:all, :conditions => [...omited...], :joins => "as e inner join postcodes as pc on substring_index(e.postcode,'' '', 1...
2006 Jun 29
7
Mongrel says it works, but it doesn''t
Hello, I came to know of mongrel by pure chance, it interrested me cause webrick never worked and instantrails for rails was very slow. the problem with webrick is/was is that it says just this: >ruby script/server c:/ruby/lib/ruby/site_ruby/1.8/rexml/entity.rb:21: warning: character class has `-'' without escape c:/ruby/lib/ruby/site_ruby/1.8/rexml/entity.rb:21: warning: character class has `-'' without escape c:/ruby/lib/ruby/site_ruby/1.8/rexml/entity.rb:21: warning: character class has `-'' without escape c:/ruby/lib/ruby/si...
2016 Jan 19
2
RFC: Supporting all entities declared in lexical scope in LLVM debug info
...> https://llvm.org/bugs/show_bug.cgi?id=19238 > > > > *Background* > > These are all the entities that can be declared inside a lexical scope > (i.e. function or basic block): > > 1. Local variable > > 2. Local static variable > > 3. Imported Entity > > a. Imported declaration > > b. Imported module > > 4. Type > > a. Record (structure, class, union) > > b. Typedef > > > > In the current LLVM implementation only (1) the local variables are > handled correctly. > > (2)...
2006 May 18
2
Utility to translate HTML character entities into text?
Anyone know of a Ruby utility that will translate HTML character entities into text? Thanks, Wes -- Posted via http://www.ruby-forum.com/.
2009 Apr 02
1
Histogram with lattice with two 'conditional' variables
...(variable)/2) mydata<-data.frame(variable,individual,group) library('lattice') attach(mydata) individual<-as.factor(individual) group<-as.factor(group) histogram(~variable|individual+group) If you run the above code you will obtain a series of panels that correspond to every entity, but replicated, which makes sense because I am telling it to generate histograms by entity and by group, but the reality is that each entity only belongs to one of the groups, but then some plots appear empty, as they should. That means that only the plots that have data in it are 'real'....
2010 Sep 12
0
replacing matrix column entities as columns name
...matrix is empty == center1(2,7) and center2(4,10,20) are full > column name= age of ppl > > entries = number of ppl with that age in on center It should read the entities one by one when j is in age column take its value and consider it as the column number for new matrix then go to next entity (j No. columns) and put that entity under the columns number identified in previous step. In other word it should get the each element in No. columns (one by one) and place them in a new matrix under the column number which are equal to entity of age columns of first matrix i have tired ncol, an...
2007 Dec 19
0
Convert all HTML entities within <pre> tags?
Textile 2.0.0: bc. This is within a block of code, so < and > should be *entities*. You can talk about a <p> tag if you wish and it will be properly escaped. <pre> You can''t make something actually <b>bold</b> within. </pre> Output: <pre><code>This is within a block of code, so &lt; and &gt; should be *entities*. You can
2006 Mar 16
20
help with each
can you please tell me why this is not working? i got the example for how to use each online and copied it to a t (except i added the if). its telling me items.each does not exist. var items = document.getElementsByClassName(''editView''); if (items.length > 0){ items.each(function (result){ thisid = result.id; thiskey = thisid.replace(/se_item_/gi, '''');