View Hidden Files On Mac

Wednesday, September 21, 2011

Run this in the terminal to view hidden files on Mac ..


defaults write com.apple.finder AppleShowAllFiles -bool true

To hide the hidden files back, run this...


defaults write com.apple.finder AppleShowAllFiles -bool false

Relaunch Finder or logout to see the changes

Read more...

Apple's Next Event to Be Held on October 4, Starring Its New CEO

Tuesday, October 4.
That’s the day Apple is currently expected to hold its next big media event, according to sources close to the situation, where the tech giant will unveil the next iteration of its popular iPhone.
While there have been a lot of conflicting reports about the exact timing of the event, including some that pegged it as taking place this month, AllThingsD had previously posted that the rollout of the iPhone 5 would be in October.
While Apple could certainly change its plans anytime, sources said that the October 4 date has been selected by the company to showcase the iPhone 5. Sources added that the plan is now to make the new device available for purchase within a few weeks after the announcement.
And while the iPhone 5 is a much anticipated handset, the event itself has a lot more importance for Apple than many previous ones.
That’s because it will be newly installed CEO Tim Cook’s first big product introduction and the place where the public will get a first lengthy impression of him that may well set the tone for Cook’s new role.
And that’s why, said sources, although he’s never quarterbacked an Apple product announcement before, Cook is certain to preside over the iPhone 5 rollout.

Read More at http://finance.yahoo.com/news/Apples-Next-Event-to-Be-Held-allthingsd-3552050978.html?x=0

Read more...

Create a debug log for objective c project

Tuesday, September 20, 2011

This is to create a simple log for debugging purposes in objective C

- (void)debugLog:(NSString*)message
{
    NSString *ReportPath = /Your path to generate the log/
    NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init];
    NSString *fileLog = _ReportPath;
    fileLog = [fileLog stringByAppendingString:@"/myLog.log"];

    NSError *error;
    NSFileManager *fileManager = [[NSFileManager alloc] init];

    // if the path was deleted create it again
    BOOL isDir = NO;
    if (!([fileManager fileExistsAtPath:_ReportPath isDirectory:&isDir] && isDir))
    {
        if(![fileManager createDirectoryAtPath:_ReportPath withIntermediateDirectories:YES attributes:nil error:&error ])
            NSLog(@"DNMainController: Error on creating _ReportPath - %@", [error localizedDescription]);
    }

    //if file doesnt exist, create it first for later appending
    if(![fileManager fileExistsAtPath:fileLog isDirectory:NO])
    {
        if(![@"" writeToFile: fileLog atomically:YES encoding:NSUTF8StringEncoding error:&error]) {
            NSLog(@"UtilClass: Error on creating _DebugLog file - %@",[error localizedFailureReason]);
            [fileManager release];
            [pool drain];
            return;
        }
    }
   
    NSFileHandle *handle = [NSFileHandle fileHandleForWritingAtPath:fileLog];
    if (handle) {
        [handle seekToEndOfFile];
        NSMutableData *data = [NSMutableData data];
        [data appendData:[message dataUsingEncoding:NSUTF8StringEncoding]];
        [handle writeData:data];
        [handle closeFile];       
    }
   
   
    [fileManager release];
    [pool drain];

}

Read more...

Netflix says it's sorry, then creates new uproar

Monday, September 19, 2011

The CEO of Netflix said he was sorry for mishandling a recent price increase that caused customers to cancel the service in droves. But the apology was drowned out by a decision that angered subscribers all over again.
The company will split into two services -- one with an odd new name that offers the familiar discs in red envelopes and another for online streaming of TV shows and movies.
The DVD service will be called Qwikster, a name that is supposed to signify a commitment to fast service but quickly became an object of ridicule Monday on the Internet. The streaming service will keep the Netflix name.
Netflix, which had 24.6 million U.S. subscribers at the end of June and is the nation's largest video subscription service, redefined home entertainment over the past decade with its DVDs by mail. Now it's trying to prepare for the day when watching movies on a disc goes the way of driving to the video store to pick up a VHS tape.

Read more...
Technology blogs Blog Directory

  © Blogger template Noblarum by Ourblogtemplates.com 2009

Back to TOP