말 잘한다.

Posted at 2010/03/06 01:41 // in Hobby/For Fun // by kchris
사용자 삽입 이미지
사용자 삽입 이미지
사용자 삽입 이미지


Monty Python And The Holy Grail

1975년작
시대를 앞서간다는 그 역작.
C급스러운 개그로 사람 웃긴다.


말 참 잘한다.. ㅋㅋㅋ
크리에이티브 커먼즈 라이센스
Creative Commons License
이올린에 북마크하기(0) 이올린에 추천하기(0)
2010/03/06 01:41 2010/03/06 01:41

댓글을 남겨주세요.

[로그인][오픈아이디란?]

  
  
  
  
  
  
  
  
 

무쏘-라프 사고 동영상.

Posted at 2010/03/05 22:57 // in Interesting/Articles // by kchris


신호떨어지고 과속해온 라프도 잘못이지만
들어오면서 바로 1차선 진입한 무쏘가 원인제공자로 더 큰 잘못이 있는듯.

그나저나 차 4대 망가졌으니 일 커졌네.
사고동영상 보는 분들은 안전운전 합시다. ㅎㅎ


크리에이티브 커먼즈 라이센스
Creative Commons License
이올린에 북마크하기(0) 이올린에 추천하기(0)
2010/03/05 22:57 2010/03/05 22:57

댓글을 남겨주세요.

[로그인][오픈아이디란?]

  
  
  
  
  
  
  
  
 

Matlab Compiler problems in Windows(x64)

Posted at 2010/03/03 22:35 // in Programming/MATLAB // by kchris

Notes for the Windows (64-bit) Platform

  1.  You must install a C compiler to use LOADLIBRARY on a 64-bit platform.
  2.  Intel compilers depend on tools provided by Microsoft development products. Support for Intel compilers requires Microsoft Visual Studio 2005 SP1 Professional Edition. Access to the 2005 SP1 edition is available from Microsoft as part of their Visual Studio with MSDN subscriptions.
  3.  These compilers are being phased out and will not be supported in a future release.
  4. To build .NET components, Microsoft .NET Framework 2.0 must be installed. This product is automatically installed by Visual Studio 2005 or 2008. It can also be downloaded from the Microsoft Web site. To execute applications that use the resulting .NET components, the target machine must have the matching .NET Framework installed.
  5.  MATLAB Builder NE supports building .NET Assemblies but not COM objects when using the Microsoft .NET Framework SDK without Microsoft Visual Studio.
  6. To use Microsoft Visual Studio with MATLAB on a 64-bit platform, you must choose "X64 Compilers and Tools" when installing Microsoft Visual Studio. This is not selected by default. Microsoft Visual Studio 2008 Express and Professional Editions also require that the the Microsoft Windows Software Development Kit (SDK) is installed properly. For more information, see Solution 1-6IJJ3L.
  7.  Includes Real-Time Workshop Embedded Coder and Stateflow Coder compiler support.
  8. Fortran compilers are supported with Simulink only for creating Simulink S-functions using the MATLAB MEX command. The S-functions can be used with normal and accelerated simulations.
from : http://www.mathworks.com/support/compilers/current_release/win64.html

when you stucked on error code 53 with mbuild, mex or mcc, check these.
크리에이티브 커먼즈 라이센스
Creative Commons License
이올린에 북마크하기(0) 이올린에 추천하기(0)

"Programming / MATLAB" 분류의 다른 글

[MATLAB] Labeling labeled objects (0)2009/08/06
2010/03/03 22:35 2010/03/03 22:35

댓글을 남겨주세요.

[로그인][오픈아이디란?]

  
  
  
  
  
  
  
  
 

Apple's Evolution in 2012, 2014

Posted at 2010/02/24 23:09 // in Hobby/For Fun // by kchris
사용자 삽입 이미지

이건 이미 많이들 보셨을 것이고..

다음은


사용자 삽입 이미지


크리에이티브 커먼즈 라이센스
Creative Commons License
이올린에 북마크하기(0) 이올린에 추천하기(0)

"Hobby / For Fun" 분류의 다른 글

말 잘한다. (0)2010/03/06
버거킹에서 난동부리지 맙시다. (0)2010/01/14
The 12 Pains of Christmas (0)2009/12/21
수박에 3만볼트를 인가하면? (0)2009/09/16
막장야구만화 (0)2009/09/02
2010/02/24 23:09 2010/02/24 23:09

