Displaying 20 results from an estimated 109965 matches for "end's".
2005 Aug 31
0
Unicall X reload
Hi,
executing the reload command on Asterisk make the Unicall channel
unblock all Unicall channels dropping active calls.
Is this just a local error (maybe in the other end of my E1 ?), an
option in the source (maybe a debugging option ?) or it must be this way ?
Asterisk: 1.0.9
unicall: 0.0.3-pre4
protocolvariant: br
Thanks,
Leonardo
Aug 31 15:00:55 WARNING[28411]: Already have a handler for type 'UniCall'
Aug 31 15:00:55 ERROR[28411]: Unable to reg...
2007 Jan 09
9
Date Approximation in Specs
...r facility for dates? For example, say I have a
custom class that handles date/time spans and I want to spec it:
context "A DateRange span" do
specify "should know when a week ago is :)" do
d = DateRange.new
d.last_week.should_be_close_to(1.week.ago, 24*60*60)
end
end
The idea of should_be_close_to is to provide a tolerance. My class
only is required to be accurate to the same day, and I want to
express that in terms of "close_to" uncertainty. Is there a great
baked-in way I''m missing?
I have code to do this in Test::Unit that I co...
2010 May 04
1
Posix warning : Access to ... is crossing device
...#######################################
########################################
volume clustr-03-1
type protocol/client
option transport-type tcp
option remote-host clustr-03
option transport.socket.nodelay on
option transport.remote-port 6996
option remote-subvolume brick1
end-volume
volume clustr-03-2
type protocol/client
option transport-type tcp
option remote-host clustr-03
option transport.socket.nodelay on
option transport.remote-port 6996
option remote-subvolume brick2
end-volume
volume clustr-03-3
type protocol/client
option transpo...
2019 Oct 08
6
RFC: End-to-end testing
...the mailing
lists. Please let me know if other lists should be included. ]
I submitted D68230 for review but this is not about that patch per se.
The patch allows update_cc_test_checks.py to process tests that should
check target asm rather than LLVM IR. We use this facility downstream
for our end-to-end tests. It strikes me that it might be useful for
upstream to do similar end-to-end testing.
Now that the monorepo is about to become the canonical source of truth,
we have an opportunity for convenient end-to-end testing that we didn't
easily have before with svn (yes, it could be done...
2011 Apr 15
1
Whole genome searching of 100bp "D" sequence
...d)
#matches on minus strand
matches.minus.strand <- matchPattern(query.minus, Hsapiens[[i]],
fixed=FALSE, max.mismatch=5)
mm <- as.matrix(matches.minus.strand)
OL.p <- NULL
if(nrow(mp) > 0)
{
##### MATCH THE POSITIVE STRAND ######
#need to get start and end positions (end = start + (length-1))
gr <- GRanges(
seqnames = rep(i,nrow(mp)),
ranges = IRanges(start = mp[[1]],
end = mp[[1]]+(mp[,2]-1)),
strand = rep("+", nrow(mp)))
#OL <- findOverlaps(query=gr, subject=annotGr)
OL.p <- annotGr[(!is.na(match(anno...
2007 Oct 09
1
VC6 Patch
.../YX /FD /GZ /c
# ADD BASE RSC /l 0x409 /d "_DEBUG"
# ADD RSC /l 0x409 /d "_DEBUG"
BSC32=bscmake.exe
@@ -85,132 +85,264 @@
# PROP Default_Filter "cpp;c;cxx;rc;def;r;odl;idl;hpj;bat"
# Begin Source File
-SOURCE=..\lib\blockmap.c
+SOURCE=..\lib\dec\apiwrapper.c
# End Source File
# Begin Source File
-SOURCE=..\lib\comment.c
+SOURCE=..\lib\enc\blockmap.c
# End Source File
# Begin Source File
-SOURCE=..\lib\dct.c
+SOURCE=..\lib\enc\common.c
# End Source File
# Begin Source File
-SOURCE=..\lib\dct_decode.c
+SOURCE=..\lib\cpu.c
# End Source File
# Begin...
2007 Oct 09
2
R dynamic memory management
...the raw data files in agiven directory.
It should allocate only the memory to accomodate the filenames list.
Each file is loaded into RAM one at a time and saved to another
directory after processing. The R script runs fine but it had some
memory problems so it was terminated before getting to the end of the
list.
This is a Windows XP desktop with ~ 1GB RAM
In the following I am pasting R messages. I would appreciate some
suggestion about memory handling:
Error: cannot allocate vector of size 32.0 Mb
In addition: Warning messages:
1: Reached total allocation of 958Mb: see help(memory.size) in:...
2009 May 15
0
[PATCH server] use service layer for Network controller.
...ller < ApplicationController
+ include NetworkService
########################## Networks related actions
- before_filter :pre_list, :only => [:list]
-
- def authorize_admin
- # TODO more robust permission system
- # either by subclassing network from pool
- # or by extending permission model to accomodate
- # any object
- @default_pool = HardwarePool.get_default_pool
- set_perms(@default_pool)
- super('You do not have permission to access networks')
- end
-
- def pre_list
- @networks = Network.find(:all)
- authorize_admin
- end...
2007 Aug 06
2
used the described Class in a shared behavior
...escribe "Siberian feline", :shared => true do
described_class_instance_as :feline, :name => "fluffy", :breed =>
"Siberian"
# or maybe
before(:all) do
@feline = described_class.new(:name => "fluffy", :breed => "Siberian")
end
it "should have long hair" do
@feline.should be_long_haired
end
end
describe SiberianCat, "(a subclass of, say, Cat)" do
it_should_behave_like "Siberian feline"
it "should purr" do
@feline.sound.should == "purr"
end
end
describ...
2010 Aug 18
6
Once I added this HABTM, one of my 'through' relationships, on a non-habtm model, seems to have broke?
...roup and the following test and relationship of a Subscription worked
fine:
class Subscription < ActiveRecord::Base
belongs_to :user, :foreign_key => "user_id"
belongs_to :meter_group, :foreign_key => "meter_group_id"
has_many :meters, :through => :meter_group
end
test "group1 and group2 belong to rachel" do
user = User.find_by_login("rachel")
subscriptions = Subscription.find_all_by_user_id(user.id)
subscriptions.each do |s|
meters = s.meters
meters.each do |m|
puts "meter = #{p m}"
end...
2006 Nov 21
5
Specification Reuse to avoid Combinatorial Explosions
...each specification is at least 5 lines.
Here is how I implemented scenario 1:
context %{A Withdrawal where an Account is in credit
AND the card is valid
AND the dispenser contains cash
AND the customer requests cash} do
specify "should debit the account" do
end
specify "should dispense cash" do
end
specify "should return the card" do
end
end
That got me experimenting on reusing specifications by using a module to
create the specs. This is in customer_withdraws_cash_spec.rb:
module CustomerWithdrawsCashSpec
def should_debit_...
2007 Jun 11
2
DelegateClass fails
...e ''delegate''
gem ''rspec''
# Version 1.0.5
############################################################
# CONTROL EXAMPLE: Works FINE.
############################################################
class InheritedClass < Array
def large?
self.size >= 5
end
end
describe InheritedClass, "normal inheriting class is OK" do
it ''works just fine'' do
myclass = InheritedClass.new([1,2,3,4,5,6])
myclass.should be_large
end
end
############################################################
# rspec should work on Delegate...
2007 Oct 11
2
Login testing ideas
...''t
want to start teaching myself bad habits.
So my thought was to do something like:
Story "The saga of the login" do
Scenario "Good login" do
Given "a valid user/pass pair", "gooduser", "goodpass" do
#my needed code
end
Then "User should login ok" do
# more needed code
end
end
Scenario "Bad login" do
Given "a invalid user/pass pair", "baduser", "badpass" do
#my needed code
end
Then "User should get rejected" do...
2006 Aug 24
3
A new QueueWorker class
...turn). This file needs to be included
in background.rb
3) Your child worker, which should be a subclass of
BackgrounDRb::RailsQueue, is otherwise the about same as normal
If it''s a big loop, you probably want to use terminate?() on each
iteration and update @progress. Use suicide() at the end to make room
for the next child.
Options: (probably in your backgroundrb.yml)
autostart:
:queue_key:
class: queue_worker
args:
:num_child_workers: 2
:child_class: :cost_calculator_worker
:reQ_on_finish: true
:singleton: true
:queue_key can be changed to what you...
2007 Nov 29
3
Stylistic preferences
What are people''s opinions on which of these two styles is better to
use?
1) before
---------------------------
module UserSpecHelper
include GenericSpecHelper
def valid_sms_attributes(phone_number="12345")
{ :phone_number => phone_number }
end
end
describe User, "with phone number" do
include UserSpecHelper
before(:each) do
@user = User.new(valid_sms_attributes)
end
it "should be valid" do
@user.should be_valid
end
it "should reject duplicate phone number" do
@user.save...
2011 May 07
1
Gluster "Peer Rejected"
...have 8 servers.?
7 of the 8 say that gbe02 is in state State: Peer Rejected (Connected).
gbe08 says it is connected to the other?7? but they are all State: Peer Rejected
(Connected)
So it would appear that gbe02 is out of sync with the group.
I triggered a manual self heal by doing a the recommended ./find on a gluster
mount.
I'm stuck... I cannot find ANY docs on this except one saying:
"hi Freddie,
????A Peer is Rejected during "peer probe" if the two peers have conflicting
volumes, i.e. volumes with same name but different contents.
Is this what happened to you?....
2013 Oct 12
3
[LLVMdev] [RFC] CodeGen Context
...es that affect code generation changing between functions. (This is mostly a problem for LTO.)
Please take a look at this proposal, and let me know if you have any questions or comments.
Cheers!
-bw
CodeGen Context
===============
The back-end's objects are currently generated once with a set of options handed
to it by the front-end. These options are not expected to change throughout the
lifetime of the back-end. With the advent of extended function attributes, this
is no longer a correct assumption. During LTO for instance, a funct...
2006 Jul 04
1
LoginGenerator Problem
...:stuff
before_filter :login_required, :only => [:create, :edit, :new]
def create
@stuff= Stuff.new(params[:todo])
@stuff.user = @session[:user]
if @stuff.save
flash[:notice] = ''Event was successfully created.''
redirect_to :action => ''list''
else
render :action => ''new''
end
end
...
def edit
@stuff= Stuff.find(params[:id])
if @stuff.user != @session[:user]
flash[:notice] = ''You cannot edit an article you didn\''t upload.''
redirect_to :action => ''show'', :id =>...
2008 Jan 13
3
right usage of bdrb
Hi,
i''m going to implement a syndication-service, which will get lists in
xml with some meta-data an enclosed video files, which will get encoded
at the end. The syndication run will be startet every five minutes of
a full hour.
So i thought to build 4 Worker. One for checking which feeds to
syndicate (syndication_worker) at a specific time, one for processing
the list (import_worker), one for fetching the clips (download_worker)
and one for encod...
2007 Feb 16
6
some fun functionality for all your specs
I''ve found these two snippets of code useful and would love some feedback.
first, .should_have_valid_associations
usage:
context "A new Product" do
specify "should have valid associations" do
@product.should_have_valid_associations
end
end
code: (thanks to Wilson/Defiler for converting to rspec)
module Spec
module Expectations
module Should
class Base
def have_valid_associations
@target.save_without_validation
@target.class.reflect_on_all_associations.each do |assoc|
lambda {...