• 今天我打开我SAP UI5应用，激活support assistant后，发现一条警告信息：ResponsiveLayout should not be used any longer because of UX requirements 这条信息提示字段resolution告诉了我正确做法：Use the ...
今天我打开我的SAP UI5应用，激活support assistant后，发现一条警告信息：ResponsiveLayout should not be used any longer because of UX requirements

并给出参考链接：https://sapui5.hana.ondemand.com/#/api/sap.ui.layout.form.ResponsiveLayout
The ResponsiveLayout renders a Form with a responsive layout. Internally the ResponsiveFlowLayout is used. The responsiveness of this layout tries to best use the available space. This means that the order of the FormContainers, labels and fields depends on the available space.
ResponsiveLayout将form渲染成响应式布局，内部实现采用了ResponsiveFlowLayout，这种类型的布局将试图最大化地利用可用页面空间，意味着FormContainers，标签和字段的顺序依赖于可用空间。
On the FormContainers, FormElements, labels and content fields, ResponsiveFlowLayoutData can be used to change the default rendering.
We suggest using the ResponsiveGridLayout instead of this layout because this is easier to consume and brings more stable responsive output.
现在SAP推荐使用ResponsiveGridLayout来替代ResponsiveLayout，因为前者能产生更稳定的响应式布局。
而ResponsiveGridLayout内部使用的是Grid控件。

这个错误是如何被检测出来的呢？

代码如下：
	check: function (oIssueManager, oCoreFacade, oScope) {
oScope.getElementsByClassName("sap.ui.layout.form.Form")
.forEach(function (oForm) {
var oLayout = oForm.getLayout();
if (oLayout && oLayout.isA("sap.ui.layout.form.ResponsiveLayout")) {
var oParent = oForm.getParent();
var sId;
var sName = "Form";

if (isSimpleForm(oParent)) {
sId = oParent.getId();
sName = "SimpleForm";
} else if (isSmartForm(oParent)) {
// for SmartForm don't check on Form level
return;
} else {
sId = oForm.getId();
}

severity: Severity.Medium,
details: sName + " " + sId + " uses ResponsiveLayout.",
context: {
id: sId
}
});
}
});
},

首先用JavaScript原生DOM API oScope.getElementsByClassName(“sap.ui.layout.form.Form”)拿到所有类为sap.ui.layout.form.Form的标签，然后忽略SmartForm的检测，最后获得form的ID，打印到support Assistant上。
要获取更多Jerry的原创文章，请关注公众号"汪子熙":


展开全文
• maven中mirrorreposity的区别    | This is a list of mirrors to be used in downloading artifacts from remote repositories.  |  | It works like this: a POM may declare a repository to use in ...


maven中mirror和reposity的区别
<!-- mirrors
|
| It works like this: a POM may declare a repository to use in resolving certain artifacts.
| However, this repository may have problems with heavy traffic at times, so people have mirrored
| it to several places.
<!-- mirror
| Specifies a repository mirror site to use instead of a given repository. The repository that
| this mirror serves has an ID that matches the mirrorOf element of this mirror. IDs are used
| for inheritance and direct lookup purposes, and must be unique across the set of mirrors.

怎么配maven链接阿里云的镜像详细步骤
修改maven根目录下的conf文件夹中的setting.xml文件，（或者当前用户目录 的 .m2 目录下的 setting.xml 文件）内容如下：  <mirrors>    <mirror>      <id>alimaven</id>      <name>aliyun maven</name>      <url>http://maven.aliyun.com/nexus/content/groups/public/</url>      <mirrorOf>central</mirrorOf>            </mirror>  </mirrors>

展开全文
• An Intent is something that is used right now; a PendingIntent is something that may create an Intent in the future. You will use a PendingIntent with Notifications, AlarmManager, etc. Notification...
An Intent is something that is used right now; a PendingIntent is something that may create an Intent in the future. You will use a PendingIntent with Notifications, AlarmManager, etc.    Notification n = new Notification(R.drawable.face_1, "Service启动", System.currentTimeMillis());
PendingIntent contentIntent = PendingIntent.getActivity(this, 0, new Intent(this, TServiceHolder.class), 0);
n.setLatestEventInfo(this, "任务标题", "任务内容", contentIntent);
nManager.notify(NOTIFICATION_ID, n); // 任务栏启动  

