Count down timer in microsoft word - ms-word

Microsoft word allows us to add datetime stamp which will update datetime and sync up with system datetime. I am looking for a similar item. Is there a countdown item available?
Usage: When I send a document to my colleague I mention this event will happen in 5 minutes.
Ex: I will kick the build in 5 minutes.
I am trying to express the same in the following way
Build will happen in 5:00 Minutes
after a second
Build will happen in 4:59 Minutes
after five minute
Build will happen in 0:00 Minutes
or
Build happend
Does MSword capable of doing this?
Thanks,
Esen

There is no count down timer control kind of thing available. You have to write a macro to do that for you. Even if you use macro, unless the receipt user enable its content he wont see it. I would suggest use a javascript and send email with html body

Related

Sleep() with moodle mail

When user registers, an email is sent to user after 20 seconds. Is this possible to code with sleep() in moodle.
sleep(20);
if (!send_confirmation_email($user)) {
print_error('noemail','core_email');
}
The sleep will be fairly poor UX and block the session. An adhoc task is the right way to go as DerKanzler said.
As of https://tracker.moodle.org/browse/MDL-66925 you can run the adhoc tasks in keep alive mode and they will process continuously as a psuedo daemon:
php admin/cli/adhoc_task.php --keep-alive=60 --execute
If you still wanted the email to be sent roughly 20 seconds into the future, when you use the Task API to queue the task you can set the future time that it should run:
https://docs.moodle.org/dev/Task_API#Set_a_task_to_run_at_a_future_time
Either way this sounds like a terrible idea to force a user to either way in their browser for 20 seconds, or to wait reloading their email client for 20 seconds. I'd strongly recommend against it.
If you want to do it the 'hacky' way and patch some core files sleep(seconds) is indeed the easiest way to go.
If you are writing a plugin, you can have a look at the Task API, especially at defining AdHoc Tasks. Though this will not execute until your cron job is fired. So you would have to lower your cron execution time limit. Besides that there is currently no option to do this with the moodle API.

Process Recodring before meeting is over in bigbluebutton

I have to process recording after every 10 minutes while the meeting is going on, so that I can get the recordings file immediately, I tried to change the bbb-record-core.timer value as shown in documentation but it is process after the meeting is ended.
I want to start processing as soon as recording starts or every ten minutes without ending the meeting, the recording will be going on and in background the process should start.
Is there anything that I can do, to achieve this.
Edit the bbb-record-core.timer file. Be default, this file is configured to run it every 30 seconds. You can use a new attribute called OnCalendar and use cron to set it up based on your requirements.
Here's a resource that helped me out.
https://groups.google.com/forum/#!topic/bigbluebutton-dev/E4XJ6yB22eQ

Executing a function daily in background in Swift

I'm building a weekly todo list app where users can check off items once completed. And I need the list(table) to refresh daily to get rid of the checkmarks. How could I go about creating a function that goes off at a certain time every day?
I'm currently using UserDefaults to store the list items, etc.
Thank you,
Sounds like you need a Cron Job or a process to be executed every day at midnight. It depends on which computer/operating system you are using.
Unless its just a UI thing you can do
if (checked_at + 24hours > now) then uncheck

Azure WebJob - Limit Processing Time to Specific Hours

I have an MVC web site, a storage queue and a WebJob. Users can request the generation of a set of reports by clicking a button on the web page. This inserts a message into the storage queue. In the past, the WebJob ran continuously and processed those requests fine. But the demand and size of the reports has grown to the point where the WebJob is slowing down the web app. I would like to still place the request message in the queue, but delay processing of all requests until the evening, when the web app is mostly idle. This would allow me to continue using the WebJob code and QueueTrigger functionality without having to waste resources by moving to a dedicated Worker Role, etc. The reports don't need to be generated immediately, so a delay is acceptable.
I don't see a built-in way to set a time window on processing. The only thing I have found is a powershell cmdlet for starting and stopping WebJobs (Start-AzureWebsiteJob / Stop-AzureWebsiteJob). So I was thinking that I could create a scheduled powershell job that runs at midnight, starts the webjob, lets it run, and then runs again early in the AM and stops it.
Does anyone know of a better option than this? Anything more "official" that perhaps I could not find?
One possible solution would be to hide the messages in the queue for a certain amount of time when they are inserted.
If you're using AddMessage method, you can specify this timespan value in initialVisibilityDelay parameter.
What this will do is ensure that the messages are not immediately visible in the queue to be picked by WebJob and will become visible only when this timespan elapses.
Will such a solution work for you?
Maybe I didn't fully understand your question, but couldn't you use "Triggered" WebJob that is triggered by CRON schedule? You can then limit it to specific hours
0 * 20-22 * * *
This example will run every minute from 8pm to 10pm

How to increase plugin maximum execution time in CRM 2011?

Is there any way to increase the maximum time that a plugin can execute for?
It's 2 minutes by default. I found that here.
The limit is there to help protect the performance of the server, so the correct approach here is to re-engineer your solution (e.g. move your intensive logic out into a workflow or a web service and call it asynchonrously).
I'm not aware of any setting, flag or registry entry that will extend the two-minute timeout, though if you must persevere, you may find it possible to fudge a solution by wrapping your logic in a try/catch block, catching System.TimeoutExceptionand continuing your code. Maybe (untested).
I'd like to add that it seems that the time limit only applies when a plugin is registered in a sandbox / partial trust mode.
We had this kind of an issue and solved it by registering the plugin in fully trusted (non-sandbox) mode. I verified this by using Thread.Sleep function to wait 2 minutes before even starting to executing any plugin logic. In total almost 4 minutes were spent but the plugin still managed to do well when in non-sandbox mode. In a sandbox mode it threw us a 2 minutes exception.
According to E-learning material from Microsoft sandbox plugins in CRM 2013 has only 30 seconds limit instead of 120 seconds. I haven't tested that out yet.