similar to: finding unique values in a column

Displaying 20 results from an estimated 10000 matches similar to: "finding unique values in a column"

2004 Dec 23
2
subsetting a data.frame to the 'unique' of a column
Hi, I often run into this problem: I have a data.frame with one column containing entries that are not unique. What I then want is a subset of the data.frame in which the entries in that column have become the 'unique' of the original column. Normally I program around it by taking the unique of the column and making a new data.frame with it and filling the rest of the data. (By the way,
2006 May 18
4
Can I send rendered .html to somewhere besides the web server?
Is there any way to tell Rails to send the .html file it renders somewhere other than the web server? I need to save a page to the server''s file system instead of sending it to the user''s browser. Thanks! Bill -------------- next part -------------- An HTML attachment was scrubbed... URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060518/facce47e/attachment.html
2006 Jul 20
5
Need HELP changing link_to_remote to a button
I would really appreciate some help with changing a link_to_remote call to a button of some sort. Here''s a little background. On the page there are two <div>s. One is a form that lets the visitor enter items. The second <div> is where the entered items get displayed, each in it''s own item <div>. Each item <div> has two <span>s. The first one
2006 Jul 05
4
degrading gracefully - how to tell if JS is enabled?
Is there a RoR best practice wrt determing in a visitor''s browser has JS disabled? Is there even a way to find out? I''ve got a couple of pages in my app that are not going to degrade gracefully at all. I really need to point a visitor who has JS disabled down a seperate path. Any ideas? Thanks, Bill -------------- next part -------------- An HTML attachment was scrubbed...
2006 Jan 02
19
AR: How to store and restore in YML.
Hello- I have a database with entries that are segmented by customers. I would like to be able to store / delete / restore a particular customer''s information. I will need to rebuild the rows on restore and also rebuild the associations for the different tables. For example, customer { id name } companies { id customer_id (belongs_to) name } contacts { id
2006 Mar 31
6
string interpolation - #{} vs. single vs. double quotes
Could someone point me to documentation that provides a succinct and accurate description of the difference between interpolation using #{}, single quotes, and double quotes ? I imagine there''s a set of precedence rules that govern behavior if/when they''re mixed. I''d like to get clear on this. Thanks, Bill -------------- next part -------------- An HTML attachment was
2006 Apr 03
3
AJAX Insertion.Before
Can anyone point me to an example of how to use the Insertion.Before technique? I''ve just begun trying to use AJAX and worked through Curt''s "Ajax on Rails". The description in AWD of what this does is just what I need, there''s no example of how to use it, and I''m getting no joy using Google. Any help is tremendously appreciated. -------------- next
2006 Oct 23
8
can a worker commit suicide?
Can a worker kill themselves when they''re ''done''? Or do I have to do that either from the controller or the worker manager? Thanks, Bill -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/backgroundrb-devel/attachments/20061023/11dd429c/attachment.html
2006 Apr 03
11
View source after AJAX update?
Does anyone know how to view the new source in IE after an AJAX update? When I "view -> source" I get the original page source, not the page source as updated. Thanks in advance, Bill -------------- next part -------------- An HTML attachment was scrubbed... URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060403/e8d96b2e/attachment.html
2007 Oct 24
4
Need advice - which version to use?
Greetings! I could use some advice on which version of BackgrounDrb to use in my current situation. I''ve implemented the initial, single-process multi-threaded version in a previous site, but have no experience with the new version. Current situation is as follows. The application involves personal health information and so has very stringent session management requirements. My
2006 Oct 24
5
deployment issues?
Thanks to many of you, I''ve got my session management working with BackGrounDRb. Very cool. So now I need to deploy it. I''m on a shared hosting plan (at a2hosting in case that matters). Are there any issues I should expect to have to deal with in getting them to deploy the plugin? Anything special I need to do? I''m wondering in particular about the ''start
2006 Jun 26
3
syntax for observe_field( :with =>
Greetings! What is up with the syntax of this thing? I mean, if the only thing I can send back using :with is the field being observed, then why in the world is the syntax so convoluted? For example, what I''ve been able to get working is: <%= text_field_tag(''date'', illness_date, :size => 30) %></p> <%= observe_field(''date'', :url
2006 Jul 04
7
inverse of eval() ?
I''m trying to figure out how to turn a string into an object. Can anyone point me? Here''s some background. Here''s the part of what I''m trying to do that works. ------------------------------------- @ford = [''mustang'', ''pinto''] make = ''@ford'' puts eval(make) --> produces mustang pinto
2006 Jun 09
8
[how can i delete a file system..please help]
Hi, I''m trying to delete a file system (<xml_26548975.xml>) File.delete("xml_26548975.xml") But I get this error: "Permission denied - ./script/../config/../uploads/xml_26548975.xml". Why? -- Cheers, ioana k&a http://boulangerie.wordpress.com/ -------------- next part -------------- An HTML attachment was scrubbed... URL:
2006 Mar 26
9
validate_uniqueness_of {combination of fields} ???
I''ve looked at the validates documentation and it appears that validates_uniqueness_of works on only one field at a time. So I can, for example, validate that "sam" is unique to the record set, and that "smith" is unique to the record set. My problem is that each record includes two fields, the _combination_ of which must be unique to the record set, but each of
2006 Oct 16
6
accessing session data in worker
Is there something special I need to do to access session data in a worker? I''m using an AR session store. I''ve been working with Ezra''s tutorial, modifying it a little here and there to figure it out. So I changed the progress bar to a simple count-down in the worker which sends back the count to display in the view. No big deal. But if I try to access session
2006 Feb 17
21
''Best'' IDE for testing and debugging
I''m trying to decide which IDE to go with for RoR development. I put a high premium on integrated test automated tools and debugging capabilities. I''d appreciate any sharing of experience. I''m currently running Instant Rails on a Windows 2000 box (using IR due to problems I encountered trying to get all the components set up individually). Also, I''m using
2006 Jun 12
14
Scope of a global
If I set a global can it be access from all instances of Rails (on the same application server)? By instances of Rails I mean for each user who use the application? Many thanks, K. -- Posted via http://www.ruby-forum.com/.
2006 Mar 09
3
removing something from the session
Hi, Kind of a dumb question but when there is something in the session how do you remove it? @session.delete(:params) doesn''t work unfortunately. -- Frank Kim http://betweengo.com/ -------------- next part -------------- An HTML attachment was scrubbed... URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060309/de00e277/attachment.html
2006 Jul 14
39
Time to split the list?
I hope no one gets offended by my asking, but I wonder what others think about the possibility of splitting the list into two or three focal areas. Personally, I think I''d like to see three seperate lists: 1) newbie development (e.g., help working through tutorials, etc.) 2) more advanced development topics, 3) environment setup / admin.. What do you think? Best regards, Bill