similar to: finding duplicates in an array

Displaying 20 results from an estimated 9000 matches similar to: "finding duplicates in an array"

2006 Jun 20
5
ActionMailer to send to multiple people
I''ve been working with ActionMailer for a few days and finally have a pretty good grasp of it. In the book I''m reading, it shows how to send to multiple users or an array of users. Is there a setting or some configuration I can do to send the email to each person separately, or would I just need to loop through each user and send one email at a time? What is the best way to
2006 Jun 02
2
What''s the model pattern for just storing an array of ints?
Maybe this question is obvious, but I''m missing the answer. I want one of the fields in my model to be an array of int. These are not indexes into another model. I''m cool with creating another database table if I have to, but then do I need to do a join to access the data? Or does Ruby have some cool trick where I can translate my array of ints into a String, store it in
2006 Jun 07
7
file_column image versions
does anyone know much about resizing different versions of images with file_column? i tried it and everything works fine, but my question is can you do more than just make sizes with a version of image? i''m working on a photo album and i would like to resize the image to a medium size, but create a thumbnail as well and crop anything left to make the thumbnail a perfect square. --
2006 Aug 04
3
forms and relationships
i''m still pretty new to rails, and while i''ve been able to hack my way into having it do what i want so far, i''m not happy with the way my code looks. on top of that, i''m sure that what i''m doing prlly isn''t the most efficient either. one of my biggest problems is probably to do with using relationships and forms together. i''ve
2006 Jul 05
5
ok, lightTPD is installed... how do i use it.
i used the hivelogic article to install ruby on rails to my mac: http://hivelogic.com/articles/2005/12/01/ruby_rails_lighttpd_mysql_tiger everything works great using the script/server command, but isn''t that still using WEBrick? how do i server my apps with lightTPD? i tried following the instructions given here: http://duncandavidson.com/essay/2005/12/railsonlighty but have had no
2006 Apr 28
5
please explain web services
could someone explain some of the uses for a web service. i''m reading about how to make them, but i''m still not quite sure what they''re good for. i have multiple rails apps that i would like to pass user information back and forth to. i''m not sure if something like this could help me or not. thanks -- Posted via http://www.ruby-forum.com/.
2006 Jul 15
4
learning from typo.
i have a copy of the typo source on my desktop that i am going through just to get a better understanding of the rails framework and ruby itself. i''m fairly new to everything so it has proved to be very helpful and very inspiring. i''m stuck on a part though. i was trying to figure out how everything on the sidebar works. i found the components folder and started looking
2006 Jul 16
9
acl_system help is needed
i found Ezra''s acl_system plugin yesterday and i am trying to figure it out. based on the simple instructions on the site, it does exactly what i need but i''m getting some errors when i try to use it: NoMethodError in UsersController#index You have a nil object when you didn''t expect it! The error occured while evaluating nil.roles i am pretty new to rails and
2006 Jun 06
3
help with date formats
i have a datetime field in my database that i need broken up. i want to display the date and the time in separate places. i tried looking through the api, but couldn''t find what i was looking for. if someone could please point me in the right direction to format dates, that would be great. thanks -- Posted via http://www.ruby-forum.com/.
2007 Apr 18
2
Checking validity of NHS numbers
Hello I need to check that the NHS numbers in my database are valid. I''m storing them as ten-digit strings: the first nine are the identifier and the tenth is a check digit. There are four steps to calculating the check digit (from http://www.connectingforhealth.nhs.uk/systemsandservices/nsts/docs/tech_nn_check_digit.pdf): 1. multiply each of the first nine digits by a weighting factor
2006 Mar 29
4
trouble adding to database (stringify_keys)
I''m brand new to rails and am trying to build a simple ajax email collection form. It''s just a coming soon sort of thing where the user can enter his email address in the field, hit submit, and the ajax form dumps the email into the database and says "success" unless the email is blank or not unique in which case it says "failure." The trouble is, no
2006 Mar 27
3
any luck installing RoR with apache / cpanel setup?
i just went through installing RoR on a cpanel setup and everything seems to work except for deployment. i go through the entire process of setting up a new rails app on a cpanel account and i get: Not Found The requested URL /testapp/index.html was not found on this server. Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
2006 May 04
5
web service authentication
after almost a week of trial and error, i''ve finally got a hold of creating a web service in rails. after all this time though, i''m still not quite sure if i can make it work the way i want it to. i was basically trying to create a login portal so that the users at our company can have one place to login for all of our internal applications. well, right now - i can have each
2006 Apr 26
5
one authentication for multiple rails apps
i am in the process of taking all of our php applications for the company i work for and rewriting them in ruby on rails. just to help with username and password management, i had a program where we could create a user and then assign what other programs they had access to, so that they would only have to log in at one place and have access to all of the software. i''m not sure of
2006 Feb 20
1
Improved diagnostics patch
Hi, all -- Here's a small patch that gives better diagnostics on the daemon side if it fails to start up due to inability to create or bind the socket. Presently, it gives a log entry indicating that no sockets could be bound, but crucially does *not* have the system error message (i.e. errno) from the failed call, making it difficult or impossible to determine the problem. I do have a
2006 Aug 07
2
converting pdf to images
i am working on a catalog for our customers to order printing. i have worked a little bit with imagemagick and pdf_writer. currently i am uploading a pdf and an image for the preview of the file. i''m just wondering if there is a way to convert a page of the pdf to a jpeg so that i only have to upload once. -- Posted via http://www.ruby-forum.com/.
2006 Jun 19
1
pdf simpletable help needed
i am trying to generate a pdf of all of the users in an application that i have built. i am still pretty new to ruby and rails so i don''t know the best way to go about it. here is my controller code: require ''pdf/writer'' require ''pdf/simpletable'' class ReportsController < ApplicationController def test _pdf = PDF::Writer.new table =
2006 May 30
3
plz help ~> new to file_column
i am trying to figure out how file column works so i can play with it a little bit on my site. i have installed it as a plugin to my rails application, copied the snippets on both model and view but when i try to run the page, i get an error saying "undefined method `file_column_field''" did i do something wrong or is something not installed? -- Posted via
2006 Apr 12
1
how to use toggle_effects
i''m playing with the toggle_slide effect right now which is great. the problem i''m having now though is figuring out what state the div starts in. i want it to be hidden and slide in first, but it always starts out visible and slides out first. -- Posted via http://www.ruby-forum.com/.
2006 Mar 21
1
RoR on Jaguar anyone?
I installed RoR on my Mac with Tiger10.4. Everything seems to work fine. I installed it on my other mac using 10.3 and at first it worked fine, but when I started using apps with a database, sometimes the server crashes on certain pages. I''ve been trying to locate the source of the problem, but the crashes seem pretty random. I''m wondering if this has anything to do with the