把定時任務(wù)改成* * * * *,然后監(jiān)聽一下/var/log/syslog日志,看看cron是否有報錯。
疑似你的/home啟用了加密
跟 flex 沒關(guān)系,是子元素大小超出父元素引起的。
<div class='wrapper'>
<div class="inner">
</div>
</div>
.wrapper {
width: 100px;
overflow: auto;
}
.inner {
width: 120px;
}
也會出現(xiàn)這種情況,包括父容器的padding-right,也不是無效,還是有的,但是沒起到影響布局的效果。
應(yīng)該是,超出情況下在兩側(cè)布局樣式無法同時滿足時,默認(rèn)左上為布局起點(diǎn),所以優(yōu)先滿足margin-left等左側(cè)布局樣式。
sql應(yīng)該是沒啥問題,尤其是gem1不會報錯的情況下。檢查一下gem2前后是不是有空格或者換行符。
-g的意思是安裝到全局包文件夾里。這個設(shè)置你可以在命令行運(yùn)行npm get prefix -g看到。
如果你要安裝在當(dāng)前文件夾里直接npm install hexo就好。
npm安裝包的位置是和環(huán)境變量沒關(guān)系的,和你的npm設(shè)置有關(guān),可通過npm config set prefix 你想要的全局路徑來修改全局包所在文件夾。
沒想到SF有Haskell問題:)
其實(shí)你看Profiling的結(jié)果,in_range的inherited %time和inherited %alloc都比larger_than大,占了整個程序執(zhí)行的100%和93.3%。所以第一種方法快。
寫個rewrite rule也許可以對elem和enumFromTo進(jìn)行優(yōu)化。
試了寫rewrite rule,發(fā)現(xiàn)enumFromTo有inline,導(dǎo)致rewrite rule沒有生效,所以先自己實(shí)現(xiàn)一個myEnumFromTo看看效果:
module Main where
{-# RULES
"elem/myEnumFromTo" forall (x::Integer) (n::Integer) (m::Integer) . elem x (myEnumFromTo n m) = x >= n && x <= m
#-}
{-# NOINLINE myEnumFromTo #-}
myEnumFromTo n m
| n == m = [n]
| otherwise = [n] ++ myEnumFromTo (n + 1) m
main = do
print $ {-# SCC larger_than #-} lth 100000000
print $ {-# scc in_range #-} inr 100000000
lth :: Integer -> Bool
lth x = (x >= 1 && x <= 65535000000000)
inr :: Integer -> Bool
inr x = let m = 65535000000000::Integer in
x `elem` (myEnumFromTo 1 m)
Profile結(jié)果是這樣的:
main Main app/Main.hs:(12,1)-(14,48) 0.0 15.8
individual inherited
COST CENTRE MODULE SRC no. entries %time %alloc %time %alloc
MAIN MAIN <built-in> 144 0 0.0 29.6 0.0 100.0
CAF GHC.Conc.Signal <entire-module> 252 0 0.0 0.9 0.0 0.9
CAF GHC.IO.Encoding <entire-module> 241 0 0.0 3.8 0.0 3.8
CAF GHC.IO.Encoding.Iconv <entire-module> 239 0 0.0 0.3 0.0 0.3
CAF GHC.IO.Handle.FD <entire-module> 231 0 0.0 47.3 0.0 47.3
CAF GHC.IO.Handle.Text <entire-module> 229 0 0.0 0.1 0.0 0.1
CAF GHC.Show <entire-module> 214 0 0.0 0.4 0.0 0.4
CAF GHC.Event.Thread <entire-module> 193 0 0.0 1.7 0.0 1.7
CAF GHC.Event.Poll <entire-module> 160 0 0.0 0.1 0.0 0.1
CAF:main1 Main <no location info> 286 0 0.0 0.0 0.0 0.0
main Main app/Main.hs:(12,1)-(14,48) 288 1 0.0 0.0 0.0 0.0
CAF:main2 Main <no location info> 284 0 0.0 0.0 0.0 0.0
main Main app/Main.hs:(12,1)-(14,48) 293 0 0.0 0.0 0.0 0.0
in_range Main app/Main.hs:14:32-48 294 1 0.0 0.0 0.0 0.0
inr Main app/Main.hs:(20,1)-(21,29) 295 1 0.0 0.0 0.0 0.0
inr.m Main app/Main.hs:20:13-39 296 1 0.0 0.0 0.0 0.0
CAF:main4 Main <no location info> 285 0 0.0 0.0 0.0 0.0
main Main app/Main.hs:(12,1)-(14,48) 290 0 0.0 0.0 0.0 0.0
larger_than Main app/Main.hs:13:36-48 291 1 0.0 0.0 0.0 0.0
lth Main app/Main.hs:17:1-39 292 1 0.0 0.0 0.0 0.0
main Main app/Main.hs:(12,1)-(14,48) 289 0 0.0 15.8 0.0 15.8
還不知道怎讓才能對enumFromTo生效:(
npm config set strict-ssl false
你自己隨便開一個 tab ,按 F12 ,然后輸入:
window.location.href = "/home.php?mod=spacecp&ac=myfocus&page="+1+"&mobile=2"
可以看到,并不會出現(xiàn)你說的情況。
不明白為什么會這樣,不過都做到這份上了,直接在外層console.log(arr)不就好了。
拋磚引玉。
async function getTitle(url) {
let response = await fetch(url);
let html = await response.text();
return html.match(/<title>([\s\S]+)<\/title>/i)[1];
}
(async function () {
for (let i = 0; i < 2; i++) {
let urls = `https://tc39.github.io/ecma262/`
let result = await getTitle(urls).then(function (title) {
console.log('22222', title, i)
return title
})
console.log(result,Date.now())
}
})()
不建議使用樹莓派,配置和速度跟常規(guī)服務(wù)器比還是太慢了。用戶做嵌入式或者硬件編程或者Iot可以嘗試一下。
樹莓派擴(kuò)展硬件挺麻煩的,很多東西是焊死在主板上的
我的一些方法:
belondplanid 字段在 model 里出現(xiàn)了兩次
貼一下你的 tb_Lesson model 代碼
以前使用 go to anything,輸入 sltl(sublimelinter toggle linter) 就可以切換,現(xiàn)在禁用相關(guān)的包就可以了。
同樣使用 go to anything(ctrl + shift + p),輸入 pcd(package control: disable package),禁用相關(guān)的校驗(yàn)包,pce(package control: enable package),啟用相關(guān)的校驗(yàn)包就可以了
不是很懂你的意思。integer不就是你定義的范型Integer嗎?
排查了3天,最后可算是把 這個問題解決了,最后還是有完完全全的刨析了一次,scrapy-redis的源碼才找到問題.排查這個,要從爬蟲運(yùn)行后,Redis中的隊(duì)列情況來入手
# 單頁面解析完成,開始構(gòu)建下一頁的數(shù)據(jù)
next_page_link = response.xpath('//div[@class="grid-8"]/div[@class="navigation margin-20"]/a[@class="next page-numbers"]/@href').extract_first()
if next_page_link is None or len(next_page_link) == 0:
log.logger.info('completed all page request')
else:
log.logger.info('will request next page and request url is %s'%next_page_link)
#問題出現(xiàn)這這里,每次只生成一個request,所以 redis隊(duì)列維護(hù)的也只有一個請求
yield Request(url=next_page_link)
if self.already_push_all_request is not True:
page_list_html_a = response.xpath('//div[@class="grid-8"]/div[@class="navigation margin-20"]/a[@class="page-numbers"]')
last_page_list_html_a = page_list_html_a[-1]
last_page_index = last_page_list_html_a.xpath('text()').extract_first()
print(type(last_page_index))
last_index_number = int(last_page_index)
print last_index_number
format_url = 'http://python.jobbole.com/all-posts/page/{0}/'
next_page_index = 2
while next_page_index <= last_index_number:
next_page_request_url = format_url.format(next_page_index)
print(' will lpush to redis and url is %s'%next_page_request_url)
yield Request(url=next_page_request_url)
next_page_index += 1
self.already_push_all_request = Truevar index= layedit.build('L_content', {
tool: ['face','code','image' ,'link', 'unlink', '|', 'left', 'center','right','yulan','strong','italic','underline']
}); //建立編輯器
$('button[type=submit]').click(function(){
//獲取編輯器的值
var content=layedit.getContent(index);
$.ajax({
url : action,
type : method || 'get',
data : data,
success(res)
{
cosole.log(res)
})需要確認(rèn)你的服務(wù)確實(shí)運(yùn)行著
ps -ef | grep redis
netstat -antp | grep 6379
你的java程序運(yùn)行在與redis在同一臺機(jī)器上?
你的網(wǎng)站根目錄下
var original = document.documentElement.clientHeight;
window.addEventListener("resize", function() {
var resizeHeight = document.documentElement.clientHeight;
if(resizeHeight != original) {
$('.footer').css('display', 'none');
} else {
$('.footer').css('display', 'block');
}
});import { AjaxPlugin } from 'vux'
AjaxPlugin.$http.defaults.baseURL ="https://ceshi.huobanys.cn/api";
AjaxPlugin.$http.defaults.timeout = 1000;
// AjaxPlugin.$http.defaults.headers = {'X-Custom-Header': 'foobar'}
Vue.use(AjaxPlugin)北大青鳥APTECH成立于1999年。依托北京大學(xué)優(yōu)質(zhì)雄厚的教育資源和背景,秉承“教育改變生活”的發(fā)展理念,致力于培養(yǎng)中國IT技能型緊缺人才,是大數(shù)據(jù)專業(yè)的國家
達(dá)內(nèi)教育集團(tuán)成立于2002年,是一家由留學(xué)海歸創(chuàng)辦的高端職業(yè)教育培訓(xùn)機(jī)構(gòu),是中國一站式人才培養(yǎng)平臺、一站式人才輸送平臺。2014年4月3日在美國成功上市,融資1
北大課工場是北京大學(xué)校辦產(chǎn)業(yè)為響應(yīng)國家深化產(chǎn)教融合/校企合作的政策,積極推進(jìn)“中國制造2025”,實(shí)現(xiàn)中華民族偉大復(fù)興的升級產(chǎn)業(yè)鏈。利用北京大學(xué)優(yōu)質(zhì)教育資源及背
博為峰,中國職業(yè)人才培訓(xùn)領(lǐng)域的先行者
曾工作于聯(lián)想擔(dān)任系統(tǒng)開發(fā)工程師,曾在博彥科技股份有限公司擔(dān)任項(xiàng)目經(jīng)理從事移動互聯(lián)網(wǎng)管理及研發(fā)工作,曾創(chuàng)辦藍(lán)懿科技有限責(zé)任公司從事總經(jīng)理職務(wù)負(fù)責(zé)iOS教學(xué)及管理工作。
浪潮集團(tuán)項(xiàng)目經(jīng)理。精通Java與.NET 技術(shù), 熟練的跨平臺面向?qū)ο箝_發(fā)經(jīng)驗(yàn),技術(shù)功底深厚。 授課風(fēng)格 授課風(fēng)格清新自然、條理清晰、主次分明、重點(diǎn)難點(diǎn)突出、引人入勝。
精通HTML5和CSS3;Javascript及主流js庫,具有快速界面開發(fā)的能力,對瀏覽器兼容性、前端性能優(yōu)化等有深入理解。精通網(wǎng)頁制作和網(wǎng)頁游戲開發(fā)。
具有10 年的Java 企業(yè)應(yīng)用開發(fā)經(jīng)驗(yàn)。曾經(jīng)歷任德國Software AG 技術(shù)顧問,美國Dachieve 系統(tǒng)架構(gòu)師,美國AngelEngineers Inc. 系統(tǒng)架構(gòu)師。