Queries about the ReminderMinutesBeforeStart property - microsoft-graph-api

I have been encouraged to ask this question on SO instead of GitHub:
According to the prototype for ReminderMinutesBeforeStart:
[JsonProperty(NullValueHandling = NullValueHandling.Ignore,
PropertyName = "reminderMinutesBeforeStart",
Required = Newtonsoft.Json.Required.Default)]
public Int32? ReminderMinutesBeforeStart { get; set; }
I have a few questions all pertaining to this property.
In the Outlook Web App interface it presents:
Why does it present None and 0 minutes? None makes sense. 0 minutes doesn't IMHO.
The maximum value presented in the above drop list is 2 weeks. Is this the official limit? I can't see it documented. If it is the limit, can it be expanded to 4 weeks so that it is as competitive as the Google reminder interval?
What exactly happens if we use a value larger than the 2 weeks or a negative value? Is this documented?
Thank you for the clarification.

To answer your questions:
0 minutes will trigger a reminder when the event happens. If you've scheduled an event at 2:00 PM and set the reminder of 0 minutes it will pop a reminder at exactly 2:00 PM. If you set the reminder for 5 minutes, a reminder will pop at at 1:55 PM. If you've set it for None then it will not pop any reminder.
Every UI has to make choices on what it displayed to a user. This property is scoped to minutes which means the value could be 0,1,2,3,4,5,etc. but showing every possible option would make the UI unusable. Therefore some choices are made about what is reasonable.
The class defines the property as Int32? so it could theoretically be set as high as 2,147,483,647 (which represents more than 4000 years). Clearly that would be an irrational value. For 4 Weeks, simply set it for 40320.

Related

What is the time unit for "datadelay" attribute on GoogleFinance?

I'm using the GoogleFinance() functions on a Google spreadsheet to keep track of my stocks. With the "datadelay" attribute I can check how long ago the data has been updated for the last time. But it only returns a raw number, like "54000" for one ticker and "15" for another. What time unit is that supposed to be? minutes? seconds? milliseconds?
When I check the documentation for the Google Finance I saw that there is a page explains there might be delay up to 20 minutes. They also mentioned that they are using different exchanges to retrieve market data and all this different exchanges might have different data delay. It can explain the differences in the "datadelay" column.
For the unit of this column, my assumption is it should be shorter than seconds since 54000 seconds = 900 min, which is far higher than the maximum delay defined in the help page. But I am not sure what would be value for this column when you query in the not-trading days.
The page shows delays for each exchange.
GoogleFinance() function updates every minute (if it is set so), but keep in mind that results may be delayed up to 20 minutes. so the answer is between 1-20 minutes

Kendo Scheduler Custom time slot creation issue

i want to create custom time slot in kendo day scheduler. For example i want to create the time slot of 15 min duration from 9:00 am to 1:00 pm and after that i want to create time slot of 30 minutes duration from 1:00 pm to 5:00 pm. i am getting time slots from DB and i want to create slots as it is as its coming from DB.how can i Override the default slot creation of kendo calendar.By defining "majorTick" i am getting all slots with same time duration but i want to customize this duration according to the time coming from DB with each row. Any suggestion/idea to achieve this functionality.
The Kendo Scheduler doesn't support this behavior at all.
If you'll make changes to the table element itself you'll probably break the scheduler's functionality.
A possible solution is this:
Set the major/minor tick size (according to your preference) to the smallest common denominator among all the slot sizes you got from the server.
Override all the move, moveEnd, resize, resizeEnd... events to cancel any changes if the change made didn't fit the "actual slot size" in that time.
Use e.preventDeafault(); to cancel the changes.
If you need further explanation, let me know.

Prepping Data For Usage Clustering

Dataset: I'm given the number of minutes individual customers use a product each day and am trying to cluster this data in order to find common usage patterns.
My question: How can I format the data so that, for example, a power user with high levels of use for a year looks the same as a different power user who has only been able to use the device for a month before I ended data collection?
So far I've turned each customer into an array where each cell is the number of minutes used that day. This array starts when the user first uses the product and ends after the user's first year of use. All entries in the cells must be double values (e.x. 200.0 minutes used) for the clustering model. I've considered either setting all cells/days after the last day of data collection to either -1.0 or NULL. Are either of these a valid approach? If not what would you suggest?
For the problem where you want both users (one that used the product a lot every day for a year, and the other used it a lot for one month), create a new entry where it's values are:
avg_usage per time_bin
time_bin can be a month, a day or another time bin which best fits your needs.
This way, a user which use a product, let's say 200 minutes per day for one year, will get:
200 * 30 * 12 / 12 = 6000 minutes per month
and the other user, which joined just last month, will also get, with the exact same usage will get:
200 * 30 * 1 / 1 = 6000 minutes per month.
This way, it doesn't matter when you have started to use the product, the only thing that matter, is the usage rate.
An important thing you might take into consideration, that products, may be forgotten for some time. for example, a computer, and I'm away for a vacation. Those days I didn't use my computer, doesn't have (maybe) an effect of my general usage of this product. So, based on your data, product and intuition you might consider removing gaps like the one I mentioned, and not take it into account inside the calculation.
The amount of time a user has used your product could be a signal of something, but if indeed he only started some time ago, and still using it until today, it may be something you need to take into consideration, and for that use, this average binning technique may help.

How Do I Add a variable amount of Time to a Datetime variable in Ruby and/or Rails?

I have an events table in my database, which stores a start field (datetime) and a duration field (integer) as well as a unit field (string - Minutes, Hours or Days). In order to derive the end date, I need to add the duration (according to units) to the start. Something like this...
#end = #event.start + (#event.duration).(#event.unit)
I'm just not sure how to accomplish this in Ruby/Rails.
What you're trying to do is:
#event.duration.public_send(#event.unit.downcase)
If you are able to, you may want to store the duration in minutes (as an integer possibly) in your DB or another similar unit and then convert to days or hours for display.
This would make it easier to whitelist the units when storing the data from the user and set up validations to make sure your data is valid.
Also, this will give you extra flexibility, so you can easily have a duration of 1 day 3 hours and 15 minutes if you want to (1,635 minutes) and it will give you the ability to easily sort the events by duration if you want.

zabbix trigger based on one week old data

Iam very much new to Zabbix. i have tried my hands on triggers. what i was able to make out was it can set triggers on some constant threshold. what i need is that it should compare with the data which i exactly one week old for that exact time and if the change is above some particular % threshold then trigger an alert.
i had tried some steps like keeping the current data and one week old data in and external database and then querying that data with zabbix ODBC drivers but then i was stuck when i was not able to compare two items.
if i may be confusing stating my issue. let me know and i will be more clear with my problem
you can use the last() function for this.
For example if we sample our data every 5 minutes and we want to compare the last value with the value 10 minutes ago we can use
(item1.last(#1)/item2.last(#3)) > 1.2 - this will trigger an alert if the latest value is greater by 20% than the value 10 minutes ago.
From the documentation it is not very clear to me if you can use seconds or if they will be ignored (for example item.last(60) - to get the value 1 minute ago), but you can read more about the last function here:
https://www.zabbix.com/documentation/2.4/manual/appendix/triggers/functions

Resources