Wednesday, November 25, 2009

BTools2 for Windows Mobile 5.0 is released

Please refer to following links for more informations.

BTools2 for Windows Mobile 5.0

쉽게 설명하는 것인가 어렵게 설명하는 것인가?

신문을 보다보면 종종 숫자(주로 통계)가 많이 언급되고 있으며 이를 통해 사람들은 어느 정도의 정량적인 평가를 할 수 있다. 그런데 최근 들어 많은 매체를(신문, 방송, 지자체 보도, 심지어 정부 보고, 특히 보건 관련 기사들) 보면 이들 숫자를 교묘히 적고 있다.

다시 말해서 자기들의 편익을 위해 숫자의 기입 방식을 바꾼다. 좀 더 쉽게 말하면 나쁜 일에는 큰 숫자 표시를 줄이고, 좋은 일에는 큰 숫자 표시를 늘인다는 것이다.

다음 예를 보자. 인터넷 동아일보에 싣은 연합 뉴스 기사다.

"WHO는 지난 19일 신종플루 백신을 접종받은 후 숨진 30명에 대한 검사를 했으나, 백신과 사망 원인 사이에 직접적인 연관성은 드러나지 않았다는 입장을 밝힌 바 있다.


WHO에 따르면 신종플루 백신 접종 후 사망 사례는 16개국에서 접종이 이뤄진 6천500만 회분의 백신 중 극히 일부로, 1만 회분에 1건 꼴로 역효과가 나타났으며 보고된 역효과 100건 가운데 사망 등으로 상황이 악화되는 경우는 5건 정도다."

위 기사를 보고 몇 명이 사망했는지 바로 알 수 있나? 적어도 필자의 경우는 알기 어렵다이다.  블로그를 방문해 주신 분들을 위해 다시 계산해 드리겠다.

1만 회분에 1건이면 6500,0000회  = 6500건
역효과 100건당 5건이 사항 = 6500 / 100  * 5 = 325명

즉 사망 숫자는 6천500만회분 중 이 325건이 되겠다. 확률로 치면 0.005%되겠다.

기사를 보면 X / Y = Z,  Z / A = C. 즉 C 만큼이다 라는 계산을 쓰고 있다. 독자들의 두뇌 회전을 위해 친절히 쓴  기사인지...

뉴스의 생명인 신속 정확은 맞지만, 이렇게 전달하는 것은..... 어떻게 해석을 해야 할지 모르겠다.

또 다른 예시도 들어보면....

부동산 가격 그래프를 자세히 보면 상승률 그래프는 납작하게 표현되고, 하강 그래프는 길게 표현된다. 다시 말하면, y 축을 늘였다 줄였다 한다는 것. 심리적인 영향을 고려해서 그런지는 모르겠다. 또한 y축의 간격을 보면 상승은 0.1 ~ 0.3인 경우가 많고  하강은 금액을 쓰는 경우가 많다.


수출 그래프의 경우 %를 많이 쓴다. 이것은 2배 보다 100% 성장이 눈에 더 띄기 때문이겠지요.

Monday, November 23, 2009

낚시글 기사(etnews)

etnews에서 게재한 아래 기사 제목을 한 번 보자.

KT, 아이폰 3종 28일 공식 출시

인용 "이번에 출시되는 아이폰은 3G 8기가바이트(Gb)와 3GS 16Gb 및 32Gb 등 총 3종으로..."

실제 기사를 보면 내장 메모리(8, 16, 32)에 따라 3종을 출시한다고 한다. 무슨 말인지?
아이폰은 한가지 종류입니다. 거기에 메모리만 다른데 이걸 3종으로 표현하는 것은 그야말로 부풀리기의 참사례를 보여주는 것입니다.  낚시 뉴스이죠.  참 씁쓸합니다.

또 하나, 출시하는 것은 3GS라고 되어 있습니다.

기사의 생명은 신속, 정확입니다. 거기에 책임지는 모습도 필요하겠지요.

Monday, November 09, 2009

Something wrong in Load() in CxImage with unknown file name(file type)

