how to create Event which repeats every specific day - ios

I do have a function like , On every thursday there is a show coming in my application and I want to provide add event functionality which will set event for every thursday for example next 5 years.
I know how to add Event but do not have idea how to add event for every thursday or a specific day.
Thanks your for your help.

Plenty of examples at https://www.rfc-editor.org/rfc/rfc5545#section-3.8.5.3
If unsure, you can always create such an event in your calendar client of choice and then export this event. Or you can go to http://jkbr.github.io/rrule/ and build it. For example http://jkbr.github.io/rrule/#/text/every%20week%20on%20Thursday%20until%20April%2017,%202019

Related

Capybara DayPickerInput selection?

Has anyone had any luck in figuring out how to use the react library https://react-day-picker.js.org/docs/input/
With Capybara/Selenium? Unfortunately it doesn't allow simply typing in the text such as MM/DD/YYYY like most date-pickers. This only allows mouse selection.
Or is specifically setting the value basically the only way to do so?
Without an example which shows the actual configuration of react-day-picker you're dealing with it's impossible to say exactly what you need to do, but the general rule is if you are testing the sites functionality then do what a user would need to do. In your case that may mean click on the forward/back month arrows until you get to the desired month, then click on the specific day element. Assuming the date you want to select is in the future (September 20, 2019) it would be something like
caption = find('.DayPicker-Caption')
until caption.has_text?('September 2019', wait: 0) do
current_month = caption.text
find('.DayPicker-NavButton--next').click
# wait for month to change
expect(caption).not_to have_text(current_month)
end
find('.DayPicker-Day', exact_text: '20').click
If you're not actually testing functionality (web scraping, etc) then you can use execute_script to call the react-day-picker JS API and set a specific date.

Custom Quartz.Net trigger

I would like to implement my own custom trigger. the main purpose of the trigger twice: on start date and end date (think of it as on/off switch, "on" state and start date and "off" state on end date).
What is best way to achieve that?
AbstractTrigger or implement ITrigger?
Implementing IScheduleBuilder is required?
When you start to wonder whether to implement your own trigger there's possibly something going to the wrong direction. Quartz has a rich set of triggers that should cater for various scheduling needs which are based on interval/reoccurrence rules.
Not fully understanding your use case, I'd just schedule two triggers for start and stop actions. You could parametrize the triggers to supply the operation mode via job data map (TurnOn, TurnOff). You easily have start action to run on times like 8:35 am, every Monday, Wednesday and Saturday and corresponding stop trigger say the given dates on 10 pm.
I created the custom trigger by extending AbstactTrigger and implementing ISchedulerBuilder specified to this trigger type.

rails fullCalendar, How can I show end time of a event but omit the title of the event?

I have checked a lot of related questions, but no one actually solve my problem.
I am now writing a rails app and use fullCalendar.
I am able to show events on my calendar, but with start time and the title of the event.
Actually these is end time for the even under the month view, and events longer than 30 mins under the week and day view. But no end time for the events of duration less than 30 minutes under view of week and day.
Besides, I hope not to show the title of the event. I find other answers says it will need to change the source file of fullcanlendar, I am wondering if there is any way to do it without changing the souce code of full calendar.
You may be looking for the eventRender callback:
http://fullcalendar.io/docs/event_rendering/eventRender/
With this, you can alter the event's html element however you need to.

WF DelayActivity fires immediately?

I have a Workflow I have created and deployed to a Sharepoint 2007 farm. When it runs against an item two delay activities I have created fire immediately.
I have setup a callback on the InitializeTimeoutDuration event. Through logs and debug output I can see that it is setting the delay to one hour. However, at the next SP timer job cycle (less than 5 minutes) the events proceeding the Delay activity fire off.
I'm lost here. Any help is greatly appreciated.
Update
Through some digging I was able to determine why this was firing off. Once the workflow started a record gets added to the ScheduledWorkItems table in the SP Content database. However, the "DeliveryDate" on the record is set to the current time while the "Created" date is set to one hour previous. However, the delay I'm using is 2 hours, so neither of these times make sense to me at all. Going to try hardcoding it....
Update 2
Even with a hardcoded duration the times are off. I hardcoded a 2 hour delay in and the "DeliveryDate" is now one hour in the future while the "Created" date is one hour in the past. So at least the difference between them is good.
Update
Well, that's embarrassing... found the problem. I'm posting it in here for others that may make mistakes like I do. First off, I was not correct in my UTC->local conversion. The times on the database were correct. What was not correct was how I was setting the TimeoutDuration:
// WRONG!
delayActivity.TimeoutDuration = new TimeSpan("1:00:00"); // one hour
what I should have been doing:
// RIGHT!
((DelayActivity)sender).TimeoutDuration = new TimeSpan("1:00:00"); // one hour
once I made that change everything else seems to be fine.
Well, that's embarassing... found the problem. I'm posting it in here for others that may make mistakes like I do. First off, I was not correct in my UTC->local conversion. The times on the database were correct. What was not correct was how I was setting the TimeoutDuration:
// WRONG!
delayActivity.TimeoutDuration = new TimeSpan("1:00:00"); // one hour
what I should have been doing:
// RIGHT!
((DelayActivity)sender).TimeoutDuration = new TimeSpan("1:00:00"); // one hour
once I made that change everything else seems to be fine.

time compare in windows servuce

I had written one windows service in C#.NET which fires on every miniutes... I want to execute certain code(some logic) on every month on say xyz date.... this task shld repeted on every month on same date... So can any one tell me how to do this..? I mean to say the block of code which i will write shld get executed on same date of every month...
Deploy this as a scheduled task rather than a service.

Resources