similar to: Risk Assessment Application

Displaying 20 results from an estimated 2000 matches similar to: "Risk Assessment Application"

2006 Apr 24
2
Checkboxes - Saving a Checked record to another table
I am displaying a bunch of records from a table called "assets". Next to each record i have a checkbox. When this box is checked i want to be able to save the id of the record into another table called "flagged_assets". All I need is the ID, nothing else. Im struggling with the logic to save to another table. I know how to do it if the asset_id is already in the
2011 Jun 04
0
Rails 3.1 : Complex database query with Arel 2
Hi, I''ve search for documentations on queries with Arel 2 but there is pretty nothing and all I''ve found is for Arel 1 so I''ve run into NoMethodError: undefined method `[]'' for #<Arel::SelectManager:0x00000003f1b820> errors with join syntax. My query is barely simple but involve nesting queries. I have 4 tables. Assets, Deposits, Orders and OrderLines
2007 Aug 30
3
has/belongs to many sql error
I have a model Asset which has_and_belongs_to_many :tags. Tag has only one field, name. There is a table assets_tags which only has an asset_id and a tag_id. I can add a tag to one asset. If I try to add the same tag to another asset though (asset.tags << tag) I get this error: Mysql::Error: #23000Duplicate entry ''4'' for key 1: INSERT INTO assets_tags (`tag_id`, `id`,
2009 Mar 25
0
Optimise this association?
hey all In my schema, Lesson is many to many with Asset (through join table ''elements''), which are also many to many with Resource (through join table ''items''). This is all done with totally standard "has_many :through" - Lesson has_many :elements, :dependent => :destroy, :order => :position has_many :assets, :through => :elements,
2007 Jun 26
4
Can I stub a method on a belongs_to association:
describe Asset, " when destroyed" do fixtures :assets, :videos, :sites, :publish_settings before(:each) do @asset = assets(:test_asset) @mock_hook = mock("hook") @asset.video.stub!(:hook).and_return @mock_hook # error occurs here end it "should call the delete hook" do @mock_hook.should_receive(:update).with("test_video",
2007 Nov 08
0
Dynamic relation with eager loading
A model has 2 columns in its table asset_type_id asset_id the asset_type_id links directly to the table asset_types via a belongs_to asset_types contains a single column ''name'' method_missing in the model says when you call a method matching /^asset.*/ call the corresponding method substituting ''asset'' for the contents of asset_type.name (ie. the name in
2011 Apr 06
0
[R-package] PredictABEL 1.1: Assessment of risk prediction models in R
An embedded and charset-unspecified text was scrubbed... Name: not available URL: <https://stat.ethz.ch/pipermail/r-help/attachments/20110406/0e5c56a5/attachment.pl> -------------- next part -------------- _______________________________________________ R-packages mailing list R-packages at r-project.org https://stat.ethz.ch/mailman/listinfo/r-packages
2011 Apr 06
0
[R-package] PredictABEL 1.1: Assessment of risk prediction models in R
An embedded and charset-unspecified text was scrubbed... Name: not available URL: <https://stat.ethz.ch/pipermail/r-help/attachments/20110406/0e5c56a5/attachment.pl> -------------- next part -------------- _______________________________________________ R-packages mailing list R-packages at r-project.org https://stat.ethz.ch/mailman/listinfo/r-packages
2008 Jun 11
1
Resourse route in namespace with prefix error
Ok so I have this route map.namespace :trades do |trades| trades.resources :buys, :path_prefix => ''/trades/:contract_id'' end I want the contract_id variable to filter a list of buys then I try to open this route http://localhost:3000/trades/1/buys I get a strange error: ActionController::RoutingError in Trades/buys#index Showing trades/buys/index.html.erb where line
2005 Dec 20
0
validates_uniqueness_of on has_and_belongs_to_many
I am trying to create a model that allows only unique assets to be added to a category. However, they could be added again to a different category. Finally, an asset can be shared across many categories. So my question is how do you check the uniqueness across a join table? This does not compile.... has_and_belongs_to_many :categories, :foreign_key => ''asset_id''
2008 Aug 01
2
image_path without timestamp
Every time I use an asset tag helper, there is a parameter appended to the end of my file name. e.g. <input src="/images/search.gif?1213816620" type="image" /> From what I am reading, this appears to be a timestamp for caching purposes. It works in most cases, but I want to use image_path to embed a flash file. .swf file in public/images/flash e.g.
2007 Aug 22
0
Optimal Asset Allocation with a specific level of Target Risk
Dear All, I would like to know if it is possible to obtain the optimal asset allocation with the fPortfolio library (or others), but setting at the beginning a desired level of Target Risk. For example I can obtain the optimal asset allocation with fPortfolio library or portfolio.optim() function (in tseries library) setting a desired Target Return, but I dont't know any library or
2007 Sep 06
4
HABTM association with own class?
If I have a class, Asset, which has and belongs to many associated Asset objects, how do I do this? has_and_belongs_to_many :associated_assets, :class => "Asset", :foreign_key => ?????, :association_foreign_key => ????? Right now, my table has a :first_asset_id and a :second_asset_id, but I don''t see how the objects themselves are supposed to distinguish one from the
2013 Feb 24
1
Use of the newdata parameter in the predict.coxph function
Hello, I've executed the following predict.coxph function to enable prediction for new variable values (error is included). *predict(cox_out,newdata=data.frame(Meter3.Value=100.001, Meter4.Value=200.001,Meter5.Value=300.001,Meter10.Value= 400.001,type="expected")) Error in model.frame.default(data = data.frame(Meter3.Value = 100.001, : variable lengths differ (found for
2008 Mar 13
3
Refreshing a page gives a "stack level too deep" error.
I''m converting our app into restful rails. A couple of my classes (Resource and Asset) have a has_many relationship with each other - here''s the routes: map.resources :assets, :has_many=>[:resources] map.resources :resources, :has_many=>[:assets] I''m getting something weird in my view pages. When i go to /resources/4/assets it works. I go to the page
2019 May 10
0
8000 security risk?
Hi Patricia, On 5/10/19 2:48 PM, Patricia Moynihan wrote: > Yes I meant HTTPS over HTTP, which yes, I’m differentiating by those > port numbers. Thanks for clarifying! We have been streaming HTTP for a > long time, but I am at a university and there is a lot of emphasis on > security. I was never really sure what the certificate did for us in > this case…but was attempting to
2014 Oct 09
2
Conduct on the CentOS List
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 The recent anti-social content on the list including threats and support of harassment needs to stop immediately. The CentOS Board will work with the list admins to enforce moderation and if needed removal and bans from the list should people continue this behaviour. This is a large, diverse, and respected community and none of us should need to
2019 May 10
0
8000 security risk?
Hi, On 5/10/19 3:11 AM, Patricia Moynihan wrote: > Are there any serious security risks for leaving port 8000 open to > public use on icecast? I had wanted to limit to 8443 but it seems some > radio devices cannot support this protocol. The port number doesn't matter. I guess in your case you mean HTTP vs HTTPS. The proper and terse answer is: It doesn't matter if you use
2015 Jul 29
0
Fedora change that will probably affect RHEL
On Jul 29, 2015, at 3:16 PM, Chris Murphy <lists at colorremedies.com> wrote: > > On Wed, Jul 29, 2015 at 2:15 PM, Warren Young <wyml at etr-usa.com> wrote: >> Just because one particular method of prophylaxis fails to protect against all threats doesn?t mean we should stop using it, or increase its strength. > > Actually it does.There is no more obvious head
2008 Sep 29
0
Script for dose proportionality assessment using power model and confidence interval criteria
Dear R-Helpers Has anyone written a script for the dose proportionality assessement using the power model and the confidence interval criteria as described in - Gough at al. Assessment of dose proportionality: report from the statisticians in the pharmaceutical industry in Drug Information Journal,1995, 29:1039-1048 and/or - Smith et al. Confidence interval criteria for assessment of dose