excepted result
I want to select multiple resources in fullCalendar.
For example I would like to select all resources from Resource A to Resource D and duration 12pm am to 2.30 pm.
Is it possible?
Related
I have some queries that look at aggregated data over a long period of time (180 days) for data that is per second (example query below). The table's hot cache is 31 days so the queries can take over a minute to return and this is not acceptable for the dashboards I want to display them on. What would be recommended optimization strategies? My thoughts so far is to either use an update policy to push the data for these tags into a separate table with a hot cache of 180 days or to use a materialized view.
raw_table
| where TimeStamp between (now(-180d) .. now()) and TagName in ("Tag1","Tag2")
| extend Date = startofday(TimeStamp)
| summarize Value1=max(Value) by Date,TagName
| summarize Value1=sum(Value1) by Date
| project TagName="AggregatedData",Date,Value
My thoughts so far is to either use an update policy to push the data for these tags into a separate table with a hot cache of 180 days or to use a materialized view.
both options you mentioned are appropriate (even a combination of both, if required)
I'm using fullcalendar resource schedular plugin trial version. I set a month view. I want to disable click event for days [Monday, Wednesday, Thursday and saturaday] of every month. So end-user can't book resources for those days.
I will suggest to use selectAllow function and inside the function write your logic which time to allow and which time to disallow user select on a slot.
https://fullcalendar.io/docs/selectAllow
Am a beginner in android development and i am designing an android app which takes input of a date and stores it in sqlite database. Could you please explain how i can retrieve the date and use it to calculate other dates which i will display in another activity
Eg if input is 1/1/2019, i need to calculate events that occur after this date and display them in order of events and the date
Event 1 - 12/01/2019
Event 2 - 2/02/2019
Event 3 - 26/02/2019
Event 1 occurs after like 21 days, event 2 occurs after like 24 days
How should i perform this calculation and display them in another activity?
The link mentioned above is correct. To put it simply just use SQLite's date function - it can calculate dates quite easily:
SELECT date('2019-01-12', '+21 days');
gives you 2019-02-02.
Instead of the date value use a column name of your table if approbiate.
Take the calculated date for the second event and add 24 days and SQLite gives you the date for the third event.
SELECT date('2019-02-02', '+24 days');
2019-02-26
Hint: my answer only deals with the database side (cause that's what your question is tagged with). I have no idea about the Android programming.
I am trying to schedule a Job in Autosys and I would like this job to run once a month. Say, 5th day of every month. Could you please help how we can configure this in Autosys?
I did some research and came to know that we need to create a calendar in Autosys. Could someone please help how we can create and configure such a calendar in autosys?
There are a few ways to create a calendar with tools provided with Autosys. The commands to launch the tools are autocal (which is a graphical editor) and autocal_asc (which is a text-based editor). The executables are available in the Autosys root user directory (e.g. /etc/autosys). I would recommend using the graphical interface, since it gives some options which will make it easier on you.
Once the utility is running, you should be able to create a new calendar (File > New). Give it a name (e.g. 5thOfTheMonth), and choose Edit > Apply Rule. Here you can configure the day(s) of the month you wish to run the job on, and many other options.
Once the calendar is created and saved, you can tie a job to it using the run_calendar JIL command (run_calendar: 5thOfTheMonth) or specifying the calendar in the Job Definition > Date/Time Options graphical interface.
make an extended calendar, like this-
5th_day_every_month
-------------------
Enter Name: 5th_day_evry_mnth
Enter Workdays [XXXXX..]:
Enter Non-workday Actions [' ',O,N,W,P]:
Enter Holiday Actions [' ',O,S,N,W,P]:
Enter Holiday Calendar [none]:
Enter Cycle Name [none]:
Enter Date Adjustment [0]:
Enter Date Conditions [DAILY]: MNTHD#5
If you have an Autosys web portal that allows you to import a calendar from a file, you can define an extended calendar inside a file. For the condition attribute of the extended calendar, you can specify a day of the month with MNTHD#nn, where nn is the nnth day of the month.
The extended calendar can be defined like
extended_calendar: fifth_of_month
condition: MNTHD#5
and you can include the calendar as the run_calendar attribute of your job like
insert_job: job_name
run_calendar: fifth_of_month
Find more information here on the different conditions for an extended calendar.
I am looking for a ready made control, ASP.NET server control or jQuery, or close enough which satisfies these requirements for a ASP.NET app:
1- Supports a year view (can display 12 months).
2- Ability to select a date range using Click on start date - shift click on end date and it selects all the days in between.
3- A date range can span more than one month. Start date can be in one month and end date in another month and it selects all days in between.
4- Can deselect a day inside a selected range (using ctrl-click).
5- Can select multiple individual days using ctrl-click. (Can do this across 12 months).
6- Can select multiple date ranges. (none of the controls I know supports this. When I select another date, the days in the older range disappear)
7- Selected dates will be saved in a database and I need to support ability to display previously selected dates when page renders the datepicker.
8- Need source code to be able to customize
There probably doesn't exist a control which does all this. The closest ones I have found so far:
1- JS Calendar. Can't select more than one date range. Can't display more than one month?
2- DatePicker. Can't select more than one date range. Can't multiselect.
3- Telerik RadCalendar. All I know I can multiselect. No date range. Need to purchase whole ASP.NET suite.
The one from EssentialObjects.com did it. The one from about.com was second. Telerik's datepicker does a postback every time I changed the month which I didn't like.