Displaying 3 results from an estimated 3 matches for "date_stamp".
2006 Apr 22
1
Gruff
...I have the following code in the controller:
# Send a graph to the browser
def crumpetchartaction
days = 5
g = Gruff::Line.new(500)
g.title = "Crumpets over the past #{days} days"
g.theme_keynote
crumpets_to_date = []
labels = {}
days.downto(0) do |day|
date_stamp = Time.now - (60*60*24*day)
date_sql_string = date_stamp.strftime("%Y-%m-%d")
crumpets_to_date << Crumpets.count("created_on <
''#{date_sql_string}''").to_i
labels[days-day] = date_stamp.strftime("%b %d") if day % 3 == 0...
2011 Nov 08
2
Selecting 3 different hours in a day
...are from hour 0-23 for each day.
I am not sure how to create a loop which will take out each of these hours
and create a subset.
I was thinking of doing a for loop using the row number since:
9am= row 10
12pm= row 13
3pm= row 16
trying to loop through to extract these 3 times each day.
n=length(date_stamp)
for (i in i:n) {
m= 10
i= 1
new1= mv[m,]
i= i+1
m= m+3
##m+18 at row 16?
}
I need some help creating a loop through this! Thank you!
--
View this message in context: http://r.789695.n4.nabble.com/Selecting-3-different-hours-in-a-day-tp4015010p4015010.html
Sent from the R help mai...
2009 Feb 11
3
Expire plugin does not delete expired mail
...1 at domain.net/Junk 1234386055
user2 at domain.net/Trash 1234874172
user2 at domain.net/Junk 1234400921
user1 at domain.net/Pubs 1235576243
I launch /usr/local/sbin/dovecot --exec-mail ext /usr/local/libexec/dovecot/expire-tool every 4 hours. For 3 days, no mails were deleted. However, I have date_stamp in mysql table.
I dropped ALL my mails in Junk/Trash folder ; and delete all dovecot.index* in these folders. After, I restarted dovecot with expire plugin, and when a first mail arrived in one of these folder, a line is created in mysql table.
But nothing is deleted in my Trash/Pubs/Junk folder....