Just thought I would share this very useful resource I just found. For those who have not yet stumbled upon it.
Just thought I would share this very useful resource I just found. For those who have not yet stumbled upon it.
Nearing the end of an app development cycle it came time to add a splash screen or in IOS SDK terms the LaunchImage. The app in question is to be locked in landscape mode as per request of the client. There is no way to specify a launch image for phones in landscape mode. If you are using Images.xcassets then you have probably already noticed this.
The following is a very quick and simple way to fix this.
-(NSUInteger)application:(UIApplication *)application supportedInterfaceOrientationsForWindow:(UIWindow *)window
{
return UIInterfaceOrientationMaskLandscapeRight;
}
There you have it. Landscape mode locked application with a clean launch image.
Enjoy!
Halsafar
If you are a VMware user and an Ubuntu user you might have encountered an issue installing vmware’s kernel modules. Basically as linux kernel development has accelerated over the last year or two, VMware did not keep up.
Skip to end of article for a script to run.
This is done on Ubuntu 13.04 running kernel 3.8.0-26-generic at the time of writing this article.
When you run VMware Workstation for the first time on a new machine after installation you will be presented with a dialogue asking you find the kernel headers. The following command fixes this issue. Either Ubuntu or VMware is not following the norm on where to store version.h:
sudo apt-get install build-essential linux-headers-$(uname -r) open-vm-dkms
sudo ln -s /usr/src/linux-headers-$(uname -r)/include/generated/uapi/linux/version.h /usr/src/linux-headers-$(uname -r)/include/linux/version.h
The next command will install the modules. You can just re-run VMware but doing this from the command line lets you examine any errors:
sudo vmware-modconfig --console --install-all
There is a good chance this will end with an error. Previous versions of Vmware and the linux kernel this was about all you had to do. A user on askubuntu posted a nice script that handles the patch required on vmci:
http://askubuntu.com/a/294691/167903
Simply run that script as root all should be well. If you are nervous of running a random script give it a quick examine, it is pretty simple.
Halsafar
About a month ago I released Moga VK. This is an application that can turn a standard MOGA controller into a keyboard. This is useful for games or applications like my emulators that do not directly support MOGA. There is an application to do this already called MOGA Universal. The major difference is it handles the Bluetooth connection on its own, this leads to many benefits but also adds a whole layer of complexity and potential crashes. MOGA VK uses MOGA Pivot to manage the connection, this guarantees a stable and hassle free connection at a loss to some expert level features. The app is very easy to use, merely start it up, enable the MOGA IME and it is ready to go for my emulators.
Enjoy!
A short post but a big tip. It seems I have somehow used Eclipse for years without learning this very simple hotkey.
CTLR+SHIFT+L
This will bring up a window showing all available shortcuts given the current context. There are hundreds of hotkeys available in Eclipse and the only way to make them habit is to find and use them.