Send free SMS API

http://ubaid.tk/api-usage/ Required Params : uid, pwd, phone, msg. uid : your userid for the required sms provider pwd : your password for the required sms provider provider : way2sms(default), fullonsms, smsindia, whozzat, smsinside, site2sms. if you do not specify any provider, way2sms will be used by default. phone : phone number whom you want to …

SSL connection iphone

Here I have posted code how to calling “Web service” which are SSL enabled. like “https://test.com/testservice.svc/gettest” #import “Hello_SOAPViewController.h” @interface NSURLRequest (withHttpsCertificates) + (BOOL)allowsAnyHTTPSCertificateForHost:(NSString*)host; + (void)setAllowsAnyHTTPSCertificate:(BOOL)allow forHost:(NSString*)host; @end @implementation Hello_SOAPViewController NSMutableData *webData; – (void)viewDidLoad { ////////////////////////////////////////////////// //Web Service Call ////////////////////////////////////////////////// NSURL *url = [NSURL URLWithString:@”https://test.com/testservice.svc/gettest”]; NSMutableURLRequest *theRequest = [NSMutableURLRequest requestWithURL:url cachePolicy:NSURLRequestReloadIgnoringCacheData timeoutInterval:60.0]; [NSURLRequest setAllowsAnyHTTPSCertificate:YES forHost:[url host]]; …

Upload Photo From iPhone to Asp.Net Server PHP

This tutorial will go over the HTML post. This will start off where Using a UIImagePickerController left off. So you can grab the code and start there if you want. So lets begin. So first open up testPickerViewController.h and we want to add in one outlet and one action. So here is the outlet we …

Cross Platform Socket Programming (Mac-Windows)

Overview: Sockets vs Streams Socket represents a unique communication endpoint on the network. When your app needs to exchange data with another app, it creates a socket and uses it to connect to the other app’s socket. You can both send and receive data through the same socket. Each socket has an IP address and …

ESC handle by AppleScript

tell application “System Events” tell application “TextEdit” to activate tell application “TextEdit” to run keystroke “s” using {command down} key code 53 end tell ——————- tell application “System Events” tell application “TextEdit” to activate tell application “TextEdit” to run keystroke “s” using {command down} key code 53 –esc –key code 36 — enter –key code …

AppleScript in Cocoa Class

//message= TextEdit:f NSString *string = message; // split the text by the : to get an array containing { “AAA”, “BBB” } NSArray *splitText = [string componentsSeparatedByString:@”:”]; // form a new string of the form “BBB AAA” by using the individual entries in the array NSString *cellText = [NSString stringWithFormat:@”%@ %@”, [splitText objectAtIndex:1], [splitText objectAtIndex:0]]; …