2011/11/08

C# Event dll

- reference : http://programmer2004.blog119.fc2.com/blog-entry-39.html

C# MS Kinect

* (Library's) Reference
- Kinect : C:\Program Files\Microsoft Research KinectSDK\Microsoft.Research.Kinect.dll
- Speech : C:\Program Files\Microsoft Speech Platform SDK\Assembly\Microsoft.Speech.dl

2011/11/02

English Keyboard

- regedit
-- http://support.microsoft.com/kb/927824/

-- HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Keyboard Layouts\00000411
---  Layout file : KBDJPN.DLL -> KBDUS.DLL

- reference : http://d.hatena.ne.jp/yohtani/20091021/1256132743

2011/10/24

ubuntsu linux apache2 php


* install
- sudo apt-get install php5 libapache2-mod-php5
- sudo /etc/init.d/apache2 restart

* edit & test
- sudo emacs /var/www/phpinfo.php
<?php phpinfo(); ?>

* reference : http://dqn.sakusakutto.jp/2008/08/ubuntuphp5.html

2011/09/16

eclipse apanta : javascript, html

* Install Apanta to Eclipse

- Eclipse Menu > Help > Install Software

-- Add

--- apanta

--- http://download.aptana.org/tools/studio/plugin/install/studio

NIC double : Ubuntu


* GUI Setting is not used

- if you set it, you delete it.

-- System -> System Setting > Network Connection

* CUI setting is used

- /etc/network/interfaces

auto eth1
iface eth1 inet static
address 192.168.77.10
netmask 255.255.255.0
gateway 192.168.77.1
dns-nameservers 192.168.77.1
metric 1

auto eth0
iface eth0 inet static
address 172.24.xxx.yyy
netmask 255.255.248.0
metric 10
up route add -net 172.24.xxx.0 netmask 255.255.248.0 gw 172.24.xxx.1 eth0
down route del -net 172.24.xxx.0 netmask 255.255.248.0 gw 172.24.xxx.1 eth0
up route add -net 172.24.zzz.0 netmask 255.255.248.0 gw 172.24.xxx.1 eth0
down route del -net 172.24.zzz.0 netmask 255.255.248.0 gw 172.24.xxx.1 eth

- sudo aptitude install resolvconf

-- resolvconf :

- sudo /etc/init.d/networking restart

* reference


2011/09/12

ubuntu : gnome

* Alt + F2

- gnome-panel

- gnome-terminal

Dry Eye

* Eye Pillows

* Nutritional Supplement
- Vitamin A: Carrots, Spinach(ホウレンソウ)
- Vitamin B1: Sesame, Soy

* Reference

linux samba : ubuntu

1. install
- sudo aptitude install samba
- sudo aptitude install system-config-samba

2. setting

- GUI
-- gnome-panel menu > system > system management > samba

- File
-- /etc/samba/smb.conf
[taku]
path = /home/foo
writeable = yes
; browseable = yes
; guest ok = yes
valid users = foo


3. restart

- /etc/init.d/smbd restart

Ubuntu One

I have joined Ubuntu One in 2011/09/12.

I also install Ubuntu App on Android HTC.




2011/09/08

HTML5 Canvas

I'm learning "HTML5 Canvas"
- reference
-- modernizr

well-turned phrase

- hack value

ubuntu apache2

1. sudo aptitude install apache2

2. check

http://localhost

* Restart

sudo service apache2 restart


* Userdir

1. sudo a2enmod userdir
2. sudo /etc/init.d/apache2 restart
3. mkdir ~/public_html


- Setting




- reference :

ubuntu emacs

1. sudo apt-get install emacs-snapshot




2. .emacs

- load-list

- edit-server


3. etc

* html-helper-mode
-- sudo apt-get install html-helper-mode

ubuntu version

cat /etc/lsb-release

DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=11.04
DISTRIB_CODENAME=natty
DISTRIB_DESCRIPTION="Ubuntu 11.04"

2011/09/07

install chrome to ubuntu


1. sudo apt-get update

2. sudo apt-get install chromium-browser

- reference : http://ubuntu.studiomohawk.com/575/install-google-chrome-on-ubuntu/

2011/08/29

Akita

I went with my friends on a trip to Akita.

2011/08/26-28.

We watched fireworks "Oomagari".

We enjoyed a grand display of firework very much :)

