Guruza search results for associations http://guruza.com/searches/show/203 Questions recently submitted to Guruza that match the query: associations Thu, 20 Nov 2008 15:53:18 -0800 $5.00 - My friend has been suffering from chronic osteomyelitis. Because we are from ... http://guruza.com/question/561/reward-5.00 My friend has been suffering from chronic osteomyelitis. Because we are from a developing country, the treatment wasn't effective; he has had dozen of operations. But now I'm in Europe and I have the power to help my friend. So, my question is, is there a way to completely heal chronic osteomyelitis? I don't want to lose my friend's hope... Sat, 02 Feb 2008 23:05:41 -0800 $10.00 - I have a large batch of TCP/IP devices that I want to configure all identical... http://guruza.com/question/560/reward-10.00 I have a large batch of TCP/IP devices that I want to configure all identically. They all have identical IP address by default. I connect a device directly to a PC, upload a configuration file to the device through it's built-in web interface, and disconnect the device. My problem is that when I connect another device to the PC, I can't ping it or access it through a web browser. I need to change its IP address using a utility that allows me to do this. Then I can access it with a web browser and upload the config file. What I have found is that if I use a rotating range of IP address, say .121 through .128, I can go back and re-use the same addresses. I just can't use the same address too soon or it won't work. Emptying the cache doesn't solve this. In fact, If I use the same address with a second device, I can't connect with another browser. In fact, I can't even ping it. Just waiting for some unknown amount of time fixes the issue, but then I have to wait again if I connect another device. My question is, how can I get this to work so I can simply connect a device, upload the config file, disconnect the device, and connect the next device, without having to change its IP address? Thu, 31 Jan 2008 13:48:25 -0800 $5.00 - what are phobias? http://guruza.com/question/501/reward-5.00 what are phobias? Fri, 16 Mar 2007 22:17:05 -0700 $5.00 - Hello guys i m trying to setup SPF in my domain so I can send emails to hotma... http://guruza.com/question/488/reward-5.00 Hello guys i m trying to setup SPF in my domain so I can send emails to hotmail and yahoo Please help me out The openspf wizard said that I have to set this in dns of my domain. v=spf1 a mx ~all this is all they say i shud put However, it is possible if you use a dynamic DNS provider to associate your instance's IP address with your own domain name. Depending on the dyndns provider they may allow you to configure SPF records for your domain. Sat, 03 Feb 2007 22:19:24 -0800 $5.00 - I'm a newbie to RoR's and I'm having fun with it. My question has to do with ... http://guruza.com/question/437/reward-5.00 I'm a newbie to RoR's and I'm having fun with it. My question has to do with how to configure a RoR CMS that allows users to publish pages from the CMS to their hosted domain. I want users to be able to login to the CMS to enter their site content. When they create/update information for their site, their domain should be updated as well. NOTE: All users will share the same db tables for storing their information. Originally, I wanted to create static pages in the users domain directory because their pages wouldn't change that often. The static pages would be cached and changed when updated. Now I'm wondering if I should allow users sites to be dynamically generated. I'm not sure which approach would be better or easier to implement. I need to know how to setup or configure my CMS that allows a user to publish to their domain if I decide to publish flat pages to their domain. If I take the dynamic approach, I need to understand how to configure a users domain so that it logs into the database for th user and use their date and the templates that have selected for their web site. Although I'm new to RoR, I'm not new to programming and understand a little bit about servers. It's okay if you get technical. Tue, 31 Oct 2006 20:07:07 -0800 $10.00 - Is there any way I can use find_by_sql AND eager load associations? I have t... http://guruza.com/question/393/reward-10.00 Is there any way I can use find_by_sql AND eager load associations? I have to return everything in 1 sql statement, but I would still like to access associations normally when outputting in my rhtml file. Mon, 11 Sep 2006 16:58:34 -0700 $0.00 - 2002 Nissan Sentra with front disc brakes and rear drum brakes. If I brake f... http://guruza.com/question/329/reward-0.00 2002 Nissan Sentra with front disc brakes and rear drum brakes. If I brake firmly or if I'm carrying a lot of weight in the back seat or trunk, I hear a clunking coming from the rear passenger wheel. It sounds somewhat like warped rotors, but the back wheels are drum brakes. The "clunk, clunk, clunk" is associated directly with the braking because as I slow down the clunking slows down and when the car stops so does the clunking. Any suggestions as to what it might be? Mon, 21 Aug 2006 12:26:11 -0700 $0.00 - Hey Rich, What happened to your previous question...it *seems* like it got... http://guruza.com/question/240/reward-0.00 Hey Rich, What happened to your previous question...it *seems* like it got answered by besquared, but the answer does not show up at all. It looks like maybe only the tail end of the chat log was saved. At any rate (even though you may not need the answer any more), here's how I would have done it: First, in the find function, you use userid, but there is no userid field in user. Thus, the two places where you have userid should be prefixed with posts., as in posts.userid If that doesn't work, I'd go straight to SQL using the find_by_sql function: Users.find_by_sql "SELECT u.*, count(p.userid) postcount FROM users u, posts p WHERE p.userid = u.id GROUP BY p.userid ORDER BY postcount" Fri, 14 Jul 2006 01:54:28 -0700 $25.00 - What is the most important thing that we can do to improve Guruza? I will ... http://guruza.com/question/233/reward-25.00 What is the most important thing that we can do to improve Guruza? I will select the 5 "best" answers and then pick one at random for the reward! rich-collins-computer:~ rcollins$ irb irb(main):001:0> require 'rubygems' => true irb(main):002:0> require 'facet/array/at_rand' => true irb(main):003:0> "Dave | nerkles | AgeKay | Jake McArthur | funnyguilly | larry | jer | bryce".split(' | ').at_rand => "Dave" irb(main):004:0> Congrats Dave and thanks for all of the suggestions from everyone! Tue, 11 Jul 2006 16:32:22 -0700 $10.00 - Fix my laptop wireless! Offering 10$ to whomever helps me fix it. I may rais... http://guruza.com/question/231/reward-10.00 Fix my laptop wireless! Offering 10$ to whomever helps me fix it. I may raise it if it proves difficult :) Description: System: Thinkpad T41, intel ipw2100, Ubuntu Dapper (6.06). Everything was fine a few months ago in Hoary and in Breezy. I'm not 100% sure the problems started happening with Dapper, but the timeline fits. The issue is that the wireless network normally works fine for a while (anywhere from 2 minutes to a couple hours), then, out of the blue, I suddenly can't establish any connection to any other hosts, or ping them. Right after the failure, 'iwconfig eth1' reports that I'm associated to my AP (linksys wrt54gc, the essid is 'daigle' and there's no encryption, not that that makes any difference in the occurence of this problem), with a connection quality of around 85%, standard for my apartment. 'ifconfig eth1' reports that I still have my DHCP-assigned IP, in the 192.168.1. subnet. At this point I can't establish any TCP connections, nor can I ping anything on my LAN. It gets interesting though: I can kill any running dhclient processes and restart one (or do an ifdown / ifup, which does a release followed by a renew), and I apparently get a DHCPOffer. I get my IP back, meaning somehow broadcast packets are going through, but I still can't connect to anything. Mon, 10 Jul 2006 08:09:03 -0700 $3.00 - I'm creating a very simple Rails app that will become my online phone book. ... http://guruza.com/question/230/reward-3.00 I'm creating a very simple Rails app that will become my online phone book. I just want to scaffold the whole thing as much as possible since I don't need anything fancy. I have a People table, and a Phone_Numbers table in my db. Phone_Numbers has a person_id field. Here's my Person class: class Person < ActiveRecord::Base has_many :phone_numbers end and my PhoneNumber class: class PhoneNumber < ActiveRecord::Base belongs_to :person end However, when I run the scaffolding, I cannot add/edit phone numbers when I edit a Person. Is this normal? I thought scaffolding would do this automatically, but maybe I was expecting too much from this. Thanks! Sat, 08 Jul 2006 17:21:10 -0700 $5.00 - When a user is browsing through a listing of a model, I'd like him to be able... http://guruza.com/question/229/reward-5.00 When a user is browsing through a listing of a model, I'd like him to be able to, say, click on a button/link that will open a form that will allow the user to add a comment on the current record. I have already installed the acts_as_commentable plugin, done the migration of the Comments table, added the acts_as_commentable directive to the class (say, the class name is Task). I have read the tutorial/instruction in the TechKnow Zenze web site, but it doesn't have enough details for me. I've got plenty of questions to ask to finish my project (I am a researcher and a newbie Ruby and RoR programmer). Sat, 08 Jul 2006 12:23:28 -0700 $15.00 - In J2ME development, what is the purpose of the jad file? How is it used in c... http://guruza.com/question/190/reward-15.00 In J2ME development, what is the purpose of the jad file? How is it used in conjunction with the application's jar file to install on a cell phone/other limited device? Sun, 02 Jul 2006 08:20:42 -0700 $0.00 - When was the first time then question mark (?) was used? Which civilization w... http://guruza.com/question/170/reward-0.00 When was the first time then question mark (?) was used? Which civilization was first to use it? Fri, 30 Jun 2006 11:01:12 -0700 $5.00 - I have a new Web 2.0 site that I've just built and I want to promote it. What... http://guruza.com/question/150/reward-5.00 I have a new Web 2.0 site that I've just built and I want to promote it. What are 10 places you'd promote it to get the most traffic? Thu, 29 Jun 2006 20:13:19 -0700 $0.00 - webapp dev with rails http://guruza.com/question/117/reward-0.00 webapp dev with rails Mon, 26 Jun 2006 09:10:12 -0700 $15.00 - Is there a way to implement has_one, belongs_to relationships in scaffold? http://guruza.com/question/107/reward-15.00 Is there a way to implement has_one, belongs_to relationships in scaffold? Thu, 15 Jun 2006 07:26:38 -0700 $10.00 - Can I use Ajax to request a controller/script multiple times and simulate mul... http://guruza.com/question/93/reward-10.00 Can I use Ajax to request a controller/script multiple times and simulate multiple threads? Fri, 09 Jun 2006 13:42:18 -0700