Batch rename file extensions on linux / OS X
Here is a small script to to batch rename file extensions. for image in *.jpg; do imageBase=”`echo $image | awk -F’.’ ‘{ print $1 }’`”; mv $image $imageBase.png; done
An adventure begins with a farewell
Here is a small script to to batch rename file extensions. for image in *.jpg; do imageBase=”`echo $image | awk -F’.’ ‘{ print $1 }’`”; mv $image $imageBase.png; done
I have searched for a solution how to implement a ViewController that supports only LandscaleLeft and LandscapeRight mode. Most solutions I found on stackoverflow and other forums using a setOrientationMode selector on the device object: NSNumber *value = [NSNumber numberWithInt: UIInterfaceOrientationLandscapeLeft]; [[UIDevice currentDevice] setValue:value forKey:@”orientation”]; this could probably work for you, but it uses a non official selector. You may think of this: it is impossible for the program to actually physically turn around your device, but that is what Continue reading Initial Landscape orientation issue on iOS solved