S.M.A.R.T status failing to verified

I read all over the internet to get your HDD replaced if you are getting the S.M.A.R.T status failing (or failed)

Now what I did was dissembled my macbook air to replace the HDD, but unfortunately i didn’t have the right zif cable to replace the HDD, so i simply reconnected my old HDD back.

What i see now is the same HDD with S.M.A.R.T status verified (in other words its fixed), its not making any sense to me but working so far.

But before you do any thing i would strongly suggest to backup your full drive or atleast important data before you try anything.

Now my HDD status is

SAMSUNG HS082HB:
Capacity: 80.03 GB (80,026,361,856 bytes)
Model: SAMSUNG HS082HB
Revision: NL101-06
Serial Number: S1BPJ16Q421794
Removable Media: No
Detachable Drive: No
BSD Name: disk0
Protocol: ATA
Unit Number: 0
Socket Type: Internal
Low Power Polling: No
Partition Map Type: GPT (GUID Partition Table)
S.M.A.R.T. status: Verified
Volumes:
Macintosh HD:
Capacity: 68.59 GB (68,585,259,008 bytes)
Available: 32.24 GB (32,244,850,688 bytes)
Writable: Yes
File System: Journaled HFS+
BSD Name: disk0s2
Mount Point: /

which am sure was failed or failing.

and hai am not responsible for anything that goes wrong with you, never trust the internet :P

Posted in Other | Leave a comment

iPhone audioRecorder app xcodeproj

Basically its code from famous 7 part audio exploring on trailsinthesand.com
Many people are unable to run that code on 3.1.2 SDK for that reason here’s a full project file for them.

Things you should know about this project/app.

  • It works in simulator aswell, (tested on 3.1.2 SDK)
  • Not much modified from original version of trailsinthesand.com, (just record and play)
  • Remove/change [UIAppDelegate setStatusText:] in audioRecorder.m for use with your project.
  • Use [audioRecorder getFileLocation] if you want to get recorded aif file location.
  • Credit goes to trailsinthesand.com

Download the source below (xcodeproj)

iPhone audioRecorder app

download iPhone audioRecorder project

Posted in Programming | Tagged | 4 Comments

decode google maps PolyLines objective C

If you are working on Google maps API and using routes/directions
this will help you decode route polylines
works on MAC OS X and iPhone SDK

-(NSMutableArray *)decodePolyLine: (NSMutableString *)encoded {
[encoded replaceOccurrencesOfString:@"\\\\" withString:@"\\"
options:NSLiteralSearch
range:NSMakeRange(0, [encoded length])];
NSInteger len = [encoded length];
NSInteger index = 0;
NSMutableArray *array = [[NSMutableArray alloc] init];
NSInteger lat=0;
NSInteger lng=0;
while (index < len) {
NSInteger b;
NSInteger shift = 0;
NSInteger result = 0;
do {
b = [encoded characterAtIndex:index++] - 63;
result |= (b & 0x1f) << shift;
shift += 5;
} while (b >= 0x20);
NSInteger dlat = ((result & 1) ? ~(result >> 1) : (result >> 1));
lat += dlat;
shift = 0;
result = 0;
do {
b = [encoded characterAtIndex:index++] - 63;
result |= (b & 0x1f) << shift;
shift += 5;
} while (b >= 0x20);
NSInteger dlng = ((result & 1) ? ~(result >> 1) : (result >> 1));
lng += dlng;
NSNumber *latitude = [[NSNumber alloc] initWithFloat:lat * 1e-5];
NSNumber *longitude = [[NSNumber alloc] initWithFloat:lng * 1e-5];
CLLocation *loc = [[CLLocation alloc] initWithLatitude:[latitude floatValue] longitude:[longitude floatValue]];
[polyLines addObject:loc];
NSLog(@"%f,%f",[latitude floatValue],[longitude floatValue]);
[loc release];
[latitude release];
[longitude release];
}
return array;
}

Posted in Other | 4 Comments

failed to upload *.app

Developing with Xcode is not all gold, sometimes you get diarrhea.
Like “failed to upload *.app” to your iPhone device for debug.
Solution is to restart your Xcode.
dont bother disconnecting and reconnecting your iPhone.
If still same error
then check if you are misusing .plist file, just try bringing it back to stock.
Delete app manually and try clean and build.

Posted in Programming | Leave a comment

IIS 6.0 PHP Invalid access to memory location error

installed php 5.2.11 on windows 2003 IIS 6.0 (ISAPI)
encountred following error on phpinfo()
Invalid access to memory location

FIX:
check directory write permissions for following paths in php.ini
upload_tmp_dir="C:\Temp"
session.save_path="C:\Temp"
error_log="C:\temp\php-errors.log"

paths on your php.ini might be different

Posted in Other | Tagged | 1 Comment

slow mac osx?

experiencing slow mac osx?

good news is you are not alone, and easy to diagnose. just open Activity Monitor via spotlight.

activity monitor spotlight

activity monitor spotlight

Sort by %CPU usage and quit the app acting as a sucker.

mac osx activity monitor

mac osx activity monitor

For me it was MSN messenger taking about 155% of cpu usage, (if that is possible)
nice move MS.

happy hunting

Posted in Computer | Leave a comment