I am now using the framework Yii to develop a website and I need to use a timer to limit the access time of a certain page but I do not know what to do with it. Namely, when a user is filling up a form, he or she has to finish filling the form in a limitted period of time, otherwise he or she is not allowed to fill up the rest of the form. I wonder what should I do and where I can find a timer to meet my need? Thanks a lot.
No, there is no timer available in Yii. Use sessions on server side as #Imre L suggests.
Related
I want to make reminders app, and for that I will use FlutterLocalNotification because when I searched I saw that it is working in the background.
My question is should I use database for the reminders or not?
and can I use FlutterLocalNotification with a specific time? I mean let the user to pick the time
I tried flutter_local_notificaitons using it you can send the user local notifications in a specific time even when the app is closed. So I think it's the way to go. There are even some fancy ways to specify time patterns.
If you want try out this project I created it a while back to test the package. You will need to change line 80 in main.dart to use your own time zone.
You will need some local storage otherwise the user data will just not persist when she closes the app. There are many packages for this. Some are lighter then others. It depends on how big your app is so check them out and see what works.
I have to create one application that represents the same screen(sharing the state of the view/screen) across multiple browser windows of same machine using AngularJS.
During my analysis I found perhaps AngularJS is not the best technology to handle such scenarios, please find below my thoughts:
If I open the same application in second window of the browser after
opening it in the first one, I need to copy the full
state(rootScope/scope/services) to other window
If user performs some action in one window I need to update the other screen/window accordingly for which I need to use web sockets
Complexity of scope digest cycles execution
Please suggest.
I faced kinda the same scenario while working on chat sessions where the user can open multiple chat windows (as popup windows) while the parent site is open. I used local storage for handling some of its scenarios. I used angular-local-storage for this.
Note: Make sure you are handling (deleting/updating/adding) the data properly while storing it in local storage of browser. Graceful execution is the key or else you'll end up with many bugs.
Hope it helps !
Want to create a Lead Time chart based on the selection of two releases rally
like below
Something like this, with the options to select two releases start release and end release. So this chart should be prepared for those releases time period, rather than for whole year.
Any suggestions, examples for this. Which calculator should I use. Any help will be appreciated, thanks in advance
Cycle/Lead Time cannot be customized beyond what's available in the Settings because it is actually a report served by a legacy analytics service. Generally, this applies to all the reports available on Reports>Reports page even when they can be installed via AppCatalog. Anything that can be accessed via StandardReports component available in older AppSDK1 falls into this category. AppSDK2 also has a thin wrapper over it via Rally.ui.report.StandardReport but the same limitation applies since underneath it is using the same built-in reports that predate LookbackAPI.
If you decide to write an app from scratch that displays cycle time use AppSDK2's SnapshotStore that gets historic data from LookbackAPI.
i am wondering what is the best way to do this, what i am thinking of is a Dispatcher that checks for the current time and if it equals to the user specified date time then the function gets called, is there a better way to do this?
Yes, no need to reinvent the wheel, use Quartz.NET instead (the library is under 500k)...
Do you have access to CRON? It should be built into your server and you should have access to it through your control panel. This is exactly what CRON was invented for.
I have a requirement where I need to show a Lock screen , when the app remains idle for certain period of time. In WP7 is there any way to get the Idle time(Any OS APIs). I have gone through MSDN documentation of PhoneApplicationService.UserIdleDetectionMode and PhoneApplicationService.ApplicationIdleDetectionMode but it is just for enabling and disabling.I need some method by which I can get the Idle time. Thanks in Advance
To my knowledge, there isn't a way of doing that in the current API version.
You could implement a timer in your application and reset it every time there is an user interaction (with your controls) within your application.
The bigger question is how you should handle the OS lock screen? I mean, if your application has an in-app custom lock screen that has kicked in, and then the OS lock screen kicks in, then the user has to unlock 2 screens. Not especially user friendly in that case.