String msg ="你好，美女";
String number = "187****5477";
SmsManager sms = SmsManager.getDefault();

sms.sendTextMessage(number, null, msg, pi, null);  //短信发送成功后要把intent广播出去
Toast.makeText(SmsActivity.this,"发送成功",Toast.LENGHT_LONG).show();  

By giving a PendingIntent to another application, you are granting it the right to perform the operation you have specified as if the other application was yourself，就相当于PendingIntent代表了Intent

1）PendingIntent sentIntent：当短信发出时，成功的话sendIntent会把其内部的描述的intent广播出去，否则产生错误代码并通过android.app.PendingIntent.OnFinished进行回调，这个参数最好不为空，否则会存在资源浪费的潜在问题；

2）PendingIntent deliveryIntent：是当消息已经传递给收信人后所进行的PendingIntent广播。

查看PendingIntent 类可以看到许多的Send函数，就是PendingIntent在进行被赋予的相关的操作。

==============================================================================

Intent 表示一个目的，第一个参数表示所在类，第二个参数表示目标类
PendingIntent 即是一个Intent的描述

PendingIntent和Intent的区别：

PendingIntent就是一个Intent的描述，我们可以把这个描述交给别的程序，别的程序根据这个描述在后面的别的时间做你安排做的事情

换种说法Intent 字面意思是意图，即我们的目的，我们想要做的事情，在activity中，我们可以立即执行它

PendingIntent 相当于对intent执行了包装，我们不一定一定要马上执行它，我们将其包装后，传递给其他activity或application

这时，获取到PendingIntent  的application 能够根据里面的intent 来得知发出者的意图，选择拦击或者继续传递或者执行
转载于:https://www.cnblogs.com/jqyp/archive/2012/04/18/2455704.html
展开全文
• A Servlet Filter is used in the web layer only, you can’t use it outside of a web context. Interceptors can be used anywhere. That’s the main difference. In my opinion one of the b...
过滤器和拦截器
Difference:
A Servlet Filter is used in the web layer only, you can’t use it outside of a
web context. Interceptors can be used anywhere. That’s the main difference.
In my opinion one of the biggest difference between Filters and Interceptors is:
Filter works only in J2EE web applications, you can not use outside of the application servers, Interceptors can work in different components and not depends on the web layer, in summary interceptor have a wide field than filters. If you are planning to move some component outside the container, you should consider use interceptors.
Filters work more in the request/response domain, in the other hand interceptor act more in the method execution domain.
If you need to do something that could affect the request or response to your application such as logging, security, audit, or you will affect the data coming on them, your option is filter, don’t forget the plug ability that those provides.
Interceptors are used in conjunction with Java EE managed classes to allow developers to invoke interceptor methods on an associated target class, in conjunction with method invocations or lifecycle events.

Filter基于回调函数，我们需要实现的filter接口中doFilter方法就是回调函数，而interceptor则基于java本身的反射机制,这是两者最本质的区别。
Filter是依赖于servlet容器的，即只能在servlet容器中执行，很显然没有servlet容器就无法来回调doFilter方法。而interceptor与servlet容器无关。
Filter的过滤范围比Interceptor大,Filter除了过滤请求外通过通配符可以保护页面，图片，文件等等，而Interceptor只能过滤请求。
Filter的过滤例外一般是在加载的时候在init方法声明,而Interceptor可以通过在xml声明是guest请求还是user请求来辨别是否过滤

####综上所述
一个简单的数据流程，请求过来进入到 Filter pre —>dispatcher—>preHandle–>controller–>postHandle—>afterCompletion—>Filter After
interceptors-or-filters
spring-handlerinterceptor-vs-servlet-filters