댓글을 남겨주세요.

[로그인][오픈아이디란?]

  
  
  
  
  
  
  
  
 

독일 고속도로 사고, 후처리 동영상.

Posted at 2010/02/13 01:46 // in Interesting/Articles // by kchris



사고가 나서 비상출동한 영상.
고속도로에서 차들이 전부 길을 비켜준다. 우리나라에선 보기 힘든 일..

자동차 역사가 오래되어서 그런지는 모르겠지만.. 우리나라도 좀 이랬으면 좋겠네.

크리에이티브 커먼즈 라이센스
Creative Commons License
이올린에 북마크하기(0) 이올린에 추천하기(0)
2010/02/13 01:46 2010/02/13 01:46

댓글을 남겨주세요.

[로그인][오픈아이디란?]

  
  
  
  
  
  
  
  
 

2010 new MacBook Pro update?

Posted at 2010/02/09 20:48 // in Common Days // by kchris


apple store down!
How long does it usually take until the store is back online?

But..
what if its just routine maintenance...............?


맥북프로 어서 나와라. ㅎㅎ

크리에이티브 커먼즈 라이센스
Creative Commons License
이올린에 북마크하기(0) 이올린에 추천하기(0)
2010/02/09 20:48 2010/02/09 20:48

댓글을 남겨주세요.

[로그인][오픈아이디란?]

  
  
  
  
  
  
  
  
 

Macworld San Francisco 2010 Kicks Off This Week

Posted at 2010/02/08 11:44 // in IT/Mac // by kchris

Macworld Expo 2010 kicks off this week at the Moscone Center in San Francisco, California. The significance of this year's Macworld Expo has been significantly reduced due to Apple's decision not to participate. Apple cited the diminished importance of trade shows as a way to connect to its customers.

Macworld has tried to refocus the event and even made scheduling changes to accommodate a larger audience. This year's Macworld Expo was pushed into February to avoid the usual conflict with CES, and even includes Saturday floor show hours for the first time.

The expo takes place from February 9th - 13th, 2010. MacRumors will be in attendance and will provide some coverage of the events. Email tips@macrumors.com to contact us. While Apple will not be in attendance, there has been some whispers that Apple may launch MacBook Pro revisions this Tuesday. Benchmarks for unreleased MacBook Pros were discovered just this past weekend.

reference : macrumors.com
크리에이티브 커먼즈 라이센스
Creative Commons License
이올린에 북마크하기(0) 이올린에 추천하기(0)
2010/02/08 11:44 2010/02/08 11:44

댓글을 남겨주세요.

[로그인][오픈아이디란?]

  
  
  
  
  
  
  
  
 

How to Stop Your Car During Sudden Acceleration

Posted at 2010/02/07 12:33 // in Hobby/Drivers High // by kchris


요즘 도요타 엑셀 페달 때문에 시끄럽다.
운전 도중에 엑셀 페달이 끼어서 무한 가속되는 바람에 사고가 났고, 탑승자 4명 모두 사망.
도요타는 결함을 인정하기도 했다.

이럴 때는 이 동영상에서 시킨대로 하면 쉽게 응급조치를 시행할 수 있다.

1. 급발진시 브레이크 페달을 밟아도 풀스로틀이 풀브레이킹보다 강해서 브레이크만 망가지고 차는 멈추지 않는다.
2. 시동을 무작정 꺼도 답이 없다. 버튼식 승용차들은 달리는 도중에 꺼지지 않을 뿐더러 꺼진다 하더라도 핸들과 브레이크가 전부 잠기는 바람에 고속에서 달리고 있는 차체를 컨트롤 할 수가 없어서 더 위험하다.

이 동영상에서 권고하고 있는 방법은 다음과 같다.

1. 브레이크를 강하게 밟고,
2. 다음순간 기어를 중립으로 놓는다.
(엔진은 여전히 풀 스로틀 상태이지만 구동축으로 동력이 전달되지 않아 가속되지 않는다)
3. 차가 멈추는 즉시 시동을 끈다.


면허를 수동으로 딴 사람들은 클러치가 하는 역할을 잘 알고 있을테니 이정도는 상식으로 알 수 있을 터.
오토로 배운 사람들 중 일부는 중립이 뭘 뜻하는지 모르는 사람도 생각보다 많았다..

