similar to: Inserting parent_id

Displaying 20 results from an estimated 1000 matches similar to: "Inserting parent_id"

2006 Apr 05
7
select_tag - populating options
Hello, I want to a select tag, where you can choose a number between 1 and 100. My inital code is based on the examples from Agile Web Development with Rails, and looks like this: view: <%= options = [["Select number of lines", ""]] + RfqLines::LINE_QTY select("rfq_line", "line_qty", options) %> model: LINE_QTY = select_fill def
2006 Apr 11
5
multiple select_tag
Hello again, I have a table called line_items, with the following fields: id int item_name varchar() qty int conditions text I''ve made my LineItem model, and everything works as such (with simple text_fields).. Now I''d like for the conditions field to be a select_tag() with multiple choice possibility. I''m guessing I need some code to expand/restract the array for
2006 Jun 30
2
aggregate data.frame by one column
Hi, everyone, I have a data.frame named "eva" like this: IND PARTNO VC1 EO1 EO2 EO3 EO4 EO5 114 114001 2 5 4 4 5 4 114 114001 2 4 4 4 4 4 114 114001 2 4 NA NA NA NA 112 112002 2 3 3 6 2 6 112 112002 2 1 1 3 4 4 112 112003 2 6 6 6 5 6 112 112003 2 5 7 6 6 6 112 112003 2 6 6 6 4 5 114 114004 2
2006 Mar 04
2
tg3 gigabit speed
Hi all, I have two HP DL145 G1 machines, running centos4 (2.6.9-22.0.2.ELsmp). Nics are recognized as: eth0: Tigon3 [partno(BCM95704) rev 2002 PHY(5704)] (PCIX:100MHz:64-bit) 10/100/1000BaseT Ethernet 00:00:1a:19:f1:05 eth0: RXcsums[1] LinkChgREG[0] MIirq[0] ASF[0] Split[0] WireSpeed[1] TSOcap [1] eth1: Tigon3 [partno(BCM95704) rev 2002 PHY(5704)] (PCIX:100MHz:64-bit) 10/100/1000BaseT Ethernet
2005 Oct 10
11
Samba creating multiple isntances of the deamon
(2005.10.10, 14:25) I am running Samba 3.0.14a-2 on Fedora 4. I have no problem seeing the Linux file system from any of the Windows (2000, SP4) computers attached to the network. The problem is that smbd processes are created for no apparent reason and never die. I noticed this when the computer had been up for about three days and there were some 600 active smbd processes! What could be the
2013 Jan 04
3
help "reshaping" dataframe
List, I want to reshape my data, but I'm not sure how to do it... it might be a simple task, but don't know which package does this. "occ.data" (see below) is how my original data are arranged, and I know that with melt() I can reshape it like "y" (see below). However, I just want to build a matrix like the "y" matrix, but with only 2 dimensions. Something
2006 Mar 13
7
Wilcard search
Hello, I''m writing a search function for my application, but I am unsure on how to search for all results that contain my search string; here''s what I''ve got: def search @products = Product.find(:all, :conditions => "date_available < now()", :conditions => [ "title ilike ?",
2006 Mar 07
6
Flickr - Tutorial
So I''ve pretty much followed the steps in the video tutorial on RoR.com for creating a small app, to search for photos on flickr.com - all is good, and works as intended to.. How would I go about adding validation, so if no tags are specified it will fail. I know I have to use validates_presence_of :tags - but not in the controller.. so I tried to generate a model called
2006 May 02
5
listing parents from child conditon
Hi, How can I grab all parents in a table, depending on a condition in the children table ? Fx. def list @projects = Project.find(:all) end will find all projects in my table. Now let''s say I want show a similar list, for all open projects.. I define an open project, as all lines (Line has belongs_to :Project) that do not yet have a closed_at timestamp set. So basically, I want
2003 Jul 09
7
Asterisk basic how-to on O'Reilly's site
This was published on O'Reilly's site last week, but they didn't tell me until now. :) The article is pretty minimal, because I had a limited number of words to work with, so many features are not implemented. However, it's a good start. http://www.onlamp.com/pub/a/onlamp/2003/07/03/asterisk.html I had a few people review it beforehand, but I'd also welcome changes or
2015 Jul 22
13
[PULL 0/8] MultiFS suppport for BIOS and EFI
So last week I was wondering if XFS was still working -- even with its last on-disk structure changes -- and it _suprisingly_ worked as expected. Right, now I can finally get rid of GRUB and use Syslinux to boot my Linux on EFI from a rootfs with xfs. Shit, I have two partitions (the first one being the required ESP) so there is no way to access the other partitions since because Syslinux does not
2006 May 31
3
textfield_with_auto_complete - filling two fields
I am going nuts here.. I have a form where users can write a city name (used with auto_complete) - and once they click on the desired city in the dropdown menu - I would like to have the Country field filled automatically as well... Is this possible at all ? If so, can somebody please tell me where I can find some documentation on the subject, or preferrably an example ? Many thanks in
2007 Mar 06
2
New eudora problem - "mswmsg" not supported
I just upgraded from v0.9.9 to v0.9.32 (on Ubuntu 6.06) and Eudora Pro v4.2 stopped working. It no longer opens a mailbox when the icon is clicked. The log shows "fixme:rpc:alloc_serverprotoseq protseq "mswmsg" not supported" each time I click to open a mailbox. This was working on v0.9.9 so I am looking for ideas as to how to work around this problem. There is a bug
2012 Nov 21
1
Listing elements of a 4D array
Dear list, I'm having trouble to see how my elements on a 4 dimensional array are listed. For example, I generated the following array: junk.melt=melt(occ.data,id.var=c("Especie", "Site", "Rep", "Año"), measure.var="Pres") y=cast(junk.melt, Site ~ Rep ~ Especie ~ Año) Now, I want to be able to look at how my species (Especie) are listed, in
2018 Jan 10
2
Doveadm field for message body without attachments
Happy new year to all, what is the message field in doveadm data model representing the body without attachments? I need to dump the message body without the attachments so as to avoid unnecessary size of the exported files and while I am also not interested in this part of the message. with kind regards Athanasios
2012 Feb 16
2
import .csv file into R
Dear r-helpers, I read a .csv file into R with the following command: A<-read.csv2(file="Mappe3.csv") It worked fine, except that I would like to get rid of the points between the words and get spaces instead like I have got in the .csv file. At the moment it looks like the following: habe.mich.gut.mit.KlassenkollegInnen.verstanden hatte.gutes.Verhältnis.zu.Eltern
2006 Jul 04
1
options_for_select - default nil value
I have a field in a view, like so: <%= select_tag(''quoted_condition'', options_for_select([''NEW'',''RETAIL'',''OEM'',''REFURB''], ''NEW'')) %> This sets the ''selected'' value to ''NEW'' - however, I would like to have a nil value here, so I can
2008 Nov 11
3
FXTextField and number of digits after decimal point
Hello, Here''s the context: I read a number either pure integer or float with eventually up to 12 digits after the decimal point from a YAML file. The number is injected into a FXTextField with the following code: @value_sel = FXDataTarget.new(@value.to_s) @value_value = FXTextField.new(@matrix_mem_value, 20, at value_sel, :opts =>TEXTFIELD_NORMAL|JUSTIFY_RIGHT,
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
2005 Sep 22
2
Failed Network
I''m at my wits end maybe someone out there can help me. Machine Shuttle AN51R Motherboard 1GB ram AMD-64 3000+ (2GHz) 20GB HD (western digital) with 1GB for minimal install, 500MB for swap, and the rest I had planned to use for LVM volumes for VMs. I''ve been running ubuntu 5.04 (hoary) happy as a clam for a while now no problems. Now I''ve started investigating Xen