application delegate:-(void) Application: (UIApplication *) application didreceivelocalnotification: (uilocalnotification *) Notification {}If you want to implement the program in the background when the kind of reminder, you can add the relevant code in the above methodif ([[[Notification.userinfo objectforkey:@] id "] isequaltostring:@" Affair.schedule "]) {Uialertview *alert = [[Uialertview alloc] initwithtitle:@ "test" Message:notification.alertBody Delegate:nil cancelbuttontitle:@ "Off" ot
the local notification will also be executed, in which case if you add the above code, there will be two consecutive prompts, in order to solve the problem, the code is as follows:
The code is as follows
Copy Code
if ([[[Notification.userinfo objectforkey:@] id "] isequaltostring:@" Affair.schedule "]) {Determine the current running state of the application, and if it is active, make a reminder, or do not alertif (application.applicationstate = = uiapplicationst
1 into the "Taobao" home page, and then find snapped up the interface click into the first
2 find already want to open the goods, if Rob will show "immediately Rob", if there is no open Rob show as "Remind Me". (as shown in the following figure)
3 Now we click on "Remind Me" so that will prompt "has been set, three minutes in advance to remind," another kind, directly click on the item into the snapped page, click the Set Reminder. (as shown in the following figure)
4 If you do not want
1. In standby mode, click "Application".
2. Slide screen click "Set".
3. Click on "My Device".
4. Slide up the screen and click "Action and Gesture" in "input and control".
5. Click "Action".
6. Slide the rectangular slider on the right side of the action to the right, showing that the Green Representative is turned on.
7. Slide the rectangular block slider on the right side of the smart tip to the right, showing that the Green Representative is turned on.
afte
commit process is more, notify the process to commit is also a burden.Polling mode, to commit the process, notify the LGWR process after the write operation, will enter the sleep link, and after timeout to see if the contents of the log buffer is written to the disk, the LGWR process is no longer separate notification to commit the process write has been completed. Under the polling mechanism, a part of LGWR's work is liberated, but the process that will bring the commit is left in log file syn
Log files read from the installation directory: Mssql\log\errorlog--this'll hold the rowscreate TABLE #ErrorLog (logdate datetime, ProcessInfo VarChar ( ErrorMessage VarChar (Max))--Dump the errorlog into the Tableinsert into #ErrorLogEXEC master.dbo.xp_readerrorlog--D Elete everything older than 5 minutes--ideally you'll store the max date when it ran Lastdelete #ErrorLogWHERE logdate Exec xp_readerrorlog 2,1,null,null, ' 20130415 08:10 ', ' 20130415 12:30pm ', ' Asc ' GOparameters: 1.Value of
statements1.for Cycle2.while Cycle[Label:] While Espression doStatementsEND while [Label];3.loop Cycle[Label:] LOOPStatementsEND LOOP [Label];4.repeat until cycle[Label:] REPEATStatementsUNTIL espressionEND REPEAT [Label];Five. Other common commands1.show Procedure StatusDisplays basic information about all stored procedures in the database, including the owning database, stored procedure name, creation time, etc.2.show CREATE PROCEDURE Sp_nameShow details of a MySQL stored procedureMySQL store
as follows-(void) Application: (UIApplication *) application didreceivelocalnotification: (uilocalnotification *) Notification {}, if you want to implement the program in the background of the kind of reminder effect, you can add the relevant code in the above method, sample code:Code to copy code as followsif ([[[Notification.userinfo objectforkey:@] id "] isequaltostring:@" Affair.schedule "]) {Uialertview *alert = [[Uialertview alloc] initwithtitle:@ "test" Message:notification.alertBody Del
notice, then someone will ask, how to cancel the notice? Please see the above code, whether the main to my notification set a userinfo, yes, is to traverse so notice, find key the same notification cancellation, or on the code bar!-(void) Application: (UIApplication *) application didreceivelocalnotification: (uilocalnotification *) notification{Nsdictionary *userinfo = Notification.userinfo;if ([@ "10:00am" isequaltostring:userinfo[@ "key"]) {if ([toolset Isweekend]) {Cancel Notification[Self
Random Color-(uicolor*) Randomcolor{CGFloat r = arc4random ()% / 255.0; CGFloat g = arc4random ()% / 255.0; CGFloat B = arc4random ()% / 255.0; return [uicolor colorwithred:r green:g blue:b Alpha:1]; }Call : [[self randomcolor] set]; Make a program crash alertIf (! ( Self . bounds.size.width = = Self . Bounds.size.height) { // crashes //[NSException raise:@ " go back to see if the width of the height is equal again to use " format:@ " width high do not want to wait "]; nsexcept
)XmlElement badgeelement = (XmlElement) badgexml.selectsinglenode ("/badge"); Badgeelement.setattribute ("value""n");Set the value of the glyph:Badgeelement.setattribute ("value""alert"); Badgeelement.setattribute ("value""attention") ;Create a badge alert and send it to a badge: New badgenotification (badgexml); Badgeupdatemanager.createbadgeupdaterforapplication (). Update (badge);The effect is as follows:So how to display the badge update on the lock screen:Very simply, first
Odoo Calendar provides a reminder feature that includes email notifications and Web client pop-up features??When creating a calendar event, you can set a reminder??Meeting [ calendar.event ]??????Reminder [ calendar.alarm]????consists of 2 types
Email
Notification
????and then go through calendar.alarm_manager Interface object encapsulation for WebClient calls?WEB client Queries interface object calendar.alarm_manager every 5 minutes Get_next_notif() ??Code ... calen
display location of the Badgeview4. SetBackgroundColor ()--Set the background color of the badgeview and, of course, set the background picture5. Setbackgroundresource () and set the background image6. Settypeface () and set the displayed font7. Setshadowlayer ()--Set the shadow of the fontBadgeview = new Badgeview (this); Badgeview.settargetview (layout); Badgeview.setbackground (Color.parsecolor ("# 9b2eef ")); Badgeview.settext (" hint ");Badgeview = new Badgeview (this); Badgeview.settarget
Background introductionThe company has a number of Web sites, no configuration monitoring services, every day to check whether the server is working properly. Inefficient and time-consuming.
Code Snippets#!/bin/bash# Author Jerry.huang (Email:[email protected]) # Check Web Serverif[[-Z ' curl-i-S"http://www.baidu.com"|grep "OK"` ]]; ThenEcho "www.baidu.com Server server is down"| Mail-s"www.baidu.com Server Alert"[Email protected],616043155@qq. com Echo "$ (date) www.baidu.com server is down">
This article is from the "happy Programming _ Endless" blog, please be sure to keep this source http://happyliu.blog.51cto.com/501986/1660299HTML5 Desktop Reminders
Send timed text messages free of charge using PHP (for weather forecasts, timed reminders, SMS blessings, etc.)
Send timed text messages free of charge with PHP
background: mom is old, not high education, but need to know the weather information to work in the fields, you can not get the weather through the Internet, only through the TV. So I was thinking about crawling the weather information on the Internet and sending it to my mom via SMS.
proble
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.