이런것들도 알아두면 좋겠다.
크리에이티브 커먼즈 라이센스
Creative Commons License
이올린에 북마크하기(0) 이올린에 추천하기(0)

"Hobby / Drivers High" 분류의 다른 글

Porsche - Hurley Haywood meets XBox. (0)2010/01/13
60 years. (0)2009/12/12
Porsche 997 GT3 mk2 vs 997 GT3RS (0)2009/11/20
Unleashed. The new Boxster Spyder. (0)2009/11/05
BMW M3 Film - Living in the Lights (0)2009/10/31
2010/02/07 12:33 2010/02/07 12:33

댓글을 남겨주세요.

[로그인][오픈아이디란?]

  
  
  
  
  
  
  
  
 

We wait. We must wait. We will wait. We vs Apple with MBP in the middle.

Posted at 2010/02/03 10:31 // in Wisdoms In // by kchris
Apple, as any other company, is a company that strives for profit increase.

In this thread, I want to give you my point of view of why we should wait for updates. I believe, it will help many people with the choice they are about to make.

The reasons for waiting are pure logic, I will try to stay as scientific as possible and the area that I am concentrating on are ECONOMIC ONLY. There will be no "Oh my God, they really should update, because I want to!" No, everything will be clear and visible.

And your opinions are welcome. And by the way, before I start, I want to remind you that we, the customers, are one group, and Apple, the other, so no matter what, we should stay together on this deal for a mutual benefit, about that in details later.

____________________________________________________
The reason we wait. The reason we must wait. The reason we will wait. Apple vs us.

We live in a world, where, wherever there is a need for something, this need is filled with supply. Whenever there is a need to cut digital video, people create Premiere and Final Cut. Whenever we want to feel clean, toilet paper gets invented and it fits the need. There are millions of examples.

In a capitalistic world, the world we are living in today, the drive for inventing and filling the need is purely due to profit. Filling the biggest gap with a unique product has a very rewarding effect. Ask Bill Gates about that.

Now, back to Apple and Mac.

What is the reason old computers lose value? Not because they are slow! Because there is a smaller demand for them! The demand is: I want to watch HD on my pc, I want to render fast in FCP, I want to play games that were released recently, I want a better display, longer battery life - whatever it is, the demand changes, and the old supply becomes worthless, and we all know, when demand falls, the value goes the same way with it.

**Now, let's take a look at current Macbook Pro 15. 2,53Ghz, 250GB, NVIDIA 9400 (no memory) and that for $1,699.00 from 2010.
**Now look at my 500 dollar craigslist 17inch, 2.4Ghz, 250GB, Nvidia8600. from 2007.

(Note: European prices for used macs are much higher, I bought mine in Santa Monica)

A slight drawback in overall performance. Huge leap in design, display quality and battery.

Why was my book so cheap? Because there is a LOW demand on its design, battery life, display quality.

Why are new ones expensive?: for the reasons mentioned above, but not for its performance.


Do you see the problem? The demand for actual properties of what a computer should do does not seem to affect the price a lot. The computer must be able to calculate things, have a certain amount of work done within a specific time period. The speed is measured in fps, seconds, Ghz, Gb/sec, etc

People still buy this product, despite of a very old and outdated hardware. Why? Because they do not need the computer to be fast. I am not wrong: the demand for high speed is LOW among average macbook pro user.

It is fact that people buy Macbook Pro for its design, quality and maybe reputation of Apple Products. Everyone agrees. Sale numbers agree. Steve Job's pockets agree. Bill Gates agrees too, in a sad way probably.

And we must agree, the performance of a laptop is no longer defined by its performance in apps. Not in our minds, but in sale numbers. My own opinion: I want the fastest macbook pro possible. Period.

It is fact that people buy macbook to just surf the net, write some college papers, and never fully use their laptop.

Now more about Performance:

What's inside of Macbook Pro, is also a result of demand and supply structure. If its performance was neglected completely, say, Intel Pentium II 233MMX inside, no one would buy it. But where the demands lie, the current macbook pro can fill the gap: watch hd video (downloaded, as there is no Blue Ray), have a word processor, and a browser and people who truly need performance, are left out, since every business operates on one of the premises of utilitarism (utilitarianism): It is good, as long it is good for the majority.


OUR POWER AS CUSTOMERS

Companies always look at consumers like at brainless flock of sheep that can be manipulated in any way. But don't you forget:

