EzDevInfo.com

alerts interview questions

Top alerts frequently asked interview questions

Alert boxes in Python?

Is it possible to produce an alert similar to JavaScript's alert("message") in python, with an application running as a daemon.

This will be run in Windows, Most likely XP but 2000 and Vista are also very real possibilities.

Update:
This is intended to run in the background and alert the user when certain conditions are met, I figure that the easiest way to alert the user would be to produce a pop-up, as it needs to be handled immediately, and other options such as just logging, or sending an email are not efficient enough.


Source: (StackOverflow)

Yes or No confirm box using jQuery

I want yes/No alerts using jQuery, instead of ok/Cancel button:

jQuery.alerts.okButton = 'Yes';
jQuery.alerts.cancelButton = 'No';                  
jConfirm('Are you sure??',  '', function(r) {
    if (r == true) {                    
        //Ok button pressed...
    }  
}

Any other alternatives?


Source: (StackOverflow)

Advertisements

How might I display a "legal drinking age" alert for a website?

I have a website where you're supposed to be 21 or older to buy the wine from this site. How do I put an "alert" up stating that by clicking through to the buy pages you certify that you are 21 years or older?


Source: (StackOverflow)

Push Notifications in Android Platform

I am looking to write an app which received pushed alerts from a server. I found a couple of methods to do this.

  1. SMS - Intercept the incoming SMS and initiate a pull from the server
  2. Poll the server periodically

Each has its own limitations. SMS- no guarantee on arrival time. Poll may drain the battery.

Do you have a better suggestion please?. Thanks much.


Source: (StackOverflow)

SQL Server Alerts - Best Practices

What SQL Server Alerts do you always setup for every database? What do you always monitor regardless of the database?


Source: (StackOverflow)

SharePoint List Subscriptions

If I have "Full Control" permission on a list, is there a way for me to see all the individuals who have an alert set for that list?

Some people in my department are better at managing their own subscriptions than others, and this is a question I have received from several team leads. They want to be able to see and confirm who has alerts set up for a list.


Source: (StackOverflow)

How to add a new SharePoint alert via Web Services

I found the Alert Service but it only seems to have methods for Getting and Deleting. How do I add a new alert?


Source: (StackOverflow)

How to create a daily summary alert for any change in a SharePoint site

I recently got the requirement for a person to receive a daily summary alert for any change within a SharePoint site; each site has an owner who is in charge of the content on their site.

The current way we have something working is to automatically set up alerts for every list/library within the site.

// Get the Lists on this Site
SPListCollection siteLists = currentSite.Lists;
foreach (SPList list in siteLists)
{
    if (!list.ToString().Equals("Master Page Gallery"))
    {
        if (list.ReadSecurity == 1) // user has read access to all items
        {
            // Create an Alert for this List
            Guid alertID = currentUser.Alerts.Add(list, SPEventType.All, SPAlertFrequency.Daily);

            // Set any additional properties
            SPAlert newAlert = currentUser.Alerts[alertID];
        }
    }
}

This creates two problems:

  1. The user has a lot of different alerts created. Ideal: Only ONE email with the daily summary.
  2. Some sort of monitor would have to be set up to check for new lists or libraries in the site and automatically set up alerts for the user.

Q: How can I create a daily summary alert for all changes in a site?


Source: (StackOverflow)

jConfirm with this existing code

I need help to use jConfirm with this existing code (php & Jquery & jAlert).

function logout()
{
  if (confirm("Do you really want to logout?"))
    window.location.href = "logout.php";

}

If I just change confirm to jConfirm this not enough to make it work...

Thanks for your help

Lena


Source: (StackOverflow)

SharePoint 2010: Create "Alert Me" button

Hopefully this is an easy one...

I need to create an "Alert Me" button on my custom SharePoint masterpage which when clicked, will direct the user to a pre-populated "New Alert" page for that particular site/list. The OOTB blog site template already features this exact same button at the bottom of the default.aspx page, it's markup is as follows:

http://server/currentsite/_layouts/SubNew.aspx?List={00000000-0000-0000-0000-000000000000}&Source=http://server/currentsite/default.aspx

Does anyone know if there is an OOTB control or web part that I can just drop into my page layout to reproduce this?

Obviously I could create the button dynamically in the codebehind of my page layout if need be, but I'd be surprised if there isn't a pre-written control already.

Thanks in advance...


Source: (StackOverflow)

How can I disable javascript errors on "TWebbrowser"?

I am getting javascript errors popping up in some webpages I am browsing to.

Does anyone know how to disable javascript error boxes from displaying in a Delphi app using a TWebbrowser? or any other messageboxes?


Source: (StackOverflow)

Selecting sounds from Windows and playing them

I have a WinForms app. This app has a Preferences section where the user will be able to select which sounds are played when an alert is being displayed.

Is it possible to have a combobox where the user can select from the Windows stored sounds such as "critical stop", "critical beep" and so on. These are found in the "Control Panel" >> "Sounds and Alerts" section.

Is it also possible to have a play button to test the sounds out?


Source: (StackOverflow)

When to use a UIAlertView vs. UIActionSheet

Are there situations where a UIAlertView is better to use than a UIActionSheet? What are the typical scenarios where you would use one over the other?

I'm programming a navigation bar button to open a UIWebView in an external application, and at first I started programming a UIAlertView, then I thought that an action sheet might be better for this situation.

Are there any formal guidelines for which to use in different situations? Thanks.


Source: (StackOverflow)

TFS email notification

When I add a bug (Work Item) in TFS, and assign it to a user, I want an email sent to that user.

Also if an existing bug has the "Assigned To" changed, I want that user to get an email. Is it possible to send Alerts to users when they're assigned changed bugs in TFS 2008?


Source: (StackOverflow)

Can we use JMX for Alerts/Notification

Here are the specs that I'm trying to implement in a nutshell:

1) Some Alerts have to be sent on certain events in the application.

2) These Alerts have Users subscribe to them.

3) And the Users have set their own Notification preferences (e.g. Email and/or SMS).

I have not been able to find an open source solution in Java so far.

Is JMX Notifications an option? The more I read about JMX, the more I feel that it is trying to achieve something different that my problem.

Any help would be useful.


Source: (StackOverflow)