$ pkill --oldest chrome // kill chrome process
rename 's/(.*)/[ngockhuong]_$1/' *.jpg
import java.math.BigInteger; | |
import java.security.MessageDigest; | |
import java.security.NoSuchAlgorithmException; | |
/** | |
* Author: Lam Ngoc Khuong | |
* Website: http://ngockhuong.com - Programming knowledge sharing | |
*/ | |
public class MD5 { | |
public class Slug { | |
public String createSlug(String title) { | |
String slug = Normalizer.normalize(title, Normalizer.Form.NFD); | |
Pattern pattern = Pattern.compile("\\p{InCombiningDiacriticalMarks}+"); | |
slug = pattern.matcher(slug).replaceAll(""); | |
slug = slug.toLowerCase(); | |
// Thay đ thành d | |
slug = slug.replaceAll("đ", "d"); | |
// Xóa các ký tự đặt biệt | |
slug = slug.replaceAll("([^0-9a-z-\\s])", ""); |
<url-pattern>/*</url-pattern> | |
The /* on a servlet overrides all other servlets, including all servlets provided by the servletcontainer such as the default servlet and the JSP servlet. Whatever request you fire, it will end up in that servlet. This is thus a bad URL pattern for servlets. Usually, you'd like to use /* on a Filter only. It is able to let the request continue to any of the servlets listening on a more specific URL pattern by calling FilterChain#doFilter(). | |
<url-pattern>/</url-pattern> | |
The / doesn't override any other servlet. It only replaces the servletcontainer's builtin default servlet for all requests which doesn't match any other registered servlet. This is normally only invoked on static resources (CSS/JS/image/etc) and directory listings. The servletcontainer's builtin default servlet is also capable of dealing with HTTP cache requests, media (audio/video) streaming and file download resumes. Usually, you don't want to override the default servlet as you would otherwise have to take ca |
####Custom EditText Android
####Convert icon font to png
####Download SVG image https://icomoon.io
<script>
$.ajax({
url: 'URL',
type: '',
cache: false,
data: {
//Dữ liệu gửi đi
},
success: function(data){