Latest Articles

Use the navigation at the bottom to see older articles

How to mount an EBS Volume in Linux

Once you’ve created an EBS Volume in the AWS web interface and attached it to an EC2 instance, how do you actually use it on your virtual server? Here’s how! The following commands assume you’re logged into your system as root. I’ve created a 13GB volume and attached it to my running instance. Before we … Read more

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 […]