叶现一的专栏

Coding ——中国软件业崛起之本;Coding不行,何日振兴?The power is drived by sharing, not confidentiality.
私信 关注
yexianyi
码龄15年

Software Architect @ Siemens Email: yexianyi@hotmail.com Linkedin: http://cn.linkedin.com/in/yexianyi/ Github: https://github.com/yexianyi/

  • 738,464
    被访问量
  • 251
    原创文章
  • 4,658
    作者排名
  • 656
    粉丝数量
  • 于 2006-04-10 加入CSDN
获得成就
  • 获得19次点赞
  • 内容获得184次评论
  • 获得128次收藏
荣誉勋章
兴趣领域
  • #后端
    #Spring#分布式#Spring Boot#Java#Go/GoLang#架构
TA的专栏
  • LeetCode
    27篇
  • Others
    10篇
  • 软件学院作业
    7篇
  • Siebel Tea
    36篇
  • Java
    21篇
  • C/C++
    6篇
  • Algorithm
    10篇
  • Windows
    3篇
  • Design Pattern
    2篇
  • Data Structure
    5篇
  • Security
    2篇
  • Siebel
    61篇
  • Network
    3篇
  • RIA
    20篇
  • Javascript
    3篇
  • UI Frameworks
    4篇
  • JMS
    2篇
  • WebService
    6篇
  • Spring
    1篇
  • Hibernate
    3篇
  • EJB
    11篇
  • UnitTest
    3篇
  • SQL
    4篇
  • Database
    33篇
  • JBoss
    10篇
  • WebLogic
    12篇
  • Dev Tools
    20篇
  • QTP
    2篇
  • CVS
    3篇
  • Hadoop
    1篇
  • Openstack
    12篇
  • Docker
    8篇
  • CI
  • Nginx
    2篇
  • Linux
    16篇
  • Google
    1篇
  • Crazy Test
    1篇
  • Big Data
    1篇
  • Microservice
    2篇
  • 最近
  • 文章
  • 资源
  • 问答
  • 课程
  • 帖子
  • 收藏
  • 关注/订阅

ORA-00845: MEMORY_TARGET not supported on this system

Issue:When trying to startup Oracle Instance, you may encounter following error:ORA-00845: MEMORY_TARGET not supported on this systemRoot Cause:Your shm size is smaller than Memory_Target.Solution:Open pfile in "/u01/app/oracle/admin/<..
原创
10阅读
0评论
0点赞
发布博客于 6 天前

HOWTO: install Oracle 12c Database on Centos8

Step:PrepareCentOS Linux release 8.3.2011 with 4 core, 4G RAM and 40G DIsk space at least. Download Oracle 12c fromhttps://edelivery.oracle.com/osdc/faces/SoftwareDelivery You will see several ZIP file, like following Unzip all the ZIP files to a cu..
原创
34阅读
0评论
0点赞
发布博客于 10 天前

Actionscript Error: declaration must be contained within the <Declarations> tag, since it is not ass

Issue:When you edit a actionscript, you may got following error. Error:declaration must be contained within the tag, since it is not assign
原创
1465阅读
0评论
0点赞
发布博客于 10 年前

什么是多宿主主机(multi-homed machine)?

什么是多宿主主机(multi-homed machine)?在 Solaris OS 中,有多个接口的系统被视为多宿主主机。多宿主主机不转发 IP 包。但是,您可以将多宿主主机配置为运行路由协议。通常,可以将以下类型的系统配置为多宿主主机: 可以将 NFS 服务器(尤其是用作大型数据中心的那些服务器)连接到多个网络,以便在大量用户之间共享文件。这些服务器无需维护路由表。
原创
6328阅读
0评论
0点赞
发布博客于 12 年前

异质树的实现——代码+实验报告

 异质树的实现——代码+实验报告  // heterogeneityTree2.cpp : Defines the entry point for the console application. // #include "stdafx.h" #include  #include  #include   #include  cla
原创
3865阅读
0评论
0点赞
发布博客于 13 年前

Siebel Error: Unable to create the Business Service ''(SBL-DAT-00227)

Issue:When you create a Runtime Event to invoke a business service, you may got following error message.[1] Unable to create the Busines
原创
7318阅读
0评论
0点赞
发布博客于 10 年前

Axis Plugin: java.lang.NoClassDefFoundError: org/apache/axis2/databinding/ADBBean

