Author Archive for EMiN3M

02
Feb

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

29
Jan

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;
}

25
Jan

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.

30
Nov

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

06
Oct

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

02
May

Lottery Results Application for iPhone

Get lottery results fast on your iPhone, from list of over 500 different lotteries from all over the world.
United States
Australia
Belgium
Canada
Ireland
Germany
New Zealand
Poland
Portugal
South Africa
Spain
Switzerland
UK
Download it from Lotteries or Lotteries Free
Continue reading ‘Lottery Results Application for iPhone’




March 2010
M T W T F S S
« Feb    
1234567
891011121314
15161718192021
22232425262728
293031  

Categories

No categories

Xbox360

PS3

Hasnat's PSN

Flickr

www.flickr.com