similar to: Missing "+@" method

Displaying 20 results from an estimated 20000 matches similar to: "Missing "+@" method"

2009 Jun 12
1
Can't get F77_CALL(dgemm) to work [SEC=UNCLASSIFIED]
Hi I am new to writing C code and am trying to write an R extension in C. I have hit a wall with F77_CALL(dgemm) in that it produces wrong results. The code below is a simplified example that multiplies the matrices Ab and Bm to give Cm. The results below show clearly that Cm is wrong. Am= 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 Bm= 1 1 1 1 1
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",
2011 Oct 25
0
Sprocket Digest + Debug combination broken?
Hi all, we''re just in the process of upgrading to the new asset pipeline, but I''m having an annoying issue with Sprockets. It turns out that I can''t enable both *debug* and *digest* in development mode. When I do, I get a Errno::ENAMETOOLONG because the digest becomes the *entire* *content* of the file instead of a hex. I get this with both sass and javascript.
2011 Mar 08
1
form_tag for search bar with Rails 3.0.5
I have a controller and view that should be providing a search bar that brings up that brings up a selected record on submission. I have tried several variations, including just specifying the assets_path, but usually end up with either an error or a submission to the index action, rather than the show action. Currently, I have the following in my index.html.haml: = form_tag({:controller =>
2012 Jan 29
1
AssetNotPrecompiledError for missing assets - really?
I migrated one of my projects to from Rails 3.0 to 3.2.1 which means I''m using the asset pipeline for the first time. As much as I like the ease of compressing and minifying my assets the more I''m annoyed about its behavior to raise an AssetNotPrecompiledError as soon as, well, there''s an asset that''s not precompiled. Can somebody explain me the reason why this
2011 Mar 09
1
Generating Unique Tokens for Assets within Rails Application
I''ve been developing an application in Rails 3.0.3 using Ruby 1.9.2. It is one of my first applications using Rails 3 and I am quite pleased with the progress thus far. However, I am wanting to add a feature that I have thought through, but I am not sure where to really begin. Essentially, I am building a dumping ground for files, much like Dropbox, however this is mostly for personal
2009 Oct 08
3
foreach loop - rejection method
Hi Everybody, Thanks in advance for your help. This is my first time using the foreach statement and I cant get it to work properly so here is what i have test<-function(){ repeat { cand2[l-1]<-rinvgamma(1,phi,lambda[l-1]) q2<-dinvgamma(cand2[l-1],phi,lambda[l-1]) p2<-cand2[l-1]^-1.5*exp(-y[l]^2/(2*cand2[l-1]))*exp(-((log(cand2[l-1])-mu_t_cand[l-1])^2)/2*sigmasq)
2012 Mar 01
1
help stylesheet_link_tag
I was reading the book "Agile Web Development with Rails 4th Edition". In Chapter 11, Iteration C2: Adding a Page Layout 1 <!DOCTYPE html> - <html> - <head> - <title>Pragprog Books Online Store</title> 5 <%= stylesheet_link_tag "scaffold" %> - <%= stylesheet_link_tag "depot", :media => "all" %> - <%=
2010 Jun 16
2
Parallel computing on Windows (foreach) (Sergey Goriatchev)
foreach (or virtually anything you might use for concurrent programming) only really makes sense if the work the "clients" are doing is substantial enough to overwhelm the communication overhead. And there are many ways to accomplish the same task more or less efficiently (for example, doing blocks of tasks in chunks rather than passing each one as an individual job). But more to the
2013 Jan 23
3
How to construct a valid seed for l'Ecuyer's method with given .Random.seed?
Dear expeRts, I struggle with the following problem using snow clusters for parallel computing: I would like to specify l'Ecuyer's random number generator. Base R creates a .Random.seed of length 7, the first value indicating the kind fo random number generator. I would thus like to use the components 2 to 7 as the seed for l'Ecuyer's random number generator. By doing so, I
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
2017 Nov 13
2
PSA: debuginfo-tests workflow changing slightly
Since this is causing all of our internal CI to back up, could you please revert your two changes, so we can make sure that they were actually responsible, and can work on a fix for this? Let me know how we can help investigate this. -- adrian > On Nov 13, 2017, at 3:25 PM, Adrian Prantl via llvm-dev <llvm-dev at lists.llvm.org> wrote: > > The first build where a test fails with
2017 Nov 14
2
PSA: debuginfo-tests workflow changing slightly
Yes I can reproduce this locally. It looks like we are not passing an -isysroot (pointing to the SDK) to clang but it isn’t clear what lit magic would expand this. -- adrian > On Nov 13, 2017, at 3:30 PM, Zachary Turner <zturner at google.com> wrote: > > Yea I'm preparing a revert right now. Does it happen for you when you run debuginfo-tests locally? > > On Mon, Nov
2011 Feb 18
1
why 'Template missing' error with form_tag?
ROR newbie here... I''m trying to build a form to upload a CSV file, then parse and store the data. I have debugged this code up this point, but now when I browse to my csv file, and click Upload, I get this error: "Missing template uploads/process_file.html.erb in view path..." Here is my view (in /uploads/new.html.erb) <% form_tag ({:action =>
2008 May 01
1
Strategy for importing temporary .csv file?
For some reason, I''ve posted this question to this forum 4 times now and it never appears in the daily consolidated email I get daily? I''ve written a routine allowing the client user to declare where their .csv import file resides and then send it to the server to import the many rows into an existing model table, and then throw it away. I''ve imported many graphic files
2017 Nov 13
3
PSA: debuginfo-tests workflow changing slightly
On the other hand this file hasn't changed recently, but I have no way to test this as it uses the LLDB code path, which only runs on OSX. On Mon, Nov 13, 2017 at 3:19 PM Zachary Turner <zturner at google.com> wrote: > I might be missing something, but this doesn't look like me? > > >
2017 Nov 14
2
PSA: debuginfo-tests workflow changing slightly
Yea I also just found it. Try adding this code in the bottom of debuginfo-tests/lit.cfg.py lit.util.usePlatformSdkOnDarwin(config, lit_config) On Mon, Nov 13, 2017 at 4:38 PM Adrian Prantl <aprantl at apple.com> wrote: > Ha! Found it. *Somebody* is setting an SDKROOT variable in the > environment. Can you find the code that would do this? > > — adrian > > > On Nov
2012 Feb 26
0
Served asset /application.css - 304 Not Modified
Hi I am thinking to hide warning that is ”Served asset /application.css - 304 Not Modified”. How can I fix something if I change the settings? I''ve run that is less than server: rails new myapp cd myapp rake db:migrate rails s client: http://localhost:3000/books warning: Started GET "/assets/books.css?body=1" for 127.0.0.1 at 2012-02-26 14:48:35 +0900 Served asset /books.css
2017 Nov 14
3
PSA: debuginfo-tests workflow changing slightly
Great! It's close to the end of the day, so I'll submit tomorrow to make sure everything has a chance to go fully green again to ensure I get failure emails if it breaks. On Mon, Nov 13, 2017 at 4:43 PM Adrian Prantl <aprantl at apple.com> wrote: > I can confirm that that fixes the issue! > > — adrian > > > On Nov 13, 2017, at 4:38 PM, Zachary Turner <zturner
2017 Nov 22
2
PSA: debuginfo-tests workflow changing slightly
Hi Zackary, Did you see my followup to you cfe-commits rollback: http://lists.llvm.org/pipermail/cfe-commits/Week-of-Mon-20171120/210212.html I think you can just remove the change to cfe/trunk/test/CMakeLists.txt and it should work just fine. hth... don On Tue, Nov 21, 2017 at 12:00 PM Zachary Turner via llvm-dev < llvm-dev at lists.llvm.org> wrote: > Just an update, > > At