We, the people, have the power to control companies.

Simply, because we can demand.

The demand vs supply power is 50/50, unless the customer is blinded, or the company is not doing good. Right now, Apple has a higher power over consumers. Many reasons for this: new, groundbreaking products, the hardware monopoly in its sphere, the design, media buzz, but I think, these are not worth mentioning, and the thread already becomes a novel.

WHAT WE WANT: Every one, who started a thread about demanding update for MBP, wants better insides of macbooks pro.

HOW WE CAN CHANGE IT: We know, if the demand falls, the value of a product drops, and instead of this product, an updated version of this very one fills the need (the demand) in order for a company to maintain or continue to receive profit.

WE NEED TO LOWER THE DEMAND

How we do it? Simply DO NOT BUY THE CURRENT Macbook Pro and WAIT FOR THE NEW ONES.

You, as a customer, have responsibility to buy best possible products, or else you do not support the idea of competition. This responsibility of ours is inborn. We always want more for less. It is in the laws of sociology, physics, biology - a universal rule. We want to invest less and have higher returns. We want to do no homework and get A's. That understood.

Now, buying an outdated Macbook Pro, you break this responsibility, and you make yourself responsible for something else: that there is an outdated hardware inside the laptop.

Our choices as customers make products what they are. Without us, Starbucks would not be Starbucks. Apple would not be Apple. The demand sets the standards, not companies. Companies only make standards possible, they fill the gap, the supply the demanded. We are responsible for what quality toilet paper is in the shops. If everyone is satisfied with with bad paper, bad paper always be in the shops.

Fellow people, let's raise the standards, the demand for hardware, in order to get better products.

9400M in the $1,700 version of macbook pro is a SIN! And people, who buy a laptop with this graphic card, are reason why there is bad graphic card inside. We cannot blame them! We are always a reason what's inside Macs.

But if we raise our awareness of other people, who need better graphics card, faster processor, for the same price, we should open our hearts, and demand from apple a product, that fits everyone. USA has always functioned with rules of utilitarianism, but nevertheless, we have the power to change it, to have better products, better future, and have a friendly heart for other people, who want something more from the same product.

Having this power, I call you to wait for the upcoming macs.
With every choice we make, be it a vote for a new president, or be it the choice between toothpastes, we change world. Let's make it a better place.

We wait. We must wait. We will wait.

Thank you!

Last edited by hundert : Today at 03:34 PM.

reference : http://forums.macrumors.com/showthread.php?t=858855


비단 맥북 뿐만 아니라 어디든 통용될 수 있는 글.
어느정도의 비약도 있고 비현실적인 이야기도 있지만 원론적인 입장에서 보면 충분히 수긍 가능한 이야기.
예를 들자면 현대-기아 차 라든가..

크리에이티브 커먼즈 라이센스
Creative Commons License
이올린에 북마크하기(0) 이올린에 추천하기(0)
2010/02/03 10:31 2010/02/03 10:31

댓글을 남겨주세요.

[로그인][오픈아이디란?]

  
  
  
  
  
  
  
  
 

Understanding Video and Imaging Equipment

Posted at 2010/02/02 16:58 // in Programming/MIL // by kchris

Where to Start?

"I would like to use video, but where do I start?" We receive hundreds of calls each year from people wanting to use video in a never-ending variety of applications. Over the years, we have found the best way to help our customers is to have them determine four basic system factors:


Figure 1: Fundamental Parameters of an Imaging System

  1. Field Of View (FOV):
    The area of the object that will be viewed on the monitor.
  2. Resolution:
    The smallest resolvable feature of the object.
  3. Minimum and Maximum Working Distances:
    Measurement from objective lens to the object.
  4. Depth Of Field Requirement:
    Maximum object depth needed in focus.

 
FEATURES OF IMAGE QUALITY PARAMETERS COMPONENTS AFFECTING THE PARAMETERS

Resolution: Resolution is a measurement of the imaging system's ability to reproduce object detail

  • Lens
  • Monitor
  • Camera
  • Capture Board

Contrast: Comparison of the shades of gray in the image that define an object and its background.

  • Camera
  • Capture Board
  • Illumination

