FoxyCamera v1.0 is coming soon

FoxyCamera

Yesterday, I just sent a request of my iPhone app to register to the App Store.

OVERVIEW

FoxyCamera is an iPhone app that gives your iPhone a great functionality that you can easily take a panorama photo and scan a paper at anytime, anywhere.
For example, you can take photo like below:

Example-1
Example-2

続きを読む FoxyCamera v1.0 is coming soon

The hierarchy of UIImagePickerController

You can get the hierarchy of subviews on UIImagePickerController with this code.

// Recursive enumerate subviews to get hierarchy of camera view.
- (BOOL)enumSubviews:(UIView*)view withNest:(int)idx
{
	Class cl = [view class];
	char sp[255]; 
	memset(sp, ' ', 255);
	sp[idx*4] = 0;

	NSLog(@"%s%@n", sp, NSStringFromClass(cl));

	for (int i = 0; i < [view.subviews count]; i++)
	{
		if ([self enumSubviews:[view.subviews objectAtIndex:i] withNest:idx+1])
			return YES;
	}

	return NO;
}

And here is a result.

PLCameraView
    PLPreviewView
        PLCameraFocusView
    UIImageView
    PLCropOverlay
        OverlayView
        PLCropOverlayBottomBar
            UIImageView
                PLCropOverlayBottomBarButton
                    UIImageView
                    UIButtonLabel
                PLCropOverlayBottomBarButton
                    UIImageView
                    UIButtonLabel
            UIImageView
                PLCameraButton
                    UIView
                        UIImageView
                PLCropOverlayBottomBarButton
                    UIImageView
                    UIButtonLabel
    UIImageView

One of UIImageView has photo taken. Keep exploring..

here again

/media/swfobject.js

Get the Flash Player to see this player.

var s3 = new SWFObject(“/media/mp3player.swf”, “line”, “240”, “20”, “7”);
s3.addVariable(“file”,”/media/here+again.mp3″);
s3.addVariable(“repeat”,”false”);
s3.addVariable(“showdigits”,”false”);
s3.addVariable(“showdownload”,”true”);
s3.write(“test1”);

We will be here again.
People will meet again.
僕らは巡る。

Download
# I recorded a guitar part within one take and laid free ambient sounds on it. 🙂

Flowers

We went to Kyoto Botanical Garden(京都府立植物園).
Our first purpose was to see Japanese apricots though,
there was a greenhouse where has many plants from all over the world.
We got so excited and took many pictures, thus these are many flowers with various sorts. 😀





























[PHP]IMAPでメールの文字コード判定を行うには

なぜかimap_headerinfo()の戻り値にはContent-Typeが含まれないので、
直に取得する力技で解決。

When you try to get charset of a mail on IMAP, imap_headerinfo() doesn’t include ‘Content-Type’ in the return value.
Below is a function to get type of charset from a mail header directly by calling imap_fetchheader.


<?

/**

@context IMAPハンドル

@number  メールのID

@defcharset 失敗した時に返すデフォルトの文字セット名

@return 文字セット名

*/

function imap_getcharset($context, $number, $defcharset = "iso-2022-jp")

{

    

    
// Get charset

    
$h = imap_fetchheader($context, $number);

    
$mc = preg_match("/charsets*=s*(.+?)[;n]/s", $h, $m);

    
$charset = $m[1] ? strtolower(trim($m[1])) : $defcharset;

    

}

?>