- 博客(45)
- 资源 (1)
- 收藏
- 关注
转载 java synchronized and volatile
Java Language Specation - 8.3.1.4. volatile Fieldshttps://docs.oracle.com/javase/specs/jls/se10/html/jls-8.html#jls-8.3.1.4The Java programming language allows threads to access shared variables (...
2018-06-28 20:30:11
199
转载 MySQL Transaction Isolation Level
isolation levelhttps://dev.mysql.com/doc/refman/8.0/en/glossary.html#glos_isolation_levelOne of the foundations of database processing. Isolation is the I in the acronym ACID; the isolation level ...
2018-06-27 21:00:11
973
翻译 【挖坑待填】 翻译 - Gradle 官方教程 - 构建一个 java web 应用
译者序:这篇是 Gradle 的官方新手教程,叫你怎么使用 Gradle 创建一个 java web 应用的,教程里涉及到了简单的单元测试和功能测试,感觉很棒,所以翻译一下。原文链接:https://guides.gradle.org/building-java-web-applications/Building Java Web ApplicationsGradle incl...
2018-06-14 16:58:54
388
原创 不错的网站收录 - 设计模式
Bob Nystrom - 《Game Programming Patterns》 http://gameprogrammingpatterns.com/ 中文版购买链接:https://www.amazon.cn/dp/B01LY7GNCS/(amazon cn)
2018-06-12 16:25:20
161
翻译 设计模式 - 服务定位模式 Service Locator Pattern
译者序:看 spring framework 时候了解到的 Service Locator 模式,顺便搜到了这篇文章,感觉很棒,顺手翻译下,好安利给其他小伙伴。 原文链接:http://gameprogrammingpatterns.com/service-locator.html← Previous Chapter ≡ About The Book § Conten...
2018-06-12 13:57:43
1444
翻译 事务暂停(悬停) Transaction Suspension
事务悬停 Transaction Suspension原文链接: https://docs.oracle.com/cd/E26180_01/Platform.94/ATGProgGuide/html/s1204transactionsuspension01.html source: https://docs.oracle.com/cd/E26180_01/Platform.94/ATGPro...
2018-05-21 18:58:36
1355
原创 MySQL 查看表的 comment
概念 软件工程 敏捷开发 Google File System (GFS) MapReduce BigTableRPC SOAP Alibaba Dubbo Baidu burp Apache ThriftMicroservices Docker Spring Cloud Sprin
2017-11-15 16:45:27
5697
转载 修改 Mac OS X 默认的退出快捷键 command + Q
在很多应用中,使用 command + A 全选快捷键时,容易误按到 command + Q 退出快捷键,导致应用直接关闭 。解决方案:1. 得知自己应用快捷键的名字2. 在 System Preferences(系统便好设置) - Keyboard(键盘) - Shortcuts(快捷键) - App Shortcuts(应用快捷键) 中新增该名字的快捷键,并将快捷键的按法由 c
2017-11-10 15:43:35
14364
转载 mac os x 怎么上传文件到 linux 服务器上
转载自知乎 https://www.zhihu.com/question/22407930 原作者都没名字- - 很尬。。没用过 ssh secure shell client 和 winscp,猜测这两个客户端都有图形界面可供上传文件到服务器?我没用过相关的 Mac 版的图形界面程序,这里介绍一下两个基础命令。 如果不介意脱离图形界面使用命令行,可以用 Mac 自带的 Terminal.ap
2017-10-19 19:52:53
728
转载 CRON expression syntax
CRON Expression原网页地址: https://help.eset.com/era_admin/63/en-US/index.html?cron_expression.htm附:大概是,在 ESET 中指代年的第 7 个参数在本文档中被标注为是必要的,有些程序中,第 7 个参数是可选的A CRON expression is used to configur
2017-03-07 17:12:00
420
翻译 Spring @Scheduled 注解
34.4.2 @Scheduled 注解@Scheduled 注解可以和 触发元数据(trigger metadata)一起添加在方法上。例如,下面这个方法每隔 5 秒就会被调用,5 秒钟的间隔是指从上一次调用的完成之时开始算起。@Scheduled(fixedDelay=5000)public void doSomething() { // 一些需要周期性执行的代码}如果你希望定时执行
2017-02-16 14:44:39
5990
6
原创 elastcisearch 对查询操作的 explain 就像自己项目里的页签统计标识
elasticsearch如果 explain 值为 true 则搜索的时候给出相似度评分的计算细则自己的项目如果是页面统计则不输出最终的 query,但如果不是,则打出 query这个可以研究下 elasticsearch 是怎么处理的,是否有优雅的切面切法,而不用对原逻辑造成入侵
2016-12-23 23:34:00
815
转载 linux unzip 中文乱码
原文作者不详。。。故无法提供原文传送门。。。在windows上压缩的文件,是以系统默认编码中文来压缩文件。由于zip文件中没有声明其编码,所以Linux上的unzip一般以默认编码解压,中文文件名会出现乱码。虽然2005年就有人把这报告为bug, 但是info-zip的官方网站没有把自动识别编码列入计划,可能他们不认为这是个问题。Sun对Java中存在N年的zip编码问题,采用了同
2016-11-17 15:40:38
1038
原创 java bean copy
Dozerhttp://dozer.sourceforge.net/cglibhttps://github.com/cglib/cglibApachehttp://commons.apache.org/proper/commons-beanutils/Springhttps://docs.spring.io/spring/docs
2016-10-17 16:25:30
277
原创 中文 Uncode 编码范围
http://www.unicode.org/chartsScripts 手写体East Asian Scripts 东亚语系CJK Unified Ideographs (Han) (35MB) 中日韩越统一表意文字(汉语系) 4E00-9FFFCJK Extension-A (6MB) 增补 A 3400-4DBFCJK Extension B (40MB)
2016-07-25 19:20:05
2506
转载 linux dict
一类较少被人关注的计算机软件是字典。字典软件似乎不是特别有趣,但却是作家和学生的重要工具。如果你在学习一门新语言,或者想查下一个单词或短语的意思,一个好的字典软件是十分有用的。很多人查字典主要是想检查拼写是否正确,然而如今大量的软件都内内置了拼写检查功能。因此优秀的字典软件所包含的功能远远超过了简单的拼写检查,它们实际上能帮助改变写作方式。Linuxlinks的这篇文章收集了六款优秀的Linux字
2016-05-18 10:51:49
480
转载 IoC容器和 Dependency Injection模式 Inversion of Control Containers and the Dependency Injection pattern
原文链接:http://www.martinfowler.com/articles/injection.html文章简介:介绍了IOC和DI的区别In the Java community there's been a rush of lightweight containers that help to assemble components from different pro
2016-01-07 19:39:14
944
转载 CentOS 7 设置开启默认启用命令行模式而非图形界面
sudo systemctl set-default multi-user.target切换回图形界面:sudo systemctl set-default graphical.target参考自:http://segmentfault.com/q/1010000000705452
2015-12-21 10:09:07
5025
原创 Linux同步时间
设置时区tzselect跟着命令提示一步一步设置时区(centos没有ntpdate 要 yum install ntpdate 一下)ntpdate time.windows.com另外有博文(http://blog.youkuaiyun.com/suer0101/article/details/7868813)说不推荐使用ntpdate来同步时间,因为服务器上的时间随意改变可能导致
2015-12-20 02:48:00
398
转载 安装CentOS后网络连接默认是关闭的,无法联网
cd /etc/sysconfig/network-scriptsvi ifcfg-eno16777736将 onboot 的默认值 no 改成 yes:wq!service network restart参考:http://www.111cn.net/sys/CentOS/63645.htm
2015-12-20 01:13:42
1046
原创 spring constructor-arg name UnsatisfiedDependencyException 本来打算发在stack overflow上的,死活发不出去,先记着吧
When I use Spring framework, I encountered a problem:The stack trace like this: [code=java]Dec 10, 2015 9:22:57 PM org.springframework.context.support.ClassPathXmlApplicationContext pre
2015-12-14 14:56:15
2132
原创 怎么在 Stack Overflow 里提问题的时候沾上自己的代码
1.方法一 在代码前后加: 下面是我写的java源代码:package com.example;public class Test2 { public static void main(String[] args) { System.out.println("Hello World."); }}2.方
2015-12-10 21:57:38
1227
原创 关于Maven的传递依赖原则 nearest definition 的一个疑问
Maven 官网上说 Dependency mediation - this determines what version of a dependency will be used when multiple versions of an artifact are encountered. Currently, Maven 2.0 only supports using the "nea
2015-11-18 14:41:28
376
原创 Handler 相关的问题
1. Android Studio 不能自动 import class android.os.Handler,而是直接 import class java.util.logging.Handler,这是什么鬼?难道是因为 Handler 实例不能直接 new?2. Android Studio 黄色警告,可能会有泄漏,这个怎么处理?final android.os.Handler
2015-09-07 17:44:31
303
翻译 Android API Guides - App Components
App Components 应用程序组件Android's application framework lets you create rich and innovative apps using a set of reusable components. This section explains how you can build the components that define t
2015-06-25 15:35:28
394
翻译 Android API Guides - Introduction
Introduction to AndroidTo learn how apps work, start withApp Fundamentals.To begin coding right away, readBuilding Your First App.Android provides a rich application framework that a
2015-06-24 14:55:58
585
翻译 Android API Guides - Activities - Fragments
FragmentsIn this documentDesign PhilosophyCreating a FragmentAdding a user interfaceAdding a fragment to an activityManaging FragmentsPerforming Fragment TransactionsCommunicatin
2015-06-24 11:37:08
547
原创 关于android缩放bitmap,BitmapFactory.Options.inSampleSize的优化算法
在android官网网站上的 Develop > Training > Displaying Bitmaps Efficiently > Loading Large Bitmaps Efficiently 章节看到的计算 BitmapFactory.Options.inSampleSize的算法,没看懂这逻辑(好吧,这其实怪我数学不好~~~ - -b)然后根据这个值的要求,我写了一段更符
2015-06-24 09:52:50
542
翻译 Android API Guides - Activities
ActivitiesIn this document 本文内容1. Creating an Activity创建一个 Activity1. Implementing a user interface实现一个用户界面2. Declaring the activity in themanifest在 manifest中声明该 activity2.
2015-06-16 16:18:43
580
翻译 Android API Guides - System Permissions
System Permissions 系统权限Android is a privilege-separated operating system, in which each application runs with a distinct system identity (Linux user ID and group ID). Parts of the system are a
2015-05-27 11:16:35
689
翻译 Android API Guides - Device Compatibility
Device CompatibilityAndroid is designed to run on many different types of devices, from phones to tablets and televisions. As a developer, the range of devices provides a huge potential audience
2015-05-26 10:23:26
422
翻译 Android API Guides - Application Fundamentalsn
Application Fundamentals 安卓应用的基础知识Android apps are written in the Java programming language. The Android SDK tools compile your code—along with any data and resource files—into an APK: an Andr
2015-05-25 17:49:29
464
转载 linux set jdk environment
gedit /etc/profile 在文件末尾加入:# set Java EnvironmentJAVA_HOME=/usr/local/jdk1.6.0_21CLASSPATH=.:$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools.jarPATH=$JAVA_HOME/bin:$PATHexpor
2015-05-25 10:55:46
512
转载 install flash player for chromium
sudo apt-get install pepperflashplugin-nonfreesudo update-pepperflashplugin-nonfree --installfrom: ubuntu 14.04 安装chrome及给chromium 安装 flash player
2015-05-24 17:23:28
461
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人