Tag Archives: alert

Simple alert box on iPhone

Simple alert box on iPhone UIAlertView *someError = [[UIAlertView alloc] initWithTitle: @”Network error” message: @”Error sending your info to the server” delegate: self cancelButtonTitle: @”Ok” otherButtonTitles: nil]; [someError show]; [someError release]; http://codesnippets.joyent.com/posts/show/12744

Posted in Objective-C | Also tagged , , , , , , , , | Leave a comment

Command-line arguments in Perl

Command-line arguments are very useful when you, for example, want to pass arguments to background processes. This example demonstrates a process which monitors a website and sends alerts if the website is unreachable. Perl uses the $ARGV variable for storing command-line arguments.

Posted in Perl | Also tagged , , , , , , , , , , | Leave a comment