Displaying 20 results from an estimated 64 matches for "timespan".
2010 Oct 18
2
VectorComparison
Hi all,
I am not exactly fluent in R and I got stuck with this. I would like to
compare each elements of a vector A with any of the elements in Vector B.
For some reasons it does not work.
> StartDate = as.Date("01/10/2007", "%d/%m/%Y")
> TimeSpan = seq(StartDate, by = 'days', length =
length(myAverageCWVs$X1986))
> TickLabels = c("2007-10-01", "2007-11-01", "2007-12-01", "2008-01-01")
> TimeSpan[1:40] == TickLabels
Here I would expect TRUE for teh first entry and then TRUE for the e...
2006 Jun 18
2
convert timespan to verbose description
Hi,
I always see RoR pages showing the elapsed time like that
''Published 3 days, 23 hour and 5 minutes ago''
''Published less than 3 minutes ago''
I guess this conversion can be done using a Rails function, however I
can''t find it.
Does somebody know its name??
Thanks a lot
Peter
2006 Mar 29
4
using onchange options in forms
Hello,
I''m trying to get a select field to update a view via the ''onchange''
option. I''ve seen examples of it here in the forum where people hardcode
the forms and use javascript to trigger the change (and nearly all have
complained that it''s a hack) and I''m wondering if anyone has a more
elegant solution using the embedded ruby methods?
2006 Mar 28
0
using ''onchange'' option in select from a partial to update a
...ml view (altering the view based on the
selected value) but I''m having a hard time understanding the mechanics
of the observe_field method. Here''s my _header partial:
<%= start_form_tag :action => ''main'' %>
<div="tspan">
<%= select(:timespan, :span, ["1 week", "1 month", "3 months", "6
months", "1 year"], :onchange => ''main'') %>
</div>
<%= end_form_tag %>
<%= observe_field(
:timespan,
:frequency => 0.25,
:update => ''clien...
2005 May 26
2
warnings from hist(): parameter XXX couldn't be set in high-level plot functionN
...s
[1] "1995-01-01" "1996-01-01" "1996-01-01" "1997-01-01" "1998-01-01"
[6] "1999-01-01" "2000-01-01" "2001-01-01" "2002-01-01" "2003-01-01"
[11] "2004-01-01" "2005-01-01"
> TimeSpan<-as.integer(difftime(StopDate,StartDate))
Warning message:
NAs introduced by coercion
# Note: NAs correspond to 3 invalid dates, apparently typos
> h<-hist(StartDate[TimeSpan>0 & StartDate>years[1]], breaks=years, freq=T,
+ main="",xlab="",ylab="...
2012 Mar 06
0
lubridate 1.1.0
...--------------------------------
* lubridate no longer overwrites base R methods for +, - , *, /, %%, and
%/%. To recreate the previous experience of subtracting two date times to
create an interval, we've added the interval creation function %--%.
* lubridate has moved to an S4 object system. Timespans, Intervals,
Durations, and Periods have each been redefined as an S4 class with its own
methods.
* arithmetic operations will no longer perform implicit class changes
between periods, durations, and intervals. Users must explicitly state how
and when they wish class changes to occur with as.perio...
2012 Mar 06
0
lubridate 1.1.0
...--------------------------------
* lubridate no longer overwrites base R methods for +, - , *, /, %%, and
%/%. To recreate the previous experience of subtracting two date times to
create an interval, we've added the interval creation function %--%.
* lubridate has moved to an S4 object system. Timespans, Intervals,
Durations, and Periods have each been redefined as an S4 class with its own
methods.
* arithmetic operations will no longer perform implicit class changes
between periods, durations, and intervals. Users must explicitly state how
and when they wish class changes to occur with as.perio...
2011 Jan 20
1
Generating time progressing line for Google Earth
...he kml template file to be used with brewer:
<?xml version="1.0" encoding="utf-8" ?>
<kml xmlns="http://www.opengis.net/kml/2.2">
<Document>
<Folder><name>lines</name>
<% for(i in 1:nrow(seg)){ %>
<Placemark>
<TimeSpan>
<begin><%= paste(1980+i, "01", "01", sep="-")%></begin>
</TimeSpan>
<name><%=paste(seg$x[i], ",", seg$y[i]," : ", seg$xend[i],
",", seg$yend[i], sep="")%></name>
<St...
2007 Sep 17
2
Date vs date (long)
...call
the latter "attributes" (ignoring whether they are implemented using the attr
function or slots or whatever).
For some operations is is fairly clear what do to with both the attr and the
numeric part, e.g., date + 1 is the next day. No problem here.
For other operations, e.g., timespan^2 it is only clear that the result is no
longer a timespan, but not what class it should be. I firmly believe that the
right result is to toss the attribute and return the number. This makes
the tool optimally useful. Returning an error message is an unneccesary
and controlling response: what g...
2011 Aug 16
4
Dashboard table resource_statuses growing uncontrollably
...NV=production reports:prune upto=2 unit=wk", and I''ve
run it manually, but it doesn''t seem to impact that table.
Is there a "safe" way to reduce the number of rows in that table, and
limit it to keeping either X number of rows, or rows going back only
to a specific timespan (like, 2 weeks)?
Thanks in advance!
-- Sandy
--
You received this message because you are subscribed to the Google Groups "Puppet Users" group.
To post to this group, send email to puppet-users@googlegroups.com.
To unsubscribe from this group, send email to puppet-users+unsubscribe@g...
2024 Jan 31
1
time based group membership in FL 2016
...ure" -Scope
ForestOrConfigurationSet -Target example.net"
-----------------
This feature once enabled can't be disabled anymore
Then I could add a user to a group:
---------------
Add-ADGroupMember -Identity "Domain Admins" -Members "Foo"
-MemberTimeToLive (New-TimeSpan -Minutes 30)
---------------
After 30 minutes Foo will be removed automatically.
But if this feature is supported by samba 4.19 or 4.20 with FL 2016
activated, how could I set this?
Stefan
2007 Jul 02
1
compute time span in months between two dates
Hi,
I am just starting to play with R. What is the recommended manner for
calculating time spans between 2 dates? In particular, should I be using
the "chron" or the "date" package (so far I just found how to calculate
a timespan in terms of days)?
Thanks
Zava
--------------------------------------------------------
This is not an offer (or solicitation of an offer) to buy/se...{{dropped}}
2008 Dec 08
2
No more monthly World Wine News?
...of these newsletters. I noticed that before the WineConf issue they were released monthly; since then there hasn't been one published. I just enjoyed reading these and getting informed about WINE development; hence no big deal, but it would be great to hear what decisions have been taken in the timespan between WineConf and now.
Thanks!
2012 Dec 07
0
apply a function at: dateX, dateX+1, dateX+2, ....
...ated the size of the homerange for Animal "Ernie" at every
single day. (The several numbers per day
# represent the several Homerange levels).
# What I want to do now is to calculate the homerange for Animal "Ernie" for
two consecutive days.
# I.e. I want a home range for the timespan 24. to 25. Septemberand the
# home range for the timespan 25. to 26. September. Each day is included
several times in the calculations.
# It would be easy to do for the example above by hand (subset) but not for
my dataset including a whole year.
# does anyone know how to do that?
# It would be...
2006 May 15
3
Page hit counter?
Hello all,
Yet another "don''t reinvent the wheel" n00b question:
Is there an ''official'' page hit counter plugin/code snippet/whatever? I
would need something like this:
- It is possibility to set a constant timespan (say 5 hours).
- On every page hit, save away @request.remote_ip and Time.new
- The counter gets incremented only if the same IP was here longer ago
than the constant
Of course this is trivial to do, but just in case there is something
like this, LMK (i have been googling for it but did not find...
2008 Apr 28
2
Caching current events for new listeners
...ng listeners. At the moment, for, eg,
Theora and Vorbis, the only interesting packets are the recent ones (up to a
keyframe for theora), but, in my case, I can have old packets be still active
while newer packets are obsolete, as packets are sorted by their presentation
time, but may have arbitrary timespan.
My codec handler keeps track of those packets, but I can't find how to send
them on connection. My guess was to try to piggyback onto the code that
sends headers, but that relies on an already built set of headers, and it does
seem like a big waste of resources to continually update centrally...
2024 Jan 31
1
time based group membership in FL 2016
...nSet -Target example.net"
> -----------------
>
> This feature once enabled can't be disabled anymore
>
> Then I could add a user to a group:
> ---------------
> Add-ADGroupMember -Identity "Domain Admins" -Members "Foo"
> -MemberTimeToLive (New-TimeSpan -Minutes 30)
> ---------------
>
> After 30 minutes Foo will be removed automatically.
>
> But if this feature is supported by samba 4.19 or 4.20 with FL 2016
> activated, how could I set this?
I am not aware of the developments on this.
But in general, what I would do is: exec...
2016 Nov 07
2
RFC: General purpose type-safe formatting library
...You might be able to hook up a template-specialization like mechanic to the
>> processing of %s (similar to my current approach), but it's not obvious how
>> you proceed from there to get custom format strings for individual types.
>> For example, a formatter which can print a TimeSpan in different units
>> depending on style options you pass in. This is especially useful when
>> trying to print ranges where you often want to be able to specify a
>> different separator, or control the formatting of the underlying type.
>> (e.g. it's not clear how you...
2024 Jan 31
2
time based group membership in FL 2016
...>
> >> This feature once enabled can't be disabled anymore
> >>
> >> Then I could add a user to a group:
> >> ---------------
> >> Add-ADGroupMember -Identity "Domain Admins" -Members "Foo"
> >> -MemberTimeToLive (New-TimeSpan -Minutes 30)
> >> ---------------
> >>
> >> After 30 minutes Foo will be removed automatically.
> >>
> >> But if this feature is supported by samba 4.19 or 4.20 with FL
> >> 2016 activated, how could I set this?
> >
> > I am not awa...
2024 Jan 31
1
time based group membership in FL 2016
...gt;> -----------------
>>
>> This feature once enabled can't be disabled anymore
>>
>> Then I could add a user to a group:
>> ---------------
>> Add-ADGroupMember -Identity "Domain Admins" -Members "Foo"
>> -MemberTimeToLive (New-TimeSpan -Minutes 30)
>> ---------------
>>
>> After 30 minutes Foo will be removed automatically.
>>
>> But if this feature is supported by samba 4.19 or 4.20 with FL 2016
>> activated, how could I set this?
>
> I am not aware of the developments on this.
>
&...