简单介绍网络封锁与反封锁
网络基础 主要技术手段 DNS 污染:对于特定的域名,通过抢答的方式使 DNS 无法解析出正确的 IP 地址。 原理:由于通常的域名查询没有任何认证机制,而且 DNS 通常基于的 UDP 协议是无连接不可靠的协议,查询者只能接受最先到达的格式正确结果,并丢弃之后的结果。 IP 黑名单:针对特定的 IP 地址,将发往这个 IP…
Zihan Ma · Software developer
A personal archive of experiments, practical fixes, and lessons from full-stack and Apple-platform development.
The archive
Technical notes, build logs, and lessons collected along the way.
20 posts
Showing 20 posts.
网络基础 主要技术手段 DNS 污染:对于特定的域名,通过抢答的方式使 DNS 无法解析出正确的 IP 地址。 原理:由于通常的域名查询没有任何认证机制,而且 DNS 通常基于的 UDP 协议是无连接不可靠的协议,查询者只能接受最先到达的格式正确结果,并丢弃之后的结果。 IP 黑名单:针对特定的 IP 地址,将发往这个 IP…
简介 Stocker是一款JetBrains IDE证券行情插件,主要功能是在IntelliJ IDEA和其他基于IntelliJ Platform的IDE(如PyCharm、RubyMine、WebStorm等)中实时追踪股票、加密货币的价格行情,其中股票支持A股、港股、美股。 运行时效果 安装 Stocker已上传至JetBrains…
Preface Recently, I start to code with Xcode for iOS/macOS application development. Inspired by the Xcode Default (Light) and Default (Dark) color themes, I migrated them to…
We often debug iOS/macOS application in simulators when developing iOS/macOS application. Sometimes we need a clean simulator environment, so we have to reset simulators. Here's…
Last year, I created Dracula Theme extension for JetBrains IDEs. The source repo is included in the official Dracula Organization. If you want to try it out, all instructions can…
什么是 Kubernetes 我们都知道Docker容器,但是在生产环境中,仅仅有Docker还不够。当遇到应用自动化部署、容器伸缩和管理等问题时,我们需要一个容器编排系统。Kubernetes就是一个生产级的容器编排系统。 Kubernetes 基础 Pod:最小运行单元,由一个或多个容器组成 Deployment:常用的控制器…
What is Dracula? A dark theme for Atom, Alfred, Emacs, Highlight.js, Hyper, iTerm, JetBrains, Pygments, Slack, Sublime Text, TextMate, Terminal.app, Vim, Xcode, Zsh and many…
Hadoop 概述 什么是 Hadoop 可扩展的、简洁的数据存储、处理及分析系统(生态) 架构图 Hadoop 解决的问题 传统数据存储在一个中央数据库,当程序需要数据时,数据会被复制给程序 传统方式对于少量数据可以很好的处理,但不利于海量数据 Hadoop 的方案 数据分布式存储(HDFS) 程序计算直接在数据存储的地方运行 示意图 大数据的处理流程…
0.基本概念 体言:包括名词、代词、数词 用言:包括动词、形容词、形容动词 1.判断句 体言は体言です---肯定(……是……) 体言は体言ではありません---否定(……不是……) 例句: わたしは大(だい)学(がく)院(いん)生(せい)です。/我是研究生。 専(せん)攻(こう)は中(ちゅう)国(ごく)語(ご)です。/专业是中文。…
Core Concept What is CI Continuous Integration is the practice of merging in small code changes frequently - rather than merging in a large change at the end of a development…
Build Docker Image Create docker-compose.yml and edit like following codes: The key point in the config file is the two environment variables: Caveat You may set the JPDAADDRESS…
前言 密码的存储关乎安全问题,明文存储密码会带来极大的安全隐患。因此,需要存储密码哈希值来保证安全性。 MD5 MD5(Message-Digest Algorithm)算法会产生一个 128bit(16byte)的哈希值,用十六进制表示为长度 32 字符。 示例 MD5 的缺陷 容易遭受暴力破解(brute-force)和字典攻击(dictionary…
Java API SqlSessionFactoryBuilder SqlSessionFactoryBuilder 有五个 build() 方法,每一种都允许你从不同的资源中创建一个 SqlSession 实例。 从mybatis-config.xml创建SqlSessionFactory示例: SqlSessionFactory…
if choose, when, otherwise trim, where, set select update foreach bind 多数据库支持 插件式脚本语言(Pluggable Scripting Languages) TODO
主要对象的 Scope 和 Lifecycle | 对象 | Scope | Lifecycle | 备注 | | :----------------------- | :------------- | :---------------------------------------- | :---------------------- | |…
前言 Let's Encrypt提供免费的SSL证书,官方现已支持泛域名证书的签发。 Let's Encrypt官方提供certbot工具用于证书的签发,本文介绍的是另一个工具acme.sh。 安装 acme.sh 设置 DNS API 这里以Cloudflare为例,其他DNS服务商与之类似 签发证书 安装证书…
游戏中的对象 玩家飞机(一架) 敌人飞机(多架) 玩家子弹 敌人子弹 宝物(用于改变玩家子弹类型以及玩家飞机外形) 实体类设计 思路:游戏中所有的对象都包括属性:X 轴,Y 轴坐标、长度、宽度以及对应的图片素材,方法:移动(move)、绘图(draw)。因此我们可以设计一个 GameObject…
搭建步骤 在本地完成 hexo 博客的初始化 在服务端完成 git 仓库的初始化 使用 git 一键部署 在本地搭建 hexo 安装 hexo-cli 初始化 hexo 博客 安装 git 部署插件 至此 hexo 的本地初始化已完成,使用hexo server可在本地启动一个服务,用于测试预览博客。 在服务端建立 git 仓库 安装 git 建立…
简介 Shadowsocks-libev: Shadowsocks-libev is a lightweight secured SOCKS5 proxy for embedded devices and low-end boxes. Simple-obfs: Simple-obfs is a simple obfusacting tool,…
When you shutdown or reboot your system, systemd tries to stop all services as fast as it can. That involves bringing down the network and terminating all processes that are…