similar to: getting the local IP

Displaying 20 results from an estimated 100000 matches similar to: "getting the local IP"

2006 Apr 30
4
Server IP
Can a ruby on rails app obtain the ip of the server it is running on? I''d like the application to be able to determine x set of data is for y data, for example: These domains all point to the same ip... mydomain-1.com mydomain-2.com mydomain-3.org I can obtain the domain name from the request by using: @request.domain I''d like the application to grab the corresponding ip for
2006 May 10
4
Single Table Inheritance problem
I have two tables I am using single table inheritance with: Page and Item. "Page" has many "Items"; "Item" belongs to "Page". Item Model: class Item < ActiveRecord::Base end class Article < Item belongs_to :page end Page Model: class Page < ActiveRecord::Base end class Issue < Page has_many :articles end In my controller, when I
2006 Apr 11
15
Migrating rails 1.0 app to 1.1 - Noob question
Hi all, I''ve upgraded my system to Rails 1.1.1 successfully. After much looking I haven''t found out how to migrate an existing application to a new rails version though. What is the procedure, if any, for upgrading the application I''ve developed in 1.0? Is there a script I need to run? -- Posted via http://www.ruby-forum.com/.
2006 Jul 12
5
railsapp/db/migrate Newbie question
I made a mistake when making my first app. I did not use the: ruby script/generate model <modelname> method for creating my models. I more or less hand crafted each og them. Is there a way to go back so I get my db migration scripts to populate? -- Posted via http://www.ruby-forum.com/.
2006 Apr 15
6
Good image API for RoR?
Hi, I need a relatively simple image api for the app I''m writing. I need to copy photos, rename them, and re-size them to put them in a standard format. I tried using RMagick/Imagemagick, but the photos would be corrupted on re-size, so I''m looking for some suggestions. -- Posted via http://www.ruby-forum.com/.
2006 Apr 14
3
Many to Many
Hi, I have three tables, a domain of Sites, a domain of Users, and a junction of Sites_Users with the tables named as such. My RoR application has a model and controller both User and Site. I tried to add a controller and model named Site_User but I can''t reference any functions in the controller, I get an Uninitialized Constant error. I''m very new to RoR, but not to
2006 Jul 12
10
Recurring mySQL Error
I am getting the following error when running my app on the server: mysql::Error: Lost connection to MySQL server during query: <some SQL here> The SQL is usually a SHOW FIELDS statement, but after scouring the log files I see that it occassionally happens with other queries as well. I did a little research, and one topic I found suggested that I edit the /etc/mysql/my.cnf and increase
2006 Jun 22
2
RoR Event Calendar
Does anyone know of a good open source event calendar done in RoR? -- Posted via http://www.ruby-forum.com/.
2006 May 08
2
Noob Question - Variable Scope
I feel awful asking such a basic question, but here it goes.... I have a controller, "NewsController". The user enters and the "list" action is called and I populate an instance variable "@news" which contains all the elements I''d like to display using a form. The user then changes something and the "update" action is called. Is
2006 Apr 19
4
Weird Problem - probably a noob mistake
I was up late last night trying to find the cause of this, but I''m stumped. I have this relatively simple controller to load up a bio. It''s basicly id, name, desc, type (I use STI). class BioController < ApplicationController layout ''layouts/singlepanel'' def index @bio = Bio.find(:all, :conditions => [''site_id = ?'',
2006 May 11
18
Object constructors - Noob Question
Hi: Sorry if this is a painfully stupid question... I have some data I need through the life of someone''s session. In the application controller, I grab the data and store it like so: session[:foo] = @foo Now, whenever I need to access data about foo I don''t need to cause any DB io, I can just grab foo from the session (it''s very small fyi). Here''s what I
2006 Apr 27
2
Noob Design Question
I have chunk of data that I need for the life of the session. I am going to use it for selects through out my app. Is the best place to keep this data in the session? Is the session easily spoofed or cracked? While viewing the data is not critical in itself, spoofing it could cause me massive headaches. -- Posted via http://www.ruby-forum.com/.
2006 Feb 27
3
Newbie Question
Hi! I just ran the first few Rails tutorials and I''m really impressed at how quickly I was able to get something up and running. I''m slowly emerging from the stone ages, and leaving my powerbuilder behind ? yes, I know, keep the snickering to a minimum please! I started into J2EE/STRUTS, but was quickly frustrated by how long it would take to code anything but relatively
2007 Feb 06
3
Polymorphic either or but not both
I am trying to create a generic person model. Then subclass it as either a professor or an author. The only problem is that since some professors are authors, I don''t want duplicate entries. Any ideas on how to handle this? --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk"
2004 Jul 09
1
passing remote ip to pam
to improve forensic log info i want to set the PAM_RHOST value to the remote ip (which pam logs as rhost=foo in failure messages). i didn't look to see if anything has been done in this way on CVS because i'm still on 0.99.10.6. below is a bit of a hack. in some sense the remote_ip might make more sense in the AUTH_LOGIN_REQUEST_NEW packet rather than the continue packet... but that
2011 Apr 27
3
[LLVMdev] confused about float literals
On Wed, Apr 27, 2011 at 12:51 AM, John McCall <rjmccall at apple.com> wrote: > On Apr 26, 2011, at 2:07 AM, Joe Armstrong wrote: >> Compiles (via clang) to: >> >>  ; ModuleID = 'test101.c' >>  target datalayout = >>
2006 Jun 23
13
Best OS Choice for Rails server?
I am going for a dedicated hosted server for a rails app I am working on, and have a choice from several different operating systems. I excluded windows 2003 from the list because it has been giving RMagick fits for me. The app is Ruby 1.8.4, Rails 1.1.2, mySQL 5.0 The contestants are: Red Hat Enterprise 3.0 Red Hat Enterprise 4.0 Debian CentOS FreeBSD I''m leaning towards Debian,
2006 Apr 11
2
''rake rails:update'' Error - can''t upgrade to 1.1.1
''rake rails:update'' is causing the below error for me when trying to upgrade my application. I''ve scowered Google and didn''t find much, has anyone else had this problem and solved it? C:\@cs\phase2>rake rails:update --trace (in C:/@cs/phase2) rake aborted! Don''t know how to build task ''rails:update''
2012 Jan 02
0
[LLVMdev] DW_AT_location not getting generated for local variables
I found the problem. The llvm.dbg.declare call must have a !dbg tag, otherwise the location info is not generated. Changing the invocation in my original example to "call void @llvm.dbg.declare(metadata !{i32* %"bar:Int32"}, metadata !13), !dbg !16" causes MC to generate the local location as expected. -Joe On Thu, Dec 29, 2011 at 12:41 PM, Joe Groff <arcata at
2005 Jan 19
1
HELP - winbind/PAM issues
I have a laptop with fedora core 3 installed. I have an NT domain that I would like to use for all authentication (Linux and Windows). As a test I decided to focus on ssh authentication. I have completed the following: Created the smb.conf: [global] workgroup = DOMAIN_NAME server string = Linux Workstation log file = /var/log/samba/%m.log max log size = 50 security = domain