search for: unit_id

Displaying 20 results from an estimated 20 matches for "unit_id".

2011 Dec 13
2
Generating input population for microsimulation
...are housed within X different units. Each unit follows the same structure- 10 people per unit, 8 of whom are junior and two of whom are senior. I'd like to create a unit ID and a unique identifier for each person (person ID, PID) in the population so that I have a matrix that looks like: ???? unit_id pid senior ? [1,]????? 1?? 1????? 0 ? [2,]????? 1?? 2????? 0 ? [3,]????? 1?? 3????? 0 ? [4,]????? 1?? 4????? 0 ? [5,]????? 1?? 5????? 0 ? [6,]????? 1?? 6????? 0 ? [7,]????? 1?? 7????? 0 ? [8,]????? 1?? 8????? 0 ? [9,]????? 1?? 9????? 1 ? [10,]??? 1?? 10?? 1 ... I came up with the following code, b...
2013 Jun 10
1
Where Query in SQL
Hey all I am trying to use where in clause in sql query in R here is my code: sql.select<-paste("select PERSON_NAME from UNITS where UNIT_ID in ('",cathree,"')",sep="") where cathree is 1 variable with 16 observations as follows UNIT_ID 1 205 2 209 3 213 4 217 5 228 6 232 7 236 8 240 9 245 10 249 11 253 12 257 13 268 14 272 15 276 16 280 but when i run this code, 0 rows are selected eventhough there e...
2007 May 22
3
can I use acts_as_list with a has_many :through association
...ough => :unit_activities end class Unit < ActiveRecord::Base has_many :unit_activities, :order => :position has_many :activities, :through => :unit_activities end class UnitActivity < ActiveRecord::Base belongs_to :activity belongs_to :unit acts_as_list :scope => :unit_id end In he example below in script/console I load in some previously created activities; make a new unit; and add the activities to the unit. >> activity_crystals = Activity.find_by_name("Molecular crystals") >> activity_browning = Activity.find_by_name("Brownian mot...
2015 Mar 11
0
[PATCH] pmu/gk20a: PMU boot support.
...*) > + impl_from_pmu(pmu)); > + > + > + if (!queue->opened) { > + nv_error(ppmu, "queue not opened\n"); > + goto out; > + } > + > + if (queue->oflag == OFLAG_WRITE) { > + cmd.hdr.unit_id = PMU_UNIT_REWIND; > + cmd.hdr.size = PMU_CMD_HDR_SIZE; > + pmu_queue_push(pmu, queue, &cmd, cmd.hdr.size); > + nv_debug(ppmu, "queue %d rewinded\n", queue->id); > + } > + > + queue->position = queue->off...
2006 Mar 10
2
adding to has_many on create and edit
...number` varchar(255) NOT NULL default '''', `description` text NOT NULL, PRIMARY KEY (`id`) ) TYPE=MyISAM; that has_many :prices like so: CREATE TABLE `prices` ( `id` int(11) NOT NULL auto_increment, `price` decimal(10,2) NOT NULL default ''0.00'', `unit_id` int(11) default NULL, `created_at` datetime NOT NULL default ''0000-00-00 00:00:00'', PRIMARY KEY (`id`), KEY `unit_id` (`unit_id`) ) TYPE=MyISAM; My goal is to be able to create a unit and set its price at the same time. Then, when I update a unit, should I change th...
2015 Mar 11
3
[PATCH] pmu/gk20a: PMU boot support.
...ct pmu_desc *pmu, + struct pmu_queue *queue) +{ + struct pmu_cmd cmd; + struct nvkm_pmu *ppmu = (void *)nvkm_pmu((void *) + impl_from_pmu(pmu)); + + + if (!queue->opened) { + nv_error(ppmu, "queue not opened\n"); + goto out; + } + + if (queue->oflag == OFLAG_WRITE) { + cmd.hdr.unit_id = PMU_UNIT_REWIND; + cmd.hdr.size = PMU_CMD_HDR_SIZE; + pmu_queue_push(pmu, queue, &cmd, cmd.hdr.size); + nv_debug(ppmu, "queue %d rewinded\n", queue->id); + } + + queue->position = queue->offset; +out: + nv_debug(ppmu, "exit %s\n", __func__); +} + +/* open for r...
2006 Jan 05
2
Rails Newb: Foreign Key Views?
I''m a total rails newbie, but I''m learning fast. I have a question that I can''t seem to find an answer for: What is the best way of coding views that represent foreign key relationships? For example, while developing, I''ve created an "articles" table. I create some scaffolding code and modify it all to look nice. I then realise, I need an
2015 Mar 12
2
[PATCH] pmu/gk20a: PMU boot support.
...*) > + impl_from_pmu(pmu)); > + > + > + if (!queue->opened) { > + nv_error(ppmu, "queue not opened\n"); > + goto out; > + } > + > + if (queue->oflag == OFLAG_WRITE) { > + cmd.hdr.unit_id = PMU_UNIT_REWIND; > + cmd.hdr.size = PMU_CMD_HDR_SIZE; > + pmu_queue_push(pmu, queue, &cmd, cmd.hdr.size); > + nv_debug(ppmu, "queue %d rewinded\n", queue->id); > + } > + > + queue->position = queue->off...
2007 Dec 21
0
[Virtio-for-kvm] [PATCH 3/7] userspace virtio
...t a/qemu/hw/pc.c b/qemu/hw/pc.c index dde40c3..003d15d 100644 --- a/qemu/hw/pc.c +++ b/qemu/hw/pc.c @@ -1103,6 +1103,18 @@ static void pc_init1(ram_addr_t ram_size, int vga_ram_size, } } } + + /* Add virtio block devices */ + if (pci_enabled) { + int index; + int unit_id = 0; + + while ((index = drive_get_index(IF_VIRTIO, 0, unit_id)) != -1) { + virtio_blk_init(pci_bus, 0x5002, 0x2258, + drives_table[index].bdrv); + unit_id++; + } + } } static void pc_init_pci(ram_addr_t ram_size, int vga_ram_size, diff --git a/qemu/hw/pc.h...
2007 Dec 21
0
[Virtio-for-kvm] [PATCH 3/7] userspace virtio
...t a/qemu/hw/pc.c b/qemu/hw/pc.c index dde40c3..003d15d 100644 --- a/qemu/hw/pc.c +++ b/qemu/hw/pc.c @@ -1103,6 +1103,18 @@ static void pc_init1(ram_addr_t ram_size, int vga_ram_size, } } } + + /* Add virtio block devices */ + if (pci_enabled) { + int index; + int unit_id = 0; + + while ((index = drive_get_index(IF_VIRTIO, 0, unit_id)) != -1) { + virtio_blk_init(pci_bus, 0x5002, 0x2258, + drives_table[index].bdrv); + unit_id++; + } + } } static void pc_init_pci(ram_addr_t ram_size, int vga_ram_size, diff --git a/qemu/hw/pc.h...
2015 Apr 13
3
[PATCH v4] pmu/gk20a: PMU boot support
...fine PMU_UNIT_INIT (0x07) +#define PMU_UNIT_PERFMON (0x12) +#define PMU_UNIT_THERM (0x1B) +#define PMU_UNIT_RC (0x1F) +#define PMU_UNIT_NULL (0x20) +#define PMU_UNIT_END (0x23) +#define PMU_UNIT_TEST_START (0xFE) +#define PMU_UNIT_END_SIM (0xFF) +#define PMU_UNIT_TEST_END (0xFF) + +#define PMU_UNIT_ID_IS_VALID(id) \ + (((id) < PMU_UNIT_END) || ((id) >= PMU_UNIT_TEST_START)) +#define PMU_DMEM_ALIGNMENT (4) + #define BUSY_SLOT 0 #define CLK_SLOT 7 +#define GK20A_PMU_UCODE_IMAGE "gpmu_ucode.bin" + +/*Choices for DMA to use*/ +enum { + GK20A_PMU_DMAIDX_UCODE = 0, + GK20A_PMU_DM...
2006 Apr 23
0
Complex Database Associations
Hi All, I''m running into some issues with a fairly complex database structure. I have 4 tables: Products - id - name Productsitems - id - product_id - name Units - id - product_id - serialnumber Unitparts - id - productsitem_id - unit_id - partnumber - serialnumber What I''m attempting to do is to create a page where, after selecting which product I''m entering, I get presented with the data entry for a new unit and the appropriate number of unitparts for that product as defined by productsitems. The issue is that...
2010 Mar 23
0
Frozen hash problem
...periment: before_save :prune_lab_datas def prune_lab_datas lab_datas.each do |lab_data| lab_data.destroy end raise lab_datas.to_yaml end But nothing seems to be deleted in the hash: --- - &id001 !ruby/object:LabData attributes: created_at: 2010-03-21 22:16:06 unit_id: "3" lab_id: "81" updated_at: 2010-03-21 22:16:06 id: "184" lab_desc_id: "6" value: "29" attributes_cache: {} changed_attributes: {} errors: !ruby/object:ActiveRecord::Errors base: *id001 errors: {} And if I remo...
2015 Apr 08
3
[PATCH V2] pmu/gk20a: PMU boot support.
...ne PMU_UNIT_INIT (0x07) +#define PMU_UNIT_PERFMON (0x12) +#define PMU_UNIT_THERM (0x1B) +#define PMU_UNIT_RC (0x1F) +#define PMU_UNIT_NULL (0x20) +#define PMU_UNIT_END (0x23) + +#define PMU_UNIT_TEST_START (0xFE) +#define PMU_UNIT_END_SIM (0xFF) +#define PMU_UNIT_TEST_END (0xFF) + +#define PMU_UNIT_ID_IS_VALID(id) \ + (((id) < PMU_UNIT_END) || ((id) >= PMU_UNIT_TEST_START)) +#define PMU_DMEM_ALIGNMENT (4) + +struct pmu_hdr { + u8 unit_id; + u8 size; + u8 ctrl_flags; + u8 seq_id; +}; + +#define PMU_MSG_HDR_SIZE sizeof(struct pmu_hdr) + +enum { + PMU_INIT_MSG_TYPE_PMU_INIT = 0, +}; + +str...
2010 Oct 11
8
Nooby Stuck - "has_and_belongs_to_many" relationship
...me = Scheme.last => #<Scheme id: 21, schemename: "another", colour: nil, share: nil, subject_id: nil, user_id: 2, created_at: "2010-10-05 08:17:03", updated_at: "2010-10-05 08:17:03"> >> work = Work.last => #<Work id: 5, workname: "thrd", unit_id: 4, user_id: nil, unit: nil, created_at: "2010-10-11 17:24:51", updated_at: "2010-10-11 17:24:51"> >> scheme.works << work ActiveRecord::StatementInvalid: SQLite3::SQLException: near ")": syntax error: INSERT INTO "schemes_works" () VALUES ()...
2015 Apr 30
2
[PATCH v4] pmu/gk20a: PMU boot support
..._UNIT_RC (0x1F) >> +#define PMU_UNIT_NULL (0x20) >> +#define PMU_UNIT_END (0x23) >> +#define PMU_UNIT_TEST_START (0xFE) >> +#define PMU_UNIT_END_SIM (0xFF) >> +#define PMU_UNIT_TEST_END (0xFF) >> + >> +#define PMU_UNIT_ID_IS_VALID(id) \ >> + (((id) < PMU_UNIT_END) || ((id) >= PMU_UNIT_TEST_START)) >> +#define PMU_DMEM_ALIGNMENT (4) >> + >> #define BUSY_SLOT 0 >> #define CLK_SLOT 7 >> +#define GK20A_PMU_UCODE_IMAGE "g...
2006 Jan 21
9
Where to put method
I''ve got following code in GenresHelper.rb def album_list(genre) albums = genre.albums.sort list = albums.collect { |album| link = link_to album.title, :controller => ''albums'', :action => ''show'',
2006 Apr 23
5
Controllers in folders and helper scope in Rails >1.0
Hi, Here''s my problem. I tried to google it, read the release-docs and haven''t found anything similar. My application uses folders to store controllers, as described in the Rails book. I need to have same-named controllers for admin and for users, so it looks like this: /app/controllers/admin/project_controller.rb /app/controllers/admin/...
2016 Nov 21
33
[PATCH v4 0/33] Secure Boot refactoring / signed PMU firmware support for GM20B
This revision includes initial signed PMU firmware support for GM20B (Tegra X1). This PMU code will also be used as a basis for dGPU signed PMU firmware support. With the PMU code, the refactoring of secure boot should also make more sense. ACR (secure boot) support is now separated by the driver version it originates from. This separation allows to run any version of the ACR on any chip,
2017 Mar 29
15
[PATCH 00/15] Support for GP10B chipset
GP10B is the chip used in Tegra X2 SoCs. This patchset adds support for its base engines after reworking secboot a bit to accomodate its calling convention better. This patchset has been tested rendering simple off-screen buffers using Mesa and yielded the expected result. Alexandre Courbot (15): secboot: allow to boot multiple falcons secboot: pass instance to LS firmware loaders secboot: