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
In ZDF-Info Mediathek you will find the next 7 days some videos about history of computer games industry (Unfortunately only in German) Steve Jobs – Das Genie von Apple Youtube-Story, Teil 1 Youtube-Story, Teil 2 Die Google-Story 10 Jahre World of Warcraft Die Nintendo-Story ZDF – Videospiele: Revolution einer Generation To download right-click the link and select download
Every object that is derived from NSObject has the ability to be managed by retain counting. When an object is created (alloc) the system will allocate memory for the object and set a retain count to 1. The count can be incremented when a new instance of this object exist (assignment for example) and decrement when an object instance is released. Once the retain count is going to zero the object will be destructed and the memory gets freed. This post is Continue reading Objective-C Memory Management
What is the best affordable digital piano you can get from a pianists perspective? And how real can it get?
When start scripting with Lua one may notice that its functional range is some what reduced to a tiny set of essential basics. One thing I was missing at least is an enum type. But we could implement something very close. Before we start I want to recommend the online demo at lua.org. Just paste your lua code into the lua-shell window and press “run” to see if it works. A very simple enum function could be something like this: Continue reading Lua Enum