similar to: I can''t figure out how to solve this one

Displaying 20 results from an estimated 9000 matches similar to: "I can''t figure out how to solve this one"

2006 Jan 19
2
NOOB: Using locals to pass data to a SQL query
I want to show a users entries based on there login id. I have tried this: View: <div id="myfish"> <%= render :partial => ''myfish'', :locals => {:user => session [:user].id } %> </div> Partial: <% for entry in @entries %> <table border ="0" CELLSPACING="0"> <tr class="<%= alternate
2007 Nov 16
4
Newb - variable returns # sign?
Hi Gurus- I want to return the variety from the species table based on the active record link to inventory table class Species < ActiveRecord::Base has_many :inventories end class Inventory < ActiveRecord::Base belongs_to :species (this is the singular and the plural, so that''s OK) end My inventory_controller looks like: def show @inventory =
2012 Jul 28
1
Mixed-model with paired design & covariates
Dear all, I make habitat suitability models for animal species. The purpose of my research is to investigate the accuracy of different models. I clearly have a nested design: - accuracy_measure -> response variable - 2 model types (model_type) -> fixed effect - 230 species (species) -> random effect - 10 replicates/species (replicate) -> random effect - 10 subreplicate/replicate
2006 Jan 10
0
find_by_sql + partials question
Ok now that I have find_by_sql love working for my "Top 10 List" I want to make them a bit more DRY. Tis is what I have so far: Model: def self.topfish find_by_sql["select species.name, length,species.multiplier*length as score,caught_on from entries join species on species_id = species.id where species_id = ? order by score DESC LIMIT 10", species]
2006 Jul 09
8
find_all order question
How does one properly get find_all to grab the data from the DB table ordered by a specific column? For example: @anglers = Angler.find_all This code gets all the angler records and they are sorted in order of the id field which is of course set as a primary key in the DB (mysql). I''d really like to pull the data from the DB sorted in the order of another field, for example
2006 Jan 12
0
[file_column] Problem displaying images after upload
This is the last major hurdle in my little app and I can''t seem to figure it out. I am using file_column to upload images. The upload (and rmajick goodness) works just fine, but when I try to display the resulting image I get this error: undefined method `image_relative_path'' for #<Array:0x252b694> In script/console I can do this however:
2009 Jan 10
1
Hmisc-xtable label
Dear all: Does anybody know about label conflicts between xtable and Hmisc? I found a couple of e-mails similar to this problem but is not clear to me how to get around the label problem. The first table(longtable below) is generated with the latex function from Hmisc but for some reason when I try to hyperlink to it,it takes me to the top of the document. The second table created with the xtable
2006 Jan 10
7
Application Design Question
I am designing an application to run a fishing tournament I am hosting. Each fish entered will be given a point total based on the length of the fish and the species of fish. Each species has a point multiplier. For Example Trout have a multiplier of 10 so a 20 inch Trout would have a score of 200. My conundrum is in where and when do I calculate the points. The options I have come up
2013 May 18
3
bar plot with non-zero starting level
Hi, I want to plot grouped bars to compare 95% confidence interval estimates from two models. Each bar represents a 95% confidence interval estimate of a coefficient from one of the two models. Each group represents confidence interval estimates of the same coefficient from the two models. I think such a bar plot will nicely present whether 95% confidence interval estimates of the same
2011 Jan 24
1
passing multiple arguments in resque scheduler
Hi, I have implemented resque scheduler in my application by looking at example here https://github.com/bvandenbos/resque-scheduler. I have configured resque_schedule.yml file, and in that I can pass arguments to the resque job. My requirement is to pass more than one arguments to the queueing resque job. If we consider the example given, clear_leaderboards_contributors: cron: "30 6 * *
2012 Jul 10
2
RGB components of plot() colours
A quick question: Is there anywhere a listing of the RGB components of the named colours listed by colors()? For example, where would I find the RGB for "orange1" or "salmon"? When I look at an EPS file from R where I have used these colours, it seems that for: "salmon": 0.9804 0.5020 0.4471 rgb "orange1": 1 0.6471 0 rgb However, this is a tedious way
2010 Oct 22
1
trouble with \textless in Hmisc latex() on a drop1 object
Yes, it's homework . . . delete now if desired . . . but I think it is an interesting problem. Running R 2.11.1, LaTeX on WinXP, via Sweave. A drop1() object from a glm() produces, as part of its output, a string that looks like this: <none> The trouble I run into is that running latex() on a drop1() object from glm() produces a string that looks like this in the generated .tex
2003 Dec 17
2
Residential router w/ QoS support?
Did anybody ever come across an affordable, residential cable/dsl router with support for QoS? The ones I've seen so far (Netgear, D-Link and W-Linx) do not seem to support it. I noticed that even email can damage a G.711 stream on an 128kbit uplink, leave alone file-sharing applications. I understand this is strictly related to *, but nevertheless of interest to many of us. Thilo
2005 Jan 15
3
Return of experience : Asterisk more stable with 2.6 or 2.4
Hi, Just a question, For you, what is the more reliable kernel for an asterisk prod server... Thanks
2002 Apr 11
1
rsync : old file dates generating error during nfs rsync session: Value Too large for defined data type
I was troubleshooting a problem we were having with some files not rsyncing properly over an nfs mount (the destination device is a snapserver (NAS) that did not have native ability to receive streaming rsync info, that's why we were doing this rsync over an NFS connection to the snapserver). Anyway, at first I thought this was just one of the quirks of the snapserver (it isn't
2004 Dec 22
1
Link an Asterisk Box with a PBX (E1 connection)
Hi, I have to link an Asterisk Box with a PBX Matra 6501. System look like this : E1------Te110P Asterisk Te110P-----E1----Matra 6501-----Phones | | Ip Phones Incoming call from E1 will enter on asterisk, if incoming number is _800n then go to IP phones. In this case no problem. But if it's an another call i want to return call to my
2003 Jun 27
2
Color names
How does one get a list of all the color names supported by R and the mapping between color names and hex codes? Color names are things like "red", "salmon", etc. I am using Windows 2000 Professional and R 1.7.1.
2004 Apr 29
1
problem with pca
Hello I have some kind of problem with R. I want to do a pca (I work on R and ade4 library) but R doesn't wan to realize my pca because of my data: I have some binary variable (presence/absence of birds, hole, vegetals...) and metric variable (cliff 's size...) and each time I have an error message because of the mix of the 2 type of variable. So, what can I do? Famille SALMON
2020 Aug 10
2
With ARI, is it possible to create (originate) a call and pass both the caller id name and number?
Hi Dan, i would do something like this (it is not a copy of what we are doing but an example of how i would do it) Important here is the "--data" and "-H" Option as well as the "variables" section within the Body. I added the callerid function here as well as it is the sample in the asterisk wiki. curl -v -H "Content-Type: application/json" -u
2006 Jul 07
7
Sequencing control with edit method in CRUD examples
I have been playing with the cookbook type of tutorials building a fish tournament scoring piece and am having a bit of a problem with a DB field called "points" in my "catch" table that is not input by the user but is calulated based on a "size" field that is input by the user. I have the following in my catch_controller.db def new @catch = Catch.new @fish =