I hereby claim:
- I am deluxebear on github.
- I am ericxiong (https://keybase.io/ericxiong) on keybase.
- I have a public key ASD3o6xaSWUJWpx5nCWPE2M_AzmP6iax7WhHUYJK_WwNkAo
To claim this, I am signing this object:
#!/bin/bash | |
#fonts color | |
yellow(){ | |
echo -e "\033[33m\033[01m$1\033[0m" | |
} | |
green(){ | |
echo -e "\033[32m\033[01m$1\033[0m" | |
} | |
red(){ |
I hereby claim:
To claim this, I am signing this object:
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
sudo service gitlab start | |
报下列错误 | |
Puma 2.0.1 starting... | |
* Min threads: 0, max threads: 16 | |
* Environment: production | |
* Listening on unix:///home/git/gitlab/tmp/sockets/gitlab.socket | |
/home/git/gitlab/vendor/bundle/ruby/1.9.1/gems/puma-2.0.1/lib/puma/binder.rb:235:in `initialize': Address already in use - "/home/git/gitlab/tmp/sockets/gitlab.socket" (Errno::EADDRINUSE) | |
from /home/git/gitlab/vendor/bundle/ruby/1.9.1/gems/puma-2.0.1/lib/puma/binder.rb:235:in `new' | |
from /home/git/gitlab/vendor/bundle/ruby/1.9.1/gems/puma-2.0.1/lib/puma/binder.rb:235:in `add_unix_listener' | |
from /home/git/gitlab/vendor/bundle/ruby/1.9.1/gems/puma-2.0.1/lib/puma/binder.rb:96:in `block in parse' |
<%-- | |
User: eric | |
Date: 13-4-4 | |
Time: 上午12:04 | |
--%> | |
<%@ page contentType="text/html;charset=UTF-8" language="java" %> | |
<html> | |
<head> | |
<title></title> | |
</head> |
<html> | |
<body> | |
<h2>Servlet 3.0上传文件</h2> | |
<form enctype="multipart/form-data" action="UploadServlet" method="post"> | |
<input type="file" name="file"> | |
<input type="submit"> | |
</form> | |
</body> | |
</html> |
import java.io.File; | |
import java.io.IOException; | |
import javax.servlet.ServletException; | |
import javax.servlet.annotation.MultipartConfig; | |
import javax.servlet.annotation.WebServlet; | |
import javax.servlet.http.HttpServlet; | |
import javax.servlet.http.HttpServletRequest; | |
import javax.servlet.http.HttpServletResponse; | |
import javax.servlet.http.Part; |