You can easily check for null values in NSString, and if the value is null then assign a predefined string. By doing so, you can prevent your iOS app from crashing //some crazy conversion from webservice NSString *description = [[results objectAtIndex:i] valueForKey:@”feedbackdescription”]; //let’s handle the null if (description == (id)[NSNull null] || description.length == 0 […]
Archives for January 2014
nginx and WordPress 403 forbidden error
I’ve been using nginx for our server and tried installing WordPress on it. Everything worked as expected and all of a sudden I started to see this error 403. After searching a while figured out that I need to enable auto listing for nginx. location /wordpress { autoindex on; autoindex_exact_size off; autoindex_localtime on; } Did […]