search for: assoc

Displaying 20 results from an estimated 985 matches for "assoc".

2014 Jan 21
0
[PATCH] builder: proper consider subkeys in index files
...sections; @@ -162,25 +167,26 @@ let get_index ~prog ~debug ~downloader ~sigchecker source = let entries = List.map ( fun (n, fields) -> + let fields = List.map (fun (k, sk, v) -> (k, sk), v) fields in let printable_name = - try Some (List.assoc "name" fields) with Not_found -> None in + try Some (List.assoc ("name", None) fields) with Not_found -> None in let osinfo = - try Some (List.assoc "osinfo" fields) with Not_found -> None in + try Some (List.assoc (...
2014 Jan 21
2
Re: [PATCH] builder: proper consider subkeys in index files
...iterkey = key && itersubkey = subkey > > + ) fields with > > + | [] -> raise Not_found > > + | (_, _, value) :: _ -> value in > > > > let printable_name = > > > > - try Some (List.assoc "name" fields) with Not_found -> > > None in > > + try Some (find_elem "name" "" fields) with > > Not_found -> None in > What you could do here, which is a bit nicer, is (earlier on): > > let fields = List.map (fun (k,sk,v...
2006 Dec 06
2
vcd package, assoc()
Hello, I am trying to use the extended assocplot() function: assoc(), from vcd package. Trouble is that it cannot even run its own examples on my installation. I get this output: $> example(assoc) assoc> data("HairEyeColor") assoc> (x <- margin.table(HairEyeColor, c(1, 2))) Eye Hair Brown Blue Hazel Green...
2014 Jan 21
3
[PATCH] builder: proper consider subkeys in index files
...fun (iterkey, itersubkey, itervalue) -> + iterkey = key && itersubkey = subkey + ) fields with + | [] -> raise Not_found + | (_, _, value) :: _ -> value in let printable_name = - try Some (List.assoc "name" fields) with Not_found -> None in + try Some (find_elem "name" "" fields) with Not_found -> None in let osinfo = - try Some (List.assoc "osinfo" fields) with Not_found -> None in + try Some (find_ele...
2007 Feb 16
6
some fun functionality for all your specs
I''ve found these two snippets of code useful and would love some feedback. first, .should_have_valid_associations usage: context "A new Product" do specify "should have valid associations" do @product.should_have_valid_associations end end code: (thanks to Wilson/Defiler for converting to rspec) module Spec module Expectations module Should class Base d...
2009 Jul 24
6
Routes from raw js (using XMLHttpRequest)
I am making an ajax call from js to call a method (assocboxchange) in my controller (AssociatesController), using XMLHttpRequest. I know the XMLHttpRequest works fine because I use it in other places with success. My problem is my URL I am using for this request doesn;t access the method in my controller which I (think) I am specifying. I am having it...
2010 Feb 08
5
Why are double sided polymorphic relationships lacking in Rails?
http://stackoverflow.com/questions/2224994/why-are-double-sided-polymorphic-relationships-lacking-in-rails -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to
2013 Dec 18
1
Fwd: Bad \usage lines question
Dear colleagues, In checking a function I am adding to an R package, I get the following warning pair: ... Bad \usage lines found in documentation object 'nominal': "\\method{print}{nominal}"(x, max.print = 10, posthoc = "std.pearson.residuals.sign", assoc = ifelse("univariate" list(c("N", "alpha.X2", "uc.12", "uc.21")), list(c("N1", "N2", "N12", "uc.12", "uc.21"))), sort.key = NULL, ...) "\\method{summary}{nominal}"(...
2005 Feb 18
0
JOBS: Lecturer/Senior Lect/Assoc Prof at Auckland New Zealand
(Apologies for cross-posting) JOBS: Lecturer/Senior Lect/Assoc Prof at Auckland New Zealand (North American equivalents are Assistant, Associate and full Professor) The University of Auckland's Department of Statistics is the largest and most active in New Zealand and one of the most active in the southern hemisphere. It has approximately 30 academic st...
2006 Jul 05
2
Association Extensions
Hi, I''m using an assocation extension as follows: module RequestFinder def open find(:all, :conditions => "buyer_requests.closing_date > \''#{Date.today}\''") end def closed find(:all, :conditions => "buyer_requests.closing_date <= \''#{Date.today}\'&...
2017 Oct 27
0
[PATCH v11 5/8] builder: add a template parameter to get_index
...error (f_"The index file downloaded from ‘%s’ is corrupt.\nYou need to ask the supplier of this file to fix it and upload a fixed version.") uri in @@ -99,8 +99,25 @@ let get_index ~downloader ~sigchecker { Sources.uri; proxy } = let arch = try Either (List.assoc ("arch", None) fields) with Not_found -> - eprintf (f_"%s: no ‘arch’ entry for ‘%s’\n") prog n; - corrupt_file () in + if template then + try + let g = new Guestfs.guestfs () in +...
2017 Nov 13
0
[PATCH v12 2/3] builder: add a template parameter to get_index
...error (f_"The index file downloaded from ‘%s’ is corrupt.\nYou need to ask the supplier of this file to fix it and upload a fixed version.") uri in @@ -99,8 +99,23 @@ let get_index ~downloader ~sigchecker { Sources.uri; proxy } = let arch = try Index.Arch (List.assoc ("arch", None) fields) with Not_found -> - eprintf (f_"%s: no ‘arch’ entry for ‘%s’\n") prog n; - corrupt_file () in + if template then + let g = new Guestfs.guestfs () in + g#add_drive_ro file_ur...
2017 Nov 21
0
[PATCH v13 2/3] builder: add a template parameter to get_index
...error (f_"The index file downloaded from ‘%s’ is corrupt.\nYou need to ask the supplier of this file to fix it and upload a fixed version.") uri in @@ -99,8 +99,23 @@ let get_index ~downloader ~sigchecker { Sources.uri; proxy } = let arch = try Index.Arch (List.assoc ("arch", None) fields) with Not_found -> - eprintf (f_"%s: no ‘arch’ entry for ‘%s’\n") prog n; - corrupt_file () in + if template then + let g = open_guestfs ~identifier:"template" () in +...
2012 May 03
1
loading multiple CSV files into a single data frame
...of CSV files scattered in a directory tree, resulting from experiments' executions. For instance, giving an example from my field, I may want to collect the performance of a processor for several design parameters such as "cache size" (possible values: 2, 4, 8 and 16) and "cache associativity" (possible values: direct-mapped, 4-way, fully-associative). The results of all these experiments will be stored in a directory tree like: results |-- direct-mapped | |-- 2 -- data.csv | |-- 4 -- data.csv | |-- 8 -- data.csv | |-- 16 -- data.csv |--...
2008 Feb 01
0
find_with_ferret and HABTM assocs
Could you be more specific about what is not working? -- Are your association methods between Role and User being set up correctly? (If not, make sure your statement is "has_and_belongs_to_many", and not "hasandbelongstomany".) -- Are you storing the data for role_name in the index? If so, can you see it there? I''m not familiar with...
2007 Feb 22
0
Problem with Cacti and CentOS 4.4
...12:09:16 PM - POLLER: Poller[0] Maximum runtime of 292 seconds exceeded. Exiting. 02/21/2007 12:09:16 PM - SYSTEM STATS: Time:293.1932 Method:cmd.php Processes:1 Threads:N/A Hosts:3 HostsPerProcess:3 DataSources:114 RRDsProcessed:5 cacti.log 02/21/2007 12:09:14 PM - CMDPHP: Poller[0] DEBUG: SQL Assoc: "select poller_id,end_time from poller_time where poller_id = 0" 02/21/2007 12:09:14 PM - CMDPHP: Poller[0] DEBUG: SQL Assoc: "select poller_output.output, poller_output.time, poller_output.local_data_id, poller_item.rrd_path, poller_item.rrd_name, poller_item.rrd_num from (p...
2017 Nov 21
0
[PATCH] builder: planner: Don't add some impossible transitions.
...r/builder.ml | 28 ++++++++++++++++------------ 1 file changed, 16 insertions(+), 12 deletions(-) diff --git a/builder/builder.ml b/builder/builder.ml index a4c830e89..843106a86 100644 --- a/builder/builder.ml +++ b/builder/builder.ml @@ -413,6 +413,8 @@ let main () = let remove = List.remove_assoc in let ret = ref [] in + let infile = List.assoc `Filename itags in + (* The scheme for weights ranges from 0 = free to 100 = most expensive: * * 0 = free operations like renaming a file in the same directory @@ -433,8 +435,7 @@ let main () = * We could estimate...
2017 Nov 21
1
[PATCH v2] builder: planner: Don't add some impossible transitions.
Previous patch contained a typo. Changed output_format -> output_filename. Rich.
2009 Mar 30
1
Help with tm assocation analysis and Rgraphviz installation.
Help with tm assocation analysis and Rgraphviz installation. THANK YOU IN ADVANCE Question 1: I saved two txt file in C:\textfile And each txt file contents only one text column, and both have 100 records. I know term “research” occurs 49 times, so I want to find out which other words are correlated to this...
2015 Oct 20
1
[PATCH v3 01/13] v2v: factor out opening input VM
...nics = nics } = source in - let nics = List.map ( - fun ({ s_vnet_type = t; s_vnet = vnet } as nic) -> - try - (* Look for a --network or --bridge parameter which names this - * network/bridge (eg. --network in:out). - *) - let new_name = List.assoc (t, vnet) network_map in - { nic with s_vnet = new_name } - with Not_found -> - try - (* Not found, so look for a default mapping (eg. --network out). *) - let new_name = List.assoc (t, "") network_map in - { nic with s_vnet = n...