in where-ever.h
extern const CGRect kMY_RECT;
in where-ever.m
const CGRect kMY_RECT = { { 0.0f, 39.0f }, { 768.0f, 432.0f } };
use
somethingWithA.frame = kMY_RECT;
in where-ever.h
extern const CGRect kMY_RECT;
in where-ever.m
const CGRect kMY_RECT = { { 0.0f, 39.0f }, { 768.0f, 432.0f } };
use
somethingWithA.frame = kMY_RECT;
BOOL didItWork = [self createDirAndFile:@"index.html" inDir:@"somedirectory"];
NSLog(@”WAS FILE CREATED? %i”, didItWork);
// methods used
-(BOOL)createDirAndFile:(NSString*)fileName inDir:(NSString*)dir {
NSString *str = @”whatever needs to be in the file when created”;
NSData *data=[str dataUsingEncoding:NSUTF8StringEncoding];
NSFileManager *filemgr = [NSFileManager defaultManager];
NSString *documentsDirectoryPath = [NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES) objectAtIndex:0];
NSLog(@” documentsDirectoryPath = %@”, documentsDirectoryPath);
NSString *targetDir = [documentsDirectoryPath stringByAppendingPathComponent:dir];
NSLog(@” targetDir = %@”, targetDir);
NSString *targetFile = [targetDir stringByAppendingPathComponent:fileName];
NSLog(@” targetFile = %@”, targetFile);
BOOL isDir;
if (![filemgr fileExistsAtPath:targetDir isDirectory:&isDir]) {
NSLog(@”Directory did not exist so create it”);
[filemgr createDirectoryAtPath:targetDir withIntermediateDirectories:NO attributes:nil error:nil];
NSLog(@”If the target directory did not exist the file we are creating certainly did not exist so create it”);
return [self createMyFile:targetFile contents:data];
} else {
return [self createMyFile:targetFile contents:data];
}
}
-(BOOL) createMyFile:(NSString*)desiredFile contents:(NSData*)fileContents {
if ( ![[NSFileManager defaultManager] fileExistsAtPath:desiredFile] ) {
[[NSFileManager defaultManager] createFileAtPath:desiredFile contents:fileContents attributes:nil];
return YES;
}
return NO;
}
NSLog(@”NSUserDefaults dump: %@”, [[NSUserDefaults standardUserDefaults] dictionaryRepresentation]);
NSArray * imageArray = [[[NSArray alloc] initWithObjects:
[UIImage imageNamed:@"fr01.png"],
[UIImage imageNamed:@"fr02.png"],
[UIImage imageNamed:@"fr03.png"],
[UIImage imageNamed:@"fr04.png"],
[UIImage imageNamed:@"fr05.png"],
nil] autorelease];
UIImageView * waveAnime = [[[UIImageView alloc] initWithFrame: CGRectMake(0, 125, 150, 75)] autorelease];
waveAnime.animationImages = imageArray;
waveAnime.animationDuration = 2.0;
waveAnime.contentMode = UIViewContentModeBottomLeft;
[self.view addSubview:waveAnime];
[waveAnime startAnimating];
Add yet another possible solution for the error:
The application was not install on iphone because its resources have been modified
I was working off a thumb drive, after trying alot of other solutions I simply removed the project directory off the thumb drive and the problem went away. This probably isn’t your problem but if your working off of some kind of removable media try moving the project.
UPDATE `your_data_base`.`wp_posts` SET `comment_status` = ‘closed’, `ping_status` = ‘closed’ WHERE `wp_posts`.`comment_status` LIKE ‘open’
Overkill yeah… but good grief I akismet is spassing out and I just don’t have time to mess with it.
With “xrandr -o right” you can rotate the screen and hold the laptop like a book. On my laptop my thumb can sit nicely on the up/down arrows for page turning and it feels much more natural for prolonged periods of reading. Just run “xrand -o normal” to get back to the normal screen orientation.
reddit.com > foobster
:focus {
-moz-outline-style: none;
}
and/or
a {
outline: none;
}
I wouldn’t deploy this as is but here is a good starting point. Tweek to fit and cron.
#!/bin/bash
### MySQL Server Login Info ###
MUSER="USER"
MPASS="PASSWORD"
MHOST="localhost"
MYSQL="$(which mysql)"
MYSQLDUMP="$(which mysqldump)"
BAK="./dumps"
GZIP="$(which gzip)"
NOW=$(date +"%Y-%m-%d")
[ ! -d $BAK ] && mkdir -p $BAK/$NOW || /bin/rm -f $BAK/*
DBS="$($MYSQL -u $MUSER -h $MHOST -p$MPASS -Bse 'show databases')"
for db in $DBS
do
FILE=$BAK/$NOW/$db.$NOW.gz
$MYSQLDUMP -u $MUSER -h $MHOST -p$MPASS $db | $GZIP -9 > $FILE
done