Displaying 5 results from an estimated 5 matches for "thetime".
2006 Sep 14
1
working with strptime data
...kinds of R-programming tasks?
Here's a simplified example:
----------------------------------------------------------
I have a large data set that consists of N pairs of values and
timestamps strings.
Like this:
TheData <- c(1.2, 0.9, etc...[to the Nth
datapoint])
TheTime <- c("9/1/2006 8:00", "9/1/2006 8:13", etc...[to the Nth
timestamp])
I convert the timestamp strings into POSIXct types as:
TheTime <- as.POSIXct(strptime(TheTime, format="%m/%d/%Y %H:%M"))
And create a plot as such:
plot(MyTime,MyData)
---------------------...
2010 Aug 15
2
Beginner Hurdles
...? 0 : bufChan.GetTime();
double audioStartTime = 0, audioStaleTime = 0,
videoStartTime = 0, videoStaleTime = 0;
int audioStatus = kVideoAudioBuffering, videoStatus =
kVideoVideoBuffering;
Boolean audioPlaying = false;
while( !KeyDown( escape_key ) )
{
short *buffer;
uint size;
double theTime;
//if( video.Done() ) video.Reset(); // I don't have rewind working yet
video.Idle(); // buffer data even if no audio or video frames to
display
theTime = bufChan.GetTime() - startTime;
if( audioStatus < 0 && bufChan.IsReady( (void**) &buffer,
&size ) ) // see...
2006 Mar 11
2
how to create analog stripchart plots of x vs t (t=mm/dd/yyyy hh:mm:ss)
...ical vector of N elemets
and 't' is a timestamp like "mm/dd/yyyy hh:mm:ss"
(also of N elements)
here is how i am getting the data:
>
>TheData <- scan("MyDataFile.txt",sep=",",list("","",0))
>TheDates <- TheData[[1]]
>TheTimes <- TheData[[2]]
>TheValue <- TheData[[3]]
>
and here is how i am making the datetime objects:
>
>TimeStampStr <- paste(TheDates,TheTimes)
>TimeStampObj <- strptime(xStamp,"%m/%d/%y %H:%M:%S")
>
and then i try to plot it with:
>
>plot(TimeStampO...
2012 Oct 03
3
2.4-beta fixes for MinGW
...de = 206;
type = fserve_content_type (path);
bytes = snprintf (httpclient->refbuf->data, BUFSIZE,
--- icecast-2.3.99.0/src/logging.c.orig 2012-10-02 14:52:41 +0400
+++ icecast-2.3.99.0/src/logging.c 2012-10-02 15:30:57 +0400
@@ -54,7 +54,15 @@
struct tm *thetime;
time_t now;
- gmtime_r(&time1, &gmt);
+#if !defined(_WIN32)
+ thetime = gmtime_r(&time1, &gmt)
+#else
+ /* gmtime() on W32 breaks POSIX and IS thread-safe (uses TLS) */
+ thetime = gmtime (&time1);
+ if (thetime)
+ memcpy (&gmt, thetime, sizeof (g...
2007 May 05
4
Stop words, fields, StandardAnalyzer quagmire
Hello,
I''m using: Ruby 1.8.6, Rails 1.2.3, ferret 0.11.4, acts_as_ferret from
svn stable.
I''ve had quite a day wrestling with trying to remove the use of
stopwords. The problem was that when searching for words like "no" or
"the", no results were found. I found a confusing thing behavior that
has taken me some time to figure out, and I hope sharing it