ReZero's Utopia.

ReZero's Utopia.

Everything is permitted.

jvmLearn
How java code run? 1234567891011121314$ echo 'public class Foo { public static void main(String[] args) { boolean flag = true; if (flag) System.out.println("Hello, Java!"); if (flag == true) System.out.println("Hello, JVM!"); }}' > Foo.java$ javac Foo.java$ java Foo$ jav...
redis-note
https://juejin.im/book/5afc2e5f6fb9a07a9b362527/ Basic tips:String Expand The capacity will expand as two times speed within 1m, otherwise it will increase 1m every time until the max capacity(512m). Example 12345678910111213> setex name 5 codehole # 5s equals:set+expire> get name"...
LL(1) Parser
LLone github: https://github.com/ReZeroS/LLone A LL parser is a top-down parser for a subset of context-free languages. It parses the input from Left to right, performing Leftmost derivation of the sentence. What do we have to make as input arguments or basic default value? We will input “#i+i*i...
Win Userful Tools
Markdown edit - Typora - Atom - VS code IDE - Idea - Pycharm - Android Studio - CodeBlocks, VS, Clion - Racket Screen Shot - Snipaste - Screen2Gif Browser - Firefox development - Chrome Version control - git (without GUI) Instant Messaging - Tim - Telegram PDF reader - Jiusu PDF P...
ArchLinux change gdm background
Link https://superuser.com/a/1292700/695553 #!/bin/bash if [ -z "$1" ]; then echo "Usage: ./chgdm-bg <path/to/picture.png> [y/n]" exit 1 fi echo MAKE SURE YOUR PICTURE IS THE SAME RESOLUTION AS YOUR SCREEN. echo If you dont you will likely regret it. sleep 3 if [ ...
Arch enable BBR
Requests: kernel 4.9+ What: https://github.com/google/bbr One Command: sudo modprobe tcp_bbr Turn on: # echo "net.core.default_qdisc=fq" >> /etc/sysctl.conf # echo "net.ipv4.tcp_congestion_control=bbr" >> /etc/sysctl.conf # sysctl -p # sysctl net.ipv4.tcp_availabl...
Custom ClassLoader
package com.loader; import java.io.ByteArrayOutputStream; import java.io.File; import java.io.FileInputStream; import java.io.InputStream; /* /Bootstrap Classloader -> rt.jar Extension Classloader extends Classloader -> %JAVA_HOME%/lib/ext/*.jar App Classloader extends Classloader -> ...
Messy code issue
Source: https://www.ibm.com/developerworks/cn/java/analysis-and-summary-of-common-random-code-problems/index.html?cm_mmc=dwchina-_-homepage-_-social-_-weibo#N101F9 Reason Encode Decode Lack of a font library Analysis phenomenon Caused by encoding In English Windows, u create a txt, type and s...
java-note
重写: 返回值范围小于等于父类,抛出的异常范围小于等于父类,访问修饰符范围大于等于父类 继承: 子类拥有父类非 private 的属性和方法。 子类可以拥有自己属性和方法,即子类可以对父类进行扩展。 子类可以用自己的方式实现父类的方法。 多态:继承(多个子类对同一方法的重写)和接口(实现接口并覆盖接口中同一方法)。 静态代码块—>非静态代码块—>构造方法静态内部类(static修饰类的话只能修饰内部类): 静态内部类与非静态内部类之间存在一个最大的区别: 非静态内部类在编译完成之后会隐含地保存着一个引用,该引用是指向创建它的外围类,但是静态内部类却没有。没有...
avatar
ReZero
大屁水饺的理想国.