0

# Solve the problem of failing to connect to certain Wifi occasionally when using NetworkManger on archlinux

I use archlinux and network-manager, and every now and then, I failed to connect to a certain wifi, while the other wifi worked pretty well. I didn’t figure out the reason, but I found a solution. Fir

0

# Write Machine Learning Algorithms From Scratch: Random Forest

IntroductionRandom Forest is a supervised classification algorithm, it can classify data according to various given features. Assuming that we want to determine whether a person is male or female acco

0

# Use Deep Learning to Detect Programming Languages

IntroductionThis post introduces a way to use deep learning to detect programming languages. Take the following code as an example. 12def test(): print("something") We will get an answer python if

0

# Right associativity in Scala

We define two methods here, ++ and ++: 1234567891011class Foo { def ++(n: Int): Unit = println(n + 1) def ++:(n: Int): Unit = println(n + 1)}object ValFunctionTest { def main(args: A

0

# The difference between a case class and a normal class in Scala

What is a case class like12345678case class Person(name: String)object CaseClassTest { def main(args: Array[String]): Unit = { val person = Person("John") println(person.toString) &#

0

# Some Linux Commands

:-Take ${val1:-val2} for example, if val1 is unset or null, return val2, otherwise return val1. Example: 123456#!/bin/bashdefault="default"preset="preset"value="This is${preset:-"\$default"}

0

# newInstance in Java

IntroductionnewInstance is used to instantiate an instance of a class dynamically. Here is an example written in Scala. 1234567891011class Printer() { def print(): Unit = { println(s"pri

0

# When and how to use InheritableThreadLocal

Today I was reading Spark’s source code, and found InheritableThreadLocal in it. Little information could be found online about this class, so I decided to write a blog to illustrate how to use it, ba

0

# The difference between wait and sleep

wait and sleep can both be used to put a thread into sleep and wait for a while. So what’s the difference? To find it out, we need to figure out how to use them first. WaitTo use wait, you have to put

0

# Leetcode: Combination Sum II

ProblemGiven a collection of candidate numbers (C) and a target number (T), find all unique combinations in C where the candidate numbers sums to T. Each number in C may only be used once in the combi