redis beginner
Zookeeper beginner
zookeeper beginner
JAVA Collection
JAVA 集合
OOP problem
面向对象编程的问题
Java SimpleDateFormat Problem
Java SimpleDateFormat Problem
Java LRU Cache
Java实现LRU数据结构
Java Annotation
Java中的注解是如何工作的?
Java Immutable objects
Why do we need immutable class?
Java hashCode & equals
在java中所有类都继承Object,所以了解Object类是很有必要的
NLTK学习笔记(1)
NLTK学习笔记(1)
natural language processing resource
natural language processing resource
Machine Learning resource
Machine Learning resource
Java Concurrentmodificationexception
How to avoid “ConcurrentModificationException” while removing elements from ArrayList while iterating it?
why use GPU for Neural Networks
GPUs definitely can be used to speed up other types of computations besides neural networks.
人工智能基础
开启人工智能之旅
How to Share Resources Between Threads?
Multi threading can improve application performance when IO read/write is involved. Unfortunately, shared resources (shared variables) can have different versions at each CPU cache.
Java must know 4
Java Serialization
Java must know 3
Java Multi Threading
Java must know 2
Collections Framework
Java must know 1
What is immutable object in Java? Can you change values of a immutable object?
Final Modifier in Java
10 points about final modifier in Java.
Java Memory Model
In multiprocessor systems, processors generally have one or more layers of memory cache.
Java Builder Pattern
the pattern explained in this post deals with removing the unnecessary complexity that stems from multiple constructors, multiple optional parameters and overuse of setters.
Java String Tutorial
In java, string is basically an object that represents sequence of char values.
Java I/O Tutorial
Java uses the concept of stream to make I/O operation fast. The java.io package contains all the classes required for input and output operations.
Exception Handling in Java
The exception handling in java is one of the powerful mechanism to handle the runtime errors so that normal flow of the application can be maintained.
Java JDBC
Java JDBC is a java API to connect and execute query with the database. JDBC API uses jdbc drivers to connect with the database.
Collections in Java
Collections in java is a framework that provides an architecture to store and manipulate the group of objects.
Java Reflection
Java Reflection is a process of examining or modifying the run time behavior of a class at run time.
Abstract classes vs. interfaces
When does it make sense to choose an abstract class over an interface?
JDBC Connection Pooling Best Practices
在很多环境中, 数据库的建立和连接开销很大, 这就需要建立一个连接池。
android中测量字体的宽度和高度
Android中,在自定义View中通过Canvas绘制文字时,经常需要测量文字的宽度和高度。
android security
android安全相关的知识。
Java随机数
获取[min, max]之间的随机数。
台阶问题
N级台阶(比如100级),每次可走1步或者2步,求总共有多少种走法?
Object references in android
A reference is the direction of an object that is annotated, so you can access it。。。。。。
cancel notification
根据需求,我们有时需要弹出notification显示信息。。。。。。
Making good architecture on Android
View-Presenter-Model(Entity)-Repository。。。。。。
用 LeakCanary 检测内存泄漏
手机内存是非常宝贵的资源,合理的使用内存是非常重要的,但有时还是会发生泄漏的情况,LeakCanary 检测内存泄漏非常棒的工具。。。。。。
Keeping a ViewGroup reference
If you plan on keeping a reference to any ViewGroup (LinearLayout, FrameLayout, RelativeLayout, etc.), and you don’t want to use any methods specific to this particular type of Layout, keep it as a ViewGroup object. 。。。。。。。。。。
Understanding Android Operating System
I will be talking about Android Architecture 。。。。。。。。。。
Launch screen
The most important thing however is to understand how the launch screen should work and how to implement it in the correct way.。。。。。。。。。。
Eight Ways Your Android App Can Leak Memory
One advantage of a garbage-collecting-language like Java is that it removes the need for developers to explicitly manage allocated memory. This reduces the likelihood of a segmentation fault crashing the app or an unfreed memory allocation bloating the heap, thus creating safer code. Unfortunately, there are other ways that memory can be leaked logically within Java. 。。。。。。。。。。
An important note when managing different screen height
Managing different screen height 。。。。。。。。。。
What's the difference between Gravity and layout_gravity, Padding and Margin, fill_parent and wrap_content?
What's the difference between Gravity and layout_gravity, Padding and Margin, fill_parent and wrap_content?。。。。。。。。。。
What is the difference between “px”, “dp”, “dip” and “sp” on Android?
What is the difference between “px”, “dp”, “dip” and “sp” on Android。。。。。。。。。。
VectorDrawable 使用指南
A VectorDrawable is an XML representation of a Vector. Unlike popular image formats like Bitmap, JPEG, GIF and PNG, Vectors do not lose quality as they are scaled up or down。。。。。。。。。。
详谈怎么减小APK的体积
不是所有的设备都具有相同的存储,内存或网络连通性。 。。。。。。。。。。
What is an android window?
Activity 是一个应用组件,用户可与其提供的屏幕进行交互,以执行拨打电话、拍摄照片等操作。 每个 Activity 都会获得一个用于绘制其用户界面的窗口。窗口通常会充满屏幕,但也可小于屏幕并浮动在其他窗口之上,那么什么是窗口?。 。。。。。。。。。。
How we reduced our Android app size
Most of the times it’s the small things in life that give you happiness. Android users love applications when they are of small size and easy to download on the go. Here is a story of how we reduced our Android application size 。。。。。。。。。。
How to Craft Effective Registration
虽然注册是非常普遍的事情,这也是最棘手的部分的设计之一,糟糕的注册流程和体验会丢失很多潜在客户。。。。。。。。
Android UI优化
为什么有时应用会卡顿?怎么让我们的应用更流畅?我们的UI是怎么绘制到屏幕上的?。。。。。。。。。。
提升 Android 性能的建议
每个人都知道一个 App 的成功,与这个 App 的性能体验有着很密切的关系。但是如何让你的 App 拥有极致性能体验呢? 这些建议可以让你了解如何缩短启动时间,优化滑动效果,创建更加顺滑的用户体验。。。。。。。。。。
资深谷歌安卓工程师对安卓应用开发的建议
优秀的安卓应用开发者需要考虑到移动设备的限制,重新学习怎么样去使用java语言, 怎么样去有效地使用实时环境和安卓平台,然后写出更好的安卓应用程序。。。。。。。。。
android 应用内存使用信息
手机内存是非常宝贵的资源,了解应用的内存使用情况有利于对应用进行优化。。。。。。。。
常用的Android逆向工具
常用的Android逆向工具。。。。。。。。
Android Performance Patterns: Rescue tips
现在所有应用都有炫酷的动画,复杂的过渡和自定义视图,但是用户体验必须是直观的,而且能兼容不同设备,这些提示可以提高应用的整体性能。。。。。。。。
Android Activity 启动模式
每个Activity都有不同的使用目的,比如邮箱客户端,收件箱是展示收件箱,所以这个Activity不建议创建成多个实例。而写邮件的Activity,因为我们可以同时写多封邮件, 可以实例化多个此Activity对象。设置是否使用已存在的实例还是多次创建,就需要使用Activity启动模式。。。。。。。。
Android 字符串的一些使用技巧
有时候字符串让人觉得很麻烦,知道一些小技巧,可以避免自己挖坑自己跳,比如一些显示效果本可以在string.xml中完成,我们又用了很多代码去实现,这样不仅维护变得困难,还有可能产生Bug。。。。。。。
Android应用架构演变
Android的开发生态系统变化迅速,每周都有新的工具,新的库更新。我们用于构建Android应用程序的体系结构和技术也已经不断发展。。。。。。。
创建Android应用的一些经验之谈
每个人都有自己的南墙要撞,分享一下我在开发中撞南墙后得到的一些经验。。。。。。。
App界面的新设计风格——黑 、大、粗
自从设计者开始“扁平化设计”、“最小化设计”和“逐步简化”的设计模式之后,页面设计就在“页面极简化”这条道路上越走越远, 如今更是一不做二不休,开始了完全的“黑白极简”风格。。。。。。。
git远程仓库的使用
要参与任何一个 Git 项目的协作,必须要了解该如何管理远程仓库。 远程仓库是指托管在网络上的项目仓库,可能会有好多个,其中有些你只能读,另外有些可以写。 同他人协作开发某个项目时,需要管理这些远程仓库,以便推送或拉取数据,分享各自的工作进展。。。。。。。
git的简单入门指南
Git是分布式版本控制系统。版本控制是一种记录一个或若干文件内容变化的系统,熟悉Git的使用在开发中是很重要的。。。。。。
我为什么要写博客了?
以前在CSDN上也断断续续的写过一些技术博客,由于一些原因,没有一直坚持写,觉得还是应该写写的。。。。。。