Sign in

Example :

1 Autowired

you will not get any error although it has any Circular dependency issue


The UInt, ULong, UByte, UShort unsigned integer types are now Stable.

But i found sometimes you still can get negative value as below code

for case 3 , we can see the result is not negative number but no exception was thrown.


XV PARAMETER

这车要是在国内,这个价位我看一眼都觉得羞愧。之前看到同事买的Subaru,作为键盘侠的我怎么也想不通,在没有极端雨雪天气和大范围山路的新加坡,是什么样的信念和目的值得入手斯巴鲁。

时光飞逝,经过五年在新加坡的辛勤劳作我攒下了的三千块,以及家里支持的九万多,使得我终于有机会选择自己的车了。

晴空万里的某天清晨,请了一天假期,我携着夫人兴高采烈的走进了马自达的4S店的大门,进门后环顾一周,很快就有一位销售迎了上来,寒暄过后便是争锋相对的交涉,不出一会儿成交价格最终敲定在11.3万的马六犹如囊中之物。由于事情进展的过于顺利,我们打算再看一家再做决定。销售伴着不甘的眼神,一再要求我们无论如何要下午回个电话过去。“当然,当然,我一定回你电话。”话音刚落,我便迈出了马自达的店门。此时已经到了饭点,我们随便吃了两口面条,和夫人商量着再去哪一家店看看,“要不要去我那同事的牌子的4S店看看?”我随口问道,“你同事什么牌子?” “斯巴鲁!” “啥?” “斯!巴!鲁!”我提高嗓门说到。“没听过,德国牌子吗?” “不是,日本牌子,国内挺小众的,修起来贼贵!”我说这便捂着嘴偷笑到。

响午刚过,这太阳还是相当恶毒的,晒的我衣服紧紧的黏在一起了,脑门的大汗珠贴着脸颊断断续续的滴下来,抬头远远望去,蓝底的白色五颗星星的大logo映入眼帘。一颗很大的logo隔很远就能看到,门外场地上还有辆样车故意停在一个陡坡上,感觉野性十足。进门空调冷气倒也是很足,但是里面人就寥寥无几了,心想这斯巴鲁生意一般般嘛。入门就是一辆崭新的森林人的7座大SUV,我心不在焉的扫了几眼,车身很大,底盘也高。我人比较瘦。用我老婆的话说,就是上车感觉你就像猴子上树一般。这车得胖点的人开,车子这么大必须有人得镇住它。我顿时心想我那可怜的同事也是和我差不多体格的。

这时候继续往里走,一辆比森林人更小体格的SUV展现在眼前,通体呈现湛蓝色的车身,银白色的类似花瓣五幅轮毂。打开车门,橘红色的缝线,整个中空绝对的对称,前挡风玻璃上方两个手掌大小的类似眼睛的摄像头明晃晃的在反光镜的位置上,正在我疑惑不解的时候,一位销售迎了上来,态度温和的说到“这是斯巴鲁特有的辅助驾驶系统,这两颗摄像头可以随时检测道路情况,辅助车辆行驶。整车配有四驱系统,驾驶起来相当的稳妥。先生你要不要试驾一下?” 随机他便帮我们找了辆试驾车,说实话连上午试驾的一次,这是我第二次在新加坡开车。即使现在坐在电脑面前回想起来也是一阵紧张,我故作镇定的打开车门,强撑着跟着销售试驾了一圈,暂且不说我后座的夫人惊慌失措的眼神。我旁边的销售,弱弱的说了一句:“大哥看起来有点生疏了呀”。我微微一笑,内心回应着:“何止生疏,你能和我安全回来算你运气不错呢”。进店后销售一直夸我眼光好,“这车和森林人发动机变速箱一模一样的,动力不错,优惠幅度也大哦。” 旁边的夫人也是发现新大陆一样的说轿车没有SUV舒服,SUV空间大。关键的关键是比我们上午看的车也便宜一万块钱。这省下的钱买点其他的也是很香的呀。销售大哥旁边也附和道,这车配置很高,动力足。特别适合您这样的需求。 我望着老婆,沉思良久。内心纠结了好一阵后终于还是决定就是它了。

