jquery.fadeout()在IE8下png图片透明问题

问题描述:AD杂志iPad版需要一个查看礼物的网站,有个效果是png带透明图片用jquery进行fade in和fade out。原本只需要在iPad上使用。结果客户说IE8运行的时候透明的不会呈现全黑。检查后发现Safari、Firefox、Chromx都正常浏览,唯独IE7、8会有问题。

问题分析:猜想是IE7、8对png的兼容问题。原因是:IE修改透明度,不是通过css属性,而是通过filter滤镜。在IE9,微软修复了此问题。但是此问题对于IE7、8是无解。

总结:IE实在是弱爆了。

AIR在Mac和PC平台下隐藏文件问题

问题描述:今天加班帮惠氏Wyeth启斌illuma抽奖AIR。在Mac下开发完去PC上测试,发现Mac上一切正常,而PC上程序无法顺利运行。

问题分析:把源代码转到PC运行,一步一步排查。发现PC上会加载隐藏文件,而Mac上不会加载隐藏文件。正是这些隐藏文件的加载导致不正常。

问题解决
添加如下代码:

if(!file.isHidden)

一切OK了。

总结:Mac系统会忽略隐藏文件,与PC上会遍历所有文件不同。这也许是AIR的bug。

missing required architecture i386 in file

问题描述:今天研究QCAR的iPhone版本,下载Demo后编译报错,如下:

ld: warning: ignoring file ../../build/lib/arm/libQCAR.a, missing required architecture i386 in file

Undefined symbols for architecture i386:

"QCAR::deinit()", referenced from:

-[EAGLView onDestroy] in EAGLView.o

"QCAR::onResume()", referenced from:

-[EAGLView onResume] in EAGLView.o

-[EAGLView updateApplicationStatus:] in EAGLView.o

"QCAR::onPause()", referenced from:

-[EAGLView onPause] in EAGLView.o

"QCAR::setHint(unsigned int, int)", referenced from:

-[EAGLView updateApplicationStatus:] in EAGLView.o

"QCAR::onSurfaceCreated()", referenced from:

-[EAGLView initApplication] in EAGLView.o

"QCAR::onSurfaceChanged(int, int)", referenced from:

-[EAGLView initApplication] in EAGLView.o

"QCAR::setInitParameters(int)", referenced from:

-[EAGLView initQCAR] in EAGLView.o

"QCAR::init()", referenced from:

-[EAGLView initQCAR] in EAGLView.o

"QCAR::Tracker::getInstance()", referenced from:

-[EAGLView loadTracker] in EAGLView.o

-[EAGLView startCamera] in EAGLView.o

-[EAGLView stopCamera] in EAGLView.o

"QCAR::CameraDevice::getInstance()", referenced from:

-[EAGLView startCamera] in EAGLView.o

-[EAGLView stopCamera] in EAGLView.o

-[EAGLView configureVideoBackground] in EAGLView.o

-[OverlayView actionSheet:clickedButtonAtIndex:] in OverlayView.o

"QCAR::Tool::getProjectionGL(QCAR::CameraCalibration const&, float, float)", referenced from:

-[EAGLView startCamera] in EAGLView.o

"QCAR::Renderer::getInstance()", referenced from:

-[EAGLView configureVideoBackground] in EAGLView.o

-[EAGLView renderFrameQCAR] in EAGLView.o

"QCAR::requiresAlpha()", referenced from:

-[EAGLView initRendering] in EAGLView.o

"QCAR::State::~State()", referenced from:

-[EAGLView renderFrameQCAR] in EAGLView.o

"QCAR::State::getNumActiveTrackables() const", referenced from:

-[EAGLView renderFrameQCAR] in EAGLView.o

"QCAR::State::getActiveTrackable(int) const", referenced from:

-[EAGLView renderFrameQCAR] in EAGLView.o

"QCAR::Tool::convertPose2GLMatrix(QCAR::Matrix34F const&)", referenced from:

-[EAGLView renderFrameQCAR] in EAGLView.o

ld: symbol(s) not found for architecture i386

clang: error: linker command failed with exit code 1 (use -v to see invocation)

问题分析:开始以为是没有找到库,重新引用库,无效。后查Google,要删除掉Targets-Build Settings-Library Search Paths,照做,无效。最后找到以下这段:

It seems the library is built for phone deployment (ARM) but you are trying to link it to a simulator executable (x86). This won't work. Rebuild the library for the simulator.

问题解决:切换成Device编译,搞定。

升级Lion惊险记

想试试iCloud,就在App Store上花了29美元从Snow Leopard升级到Lion。艰辛坎坷惊险刺激。。。在这里不得不吐槽下Apple。

1.App Store操作下载超级慢,且一旦关机就不能断点续传。Lion下载了我2周。
2.所有的PowerPC的应用程序(包括烤面包等)都不能使用。在以前是能用的。
3.App Store点击安装Xcode无效。删除就版本xcode,也不能下载安装。官方又屏蔽了链接下载方式,最后只能把for snow leopard的链接改为for lion才能以链接方式下载。
4.装完Lion,切换到Win7,发现逻辑分区通通丢失。原因是新增了一个Recovery HD分区,导致Win7的扩展分区被挤掉了(Win7的mbf只支持4个主分区),只能使用Easy Recovery找回丢失文件合并到C盘。

Monster Media

Monster Media

As a full service multi media company, Monster Media offers clients a one-stop source for interactive advertising. Our unique products provide oversized interactive platforms that take on many forms and can be set up either permanently or event based throughout a national and international network.

http://www.monstermedia.net/