(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.
/* JigsawImage.java | |
* @author: Madan Chaudhary | |
* @blog: javaxp.com | |
* */ | |
import java.awt.image.BufferedImage; | |
import java.io.File; | |
import java.io.IOException; | |
import javax.imageio.ImageIO; |
import java.math.BigDecimal; | |
/** | |
* 由于Java的简单类型不能够精确的对浮点数进行运算,这个工具类提供精确的浮点数运算,包括加减乘除和四舍五入。 | |
*/ | |
public class Arith { // 默认除法运算精度 | |
private static final int DEF_DIV_SCALE = 10; // 这个类不能实例化 | |
private Arith() { | |
} |
// Example usage: | |
// | |
// int[] numbers = {1, 2, 3, 4, 5, 6, 7}; | |
// int[][] chunks = chunkArray(numbers, 3); | |
// | |
// chunks now contains [ | |
// [1, 2, 3], | |
// [4, 5, 6], | |
// [7] | |
// ] |
import java.awt.Color; | |
import java.awt.Font; | |
import java.awt.Graphics; | |
import java.awt.image.BufferedImage; | |
import java.util.Random; | |
import javax.imageio.ImageIO; | |
import javax.servlet.http.HttpServletRequest; | |
import javax.servlet.http.HttpServletResponse; | |
import javax.servlet.http.HttpSession; |
good, 你已经有了一个自己的shadowsocks代理了,现在想要把这个代理公布出去给所有人分享。 | |
但是没有两个小时,代理就没法使用了,为什么?因为你需要额外注意以下事项(以下步骤需要比较高的linux技能) | |
本文只关注于确保shadowsocks服务还“活着”,如果你希望让其跑得更快,请参考 | |
https://github.com/clowwindy/shadowsocks/wiki/Optimizing-Shadowsocks | |
1、 shadowsocks的timeout设置 | |
超时时间越长,连接被保持得也就越长,导致并发的tcp的连接数也就越多。对于公共代理,这个值应该调整得小一些。推荐60秒。 | |
2、 检查操作系统的各种限制 | |
对于openvz的vps,特别需要检查一下 |
(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.
/* | |
##Device = Desktops | |
##Screen = 1281px to higher resolution desktops | |
*/ | |
@media (min-width: 1281px) { | |
/* CSS */ | |
{ | |
"stats": {}, | |
"api": { | |
"services": [ | |
"StatsService" | |
], | |
"tag": "api" | |
}, | |
"policy": { | |
"levels": { |
{"lastUpload":"2022-02-14T06:16:33.865Z","extensionVersion":"v3.4.3"} |
#! /usr/bin/python3 | |
# | |
# File: SMJobBlessUtil.py | |
# | |
# Contains: Tool for checking and correcting apps that use SMJobBless. | |
# | |
# Written by: DTS | |
# | |
# Copyright: Copyright (c) 2012 Apple Inc. All Rights Reserved. | |
# |