Displaying 20 results from an estimated 68 matches for "variable_name".
2007 Nov 15
4
Using .find_by_sql for database/admin queries
...For example, I''m doing something like this:
@variables = ActiveRecord::Base.find_by_sql "show variables;"
Then, I get stuff like this back (227 elements in @variables) in
script/console:
>> @variables[0]
=> #<ActiveRecord::Base:0x3296eec
@attributes={"Variable_name"=>"auto_increment_increment", "Value"=>"1"}>
However, I''m not sure how to get Variable_name and Value; do I access
this as a Hash element? An attribute?
Should I create a custom Model class such as this?
class MySql < ActiveRecord::Base...
2010 Jun 24
7
Yet more variable scoping pain.
Some days I wonder why I even bother with puppet.
---
classes:
- datacentre::new_york
- role::appserver
- elements::tfel0
environment: production:
parameters:
< set key/value pairs here >
class ldap {
< do some stuff that behaves slightly differently between different
data centers >
}
class role::appserver {
include ldap
}
So, I wanted to set some variables in the
2008 Apr 14
1
Initialize many variables to NUL, check whether an object exist
Hi,
Two questions:
A) I need to initialize many variables to NULL. So I created variable_names
<- c("a1", "a2"). What can I do to variable_names so that variable a1 is
NULL and a2 is NULL ?
B) How can I check whether an object exist ?
Thanks
Stanley
[[alternative HTML version deleted]]
2016 Aug 31
6
RFC: FileCheck Enhancements
...ckets "[[" to escape.
>> Old syntax:
>> \#(template_name) - use of template 'template_name'. It can occur in CHECK-PATTERN line, when description of one template includes other templates described before. (Without quote, I don't know how escape # here)
>> \:(Variable_name)- template variable with name 'variable_name'
>> \:(variable_name)\=(value) - current value of template variable(it's needed when you use template with variables).
>> Suggested new syntax:
>> [[#template_name]] - use of template 'template_name'. It can occur in...
2010 Sep 20
5
Update to website not printing special Characters
...nd
Collation (Shared Server). I got my host to change everything back to
Latin1. I was going to change my w/site meta line to ISO 8859-1.
From connecting to my database via ssh I got:-
mysql> show variables like ''c%'';
+--------------------------+----------------------------+
| Variable_name |
Value |
+--------------------------+----------------------------+
| character_set_client |
latin1 |
| character_set_connection | latin1 |
| character_set_database |...
2016 Aug 24
9
RFC: FileCheck Enhancements
...suggested to use double-brackets "[[" to escape.
Old syntax:
\#(template_name) - use of template 'template_name'. It can occur in CHECK-PATTERN line, when description of one template includes other templates described before. (Without quote, I don't know how escape # here)
\:(Variable_name)- template variable with name 'variable_name'
\:(variable_name)\=(value) - current value of template variable(it's needed when you use template with variables).
Suggested new syntax:
[[#template_name]] - use of template 'template_name'. It can occur in CHECK-PATTERN line, when d...
2016 Sep 01
2
RFC: FileCheck Enhancements
...ax:
>>> \#(template_name) - use of template 'template_name'. It can occur in
>>> CHECK-PATTERN line, when description of one template includes other
>>> templates described before. (Without quote, I don't know how escape
>>> # here)
>>> \:(Variable_name)- template variable with name 'variable_name'
>>> \:(variable_name)\=(value) - current value of template variable(it's needed when you use template with variables).
>>> Suggested new syntax:
>>> [[#template_name]] - use of template 'template_name'. It...
2010 May 24
5
how to pass javascript variable to controller
i have a JavaScript variable and i need to pass that to controller
with the remote_function method.
how do i pass this?
--
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
2016 Sep 01
2
RFC: FileCheck Enhancements
...ax:
>>> \#(template_name) - use of template 'template_name'. It can occur in
>>> CHECK-PATTERN line, when description of one template includes other
>>> templates described before. (Without quote, I don't know how escape
>>> # here)
>>> \:(Variable_name)- template variable with name 'variable_name'
>>> \:(variable_name)\=(value) - current value of template variable(it's needed when you use template with variables).
>>> Suggested new syntax:
>>> [[#template_name]] - use of template 'template_name'. It...
2016 Sep 05
2
RFC: FileCheck Enhancements
...\#(template_name) - use of template 'template_name'. It can occur
>>>> in CHECK-PATTERN line, when description of one template includes
>>>> other templates described before. (Without quote, I don't know how
>>>> escape # here)
>>>> \:(Variable_name)- template variable with name 'variable_name'
>>>> \:(variable_name)\=(value) - current value of template variable(it's needed when you use template with variables).
>>>> Suggested new syntax:
>>>> [[#template_name]] - use of template 'template_na...
2007 Dec 05
4
render :update and controller private methods
Probably asked and answered, but...
Why are controller private methods inaccessible inside the block
passed to render :update ?
This does not work:
class MyController < ApplicationController
def some_action
render :update do |page|
page.replace_html ''an_element'', some_private_method
end
end
private
def some_private_method
return
2007 Oct 26
0
3 commits - libswfdec/swfdec_as_context.c libswfdec/swfdec_as_context.h libswfdec/swfdec_as_interpret.c
...ta != NULL);
+
+ try_data->ref_count++;
+}
+
+static void
+swfdec_action_try_data_unref (gpointer data)
+{
+ TryData *try_data = data;
+
g_return_if_fail (try_data != NULL);
+ if (--try_data->ref_count > 0)
+ return;
+
if (!try_data->use_register)
g_free (try_data->variable_name);
g_free (try_data);
@@ -2575,14 +2591,15 @@ swfdec_action_try_end_finally (SwfdecAsFrame *frame, gpointer data)
g_return_if_fail (SWFDEC_IS_AS_FRAME (frame));
g_return_if_fail (SWFDEC_IS_AS_VALUE (error));
- swfdec_as_frame_pop_block (frame);
-
cx = SWFDEC_AS_OBJECT (frame)->cont...
2016 Jul 19
2
RFC: FileCheck Enhancements
Hi Elena,
> On Jul 19, 2016, at 6:36 AM, Elena Lepilkina via llvm-dev <llvm-dev at lists.llvm.org> wrote:
>
> Hi all,
>
> I made new patches for most of changes with llvm-commits subscriber. But two patches were updated, because there are a lot of comments (patch for CHECK-WORD and patch for templates pattern). Will it be ok?
IMO it's fine to keep some of the original
2012 Jul 25
2
reshape -> reshape 2: function cast changed?
...d moved to reshape2 (R 2.15.1). Now I tried some of my older scripts and was surprised that my cast function wasn't working like before.
What I did/want to do:
1) Melt a dataframe based on a vector specifying column names as measure.vars. Thats working so far:
dfm <- melt(df, measure.vars=n, variable_name = "species", na.rm = FALSE)
2) Recast the dataframe:
dfc <- cast(dfm, Var1 + Var2 + Var3 + Var4 ~ species,max) # with reshape
dfc <- dcast(dfm, Var1 + Var2 + Var3 + Var4 ~ species,max) # with reshape2
but then I get (this is new to reshape2!) a warning message:
In .fun(.value[0],...
2015 Mar 12
2
mysql replication - problems
>
> No: /etc/pki/CA should NOT be group writeable. Ditto for
> /etc/pki/tls/cernts and private
Ok, yeah I can understand that. I'll correct it. Still need a way to get
SSL enabled however. Any suggestions there?
Thanks
Tim
On Thu, Mar 12, 2015 at 11:40 AM, <m.roth at 5-cent.us> wrote:
> Tim Dunphy wrote:
> >>
> >> The mysqld process runs as the mysql
2006 Mar 13
5
Displaying related entries by tags - HELP!
Ok, my site is setup like pretty much every other blog out there. A
list of the most recent 5 posts, then by clicking one, you go to an
individual post page, displaying the full context of that post.
Now, what I would like to do is to display the related entries in the
side column, which is part of the layout, based on the tags belonging to
that specific entry.
Here''s my coding so
2006 Apr 06
1
Application and Server variables
Hi all,
Just as we use session variables like session[:variable_name], I
would like to know if we have some way to express an application
variable or are application variables are existent in Ruby on rails.
Thanks and regards..
prasad
--
Posted via http://www.ruby-forum.com/.
2008 Apr 22
1
bar-chart help
Hi,
I have a table like below outside R environment
Varible_Name
Labels
Bad_Percent
Good_Percent
Var1_Postal_Code_Availibility
1
0,149367931
0,850632069
0
0,19709687
0,80290313
Variable_Name column contains a single entry, the variable name, this is
the title of the graphic
I want to plot a barchart Bad_Percent (blue) versus Good_Percent (red)
within each Label
Thanks a lot for your help
Regards,
Emre
2007 Aug 16
0
call R function in c++ program
...ector(REALSXP, std_vector.size()) );
int i = 0;
for(std_iterator s_it=std_vector.begin(); s_it!=std_vector.end();
s_it++)
{
REAL(vector_SEXP)[i] = (double) *s_it;
i++;
}
UNPROTECT(1);
// for create a variable in R environement
defineVar(install("variable_name"), variable_value_SEXP, rho);
// for execute "complex" function (with parser)
PROTECT( e1 = mkString("plot(variable_name, type=\"l\")") );
PROTECT( e2 = R_ParseVector(e1, 1, &status, R_NilValue) );
R_tryEval(VECTOR_ELT(e2,0), rho, &hadError...
2017 Jun 18
2
About error bars on barplots
...rs to stacked bar plots.
DF:
year A B C Amin Amax Bmin Bmax Cmin Cmax
2009 40 45 15 30 61 23 56 14 17
2010 36 41 23 26 54 22 51 22 24
I use the code below:
DF.refm = melt(subset(DF[,c(1:4)]),id.vars='year',variable_name='Legend')
fig1 = ggplot(data=DF.refm, aes(x=year,y=value,fill=Legend))+
geom_bar(stat='identity',size=.5)+ theme_bw()+ xlab('Year')+
ylab('Percent (%)')
print(fig1)
But I don't know how to change it a little bit. For example, how to add the
error bars on the...