Skip to main content

Posts

How to fix "ValueError when trying to compile python module with VC Express"

When I tried to compile the python, I always get compile issue as following: ------------ ... File "C:\Python26\lib\ distutils\msvc9compiler.py ", line 358, in initialize vc_env = query_vcvarsall(VERSION, plat_spec) File "C:\Python26\lib\ distutils\msvc9compiler.py ", line 274, in query_vcvarsall raise ValueError(str(list(result.keys()))) ValueError: [u'path'] --------------------- Python community discussed a lot but no solution: http://bugs.python.org/issue7511 The root cause is because the latest visual studio change the *.bat file a lot especially on 64bit env. The python 2.7 didn't update the path accordingly. Based on the assumption above, the following solution worked for me. To install Visual Studio 2008 Express Edition with all required components: 1. Install Microsoft Visual Studio 2008 Express Edition. The main Visual Studio 2008 Express installer is available from (the C++ installer name is vcsetup.exe): https://ww...

How to fix Chrome frozon issue when loading applet?

I suffered a lot by chrome when embedding the applet into page during these days. Fortunately, I figure out what the tricky parts of it:) 1) Firstly, we need get rid of all security issues which should be addressed by jarsigner with the following MANIFEST.MF Manifest-Version: 1.0 Application-Library-Allowable-Codebase: * Caller-Allowable-Codebase: * Codebase: * Permissions: all-permissions Archiver-Version: Plexus Archiver Application-Name: XXXXX Build-Jdk: 1.7.0_45 Built-By: lzheng Created-By: Apache Maven 3.0.4 Here is the reference for all applet jar manifest:  http://docs.oracle.com/javase/7/docs/technotes/guides/jweb/manifest.html If you know nothing about jarsigner, the chrome frozen issue is out of your ability to resolve it:) 2) After that, the code work perfectly on firefox but randomly freeze the chrome browser which depress me a lot. Is it a chrome issue? yes and no. Chrome just didn't handle the exceptions correctly when we call applet method...

Flex4 Parsley Maven Project

I had converted the parsley from ant to manve build for my project usage. The new version is already here:  https://github.com/LeiZheng/parsley-pom mvn clean install -DskipTests to execute the build. The generated swc files will be ${base.dir}\target

Using flexmojos 6.0.1 compile FDK 4.10.0 code (2)

General Error: 1.  Unable to Resolve Resource Bundle   Solution:  Open you flex builder, check the acutal *_rb.swc files used in build path. Try to add them one by one to see if the work reduce the error number. For mine: Error: Unable to resolve resource bundle "components" for locale "en_US". Error: Unable to resolve resource bundle "components" for locale "en_US". Error: Unable to resolve resource bundle "skins" for locale "en_US". Error: Unable to resolve resource bundle "core" for locale "en_US". Error: Unable to resolve resource bundle "core" for locale "en_US". Error: Unable to resolve resource bundle "effects" for locale "en_US". Error: Unable to resolve resource bundle "styles" for locale "en_US". Error: Unable to resolve resource bundle "components" for locale "en_US". Error: Unable to resolve re...

Using flexmojos 6.0.1 compile FDK 4.10.0 code (1)

pom.xml 1. define property:     <flex.sdk.version>4.10.0.20130801</flex.sdk.version> <flex.mojos.version>6.0.1</flex.mojos.version> <flex.playerglobal.version>11.8</flex.playerglobal.version> 2. pluginManagement                                    <plugin>  <groupId>net.flexmojos.oss</groupId>  <artifactId>flexmojos-maven-plugin</artifactId>  <version>${flex.mojos.version}</version>  <extensions>true</extensions>    <configuration> <swfVersion>11</swfVersion>    <fonts>    <managers> <manager-class>flash.fonts.JREFontManager</manager-class> <manager-class>flash.fonts.BatikFontManager</manager-class> ...