寬的可能是用meta標(biāo)簽設(shè)置的,窄的可能是知乎自己寫(xiě)的
已經(jīng)解決了問(wèn)題,首先要修改一下pom.xml中的build里面的配置。
然后要把本地的jar包都用maven來(lái)進(jìn)行管理。
貼上我的pom.xml文件供大家參考。
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>com.qd</groupId>
<artifactId>portal</artifactId>
<version>1.0.0</version>
<packaging>war</packaging>
<name>portal</name>
<description>Intelligence Connect Electric Drill</description>
<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>1.5.8.RELEASE</version>
<relativePath/> <!-- lookup parent from repository -->
</parent>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
<java.version>1.8</java.version>
</properties>
<dependencies>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId>
</dependency>
<!--<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-tomcat</artifactId>
<!–<scope>provided</scope>–>
</dependency>-->
<!--<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-test</artifactId>
<scope>test</scope>
</dependency>-->
<!-- 添加mysql的依賴(lài) -->
<dependency>
<groupId>mysql</groupId>
<artifactId>mysql-connector-java</artifactId>
<scope>runtime</scope>
</dependency>
<!-- 添加jpa的支持 -->
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-data-jpa</artifactId>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-web</artifactId>
<version>4.3.12.RELEASE</version>
</dependency>
<dependency>
<groupId>com.qd</groupId>
<artifactId>commons</artifactId>
<version>0.0.1-SNAPSHOT</version>
</dependency>
<dependency>
<groupId>net.minidev</groupId>
<artifactId>json-smart</artifactId>
<version>2.2.1</version>
</dependency>
<dependency>
<groupId>com.aliyun.oss</groupId>
<artifactId>aliyun-sdk-oss</artifactId>
<version>2.8.2</version>
</dependency>
<dependency>
<groupId>com.google.code.gson</groupId>
<artifactId>gson</artifactId>
<version>2.8.2</version>
</dependency>
<!-- 嘗試加一下core依賴(lài) -->
<dependency>
<groupId>com.qd</groupId>
<artifactId>core</artifactId>
<version>1.0.0</version>
</dependency>
<!-- 把他們都改成maven引入,1-16 -->
<dependency>
<groupId>com.aliyun</groupId>
<artifactId>aliyun-java-sdk-core</artifactId>
<version>3.2.3</version>
</dependency>
<dependency>
<groupId>com.aliyun</groupId>
<artifactId>aliyun-java-sdk-dysmsapi</artifactId>
<version>1.0.0</version>
</dependency>
<dependency>
<groupId>net.sf.json-lib</groupId>
<artifactId>json-lib</artifactId>
<version>2.4</version>
<classifier>jdk15</classifier>
</dependency>
<!-- Mqtt -->
<dependency>
<groupId>org.eclipse.paho</groupId>
<artifactId>org.eclipse.paho.client.mqttv3</artifactId>
<version>1.1.0</version>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.1</version>
<configuration>
<source>1.7</source>
<target>1.7</target>
</configuration>
</plugin>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
</plugin>
</plugins>
</build>
</project>
打開(kāi)藍(lán)牙的HCI log ,抓取hci log 看看通訊情況 ,hci log 可以用 wireshark 軟件查看 hci log文件一般會(huì)保存SD卡目錄下,也有的手機(jī)保持其他路徑,可以找 /etc下的藍(lán)牙配置文件查看保持路徑
$PATH
(打開(kāi)adb shell可查看該環(huán)境變量)對(duì)應(yīng)的目錄下https://www.kernel.org/
https://github.com/torvalds/l...
找一本參考書(shū)比較好,只看源碼有難度
public function msgId($spid, $sqid)
{
$timeStr = time();
//echo bindec(sprintf("%04s%05s%05s%06s%06s%022s%016s",decbin(date('m', $timeStr)),decbin(date('d', $timeStr)),decbin(date('H', $timeStr)),decbin(date('i', $timeStr)),decbin(date('s', $timeStr)),decbin($spid), decbin($sqid)));
return bindec(sprintf("%04s%05s%05s%06s%06s%022s%016s",decbin(date('m', $timeStr)),decbin(date('d', $timeStr)),decbin(date('H', $timeStr)),decbin(date('i', $timeStr)),decbin(date('s', $timeStr)),decbin($spid), decbin($sqid)));
}
$this->msgId('600010','2');
在這里面給你糾正一下思路
第一: 64位
里面只能存0-1之間的數(shù)值,也就是說(shuō)都是2進(jìn)制數(shù)據(jù)
所以拼接一下2進(jìn)制數(shù)據(jù)就好了
月份(1-12)(【0001-1100】區(qū)間 4位)decbin(date('m', $timeStr))
日(1-31)(【00001-11111】區(qū)間 5位)decbin(date('d', $timeStr))
時(shí)(1-24)(【00001-11000】區(qū)間 5位)decbin(date('H', $timeStr))
分(1-59)(【000001-111011】區(qū)間 6位)decbin(date('i', $timeStr))
秒(1-59)(【000001-111011】區(qū)間 6位)decbin(date('s', $timeStr))
網(wǎng)關(guān)代碼(【0~0 - 1~1】22位)decbin($spid1)
// (如果這個(gè)網(wǎng)關(guān)代碼是22位0和1組成就不用decbin,本身就是2進(jìn)制了,如果不是的話,就變成二進(jìn)制)
序列號(hào)(區(qū)間 16位)decbin($spid2)
網(wǎng)關(guān)代碼多少位我沒(méi)洗數(shù),序列號(hào),什么的位數(shù)你自己調(diào)就行了%04d%06d%05d%06d%06d【%021d%016d】<-這里
如果沒(méi)算錯(cuò)的話是4+5+5+6+6+22+16應(yīng)該是64位了,那么這64位是一個(gè)2進(jìn)制的字符串,用bindec()轉(zhuǎn)換成十進(jìn)制的數(shù)值,存進(jìn)數(shù)據(jù)庫(kù)里面,那么數(shù)據(jù)庫(kù)存貯的2進(jìn)制數(shù)據(jù)就是符合你要的規(guī)定了,而且10進(jìn)制數(shù)據(jù),8位,64字節(jié),完美
變量名用點(diǎn)心$spid, $sqid
我以為是一個(gè)
下面這種方法也是簡(jiǎn)單,邏輯上不好理解,但是還是挺簡(jiǎn)單的,學(xué)習(xí)了
$messageId = 0;
$messageId |= $m << 60;
$messageId |= $d << 55;
$messageId |= $h << 50;
$messageId |= $i << 44;
$messageId |= $s << 38;
$messageId |= $spid << 16;
$messageId |= $sqid & 0xff;
echo $messageId
path:'/index',
name:'index',
component:index,
redirect:'/device/deviceDisplay',
children:[
{
path:'/device/user',
name:'user',
component:user,
children:[
{
path: '/device/deviceDisplay',
name: 'deviceDisplay',
component: deviceDisplay
}
]
}
我理解的是默認(rèn)選中第一個(gè),用重定向
你把反編譯前的 apk 后綴改為 zip 再解壓看看,里面應(yīng)該也有 classes.dex classes2.dex classes3.dex classes4.dex 等文件,這是因?yàn)?apk 中方法數(shù)超過(guò)了 65536 個(gè),使用了 multidex support library 將一個(gè) apk 中的 dex 文件分割成多個(gè) dex 文件的緣故。相關(guān)知識(shí)可以搜索 "android 65k" 來(lái)進(jìn)行了解。
從調(diào)試工具比如gdb
那拿到的結(jié)果有時(shí)不能保證是正確的。至于這到底是為什么,這也許是gdb
的問(wèn)題,在深入的話我也不了解了(如果有人知道的話,還請(qǐng)?jiān)谠u(píng)論區(qū)指教)。這也是為什么有的時(shí)候用IDE
的單步跟蹤查看變量值可能是不正確的。
如果打log
的話,就可以保證完全正確了。
問(wèn)題一,是的,listen參數(shù)backlog就是這個(gè)沒(méi)有建立(accept)的連接隊(duì)列的最大長(zhǎng)度,不過(guò)系統(tǒng)內(nèi)核還有另外一個(gè)上限控制,backlog不是隨便設(shè)多大就行。
問(wèn)題二,這個(gè)socket對(duì)象在內(nèi)核內(nèi)存里,你只有它的句柄(fd)。
內(nèi)核其中包括收發(fā)的緩沖區(qū)。你不能直接讀寫(xiě)它,內(nèi)核收發(fā)時(shí)read或send時(shí),會(huì)把內(nèi)核緩沖區(qū)的數(shù)據(jù)拷貝到用戶空間或者反之。能接收多少數(shù)據(jù)取決于內(nèi)核和網(wǎng)卡驅(qū)動(dòng)的參數(shù)配置,即相應(yīng)內(nèi)核緩沖區(qū)的大小。不同的IP連接有不同的描述符,不同進(jìn)程之間也是隔離的,都在內(nèi)核里統(tǒng)一維護(hù)。如果放不下。UDP會(huì)導(dǎo)致丟包,TCP連接對(duì)方則會(huì)嘗試重發(fā)。
已解決.
java對(duì)于帶報(bào)名的類(lèi)的查找是需要路徑的,看修改就知道了.
mkdir com
mv MyTest.jar com/
tar cvf MyTest.jar com
代碼如上,ppp可以成功返回沒(méi)有報(bào)錯(cuò),ppp是個(gè)左值,那肯定不會(huì)是移動(dòng)的吧,那就要執(zhí)行拷貝構(gòu)造函數(shù)吧,但是unique_ptr沒(méi)有拷貝構(gòu)造啊。。。。
你這個(gè)判斷是錯(cuò)的,給你一個(gè)例子如下:
#include <iostream>
#include <memory>
using namespace std;
static unique_ptr<int> p1 = std::make_unique<int>(10);
// move -> copy construction -> failed
unique_ptr<int> foo()
{
auto p = make_unique<int>(10);
return p; // 1 ok p is local parameter(rvalue) can run it with move
//return move( p ); // 2 also ok
//return p1; // NOK. p1 is lvalue can not performance move on it.
}
int main()
{
unique_ptr<int> p = foo();
cout << *p << endl;
return 0;
}
首先,ppp是return回來(lái)的局部值,這是右值而不是左值;
其次,std::unique_ptr
不接受左值作為入?yún)⒌目截悩?gòu)造函數(shù). 只有這個(gè):
unique_ptr( unique_ptr&& u ) noexcept;
你再揣摩一下這個(gè)例子吧:
https://github.com/lynnboy/Cp...
callback-回調(diào).
this._rowsData.foreach(v=>document.querySelector("<selector>").value = v.xxx)
已解決。只要加一個(gè)空插槽就行了
HttpClient post請(qǐng)求了解一下
Java使用HttpClient實(shí)現(xiàn)Post請(qǐng)求
代理軟件地址
proxies = {
"http": "http://127.0.0.1:8080"
}
requests.post(url=url, json=joindata, proxies=proxies,verify=('FiddlerRoot.pem'))
verify同目錄下的Fiddler證書(shū),F(xiàn)iddler就能抓到包了
不同段位各組成一個(gè)隊(duì)列,每次進(jìn)來(lái)取出兩個(gè)人,滿足條件就對(duì)戰(zhàn);隊(duì)列為空,從相鄰隊(duì)列里面去??;系統(tǒng)定時(shí)清理沒(méi)有匹配到的
再重裝試試唄~
北大青鳥(niǎo)APTECH成立于1999年。依托北京大學(xué)優(yōu)質(zhì)雄厚的教育資源和背景,秉承“教育改變生活”的發(fā)展理念,致力于培養(yǎng)中國(guó)IT技能型緊缺人才,是大數(shù)據(jù)專(zhuān)業(yè)的國(guó)家
北大青鳥(niǎo)中博軟件學(xué)院創(chuàng)立于2003年,作為華東區(qū)著名互聯(lián)網(wǎng)學(xué)院和江蘇省首批服務(wù)外包人才培訓(xùn)基地,中博成功培育了近30000名軟件工程師走向高薪崗位,合作企業(yè)超4
中公教育集團(tuán)創(chuàng)建于1999年,經(jīng)過(guò)二十年潛心發(fā)展,已由一家北大畢業(yè)生自主創(chuàng)業(yè)的信息技術(shù)與教育服務(wù)機(jī)構(gòu),發(fā)展為教育服務(wù)業(yè)的綜合性企業(yè)集團(tuán),成為集合面授教學(xué)培訓(xùn)、網(wǎng)
達(dá)內(nèi)教育集團(tuán)成立于2002年,是一家由留學(xué)海歸創(chuàng)辦的高端職業(yè)教育培訓(xùn)機(jī)構(gòu),是中國(guó)一站式人才培養(yǎng)平臺(tái)、一站式人才輸送平臺(tái)。2014年4月3日在美國(guó)成功上市,融資1
浪潮集團(tuán)項(xiàng)目經(jīng)理。精通Java與.NET 技術(shù), 熟練的跨平臺(tái)面向?qū)ο箝_(kāi)發(fā)經(jīng)驗(yàn),技術(shù)功底深厚。 授課風(fēng)格 授課風(fēng)格清新自然、條理清晰、主次分明、重點(diǎn)難點(diǎn)突出、引人入勝。
曾工作于聯(lián)想擔(dān)任系統(tǒng)開(kāi)發(fā)工程師,曾在博彥科技股份有限公司擔(dān)任項(xiàng)目經(jīng)理從事移動(dòng)互聯(lián)網(wǎng)管理及研發(fā)工作,曾創(chuàng)辦藍(lán)懿科技有限責(zé)任公司從事總經(jīng)理職務(wù)負(fù)責(zé)iOS教學(xué)及管理工作。
精通HTML5和CSS3;Javascript及主流js庫(kù),具有快速界面開(kāi)發(fā)的能力,對(duì)瀏覽器兼容性、前端性能優(yōu)化等有深入理解。精通網(wǎng)頁(yè)制作和網(wǎng)頁(yè)游戲開(kāi)發(fā)。
具有10 年的Java 企業(yè)應(yīng)用開(kāi)發(fā)經(jīng)驗(yàn)。曾經(jīng)歷任德國(guó)Software AG 技術(shù)顧問(wèn),美國(guó)Dachieve 系統(tǒng)架構(gòu)師,美國(guó)AngelEngineers Inc. 系統(tǒng)架構(gòu)師。