就这样鬼使神差,我也竟然选择了Subaru这个品牌下的XV。也有四驱越野,也配有维修费用奇高的水平对置发动机。事后我理性给出的理由如下

1 同价位下,配置令人感动,随转大灯,自动启停,大灯清洗(这个最浮夸),电动尾门,carplay ,车道偏离,安全驾驶,EyeSight Driver 一应俱全。基本上车上该有的配置都配备了。

2 同价位下多了个四驱系统,水平对置发动机。

3 车子造型比较运动,适合一家三口出行,偶尔深踩下油门满足自己的驾驶梦

我最终以10万6千的价格(不含保险)拿下的。回头看同事买车一事,恍然明白,妄加的揣测只会突出自己的愚昧。买车如此生活亦如此。


I got the error as below. i thought it’s nginx config error and toke a lot of time to search nginx config file setting


user want to login in cap system with github account.

Client : cap system

Resource owner: git hub user . actually it’s you. you have git hub account

Resource Server: git hub server

Authorization Server : authorization server, this server generate access toke to client and we also can put same domain name with resource server

a) client (cap system) ask user to authorization by git hub account

b)resource owner agree it and provide authorization grant(actually it’s a sample string code)

c) client get the grant code and sent to authorization server

d) authorization server provide access token by your grant code

e)client get this access toke and try to request to resource server with access token

f) resource server send the resource (your name ,age, photograph)


== (Structural Equality)

“==” operator is used to compare the data of two variables.
Please don’t misunderstand this equality operator with the Java == operator as both are different. == operator in Kotlin only compares the data or variables, whereas in Java or other languages == is generally used to compare the references. The negated counterpart of == in Kotlin is != which is used to compare if both the values are not equal to each other.

===(Referential equality)

=== operator is used to compare the reference of two variable or object. It will only be true if both the…


1 For Defer:

Defer has the priority which depend on your loading ordering. it means it’s will be loaded by your writing ordering.

2 For Async:

It will be excused imminently once script file is loaded. but if you use “defer”, the script will be excused after the html parser completed.

3 For Module:

Module scripts are deferred by default. As such, there is no need to add defer to your <script type="module"> tags! Not only does the download for the main module happen in parallel with HTML parsing, the same goes for all the dependency modules.

very clear to show the difference of defer , async ,moudle
loading priority

The summary of html loading step

  1. 解析HTML结构
  2. 加载外部的脚本和样式文件
  3. 解析并执行脚本代码
  4. 执行$(function(){})内对应代码
  5. 加载图片等二进制资源
  6. 页面加载完毕,执行window.onload


Splice function

1 delete “xu” and “da”

Splice delete “xu” and “da”

2 delete the second element, the first param is start position and the second is delete 1 element .


oninput: event occurs when the text content of an element is changed through the user interface

onchange: occurs when the selection, the checked state or the contents of an element have changed. In some cases, it only occurs when the element loses the focus. The onchange attribute can be used with <input>, <select>, and <textarea>

Select : i changed Bob to Alice .

Input: i input 123.


refert to https://stackoverflow.com/questions/56380091/how-to-interact-with-the-elements-within-shadow-root-open-while-clearing-brow

Demo :

@Test
public void demo() {
String path = this.getClass().getResource("/Html_Root.html").getPath();
open("file:///"+path);
WebDriver driver = driver ().getWebDriver ();

WebElement shadowHost = driver.findElement(By.cssSelector("div"));
WebElement shadowRoot = getShadowRoot(driver,shadowHost);
WebElement shadowTreeElement = shadowRoot.findElement(By.cssSelector("input"));
shadowTreeElement.clear ();
shadowTreeElement.sendKeys ( "123");
Assertions.assertEquals ("123",shadowTreeElement.getAttribute ("value"));
}

private static WebElement getShadowRoot(WebDriver driver,WebElement shadowHost) {
JavascriptExecutor js = (JavascriptExecutor) driver;
return (WebElement) js.executeScript("return arguments[0].shadowRoot", shadowHost);
}

https://github.com/xiansheng123/seleniumTest

Xuda Lu

你不上谁上

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store