Displaying 20 results from an estimated 2000 matches similar to: "Ranking within a classification variable."
2006 Jun 27
2
Preloading results in Ajax App
Hello Rails lovers!
I have a few general discussions that I have yet to find terribly
active. Perhaps all of the people busy on this front are...uh...busy on
this front.
So!
Ajax-only apps.
No degration.
Yes! Forget about degradation for a moment. Not willing to? Ok,
well...this question is for those who are willing...
Imagine developing an app that is one page - all actions render partials
2008 Jun 03
3
Fixtures Error With Rails 2.1 (and 2.0.2)
I have begun to use the reference function feature of sexy migrations,
and I have noticed that the fixtures are actually not playing nice
with this new feature.
If I create a model, whose table has this line:
t.reference :user
the fixure will look like
one:
user:
when it should be user_id, now, it may be possible (I don''t know, to
define an object in the fixtures now, but when I run
2006 Nov 19
2
underscores, sugar, and more and more bugs
I sent this earlier under with the subject "artificial sugar causes
cancer" and I think some spam filters ate it. Here it is again:
======================================
All,
If you look at http://rubyforge.org/tracker/index.php?func=detail&aid=6760&group_id=797&atid=3149
you''ll see that Chad (the submitter) found the source of the bug.
Unfortunately, the source
2005 Jun 07
7
apple to Intel
I am wondering what the list's opinion is on the Apple to Intel
switch. This is going to put a slick desktop that runs on top of
BSD directly into the mainstream. What does this hold for Linux
in general, Linux on the desktop..and microsoft.
--
Computer House Calls, Networks, Security, Web Design:
http://www.emmanuelcomputerconsulting.com
What businesses are in Brunswick, Maryland?
2009 Jun 24
4
More awk help
Hey guys,
Looking through my book and the web and I am not having any success
returning data from a search.
I need to have awk search for a string and print the first field which
is no problem but now its returning two options as the input data has
changed. The change is reliable, I only want the first field if it ends
in a regex that I have, and I only want what that regex matches to be
printed.
2006 Mar 17
2
choppy recorded sounds in asterisk
I have installed asterisk on numerous servers. Every install was done on
Fedora and (White box Linux). I now have zap channels in one of the
boxes (T-1). No matter what type of channel I call on (sip or zap) I get
some really strange artifacts in the sound, almost like a skip in the
playback. It seems to always be in about the same place in the
recording. Usually in the beginning of playback. For
2006 Nov 19
6
artificial sugar causes cancer
All,
If you look at http://rubyforge.org/tracker/index.php?func=detail&aid=6760&group_id=797&atid=3149
you''ll see that Chad (the submitter) found the source of the bug.
Unfortunately, the source of *this* bug is the *solution* to a
*previous bug* in which Rails was replacing RSpec''s method missing
with its own.
When we settled on underscores, my one reservation was
2005 Feb 01
8
Outlook Integration
I have been looking around for Outlook Integration for Asterisk. Saw
the Asterisk TAPI wiki page and also ran across this:
http://www.fonality.com/pop.cgi?page=pop_pbxtray.tt (PBXtray)
It looks like Fonality has managed to make an app that does screen
pops and allows click to dial. Has anyone else been able to get this
all to work successfully? Looks pretty slick.
2009 Apr 11
2
Mock Questions
Just started using mock to rebuild some srpms. I have two I want to
rebuild, problem is the first creates a dep that is required by the second.
Is there an automated way to populate an additional repo/cache that mock
would look at when building the second so I could queue both?
Although I haven't tried, I presume I could drop the output from the first
build into a dir, createrepo it and add
2010 May 31
5
ActiveRecord model relationship with YAML file
Hi,
I have an ActiveRecord model Group and a YAML table stored in
config/users.yaml just like:
- {login: titi, password: 123456, group_id: 2}
- {login: toto, password: 987654, group_id: 7}
And I would like to link them by a sexy way. Can you help me?
I would be happy if I can do this (as example): User.first.group.id # =>
2
Many thanks for any help!
--
Posted via
2005 Jan 08
6
NNTP versus web forums
I see that a number of questions are being answered on the new web
forum that is now part of the centos site. And the mailing lists So
now there are two places to search, both the forum and the mailing list
archives.
This is just doubles the work required to follow along or find a
solution.
I know NNTP isn't sexy, it doesn't allow graphics in posts, it doesn't
have person
2013 Feb 05
4
Per user special-use folder names
Hi all,
let me ask a question, please. Is it possible in dovecot to set up per
user special-use folder names?
Imagine situation with two users where first prefere another language
that second.
mailbox Sent {
special_use = \Sent
}
for english speaking users and
mailbox "Odeslan? po?ta" {
special_use = \Sent
}
for czech speaking users.
Thanks for your answers. Radek
2012 Aug 18
5
Quiz: How to get a "named column" from a data frame
Today, I was looking for an elegant (and efficient) way
to get a named (atomic) vector by selecting one column of a data frame.
Of course, the vector names must be the rownames of the data frame.
Ok, here is the quiz, I know one quite "cute"/"slick" answer, but was
wondering if there are obvious better ones, and
also if this should not become more idiomatic (hence
2005 May 31
2
Rails Web Services
This deals with the Rails book, but ActionWebService in general.
I''m having trouble getting the Rails book''s example in the Web Service
chapter working. Everything else works (all the ''depot'' site features up
to that point have been built and work). I don''t think it''s an issue
with the book code being wrong, because the ActionWebService API
2006 Jan 17
5
Hash.new{|h,k| h[k] = ""} ... but for views?
I sometimes buy myself a default value for a hash using something like
this: h = Hash.new{|h,k| h[k] = ""}. I can now pass ''h'' any key and if a
value has not yet been associated with that key I receive an empty
string.
I would love to do something similar in my partials so that I wouldn''t
have to worry about passing in every variable that is referenced.
2009 Dec 10
2
Assigning variables into an environment.
I am working with a somewhat complicated structure in which
I need to deal with a function that takes ``basic'' arguments
and also depends on a number of parameters which change depending
on circumstances.
I thought that a sexy way of dealing with this would be to assign
the parameters as objects in the environment of the function in
question.
The following toy example gives a bit of the
2006 Feb 15
36
Rubuntu Live CD for Rails
Friends-
I am almost finished with a custom live cd called Rubuntu ;-) This
is an ubuntu live cd variant that comes preloaded with ruby and rails
developers in mind. I already have it working with all the basics but
I was wondering what extras people would like to see on this distro.
What editors with what configurations?
What other tools do people really like for rails development on a
2008 Oct 22
3
retrieving matrix elements by giving pairs of row AND column numbers?
Hi,
this is probably a very trivial question but I can't figure out the right terms to find the solution in the list archive.
I have a matrix or a data.frame or the like:
> m <- matrix(ncol=3,seq(1,9))
> m
[,1] [,2] [,3]
[1,] 1 4 7
[2,] 2 5 8
[3,] 3 6 9
and now I wonder if one can provide somehow two vectors, one containing row numbers, the other
2006 Mar 05
2
Article: Creating a Live Datagrid
I just finished posting an article on creating a lightweight but very
functional web grid that does a slick job of live updating whatever content
you put in. Much like Rails itself, I pulled the code from an active project
effort, in the hopes that others would find it useful.
http://unspace.ca/discover/datagrid
Or, for the impatient, give the demo a shot:
http://unspace.ca/datagrid
Feedback
2006 Sep 21
2
Exponentiate a matrix
Suppose I have a square matrix P
P <- matrix(c(.3,.7, .7, .3), ncol=2)
I know that
> P * P
Returns the element by element product, whereas
> P%*%P
Returns the matrix product.
Now, P^2 also returns the element by element product. But, is there a
slick way to write
P %*% P %*% P
Obviously, P^3 does not return the result I expect.
Thanks,
Harold
[[alternative HTML version