Amazon AWS Documentation
How to locate a file in Linux with find
Need to find a file on your system? Look no further than the excellent find command line tool. Here’s how to use it: find / -name ‘yourfilename.extension’ This brings up a list of every file whose name matches “yourfilename.extention”. Wildcards are allowed, so you could list every .log file on the system like this: find … Read more
How to determine screen size in iOS
The UIDevice class can help us do that like so: [super viewDidLoad]; // lets detect the height of our screen here int height = [UIScreen mainScreen].bounds.size.height; int width = [UIScreen mainScreen].bounds.size.width; // share the news NSString *message = [[NSString alloc]initWithFormat:@”This screen is \n\n%i pixels high and\n%i pixels wide”, height, width]; NSLog(@”%@”, message); This will work […]
How to change the Deployment Target in Xcode 5 to an iOS Version lower than 7.0
If you create a new project in Xcode 5 you’ll notice that it won’t allow you to change the deployment target to anything less than 7.0. The drop down menu is there but it’s greyed out and shows no other values. You can type something in that field (for example 6.1), but when you do […]
How to load different Storyboards for different versions of iOS in Xcode 5
No matter how hard I’ve tried to tweak my Storyboard, there are always areas that only look well on one particular version of iOS. There is no “one Storyboard fits all” approach. The easiest option is to have one Storyboard for iOS 6 and another for iOS 7 – then everybody’s happy. Question is, how […]
How to load different Storyboards for different versions of iOS in Xcode 5
No matter how hard I’ve tried to tweak my Storyboard, there are always areas that only look well on one particular version of iOS. There is no “one Storyboard fits all” approach. The easiest option is to have one Storyboard for iOS 6 and another for iOS 7 – then everybody’s happy. Question is, how […]
How to map IMAP folders in Mac Mail
I have been driven nuts on several occasions by the likes of Yahoo: change your password, and you have to tell every single device, sometimes several times. If everything fails, delete the email account completely and add it again afresh.
This presents a problem: your SENT or DRAFT items may no longer be where they after adding your email account again. There is of course a way to map those IMAP folder, but if you’re like me you hardly ever use this option and forget when it’s time to do it again.
So here’s how to do it – perhaps it helps before checking yourself into the local nut house.
How to turn the Navigation Bar in iOS 6 opaque when compiling with Xcode 5
Xcode 5 is nice… but it has habits that drive me up the wall. For example, no matter which Base SDK you compile with, your Navigation Bars will always look translucent – no matter how hard you try to avoid this in the Storyboard, and no matter which iOS Version you deploy to. Would have […]