Displaying 9 results from an estimated 9 matches for "some_number".
2004 Jun 24
5
chan_capi problem - hangup???
...he call
after two times of ringing.
The output is like:
Jun 24 22:19:49 NOTICE[1082178480]: chan_capi.c:1931 capi_handle_msg:
CONNECT_IND ID=002 #0x011d LEN=0048
Controller/PLCI/NCCI = 0x101
CIPValue = 0x10
CalledPartyNumber = <c1>**some_number**
CallingPartyNumber = <21 83>**some_number**
CalledPartySubaddress = default
CallingPartySubaddress = default
BC = <80 90 a3>
LLC = default
HLC = <9...
2006 May 31
1
ActiveRecord: When / where to validate data? Tricky question
First of all, thanks for you time. I have kind of a tricky question and
wanted to see what you guys thought.
-------------------------------------------
Lets say I have this:
-------------------------------------------
class Purchase < ActiveRecord::Base
validates_numericality_of :some_number, :only_integer => true
end
-------------------------------------------
Then I do this:
-------------------------------------------
purchase = Purchase.new
purchase.some_number = ''This is not a number''
Right now the data is not correct. Is this ok? Why should I even let
inval...
2009 Mar 04
2
FW: flow control
Hi all,
I need a little help with flow control in R. What I'd like to do is to
advance a for loop by changing its counter. However, what seems obvious
to me does not yield the proper results. An example of my problem is
for (i in seq(1, some_number, some_increment)){
<some stuff>
if (some_condition == T) i <- i + 2; #want to advance the loop
by 2
}
Whenever the counter goes to the next step, the next item in the
original sequence seq(1, some_number, some_increment) replaces the
counter value. Is there a way for me to do this?
B...
2010 Jan 18
8
Comment syntax and strange partial rendering
Using rails 2.3.2 I have a partial _foo.rhtml that begins with a comment
as follows:
<% # here is a comment %>
<li><%= foo %></li>
When I render the partial from a view in the traditional way, e.g.
<% some_numbers = [1, 2, 3, 4, 5] %>
<ul>
<%= render :partial => "foo", :collection => some_numbers %>
</ul>
I found that the <li> and </li> tags are not rendered. However, I can
solve this problem by fixing _foo.rhtml to eliminate the space between
&...
2010 Oct 27
2
must .Call C functions return SEXP?
...or("list" ,1e6)
result.2 <- vector("list" ,1e6)
.Call("my_C_function", result.1, result.2, other.input)
My C code looks like this:
SEXP result_v;
result_v = Rf_allocVector(REALSXP, 5);
SET_VECTOR_ELT(result_list_1, k1, result_v);
REAL(result_v)[0] = some_number;
REAL(result_v)[1] = another_number;
/* Also do the same sort of thing for result_list_2. */
return(result_list_1); /* Appears to work ok. */
/* return; */ /* Segfaults. */
--
Andrew Piskorski <atp at piskorski.com>
http://www.piskorski.com/
2012 Jun 19
1
seek(), skip by bits (not by bytes) in binary file
...= NULL # trash the result b/c I don't want it
}
# read a a little more to include the remainder/modulus bits left over by
dividing by 20 above
x = readBin(to.read,'raw',n=jb_part_mod,size=1)
x = NULL # trash it
# finally get the data that I want
data1 = readBin(to.read,double(),n=some_number,size=size_to_use)
This works, but it is SLOW! Any ideas on how to get down to the correct
bit a bit quicker (pun intended). :)
Thanks for any help!
Ben
[[alternative HTML version deleted]]
2012 Apr 09
1
Building Wine with multiple jobs
...tself ran as well as always.
I am wondering: was what I read before false, I got lucky this one time, or it just looks like it built and runs well while there is some problem "hiding in the shadows"?
In short: is it OK to run "make depend" with multiple jobs (i.e. "make -j[some_number] depend")?
2012 Jun 17
1
Missing voicemail prompt beginning
Hello,
I am using the voicemail module of asterisk. When I did some test calls
from my mobile phone, sometimes the beginning of the prompt was missing,
e.g. instead of something like "number 12345 not available" I was only
hearing "345 not available". Verbose level 5 on the asterisk console didn't
give me any hint on this, it only shows that playback of the prompt started
2012 Feb 09
7
ruby script/server is not working
hi everyone i just typed ruby script/server -d and then after when i
type again it is not working. i got this error
[2012-02-09 16:19:54] WARN TCPServer Error: Address already in use -
bind(2)
Exiting
/usr/lib/ruby/1.8/webrick/utils.rb:73:in `initialize'': Address already
in use - bind(2) (Errno::EADDRINUSE)
from /usr/lib/ruby/1.8/webrick/utils.rb:73:in `new''
from