Displaying 20 results from an estimated 400 matches similar to: "Next Record"
2011 Nov 20
2
Adding two or more columns of a data frame for each row when NAs are present.
I am fairly new to R and would like help with the problem below. I am
trying to sum and count several rows in the data frame yy below. All works
well as in example 1. When I try to add the columns, with an NA in Q21, I
get as NA as mySum. I would like NA to be treated as O, or igored.
I wrote a function to try to count an NA element as 0, Example 3 function.
It works with a few warnings,
2006 Apr 03
7
global variable - @@var
I tried to keep track of the number of access to a specific controller.
I declared ''@@mycount = 0'' in the controller class. The methods in the
controller will increment the @@mycount (@@mycount = @@mycount + 1) and
print the value to the html page and show in the browser. The value is
always 1, no matter how many times I access the controller and its
action(s). Is this
2008 Sep 08
2
Pie chart and labels
With a pie chart
pie(c(11, 15, 16, 29, 31))
how can I generate labels for the chart, such as
orange: 11
green: 15
blue: 16
red: 29
purple: 31
rather than the default labels that are drawn automatically
1
2
3
4
5
--
Mark Polishook, D.M.A.
Technology Coordinator
Morehead Hall, Rm 132
Center for Academic Advising and Adult Learning
Montclair State University
Montclair, NJ 07043
(973)-655-7114
2008 Mar 07
3
newbie question dovecot and ldap
Hello,
Please let me know how I can troubleshoot this - driving me crazy!
I have the following dovecot-ldap.conf file:
hosts = ldap.ucmerced.edu
dn=cn=natsciadmin,ou=Special Users,dc=ucmerced,dc=edu
dnpass=********
ldap_version = 3
base = ou=People,dc=ucmerced,dc=edu
deref = never
scope = subtree
user_attrs = uid
user_filter = (&(ou=Natural
2008 Mar 08
2
dovecot and ldap config - getting no password in reply
I almost go this liked but then I get the following:
Mar 7 18:09:43 malaga dovecot: auth(default):
ldap(jnorris,76.20.83.98): pass search:
base=ou=People,dc=ucmerced,dc=edu scope=subtree filter=(&(uid=jnorris))
fields=uid,userPassword
Mar 7 18:09:43 malaga dovecot: auth(default):
ldap(jnorris,76.20.83.98): result: uid(user)=jnorris
Mar 7 18:09:43 malaga dovecot: auth(default):
2008 Mar 12
1
interesting note - not sure just how to take care of this one
Hello all,
the dovecot -> ldap connection is working correctly but I notice
something in my maillog that is disturbing:
dovecot.conf in the passdb section I have
passdb passwd {
}
then it drops down into the ldap stuff.
The user gets validated via this first and if it fails passes on to the
ldap stuff.
the problem is:
in the file the user's unencrypted password is showing up as
2006 Apr 26
5
remote ruby
I''m building a collection of desktop app''s and want to use ruby, and
Active Record in particular, as an intermediary layer to my
databases. I''m not sure how to connect my development environment,
Runtime Revolution, to Ruby and Active Record.
One option is to just set up a RonR environment and have my app''s
make calls that return regular text results
2002 Jul 02
1
Strange behaviour in plot and points?
Hello R-users
I was puzzled by some strange results of an analysis and I found out what is
for me a strange behaviour (I won't dare to say a bug) in both plot and
points (and I suspect lines and other kind of lower level plots). If you try
the following code:
> data<-data.frame(dummy1=c(1:10),dummy2=c(1:10))
> plot(data$dummy1,data$dummy3)
A plot of the values of dummy1 against
2006 Feb 23
12
RoR site structure on Apache
I try a ''hello world'' demo here,you can see all my codes and structure
http://www.smtservers.com/demo/
I want to access the ruby app like this
http://www.smtservers.com/demo/say/hello
but I get a 404 error.
Please let me know why.
I am not sure the site structure is ok or not.Please give me a help
Thanks
Mark
--
Posted via http://www.ruby-forum.com/.
2006 Jan 29
16
counting rows via associations
Hi:
I have a table called clients and each client has many lists (a
has_many and belongs_to has been created in the class.
What I need to do is get a count of the rows in each list for each
client. I was hoping I could do something like
client.lists.count but it does not seem to work. Any suggestions?
bruce
2006 Feb 10
14
dynarch calendar and calendar helper usage
I am playing around with this and reference this wiki from RonR site...
http://wiki.rubyonrails.org/rails/pages/CalendarHelper
The error I am getting is:
NameError in Placements#list
undefined local variable or method `date_format'' for
#<PlacementsController:0xb78f9ef4>
RAILS_ROOT: script/../config/..
Application Trace | Framework Trace | Full Trace
2006 Jun 19
3
MacOS X - R crashes & import problem (PR#9005)
Full_Name: Oliver Balmer
Version: 2.3.1
OS: Mac OS 10.4.6
Submission from: (NULL) (157.161.74.75)
when working in the editor R crashes regularly. no other program ever crashes.
one quite reliable way to crash it is by marking some code and then pressing the
"find" command. I have had this problem with other R versions before. I have the
feeling the editor is the problem. Another
2006 Jan 06
8
How do I write a generator?
I''d like to take some advice and write a generator to change the
scaffold.css. How do I do that? I looked on the wiki and googled it
but have not found anything yet.
Any help would be much appreciated.
bruce
2007 Apr 10
1
AWD page 624-626 Understanding how Apache, Mongrel and Rais work together?
I''m trying to understand the ''Big Picture'' of how Ruby on Rails
applications are deployed and operate in distributed environment (one
deployment server, many remote servers).
I follow AWD by Dave Thomas'' explanation from pages 624-626. From
reading these pages I have these questions;
1. How does the RonR instance on the ''remote'' server gain
2006 Jan 01
11
Can rails make use of accesskeys?
I added :accesskey=>"D" to the html options hash of my link_to tag
but nothing happened.
Should I keep trying or is this not an option yet?
bruce
2005 Dec 31
6
I don''t even know how to ask the question (4 lines of code)
I create a hash using this line of code @x = Account.find(:all)
I then want to go through each element in turn and add a key value
pair to the end of it. I thought this would work, but it does not.
@x.each do |a|
a.merge({"balance"=>50}
I used merge because I thought ''a'' would be a hash (how do you find
out the type of an object?)
I then guess it was
2006 Jan 05
7
repost - Can one edit the file that generates the scaffolding.css?
I am reposting this because not only am I VERY interested in the
answer but because I think it would also be useful to many, many people.
We kind of have a house-style here, so it would be nice if the
generated scaffold.css would accommodate that. My questions are?
Is it possible?
Is it safe?
How?
bruce
2006 Jan 03
3
What am I doing wrong!!!
Hi:
@x = Invoice.find(:first)
if @x
do one thing
else
do another
end
This ought to work but does not. I think that @x is nil but if I
test for existance or @x != nil or @x.attribute != nil - my code does
not respond correctly. What is the value of @x if there are no
records yet in the invoices table?
Thanks in advance.
bruce
2006 Jan 22
3
dumping out mysql data only (no structure)
Is it possible? It is mentioned in AWDWR but I cannot find that
option in the MySQL documentation. I can dump the whole db or just
the structure, but I''d like to be able to dump just the contents.
bruce
2021 Jan 25
3
RHEL changes
> Am 25.01.2021 um 17:04 schrieb Johnny Hughes <johnny at centos.org>:
>
> On 1/22/21 5:12 AM, Ljubomir Ljubojevic wrote:
>> On 1/22/21 9:29 AM, Marc Balmer via CentOS wrote:
>>>> Hence it is as good as dead in my mind when looking into the future, I
>>>> am looking for future distro of choice.
>>>
>>> A little mentioned choice would