search for: end_time

Displaying 20 results from an estimated 58 matches for "end_time".

2006 Sep 22
2
I''m misunderstanding how stubs works
...t;stubs" to test some realtime functions, to control exactly which time is returned from Time.now. I would expect the following test to pass: def test_two_stubs t = Time.now - 60 Time.stubs(:now).returns(t) start_time = Time.now t += 20 Time.stubs(:now).returns(t) end_time = Time.now assert_equal end_time - start_time, 20 end But it fails with: 1) Failure: test_two_stubs(MochaTest) [mochatest.rb:19]: <0.0> expected but was <20>. I can create a test which works as I intend: def test_lambda t = Time.now - 60 Time.stubs(:now).returns(l...
2006 Sep 25
3
Engine Yard blog
Just received the news from Tom Mornini. Congrats Ezra for the new Engine Yard site and the blog you will be collaborating. Hope to read you there soon. http://www.engineyard.com/ Jonathan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/backgroundrb-devel/attachments/20060925/3f251fa4/attachment.html
2014 Feb 21
5
[LLVMdev] interesting LLVM code optimization issue regarding timer registers
This problem was reported to me by a friend who has an LLVM port that is not put back to open source. Essentially, there is an intrinsic call _lr which is a load register. so then user code has something like: start_time = _lr(TIMER_REGISTER) ..... some_code_to_time .... end_time = _lr(TIMER_REGISTER) So what happens is that LLVM moves the code as follows: start_time = _lr(TIMER_REGISTER) end_time = _lr(TIMER_REGISTER) ..... some_code_to_time ...... How would this intrinsic be implemented properly in llvm so this cannot happen? TIA. Reed
2017 Sep 13
2
compounding precipitation based on whether falls within a day
...me predefined start time. I'd like to add up all the time indexes in 'prec' based on whether or not the corresponding hours fall within a given day. So, at the end of the small example below, there are two variables that I'm left with, prec_idx (an hourly sequence from beg_time to end_time) whose length is equal to the first index (the time index) of the 3D array of precipitation called prec. That is, I'd like to get a 3D array called prec*_daily* that has dimension prec*_daily*[21, 3, 4], where 21 is the number of days and the value in say prec*_daily*[1,x,y] is equal to prec[1...
2008 Apr 08
0
Help building view to pass query to controller
...will take text and inject it to part of a pre-configured sql query I have setup in a model. I will try to explain as best I can with code. Specifically I would like to set a view form that will take the text and pass that text value to the class vars i have defined (@@hostname, @@start_time and @@end_time). Once the VARs have user inputted values the code will run and result to display. I think I am going to be dealing with form_tags adn I have attemped this way but with no luck. I hope I explained this correctly as again I am a programming newbie. Thanks in advanced for any input. Model: class...
2019 Jun 07
1
Problem with opusfile & ndk
Hi Xiph.org Team. We are using opusfile library <https://github.com/xiph/opusfile> for streaming *.opus* audio in our projects. But now we have a problem with building opusfile library for android with *ndk-build*. In particular, with arm64-v8a platform: Google removed <sys/timeb.h> from android. And now building opusfile with nkd-build crashes with error "fatal error:
2004 Nov 20
0
ffmpeg2theora start and end time support - patch
...---------- Index: ffmpeg2theora.c =================================================================== --- ffmpeg2theora.c (revision 8237) +++ ffmpeg2theora.c (working copy) @@ -76,6 +76,9 @@ int video_y; int frame_x_offset; int frame_y_offset; + + int start_time; /* In seconds */ + int end_time; /* In seconds */ } *ff2theora; @@ -128,7 +131,8 @@ this->frame_bottomBand=0; this->frame_leftBand=0; this->frame_rightBand=0; - + this->start_time=0; + this->end_time=0; /* ZERO denotes no end time set */ } return this; } @@ -142,7 +146,7 @@ AVCod...
2010 Jul 19
3
Reshaping data
Dear All, I have some data in the following shape: ID begin_t1 end_t1 begin_t2 end_t2 Thomas 11/03/04 13/05/06 04/02/07 16/05/08 ... ... ... ... ... Jens 24/01/02 23/05/03 07/06/03 14/11/05 I would like to reshape this data to have the following form: ID Begin_Time End_Time Thomas 11/03/04 13/05/06 Thomas 04/02/07 16/05/08 ... ... ... Jens 24/01/02 23/05/03 Jens 07/06/03 14/11/05 I have been doing some google searches and looked at the reshape library, but so far I have not been able to shape the data like I want. If you guys could help, I would grea...
2009 Mar 07
1
Cdr problem
hi, I'm working with asterisk on a project and I found a problem with cdr_odbc. As we know, after answering each call a cdr event is raised which is saved in cdr_csv and cdr_odbc. but here my point is on cdr_odbc. some information, including start_time and end_time is given by cdr event but the problem is that these two information(start_time and end_time) is not getting save in cdr_odbc. I checked the source code and I found that by default it's not doing so. I need to query these two information, start time and end time, from cdr_odbc and I need your he...
2017 Sep 13
0
compounding precipitation based on whether falls within a day
...time. I'd like to add up all > the time indexes in 'prec' based on whether or not the corresponding hours > fall within a given day. So, at the end of the small example below, there > are two variables that I'm left with, prec_idx (an hourly sequence from > beg_time to end_time) whose length is equal to the first index (the time > index) of the 3D array of precipitation called prec. That is, I'd like to > get a 3D array called prec*_daily* that has dimension prec*_daily*[21, 3, > 4], > where 21 is the number of days and the value in say prec*_daily*[1,x,y...
2015 Oct 20
1
[PATCH v3 07/13] v2v: factor out copying of output data
...rlay_file) - (quote t.target_file) in - if verbose () then printf "%s\n%!" cmd; - let start_time = gettimeofday () in - if Sys.command cmd <> 0 then - error (f_"qemu-img command failed, see earlier errors"); - let end_time = gettimeofday () in - - (* Calculate the actual size on the target, returns an updated - * target structure. - *) - let t = actual_target_size t in - - (* If verbose, print the virtual and real copying rates. *) - let elapsed_time = end_time...
2014 Feb 05
0
Solr Search with one to many associations
...tiple => true, stored => true do slots.map(&:day) end string :start_time, multiple => true, stored => true do slots.map(&:start_time) end string :start_time, multiple => true, stored => true do slots.map(&:end_time) end end end class Slot < ActiveRecord::Base attr_accessible - day, start_time, end_time teacher_id belongs_to :teacher end The possible values for day attribute is slot are "Sunday", "Monday", "Tuesday", etc and start and end...
2007 May 31
0
background worker just stops running after some time
...44 (678) Schedule triggered: #<struct #<Class:0x834cc74> job=#<Proc:0x0847d238@/usr/local/www/mysite/vendor/plugins/backgroundrb/server/lib/backgroundrb/middleman.rb:336>, trigger=#<BackgrounDRb::Trigger:0x8d669f8 @start_time=Thu May 31 10:47:44 -0700 2007, @repeat_interval=3600, @end_time=nil>, earliest=Thu May 31 12:47:44 -0700 2007, last=Thu May 31 12:47:44 -0700 2007> 20070531-13:47:44 (678) Schedule triggered: #<struct #<Class:0x834cc74> job=#<Proc:0x0847d238@/usr/local/www/mysite/vendor/plugins/backgroundrb/server/lib/backgroundrb/middleman.rb:336>, trigger...
2007 Feb 22
0
Problem with Cacti and CentOS 4.4
...0] Maximum runtime of 292 seconds exceeded. Exiting. 02/21/2007 12:09:16 PM - SYSTEM STATS: Time:293.1932 Method:cmd.php Processes:1 Threads:N/A Hosts:3 HostsPerProcess:3 DataSources:114 RRDsProcessed:5 cacti.log 02/21/2007 12:09:14 PM - CMDPHP: Poller[0] DEBUG: SQL Assoc: "select poller_id,end_time from poller_time where poller_id = 0" 02/21/2007 12:09:14 PM - CMDPHP: Poller[0] DEBUG: SQL Assoc: "select poller_output.output, poller_output.time, poller_output.local_data_id, poller_item.rrd_path, poller_item.rrd_name, poller_item.rrd_num from (poller_output,poller_item) where...
2007 Jul 10
0
Plot dies with memory not mapped (segfault) (PR#9785)
...="") if(QUERY_DATE=="Year") { usageAVGQuery<-paste("SELECT STR_TO_DATE(CONCAT(YEAR(FROM_UNIXTIME(dispatch_time)),'-01-01'),'%Y-%m-%d') AS date, AVG(cpu_seconds_user/total_time) AS time, AVG(num_cpus) AS AVG_CPUs, AVG(dispatch_time-end_time) AS AVG_job_length FROM ",systems[iter],usageDateClamp,"GROUP BY date;",sep="") usageQuery<-paste("SELECT STR_TO_DATE(CONCAT(YEAR(FROM_UNIXTIME(dispatch_time)),'-01-01'),'%Y-%m-%d') AS date, cpu_seconds_user/total_time AS time FROM &q...
2013 Mar 10
2
Writing to Spreadsheet issues
I am having trouble with this code: trOne <- read.csv("*.csv", header=TRUE) srOne <- read.csv("*/SRdivision1.csv", header=TRUE) row = 1 for (g in 1:162) { e = trOne[g, "END_TIME"] s = trOne[g, "START_TIME"] q = trOne[g, "OCC_TIME"] r = trOne[g, "R_TIME"] gazeSum = 0 n = 0 print(g) while (s <= e) { if (srOne[row, "timestamp"] == 670920) { print(srOne[row, "timestamp"]) } if (r == srOne[row, "timestamp"]...
2007 May 01
5
duplicate key violates unique constraint
...ow[0] self.last_name = row[1] self.place = row[2] self.crn = row[3] self.course = row[4] self.title = row[5] self.mx = row[6] self.enr = row[7] self.avl = row[8] self.days = row[9] self.start_time = row[10] self.end_time = row[11] self.start_date = row[12] self.end_date = row[13] self.create self.id += 1 # Schedule.id += 1 end end Anyone know how I can get Rails to realize what the current id is after the automated import? Thanks, Glen --~--~---------~--~----~-...
2009 Dec 31
1
iterating over a data frame the R way?
Hi, I have a data frame that was create by issuing a select against my sqlite database. I want to get each row from the data frame and use the each of the column values. The data frame looks like this: start_time end_time 09:30:00 10:00:00 10:00:01 10:30:00 etc Can a point me to a tutorial/example of doing this? I the other programming languages I'm familiar with I would just loop over the frame and access the elements, but I believe that's not the R way and can't find examples of doing...
2006 Jul 12
1
-Infinity for Doule type column
...al/stow/ruby/lib/ruby/gems/1.8/gems/activerecord-1.14.3/lib/active_record/connection_adapters/abstract_adapter.rb:120:in `log'': Mysql::Error: Unknown column ''Infinity'' in ''field list'': INSERT INTO full_doc_indices (`etf`, `Id`, `phonemes`, `filename`, `end_time`, `start_time`) VALUES(-Infinity, NULL, ''IH N T IH'', ''BN99EN_2'', 4952.77044, 4939.515) (ActiveRecord::StatementInvalid)" Obviously, ActiveRecord is using "-Infinity" literally, and then MySQL treats "-Infinity" as column name as the m...
2010 Sep 08
2
Correlation question
..."MAIL" [4] "Age" "SEXO" "Studies" [7] "Hours_Internet" "Vision.Disabilities" "Other.disabilities" [10] "Technology_Knowledge" "Start_Time" "End_Time" [13] "Duration" "P1" "P1Book" [16] "P1DVD" "P2" "P3" [19] "P4" "P5" "P6" [22] "P8"...