search for: stament

Displaying 8 results from an estimated 8 matches for "stament".

Did you mean: statment
2010 Nov 09
1
dovecot sieve plugin
hi... ?exist some way to extract message body contect to a variable with dovecot sieve plugin? ?:(? it's needed to do something like these: if address :matches ["From"] ["*"] { set "sender" "${0}"; <extract body content> # i try using something like "if body :raw :contains ["*"]" and use ${1} but i cant
2005 Aug 05
1
Is there a right place for a include_once statement in a PHP AGI script?
Hello there, I'm new to PHP AGIs and I'm having problems with a particular script that has a "include_once" statement on it. If I remove that stament, the script runs until the section of the code that depends on the include and then returns. If I include that statement, the script does not seem to run at all. What shall I do? Thanks in advance, Leo
2002 Jul 25
1
Calling the correct one of 2 conflicting functions
...way to ensure that the correct ecdf function is called by one of my own functions, that is, if both packages are in the search path? For example, > library(stepfun);library(hmisc) > vv <- rnorm(1000) > ecdf(vv) yields a plot using the hmisc ecdf function, and the following additional staments yield a similar plot using Martin's version: > detach("package:stepfun");library(stepfun) > ecdf(vv) > plot(.Last.value) But then doing > this <- ecdf(vv,pl=F) ,trying to use an argument to specify Frank's function, leads to an error. Is there a way to explicit...
2006 Aug 11
0
habtm in a standalone ruby script broken?
...wntimes ... this works fine, until i introduce a table_prefix with ActiveRecord::Base.table_name_prefix = "devel_" >From the database log i see that each tablename is correctly prefixed with _devel, execept the join_table host_downtimes_host_scheduled_downtimes I included a printf stament in Associations::join_table_name and saw that table_name_prefix was an empty string. If i comment out the require statements and write the class definitions directly in the standalone ruby script, it works perfectly. So does the rails application. May i beg for help? Greetings from Munich, Ger...
2006 Jan 30
0
Adding ActiveRecord objects to the session
...n it automatically saves the object that was added to the session to the DB. And the oddest part is that it automatically fills in the foreign key field quote_id, even though it is set to 0 at the time it is saved to the session. Here is the offending code, not the debugging statements; the first stament returns " - 0 - new" and the second statement returns "123 - 4 - DB" where 123 is whatever id was created and 4, as far as I can tell, is the id of the last Quote object that was instanciated (many method calls ago). Controller: def add_part part = Part.find(@params[''...
2006 Jul 12
6
So what is REST? I don''t get how it fits in Rails
Does someone have an actual example of this? I saw DHH''s slides where he said that you could have your app automatically respond with HTML, XML, atom, whatever. So far I''ve found tons of discussion on REST and CRUD in Rails, but I haven''t seen anything that actually shows me what it all is. There''s simply_restful, which apparently makes things easier...I
2012 Nov 20
2
hiera values issue
Hi, I have a puppetmaster - agent architecture. I have a module for the vsftpd configuracion in the agents. The configuration of the value ''max_per_ip'' in the agents may vary. This is a line of the manifest: $max_per_ip = hiera(''max_per_ip'',10) I want to specify different values for each agent using hiera. The problem is I am only able to specify the
2005 Oct 14
10
Active Record: Prepared Statements?
Hello all, my first project is on it''s way, and I am loving it! But, and that''s a big BUT: Active Record does not use prepared statements! How is that? Everybody is bragging about performance and the most obvious tuning measure is missing. Ok, I don''t know, if MySQL can even do them as I am using Postgres, but still. I started looking at the code and it is not