一番簡単なやり方:
[webView stringByEvaluatingJavaScriptFromString:@"document.activeElement.blur();"];
実はjsを利用した
先週リリースた。無料ですから、毎日のダウンロード量は2万ぐらい、びっくりした。
でも、このバージョンにバグがある。修正してる。
![]()
説明書
http://dreamo.jp/txt2epub_jp.html
APP Store
http://itunes.apple.com/app/txt-to-epub/id506665032?mt=8
@interface NSString (trimLeadingWhitespace)
-(NSString*)stringByTrimmingLeadingWhitespace;
@end
@implementation NSString (trimLeadingWhitespace)
-(NSString*)stringByTrimmingLeadingWhitespace {
NSInteger i = 0;
while ((i < [self length])
&& [[NSCharacterSet whitespaceCharacterSet] characterIsMember:[self characterAtIndex:i]]) {
i++;
}
return [self substringFromIndex:i];
}
@end
-(IBAction)loadVideo{
if ([UIImagePickerController isSourceTypeAvailable:UIImagePickerControllerSourceTypePhotoLibrary]) {
UIImagePickerController *imagePickerController=[[UIImagePickerController alloc] init];
imagePickerController.sourceType=UIImagePickerControllerSourceTypePhotoLibrary;
imagePickerController.mediaTypes = [[[NSArray alloc] initWithObjects: (NSString *) kUTTypeMovie, nil] autorelease];;
imagePickerController.delegate = self;
[self presentModalViewController:imagePickerController animated:YES];
[imagePickerController release];
}
}
CentOS 5.3 では php 5.1.6 がインストールされる。JSONが最初から使えるのはphp 5.2 から。
pecl コマンドを使いたいので、次のもので足りないものがあったらインストールしておく。
pear は普段使わないけど、pecl コマンドを使うため。
# yum install php-devel php-pear libtool gcc-c++
引き続き pecl で json インストール
# pecl install json
設定追加
# vi /etc/php.d/json.ini extension=json.so
httpd再起動
# /etc/init.d/httpd restart
今日複数のサーバの導入ができました。
MySQLに外部ホストから接続できるように設定する方法はここです。
1。ログイン
[root@centos ~]# mysql -u root -p ※MySQLにrootでログイン Enter password: ※パスワード応答
2。ユーザーの確認
mysql> select user,host from mysql.user; ※ユーザーの確認 +-------+-----------------+ | user | host | +-------+-----------------+ | root | 127.0.0.1 | | root | localhost | | qb | localhost | +-------+-----------------+
3。データベースの一覧を確認
mysql> show databases; ※存在するデータベースの一覧を確認
+--------------------+
| Database |
+--------------------+
| information_schema |
| client_data |
| mysql |
| test |
+--------------------+
mysql> grant all privileges on client_data.* to qb@"example.com"
-> identified by 'パスワード' with grant option;
外部ホストからのログイン
[root@centos ~]# mysql -h linuxserver.jp -u user1 -p
最近のコメント