2011/08/18

2011/07/26

http, put

- reference

-- java
--- http://d.hatena.ne.jp/nacookan/20080108/1199774995

--- http://stackoverflow.com/questions/2099576/java-http-put-with-httpurlconnection

--- http://www.atmarkit.co.jp/bbs/phpBB/viewtopic.php?topic=48794&forum=12

-- java : sounds untrue
http://stackoverflow.com/questions/1051004/how-to-send-put-delete-http-request-in-httpurlconnection-looks-like-not-working

-- java servlet
--- http://mergedoc.sourceforge.jp/tomcat-servletapi-5-ja/javax/servlet/http/HttpServlet.html

-- perl : http://blog.tanarky.com/2010/01/perlhttp-put-method.html

2011/07/25

apache directive

* settings file

- /etc/httpd/conf/httpd.conf

- reference : http://httpd.apache.org/docs/2.0/ja/mod/core.html

* PUT

- in /etc/httpd/conf/httpd.conf

-- affirm
--- LoadModule dav_module modules/mod_dav.so
--- LoadModule dav_fs_module modules/mod_dav_fs.so

-- add DAV On

<Directory "/var/www/html"&rt;
Options Indexes FollowSymLinks
AllowOverride None
Order allow,deny
Allow from all
DAV On
</Directory &rt;


* OPTIONS

- Request

OPTIONS / HTTP/1.1
User-Agent: Java/1.6.0_26
Host: 192.168.11.10
Connection: keep-alive


- Response


HTTP/1.1 200 OK
Date: Tue, 26 Jul 2011 10:39:10 GMT
Server: Apache/2.2.3 (Red Hat)
DAV: 1,2
DAV:
MS-Author-Via: DAV
Allow: OPTIONS,GET,HEAD,POST,DELETE,TRACE,PROPFIND,PROPPATCH,COPY,MOVE,LOCK,UNLOCK
Content-Length: 0
Keep-Alive: timeout=15, max=100
Connection: Keep-Alive
Content-Type: httpd/unix-directory

linux centos ftp

* vsftpd

** install & start

- yum -y install vsftpd

- /etc/rc.d/init.d/vsftpd start

** default path

./var/ftp/pub/

** settings

- /etc/vsftpd/vsftpd.conf 


- reference :
-- http://centossrv.com/vsftpd.shtml
-- http://www.atmarkit.co.jp/bbs/phpBB/viewtopic.php?topic=41607&forum=10

2011/07/24

java iterator - for


for(int i=0;i<projects.length;i++){
Log.logInfo(projects[i].toString());
}

Handling File in Eclipse Plugin


* Add Dependenceis in MANIFEST.MF
- MANIFEST.MF > Dependencies > Add > org.eclipse.core.resources



IWorkspace ws = ResourcesPlugin.getWorkspace();
IWorkspaceRoot root = ws.getRoot();
IProject[] projects = root.getProjects();

//ws.toString:org.eclipse.core.internal.resources.Worksapce@**
//root.toString : R

IProject project = projects[0];
IFolder tmpDir = null;
IFile file = null;

if(project.exists()){
//1. Create in Project not System
tmpDir = project.getFolder((new Path("tmp")));
if(!tmpDir.exists()){
try {
//2. Create in System
tmpDir.create(false, true, null);
}catch (CoreException e) {
e.printStackTrace();
}
}
file = tmpDir.getFile(new Path("boo.txt"));
if(!file.exists()){
try{
String str = "dummy";
InputStream is = new ByteArrayInputStream(str.getBytes());
file.create(is, false, null);
}catch(CoreException e){
e.printStackTrace();
}
}
Log.logInfo(file.getLocation().toString());
}else{
Log.logInfo("project is NOT exist");
}


- reference :
--http://www.masatom.in/pukiwiki/Eclipse/%A5%D7%A5%E9%A5%B0%A5%A4%A5%F3%B3%AB%C8%AF%A4%CETIPS%BD%B8/%A5%EF%A1%BC%A5%AF%A5%B9%A5%DA%A1%BC%A5%B9%A4%CE%A5%EA%A5%BD%A1%BC%A5%B9%A4%F2%BC%E8%A4%EA%B0%B7%A4%A6/

