This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
asadmin create-domain --domaindir "%GLASSFISH_HOME%\domains" --adminport 7070 --instanceport 7071 production | |
asadmin create-domain --domaindir "%GLASSFISH_HOME%\domains" --adminport 6060 --instanceport 6061 testing | |
asadmin create-domain --domaindir "%GLASSFISH_HOME%\domains" --adminport 5050 --instanceport 5051 development |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.blogpost.maven.maven_spring; | |
import org.springframework.context.ApplicationContext; | |
import org.springframework.context.support.ClassPathXmlApplicationContext; | |
public class App { | |
public static void main(String[] args) { | |
@SuppressWarnings("resource") | |
ApplicationContext context = new ClassPathXmlApplicationContext( | |
"Beans.xml"); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* File: main.cpp | |
* Author: Gary Stafford | |
* Description: Program entry point | |
* Created: February 3, 2013 | |
*/ | |
#include <stdio.h> | |
#include <sstream> | |
#include <stdlib.h> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
scp *.jpg *.cpp *.h {your-pi-user}@{your.ip.address}:your/file/path/ | |
ssh {your-pi-user}@{your.ip.address} | |
cd ~/your/file/path/ | |
g++ `pkg-config opencv cvblob --cflags --libs` testfps.cpp testcvblob.cpp main.cpp -o FpsTest -v | |
./FpsTest |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* File: testcvblob.cpp | |
* Author: Gary Stafford | |
* Description: Track blobs using OpenCV and cvBlob | |
* Created: February 3, 2013 | |
*/ | |
#include <cv.h> | |
#include <highgui.h> | |
#include <cvblob.h> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* File: testfps.cpp | |
* Author: Gary Stafford | |
* Description: Test the fps of a webcam using OpenCV | |
* Created: February 3, 2013 | |
*/ | |
#include <cv.h> | |
#include <highgui.h> | |
#include <time.h> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// -*- C++ -*- | |
/* | |
* File: testfps.hpp | |
* Author: Gary Stafford | |
* Created: February 3, 2013 | |
*/ | |
#ifndef TESTFPS_HPP | |
#define TESTFPS_HPP |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// -*- C++ -*- | |
/* | |
* File: testcvblob.hpp | |
* Author: Gary Stafford | |
* Created: February 3, 2013 | |
*/ | |
#ifndef TESTCVBLOB_HPP | |
#define TESTCVBLOB_HPP |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# preview java alternatives | |
update-alternatives --display java | |
# check current version of java | |
java -version |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# determine the processor architecture | |
uname -a | |
arch |