Guava experience: common methods of copying objects

In Java, the Object class is the parent class of all classes. There are several methods that need override, such as equals,hashCode and toString. Every time I write these methods, I have to make a lot of repetitive judgments. Many class libraries provide tool classes to override these methods, and Gu ...

Posted on Sun, 07 Jun 2020 03:34:59 -0700 by culprit

What's new in java8 - Optional Class

Optional class So far, the most common cause of java application failure is the notorious null pointer exception. Previously, in order to solve the null pointer exception, Google's famous guava project introduced the Optional class. Guava prevents code pollution by detecting null pointer, and encour ...

Posted on Sat, 06 Jun 2020 01:48:40 -0700 by nano

Fluent Container component - Container

Into the Flutter As the most popular cross platform technology framework, Flutter is being used by more and more developers and organizations, and it is completely free and open source. First, let's take a look at the Flutter plug-in. What is Flutter? Flutter is a set of open-source cross platform U ...

Posted on Thu, 04 Jun 2020 18:55:26 -0700 by Sinister747

TabLayout/ViewPager/Fragment

preface I have written this tutorial before, but I haven't finished it. Because of the delay in the process, I'm going to reopen an article to write about TabLayout Basic use I will not elaborate here. In fact, basic use is not often seen in project development. In fact, there are two common usage scenarios f ...

Posted on Tue, 26 May 2020 09:23:57 -0700 by azeem123456

Android serial 13 - create startup activity class

According to the life cycle of fragments, we know that onAttach() method will be executed first, so we do some data initialization operations here, such as calling getNews() method to get several simulated news data, and completing the creation of NewsAdapter, and then loading news in onCreateView() method_ title_ Frag layout, and register the ...

Posted on Mon, 25 May 2020 07:53:45 -0700 by geoffjb

PHP version Google Advertising admob server callback verification SSV

Old article, just moved here. Because the business needs to access Google's incentive advertising, it involves the server-side verification (SSV) of Google callback. Python version is based on the third-party package ecdsa out of the box. PHP version also has an ecdsa library, but it is too complex. Think of the openssl rsa key signature chec ...

Posted on Fri, 22 May 2020 08:28:09 -0700 by leena

Python version Google Advertising admob server callback verification SSV

Google's incentive advertising Google callback server side validation (SSV). Python version is based on the third-party package ecdsa out of the box. Address of Google public key: https://www.gstatic.com/admob/reward/verifier-keys.json be careful: The public key provided by AdMob key server will rotate from time to time. To e ...

Posted on Fri, 22 May 2020 08:20:02 -0700 by amargharat

How to run a front-end angular project

1. Install first node.js Go to the official website to download and install: https://nodejs.org/en/ 2. Download pkg file and install it on mac 3. After the installation, verify whether it is successful at the terminal $ npm -v 6.14.4 $ node -v v12.16.3 4. Install angular console npm install -g @angular/cli This installs the comma ...

Posted on Fri, 22 May 2020 07:46:54 -0700 by elwadhos

Capture Android screenshots with Espresso and JUnit

By Sergei Munovarov Original text: https://dev.to/serhuz/capturing-screenshots-on-android-with-espresso-and-junit-81f Translation: tommwq http://tommwq.tech/blog/%e7%94%a8espresso%e5%92%8cjunit%e6%8d%95%e6%8d%89android%e5%b1%8f%e5%b9%95%e6%88%aa%e5%9b%be/ Note: in the original android.support The package has been replaced with a new ...

Posted on Fri, 15 May 2020 03:08:12 -0700 by dsp77

What exactly is the Bloom filter? It's clear from this lecture

I don't know when it started, but the original obscure Bloom filter got a big reputation. In the interview, the interviewer asked how to avoid cache penetration. Your first reaction might be the Bloom filter. Cache penetration = Bloom filter became the standard match, but it's not clear what Bloom filter is and how to use it. Let's talk about ...

Posted on Wed, 13 May 2020 09:59:45 -0700 by broann