eclipse link

* Eclipse Tips Japanese

http://www.masatom.in/pukiwiki/Eclipse/%A5%D7%A5%E9%A5%B0%A5%A4%A5%F3%B3%AB%C8%AF%A4%CETIPS%BD%B8/

* Eclipse Tutorials English

2011/07/22

eclipse plugin (sample action)


1. Open plugin of sample view

2. View MANIFEST.MF

2-1. show Extensions tab > add > Extension Points : org.eclipse.ui.actionSets

2-2. Edit

* org.eclipse.ui.actionSets
- Extension Element Details
-- id : foo.foo.foo.actionSet_id1
-- label : any string
-- visible : true

* org.eclipse.ui.actionSets > Right Click > New > menu
- Extension Element Details
-- id : foo.foo.foo.menu_id1
-- label : {Label of Menu Bar}
-- path : additions @@
-- icon :

** Right Click on actionSet > New > gourpMaker
- Extension Element Details
-- name : content @@

** Right Click on actionSet > New > separator
- Extension Element Details
-- name : additions @@

* org.eclipse.ui.actionSets > Right Click > New > action
-- menubarPath : foo.foo.foo.menu_id1/content
-- toolbarPath : Normal/additions
-- Click class @ then create class.
--- implements IWorkbenchWindowActionDelegate ((equals to interface))

-3. Debugging

-- Project Property > Run As > Eclipse Application




wmv in mac

* Flip4Mac

- Mac Menu > System Environment Setting > Flip4Mac
-- Player > Advanced > Add Application



2011/07/18

Apache HTTP Server return : Destination unreachable


* Problem : http server returns

- ICMP : Destination unreachable (Host administratively prohibited)
-- Type : 3 = Destination unreachable
-- Code : 10 = Host administratively prohibited

* Solution
- Here are some firewall.

- CentOS

-- MenuBar > System > Security level and Firewall Settting
--- HTTP




Log in android


import android.util.Log;

public class FooActivity extends Activity {
public static final String LOGTAG = "[Foo] FooActivity";
Log.d(LOGTAG, "Start");
//...
}

Blogger Syntax Hightlighter : Test Java

public class HelloWorld {
public static void main(String[] args) {
System.out.println("Hello World!");
}
}

Blogger Syntax Hightlighter : Test C

int main (){
printf("Hello world\n");
return 0;
}

Blogger Syntax Hightlighter

reference : http://code.google.com/p/syntaxhighlighter/
reference : http://www.kuribo.info/2008/06/blogger-syntax-highlighter.html

<pre name="code" class="java">

</pre>


in HTC Desire HD, Android 2.3(Ginger) is rooted

* GingerBread

- successed.

- Download
-- http://forum.xda-developers.com/attachment.php?attachmentid=578771&d=1303829207



* Visionary+

- Exception is occured.

Android adb command

* Install

- C:\Android\android-sdk\platform-tools>adb.exe install C:\Users\taku\Downloads\com.modaco.visionaryplus.r14.apk


Android debug of HTC Desired HD

* Android USB Driver


- C:\Android\android-sdk\SDK Manager.exe

-- Available packages > Third party Add-ons > Google Inc > Google Usb Driver package

--- clear the check box for "Display updates only"

-- Install C:\Android\android-sdk\extras\google\usb_driver

-- Edit C:\Android\android-sdk\extras\google\usb_driver\android_winusb.inf

[Google.NTx86]
; HTC Desire HD
%SingleAdbInterface% = USB_Install, USB\VID_0BB4&PID_0CA2
%CompositeAdbInterface% = USB_Install, USB\VID_0BB4&PID_0CA2&MI_01

* HTC setting

- Setting > Application > Development > USB Debug : ON

2011/07/17

Handling android APK programatically

* Install / Uninsatll APK programatically
- Point is "AndroidManifest.xml"
-- keyword :
--- intent-filter, mimetype
---- data android:mimeType="application/vnd.android.packaga-archive"



- Package Manager Reference :
http://developer.android.com/reference/android/content/pm/PackageManager.html