Depth of Field (DOF): The difference between the closest and farthest distances an object may be shifted before an unacceptable blur is observed. Sometimes called Depth of Focus, DOF should not be confused with working distance. This is also applicable to objects with depth.

  • Aperture of Lens (f/#)

Distortion: Distortion is an optical error (aberration) in the lens that causes a difference in magnification at different points within the image.

  • Lens

Perspective Errors: Also called parallax, this is a phenomenon in conventional lenses which causes a change in magnification as it moves in and out from best focus. Closer objects appear larger than objects further away. Telecentric lenses optically correct for this occurrence.

  • Lens

Terminology Used in Electronic Imaging

Sensor Size:

The size of a camera sensor's active area, typically specified in the horizontal dimension. This parameter is important in determining the primary magnification (PMAG) required to obtain a desired field of view. Note: Most analog cameras have a 4:3 (H:V) dimensional aspect ratio.

Primary Magnification:

Defined as the ratio between the sensor size and the FOV, PMAG is the "work" done by the lens.

System Magnification:

The total magnification from the object to the image on the monitor, this is the "work" done by the whole system. It is the product of the PMAG and the camera-to-monitor magnification (the ratio between the monitor size and the sensor size).

Resolution:

Resolution is a measurement of the imaging system's ability to reproduce object detail. Figure 2 illustrates a simplified view of two squares imaged onto pixels of a CCD camera. In order for two objects to be resolvable, a certain amount of space between the objects is needed.

F-Number (f/#):

A measure of the light gathering ability of a lens. f/# increases as the lens aperture is closed, see Figure 3. Closing the aperture can also increase the system's depth of field (see definition below) but illumination should be increased to compensate for this.

C/CS-Mount:

These are both threaded mounts (1-32 TPI) found on most industrial CCD cameras and lenses. The flange (back focal) distance to the sensor is 17.52mm for C-Mount. CS-Mount has a flange distance of 12.52mm. C-Mount lenses and CS-Mount cameras are compatible using a 5mm spacer (#03-618).

Depth Of Field:

The maximum object depth that can be maintained entirely in focus. DOF is also the amount of object movement (in and out from best focus) allowable while maintaining a desired amount of focus. As the object is placed closer or farther than the working distance, it goes out of focus and both the resolution and contrast suffer. For this reason, DOF only makes sense if it is defined with an associated resolution and contrast. In general, DOF can be increased by closing the lens aperture (i.e. increasing the f/#), however, the illumination must be increased accordingly.

Figure 1:

Figure 2: Exaggerated example in which a pair of red squares are (a) not resolved and are (b) resolved.

Figure 3:

(see also Imaging Case Study)



reference :: http://www.edmundoptics.com/technical-support/imaging/understanding-video-and-imaging-equipment/

크리에이티브 커먼즈 라이센스
Creative Commons License
이올린에 북마크하기(0) 이올린에 추천하기(0)
2010/02/02 16:58 2010/02/02 16:58

댓글을 남겨주세요.

[로그인][오픈아이디란?]

  
  
  
  
  
  
  
  
 

(NVIDIA) renamed GPU

Posted at 2010/01/30 20:49 // in Interesting/Articles // by kchris

In these days of CES, where manufacturers announce rename old graphics cards to make news, we will return in two news, the practices of manufacturers of graphics cards. NVIDIA's finish, after AMD (formerly ATI).

Surprisingly, and contrary to popular belief, NVIDIA has started playing with names that there is little time with the GeForce 9. Previously, the company was relatively honest with the names of its graphics cards, at least in the desktop versions, where the only "scam" is the GeForce 4 MX, which is actually a simple evolution of the GeForce 2 GTS. But with the series 9, in 2008, everything is spoiled.

• The GeForce 9400 GT is a 8500 GT.
• The GeForce 9500 GT is a 8600 GT.
• The GeForce 9600 GSO is a 8800 GS.
• The GeForce 9600 GSO 512 is less powerful than the 9600 GSO.
• The GeForce 9800 GT is a 8800 GT.
• The GeForce 9800 GTX is a 8800 GTS 512.
• The GeForce G 100 is a 8400 GS.
• The GeForce GT 120 is a 8600 GT.
• The GeForce GT 130 is a 9600 GSO 512.
• The GeForce GTS 150 is a 9800 GTX +.
• The GeForce 205 is functionally a 8300 GS.
• The GeForce G 210 is functionally a 8400 GS.
• The GeForce GT 220 is functionally a 9600 GSO 512.
• The GeForce GT 230 is a 9600 GT.
• The GeForce GT 240 is functionally a 8800 GS.
• The GeForce GTS 240 is a 8800 GT.
• The GeForce GTS 250 is a 9800 GT.
• The GeForce 310 is functionally a 8400 GS is one billion and 210.

In the cards for the mobile world, NVIDIA has not played too much on the words before the GeForce 9, even if certain terms are unfair. Note that some cards are grouped together simply due to a difference of low frequency (less than 50 MHz) and an identical architecture. The cards listed as functionally identical are in fact based on the architecture GT (DirectX 10.1) which, in practice, performance close to G8x or G9x if the number of stream processors is the same.

• The GeForce 8600M GS is a 8500 GT.
• The GeForce 8700M GT is slower than 8600 GT.
• The GeForce 8800M GTS is a 9600 GT.
• The GeForce 8800M GTX is a 8800 GS.
• The GeForce 9300M GS is a 8400M G.
• The GeForce 9500M GS is a 8600M GS.
• The GeForce 9600M GS is a 8600M GS.
• The GeForce 9600M GT is a 8600M GT, two times less powerful than GeForce 9600 GT.
• The GeForce 9650M GS is a 8700M GT.
• The GeForce 9650M GT and 9700M GT are two times less powerful than the 9600 GT.
• The GeForce 9700M GTS is a 9600 GSO 512.
• The GeForce 9800M GS is a 8800M GTS, 9600 GT alias.
• The GeForce 9800M GTS is a 8800M GTS, 9600 GT alias.
• The GeForce 9800M GT is a 8800M GTX, 8800 GS alias.
• The GeForce 9800M GTX is a 8800 GT.
• The G 105M GeForce 8400M G is a
• The G 110M GeForce 8400M GS is one.
• The GT 120M GeForce 8600M GT is one.
• The GeForce 130M GT is a 8700M GT.
• The GeForce GTS 150M and 160M are 8800M GTS, 9600 GT alias.
• The GeForce 210M G is functionally a 8400M GS.
• The GeForce GT 230M and 240M are functionally 9700M GTS, aka 9600 GSO 512.
• The GeForce GTS 250M and 260M are 8800M GTX, 8800 GS alias.
• The GeForce GTX 260M is a 8800 GT.
• The GeForce GTX 280M is a 8800 GTS 512.
• The GeForce 305M is functionally a 8400M GS.
• The GeForce 310M is functionally a 8400M GT.
• The GeForce 325M GT is functionally a 9600 GSO 512.
• The GeForce GTS 350M and 360M are functionally 8800M GTS, 8800 GS alias.

As we see, the list is long and while NVIDIA has started his short game quite late, the company was well caught and "industrialized" the name change.

크리에이티브 커먼즈 라이센스
Creative Commons License
이올린에 북마크하기(0) 이올린에 추천하기(0)
2010/01/30 20:49 2010/01/30 20:49

댓글을 남겨주세요.

[로그인][오픈아이디란?]

  
  
  
  
  
  
  
  
 

Mr. Ballmer, would you sign my mac?

Posted at 2010/01/23 12:00 // in Interesting/Articles // by kchris
 

사인해달라니까 애플로고 위에 사인해버리는 우리 microsoft CEO steve ballmer.

학생이 microsoft에 대한 복수를 하려 했는데 오히려 학생과 맥에게 비수를.ㅋㅋㅋㅋ


"it's got windows on it, I promise"
ㅋㅋㅋㅋㅋ
크리에이티브 커먼즈 라이센스
Creative Commons License
이올린에 북마크하기(0) 이올린에 추천하기(0)
2010/01/23 12:00 2010/01/23 12:00

댓글을 남겨주세요.

[로그인][오픈아이디란?]

  
  
  
  
  
  
  
  
 

Nintendo wiimote C++ API

Posted at 2010/01/18 17:46 // in Programming/C&C++ // by kchris
사용자 삽입 이미지


Wiimote C++ API

reference : http://wiiyourself.gl.tter.org
 
 

1. Include Wiimote header file to current source.
   #include "Wiimote.h"


2. Link Library files in Visual Studio.

  hid.lib
  setupapi.lib
  winmm.lib

 

3. Create Instance of Wiimote.

   -. create Instance of Wiimote (*.h)

   wiimote wiimote;


   -. Connect Wiimote (*.cpp)

 wiimote.CallbackTriggerFlags = NO_CHANGE;
 while(!wiimote.Connect(wiimote::FIRST_AVAILABLE))  Sleep(1000);
 if(wiimote.bExtension)  wiimote.SetReportType(wiimote::IN_BUTTONS_ACCEL_IR_EXT); // no IR dots
 else            wiimote.SetReportType(wiimote::IN_BUTTONS_ACCEL_IR);     //    IR dots
 wiimote.SetLEDs(0x01);

 

4. This is an example; how to use the Acceleration?
refer to the picture - each axis of motion sensor

 wiimote.RefreshState();  

 wiimote.Acceleration.X;

 wiimote.Acceleration.Y;

 wiimote.Acceleration.Z;

 

5. An example of using Button.(if the button has pushed, sets TRUE)

 wiimote.RefreshState();  
 if(wiimote.Button.Up())  g_fmY += 0.3f;
 if(wiimote.Button.Down()) g_fmY -= 0.3f;
 if(wiimote.Button.Left())   g_fmX -= 0.3f;
 if(wiimote.Button.Right())  g_fmX += 0.3f;
 if(wiimote.Button.Minus()) g_fY -= 0.3f;
 if(wiimote.Button.Plus()) g_fY += 0.3f;

 if(wiimote.Button.A()) g_fmZ -= 0.3f;
 if(wiimote.Button.B()) g_fmZ += 0.3f;

 if(wiimote.Button.Minus()) g_fY -= 0.03f;
 if(wiimote.Button.Plus()) g_fY  += 0.03f;

 

6. Vibration ON : True, vice versa

 wiimote.SetRumble(true);

 wiimote.SetRumble(false);

 

7. The LED indicates blue LED on Wiimote, Bit  unit. (use only Low Nibble)

  wiimote.SetLEDs(0x01);   // turn on only first LED

  wiimote.SetLEDs(0x00);   // whole LED OFF

 

8. Wiimote Disconnect at end of program.

// wii mote Disconnect
 wiimote.Disconnect();
크리에이티브 커먼즈 라이센스
Creative Commons License
이올린에 북마크하기(0) 이올린에 추천하기(0)
2010/01/18 17:46 2010/01/18 17:46

댓글을 남겨주세요.

[로그인][오픈아이디란?]

  
  
  
  
  
  
  
  
 

블로그 스킨 리뉴얼.

Posted at 2010/01/17 14:24 // in Common Days // by kchris
이 얼마만의 리뉴얼인가.

항상 비슷한 컨셉으로 가는 감이 없지않아 있지만.. 심플한게 가장 오래가고 질리지도 않기에.
무엇보다 가장 큰 이유는 쓸만한 스킨이 없다.

내가 스킨을 만들어 쓰는게 가장 이상적이겠지만 그럴 시간도 없고 능력도 없고.
이번엔 약간 파격적인 것으로..

IE8에서 맨 위쪽 바가 약간 틀어지는게 마음에 걸리지만 막상 고치려니 잘 모르겠다-,.-
한창 블로그에 관심갖고 html, php를 섭렵할 시기라면 모르겠는데 지금 보니 정신이 하나도 없네.
그냥 써야겠다.

이제 바쁜 것들도 살짝 지났으니 글좀 써볼까.
크리에이티브 커먼즈 라이센스
Creative Commons License
이올린에 북마크하기(0) 이올린에 추천하기(0)
2010/01/17 14:24 2010/01/17 14:24

댓글을 남겨주세요.

[로그인][오픈아이디란?]

  
  
  
  
  
  
  
  
 

버거킹에서 난동부리지 맙시다.

Posted at 2010/01/14 22:44 // in Hobby/For Fun // by kchris



이꼴나기 싫으면.
크리에이티브 커먼즈 라이센스
Creative Commons License
이올린에 북마크하기(0) 이올린에 추천하기(0)

"Hobby / For Fun" 분류의 다른 글

말 잘한다. (0)2010/03/06
Apple's Evolution in 2012, 2014 (0)2010/02/24
The 12 Pains of Christmas (0)2009/12/21
수박에 3만볼트를 인가하면? (0)2009/09/16
막장야구만화 (0)2009/09/02
2010/01/14 22:44 2010/01/14 22:44

댓글을 남겨주세요.

[로그인][오픈아이디란?]

  
  
  
  
  
  
  
  
 

1 2 3 4 5 ... 48