My Purpose on this sample application is to merge Special FX lib and CxImage. (You can see Special fx in my blog -- This code is originally uploaded at codeproject.com and I've ported to Windows Mobile)

Issues : CxImage has a bug in decoding unknown file using Load(). It raises an exception like this.

RaiseException: Thread=97a3d0a8 Proc=80096d60 'SFX.exe'
AKY=00001001 PC=03f91e7c(coredll.dll+0x00043e7c) RA=88037538(NK.EXE+0x00007538) BVA=00000000 FSR=00000000




I'll upload new article if I found something with Load()

Resolution to code 0x8007007e (WTL, Windows Mobile)


Demo_ce in CxImage 6.0.


It seems that Microsoft Visual Studio linker has dependency order problem.

  • Property->Library->Input    (a.lib, b.lib, c.lib, ...)
  • Property->Library->Custom (a.lib, b.lib, c.lib, ...)

As you see, above setting does have differences.
Although it looks almost same, Input field has some conflicts in order. But Custom field doesn't have.

So conclusion in here is use custom field. (if you want to avoid stupid nuisances)

Friday, November 06, 2009

code 0x8007007e (WTL) (2/2)

Environments : Visual Studio 2005, WTL WTL80_7161_Final, Windows Mobile 6.0 emulator

Finally I found the solution to solve 0x8007007e error on my project. Error looks like this.



I was testing with my newly built CxImage. And I just copy library setting from demo_ce which is included in CxImage.

I Put these libraries(png.lib jpeg.lib zlib.lib tiff.lib jbig.lib jasper.lib cximaged.lib) at the end of "Setting -> Linker -> Additional Dependency" (속성-> 링커 ->입력->추가 종속성)

then I deploy and as I ran an application I encountered "code 0x8007007e"   -_-;

PS. Please read my next article about resolution to this.

code 0x8007007e (MFC) (1/2)

When I build my simple WTL application and deployed to an emulator and then I ran into following problem.

error messages appears:
Unable to start program 'MyProgram.exe'.
An error occurred that usually indicates a corrupt installation (code 0x8007007e). If the problem persists, repair your Visual Studio installation via 'Add or Remove Programs' in Control Panel.

Reason for Error: Project is dynamically linked to MFC, but the neccessary dll files are not deployed to the Emulator.

Solution for this error (MFC)

Solution: Setting: "Additional Files" which is in "Configuration Properties Deployment". Copy the value from the new default project into the old project that doesn't work.

Here's the settings for release mode: (Be careful, there's no spaces)
msvcr90.dll$(BINDIR)\$(INSTRUCTIONSET)\%CSIDL_PROGRAM_FILES%\$(ProjectName)0;atl90.dll$(BINDIR)\$(INSTRUCTIONSET)\%CSIDL_PROGRAM_FILES%\$(ProjectName)0;MFC90U.dll$(BINDIR)\$(INSTRUCTIONSET)\%CSIDL_PROGRAM_FILES%\$(ProjectName)0;

And the settings for debug mode:
msvcr90.dll$(BINDIR)\$(INSTRUCTIONSET)\%CSIDL_PROGRAM_FILES%\$(ProjectName)0;atl90.dll$(BINDIR)\$(INSTRUCTIONSET)\%CSIDL_PROGRAM_FILES%\$(ProjectName)0;msvcr90d.dll$(BINDIR)\$(INSTRUCTIONSET)\%CSIDL_PROGRAM_FILES%\$(ProjectName)0;MFC90UD.dll$(BINDIR)\$(INSTRUCTIONSET)\%CSIDL_PROGRAM_FILES%\$(ProjectName)0;

Found on Googling
--



BUT there's no dll depdendencies in my project since it is using WTL and static libraries only.



What do I do now???? I'm doing googling.
 
I'll upload solution if found.

Windows Mobile Test Apps (CxImage 6.0 ce)

I've built CxImage 6.0 for Windows Mobile 6.0 Professional Version.





Although there need some tweaks in vanilla version of CxImage_ce But It doesn't have any problem to build  built demo_ce and it works just fine.

Supported Formats : png, jpg, tif, gif, ...   You can add as much as you like.