- Android
-- /data/app/*.apk
-- /data/data/javapackage

- Eclipse
-- {project}/bin/foo.apk

2011/07/15

Memory tickler of linux

* DNS

- /etc/resolv.conf

- don't need to reboot

eclipse plugin (sample view)

* First Sample Plugin

1. Eclipse Menu > File > New > Plug-in Project
- Plug-in Project
-- Project Name : foo.foo.foo
-- Next

- Context
-- ID
-- Vesion **
-- Name
-- Next

- Templates
-- Select "Plug-in with an editor"
-- Next

- Main View Settings
-- View Class Name

2. Affirm
- view src
-- Activator.java
-- SampleView.java

- view MANIFEST.MF


3. Building a Product

- Project Property > Export > Plug-in Development > Deployable plug-ins and fragments
-- Destination
--- Check Archive file : ****
-- Options
--- Check Export source : include source in exported plug-ins
--- Save as Ant Script : ****

-- Finish

4. Installing and Running the above Product

-4.1 Shutdown eclipse

-4.2 cp file.jar in zip to C:\application\eclipse\*\plugins

-4.3 Restart eclipse


5. Show Sample View

- Eclipse Menu > Window > Show View > Others > Sample Category > Sample View



* Reference

- eclipse plug-ins Third Edition


2011/07/11

Network settings of Win7

* Ping

- Control Panel > System & Security > Windows Firewall > Detail Setting > ICMP ***
-- Activation

* LPR

- Control Panel > プログラムのアンインストール > Windowsの機能の有効化と無効化 > 印刷とドキュメントサービス

* Firewall

- Control Panel > セキュリティが強化されたWindows Firewall

2011/07/06

Coding Theory

There are essentially two aspect to Coding theory.

1. Data compression (or source coding)

2. Error correction (channel coding)

reference : wikipedia

2011/07/02

Inception

I like settings about dream in this movie :)

They have hierarchical framework and creative aspect.



Who is Cletis Tout ? (2002)

If you love a good old movie, you love it.
I love this movie :)







2011/06/30

Eclipse

* Add External jar

- Project Property > Build Path > Configuration Build Path > Libraries > Add External JARs

* Generate Javadoc

- Window > Generate Javadoc

* Colors and Fonts

- Eclipse Menu > Window > Preference > General > Appearance > Colors and Fonts

* Tab, Indent
- Eclipse Menu > Window > Java > Code Style > Formatter > Indentation
-- Tab policy : Spaces only
-- Indentation size : 2
-- Tab size : 2
-- Show invisible characters : clear the check box

-- Export : C:\application\eclipse\eclipse-rcp-indigo-win32\eclipse\format_eclipse_oga.xml


- Eclipse Menu > Window > General > Editors > Text Editors
-- Displayed tab width : 2
-- Inset spaces for tabs : check
-- Show line numbers : check


2011/06/20

NIC double

* Default Gateway

* Route
- route PRINT

- route ADD src_ip MASK 255.255.255.255 gateway
-- -p (true after reboot)

* office network
- 172.xxx.xxx.xxx : Broadcom NetXtremer(12)
- 192.yyy.yyy.yyy : Realtek(10)

* reference
- Windows/Linux

- Linux

chrome

* Translation

Option -> 高度な設定 -> 翻訳

* Mouse Gesture


* Search by Image for Google

* Webpage Screen Shot

* Cookie

- if Bad Request 400 is occured, you delete cookie

-- Option > High > Content Settings > Delete All Cookies and Sight

2011/06/18

Debug : DirectX9 IDirect3D9 CreateDevice

* API

HRESULT CreateDevice(
UINT Adapter,
D3DDEVTYPE DeviceType,
HWND hFocusWindow,
DWORD BehaviorFlags,
D3DPRESENT_PARAMETERS *pPresentationParameters,
IDirect3DDevice9** ppReturnedDeviceInterface
);

* RunError in OfficePC

hr = m_pD3D->CreateDevice(
D3DADAPTER_DEFAULT,
D3DDEVTYPE_HAL,
hwnd,
D3DCREATE_HARDWARE_VERTEXPROCESSING | D3DCREATE_FPU_PRESERVE,
&pp,
&m_pDevice
);

- D3DCREATE_HARDWARE_VERTEXPROCESSING : ハードウェアによる頂点処理を指定する。
- D3DCREATE_FPU_PRESERVE :

- m_pDevice : [out] IDirect3DDevice9
インターフェースへのポインタでのアドレス。作成されたデバイスを表す


2011/06/17

Microsoft Research Kinect SDK beta

1. Delete Driver of PrimeSensor in "Windows Device Manager".

2. Install .NET Framework


3. Install MS Kinect SDK

http://research.microsoft.com/en-us/um/redmond/projects/kinectsdk/download.aspx

4. Install Others following the ProgrammingGuide

e.g.) Install DirectX Runtime

5. Build & Debug

- ms sample
-- C:\users\public\documents\microsoft Research KinectSDK Samples\NUI\SkeletalViewer\

- what is "..\..\..\unmanaged_core\inc_public" ?

- Directx CreateDevice return IDS_ERROR_D3DCREATE.

why?

Office : Intel(R) 82945G Express Chipset Family



2011/06/16

Dummies Visual C++

* Build & Debug ShortCut

F7 : Build
F5 : Debug
Ctrl + F5 : no Debug

* Debug 自動変数

* Display Space

Edit -> Detail

* Incremental Researh

How?


2011/06/13

visual C# /unsafe


build option of Visual C#

OpenNI + NITE on Visual C#


1. Create Project
select "Windows Form Application"

2. Add Reference Setting
add "OpenNI.Net.dll" and "XnVNITE.net_1_3_1" to tab "Referece" .

3. Write, Build & Debug

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using OpenNI;★
using NITE;★

namespace WindowsFormsApplication1
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}

private void Form1_Load(object sender, EventArgs e)
{
try
{
const string CONFIG_XML_PATH = "C:\\kinect\\SamplesConfig.xml";
Context xn_cxt = new Context(CONFIG_XML_PATH);
SessionManager ssnMng = new SessionManager(xn_cxt, "Wave,Click", "RaiseHand");
MessageBox.Show("Success");
}
catch (Exception ex)
{
MessageBox.Show(ex.Message);
}
}
}
}

reference:

good tweet

http://twitter.com/#!/chibicode/status/33769337827368960

アップルで働くまで、イノベーションというのは「今にない、新しいものを作ること」だと思っていた。
でもそれは違って、イノベーションというのは「未来にある普通のものを作ること」なのです。
この違いを理解できるまでにかなり時間がかかった。

2011/06/12

Build Kinect (OpenNI + NITE + OpenCV ) on Visual C++

Add follows to Project Property on Visual C++

1. OpenNI + NITE : Add Include Directory & Depended Directory

- where? Configration Property -> VC++ Directory

- 1-1 Include
C:\Program Files\OpenNI\Include
C:\Program Files\PrimeSense\NITE\Include

- 1-2 Lib
C:\Program Files\OpenNI\Lib
C:\Program Files\PrimeSense\NITE\Lib


2. OpenCV
- where? Configuration Property -> C/C++ -> General -> Add Include Directory

- where? Configuration Property -> Linker -> General -> Add Library Directory


3. All : Add Depended File
- where? Configuration Property -> Linker -> Input -> Add Library Directory

3-A OpenCV2.1
cv210.lib
highgui210.lib
cxcore210.lib
cvaux210.lib
OpenNI.lib
XnVNITE_1_3_1.lib

3-B OpenCV2.2
OpenNI.lib
XnVNITE_1_3_1.lib
opencv_core220.lib
opencv_imgproc220.lib
opencv_highgui220.lib
opencv_calib3d220.lib

Sample Program of NITE onWin7

Modify C:\Program Files\Prime Sense\NITE\Data to follows

* from
\

* to
MapOutputMode xRes="640" yRes="480" FPS="30"




Memory tickler of Win7

* Extension

StartMenu -> 規定のプログラム

* Snap OFF

- マウスキー機能を使ったキーボードでのマウスポインタの移動
-- ウィンドウの管理を簡単にします
--- ウィンドウが画面の端に移動されたとき自動的に整列されないようにします

* ThinkPad USB Track Point

- IN Mouse Menu

* Copy Path

- shift + ContextMenu(Right Click)

* WindowsKey

- RightClick -> Customize -> Check
-- ネットワーク
-- 最近使用したファイル
-- ファイル名を指定して実行

* Task Manager

- Ctrl + Shift + Esc

* StartUp

C:\Users\101279.CANON\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup

* Start Menu

C:\ProgramData\Microsoft\Windows\スタートメニュー

* Move Window

- 1. Select Application is concealed on task bar.

- 2. Alt + Space (after quit bluewind)

- 3. Select "Move"

- 4. Push any arrow key


* Reference

Visual Studio 2010 : fatal error C1033


if "fetal error C1033" is occured in Visual C++ 2010,

C:\Program Files\Microsoft Visual Studio 10.0\Common7\IDE\VCExpress.exe

's compatibility is changed to "Windows Vista (Service Pack 2)"

Path for Build & Debug OpenNI on Windows

1. Create Project
New > Win32 Console Application > Console Application

2. Add Path of Include and Librar
y

- 2-1. Include Path
-- Project Property > Configuration Property (構成プロパティ) > VC++ Directory > Include Directory
--- C:\Program Files\OpenNI\Include

- 2-2. Library Path
-- Project Property > Configuration Property (構成プロパティ) > VC++ Directory > Library Directory
--- C:\Program Files\OpenNI\Lib

- 2-3. Linker : Input Library
-- Project Property > Configuration Property (構成プロパティ) > Linker > Add depended Library
--- OpenNI.lib

Dummies : Visual Studio 2010 Express

* Tab/Indent

Tool > Option > Text Editor > All Format
Tool > Option > Text Editor > Text Format
- Tab Size
- Indent Size

* Line Number
- Tool > Option > Text Editor > C/C++ > Gernal

* Font
- Tool > Environment > Font

install OpenCV 2.1 WIndows




1. Download & Execute
http://sourceforge.net/projects/opencvlibrary/files/opencv-win/2.1/


2. Create Project
New > Win32 Console Application > Console Application


3. Add Path

3-1. Include
Project Property > Configuration Property (構成プロパティ) > C/C++ > General > Add Include Directory
- C:\OpenCV2.1\include;

3-2. Lib
Project Property > Configuration Property (構成プロパティ) > Linker > General > Add Library Directory
- C:\OpenCV2.1\Lib

3-3. Add Lib
Project Property > Configuration Property (構成プロパティ) > Linker > Output

cv210.lib
highgui210.lib
cxcore210.lib
cvaux210.lib


3-* Error occur if i set fellows
Project Property -> Configuration Property (構成プロパティ) -> ; VC++ Directory
- Include C:\OpenCV2.1\include;
- Lib C:\OpenCV2.1\lib;


4. Build & Debug Sample Code

#include "stdafx.h"
#include
#include
#include
#include

int _tmain(int argc, _TCHAR* argv[])
{
std::cout << "Hello OpenCV" << std::endl;
const char* fileName = "C:\\OpenCV2.1\\samples\\c\\box_in_scene.png";
const char* windowName = "Sample - Sample";
//View Image
try{
//Load Image File
::IplImage* img = :: cvLoadImage(fileName);
if(img==0){
std::cout << "can't open file" << std::endl;
return -1;
}
//View Image File
::cvNamedWindow(windowName);
::cvShowImage(windowName, img);
//Close Window
::cvWaitKey();
::cvDestroyWindow(windowName);

//Release Window
::cvReleaseImage(&img);
}
catch(std::exception& ex){
std::cout << ex.what() << std::endl;
}
return 0;
}




2011/06/08

bludwind on win7

1. Quit bluewind

2. Edit 2 files

.../bluewind/Users/foo/bluewind.ini
.../bluewind/Files/bluewind.ini

Call_key=32
Call_Mod=2
Call_S=Ctrl+Space

Call_key=32
Call_Mod=1
Call_S=Alt+Space

Call_Mod : Win/Shift/Ctrl/Alt

2011/05/16

野村総合研究所はこうして紙を無くした!

* 興味を持ったトピック

- ファイルメータ★ (page66)
- 社員のためにオフィスの生産性を上げる (page58)
- 認証付きの複合機の導入(SFP->MFPによる紙削減) (page98)
- Action Learning in Action (page161)
- モデル/推進組織に関して (page160)

2011/05/15

コミュニケーションをデザインするための本

I read (Design a communication).
This book gave me a clue and a broad vision.

Sorry, I am writing...

* the law of AISAS in Dentsu.
A: Attention
I : Interest
S : Search
A : Action
S : Share

* Three conscious mind & Five basis for Communication
- 3 conscious
-- Neutral
-- Simple
-- Faithful

- 5 basis

I bought a new display for NotePC

IO DATA LCD-MF221XBR

2011/05/12

a book

* 5つの条件
- benefit
- target / Segmentation
- 強み / 差別化
- 4P(売り物/売り方/売り場/売り値)
- 想い

* TPO
- Time : 時間
- Place : 場所
- Ocation : 状況 (Operation)

* ナンバーワン企業の法則 / 勝者が選んだポジショニング トレーシー & ウィアヤーマ
- 手軽軸
- 商品軸
- 密着軸


2011/05/09

I ran in YOKOHAMA EKIDEN

I ran in YOKOHAMA EKIDEN on 2011/04/29.

It was the first time that I ran Ekiden.

I ran on 7th stage.

It's 8.195km.

I ran 39min 40sec.

I enjoy running with the team :)



DHBR : June 2011

I read the article "Creating Shared Value" on Diamond HBR / June 2011.




2011/05/07

Reading document "NITE Controls 1.3 - Programmer's Guide.pdf"

NITE Controls 1.3 - Programmer's Guide.pdf is in
C:\Program Files\Prime Sense\NITE\Documentation.

* Introduction
- What is NITE ?

NITE is a toolbox to allow application to build flows based on the user's hands movement.
The hands movement is understood as gestrures and is tracked, to provide 'hand point'.

* Software Overview











* Programmer Tutorial
- Quick Start


* Session State
- session state flow
-- Not in Session, In Session, Quick Refocus


* Chapter 3 : NITE Controls
- List of controls in NITE
-- Point Controls / Push Detector / Swipe Detector / Steady Detector / Wave Detector /Circle Detector
-- Selectable Slider1D / Selectable Slider2D


* Chpeter 4 : Flow and NITE tree
- 4.1. NITE flow
- 4.2. Flow Objects
- 4.3. NITE tree
- 4.4. List of Flow object
-- Flow Router / Broadcaster / Point Denoiser / Point Area / Virtual Coordinates


* Multi-process / Multi-threaded Support


* Log

Reading document "Prime Sensor NITE 1.3 Alogrithms notes"

"Prime Sensor NITE 1.3 Alogrithms notes" is in 
C:\Program Files\Prime Sense\NITE\Documentation".

* Chapter 1 : special gesture called "focus gestrue"
- click : your palm should be open, fingers pointing up, and face the sensor.
- wave : should consist of at least 5 horizontal movements (left-right or rigth-left)

** output
- Click, Wave, Swipe, Raise hand, 

** status
- Gesture started
- Gesture completed


* Chapter 3 :Skeleton tracking

** calibration
- the user should be facing the sensor with calibration pose.

** output
- The API returns positions and orientations of the skeleton joints.

**Joint transformations defined



trial kinect NITE Samples (on Windows)

NITE Samples is in
C:\Program Files\Prime Sense\NITE\Samples\Bin\Release

cp
from avin2-SensorKinect-*******\OpenNI\Data\*
to C:\Program Files\OpenNI\Data


cp
from avin2-SensorKinect-*******\NITE\Data\*
to C:\Program Files\Prime Sense\NITE\Data


input "key" C:\Program Files\Prime Sense\NITE\Data\*




cp
from C:\Program Files\Prime Sense\NITE\Bin\XnVNITE.dll
to C:\Program Files\Prime Sense\NITE\Samples\Bin\Release


Sample-PointViewer.exe
error occured.
InitFromXmlFile failed: Device Protocol: Bad Parameter sent!




Visual Studio 2010 Express

I downloaded && installed Visual Stdio C++

http://www.microsoft.com/japan/msdn/vstudio/express/

kinect structure memo for dummies





reference :
http://d061333.web.fc2.com/Kinect.html

2011/05/06

SSE : streaming SIMD extensions

startup pattern1 : kinect hacks for linux(centos)

Install OpenNI, KinectDriver ,NITE

mkdir ~/kinect && cd ~/kinect

1 OpenNI

git clone https://github.com/OpenNI/OpenNI.git
cd OpneNI/Platform/Linux-x86/RedistMarker
./RedistMaker
sudo ./install.sh

1-1. error

1-1.1-err: libusb-1.0 not found

mak- download
http://sourceforge.net/projects/libusb/

- make install
chmod 775 configure
./configure && make && make install

- reference
http://lfsbookja.sourceforge.jp/BLFS/svn.ja/general/libusb.html


1-1.2-err: /usb/bin/ld: cannot find -lglut
glut may be OpenGL Library

yum install freeglut
yum install freeglut-devel


2. kinect's driver

cd ~/kinect
git clone https://github.com/ros-pkg-git/Sensor.git
cd Sensor/Platform/Linux-x86/CreateRedist
./RedistMaker
sudo ./install.sh


3. NITE

download
http://www.openni.org/downloadfiles/openni-compliant-middleware-binaries/34-stable
PrimeSense NITE Stable Build for Ubuntu 10.10 x86(32bit) v1.3.1.3

extract
cd Data && chmod 644 *
edit key= in 3files. 0KOIk2JeIBYClPWVnMoRKn5cdY4=
sudo ./install.sh 
Please enter your PrimeSense license key: 0KOIk2JeIBYClPWVnMoRKn5cdY4=


error occurred,

g++ -o ../Bin/Sample-PointServer ./Release/main.o ./Release/signal_catch.o ./Release/kbhit.o  -L../Bin -lOpenNI -lXnVNite_1_3_1
/usr/lib/gcc/i386-redhat-linux/4.1.2/../../../libXnVNite_1_3_1.so: undefined reference to `std::basic_istream<char, std::char_traits<char> >& st\
d::basic_istream<char, std::char_traits<char> >::_M_extract<double>(double&)@GLIBCXX_3.4.9'
/usr/lib/gcc/i386-redhat-linux/4.1.2/../../../libXnVNite_1_3_1.so: undefined reference to `std::basic_ostream<char, std::char_traits<char> >& st\
d::basic_ostream<char, std::char_traits<char> >::_M_insert<bool>(bool)@GLIBCXX_3.4.9'
/usr/lib/gcc/i386-redhat-linux/4.1.2/../../../libXnVNite_1_3_1.so: undefined reference to `std::basic_ostream<char, std::char_traits<char> >& st\
d::__ostream_insert<char, std::char_traits<char> >(std::basic_ostream<char, std::char_traits<char> >&, char const*, int)@GLIBCXX_3.4.9'
/usr/lib/gcc/i386-redhat-linux/4.1.2/../../../libXnVNite_1_3_1.so: undefined reference to `std::_List_node_base::_M_unhook()@GLIBCXX_3.4.14'
/usr/lib/gcc/i386-redhat-linux/4.1.2/../../../libXnVNite_1_3_1.so: undefined reference to `std::ctype<char>::_M_widen_init() const@GLIBCXX_3.4.1\
1'


Add Yum Repository



* CentOS Extras
cd /etc/yum.repos.d
sudo wget http://centos.karan.org/kbsingh-CentOS-Extras.repo

* dag
vim /etc/yum.repos.d/dag.repo
edit follows.
----
[dag]
name=Dag RPM Repository for Fedora Core
baseurl=http://ftp.riken.jp/Linux/dag/redhat/el$releasever/en/$basearch/dag
enabled=1
gpgcheck=1
----


* RPMForge

vim /etc/yum.repos.d/rpmforge.repo
edit follows.
----
[rpmforge]
name = Red Hat Enterprise $releasever - RPMforge.net - dag
mirrorlist = http://apt.sw.be/redhat/el5/en/mirrors-rpmforge
enabled = 0
gpgcheck = 0
----


startup pattern2 : kinect hacks for linux/centos

1. download
http://www.openni.org/downloadfiles/openni-binaries/21-stable
OpenNI Stable Build for Ubuntu 10.10 x86 (32-bit) v1.1.0.37

2
2-1. ./install.sh

2-2. A error is occured. libusb1.0 not found.

- download
http://www.rpmfind.net/linux/rpm2html/search.php?query=libusb-1.0.so.0

- rpm -ivh libusb-*-.rpm

2-3. A error is occured. glibc-2.12 not found (required by /usr/lib/libOpenNI.so)
http://ftp.gnu.org/pub/gnu/glibc/glibc-2.12.2.tar.gz