I'm developing a simple website in ASP.NET application.
I don't know why, but when the page is running the browser display this message below:
Directory Listing -- /
Friday, December 12, 2014 09:36 PM <dir> bin
Friday, December 12, 2014 09:38 PM 1,591 CoffeMasterpage.Master
Friday, December 12, 2014 08:48 PM 350 CoffeMasterpage.Master.cs
Friday, December 12, 2014 09:35 PM 1,431 CoffeMasterpage.Master.designer.cs
Friday, December 12, 2014 09:32 PM <dir> Images_Coffee
Friday, December 12, 2014 08:42 PM <dir> obj
Friday, December 12, 2014 08:42 PM <dir> Properties
Friday, December 12, 2014 09:05 PM <dir> Styles
Friday, December 12, 2014 08:42 PM 2,002 Web.config
Friday, December 12, 2014 08:42 PM 1,285 Web.Debug.config
Friday, December 12, 2014 08:42 PM 1,346 Web.Release.config
Friday, December 12, 2014 09:36 PM 4,719 WebTutorial.csproj
Friday, December 12, 2014 09:36 PM 1,086 WebTutorial.csproj.user
Version Information: ASP.NET Development Server 10.0.0.0
Someone can explain to me why the browser display this message?
Related
We have maxwell running on docker in our production and it is configured to listen to changes on MariadDb tables and push them to a kafka topic. Our MariadDb has some 10-12 tables and we have configured maxwell to listen to only 4 tables and all these 4 tables are heavily used (number of writes is too high).
Recently we have seen that our Maxwell is going down, following are the few error logs we found when maxwell is going down
Oct 28, 2022 # 06:10:40.037 06:10:40,037 ERROR MysqlParserListener - (parse SET STATEMENT max_statement_time = 60 FOR flush table)
Oct 28, 2022 # 06:10:40.040 06:10:40,040 ERROR SchemaChange - Error parsing SQL: 'SET STATEMENT max_statement_time=60 FOR flush table'
Oct 28, 2022 # 06:10:40.047 06:10:40,045 ERROR AbstractSchemaStore - Error on bin log position Position[BinlogPosition[mysql-bin-changelog.049610:3209], lastHeartbeat=1666898518069]
As the last error log says Error on bin log position Position[BinlogPosition[mysql-bin-changelog.049610:3209], so to verify whether bin log file with name mysql-bin-changelog.049610:3209 exists or not we ran SHOW binary logs; and we found that file in list outputted by above command
Please help me in understanding what is going wrong here and help in solving the issue
Environment Details
OS: Centos
Platform - AWS instance(T4g Medium)
CPU - 2 CPU
RAM - 4GB
Maxwell Version - v1.37.7
Note: We are not handling DDL & our log retention is 3 days
Detailed logs that was logged when Maxwell was going down, sorry for posting huge logs :)
Oct 28, 2022 # 06:10:39.084 06:10:39,082 INFO ProducerConfig - ProducerConfig values:
Oct 28, 2022 # 06:10:39.146 06:10:39,146 INFO AppInfoParser - Kafka commitId : aaa7af6d4a11b29d
Oct 28, 2022 # 06:10:39.146 06:10:39,146 INFO AppInfoParser - Kafka version : 1.0.0
Oct 28, 2022 # 06:10:39.188 06:10:39,187 INFO Maxwell - Maxwell v1.37.7 is booting (MaxwellKafkaProducer), starting at Position[BinlogPosition[mysql-bin-changelog.049610:3136], lastHeartbeat=1666898518069]
Oct 28, 2022 # 06:10:39.377 06:10:39,377 INFO MysqlSavedSchema - Restoring schema id 22 (last modified at Position[BinlogPosition[mysql-bin-changelog.046940:91534], lastHeartbeat=1666103424529])
Oct 28, 2022 # 06:10:39.502 06:10:39,502 INFO MysqlSavedSchema - Restoring schema id 1 (last modified at Position[BinlogPosition[mysql-bin-changelog.040524:418929], lastHeartbeat=0])
Oct 28, 2022 # 06:10:39.555 06:10:39,555 INFO MysqlSavedSchema - beginning to play deltas...
Oct 28, 2022 # 06:10:39.576 06:10:39,576 INFO MysqlSavedSchema - played 21 deltas in 15ms
Oct 28, 2022 # 06:10:39.601 06:10:39,601 INFO BinlogConnectorReplicator - Setting initial binlog pos to: mysql-bin-changelog.049610:3136
Oct 28, 2022 # 06:10:39.605 06:10:39,605 INFO MaxwellHTTPServer - Maxwell http server starting
Oct 28, 2022 # 06:10:39.607 06:10:39,607 INFO MaxwellHTTPServer - Maxwell http server started on port 8080
Oct 28, 2022 # 06:10:39.649 06:10:39,649 INFO BinlogConnectorReplicator - Binlog connected.
Oct 28, 2022 # 06:10:39.649 06:10:39,646 INFO BinaryLogClient - Connected to mariadb-nlp.app.engati.local:3306 at mysql-bin-changelog.049610/3136 (sid:6379, cid:1560183)
Oct 28, 2022 # 06:10:39.669 06:10:39,669 INFO log - Logging initialized #2288ms to org.eclipse.jetty.util.log.Slf4jLog
Oct 28, 2022 # 06:10:39.902 06:10:39,902 INFO Server - jetty-9.4.41.v20210516; built: 2021-05-16T23:56:28.993Z; git: 98607f93c7833e7dc59489b13f3cb0a114fb9f4c; jvm 11.0.15+10
Oct 28, 2022 # 06:10:40.037 06:10:40,037 ERROR MysqlParserListener - (parse SET STATEMENT max_statement_time = 60 FOR flush table)
Oct 28, 2022 # 06:10:40.040 06:10:40,040 ERROR SchemaChange - Error parsing SQL: 'SET STATEMENT max_statement_time=60 FOR flush table'
Oct 28, 2022 # 06:10:40.047 at com.zendesk.maxwell.Maxwell.main(Maxwell.java:336)
Oct 28, 2022 # 06:10:40.047 at com.zendesk.maxwell.Maxwell.start(Maxwell.java:227)
Oct 28, 2022 # 06:10:40.047 at com.zendesk.maxwell.Maxwell.startInner(Maxwell.java:301)
Oct 28, 2022 # 06:10:40.047 at com.zendesk.maxwell.util.RunLoopProcess.runLoop(RunLoopProcess.java:34)
Oct 28, 2022 # 06:10:40.047 at com.zendesk.maxwell.replication.BinlogConnectorReplicator.work(BinlogConnectorReplicator.java:228)
Oct 28, 2022 # 06:10:40.047 at com.zendesk.maxwell.replication.BinlogConnectorReplicator.getRow(BinlogConnectorReplicator.java:723)
Oct 28, 2022 # 06:10:40.047 at com.zendesk.maxwell.replication.BinlogConnectorReplicator.processQueryEvent(BinlogConnectorReplicator.java:400)
Oct 28, 2022 # 06:10:40.047 at com.zendesk.maxwell.replication.BinlogConnectorReplicator.processQueryEvent(BinlogConnectorReplicator.java:378)
Oct 28, 2022 # 06:10:40.047 at com.zendesk.maxwell.schema.MysqlSchemaStore.processSQL(MysqlSchemaStore.java:102)
Oct 28, 2022 # 06:10:40.047 at com.zendesk.maxwell.schema.AbstractSchemaStore.resolveSQL(AbstractSchemaStore.java:49)
Oct 28, 2022 # 06:10:40.047 at com.zendesk.maxwell.schema.ddl.SchemaChange.parse(SchemaChange.java:108)
Oct 28, 2022 # 06:10:40.047 at com.zendesk.maxwell.schema.ddl.SchemaChange.parseSQL(SchemaChange.java:94)
Oct 28, 2022 # 06:10:40.047 at org.antlr.v4.runtime.tree.ParseTreeWalker.walk(ParseTreeWalker.java:28)
Oct 28, 2022 # 06:10:40.047 at org.antlr.v4.runtime.tree.ParseTreeWalker.walk(ParseTreeWalker.java:17)
Oct 28, 2022 # 06:10:40.047 at com.zendesk.maxwell.schema.ddl.MysqlParserListener.visitErrorNode(MysqlParserListener.java:93)
Oct 28, 2022 # 06:10:40.047 com.zendesk.maxwell.schema.ddl.MaxwellSQLSyntaxError: SET
Oct 28, 2022 # 06:10:40.047 06:10:40,045 ERROR AbstractSchemaStore - Error on bin log position Position[BinlogPosition[mysql-bin-changelog.049610:3209], lastHeartbeat=1666898518069]
Oct 28, 2022 # 06:10:40.047 06:10:40,044 INFO ContextHandler - Started o.e.j.s.ServletContextHandler#5628733f{/,null,AVAILABLE}
Oct 28, 2022 # 06:10:40.075 06:10:40,074 INFO Server - Started #2700ms
Oct 28, 2022 # 06:10:40.075 06:10:40,074 INFO AbstractConnector - Started ServerConnector#7152d3c1{HTTP/1.1, (http/1.1)}{0.0.0.0:8080}
Oct 28, 2022 # 06:10:40.129 06:10:40,129 INFO BinlogConnectorReplicator - Binlog disconnected.
Oct 28, 2022 # 06:10:40.149 06:10:40,149 INFO TaskManager - Stopping 5 tasks
Oct 28, 2022 # 06:10:40.187 at com.zendesk.maxwell.schema.ddl.SchemaChange.parseSQL(SchemaChange.java:94) ~[maxwell-1.37.7.jar:1.37.7]
Oct 28, 2022 # 06:10:40.187 at org.antlr.v4.runtime.tree.ParseTreeWalker.walk(ParseTreeWalker.java:28) ~[antlr4-runtime-4.8-1.jar:4.8-1]
Oct 28, 2022 # 06:10:40.187 at org.antlr.v4.runtime.tree.ParseTreeWalker.walk(ParseTreeWalker.java:17) ~[antlr4-runtime-4.8-1.jar:4.8-1]
Oct 28, 2022 # 06:10:40.187 at com.zendesk.maxwell.schema.ddl.MysqlParserListener.visitErrorNode(MysqlParserListener.java:93) ~[maxwell-1.37.7.jar:1.37.7]
Oct 28, 2022 # 06:10:40.187 com.zendesk.maxwell.schema.ddl.MaxwellSQLSyntaxError: SET
Oct 28, 2022 # 06:10:40.187 06:10:40,152 ERROR TaskManager - cause:
Oct 28, 2022 # 06:10:40.187 at com.zendesk.maxwell.Maxwell.main(Maxwell.java:336) ~[maxwell-1.37.7.jar:1.37.7]
Oct 28, 2022 # 06:10:40.187 at com.zendesk.maxwell.Maxwell.start(Maxwell.java:227) ~[maxwell-1.37.7.jar:1.37.7]
Oct 28, 2022 # 06:10:40.187 at com.zendesk.maxwell.Maxwell.startInner(Maxwell.java:301) ~[maxwell-1.37.7.jar:1.37.7]
Oct 28, 2022 # 06:10:40.187 at com.zendesk.maxwell.util.RunLoopProcess.runLoop(RunLoopProcess.java:34) ~[maxwell-1.37.7.jar:1.37.7]
Oct 28, 2022 # 06:10:40.187 at com.zendesk.maxwell.replication.BinlogConnectorReplicator.work(BinlogConnectorReplicator.java:228) ~[maxwell-1.37.7.jar:1.37.7]
Oct 28, 2022 # 06:10:40.187 at com.zendesk.maxwell.replication.BinlogConnectorReplicator.getRow(BinlogConnectorReplicator.java:723) ~[maxwell-1.37.7.jar:1.37.7]
Oct 28, 2022 # 06:10:40.187 at com.zendesk.maxwell.replication.BinlogConnectorReplicator.processQueryEvent(BinlogConnectorReplicator.java:400) ~[maxwell-1.37.7.jar:1.37.7]
Oct 28, 2022 # 06:10:40.187 at com.zendesk.maxwell.replication.BinlogConnectorReplicator.processQueryEvent(BinlogConnectorReplicator.java:378) ~[maxwell-1.37.7.jar:1.37.7]
Oct 28, 2022 # 06:10:40.187 at com.zendesk.maxwell.schema.MysqlSchemaStore.processSQL(MysqlSchemaStore.java:102) ~[maxwell-1.37.7.jar:1.37.7]
Oct 28, 2022 # 06:10:40.187 at com.zendesk.maxwell.schema.AbstractSchemaStore.resolveSQL(AbstractSchemaStore.java:49) ~[maxwell-1.37.7.jar:1.37.7]
Oct 28, 2022 # 06:10:40.187 at com.zendesk.maxwell.schema.ddl.SchemaChange.parse(SchemaChange.java:108) ~[maxwell-1.37.7.jar:1.37.7]
Oct 28, 2022 # 06:10:40.189 06:10:40,189 INFO TaskManager - Stopping: com.zendesk.maxwell.schema.PositionStoreThread#51b3ee1b
Oct 28, 2022 # 06:10:40.191 06:10:40,189 INFO TaskManager - Stopping: com.zendesk.maxwell.producer.MaxwellKafkaProducerWorker#5ec6ffb6
Oct 28, 2022 # 06:10:40.192 06:10:40,192 INFO KafkaProducer - [Producer clientId=producer-1] Closing the Kafka producer with timeoutMillis = 9223372036854775807 ms.
Oct 28, 2022 # 06:10:40.201 06:10:40,201 INFO TaskManager - Stopping: com.zendesk.maxwell.monitoring.MaxwellHTTPServerWorker#1490968e
Oct 28, 2022 # 06:10:40.201 at com.zendesk.maxwell.Maxwell.main(Maxwell.java:336)
Oct 28, 2022 # 06:10:40.201 at com.zendesk.maxwell.Maxwell.start(Maxwell.java:227)
Oct 28, 2022 # 06:10:40.201 at com.zendesk.maxwell.Maxwell.startInner(Maxwell.java:301)
Oct 28, 2022 # 06:10:40.201 at com.zendesk.maxwell.util.RunLoopProcess.runLoop(RunLoopProcess.java:34)
Oct 28, 2022 # 06:10:40.201 at com.zendesk.maxwell.replication.BinlogConnectorReplicator.work(BinlogConnectorReplicator.java:228)
Oct 28, 2022 # 06:10:40.201 at com.zendesk.maxwell.replication.BinlogConnectorReplicator.getRow(BinlogConnectorReplicator.java:723)
Oct 28, 2022 # 06:10:40.201 at com.zendesk.maxwell.replication.BinlogConnectorReplicator.processQueryEvent(BinlogConnectorReplicator.java:400)
Oct 28, 2022 # 06:10:40.201 at com.zendesk.maxwell.replication.BinlogConnectorReplicator.processQueryEvent(BinlogConnectorReplicator.java:378)
Oct 28, 2022 # 06:10:40.201 at com.zendesk.maxwell.schema.MysqlSchemaStore.processSQL(MysqlSchemaStore.java:102)
Oct 28, 2022 # 06:10:40.201 at com.zendesk.maxwell.schema.AbstractSchemaStore.resolveSQL(AbstractSchemaStore.java:49)
Oct 28, 2022 # 06:10:40.201 at com.zendesk.maxwell.schema.ddl.SchemaChange.parse(SchemaChange.java:108)
Oct 28, 2022 # 06:10:40.201 at com.zendesk.maxwell.schema.ddl.SchemaChange.parseSQL(SchemaChange.java:94)
Oct 28, 2022 # 06:10:40.201 at org.antlr.v4.runtime.tree.ParseTreeWalker.walk(ParseTreeWalker.java:28)
Oct 28, 2022 # 06:10:40.201 at org.antlr.v4.runtime.tree.ParseTreeWalker.walk(ParseTreeWalker.java:17)
Oct 28, 2022 # 06:10:40.201 at com.zendesk.maxwell.schema.ddl.MysqlParserListener.visitErrorNode(MysqlParserListener.java:93)
Oct 28, 2022 # 06:10:40.201 com.zendesk.maxwell.schema.ddl.MaxwellSQLSyntaxError: SET
Oct 28, 2022 # 06:10:40.201 06:10:40,199 INFO TaskManager - Stopping: com.zendesk.maxwell.replication.BinlogConnectorReplicator#5a1d68e0
Oct 28, 2022 # 06:10:40.201 06:10:40,198 INFO TaskManager - Stopping: com.zendesk.maxwell.bootstrap.BootstrapController#3857c48d
Oct 28, 2022 # 06:10:40.220 06:10:40,219 INFO AbstractConnector - Stopped ServerConnector#7152d3c1{HTTP/1.1, (http/1.1)}{0.0.0.0:8080}
Oct 28, 2022 # 06:10:40.223 06:10:40,223 INFO ContextHandler - Stopped o.e.j.s.ServletContextHandler#5628733f{/,null,STOPPED}
ct 28, 2022 # 06:10:41.637 06:10:41,636 INFO TaskManager - Stopped all tasks
The java backtrace shows this is an error in Maxwell. This was reported as issue 1931.
The issue is that Maxwell in the v1.37.7 doesn't parse SET STATEMENT ... FOR against a blacklist of SQL like FLUSH that its meant to take no action on.
Due to a very responsive upstream, this is is now fixed in v1.39.2.
I am looking to do a CASE statement in a calculated field to identify dates as holidays, and have tried:
CASE
WHEN
FORMAT_DATETIME("%Y%M%D", date) BETWEEN 20190218 AND 20190219 OR
FORMAT_DATETIME("%Y%M%D", date) BETWEEN 20220220 AND 20220222
THEN 'presidents_day'
ELSE NULL
END
I am having trouble formatting the date correctly to use the BETWEEN statement and I am getting the error:
Invalid formula - Operator "BETWEEN" doesn't support TEXT BETWEEN NUMBER AND NUMBER. Operator "BETWEEN" supports ANY BETWEEN ANY AND ANY.
Data Set (Google Sheets):
date
17 Feb 2019
18 Feb 2019
19 Feb 2019
20 Feb 2019
19 Feb 2022
20 Feb 2022
21 Feb 2022
22 Feb 2022
23 Feb 2022
Expected output:
date
Date_CASE
Feb 17, 2019
Feb 18, 2019
presidents_day
Feb 19, 2019
presidents_day
Feb 20, 2019
Feb 19, 2022
Feb 20, 2022
presidents_day
Feb 21, 2022
presidents_day
Feb 22, 2022
presidents_day
Feb 23, 2022
Google Data Studio report
Using the BETWEEN operator in conjunction with the DATE function ("Creates a date" in the YYYY, MM, DD format) would create the required CASE statement (where date represents the date field):
CASE
WHEN
date BETWEEN DATE(2019, 02, 18) AND DATE(2019, 02, 19) OR
date BETWEEN DATE(2022, 02, 20) AND DATE(2022, 02, 22)
THEN "presidents_day"
ELSE NULL
END
Publicly editable Google Data Studio report (embedded Google Sheets data source) and a GIF to elaborate:
I'm trying to forecast an accumulated monthly time series (see data below) with the auto.arima function with exogenous regressors. I have two issues.
1) My first issue is that when I fit the model and use the forecast function to predict the second half of 2019 the forecast starts from zero as can be seen in this forecast plot.
This only happens when I include a matrix of exogenous regressors and not when I use a single time series as regressor as can be seen in this plot.
Why is that? My code is:
regnskab <- ts(data$Regnskab, frequency = 12, start = c(2014,1), end = c(2019,6))
budget <- ts(data$Budget, frequency = 12, start = c(2014,1), end = c(2019,6))
dagtilbud <- ts(data$Dagtilbud, frequency = 12, start = c(2014,1), end = c(2019,6))
skole <- ts(data$Skole, frequency = 12, start = c(2014,1), end = c(2019,6))
sundhed <- ts(data$Sundhed, frequency = 12, start = c(2014,1), end = c(2019,6))
miljø <- ts(data$Miljø, frequency = 12, start = c(2014,1), end = c(2019,6))
tsmatrix <- cbind(budget, dagtilbud, miljø, skole, sundhed)
fit <- auto.arima(regnskab, xreg = tsmatrix)
fcast <- forecast(fit, h = 6, xreg = tsmatrix)
autoplot(fcast)
summary(fcast)
2) My second issue is that I want a forecast for 6 months forward, but the h=6 option does not apply when including exogenous regressors. Can this be solved in any way? Again, it is not a problem without exogenous regressors.
I hope you can help and sorry for the data spamming!
A summary of my model:
> summary(fcast)
Forecast method: Regression with ARIMA(1,0,0)(1,0,0)[12] errors
Model Information:
Series: regnskab
Regression with ARIMA(1,0,0)(1,0,0)[12] errors
Coefficients:
ar1 sar1 budget dagtilbud miljø skole sundhed
0.7466 0.6693 0.0101 2.0861 0.1037 2.5240 7.7623
s.e. 0.0935 0.1042 0.0077 0.6967 1.7672 0.7535 2.6611
sigma^2 estimated as 1.884: log likelihood=-114.84
AIC=245.68 AICc=248.21 BIC=263.2
Error measures:
ME RMSE MAE MPE MAPE MASE ACF1
Training set -0.01739231 1.297694 0.9002519 -0.1065542 0.9060671 0.3687968 -0.03222251
> regnskab
Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec
2014 19.11281 36.68003 54.66383 74.93864 94.10328 113.36373 134.96638 152.75095 170.79800 189.55430 207.00803 227.82096
2015 18.90205 37.20079 55.73305 75.44689 94.74538 115.03997 136.79829 155.41164 173.69889 191.96484 210.42391 231.52982
2016 20.12939 38.51516 56.32522 78.04822 97.46681 116.58424 139.43255 157.83048 175.26727 195.06259 213.73833 234.45281
2017 20.43082 38.55219 57.50119 78.07558 97.50132 119.13735 141.71973 161.49281 180.32002 199.27769 216.92571 239.40683
2018 19.35194 37.40571 55.36897 76.33412 95.90922 117.41442 140.03545 159.10527 177.88068 194.43207 215.28905 245.85670
2019 20.85722 40.01691 59.97383 81.92719 103.15225 123.81454
> tsmatrix
budget dagtilbud miljø skole sundhed
Jan 2014 230.0605 2.616639 0.597125 3.193017 0.456470
Feb 2014 230.0605 5.025708 1.047983 6.402845 1.012468
Mar 2014 230.0605 7.548424 1.458105 9.816814 1.602384
Apr 2014 230.0605 10.350321 1.957022 13.446215 2.263646
May 2014 230.0605 12.913356 2.439587 17.100957 2.873934
Jun 2014 230.0605 15.380146 2.915020 20.791343 3.498350
Jul 2014 230.0605 17.931069 3.434464 23.701276 3.987042
Aug 2014 230.0605 20.441732 3.837721 27.319389 4.597127
Sep 2014 230.0605 22.839922 4.295486 30.859254 5.185271
Oct 2014 230.0605 25.234620 4.761740 34.350629 5.819948
Nov 2014 230.0605 27.554525 5.163576 37.688182 6.416112
Dec 2014 230.0605 30.109529 5.742699 42.095747 7.313195
Jan 2015 234.5089 2.404843 0.643976 3.185265 0.477921
Feb 2015 234.5089 5.090533 1.094641 6.654691 1.040235
Mar 2015 234.5089 7.319261 1.462134 10.168618 1.659232
Apr 2015 234.5089 10.040823 1.943120 14.082780 2.356247
May 2015 234.5089 12.470742 2.431818 17.827494 2.963360
Jun 2015 234.5089 14.846720 3.019969 21.612527 3.615607
Jul 2015 234.5089 17.543682 3.540084 24.702634 4.126374
Aug 2015 234.5089 19.786612 3.984587 28.330977 4.741392
Sep 2015 234.5089 22.037785 4.362497 31.942762 5.367815
Oct 2015 234.5089 24.347196 4.805391 35.423452 6.019133
Nov 2015 234.5089 26.751255 5.250481 38.964450 6.642436
Dec 2015 234.5089 29.276667 5.789919 43.428855 7.555361
Jan 2016 237.2361 2.538133 0.721184 3.352676 0.508847
Feb 2016 237.2361 4.906975 1.377086 6.804320 1.100914
Mar 2016 237.2361 7.184724 1.719629 10.290800 1.744743
Apr 2016 237.2361 9.895237 2.333842 14.223635 2.480869
May 2016 237.2361 12.316509 2.850905 17.957433 3.115473
Jun 2016 237.2361 14.578536 3.404785 21.759111 3.858713
Jul 2016 237.2361 17.215216 3.867858 24.949928 4.359129
Aug 2016 237.2361 19.399769 4.406750 28.503968 5.030926
Sep 2016 237.2361 21.702215 4.792190 32.112449 5.674259
Oct 2016 237.2361 24.112579 5.238401 35.625806 6.328084
Nov 2016 237.2361 26.453919 5.677270 39.158270 6.977991
Dec 2016 237.2361 28.969565 6.098136 43.558768 7.974787
Jan 2017 241.9089 2.538901 0.917354 3.488151 0.535639
Feb 2017 241.9089 4.847981 1.450172 6.857674 1.138782
Mar 2017 241.9089 7.281994 1.899543 10.394615 1.808938
Apr 2017 241.9089 10.031959 2.388542 14.335895 2.554613
May 2017 241.9089 12.411935 2.893036 18.042788 3.206503
Jun 2017 241.9089 14.982942 3.282057 22.137085 3.959622
Jul 2017 241.9089 17.567382 3.770244 25.392706 4.540047
Aug 2017 241.9089 19.738993 4.484434 29.108498 5.196528
Sep 2017 241.9089 22.273634 5.051894 32.693173 5.870257
Oct 2017 241.9089 24.636583 5.456458 36.203329 6.544383
Nov 2017 241.9089 27.259158 5.793056 39.867875 7.249982
Dec 2017 241.9089 29.831986 6.079033 44.273697 8.269454
Jan 2018 246.0944 2.467981 0.985846 3.377469 0.544258
Feb 2018 246.0944 4.877189 1.383190 6.815726 1.167431
Mar 2018 246.0944 7.367918 1.738033 10.486250 1.848972
Apr 2018 246.0944 10.148353 2.249466 14.439246 2.614913
May 2018 246.0944 12.687311 2.844656 18.194669 3.328234
Jun 2018 246.0944 15.482606 3.616200 22.433048 4.108966
Jul 2018 246.0944 17.715938 3.982451 25.305411 4.689087
Aug 2018 246.0944 20.077201 4.696088 29.018017 5.396796
Sep 2018 246.0944 22.659831 5.158706 32.860215 6.087975
Oct 2018 246.0944 24.719623 5.586616 36.143198 6.713136
Nov 2018 246.0944 27.750904 6.069519 40.237747 7.501346
Dec 2018 246.0944 30.326036 6.308786 44.733470 8.564162
Jan 2019 251.9230 2.653607 0.932776 3.501389 0.595458
Feb 2019 251.9230 5.070721 1.445741 6.991538 1.243721
Mar 2019 251.9230 7.542256 1.825956 10.737607 1.941444
Apr 2019 251.9230 10.301781 2.330015 14.647082 2.733956
May 2019 251.9230 13.193286 2.999816 18.671285 3.455616
Jun 2019 251.9230 15.423716 3.516735 22.612031 4.145206
The xreg matrix in the forecast function should be for the future time periods. If you want h=6, then give a matrix of 6 rows corresponding to those 6 periods.
Here's some of my data, read in from a file names AttReport_all:
Registration.Date Join.Time Leave.Time
1 Jul 05, 2011 09:30 PM EDT Jul 07, 2011 01:05 PM EDT Jul 07, 2011 01:53 PM EDT
2 Jul 05, 2011 10:20 AM EDT Jul 07, 2011 01:04 PM EDT Jul 07, 2011 01:53 PM EDT
3 Jul 04, 2011 02:41 PM EDT Jul 07, 2011 12:49 PM EDT Jul 07, 2011 01:53 PM EDT
4 Jul 04, 2011 11:38 PM EDT Jul 07, 2011 12:49 PM EDT Jul 07, 2011 01:54 PM EDT
5 Jul 05, 2011 11:41 AM EDT Jul 07, 2011 12:54 PM EDT Jul 07, 2011 01:54 PM EDT
6 Jul 07, 2011 11:08 AM EDT Jul 07, 2011 01:16 PM EDT Jul 07, 2011 01:53 PM EDT
If I do strptime(AttReport_all$Registration.Date, "%b %m, %Y %H:%M %p", tz="") I get an array of NAs where I'm expecting dates.
Sys.setlocale("LC_TIME", "C") returns "C"
typeof(AttReport_all$Registration.Date) returns "integer"
is.factor(AttReport_all$Registration.Date) returns TRUE.
What am I missing?
Here's version output, if it helps:
platform i386-pc-mingw32
arch i386
os mingw32
system i386, mingw32
status
major 2
minor 13.0
year 2011
month 04
day 13
svn rev 55427
language R
version.string R version 2.13.0 (2011-04-13)
strptime automatically runs as.character on the first argument (so it doesn't matter that it's a factor) and any trailing characters not specified in format= are ignored (so "EDT" doesn't matter).
The only issues are the typo #Ben Bolker identified (%m should be %d) and %H should be %I (?strptime says you should not use %H with %p).
# %b and %m are both *month* formats
strptime("Jul 05, 2011 09:30 PM EDT", "%b %m, %Y %H:%M %p", tz="")
# [1] NA
# change %m to %d and we no longer get NA, but the time is wrong (AM, not PM)
strptime("Jul 05, 2011 09:30 PM EDT", "%b %d, %Y %H:%M %p", tz="")
# [1] "2011-07-05 09:30:00"
# use %I (not %H) with %p
strptime("Jul 05, 2011 09:30 PM EDT", "%b %d, %Y %I:%M %p", tz="")
# [1] "2011-07-05 21:30:00"
I'm very new for ASP.NET MVC. I found that this is very cool thing and KIGG is good to start creating real MVC web application.
I've followed KIGG development guide part 1 and run application.
However, only listing directory shows on web browser as below
Directory Listing -- /
Friday, February 05, 2010 12:44 PM <dir> ActionResult
Friday, February 05, 2010 12:44 PM <dir> App_Data
Friday, February 05, 2010 12:44 PM <dir> Assets
Friday, February 05, 2010 01:08 PM <dir> bin
Friday, February 05, 2010 12:44 PM <dir> BootstrapperTasks
Friday, February 05, 2010 12:44 PM <dir> Controllers
Friday, February 05, 2010 12:44 PM <dir> Controls
Friday, February 05, 2010 12:44 PM <dir> DataServices
Friday, February 05, 2010 12:44 PM <dir> ErrorPages
Friday, February 05, 2010 12:44 PM <dir> Extension
Friday, February 05, 2010 12:44 PM <dir> Filters
Friday, February 05, 2010 12:44 PM <dir> Handlers
Friday, February 05, 2010 12:44 PM <dir> Helpers
Monday, February 15, 2010 08:33 AM <dir> Logs
Friday, February 05, 2010 12:44 PM <dir> MailTemplates
Friday, February 05, 2010 12:44 PM <dir> Modules
Friday, February 05, 2010 12:45 PM <dir> obj
Friday, February 05, 2010 12:44 PM <dir> Properties
Friday, February 05, 2010 12:44 PM <dir> ViewData
Friday, February 05, 2010 12:44 PM <dir> Views
Sunday, August 16, 2009 12:53 PM 103 Global.asax
Sunday, August 16, 2009 12:53 PM 601 Global.asax.cs
Sunday, August 16, 2009 12:53 PM 27,779 Kigg.Web.csproj
Friday, February 05, 2010 01:35 PM 1,532 Kigg.Web.csproj.user
Sunday, August 16, 2009 12:53 PM 170 robots.txt
Monday, February 15, 2010 08:54 AM 100,524 Web.config
Version Information: ASP.NET Development Server 9.0.0.0
Please could you help me to solver my problem.
Thanks,
Try the following address in your browser: http://localhost:PORT/story/published where PORT is the port number assigned by Visual Studio's web development server.