search for: whatev

Displaying 20 results from an estimated 23867 matches for "whatev".

Did you mean: whater
2006 Mar 01
15
Is there a perl equivalent of .= in ruby/rails??
I want to make a for loop that concats strings onto a variable: html .= var1 + "this is a test" + whatever What is the syntax that does this in ruby/rails? Also, is there a ''print'' method in ruby? Because when I try to use render_text it will only let me use this once. -- Posted via http://www.ruby-forum.com/.
2010 Aug 05
5
asset_host and ActionMailer
After digging through the rails code to figure out why my asset_host wasn''t getting applied to emails, I realized that it''s because the config object in the context of a mailer is config.action_mailer and not config.action_controller. This means you need to set asset host separately for emails, as config.action_mailer.asset_host. Should this be considered a bug? Is it really
2005 Oct 15
2
batch file execution
...me. What I am trying to do is get myself a list of must-do's (read in data, batch execution, delimiters, basic modeling commands) in R as in Stata or SAS. I am just wondering how to execute a R batch file in RGui. Suppose I have a script file (like do file in stata, or sas file in SAS) under c:\whatever.R, how can I execute it using commands (not drop down menu) in RGui? In stata, would be something like do c:\whatever.do How about in R. I tried the "R CMD BATCH('h:/whatever.R'), but it didn't work. Any help would be greatly appreciated. [[alternative HTML version deleted]]
2007 Jan 19
6
wireless card for CentOS
Hi, I'll need to buy a new wireless card. I need a recommendation for PCMCIA wireless card that simply works with CentOS out of the box. By "works out of the box", I mean that it doesn't need ndis wrapper (or whatever it is called), kernel hacks, or whatever. Thanks
2013 Dec 05
2
Dsync error: Couldn't drop privileges: getgrnam
...igs) to a newer release of ubuntu in order to gain access to slightly newer Dovecot release and be able to use Dsync for migration from Cyrus, here is my doveconf -n output: # 2.1.7: /etc/dovecot/dovecot.conf # OS: Linux 3.5.0-44-generic x86_64 Ubuntu 12.10 auth_debug = yes auth_default_realm = whatever.com auth_master_user_separator = * auth_socket_path = /var/run/dovecot/auth-master imapc_features = rfc822.size imapc_host = oldmail.whatever.com imapc_master_user = cyradmin imapc_password = <password hidden> mail_chroot = /var/vmail mail_debug = yes mail_gid = 5000 mail_location = maildir...
2006 Feb 23
12
how to output something from within <% %> tags?
simple question: how do I output something from within <% %> tags? e.g. like ''echo'' in PHP. I thought it would be ''puts'' or ''print'' but neither seems to work. right now I always close the %> and open a <%= which is tedious. -- Posted via http://www.ruby-forum.com/.
2011 Feb 17
1
Function scope issues
Dear R-users, I have some questions about the scope of functions, which I would like to illustrate with the following example: ### First example require(Hmisc) combine.levels <- function(x,y) browser() whatever <- function(x,y) combine.levels(x,y) x <- 1:5 names(x) <- LETTERS[x] y <- 6: 10 names(y) <- LETTERS[y-2] combine(x,y) # no debugging break whatever(x,y) # debugging break The Hmisc package contains the two original functions 'combine' and 'combine.levels': ...
2013 Apr 07
2
[LLVMdev] Integer divide by zero
...ed a trap, I just thought you wanted to avoid undefined behaviour. If you want a trap you are going to have to (IMO) output IR instructions rather than a constant expression. For example you can output the equivalent of if (x == 0) llvm.trap() // or maybe some special trap routine y = whatever/x ... use y ... rather than the constant expression "whatever/x". If the optimizers can prove that x is never zero then this will be sunk back into a constant expression (if "whatever" is a constant expression). Ciao, Duncan. > > Thanks, > Cameron > > P.S....
2014 May 28
1
Style question
Greetings, When using a 'foreign' function (from another package, say function 'whatever' from package 'foo'), you can of course just require the package and then just have whatever(...) in your code. However, I would like to use the foo::whatever(...) form instead, just for documentation purposes (easier to see what function comes from what package). Is there a cos...
2008 Oct 12
1
Routes problem.
Hello, Just a single problem i can''t solve. The scenario... I have a controller called "places" but i don''t want to link the users to /places/whatever, i want something like /no/whatever. How to achieve this? I have in my routes.rb: map.resources :no, :controller => "places", map.connect '':controller/:action/:id'' map.connect '':controller/:action/:id.:format'' My problem is that i don''...
2008 Jun 24
5
centos 5.2 for real this time
I did a yum update last night at about 23h15 EDT (-4). No upgrade. I just did a yum update this morning at about 08h45 (-4). for my system there's about 348 megs of updates. Now all I have to do is figure out how to remove OO.o 2.0.whatever which is being upgraded to 2.3.whatever. I'm using 2.4.1 on my 4.6 boxes (have always been using the latest OO.o on them since installation a couple of years ago.) Any ideas on how to completely remove the OO.o references for Yum, after having tried to do rpm -Uvh *.rpm, after trying again...
2008 Jan 23
0
strange issues with pam_winbind and sudo
...I log out and log back in, I can do sudo commands. Also, of note, if I run anything that calls getpwent() , sudo once again works. I came up with this test program: #include <sys/types.h> #include <pwd.h> #include <stdio.h> int main(int argc, char** argv) { struct passwd * whatevs = getpwent(); if (whatevs) { printf("%s:%s:%d:%d:%s:%s:%s\n", whatevs->pw_name, whatevs->pw_passwd, whatevs->pw_uid, whatevs->pw_gid, whatevs->pw_gecos, whatevs->pw_dir, whatevs->pw_shell); } else { printf("crap!!!! null\n"); } return...
2012 Jan 10
3
I am looking to try to mixing sounrce and content in a file instance
Let''s start with this: class whatever ( $myType=''other'' ) { file { "some-config-file": ... content => $myType ? { ''this'' => template("whatever/this.erb"), ''that'' => template("whatever/that.erb"),...
2008 Nov 17
2
assign("FALSE", TRUE)
....g. doing sample(1:7,replace=FALSE) gives a random permutation of 1:7 as expected and desired. I.e. the local object named ``FALSE'' is not used. Still, this seems counterintuitive and a bit confusing. Is it the intended state of affairs? I would have thought that FALSE <- <whatever> and assign("FALSE",<whatever>) would be completely equivalent. This is clearly not a very important issue, but it might bear some thinking about. cheers, Rolf Turner ###################################################################### Attention:\ This e-mail mes...
2009 Apr 24
2
Generalized 2D list/array/whatever?
I'm trying to figure out how I can get a generalized 2D list/array/matrix/whatever working. Seems I can't figure out how to make the variables the right type. I always seem to get some sort of error... out of bounds, wrong type, wrong dim, etc. Very confused... :) x[["some label", "some other index"]] <- 3 x[["some other label", "som...
1999 Mar 10
2
.Alias and memory
...I defined the functions tfclass <- class "tfclass<-" <- function(x, value){ class(x) <- value ; x } and also the function classed <- function(x, cls) {class(x) <- cls; x} This last allows me to end a function definition with ... classed(somecalc, "whatever") } rather than ... obj <- somecalc class(obj) <- "whatever" obj } Unfortunately, these seem to increase my memory usage in R substantially. Using tfclass <- .Alias(class) "tfclass<-" <- .Alias(get("class<-")) helps a bit. I...
2010 Apr 03
2
Specifying a decimal field precision/scale with scaffold requires 2 steps?
Hi, It appears to me that the command: ruby script/generate scaffold whatever money_field:decimal(10,2) will not generate a valid migration. Therefore it appears to me only two ways to achieve the desired result is: 1.1 Omit the the precision/scale on the scaffold command 1.2 Edit the migration file by following the "do |t| ... end" with the command: change...
2006 Jul 22
4
Accessing the controller name in your views?
I need to know what controller and action the user is currently in to do various things in my layouts/application.rhtml file. Isn''t there is a better way than: <% if params[:controller] == "whatever" && params[:action] == "whatever" %>some html<% end %> I know in the controllers you can just use controller_name, but that is not provided in the views. Thanks for your help. Thank You, Ben Johnson E: bjohnson@contuitive.com -------------- next part ---...
2012 Feb 15
1
mount.cifs gives error 13 after changing servers -- hidden cache??
A sysadmin moved a share from one Windows server to another. I am now getting error 13 when trying to mount the share from the new server. The following worked before the server was replaced: mount.cifs //ipaddress1/share1$ /mnt/share1 -o credientials/home/whatever/.smbcredentials,rw mount.cifs //ipaddress2/share2$ /mnt/share2 -o credientials/home/whatever/.smbcredentials,ro Change: server ipaddress2 was replaced with server ipaddress3 and share2$ was created on that server. mount.cifs //ipaddress1/share1$ /mnt/share1 -o credientials/home/whatever/.smbcre...
2005 Feb 17
3
A vector or array of data frames
Hi A simple question again, but I can't find it by google-ing R-help. Quite simply, I want to read in the contents of a number of files, using read.table, and assign the results to elements of a vector/array/list/whatever. I want it so that, if my vector/array/whatever is "pos", that pos[1] will give me the first data frame, pos[2] will give me the second etc... Kind of basic stuff I know... Sorry.. Mick