Skip to content

qscde45/Web-Application

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

41 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Software Engineering: Web Applications 2017 SPRING

name:Weiqing Ni netID: wn61

BayesBurFit

More details on Github.

Supported platform:

  • Windows
  • Linux
  • MacOS (Require Xcode, to be verified)

How To Build

  1. Windows:

    • Open Visual Studio/ CodeBlocks, create new console application project.
    • Import all files into project
    • Build
  2. Linux/ Cygwin on Windows:

    • Build static library (generate BayesCurFit.a):

      cd Linux/BayesCurFit
      make
    • Build executable file:

      gcc main.c BayesCurFit.a -lm -fopenmp -o Bayes
  3. MacOS:

    • TBD

How To Execute

./Bayes {x_input_file} {t_input_file} {size} {x_to_predict}

example:

Get Stock Information From Yahoo Finance

Configure for MYSQL

GetStock/CreateDatabase.php && GetStock/ImportData.php

Modify username and password according to your configuration for mySQL:

$username = "root";
$password = "";

How To Execute

cd GetStock
# Get history information
php getHistory.php
# Get real time information
php getReal.php
# Create database
php CreateDatabase.php
# Import data to database
php ImportData.php
# Output database tables
php showDatabase.php
# Clear tables
php clearTable.php

Stocks

Code Company
GOOG Google
YHOO Yahoo
MSFT Microsoft
FB Facebook
CCF Chase

Results

Find history data in ./GetStock/hist_data/{Code}-{Time}.csv.

Find real-time data in ./GetStock/real_data/{Code}-{Time}.csv.

Known Issues

  • Timestamp is different due to different API.

  • Warning fixes

HW5/BackPropagation

Compile and run:

cd {DIR}
make
GCC main.c BP.a -lm -fopenmp -o BP
./BP {learning_rate} {max_training_times} {target_error}

HW6/ TCP Server and Client

Compile and Run:

cd {DIR}
g++ server.cpp -o server
g++ client.cpp -o client
./server [port_num]
./client [port_num]

Commands supported by the server:

  1. Get files

    GET [filename]

  2. Bounce text

    BOUNCE [text]

  3. Exit

    EXIT

    or

    EXIT [exit_code]

About

Rutgers Graduate 16:332:568

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • HTML 60.1%
  • C 25.3%
  • JavaScript 10.0%
  • Makefile 2.8%
  • CSS 1.1%
  • C++ 0.3%
  • Other 0.4%