similar to: using match-type function to return correctly ordered data from a dataframe

Displaying 20 results from an estimated 500 matches similar to: "using match-type function to return correctly ordered data from a dataframe"

2006 Jun 16
3
Does HABTM support non "id" FKs?
Quick question. Say I have a geographical database with counties and zip codes where counties have and belong to many zip codes. zip_codes (id, zip_code) counties (id, name) When I create the association table, the Rails way says to do the following: counties_zip_codes (county_id, zip_code_id). However, given that zip_codes.zip_code is itself a candidate key, I would much prefer to do the
2005 Jun 10
6
us zipcode data map
i've search the email archives, searched the documention of various map packages and done an R-site search, but have been unable to find direct resources for creating maps of the US that are colored or annotated or ... by zipcode data. For example, create a map of the US and color each zipcode region by its population using two vectors z,p containing the zipcode and population,
2006 Jul 18
1
Need Help Updating Records
This is a stupid question I know, but it is driving me crazy - I am missing something simple and basic here. I am trying to update missing zip codes on a data table. I am doing something incorrectly as the data in the Source table is not being updated, only the value in the array is changed. How do I get this to update the actual DB record instead? def add_missing_zips #find all records in
2006 Feb 03
4
Zipcode Search
Is there any package that I could use for zipcode search. I want to display schools that near a particular zipcode. I have no idea how to do this. It will be great if anyone can point me where I could find info -- Rgds, --Siva Jagadeesan http://www.varcasa.com/ Education Through Collabration -------------- next part -------------- An HTML attachment was scrubbed... URL:
2011 Jun 14
1
Invalid Regular Expression
I'm working with some data, and am trying to generate it in the following format. state city zipcode I like pizza 0 0 0 I live in Denver 0 1 0 All the fun stuff is in Alaska 1 0 0 he lives in 66062
2009 Jul 31
2
Undefined method updated? for <model object>
Hi, I have two model say- ZipCode < ActiveRecord::Base belongs_to :state_provinces end StateProvince < ActiveRecord::Base has_many :zip_codes end if I do @zip_code.update_atribute(:city, "My City") its giving Undefined method updated? for StateProvince if I remove belongs_to specifier in ZipCode class then it work fine. Any alternate solution?? Thanks -- Regards, Himanshu
2006 Apr 22
2
Form.serialize problem
I''m sure I''m missing something dumb but I cannot get Form.serialize to work. I have an alert in the function as a debug to show me what''s supposed to be the serialized line of values but it always shows nothing. Can somebody show me what I''m doing wrong? Thanks in advance. function submitprofile() { var url = "/profile/submitprofile.html?";
2007 Nov 07
1
is xapian the right solution for me
hey together, i am evaluating a couple full text solutions and just found my way to xapian. i need to build a search for community users. currently i got about 500.000 users and the search just stresses my normal RDBMS too much. i just read the docu but it couldnot answer all of my questions. it would be nice if someone could just tell me if xapian covers everything i need. needs: ->
2006 Mar 26
2
Shared Columns in an STI
I have a an STI table which acts_as_tree, that has a large number of classes/types. My common fields are: id parent_id name description with 4 more text fields, I could cover most of my classes if I could redefine the name of the field like this. text1 AS address1 text2 AS address2 text3 AS zipcode For one class and text 1 AS model_number text2 AS vendor Is there a construct that will allow
2012 Oct 15
1
calculate out of different lists in R
hey There I've been trying to match 2 lists in R I have an excel sheet containing all the 51states of amerika devided by zipcode. the columns are : zip,city, state, latitude,longitude,count so now I want R to make a new table that I could use to draw a map. The table should consist the name of the state plus the count. Like I said I have all the zipcodes and the count for the zipcodes, so now
2008 Apr 30
4
Beginner mysql problem
I am new to rails and have come across a problem with a sample application I was working on. When trying to use rake migrate I got the error listed below. my db file contains the following class ContactDb < ActiveRecord::Migration def self.up create_table "people" do |t| t.column "id", :integer t.column "name",
2012 Jan 06
2
Zipcode validation
Hi All, How to validate Zip/Postal code enterd is valid based on country selected? Is there any plugin for checking zipcode format for different countries.. Thanks -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to
2006 Jul 19
5
Model Validation - with a twist
I''m stuck in a catch-22 type problem. I have an insert form for a table that uses the validation in the model. i.e. When you click submit on the form and haven''t filled in the required fields then you get the nice rails error messages saying "field can not be blank". This works fine until I introduce some more logic. What I''m trying to do is to validate
2005 May 17
3
validates_associated / error_messages_for
When a validates_asssociated fails... I get something like Address is invalid is there a way, preferably on a per-association basis to have the error messaage include the actual error like Zipcode is too long (max is 10 characters) _______________________________________________ Rails mailing list Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org
2005 Dec 14
3
Geocode for Ruby
Hey, Does anybody know of a good Geocode library for Ruby, similar to Perl''s Geocode::Postal, that i could use in my rail app? I need to do some "within 5 miles" calculations of zipcodes and i dont have a nice ruby (or gem) utility to do it. any help would be appreciated. thanks adam _______________________________________________ Rails mailing list
2011 Jun 11
1
Having a problem adding a foreign key
I keep getting this exception "SQLite3::SQLException: no such column: books.user_id: SELECT "books".* FROM "books" WHERE ("books".user_id = 4)" ,which sounds like there is no user_id in books table.So i just installed foreigner plugin and added " t.integer :user_id, :null => false" and "add_foreign_key(:books, :users)" in book
2006 Apr 19
9
geolocation db?
I''m currently planning a social app in Rails that relies on being able to see how far you are from everyone else. It''s my intention to store rough geo-coordinates as part of the sign up process. My intention is to capture their zipcode or postal code, and then be able to query a webservice once for that data. It''s also possible that there might be a database or even
2007 Nov 01
5
monster method (too hard for my skill level)
I need to write a method for calculating the fee for medical procedures with respect to area. I have all the tables and data but its hard to give that here. Can someone take a look at this ''stub'' method and help me out? def calculate_fee # strip out the first 3 numbers of the user entered zip code # use those 3 numbers to identify row in [zipcodes table] (between upper and
2010 Jun 08
1
Issues with Vestec ASR
I'm having a lot of problem with it recognizing "oh" for zero. I've tried both "o" and "oh". In one case, I just tried: $digit = o { out = "0"; } | fundamental {out = "2"; }; So I gave it a choice that was VERY far away from what I said. But when I said "o o o o o", more than 75% of the time, it had a bunch of
2006 Jan 19
1
Model Validation & Floating Attributes
Hello all ! I have a model being validated that spits it''s error messages on the resulting page using: error_messages_for(:mymodel) .... Basic stuff. It''s working perfectly. Now, I have something else I want to check on the same page (that isn''t an attribute to the Model)... and am trying to add it using: @mymodel.errors.add_to_base("another error here")