Displaying 14 results from an estimated 14 matches for "c42".
Did you mean:
42
2011 Aug 02
1
Rspec teting API.
Hi!
Guys, I wanna test an API built in Rails 3.0.3.
So, my question is... What''s the better way to test my own api?
I guess that a requests specs like these:
describe ''POST /client''
it ''works'' do
assert_difference post ''/clients'', :client => {...}
end
end
can be appropriate...
Someone just tested an API? I mean... simulate
2011 Sep 09
3
Missing Content-Length header breaks ActiveResource 3.1 on create
...ng that is clear is that the API
response doesn''t have a Content-Length header and this causes
AResource to break; the fact that this only happens on the prod server
seems to point at the fault probably lying with Apache.
Has anyone run into a similar issue?
Thanks,
Sidu Ponnappa.
http://c42.in
http://blog.sidu.in
[1] http://is.gd/c5wsjk
--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Core" group.
To post to this group, send email to rubyonrails-core@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-cor...
2013 Mar 07
1
Should ActiveRecord::RecordNotSaved attach the record in question?
I''m doing some work where I want to rescue ActiveRecord::RecordNotSaved
from a save! call nested deep in the code. The thing is there could
theoretically be failures here I want to pass through, and I want to
inspect the record in order to decide.
I figure a custom initializer on the exception class and a couple quick
patches here and there in the code would make it minimally
2024 Oct 11
1
Compressed archives randomly corrupted on a Linux share
...m different clients (Windows 7 and 10 and Debian 9,
> 10 and 12) : SMB2_02, SMB2_10, SMB3_11, NT1
A long time ago, we had a problem with oplocks causing system hangs. It
COULD be related, and I think we ended up downgrading the kernel to 4.9.
https://bugzilla.kernel.org/show_bug.cgi?id=198349#c42
But I've since upgraded to OMV 6+ without any problems.
Debian Stretch (9) has been replaced by Debian Bookworm (12)
> The latest Samba is 4.21.0
> The latest OMV is 7.4.1
> The latest LO is 24.2
>
>
While not ideal, I would recommend sticking with Bookworm's native Samba
4...
2012 Jul 27
3
Rspec: How to mock class method
Hi, I have two model: Message, User
message.rb
```
class Message < ActiveRecord::Base
class << self
def method_a(args)
[1,2]
end
end
end
```
user.rb
```
class User < ActiveRecord::Base
def method_user
if Message.method_a(''anythings'')
#... some code
end
end
end
```
I want to test method_user,but I don''t want to test
2012 Nov 28
1
Help setting optimization problem to include more constraints
...olumn, the number of X's greater than zero should be two or
greater. In this small example, this condition is satisfied, but I would
like to make sure that it is also satisfied in my problem.
# 3. Using lp.transport(), the function to be minimized is linear, i.e., Z
= c11*x11 + c12*x12 + ... + c42*x42 + c43*x43. However, in my case, I am
interested in minimizing the standard deviation of g = c(l1, l2, l3), with
l1 = w1*x11 + w2*x21 + w3*x21 + w4*x41
l2 = w1*x12 + w2*x22 + w3*x32 + w4*x42
l3 = w1*x13 + w2*x23 + w3*x33 + w4*x43
and w as previously described.
I can easily include constraint...
2010 Nov 12
4
Failed to generate additional resources using 'eval_generate': wrong header line format
...insync:
info: Retrieving plugin
err: /File[/var/lib/puppet/lib]: Failed to generate additional
resources using ''eval_generate'': wrong header line format
err: /File[/var/lib/puppet/lib]: Could not evaluate: wrong header line
format Could not retrieve file metadata for puppet://mcp.c42/plugins:
wrong header line format
this seems to be related to bug #4830. there was a ''workaround'' to add
some lib directories to my modules. I did that and it didn''t work.
There was another workaround that involves creating a bogus plugins
mount in fileserver.conf and se...
2013 Jul 17
5
Why last doesn't return an ActiveRecord::Relation
Hello,
Sorry if this has been still answered, I haven''t found nothing on it. I
would love to know why ActiveRecord::Base#last doesn''t return an
ActiveRecord::Relation just like all or where since an
ActiveRecord::Relation can act more or less like an array (as specified here<https://github.com/rails/rails/commit/0a6833b6f701c8c8febadfe2f45e25df29493602>
)?
Thanks, have
2019 May 24
0
FW: Weird Samba/CIFS behavior: client hangs
...o a 4.9 kernel, and haven't seen it
since (but haven't moved to newer kernels, either). I thought it was a
kernel bug for sure, but never tied it directly to samba. This is on
Debian, btw.
Also, from the most recent comment on that bug (
https://bugzilla.kernel.org/show_bug.cgi?id=198349#c42):
Note that if you are mounting with vers=1.0 (SMB1/CIFS) you will need
to either disable oplocks (see above) or use a recently proposed patch
from Ronnie to fix credit handling for SMB1 oplocks. The fix for
SMB1 oplock regression (which can cause hangs) will be in Linux kernel
5.2
Most people...
2018 Jul 24
1
Re: [PATCH] v2v: rhv plugin - fix DC search string
On Tue, Jul 24, 2018 at 7:27 PM Richard W.M. Jones <rjones@redhat.com>
wrote:
> On Tue, Jul 24, 2018 at 07:16:10PM +0300, Daniel Erez wrote:
> > Search for DC by 'storage.name=' to make it explicit.
> > I.e. "storage=" uses regex, so similar names can be
> > found in the search query. For example, searching for
> > a domain named FCSD, will find
2019 May 24
2
FW: Weird Samba/CIFS behavior: client hangs
I think a network trace would tell us for use whether the server is
responding or not.
You can follow the instruction here to make one:
https://wiki.samba.org/index.php/Bug_Reporting#cifs.ko
--
Aurélien Aptel / SUSE Labs Samba Team
GPG: 1839 CB5F 9F5B FB9B AA97 8C99 03C8 A49B 521B D5D3
SUSE Linux GmbH, Maxfeldstraße 5, 90409 Nürnberg, Germany
GF: Felix Imendörffer, Mary Higgins, Sri Rasiah
2011 Sep 07
4
rspec testing inheritance
Hello,
Is there any way to test model inheritance in spec?
something like..
it { ChildModel.should < ParentModel }
thanks.
2009 Feb 06
0
RExcel waiting for OLE action
...interface.GetArray("sd_output$iqr_two",
Range("ASYM_MAX_ANALYSIS!L33:L37"))
Call Rinterface.GetArray("pred_output$quant_one",
Range("ASYM_MAX_ANALYSIS!A42:A46"))
Call Rinterface.GetArray("pred_output$pred",
Range("ASYM_MAX_ANALYSIS!C42:C46"))
Call Rinterface.GetArray("pred_output$up_cb",
Range("ASYM_MAX_ANALYSIS!I42:I46"))
Call Rinterface.GetArray("pred_output$low_cb",
Range("ASYM_MAX_ANALYSIS!K42:K46"))
Call Rinterface.GetArray("sd_output$sd_ee[1]",
Range(&q...
2024 Oct 11
2
Compressed archives randomly corrupted on a Linux share
On Fri, 11 Oct 2024 15:46:23 +0200
"lnj.sam--- via samba" <samba at lists.samba.org> wrote:
> Hi,
>
> We have a NAS server with OpenMediaVault on a Debian system.
>
> Mainly we work directly with documents from the LibreOffice and
> Office tools.
>
> Sometimes we note at the opening of a LO document that the file is
> corrupted and not repairable.