展开全文
• 为什么利用dudf查看磁盘容量结果不一致，是否是有bug或者有磁盘碎块，或该以哪个结果为准。而实际上两个命令得出值是不一致由于du与df命令实施上不同，而非故障。...Filesystem Size Used Avail Use
• Business Partner Definition A person, an organization, or a group of persons or organizations, in which a ...The Business Partner business object provides business partner master data that is used
• 《The C Programming Language》 K&R Page... We will generally use parameter for a variable named in the parenthesized list in a function definition, and argument for the value used in a call
•  warning: the `gets' function is dangerous and should not be used. 曾经为了方便，就让它一直warning了，但是为什么gets是危险呢。 在某国外论坛上看到这么一句话： In order to use gets safely,...
• <p>From documentation: ... <p>InDelta asserts that the two numerals are within delta of each other ... what are the use cases where one would be used over the other and vice versa? </div>
• The essential difference between Bayesian and Frequentist statisticians is in how probability is used. Frequentists use probability only to model certain processes broadly described as "sampling." Ba
• 原文地址：... 我在文档里看到 A common mistake is to use YYYY. yyyy specifies the calendar year whereas YYYY specifies the year (of “Week of Year”), used in the ISO yea
• Short answer:For verifying ISOs, there is no practical difference, use whichever you want,as long as you trust the source providing the sums.MD5 is/used to be the standard, but the computing worl...
• <p>This question already has an answer here: ...<p>When I have previously used the axios library the server functions have always explicitly returned JSON and not echoed it. </div>
• 先举个例子 <br /> 系统文件系统使用情况，其中 /home 文件系统当前... Size Used Avail Use% Mounted on /dev/mapper/sys-root 4.0G 2.3G 1.5G 60% / /dev/cciss/c0d0p1 244M 11M 221M
• <p>I noticed something strange in Go: I thought that it used <code>:=</code> and substitutes <code>=</code> in Python, but when I use <code>=</code> in Go it is also works. <p>What is the difference...
• <p>what is the difference between RLock() and Lock() in Golang and how they can be used efficiently when we use mutex Lock ? </div>
• <p>But if one cannot use $this::</code> in static methods, <code>static::</code> can be used in non-static methods (like in the example). <p>So, <strong>what is the difference between static:: and$...
• The <a href="https://golang.org/pkg/sync/atomic/" rel="nofollow noreferrer">atomic documentation</a> does say it should only be used in special cases. <p><strong>Update: The original question that ...
• When using beautiful soup what is the difference between 'lxml' and "html.parser" and "html5lib"? When would you use one over the other and the benefits of ... from the times i used each they seem ...
• The jQuery .find() method can be used to create a new set of elements based on context of the current set of DOM elements and their children elements. People often confuse the use of the .filter(...
• strip()是trim()“Unicode-aware”演变.ProblemString::trim has existed from early days of Java when Unicodehad not fully evolved to the standard we widely use today.The definition of space used by ...
• is used .Or I need to use the infinite loop?.And if page refreshes will the requests to that page that are waiting for response get affected in someway ? <pre><code> function waitForMsg(){ /* This ...
• <p>I have a table that have hundreds of rows, and i want to get specific rows, I used the LIMIT and between id and id In my application i have two text inputs, one is for START NUMBER and one is for ...
• <p>This question already has an ...<p>In that example, I used three different methods to retrieve the age. They all work, but I don't know why or when I should use one over the other. </div>
• B-Tree Index CharacteristicsA B-tree index can be used for column comparisons in expressions that use the=,>,>=,In the first statement, only rows with'Patrick' <=key_col< 'Patricl'...
• If I was going to use only one, which would contain the most descriptive error message, and which is most proper to use? <p>I'm confused as to why both exist. I realize that <code>errmsg</code> was ...
• # You can override the specific suite runner used or specify a test for this command. # Use --tests=<testPath> for a specific test and/or --runner=<runnerName> for a specific suite. # ...
• If you used ES modules, you’re already all good: import ReduxThunk from 'redux-thunk'; // no changes here Additionally, since 2.x, we also support a UMD build: const ReduxThunk = window.ReduxThunk....