Issue: When you use Axis2 Service Archiver plugin for Eclipse, you may got following exception. java.lang.NoClassDefFoundError: org/apache/axis2/databinding/ADBBean Reason: I think this is a bug for Axis plugin, because the old cache data for your last
原创
5806阅读
1评论
0点赞
发布博客于 11 年前

Siebel Config: How to set Session Timeout?

How to set Session Timeout? Scenario If you are trying to reproduce any FR that related to Session timeout, please follow configuration as below. Process of Setting 1. Go to X:/SIA80/SWEApp/BIN 2
原创
6082阅读
0评论
0点赞
发布博客于 12 年前

Openstack: aborted: Block Device Mapping is Invalid

Issue:When you create an instance, you may encounter following exception:aborted: Block Device Mapping is InvalidSolution:Check following logs to identify details. The root cause may be th
原创
5073阅读
1评论
0点赞
发布博客于 5 年前

Java中的参数传递方式到底是引用传递还是值传递?

Java中的参数传递方式到底是引用传递还是值传递? 事实上,Java中方法参数传递的是原来对象引用的copy(副本)。如果你在方法中改变这个copy中的内容,因为这个copy也是指向原对象,所以改变会生效。给你带来好像Java中存在地址传递一样。而实际上当你对这个对象的引用进行操作,例如object = new SomeObject();这样的操作是无效的,因为你改变的是这个copy(副本),
原创
1464阅读
3评论
0点赞
发布博客于 12 年前

Tapestry: Obtained resource by @Inject is NULL

Issue:When you inject some resources by @Inject Annotation in Tapestry Page or other components, you may find that the obtained instance are always NULL.
原创
1600阅读
0评论
0点赞
发布博客于 8 年前

m2eclipse Error:ArtifactTransferException: Failure to transfer org.apache.felix:org.apache.felix.res

Issue:When you create and compile a project with pom.xml using m2eclipse, it may report some error like following: Error:ArtifactTransferException: Failure to transfer org.apache.felix:org.apa
原创
2257阅读
0评论
0点赞
发布博客于 8 年前

CC 异常: net.sourceforge.cruisecontrol.CruiseControlException: Encountered an IO exception while attempting to execute Solution

Issue: When you start Cruise Control, you may encounter following exception. 2009-12-15 15:42:38,671 [Thread-22] ERROR Project - exception attempting build in project MY_PROJECT_1 net.sourceforge
原创
1150阅读
0评论
0点赞
发布博客于 12 年前

DB2: 为DB2数据库创建新用户帐户并为其分配特定特权

目标到目前为止,一直使用实例管理员帐户(SYSADM)来执行所有数据库命令。这个帐户对所有实用程序、数据和数据库对象具有完全访问权。因此,为了避免无意或有意的数据损失,必须要保护这个帐户。在大多数情况下,需要创建不同的用户和/或组,并授予有限的权限集。在本次实验中,将创建一个新的用户帐户,然后为它分配特定的特权。回页首步骤1.
转载
1960阅读
1评论
0点赞
发布博客于 13 年前

RDO Stack Exception: UnboundLocalError: local variable 'logFile' referenced before assignment

Issue:When you install RDO stack on CentOS, you may encounter following error.Error:[root@localhost ~]# packstack --allinoneERROR:root:Failed to load plugin from file prescript_000.pyERROR
原创
932阅读
0评论
0点赞
发布博客于 5 年前

EJB3.x异常:Unsuccessful: alter table ORDER add constraint FK47F8F2EFC558D0A foreign key (ORDER_USR_ID) references CUSTOMER

EJB3.x异常:Unsuccessful: alter table ORDER add constraint FK47F8F2EFC558D0A foreign key (ORDER_USR_ID) references CUSTOMER在部署Order Entity Bean时,总是出现以下异常,久思不得其解:16:57:05,453 ERROR [SchemaUpdate] Unsu
原创
1631阅读
0评论
0点赞
发布博客于 12 年前

LeetCode: 974. Subarray Sums Divisible by K

