GithubHelp home page GithubHelp logo
title disqus
Readme
hackmd

NCTU Database Project Team28

downloads build chat

Table of Contents

Introdution

I am student major in EECS in NCTU. I love jav. Here I use simple example to show that how to create your own jav website. (Due to some regulation, there is no adult video contained in this project.) (Due to the fact that the original dataset was lack of casts of each viedo, I crawl on www.javhoo.com to find out the main characters of those videos via Beautifulsoup4.)

How to issue an simple av website? website = Database + server + Domain name

##STEP 1:Database(MariaDB) Fulfill query you want. You just have to know how to use SQL lnaguage.

Here I create database using MariaDB in phpmyadmin.

Set account in phpmyadmin config.(config.inc.php) ''' $cfg['Servers'][$i]['controluser'] = 'ben'; $cfg['Servers'][$i]['controlpass'] = '00000000'; '''

Create database ''' CREATE DATABASE av; USE av; '''

load tables ''' LOAD DATA LOCAL INFILE 'htdocs/data/actress.csv' INTO TABLE actress FIELDS TERMINATED BY ',' ENCLOSED BY '"' LINES TERMINATED BY '\r\n'; ''' ''' LOAD DATA LOCAL INFILE 'htdocs/data/actress_censored_revised.csv' INTO TABLE actress_censored_revised FIELDS TERMINATED BY ',' ENCLOSED BY '"' LINES TERMINATED BY '\r\n'; ''' ''' LOAD DATA LOCAL INFILE 'htdocs/data/censored.csv' INTO TABLE censored FIELDS TERMINATED BY ',' ENCLOSED BY '"' LINES TERMINATED BY '\r\n'; '''

Create index on table To optimize query, you have to create index ''' ALTER TABLE actress ADD INDEX ( name ); ''' ''' ALTER TABLE actress_censored_revised ADD INDEX ( fanhao, actress); ''' ''' ALTER TABLE censored ADD INDEX ( fanhao );

''' Drop table (if necessary) ''' DROP TABLE 'censored'; '''

Drop index (if necessary) ''' ALTER TABLE actress_censored_revised DROP fanhao; '''

If you find the column name is COL 1, COL 2 .....etc, remember to modify them. You can do that in either CMD or phpmyadmin GUI.

STEP 2: Server(apache)

Fulfill query by webpage interface You have to design both frontend(html) and backend(php) to define webpage behavior.

Here I establish connection using apache in phpmyadmin

In

In php: ''' $serve = 'localhost'; $username = 'ben'; $password = '00000000'; $dbname = 'av'; '''

Write your own html and php code html: for website design. (here I to assigh method = "post") php: for website behavior.

##STEP 3: Domain name(ngrok) Let your website accessable by other terminals. You have to apply for a domain name, manage ip problem, and some secure stuff like ssh connection. Here I use ngrok to automatically deal with domain name and ip problem.

Explaination

Appendix and FAQ

:::info Find this document incomplete? Leave a comment! :::

tags: Porn JAV phpmyadmin ngrok

benlin1211's Projects

cosnet icon cosnet

See More, Know More: Unsupervised Video Object Segmentation with Co-Attention Siamese Networks (CVPR19)

cvpdl_hw1 icon cvpdl_hw1

NTU 2023 Spring CVPDL-hw1: Object Detection (DETR, YOLOv8)

cvpdl_hw3 icon cvpdl_hw3

NTU 2023 Spring CVPDL-hw3: Domain Adaption on Object Detection

dlcv_hw1 icon dlcv_hw1

NTU DLCV homework1: Image classification & Semantic segmentation

dpc_withaberrationcorrection icon dpc_withaberrationcorrection

M. Chen, Z. F. Phillips, and L. Waller, Quantitative differential phase contrast (DPC) microscopy with computational aberration correction, Opt. Express 26(25), 32888-32899 (2018).

touch icon touch

[READ ONLY] Subtree split of the Touch module.

votenet icon votenet

Deep Hough Voting for 3D Object Detection in Point Clouds

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.