My first FPGA board

https://world.taobao.com/item/521509218211.htm?fromSite=main&ali_refid=a3_430008_1006%3A1102706380%3AN%3Afpga%3Ac7143af19b4d9ca3664ce493729cace5&ali_trackid=1_c7143af19b4d9ca3664ce493729cace5&spm=a230r.1.0.0.ebb2eb2uLZqXB

http://pan.baidu.com/s/1i5LMUUD

read count : 1

C++ toolchain’s autotool is too complex

C++ toolchain’s autotool is too complex, if we create a new toolchain and simplify it, it affect almost all mid-to-large scale c++ projects. So those projects has to rewrite their building scripts to adopt to the new toolchain and people will not happy to doing this.

read count : 23

Install Office-365-SDK-for-Java to local maven repository

Since Office-365-SDK-for-Java only support gradle, these commands to install all Jars files to local maven repository,

mvn install:install-file -Dfile=./discovery-services/build/libs/discovery-services-1.0.0.jar -DgroupId=com.microsoft.services -DartifactId=directory -Dversion=1.0.0 -Dpackaging=jar
mvn install:install-file -Dfile=./files-services/build/libs/files-services-1.0.0.jar -DgroupId=com.microsoft.services -DartifactId=files -Dversion=1.0.0 -Dpackaging=jar
mvn install:install-file -Dfile=./graph-services/build/libs/graph-services-0.2.5.jar -DgroupId=com.microsoft.services -DartifactId=graph -Dversion=0.2.5 -Dpackaging=jar
mvn install:install-file -Dfile=./onenote-services/build/libs/onenote-services-0.15.0.jar -DgroupId=com.microsoft.services -DartifactId=onenote -Dversion=0.15.0 -Dpackaging=jar
mvn install:install-file -Dfile=./outlook-services/build/libs/outlook-services-1.0.0.jar -DgroupId=com.microsoft.services -DartifactId=outlook -Dversion=1.0.0 -Dpackaging=jar
mvn install:install-file -Dfile=./sharepoint-services/build/libs/sharepoint-services-1.0.0.jar -DgroupId=com.microsoft.services -DartifactId=sharepoint -Dversion=1.0.0 -Dpackaging=jar

read count : 3

Use this in pom.xml to copy the target jar into kettle plugin folder

Use this in pom.xml to copy the target jar into kettle plugin folder

<build>
		<plugins>
			...
			<plugin>
				<artifactId>maven-antrun-plugin</artifactId>
				<version>1.4</version>
				<executions>
					<execution>
						<id>copy</id>
						<phase>package</phase>
						<configuration>
							<tasks>
								<copy file="${project.build.directory}/${project.artifactId}-${project.version}.jar" todir="/Users/peter/Downloads/data-integration/plugins/sharepoint-online/"/>
							</tasks>
						</configuration>
						<goals>
							<goal>run</goal>
						</goals>
					</execution> 
				</executions>
			</plugin>

Netbeans 8.2 bundled an old maven which is not ok to compile kettle sdk, please set it to latest maven.

!!! The nexus.pentaho.org maven repository is just super slow in hong kong, run “mvn dependency:go-offline” to cache it to your local repository

read count : 12

[Solved] Pentaho kettle is unable to run in mac

Pentaho kettle is unable to run in mac if you click on “Data Integration.app”, you will have this error LSOpenURLsWithRole() failed with error -10810 for the file /Users/peter/Downloads/data-integration/Data Integration.app. run the follow command will fix it. data-integration is the unzipped folder of kettle.

xattr -dr com.apple.quarantine data-integration

The above error is fixed, but double click on “Data Integration.app” still nothing. Edit spoon.command, add the line in red

cd `dirname $0`# if a BASE_DIR argument has been passed to this .command, use it
if [ -n “$1” ] && [ -d “$1” ] && [ -x “$1” ]; then
echo “DEBUG: Using value ($1) from calling script”
cd “$1”
fi

export JAVA_HOME=’/Library/Java/JavaVirtualMachines/jdk1.8.0_131.jdk/Contents/Home’
./spoon.sh
exit

cd `dirname $0`

read count : 18

Super quick guide : setup stm32 development environment

Super quick guide : setup stm32 development environment, follow these steps:

  1. Download STM32CubeL4, My STM32L476RG board is L4, so don’t download Stm32Cube, just download STM32CubeL4 http://www.st.com/en/embedded-software/stm32cubel4.html
  2. Download and install eclipse http://www.eclipse.org
  3. Install eclipse CDT
  4. (Optional) Install GNU ARM for eclipse http://gnuarmeclipse.github.io/plugins/install/ . After install you have this, the funny thing is that this plugin has stm32 projects but STM32 workbench plugin don’t have
  5. Install GNU ARM Embedded Toolchain, this is optional because i guess step 4 already include an arm compiler, unless you want to manually run arm-none-eabi-gcc in your terminal https://developer.arm.com/open-source/gnu-toolchain/gnu-rm/downloads
  6. (Must do this) Install SW4STM32, just install it as a plugin to eclipse http://www.openstm32.org/System+Workbench+for+STM32
  7. Open eclipse
  8. File -> Import -> Existing projects into workspace , choose the from the folder from STM32CubeL4, /Users/peter/Desktop/STM32Cube_FW_L4_V1.8.0/Projects/STM32L476RG-Nucleo/Examples_LL/GPIO/GPIO_InfiniteLedToggling
  9. In eclipse, click Project -> Build project, if everything ok, you will find the bin file in Debug folder, just burn it to the board using command “st-flash write Debug/STM32L476RG_NUCLEO.bin 0x8000000”
  10. Led should be blinking now, see my video
  11. Set come breakpoints and right click the project -> debug, eclipse should able to trap the breakpoint, see below video

read count : 25

[solved] netbeans api transitive module problem

If you meet this, you just forget to add the dependency to pom.xml, so in my case i just add org-netbeans-api-java-classpath then this problem gone.

Project uses classes from transitive module org.netbeans.api:org-netbeans-api-java-classpath:jar:RELEASE82 which will not be accessible at runtime.
To fix the problem, add this module as direct dependency. For OSGi bundles that are supposed to be wrapped in NetBeans modules, use the useOSGiDependencies=false parameter

read count : 3