developing Kinect recorder like radioHead music video.

7月 28th, 2011

Hi,
I’ve developed some apps using Kinect and other depth sensing devices about one year ago.
I have experiences OpenNI(C++, C#) on Windows/Mac, Microsoft Kinect SDK(C#) on Windows and ofxKinect on Openframeworks.
These libraries have each strong points.
I will explain these strong point later, at this time I want you to introduce my Kinect application.
my youtube link is below:

The point of this, this application is enable to retrieve more detail image / depth data than simply retrieving from OpenNI.
So you can confirm my black eyes in this video like radiohead music video “House of Cards”.
Actually I used their source code.

If you are interested in source code, please write comment.

Kinect SDK, NUI, OpenNI , , ,

iMIDICon 2.0 has been released!

2月 18th, 2011

Hi, I’m very glad to announce you that new version of iMIDICon has been released!
This version of iMIDICon enables you to edit screen layout by using desktop application.
You can download the layout application here.
I want you to use it and your feedback!

By the way, I developed desktop application by Adobe AIR though iMIDICon is iPad application..

buy iMIDICon from app store

未分類

[Sale] iMIDICon is sale $0.99 until 1/5/2011

1月 1st, 2011

A happy new year!
I want to write articles about iOS, Mac and Flash technologies this year, though I think the same last year…

Today I announce you to sale iMIDICon as $0.99 until 1/5/2011.
iMIDICon is an iPad application as MIDI controller.Please try this if you are interested in my application.

buy iMIDICon from app store

caution:
It takes time to refresh price of iMIDICon. So after you check the price, please buy iMIDICon.

iPad ,

[iPad] I released iPad App “iMIDICon”

12月 18th, 2010

Hello,
It has been long time to write article since I posted.

Finally, my first iOS application “iMIDICon” was released!
This application is a MIDIController on iPad.

This application makes your iPad change to MIDI Controller.
I use this application because I’m a VJ.

If you are interested in my app, please buy it.

official web

buy iMIDICon from app store

Objective-C, iPad

[iPad] the way to show contents to external display

9月 6th, 2010

I’m sorry for taking long time to post new entry.

Now I develop iPad app that shows my contents to external display.
I had many problems to implement it, so I post this article.
In addition, it is so hard to debug about external displaying because iPad cannot connect one plug.

Basically, the way to implement to show contents to external display:
1. get available screens to use [UIScreen screens] as NSArray.
2. get favorite UIScreenMode in 1.
3. get UIScreen.
4. set 2. to retrieved UIScreen object.
5. create contents that want to show to external display.
6. create UIWindow instance.
7. do [uiwindow addSubView:content];
8. set uiwindow.screen = 3.(UIScreen instance.)
9. set UIWindow basic configuration.

That’s all. Once you test it, it is easy.

Here is sample code:
——————————————

// log message displayed in external monitor.
NSMutableString *str = [[NSMutableString alloc] init];
int screenCount = [[UIScreen screens] count];

// used screen mode
UIScreenMode *current = nil;

// checking each screen information
for(int i = 0; i < screenCount; i++)
{
int modelen = [[[[UIScreen screens] objectAtIndex:i] availableModes] count];

// checking each screen mode in screen.
for (int j = 0; j < modelen; j++)
{
// getting screen mode
UIScreenMode *curMode = [[[[UIScreen screens] objectAtIndex:i] availableModes]
objectAtIndex:j];

// get information of screen.
NSString *sstr = [NSString stringWithFormat:@"screen:%i, mode:%i, w:%f, h:%f,
ratio:%f ---", i, j, current.size.width, current.size.height,
current.pixelAspectRatio];

[str appendString:sstr];

// if curMode.size.width is larger than current, change current reference
if(curMode.size.width > current.size.width){
current = curMode;
}
}
}

// screen object
UIScreen *another = [[UIScreen screens] objectAtIndex:1];
another.currentMode = current;
CGSize size = current.size;
uvc = [[UIViewController alloc] init];

// create new window.
UIWindow *window = [[UIWindow alloc] initWithFrame:CGRectMake(
0.0f,
0.0f,
size.width,
size.height
)];

UITextView *tv = [[UITextView alloc] initWithFrame:CGRectMake(
0.0f, 0.0f, 800.0f, 800.0f)
];
[uvc.view addSubview:tv];
tv.text = str;

[tv release];

[window addSubview:uvc.view];
window.screen = another;

[window makeKeyAndVisible];
[window setHidden:NO];
—————————————————

BTW, this sample code is uploaded on github.
URL:
http://github.com/mmlemon/iPad-external-display-sample

If you have any question about this, please ask me.

Objective-C, iPad

ListBox and DataTemplate in WPF

8月 11th, 2009

Hey, this article is about C# and WPF.

I created application that manage my task because I am liable to forget my task.
I wrote C# because my computer in my company is Windows Vista and I want to detect System event.

This article is my memo about ItemsSource property of ListBox control.
All I want to do is to binding the properties of my entity class to DataTemplate in ListBox.

a part of Window1.xaml
ListBox:

<ListBox x:Name="dataList" ItemTemplate="{StaticResource listTemplate}"/>

This is the definition DataTemplate (”TodoEntity” is the entity class I wrote.) :

<DataTemplate x:Key="listTemplate" DataType="{x:Type local:TodoEntity}">
            <Grid ToolTip="{Binding Path=DescriptionValue}">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="*"/>
                    <ColumnDefinition Width="*"/>
                </Grid.ColumnDefinitions>
                <StackPanel Orientation="Horizontal" Grid.Column="0">
                   <TextBlock Text="Subject"/>
                   <TextBlock x:Name="subject_tb" Text="{Binding Path=SubjectValue}" />
                </StackPanel>
                <StackPanel Margin="10,0,0,0" Orientation="Horizontal" Grid.Column="1">
                    <TextBlock Text="Description:"/>
                    <TextBlock Text="{Binding Path=DescriptionValue}"/>
                </StackPanel>

            </Grid>
        </DataTemplate>

And, this is the entity class: TodoEntity

/// <summary>
        /// This is the flag that this task is done.
        /// 1: done
        /// 0: unfinished
        /// </summary>
        public int isFinished;
        /// <summary>
        /// subject
        /// </summary>
        public string subject;
        /// <summary>
        /// description
        /// </summary>
        public string description;
        /// <summary>
        /// register time
        /// </summary>
        public DateTime registerDateTime;

        #region Accessor method. Cannot display subject property when binding subject directly. However It is good work when using accessor method below.

        public string SubjectValue
        {
            get
            {
                return subject;
            }
            set
            {
                subject = value;
            }
        }
        public string DescriptionValue
        {
            get
            {
                return description;
            }
            set
            {
                description = value;
            }
        }
        #endregion

I wanted to bind subject property of TodoEntity class, so I wrote {Binding Path=subject}, instead of {Binding Path=SubjectValue}, but nothing displayed.
I don’t know why can display data when using accessor method (SubjectValue, DescriptionValue).

I don’t know, but data is displayed correctly…..

C#, WPF ,

upload files by POST method in iPhone

7月 22nd, 2009

I need the programs to upload files by POST method in my iPhone app, but I can’t find useful libraries and classes. So I wrote sample code and uploaded in my github (http://wiki.github.com/mmlemon/HTTPMultipartPost).

You can free to use this sample, though I wrote copyright.

About code:

MutipartPostHelper: This is the helper class that can upload files by POST method.

Usage : (please see HTTPPostSample2ViewController.m)

  1. Set URL
  2. generate string data (need both arrays for key and value)
  3. generate binary data
  4. add string data to MultipartPostHelper instance
  5. add binary data to MultipartPostHelper instance
  6. send by using “send” method

Objective-C, iPhone , , , ,

About FMDatabase

7月 13th, 2009

This post is my note.

When I use FMDatabase library in development of iPhone application, I use the library like this:

When I want to query

“select” : executeQuery

other queries( delete, update, create table, insert, and so on.) : executeUpdate

My application can’t operate because I had mistake this…

Objective-C, iPhone

Basic authentication

7月 4th, 2008

Now I a preparing for local developing environment, and then this environment is inside LAN network sharing multiple person.

So I want to set basic authentication in my developing environment.

However, I had a trouble about this.

Here is my memo:

  • create “.htaccess” file
AuthType Basic
AuthUserFile /var/.htpasswd
AuthGroupFile /dev/null
AuthName

server

[re-write] my memo about URLVariables issue in AS3

7月 3rd, 2008

When we communication with server, we use these object:

  1.  URLLoader() : an object to send
  2.  URLRequest() : an object to configure the method to send and specify url to send
  3.  URLVariables() : an object to set datum to send

It is OK, isn’t it?

 

I write sending only in this article.

 

So, I set several datum to want to send in URLVariable object.

 

The sample is here:

// setup datum to want to send
var urlvariables:URLVariables = new URLVariables();

urlvariables.data1 = variable1;
urlvariables.data2 = variable2;
.
.
.

// set URL to send, Send
var urlrequest:URLRequest = new URLRequest();
urlrequest.url =

 

that’s all. Sorry, this is my memo.

actionscript 3.0 ,