Category: Blogging

  • How to rename multiple files on a Mac

    Let us say you are scanning documents using a printer connected to a Mac. And when scanning multiple pages of the same document, the pages gets scanned with the default name followed by a ordered number. As shown in the above screenshot, the filename starts with Screenshot and prefixed with some numbers. Rename all files…

  • Code Example – Check for Prime Number Objective C

    This is a simple Objective C program written to check whether a number is a Prime number. // // main.m // PrimeNumbers // // Created by Ravi Shankar on 10/02/12. // Copyright (c) 2012 rshankar.com. All rights reserved. // #import <Foundation/Foundation.h> int main (int argc, const char * argv[]) { @autoreleasepool {    int number;…