MediumGiven an arrayAof integers, return the number of (contiguous, non-empty) subarrays that have a sum divisible byK.Example 1:Input: A = [4,5,0,-2,-3,1], K = 5Output: 7Explanation: There are 7 subarrays with a sum divisible by K = 5:[4, 5, ...
转载
15阅读
0评论
0点赞
发布博客于 3 月前

LeetCode: 560. Subarray Sum Equals K

Given an array of integersnumsand an integerk, returnthe total number of continuous subarrays whose sum equals tok.Example 1:Input: nums = [1,1,1], k = 2Output: 2Example 2:Input: nums = [1,2,3], k = 3Output: 2Constraints:1 <= nums...
原创
67阅读
0评论
0点赞
发布博客于 3 月前

LeetCode: 267. Palindrome Permutation II

MediumGiven a strings, return all the palindromic permutations (without duplicates) of it. Return an empty list if no palindromic permutation could be form.Example 1:Input: "aabb"Output: ["abba", "baab"]Example 2:Input: "abc"Output: []解法:.
原创
23阅读
0评论
0点赞
发布博客于 3 月前

LeetCode:47. Permutations II

Given a collection of numbers,nums,that might contain duplicates, returnall possible unique permutationsin any order.Example 1:Input: nums = [1,1,2]Output:[[1,1,2], [1,2,1], [2,1,1]]Example 2:Input: nums = [1,2,3]Output: [[1,2,3],[1,3,2...
原创
23阅读
0评论
0点赞
发布博客于 3 月前

LeetCode: 46. Permutations

MediumGiven a collection ofdistinctintegers, return all possible permutations.Example:Input: [1,2,3]Output:[ [1,2,3], [1,3,2], [2,1,3], [2,3,1], [3,1,2], [3,2,1]]解法:(回溯)本题要求生成全排列,那么看看我们能找到什么规律。以[1,2,3]为例,全排列是[1,2,3][1,3,2][2..
原创
21阅读
0评论
0点赞
发布博客于 3 月前

LeetCode:31. Next Permutation

31.Next PermutationMediumImplementnext permutation, which rearranges numbers into the lexicographically next greater permutation of numbers.If such an arrangement is not possible, it must rearrange it as the lowest possible order (i.e., sorted in a..
原创
12阅读
0评论
0点赞
发布博客于 3 月前

LeetCode: 核心算法(快速选择)

场景:解决Top K问题例如:输入: [3,2,1,5,6,4] 和 k = 2输出: 5解决方法:此类问题一般都是通过一次快排或者大顶堆的方式解决,但是都有问题:快排:对全数组进行了排序,如果要寻找的是第K个大的元素,那么其实我们并不关心从小到大排序后数组的第K位之后的数字;但是快排依然对这些数字进行了排序大顶堆:虽然大顶堆的方法解决了不用考虑第K位之后的数字的问题,但是它依然需要关心第K位之前的数字,所以依然浪费了很多时间问题分析仔细想想Top K问题,其实.
原创
28阅读
0评论
0点赞
发布博客于 4 月前

LeetCode: 常用API及算法

1. 小顶堆 (从小到大)Queue<Integer> heap = new PriorityQueue<>() ;2. 大顶堆 (由大到小) Queue<Integer> heap = new PriorityQueue<>((o1, o2) -> o2 - o1) ;
原创
48阅读
0评论
0点赞
发布博客于 4 月前

LeetCode:215. Kth Largest Element in an Array

MediumFind thekth largest element in an unsorted array. Note that it is the kth largest element in the sorted order, not the kth distinct element.Example 1:Input: [3,2,1,5,6,4] and k = 2Output: 5Example 2:Input: [3,2,3,1,2,4,5,5,6] and k = 4.
原创
24阅读
0评论
0点赞
发布博客于 4 月前

LeetCode:159. Longest Substring with At Most Two Distinct Characters

Given a string s , find the length of the longest substring t that contains at most 2 distinct characters. Example 1: Input: "eceba" Output: 3 Explanation: t is "ece" which its length is 3. Example 2: Input: "ccaabbb...
原创
19阅读
0评论
0点赞
发布博客于 4 月前

Leetcode: 3. Longest Substring Without Repeating Characters

Given a strings, find the length of thelongest substringwithout repeating characters.Example 1:Input: s = "abcabcbb"Output: 3Explanation: The answer is "abc", with the length of 3.Example 2:Input: s = "bbbbb"Output: 1Explanation: The answ...
原创
16阅读
0评论
0点赞
发布博客于 4 月前

Leetcode: 16. 3Sum Closest

16.3Sum ClosestMediumGiven an arraynumsofnintegers and an integertarget, find three integers innumssuch that the sum is closest totarget. Return the sum of the three integers. You may assume that each input would have exactly one solution.Ex...
原创
13阅读
0评论
0点赞
发布博客于 5 月前

Leetcode: 15. 3Sum

Given an arraynumsofnintegers, are there elementsa,b,cinnumssuch thata+b+c= 0? Find all unique triplets in the array which gives the sum of zero.Notice that the solution set must not contain duplicate triplets.Example 1:Input: nums =...
原创
13阅读
0评论
0点赞
发布博客于 5 月前

Leetcode: 1. Two Sum

1.Two SumEasyGiven an array of integers, returnindicesof the two numbers such that they add up to a specific target.You may assume that each input would haveexactlyone solution, and you may not use thesameelement twice.Example:Given nums ...
原创
52阅读
0评论
0点赞
发布博客于 6 月前

Docker: How to config Http Proxy for accessing the Internet

Issue:When you working on docker, you may behind corporate proxy, which means that your docker container cannot access the Internet.Solution:Config Http Proxy for Docker Engine, so that all the ...
原创
84阅读
0评论
0点赞
发布博客于 1 年前

Leetcode: 209. Minimum Size Subarray Sum

Given an array ofnpositive integers and a positive integers, find the minimal length of acontiguoussubarray of which the sum ≥s. If there isn't one, return 0 instead.Example:Input: s = 7, ...
原创
49阅读
0评论
0点赞
发布博客于 1 年前

Leetcode: 207. Course Schedule

There are a total ofncourses you have to take, labeled from0ton-1.Some courses may have prerequisites, for example to take course 0 you have to first take course 1, which is expressed as a pair...
原创
48阅读
0评论
0点赞
发布博客于 1 年前

Leetcode:179. Largest Number

Given a list of non negative integers, arrange them such that they form the largest number.Example 1:Input: [10,2]Output: "210"Example 2:Input: [3,30,34,5,9]Output: "9534330"Note:The r...
原创
61阅读
0评论
0点赞
发布博客于 1 年前

Leetcode 152:Maximum Product Subarray

Given an integer arraynums, find the contiguous subarray within an array (containing at least one number) which has the largest product.Example 1:Input: [2,3,-2,4]Output: 6Explanation:[2,3] h...
原创
105阅读
0评论
0点赞
发布博客于 1 年前

Leetcode 150: Evaluate Reverse Polish Notation

Evaluate the value of an arithmetic expression inReverse Polish Notation.Valid operators are+,-,*,/. Each operand may be an integer or another expression.Note:Division between two integers ...
原创
57阅读
0评论
0点赞
发布博客于 1 年前

Leetcode 148: Sort List

Sort a linked list inO(nlogn) time using constant space complexity.Example 1:Input: 4->2->1->3Output: 1->2->3->4Example 2:Input: -1->5->3->4->0Output: -1-...
原创
44阅读
0评论
0点赞
发布博客于 1 年前

LeetCode 146:LRU Cache

Design and implement a data structure forLeast Recently Used (LRU) cache. It should support the following operations:getandput.get(key)- Get the value (will always be positive) of the key if th...
原创
45阅读
0评论
0点赞
发布博客于 1 年前

Leetcode 143: Reorder List

143.Reorder ListGiven a singly linked listL:L0→L1→…→Ln-1→Ln,reorder it to:L0→Ln→L1→Ln-1→L2→Ln-2→…You maynotmodify the values in the list's nodes, only nodes itself may be changed.Example ...
原创
43阅读
0评论
0点赞
发布博客于 2 年前

Leetcode: 139 Word Break

139.Word BreakGiven anon-emptystringsand a dictionarywordDictcontaining a list ofnon-emptywords, determine ifscan be segmented into a space-separated sequence of one or more dictionary wo...
原创
42阅读
0评论
0点赞
发布博客于 2 年前

Leetcode 127: Word Ladder

127.Word LadderGiven two words (beginWordandendWord), and a dictionary's word list, find the length of shortest transformation sequence frombeginWordtoendWord, such that:Only one letter can ...
原创
40阅读
0评论
0点赞
发布博客于 2 年前

Leetcode 91. Decode Ways

A message containing letters fromA-Zis being encoded to numbers using the following mapping:'A' -> 1'B' -> 2...'Z' -> 26Given anon-emptystring containing only digits, determine t...
原创
42阅读
0评论
0点赞
发布博客于 2 年前

LeetCode:5. Longest Palindromic Substring

Given a strings, find the longest palindromic substring ins. You may assume that the maximum length ofsis 1000.Example 1:Input: "babad"Output: "bab"Note: "aba" is also a valid answer.Exa...
原创
58阅读
0评论
0点赞
发布博客于 2 年前

LeetCode:3. Longest Substring Without Repeating Characters

3.Longest Substring Without Repeating CharactersMediumGiven a string, find the length of thelongest substringwithout repeating characters.Example 1:Input: "abcabcbb"Output: 3 Explanation...
原创
52阅读
0评论
0点赞
发布博客于 2 年前

性能测试结果

Dev Environmentserver.tomcat.max-threads=10server.tomcat.accept-count=100server.tomcat.min-spare-threads=10server.tomcat.max-threads=20server.tomcat.accept-count=100server.tomcat.min-spa...
原创
18阅读
0评论
0点赞
发布博客于 4 月前

事务隔离级别

Read uncommitted Read committed Repeatable read Serializable 定义 允许一个事务可以读取另一个未提交事务的数据 一个事务只能读取另一个已提交事务的数据 ...
原创
11阅读
0评论
0点赞
发布博客于 4 月前

架构模式对比

传统垂直架构 RPC架构 SOA 微服务 架构图 优点 简单应用开发成本较小 编译测试部署发布简单 跨语言(C+...
原创
22阅读
0评论
0点赞
发布博客于 4 月前

Eureka: example of creating 3 nodes Eureka Server with docker

Abstract:In this artical, it will state how to create 3 nodes Eureka Server with docker.Step1. Create Eureka ServerSource:https://github.com/yexianyi/Chukonu/tree/master/chukonu-springcloud-eur...
原创
60阅读
0评论
1点赞
发布博客于 2 年前

Eureka Issue: replicas is not working

Problem:When we create 3-nods Eureka server and register them with each other, you may find the replica is not working.Reason:Each of node must have an unique"eureka.instance.hostname". Differe...
原创
43阅读
0评论
0点赞
发布博客于 2 年前

Mysql Lock with different isolation level

0. PreparationCREATE TABLE `test` ( `id` int(11) DEFAULT NULL, `name` varchar(100) DEFAULT NULL, UNIQUE KEY `test_id_IDX` (`id`) USING BTREE) ENGINE=InnoDB DEFAULT CHARSET=utf8;1.Read...
原创
71阅读
0评论
0点赞
发布博客于 2 年前

MySQL InnoDB: Intention Lock

This artical states how doesIntention Lock work inMySql Server 8.0. Firstly, atesting database and table with seed data will be created. After that, we will see the difference when the table with U...
原创
202阅读
0评论
0点赞
发布博客于 2 年前

How to config VirtualVM Remote Monitoring with JMX

nohup java \ -server \ -Dcom.sun.management.jmxremote=true \ -Dcom.sun.management.jmxremote.port=8887 \ -Dcom.sun.management.jmxremote.rmi.port=8886 \ -Dcom.sun.management.jmxremote.authenticate...
原创
87阅读
0评论
1点赞
发布博客于 3 年前

How to config VirtualVM Remote Monitoring with JMX

nohup java \ -server \ -Dcom.sun.management.jmxremote=true \ -Dcom.sun.management.jmxremote.port=8887 \ -Dcom.sun.management.jmxremote.rmi.port=8886 \ -Dcom.sun.management.jmxremote.authenticate...
原创
87阅读
0评论
1点赞
发布博客于 3 年前

Java8 Useful Usage

Convert List&lt;String&gt; to String list.stream().map(Object::toString).collect(Collectors.joining(","));  
原创
125阅读
0评论
0点赞
发布博客于 3 年前

Java8 Useful Usage

Convert List&lt;String&gt; to String list.stream().map(Object::toString).collect(Collectors.joining(","));  
原创
125阅读
0评论
0点赞
发布博客于 3 年前

JMeter-WebSocketSampler

JMeter-WebSocketSampler jetty-http-9.1.1.v20140108.jar jetty-io-9.1.1.v20140108.jar jetty-util-9.1.1.v20140108.jar websocket-api-9.1.1.v20140108.jar websocket-client-9.1.1.v20140108.jar websocket-common-9.1.1.v20140108.jar
zip
发布资源于 3 年前

How to install Redis on Linux env

1. Download Redishttp://download.redis.io/releases/redis-4.0.10.tar.gz2. Unzip package (e.g. /home/redis) tar xzvf redis-4.0.10.tar.gz3. Make filecd redis-4.0.10makecd srcmake allmak...
转载
119阅读
0评论
0点赞
发布博客于 3 年前

Understanding of Kafka Topic, Partition, Broke, Producer and Consumer

  
原创
239阅读
0评论
0点赞
发布博客于 3 年前

Nginx Configuration of loading balance

Abstract:This example will show how to config a simple Nginx loading balance with Round-Robin policy, which involves 4 node servers to run web app and 1 nginx server to do load balance. Now, I will ...
原创
181阅读
0评论
0点赞
发布博客于 3 年前

Deploy Nginx + Tomcat with Docker

1. Create Tomcat Containerdocker run -it --rm -p 8888:8080 -d tomcat:8.0(The tomcat url is "http://172.17.0.3:8080" in this example.)2. Install Nginx Containerdocker run -it -p 8080:8080 -p ...
原创
139阅读
0评论
0点赞
发布博客于 3 年前

How to setup simple Docker Swarm Clustering with visual tools

How to setup simple Docker Swarm Clustering1. Create 3 docker machinesdocker-machine create -d virtualbox --engine-registry-mirror http://8ff28fe8.m.daocloud.io vm1docker-machine create -d virtualbox...
原创
173阅读
0评论
0点赞
发布博客于 3 年前

Comparison between Hive, Impala, Drill and SparkSQL

HiveImpalaDrillSparkSQLProject GoalOffline batchprocessing stuff;Long running job performing dataheavy operation, such as joins on huge data setsRunreal
原创
333阅读
0评论
0点赞
发布博客于 3 年前

Spring Exception:NoClassDefFoundError: org/springframework/jdbc/datasource/TransactionAwareDataSourc

Exception:org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sqlSessionFactory' defined in class path resource [spring-mybatis.xml]: Error setting property v
原创
1320阅读
0评论
0点赞
发布博客于 4 年前

Docker: How to configure Docker with devicemapper

Background:Device Mapper is a kernel-based framework that underpins many advancedvolume management technologies on Linux. Docker’sdevicemapper storage driverleverages the thin provisioning and sna
原创
2099阅读
0评论
1点赞
发布博客于 4 年前

Impala SQL: Unable to LOAD DATA from HDFS path due to WRITE permissions

Issue:While you are using Impala Official docker image "cloudera/quickstart", following exception might be thrown while executing LOAD DATA command to do data migration.Error:[Simba]
原创
4168阅读
0评论
0点赞
发布博客于 4 年前

Hadoop: File could only be replicated to 0 nodes instead of minReplication (=1). There are 1 datanod

Issue:When you upload a file to HDFS, you may encounter following exception.Exception:Exception in thread "main" org.apache.hadoop.ipc.RemoteException(java.io.IOException): File /test222.xml
原创
1547阅读
0评论
1点赞
发布博客于 4 年前

How to resize /dev/mapper/centos-home

• backup the contents of /home> tar -czvf /root/home.tgz -C /home .• test the backup> tar -tvf /root/home.tgz• unmount home> umount /dev/mapper/centos-home• remove the home logical volu
转载
1686阅读
0评论
0点赞
发布博客于 4 年前

CentOS: RE-SIZING /dev/centos/root IN CENTOS7

Pls refer https://themacwrangler.wordpress.com/2015/01/16/re-sizing-partitions-in-centos7/
转载
659阅读
0评论
0点赞
发布博客于 4 年前

CentOS: How to make rpm auto install dependencies

Issue:There is a scenario that an rpm package needs to be installed, but no the dependencies packages. In that case, we want to make yum could auto find these dependencies and install the rpm packag
原创
868阅读
0评论
0点赞
发布博客于 4 年前

Ubuntu 16.04: How to resolve libqt5x11extras5 (>= 5.1.0) but it is not going to be installed

Issue:When you install Virtualbox 5.1 on Ubuntu 16.04, you may encounter following error:root@XIAYE-NA1:~/Downloads# apt install virtualbox-5.1Reading package lists... DoneBuilding dependency
原创
4509阅读
0评论
0点赞
发布博客于 4 年前

Openstack: Single node Installation and External Network Accessing Configuration Guide

In this guide, it will show how to create an single node OpenStack env with RDO Stack in Virtualbox. Meanwhile, it will also demonstrate how to do the configuration in order to implement bi-directional communications between the hosts in external network a
原创
1998阅读
0评论
1点赞
发布博客于 4 年前

RDO Stack: Failed connect to server

Issue:When you create an instance, but cannot connect to the VNC Server because of the error message, "Failed connect to server".Reason:Your nova vnc configuration may be mapped to wrong vnc
原创
561阅读
0评论
0点赞
发布博客于 5 年前

CentOS7: How to resolve curl#56 - "Recv failure: Connection reset by peer"

Issue:When you execute Yum installation or update, you may encounter following error:Loaded plugins: fastestmirror, langpacksCould not retrieve mirrorlist http://mirrorlist.centos.org/?release=7&
原创
13607阅读
0评论
0点赞
发布博客于 5 年前

Linux: Check version info

一、查看Linux内核版本命令(两种方法):1、cat /proc/version[root@localhost ~]# cat /proc/versionLinux version 2.6.18-194.8.1.el5.centos.plus (mockbuild@builder17.centos.org) (gcc version 4.1.2 20080704 (Red Hat
转载
699阅读
0评论
0点赞
发布博客于 5 年前

Cloudera: Start Impala service by cloudera manager in docker quickstart image

How to start Impala service in docker quickstart imagedocker run --hostname=quickstart.cloudera --privileged=true -t -i -p 7180:7180 -p 21050:21050 cloudera/quickstart /usr/bin/docker-quickstart/h
原创
1065阅读
0评论
0点赞
发布博客于 5 年前

Openstack: change endpoint IP addresses after installation

PrerequisitesYou have a single node DevStack installation using mysql for the database that was working properly before the IP address changed.  If you have important data in your environment that
转载
770阅读
0评论
1点赞
发布博客于 5 年前

RDO Stack: No valid host was found. There are not enough hosts available.

Issue:When you launch an instance in Newton, you may find that the instance cannot be started due to following error message.No valid host was found. There are not enough hosts available.Sol
原创
3543阅读
1评论
0点赞
发布博客于 5 年前

RDO Stack: Install newton in the dashboard can't create images

Issue:When you want to create an image in RDO stack newton version, you may encounter following error.The current Horizon settings indicate no valid image creation methods are available. Providing
原创
498阅读
0评论
0点赞
发布博客于 5 年前

Docker: How to enable/disable HTTP Proxy in Toolbox

1. docker-machine ssh default2. sudo vi /var/lib/boot2docker/profile3. # replace with your office's proxy environmentexport "HTTP_PROXY=http://PROXY:PORT"export "HTTPS_PROXY=http://PRO
原创
1496阅读
0评论
0点赞
发布博客于 5 年前

Docker: Failed to get D-Bus connection: No connection to service

Issue:When you execute systemctl command in docker container, you may receive following error.Error:Failed to get D-Bus connection: No connection to service Solution:docker run --p
原创
1475阅读
1评论
0点赞
发布博客于 5 年前

Common-used commands in Docker

1. Start running a image in background modedocker run -it -d :e.g. docker run -it -d ubuntu:16.042. Start running a image and bind a volumedocker run -it -d : -v :e.g. docker run -it
原创
395阅读
0评论
0点赞
发布博客于 5 年前

VirtualBox: Resize a Fedora, CentOS, or Windows Dynamic Guest Virtual Disk (VDI) in VirtualBox

Here’s the scenario: you’ve set up Dynamically Allocated Storage for the hard drive on your Guest VM in VirtualBox and you’ve run out of space — even though your Actual Size is smaller than the Virt
转载
1231阅读
0评论
0点赞
发布博客于 5 年前

VirtualBox: How to config higher screen resolution

Issue:Default Screen Resolution in Virtualbox instance is 800*600 which might be too small for general using.Solution:Terminate all instances on Virtualbox and execute following command in c
转载
1011阅读
0评论
0点赞
发布博客于 5 年前

CentOS7: How to install Desktop Environments on CentOS 7?

1. Installing GNOME-Desktop:Install GNOME Desktop Environment on here.# yum -y groups install "GNOME Desktop" Input a command like below after finishing installation:# startx
转载
2449阅读
0评论
0点赞
发布博客于 5 年前

JVM:类的生命周期

类的生命周期综述1.    只有当一个类被切实使用到的时候才会被加载到虚拟机中(例如:new, 方法调用, A a = null;不算)2.    若在加载一个类的过程中,有其他类被切实使用到,则会被一同级联加载到JVM中。3.    当一个类中的某个符号被第一次使用到时,该类才会被初始化;当类被加载时,它并未被初始化。4.    初始化顺序:静态函数/变量初始化(Te
原创
966阅读
0评论
1点赞
发布博客于 5 年前

Openstack:Instance cannot ping by domain name

Issue:When you created an instance inside Openstack, you may find that you cannot ping address by domain name in the instance. But ping IP Address directly is OK. For example, ping 74.125.200.
原创
831阅读
0评论
0点赞
发布博客于 5 年前

Openstack: MP-BIOS bug: 8254 timer not connected to IO-APIC

Issue:After you import an linux image into openstack and run an instance of it, you may find that the startup is hang and get following error message:MP-BIOS bug: 8254 timer not connected to IO-AP
原创
2558阅读
0评论
0点赞
发布博客于 5 年前

RDO Stack:VMs cannot access external network.

Issue:There are many root causes to make your openstack vm instances cannot be reached from external network. But one of them in my case is VMs and Host (Openstack host) can only ping each other suc
原创
853阅读
0评论
0点赞
发布博客于 5 年前

ERROR: Cannot change version of project facet Dynamic Web Module to 3.0?

Issue:When you create web app in eclipse with maven configuration, you may get following error.Cannot change version of project facet Dynamic Web Module to 3.0?
原创
527阅读
1评论
0点赞
发布博客于 6 年前

SOAP Binding: Difference between Document and RPC Style Web Services

SOAP Binding: Difference between Document and RPC Style Web Services20FLARES Twitter 1Facebook 9Google+ 8LinkedIn 2Email --Filament.ioA Tutorial on RPC Vs Document Style WSDL SOAP binding
转载
1140阅读
0评论
0点赞
发布博客于 6 年前

Mac OS: How to keep network connection alive after sleep

Do the following:Find out what the network interface is for your wifi. Mine is "en1" for this example (I have obfuscated my MAC addresses with "00")ifconfigen1: flags=8863 mtu 1500 ether 00:0
转载
920阅读
0评论
0点赞
发布博客于 6 年前

Basic Git commands

Basic Git commandsSkip to end of metadata Created by Paul Watson [Atlassian], last modified on Nov 25, 2014Go to start of metadataHere is a list of some basic Git commands to...
转载
579阅读
0评论
0点赞
发布博客于 6 年前

The packages can be overrided by Java Endorsed Standards

Endorsed Standards APIsThe Endorsed Standards for Java SE constitute all classes and interfaces that are defined in the packages listed in this section. Classes and interfaces defined in sub-pac
转载
626阅读
0评论
0点赞
发布博客于 6 年前

Java: How to resolve Access Restriction error

Issue:Access restriction: The constructor 'BASE64Decoder()' is not API (restriction on required library...) Solution:Go to the Build Path settings in the project properties.Remove the JRE Sy
原创
649阅读
0评论
0点赞
发布博客于 6 年前

How to speed up Remote Desktop Connection in Win7

run following command in DOS window:netsh interface tcp set global autotuninglevel=disabledornetsh interface tcp set global autotuninglevel=highlyrestricted
原创
626阅读
0评论
0点赞
发布博客于 6 年前

深入Java单例模式

在GoF的23种设计模式中,单例模式是比较简单的一种。然而,有时候越是简单的东西越容易出现问题。下面就单例设计模式详细的探讨一下。所谓单例模式,简单来说,就是在整个应用中保证只有一个类的实例存在。就像是Java Web中的application,也就是提供了一个全局变量,用处相当广泛,比如保存全局数据,实现全局性的操作等。1. 最简单的实现首先,能够
转载
610阅读
0评论
0点赞
发布博客于 6 年前

Postgre: How to import UUID function into Postgre 9.3

1. Open a command console and go to the directory where you installed Postgre server.e.g. D:\Program Files\PostgreSQL\9.3\bin>2. Drill down into BIN folder and issue following command.psql -d -
原创
1184阅读
0评论
0点赞
发布博客于 7 年前

Salt: Master server cannot see any Minion

Issue:When you set up a Salt Master server and several Minions, you may find that
原创
848阅读
0评论
0点赞
发布博客于 7 年前

Ubuntu 12.04: How to enable root login

1. vi /etc/lightdm/lightdm.conf and add following mod增加 greeter-show-manual-login=true  allow-guest=false  . 修改完的整个配置文件是[SeatDefaults]greeter-session=unity-greeteruser-session=ubuntugreeter-
原创
858阅读
0评论
0点赞
发布博客于 7 年前

Devstack: A copy of worked local.conf I'm sharing with you.

# Sample ``local.conf`` for user-configurable variables in ``stack.sh``# NOTE: Copy this file to the root ``devstack`` directory for it to# work properly.# ``local.conf`` is a user-maintained set
原创
1657阅读
0评论
0点赞
发布博客于 7 年前