https://hub.docker.com/r/tlongren/docker-wordpress-nginx-ssh/ mysql 사용을 고려하여 tlongren/docker-wordpress-nginx-ssh 이미지 사용하자. # sudo docker run -p 80:80 -p 2222:22 –name wordpress -d tlongren/docker-wordpress-nginx-ssh:latest # docker start wordpress ssh -p 2222 wordpress@127.0.0.1 접속하여 파일 설정 및 FTP로 송/수신 가능함
//-------------------------- // Boxes.pde import shiffman.box2d.*; import org.jbox2d.collision.shapes.*; import org.jbox2d.common.*; import org.jbox2d.dynamics.*; import java.util.ArrayList; Box2DProcessing box2d; ArrayList boxes; Surface surface; void setup(){ size(640, 480); box2d = new Box2DProcessing(this); box2d.createWorld(); boxes = new ArrayList(); surface = new Surface(); } void draw(){..
// Box.pde class Box{ Body body; // Box2D Object(World, Body, Fixture, Shape float w, h; //weight, height Box(){ w = 16; h = 16; // 1. create bodyDef BodyDef bd = new BodyDef(); bd.type = BodyType.DYNAMIC; bd.position.set(box2d.coordPixelsToWorld(mouseX, mouseY)); // 2. define body body = box2d.createBody(bd); // 3. create Shape PolygonShape ps = new PolygonShape(); float box2DW = box2d.scalarPi..