Write a JS Call Stack Visualizer hound-trace

background Recently, when analyzing some frame sources, while writing notes, some function call stacks want to be recorded as flowcharts and opened http://draw.io Is an operation, after drawing several call stacks, it feels troublesome.So squatting in the toilet, I started to think, since the call stack can be printed out with console.trace(), ...

Posted on Thu, 15 Aug 2019 09:08:54 -0700 by foreknowapparel

Analysis of Redis Cache Penetration, Cache Avalanche and redis Concurrency

It is common to use redis as a cache, but there may be a series of problems after using redis, especially when the amount of data is large. Some classical problems are as follows: (1) Data consistency between caches and databases Distributed environments (not to mention stand-alone) are very prone ...

Posted on Wed, 14 Aug 2019 02:24:21 -0700 by Rodis

An article teaches you how to insert stubs during Android compilation so that programs can learn to write their own code.

Preface In recent years, compile-time piling technology has become more and more popular in Android circle. Whether it's ButterKnief, Dagger, VirtualAPK that can generate JAVA source code, or even Kotlin, a new language, all use compile-time pil ...

Posted on Tue, 13 Aug 2019 20:30:03 -0700 by shikhartandon

Reaction-native-wechat Sharing the Pit of Wechat Apps

The first time I wrote it was to share some pits in the process of sharing widgets on Android. My Google and Baidu have been sharing problems for a long time, but there are still some problems that do not have good answers, so I summarize them. Many people use the RN for Wechat Sharing. yorkie/react-nat ...

Posted on Sun, 11 Aug 2019 22:58:39 -0700 by abakash

Basic Data Structure - List

List Definition List is the most frequently used data type in python. Lists can accomplish most data structure implementations. The types of elements in the list can be different. It supports numbers/strings/lists (nested). A list is a comma-separated list of elements written between [], just like a string. Lists can also be indexed and sliced, ...

Posted on Sat, 10 Aug 2019 00:49:34 -0700 by RockRunner

Implementation of Android Timing Lock Screen (Alarm Manager Timing Part)

The Story of Newbies Entering the Pit Keyword: Alarm Manager Introduction to Alarm Manager: Reference website: https://www.jianshu.com/p/8a2ce9d02640Reference website: https://www.runoob.com/w3cnote/android-tutorial-alarmmanager.html Recommend this website: https://www.jianshu.com/p/d69a90bc44c0 Understand android Low Power Consumption Mod ...

Posted on Fri, 09 Aug 2019 05:05:13 -0700 by B.Murali Krishna

Android: Let you use Recycler View in a clear way - SnapHelper details

brief introduction SnapHelper is added to RecyclerView in version 24.2.0 to assist RecyclerView to align Item to a certain location at the end of scrolling. Especially when the list slides horizontally, it will not slide to any position in many cases, but there will be some rules restriction. At this time, the alignment rules can b ...

Posted on Thu, 08 Aug 2019 03:39:07 -0700 by rel

Recording New Knowledge of Learning Every Day: A Simple Use of TabLayout

brief introduction The package: android.support.design.widget Inheritance class: android.widget.HorizontalScrollView Background: The Google I/O Developer Conference on May 29, 2015, Beijing Time, brought us more detailed design specifications for Material Design, and also brought us a new Android Desi ...

Posted on Tue, 06 Aug 2019 03:40:27 -0700 by chriskl

Android >> 44. Material Design sliding menu

DrawerLayout It's simple: <androidx.drawerlayout.widget.DrawerLayout android:id="@+id/drawer_layout" xmlns:android="http://schemas.android.com/apk/res/android" android:layout_height="match_parent" android:layout_width="match_parent"> <FrameLayout xmlns:android="http:// ...

Posted on Sun, 04 Aug 2019 22:36:37 -0700 by philip@hux.co.za

Source code analysis of leveldb Arena

Preface Memory usage is very important for a high performance server program. C++ provides new/delete to manage memory application and release, but for small objects, the direct use of new/delete costs a lot, requires extra space and time, and the cost-effective ratio is not high. In addition, memory fragmentation caused by multiple applicatio ...

Posted on Sat, 03 Aug 2019 02:42:11 -0700 by arnihr