similar to: models @ data extraction

Displaying 20 results from an estimated 9000 matches similar to: "models @ data extraction"

2006 Jul 04
8
writing to many_to_many table
I have three tables. users, posts, users_posts. This last one is to mark a post as read. How do I write to the users_post table? Here''s what I have: In model ''User_Post'' belongs_to :post belongs_to :user In post/view/show: <%= link_to "Mark As Read", :controller => ''post'', :action => ''post_read'', :user =>
2005 Sep 13
13
Authentication against AD?
I am having a hard time getting Samba to authentication correctly against a Windows Active Directory setup. Here is a snap of the smb.conf [global] passdb backend = ldapsam security = domain password server = server1.com server2.com prefered master = No local master = no hide unreadable = yes wins support = no winbind use default
2012 Aug 29
1
Help on not matching object lengths
Dear All   I have the following code set up: Code #1 a <-matrix(seq(0,8, by = sign(8-0)*0.25)) b <-matrix(seq(8,16, by = sign(16-8)*0.25)) c <-runif(1000,50,60) d <-exp(-c*a)+exp(-c*b)   This will give me the obvious error message of lengths not matching. What I am trying to do here is to have 33 rows x 1000 columns d values calculated in total. As an eaxmple for visual, this is what
2012 Feb 26
2
question about user written function (newb question)
Quick newb question about R relating to the line of code below: rawCool = read.zoo("cooling.txt", FUN = as.chron, format = "%m/%d/%Y %H:%M", sep = "\t", aggregate = function(x) tail(x, 1)) I'm wondering what the specifics are for the argument where it has "aggregate = function(x) tail(x, 1)". I understand that it removes the last row of
2005 Dec 27
6
Best Environment for development
This is a newb question, and probably one that is a matter of taste more than objective merit. I''m working on a home server, running Linux [FC 4], hosting a website [look for generocities.com shortly]. I have a delightful new Windows XP Pro Dell Inspiron 9300 laptop. What would the community recommend for the environment in which I develop? I don''t mean technologies like RoR
2006 Apr 07
2
KDE vs Gnome
I think im using Gnome but im not sure. As for using logout command it didn't work that's why I got puzzled and had to ask online since I couldn't find the GUI one which was there but apparently im too blind to see. Speaking of GUI side of things that's why I made the comment about no search features in CentOS. None of my menus offer a search feature in the GUI so I would have to
2005 Mar 03
4
[OT] - Why should I answer a Newbie question, therethick!
If you really want to do this the asterisk list is based off of mailman. You can learn all about mailman here: http://list.org/ But really, what are the odds that newbs will know to go there first? Are you going to moderate it? Someone has to actually answer the questions you know, if a newb only list is going to exist. Look, don't answer lame questions if you don't want to. Flaming a
2007 Apr 08
1
acts_as_attachment save file in folder named after models parent id
This is probably pretty easy, but I''m still a newb as far as ruby and rails goes. I am using the acts_as_attachment and would like to know how I go about setting the path that the file is saved to so that it is saved in a folder named after the models parent model id Thanks in advance Tony --~--~---------~--~----~------------~-------~--~----~ You received this message because you are
2006 Apr 06
5
Using helper method of another model
I have a template that belongs to a certain model (model A). I need to call a helper method of a different model (model B). Then I need the helper method of B to call a helper method of model C. I tried using "include" and "require" and using namespaces, but I got "undefined method". What is the way to do it? -- Posted via http://www.ruby-forum.com/.
2012 Jul 23
5
large dataset - confused
I'm trying to load a dataset into R, but I'm completely lost. This is probably due mostly to the fact that I'm a complete R newb, but it's got me stuck in a research project. I've tried just opening the text file in WordPad and copying the data directly into R, but it's too big and causes the program to crash. Any suggestions or assistance? I'm kinda desperate and
2006 May 01
4
When to make a new controller
Hey all, Ok this is probably a newb question, but I haven''t been programming with MVC for very long, and I''ve been wondering what the general opinion is, or best practices, for making a new controller. Like what cases would you need a new controller for and what cases can you just put everything into one controller? Thanks in advance, Randal -- Posted via
2008 Jul 14
1
will_paginate paginates all instead of subclass
I''m still a newb but having fun - Any help on this problem will be much appreciated. I have mymodel Call.rb class Call < ActiveRecord::Base belongs_to :user has_many:visits, :dependent => :destroy has_many:visits do def latest find :all, :order => ''id DESC'', :limit => 3 end def all_latest find
2006 Apr 11
7
WOW
I couldn't help but take notice at some of the responses that were coming in from when I was posting questions due to my ignorance of Linux. Some people were quick to help, some advanced users I am sure ignored me because im not worth their time, and then some other users tried to help but was unable to dumb their speech down to newb levels. However I am thankful that there is people here to
2009 Jul 13
6
first app on Dreamhost with Passenger : "rails needs to know your username and password" ?
I am trying to deploy my first rails app with Dreamhost. I ftp''d over my existing app, turned on Passenger and pointed it to my /public directory. When I go to ''www.mydomain.com'' I get the ''Ruby on Rails: Welcome aboard'' default page, including the following: Getting started Here’s how to get rolling: 1. Create your databases and edit
2005 May 24
4
Rings - How to set number
Maybe this marks me as a real newb but where do I set the number of rings that a phone has before it sends it to voicemail? Also for some odd reason when I ring an extension attached to my sipura 2100 ATA it takes it about 12 seconds to start ringing after I dial it (sits there with dead air on the calling phone). Any idea on these, am I missing some simple configuration switch for either?
2006 Apr 01
3
newbie kernel question
Im sorry if this is a newb question, but how do you recompile the kernel in CentOS 4.3? I need to add reiserfs support (even though the setup detected it) the kernel it gave me didnt have support for reiserfs, and my entire fileserver is all reiserfs. I tried the gentoo way, which im use to and it bombed. What do i need to do? does it install kernel source by default? I couldnt find any good
2015 Nov 05
3
Problem with DNS configuration and "host" command . . .
I'm following the instructions here -- https://wiki.samba.org/index.php/Setup_a_Samba_Active_Directory_Domain_Controller I've successfully "tested" my domain controller -- adam at eagle:~$ smbclient -L localhost -U% Domain=[SMBDOMAIN] OS=[Unix] Server=[Samba 4.1.18-Debian] Sharename Type Comment --------- ---- ------- netlogon
2007 May 25
1
RCov?
Sorry to be a newb about this, but I''m trying to integrate rcov into my tests. I tried to follow the example located here: http://rspec.rubyforge.org/tools/rcov.html But to my dismay, I just don''t understand what to do. I tried to run that task in the rspec plugins directory, but it threw an error about pre_commit. Regardless though, I want to be able to rcov all of
2006 Jul 14
2
help with session
Hello, Im a newb. Im trying to authenticate a user then print out the username. What am I doing wrong? Thanks jason unless session[:user] @user = Auth.find(:first , :conditions => ["username=? AND password=?", params[:username] , params[:password]]) session[:user] = @user if @user render(:inline=> "#{ session[:user].username } " ) &&
2004 Sep 08
1
Failed to expand group constant
Hi I am getting this message when trying to install programs. So far with the game Sacred (stops installing altogether) and MS Project. Is there something simple I'm missing. Yes I am a total newb please be gentle. I have been Googling and searching everywhere for this info. Using Wine Suse 9.1 RPM 13082004 Should I use an earlier RPM? oh and btw shouldn't there be menu entries for