notifications

Need to send email notification on visual studio run

Hi, I'm executing a test-execution project using visual studio 2005 (using the pnunit framework and C# but its not relevant). The total execution time is more than 40 hours. In between if there are any environment problems on the network (external factors like remote server is down, db is down etc) the code stops executing. This creates...

Rails: Is it better to send email notifications from a model or a controller?

Assume mailings are sent of to be processed later (i.e. through starling or delayed_job). What I want to know is its a better practice to send email notifications from ActiveControllers or ActiveRecords? I guess its useful to put it in the controller since you might want to control whether an email SHOULD be sent or not (i.e. after a m...

android: running a background task using AlarmManager

I am writing an app which needs to periodically check the server for new messages and notify the user. I have seen some examples using AlarmManager to hit a BroadcastReciever which seems like the right thing to do, but i cant seem to get it to work. Can anyone show me a step by step tutorial for this sort of thing (repeating alarm which...

Social Networking Style Notifications System in Rails

Hi, I am building a social network from the ground up in rails and I am wanting to set up a face-book style notification system for displaying new messages, friend requests, etc... in a visual appealing and UI friendly manner. What's the best way to go about this? I am thinking of using acts_as_state_machine but it seems a bit out of da...

How to monitor Python files for changes?

I want to restart my Python web application, if code gets changed. But there could be a large number of files that could be changed, since files in imported modules could change ... How to get the actual file names from imported packages / modules? How can modified Python files be detected efficiently? Is there a library to do that? ...

receive notifications

How can i handle notifications like message send ,message receive,call ended , and other while my application in background .. i am confused what to do and what & where to add, in my code ... please help me i am trying it from 2days i read http://blogs.oreilly.com/iphone/2008/02/programmatically-handling-ipho.html but not understand a...

Don't overwrite existing Notification

For a given Notification ID is it possible (using standard android packages) not to set a notification if there is an existing notification from the app ? I have a news application notifying users on breaking news headlines, one of the requirement is not to over write a breaking news if the user has not cleared it or has not clicked to ...

Android notification activity doesn't display occasionally

Hi, I have an android background Service that will occasionally post a notification to the Status Bar using the Notification class. Occasionally, when I receive a notification, pull-down the notification window, and select the notification from the list, the specified Activity doesn't start. When this happens, the screen dims (as if ...

python logging alternatives

The Python logging module is cumbersome to use. Is there a more elegant alternative? Integration with desktop notifications would be a plus. ...

Calculating Application's memory consumption using JMX

Hello, I want to write a memory monitoring and notification utility that monitors specific application in JVM. To be clear I am not interested in JVM memory consumption rather I want to monitor my application memory alone, and want to get notified (by email) when ever the memory exceeds certain levels. MemoryMxBean deals with JVM memor...

Apple Push Notification Service with PHP Script

Hi guys. I'm trying so send push notifications ton my iPhone (APNS). I read this post and try to implement it. So all my certificates are good (normaly). Now I have this php script : $device = '4f30e047 c8c05db9 3fa87e7d ca5325f7 738cb2c0 0b4a02d4 d4329a42 a7128173'; // My iphone deviceToken $payload['aps'] = array('alert' => 'This is...

Notifications like macos Growl/facebook for dating site - where to start ?

Hi all I'm running a php/mysql dating site and I want to implement on-screen notifications for members on certain actions (for example when another member views your profile, sends you a wink, etc). Very similar to growl on the mac or facebook notifications when someone comments or writes on your profile. I'm not really too sure where t...

Drupal Notifications module - how to obtain a subscription id (SID)?

I want to show a subscribe/unsubscribe link on a forum topic list page, along with each of the topics in the list. I have all the info for the subscribe link in the $topic variable in mytheme_preprocess_forum_topic_list(): foreach ($variables['topics'] as $id => $topic) { Assuming that I want to call notifications_get_link() to get th...

Detecting changes to a specific attribute of NSManagedObject

How can I detect changes to a specific attribute of an NSManagedObject? In my Core Data data model, I have a Product entity that represents a product for sale. The Product entity has several attributes: price, sku, weight, numberInStock, etc. Whenever the price attribute of a Product changes, I need to perform a lengthy calculation. Cons...

Test Drupal Messaging and Notifications without sending messages

Hi there, I'm upgrading a drupal website. There are thousands of users and it is using messaging and notifications. By accident I have sent out loads of notifications to users. Is there any way I can prevent the emails going out to users and still carry out my upgrades? I don't want to disable the modules as I need them enabled to do th...

SQL Event Notification vs. WMI

What is the preferred or best practice when creating alerts for database mirroring state changes, e.g. Event Notification, WMI, etc.? Does one have an advantage over the other, e.g. performance, etc? ...

iphone : revoke distribution certificate and push notifications

I have an iPhone app with push notifications enabled and it's working pretty well. But my mac mini just "died" and I realize I did forgot to backup my public / private keys :/ So I guess my only solution now is to create new certificates (both developer and distribution) so I can continue my work ... but what happens with my push notific...

Android: save sound as ringtone and notification

Hi, I'm saving a sound from my app to be used as a ringtone or a notification sound. Here's part of my code, taken from this page: ContentValues values = new ContentValues(); values.put(MediaStore.MediaColumns.DATA, k.getAbsolutePath()); values.put(MediaStore.MediaColumns.TITLE, soundName); values.put(MediaStore.MediaColumns.MIME_TYPE,...

Push Notification Alert opens app when unlocking an iPhone

I see a very weird behavior and I am trying to understand if it is designed that way or simply not handled correctly from my app. My app sends push notifications in the form of UIAlertViews. When the device is not locked the UIAlertViews appear with two buttons and if the user taps on the right button my app is launched. What I have no...

Android Quiet Notification

I am creating an app which plays audio in the background. I have created a background service and a persistent notification to indicate that the music is currently playing. However, when I create the notification it feels to strong (e.g. the same as when a new txt or email comes in.) and slides down in the status bar. Instead, I would l...