Java Spring Tutorial Part1

maven

  • make sure ‘mvn -v’ return the current version in you computer
  • otherwise, install the maven first

Hello world

  • project hierarchy
    • helloworld (folder)
      • (root directory)
      • src
        • main
          • java
            • hello
              • Greeter.java
              • HelloWorld.java
      • target(auto generate after mvn install)
        • helloworld-0.1.0.jar
      • pom.xml
Read more

Install Tomcat in Mac

install tomcat in mac

  • 1.go to http://tomcat.apache.org/ and download the zip file of tomcat
  • 2.then unzip the zip file into /Library and rename into “Tomcat”
  • 3.then sudo chmod 755 /Library/Tomcat/bin/*.sh
  • 4.if you want to start tomcat
    • sudo sh startup.sh
    • if want to stop
      • sudo sh /Library/Tomcat/bin/shutdown.sh
Comments

Compile Qtox on OSX

Problems when compile qtox on mac

  • first is the modification of the qtox.pro file
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
CONFIG += c++11
CONFIG += x86_64
CONFIG -= x86
contains(JENKINS,YES) {
  INCLUDEPATH += ./libs/include/
} else {
  INCLUDEPATH += libs/include
    # add head path
    INCLUDEPATH += /usr/include
    INCLUDEPATH += /usr/local/include
    INCLUDEPATH += /opt/local/include
}
macx {
    BUNDLEID = im.tox.qtox
    ICON = img/icons/qtox.icns
    QMAKE_INFO_PLIST = osx/info.plist
    QMAKE_MACOSX_DEPLOYMENT_TARGET = 10.9
    # add libtoxav
    LIBS += -L/usr/local/opt/libtoxcore/lib -ltoxav -ltoxcore
    LIBS += -L/usr/local/opt/libsodium/lib -lsodium
    LIBS += -L/usr/local/opt/libvpx/lib -lvpx
    LIBS += -L/usr/local/lib -lopus
    LIBS += -L/usr/local/lib -lopencv_core -lopencv_highgui
    #LIBS += -L/opt/local/lib -lopencv_core -lopencv_highgui
    LIBS += -L$$PWD/libs/lib/ -framework OpenAL -mmacosx-version-min=10.9
    #LIBS += -L$$PWD/libs/lib/ -ltoxcore -ltoxav -ltoxencryptsave -ltoxdns -lsodium -lvpx -lopus -framework OpenAL -lopencv_core -lopencv_highgui -mmacosx-version-min=10.7
    contains(DEFINES, QTOX_PLATFORM_EXT) { LIBS += -framework IOKit -framework CoreFoundation }
    contains(DEFINES, QTOX_FILTER_AUDIO) { LIBS += -lfilteraudio }
Read more
OSX, c++, qt
Comments

CLEP Microeconomic Practise Exam

exam 1

  • 1.If a producing firm does not have enough time to expand its plant capacity生产规模, it is:
    • operating in the short run
    • 因为没时间,所以要赶紧做事,以免被别人打败
      • 所以只能进行短期运营
Read more
Comments

Computer Architecture 1

charpter1

  • What is computer architecture

    • 4 classes of computers
      • personal computer
      • server computer
      • embedded computer
      • supercomputer Read more

Linkedin_api_example

Read more
Comments