using push registry Alarm in j2me applicaiton - java-me

I want to make the application where i want to set the alarm at particular time in the day.When the alarm rings the pop up message will came and the one .txt file from the application will move to the server.
Does any one help me how to use set this alarm through push notification.Or is there any other way to do this task without using push notification.
please help me
Thanks in advance

Related

Pop up an alert when someone tries to check out a project that is already checked out by someone else

I want to pop up an alert when someone tries to check out a project/file that is already checked out by someone else on TFS, Visual Studio 2012.
Let's say I checked out a file and let others to check out but prevent from check in. When someone else tried to check out same file, pop up should inform them about my checkout, but they can still checkout and try some changes. I searched the web but couldn't find a solution for that.
I know we can look for current checkouts form VS console with tf status command, but I'm looking for something visual when they tried to check out.
One way to achieve this is to use a version control system such as Git or TFS (Team Foundation Server) that supports file locking. In TFS, you can use the "tf lock" command to lock a file so that only you can check it out. When someone else tries to check out the locked file, they will receive an error message telling them that the file is locked.
Another way is to create a script or program that periodically checks the status of the files in the repository and displays a pop-up message if a file is already checked out by someone else. This script can be run on the client side as a background process or on the server side as a service.
You can use the TFS API to check for check-out status and trigger the alert accordingly.
It's also worth noting that some integrated development environments (IDEs) such as Visual Studio have built-in functionality for displaying file lock status, so you may want to check if the functionality is available in your chosen IDE before implementing a custom solution.

Where to read the source code of azure vm serial console?

I want to apply serial console function to my own application, like clicking a button then it will pop out a serial console of the vm, so need to read the source code to know how to mock the request, the sdk can't meet my request.There are many open source repo from azure in github, I'm not clear which one is the right one.Looking forward to the reply, thx!

Can I reset the simulator's contacts and location permission settings for my app, to simulate a first-time usage scenario?

My iOS app currently has a deployment target of iOS 7 (although my scheme runs the iOS 9.2 simulator), and links with the AddressBook, AddressBookUI, and CoreLocation frameworks. I have a suite of Swift UI tests in Xcode 7 (not in Instruments). When a user first uses my app, they are asked for permission to access their contacts, and their location while the app is running. Since this involves a fair amount of code that needs to execute perfectly, I'd love to automate all of the possible outcomes and ensure the UI is in the desired state.
Can I use Xcode UI testing to reset the Simulator's settings for access to contacts and locations? For example, I could implement this in the setUp() function within my test case class. I've found some tutorials about how to respond to the dialogs, but before I get to that point, I need to simulate the condition where the permissions are requested. Here's a question that explains how to respond to such an alert.
Short answer: no. There is no API for UI Testing to reset the simulator (and therefore reset the permission dialogs). I suggest filing a bug report with Apple explaining why you need this.
UI Testing doesn't make it easy to test "unhappy paths." In your question you mentioned testing all of the flows for permissions. Without manually reseting the simulator between tests this will prove impossible. I suggest only testing the happy path with UI Testing and leaving the other cases to unit tests.
I understand that this is not ideal but for now it's a decent workaround. For what it's worth, that is the approach I take when testing our app. (The app asks for push notifications and location permissions.)
xcrun simctl privacy booted reset location <your_app_bundle_id>
Source: https://developer.apple.com/videos/play/wwdc2020/10647/
In UITesting, it is simple:
let app = XCUIApplication()
app.resetAuthorizationStatus(for: .location)
Here is how I would do it. I would delete the simulator data which will delete the saved settings, hopefully this works in your situation. In Swift:
let filemanager = NSFileManager.defaultManager()
do {
try filemanager.removeItemAtPath(NSHomeDirectory())
}
catch let error as NSError {
print("Ooops! Something went wrong: \(error)")
}
Just figure out a good spot to put that in your code and poof--simulator data gone.

WindowManger notifies activity

I'm looking for a tiling window manager that support notification of activity.
What I mean for it?
Let's say that I have a terminal command running on workspace 1, because it is a very slow command I would like to be notify when the prompt appears again. When it is running I'm working on workspace 2.
Another example, I usually keep the thunderbird on a workspace. Let's say that it is workspace 4. When I receive a new email, the workspace 4 notifies me. Why not use the thunderbird notification? It is huge and usually take all the space of my terminal when I'm working with 2 or 3 opened.
Someone knows a tile WM that supports this type of notification?
Another good example is the screen command. I can configure it to monitor the terminal and it notifies me when I'm in other terminal.
Thanks.

Gmail meter (Google apps script) sends error notifications even after deleting the file with script

I've installed Gmail Meter script in Google Documents and launched it. It demanded many permissions and access to many google account elements. Script works quite slowly and meanwhile I decided to take back those permissions because they were too wide. An hour later I got mail notification about error, script cannot work without permissions.
I tried to turn off this working script but didn't find the way so I deleted (permanently) the file in which I installed the script. Since then I get every day 3 error notifications. I can turn off them (there is a link in a mail) but I'm more interested in terminating the script? What should I do?
Indeed the triggers should be terminated once the spreadsheet has been moved to trash. This is a known issue:
Issue 143: Spreadsheets with time triggered scripts should no longer trigger when spreadsheet is deleted
You can star this issue and turn the triggers off via the link in the email.
You can access all your script projects by opening the script editor and selecting Resources > All your triggers. Find the triggers you want to delete and click the 'x' icon next to them.
You should delete the triggers ...

Resources