Open zhougy0717 opened 7 years ago
你好,看到你的文章里面有evernote,我想问问你这边hexo是不是能成功关联evernote,我之前弄了一段时间都是报错,所以先问问你的evernote配置是不是已经成功了。我这边是运行everblog build
就报错了,如果用上了,你的evernote token是国际版的Evernote还是国内版的印象笔记?
我现在可以正常使用。只要两个命令即可: everblog build hexo d everblog要最新版,因为evernote和印象笔记的API之前都更改过,所以我提交过code来适配。如果不是最新版则会出错。最新版最保险的办法使用git clone最新的everblog repo。我用的是印象笔记的token。两种token应该都可以使用。
文中也有提,注意.everblogrc的值。要与你的token匹配
@zhougy0717,可以问问你当前的node版本是多少么?
我换了三个操作系统都是出现相同的错误
(node:29637) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
/home/itgoyo/.nvm/versions/node/v8.1.2/lib/node_modules/everblog/node_modules/evernote/lib/thrift/transport/memBuffer.js:29
if (this.offset + len > this.buffer.length) throw Error('MemBuffer overrun');
^
Error: MemBuffer overrun
at MemBuffer.read (/home/itgoyo/.nvm/versions/node/v8.1.2/lib/node_modules/everblog/node_modules/evernote/lib/thrift/transport/memBuffer.js:29:55)
at BinaryProtocol.readMessageBegin (/home/itgoyo/.nvm/versions/node/v8.1.2/lib/node_modules/everblog/node_modules/evernote/lib/thrift/protocol/binaryProtocol.js:203:38)
at Thrift.Method.processResponse (/home/itgoyo/.nvm/versions/node/v8.1.2/lib/node_modules/everblog/node_modules/evernote/lib/thrift/thrift.js:184:27)
at Thrift.Method.<anonymous> (/home/itgoyo/.nvm/versions/node/v8.1.2/lib/node_modules/everblog/node_modules/evernote/lib/thrift/thrift.js:165:42)
at wrapTransport (/home/itgoyo/.nvm/versions/node/v8.1.2/lib/node_modules/everblog/node_modules/evernote/lib/thrift/protocol/binaryProtocol.js:48:20)
at IncomingMessage.<anonymous> (/home/itgoyo/.nvm/versions/node/v8.1.2/lib/node_modules/everblog/node_modules/evernote/lib/thrift/transport/binaryHttpTransport.js:82:27)
at emitNone (events.js:110:20)
at IncomingMessage.emit (events.js:207:7)
at endReadableNT (_stream_readable.js:1047:12)
at _combinedTickCallback (internal/process/next_tick.js:102:11)
这次是git clone everblog运行的也是这种错误,如果您方便的话可以发您的everblog(其他的不需要了,everblogrc也不用)给我么,我的邮箱地址:itgoyo@gmail.com
这个错误看起来和node版本没什么关系,不确定是everblog改坏了,还是你使用的问题。明天可以发你我的everblog文件,或者你也可以用git reset到我提交的最后一个版本试试
你好用了你github上面提交的版本我在everblog build的时候出现了一下错误
Error: Cannot find module 'co'
at Function.Module._resolveFilename (module.js:557:15)
at Function.Module._load (module.js:484:25)
at Module.require (module.js:606:17)
at require (internal/module.js:11:18)
at Object.<anonymous> (/usr/local/lib/node_modules/everblog/bin/everblog:8:12)
at Module._compile (module.js:662:30)
at Object.Module._extensions..js (module.js:673:10)
at Module.load (module.js:575:32)
at tryModuleLoad (module.js:515:12)
at Function.Module._load (module.js:507:3)
这样子有什么法子解决这个问题么?
里面的代码是这样子的
#!/usr/bin/env node
'use strict';
const fs = require('fs')
const path = require('path')
const co = require('co')
const home = require('home')()
const _ = require('lodash')
const open = require('open')
const chalk = require('chalk')
const yaml = require('js-yaml')
const program = require('commander')
const moment = require('moment')
const utils = require('../lib/utils')
const pkg = require('../package.json')
const Everblog = require('../lib/everblog')
const configPath = path.join(home, '.everblogrc')
const log = str => {
console.log()
console.log(' ' + chalk.green(str).split('\n').join('\n '))
console.log()
};
是缺了什么lib或者环境么?
是的 co就是一个库,用npm装
On Wed, Mar 7, 2018 at 9:49 AM, 柯基 notifications@github.com wrote:
里面的代码是这样子的
!/usr/bin/env node
'use strict';
const fs = require('fs') const path = require('path')
const co = require('co') const home = require('home')() const _ = require('lodash') const open = require('open') const chalk = require('chalk') const yaml = require('js-yaml') const program = require('commander') const moment = require('moment')
const utils = require('../lib/utils') const pkg = require('../package.json') const Everblog = require('../lib/everblog')
const configPath = path.join(home, '.everblogrc') const log = str => { console.log() console.log(' ' + chalk.green(str).split('\n').join('\n ')) console.log() };
是缺了什么lib或者环境么?
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/zhougy0717/zhougy0717.github.io/issues/1#issuecomment-370994047, or mute the thread https://github.com/notifications/unsubscribe-auth/AFaStpG924dZ6eb3yyrt480bkhhYy5D8ks5tbzyrgaJpZM4OPMhW .
换window把所有的库都补安装完了
TypeError: Cannot read property 'noteStoreUrl' of undefined
at C:\Users\admin\AppData\Roaming\npm\node_modules\everblog\bin\everblog:94:26
at Generator.next (<anonymous>)
at onFulfilled (C:\Users\admin\node_modules\co\index.js:65:19)
at C:\Users\admin\node_modules\co\index.js:54:5
at new Promise (<anonymous>)
at co (C:\Users\admin\node_modules\co\index.js:50:10)
at Command.buildBlog (C:\Users\admin\AppData\Roaming\npm\node_modules\everblog\bin\everblog:92:10)
at Command.listener (C:\Users\admin\node_modules\commander\index.js:315:8)
at emitTwo (events.js:126:13)
at Command.emit (events.js:214:7)
at Command.parseArgs (C:\Users\admin\node_modules\commander\index.js:651:12)
at Command.parse (C:\Users\admin\node_modules\commander\index.js:474:21)
at Object.<anonymous> (C:\Users\admin\AppData\Roaming\npm\node_modules\everblog\bin\everblog:52:9)
at Module._compile (module.js:652:30)
at Object.Module._extensions..js (module.js:663:10)
at Module.load (module.js:565:32)
请问一下这样子还可以抢救一下么?:smile
我看一下,放心,我会帮你搞定的。难得遇到一个同样用evernote写blog的。
On Wed, Mar 7, 2018 at 12:35 PM, 柯基 notifications@github.com wrote:
换window把所有的库都补安装完了
TypeError: Cannot read property 'noteStoreUrl' of undefined at C:\Users\admin\AppData\Roaming\npm\node_modules\everblog\bin\everblog:94:26 at Generator.next (
) at onFulfilled (C:\Users\admin\node_modules\co\index.js:65:19) at C:\Users\admin\node_modules\co\index.js:54:5 at new Promise ( ) at co (C:\Users\admin\node_modules\co\index.js:50:10) at Command.buildBlog (C:\Users\admin\AppData\Roaming\npm\node_modules\everblog\bin\everblog:92:10) at Command.listener (C:\Users\admin\node_modules\commander\index.js:315:8) at emitTwo (events.js:126:13) at Command.emit (events.js:214:7) at Command.parseArgs (C:\Users\admin\node_modules\commander\index.js:651:12) at Command.parse (C:\Users\admin\node_modules\commander\index.js:474:21) at Object. (C:\Users\admin\AppData\Roaming\npm\node_modules\everblog\bin\everblog:52:9) at Module._compile (module.js:652:30) at Object.Module._extensions..js (module.js:663:10) at Module.load (module.js:565:32) 请问一下这样子还可以抢救一下么?:smile
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/zhougy0717/zhougy0717.github.io/issues/1#issuecomment-371020024, or mute the thread https://github.com/notifications/unsubscribe-auth/AFaSthrmfvukWOMnhQQ4qzJ2nxyvX-ANks5tb2OTgaJpZM4OPMhW .
看起来在实例化Evernote.client的时候失败了 我查了一下,我目前evernote库的版本是evernote@1.25.82 目前npm上最新的是 Evernote API version 2.0.0-beta,看起来API也有所更新。你可以尝试删除原先的evernte,用我这个版本应当没有问题。
On Wed, Mar 7, 2018 at 12:52 PM, Ben zhougy0717@gmail.com wrote:
我看一下,放心,我会帮你搞定的。难得遇到一个同样用evernote写blog的。
On Wed, Mar 7, 2018 at 12:35 PM, 柯基 notifications@github.com wrote:
换window把所有的库都补安装完了
TypeError: Cannot read property 'noteStoreUrl' of undefined at C:\Users\admin\AppData\Roaming\npm\node_modules\everblog\bin\everblog:94:26 at Generator.next (
) at onFulfilled (C:\Users\admin\node_modules\co\index.js:65:19) at C:\Users\admin\node_modules\co\index.js:54:5 at new Promise ( ) at co (C:\Users\admin\node_modules\co\index.js:50:10) at Command.buildBlog (C:\Users\admin\AppData\Roaming\npm\node_modules\everblog\bin\everblog:92:10) at Command.listener (C:\Users\admin\node_modules\commander\index.js:315:8) at emitTwo (events.js:126:13) at Command.emit (events.js:214:7) at Command.parseArgs (C:\Users\admin\node_modules\commander\index.js:651:12) at Command.parse (C:\Users\admin\node_modules\commander\index.js:474:21) at Object. (C:\Users\admin\AppData\Roaming\npm\node_modules\everblog\bin\everblog:52:9) at Module._compile (module.js:652:30) at Object.Module._extensions..js (module.js:663:10) at Module.load (module.js:565:32) 请问一下这样子还可以抢救一下么?:smile
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/zhougy0717/zhougy0717.github.io/issues/1#issuecomment-371020024, or mute the thread https://github.com/notifications/unsubscribe-auth/AFaSthrmfvukWOMnhQQ4qzJ2nxyvX-ANks5tb2OTgaJpZM4OPMhW .
啊,那先谢过啦。对了哥哥已经换成和你一样的版本,刚刚的问题已经过了,现在是配置项的问题
Error: If you are yinxiang user, please specify servicHost in your ~/.everblogrc.
at C:\Users\admin\AppData\Roaming\npm\node_modules\everblog\bin\everblog:95:13
at Generator.next (<anonymous>)
at onFulfilled (C:\Users\admin\node_modules\co\index.js:65:19)
at C:\Users\admin\node_modules\co\index.js:54:5
at new Promise (<anonymous>)
at co (C:\Users\admin\node_modules\co\index.js:50:10)
at Command.buildBlog (C:\Users\admin\AppData\Roaming\npm\node_modules\everblog\bin\everblog:92:10)
at Command.listener (C:\Users\admin\node_modules\commander\index.js:315:8)
at emitTwo (events.js:126:13)
at Command.emit (events.js:214:7)
at Command.parseArgs (C:\Users\admin\node_modules\commander\index.js:651:12)
at Command.parse (C:\Users\admin\node_modules\commander\index.js:474:21)
at Object.<anonymous> (C:\Users\admin\AppData\Roaming\npm\node_modules\everblog\bin\everblog:52:9)
at Module._compile (module.js:652:30)
at Object.Module._extensions..js (module.js:663:10)
at Module.load (module.js:565:32)
代码
return co(function* () {
const everblog = new Everblog(config)
if (everblog._client.noteStoreUrl.indexOf(everblog._client.serviceHost) == -1){
throw new Error('If you are yinxiang user, please specify servicHost in your ~/.everblogrc.')
}
const notes = yield everblog.findNotes()
const webApiUrlPrefix = yield everblog.getWebApiUrlPrefix()
const data = utils.formatNotes(notes, webApiUrlPrefix)
data.noteStore = everblog._noteStore
return yield buildProcessor(data)
}).then(() => {
log('build finished')
let newConfig = _.cloneDeep(config)
newConfig.lastBuild = moment().format('YYYY-MM-DD HH:mm:ss')
fs.writeFileSync(configPath, yaml.safeDump(newConfig))
}).catch(e => {
error(e.stack || e)
return Promise.reject()
})
}
我原先的.everblogrc
,只有以下几个东西
token: xxx,
noteStoreUrl: xxx,
notebook: myblog
everblog._client.serviceHost,所以这个serviceHost,错误是会是什么原因呢
不好意思,打字太快了,哥哥->刚刚。:smile
如果用的是印象笔记账号(不是evernote国际版),要在~/.everblogrc标明serviceHost: app.yinxiang.com 。
Error: Bad response content type from "https://app.yinxiang.com/shard/s29/notestore,": text/html;charset=UTF-8
at maybeWrapAsError (C:\Users\admin\node_modules\bluebird\js\release\util.js:61:12)
at C:\Users\admin\node_modules\bluebird\js\release\nodeback.js:38:50
at IncomingMessage.<anonymous> (C:\Users\admin\node_modules\evernote\evernote-sdk-js\thrift\lib\node\thrift-node-binary.js:122:11)
at emitNone (events.js:111:20)
at IncomingMessage.emit (events.js:208:7)
at endReadableNT (_stream_readable.js:1064:12)
at _combinedTickCallback (internal/process/next_tick.js:138:11)
at process._tickCallback (internal/process/next_tick.js:180:9)
过了之后,又出现了这个。
我的bluebird@3.5.1
,是刚刚npm install bluebird 安装的,因为编译过程中他说缺失这个库,所以错误是这个类,是不是换成和你的一样版本就可以啦?
我的 bluebird是3.5.0的,我觉得应该不是这个原因。怀疑还是evernote调用SDK的时候出问题。你的noteStoreUrl正确吗,这个是在获得token的时候一并或得的
嗯,保证是对了的,我核对了一下印象笔记的,后面怕错误,我换成国际版本的,把serviceHost去掉,换了国际的noteStoreURl和token,也是出现了同样一个问题
Error: Bad response content type from "https://www.evernote.com/shard/s600/notestore,": text/html;charset=UTF-8
at maybeWrapAsError (C:\Users\admin\node_modules\bluebird\js\release\util.js:61:12)
at C:\Users\admin\node_modules\bluebird\js\release\nodeback.js:38:50
at IncomingMessage.<anonymous> (C:\Users\admin\node_modules\evernote\evernote-sdk-js\thrift\lib\node\thrift-node-binary.js:122:11)
at emitNone (events.js:111:20)
at IncomingMessage.emit (events.js:208:7)
at endReadableNT (_stream_readable.js:1064:12)
at _combinedTickCallback (internal/process/next_tick.js:138:11)
at process._tickCallback (internal/process/next_tick.js:180:9)
怀疑还是Evernote更新API导致的,我要回去试一下才知道,目前公司有代理,无法使用everblog
嗯、好的,方便的时候再看一下,谢谢啦
C:\Users\admin\node_modules\evernote\evernote-sdk-js\thrift\lib\node\thrift-node-binary.js
报错的代码段
if (res.headers['content-type'] != 'application/x-thrift') {
callback('Bad response content type from "' + self.url + '": ' +
res.headers['content-type']);
return;
}
这一段代码,不需要去看,因为是Evernote库里面的,我们不需要知道Evernote里面是怎么工作的,我们只要知道我们给Evernote库的输入输出是正确的就可以了。 我刚才试了一下,我的是可以的。你可以看一下你前面报Bad response,对应的everblog的代码在哪里吗?这样便于我们把问题缩小。
c:\Users\zhougua\Projects\HexoBlog\myblog>everblog build C++函数中的按引用调用与返回 运算符重载与拷贝构造函数
build finished
On Wed, Mar 7, 2018 at 5:52 PM, 柯基 notifications@github.com wrote:
C:\Users\admin\node_modules\evernote\evernote-sdk-js\ thrift\lib\node\thrift-node-binary.js 报错的代码段
if (res.headers['content-type'] != 'application/x-thrift') { callback('Bad response content type from "' + self.url + '": ' + res.headers['content-type']); return; }
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/zhougy0717/zhougy0717.github.io/issues/1#issuecomment-371084503, or mute the thread https://github.com/notifications/unsubscribe-auth/AFaStp39aMFdRZ2KEvEky_INFDxrYveXks5tb63tgaJpZM4OPMhW .
我刚刚根据你提供的帮助尝试看log,后面把.everblogrc文件中的逗号去掉就可以编译过了,发现印象笔记上面的_config.yml
的文本内容已经可以写入hexo中的_config.yml
然后又出现新的错误
--1--[object Object]--
--2--undefined
TypeError: Cannot read property 'forEach' of undefined
at module.exports (D:\Blog\node_modules\everblog-adaptor-hexo\index.js:19:14)
at C:\Users\admin\AppData\Roaming\npm\node_modules\everblog\bin\everblog:109:18
at Generator.next (<anonymous>)
at onFulfilled (C:\Users\admin\node_modules\co\index.js:65:19)
at <anonymous>
at process._tickCallback (internal/process/next_tick.js:188:7)
对应的异常代码是everblog-adapter-hexo
此处中
module.exports = async function (data, cleanMode = false) {
console.log('--1--'+data+"--")
const configPath = process.cwd() + '/_config.yml'
fse.outputFileSync(configPath, yaml.safeDump(data.$blog))
const postsPath = process.cwd() + '/source/_posts/'
fse.emptyDirSync(postsPath)
console.log('--2--'+data.notes)
data.notes.forEach(note => {
const defaultFrontMatter = {
title: note.title,
date: formatDate(note.created),
updated: formatDate(note.updated),
tags: note.tags
}
debug(`title: ${note.title}, content(enml): ${note.content}`)
let contentMarkdown = entities.decodeHTML(enml2text(note.content))
let data = fm.parse(contentMarkdown)
_.merge(data.attributes, defaultFrontMatter)
contentMarkdown = fm.stringify(data)
const filename = postsPath + note.title + '.md'
fse.outputFileSync(filename, contentMarkdown)
debug(`title: ${filename}, content(markdown): ${JSON.stringify(contentMarkdown)}`)
})
debug('build success!')
}
我没用这个adapter 我用的是我自己的everblog-adaptor-hexo-html,npm上也可以安装 这个要看你自己选择了,作者的这个adapter只能导出纯文本。我的adapter是用来导出html,Hexo直接提交html生成post。我不确定这个adapter期望的输入是什么,我已经不太记得了
On Thu, Mar 8, 2018 at 10:07 AM, 柯基 notifications@github.com wrote:
我刚刚根据你提供的帮助尝试看log,后面把.everblogrc文件中的逗号去掉就可以编译过了,发现印象笔记上面的_config.yml 的文本内容已经可以写入hexo中的_config.yml 然后又出现新的错误
--1--[object Object]-- --2--undefined
TypeError: Cannot read property 'forEach' of undefined at module.exports (D:\Blog\node_modules\everblog-adaptor-hexo\index.js:19:14) at C:\Users\admin\AppData\Roaming\npm\node_modules\everblog\bin\everblog:109:18 at Generator.next (
) at onFulfilled (C:\Users\admin\node_modules\co\index.js:65:19) at at process._tickCallback (internal/process/next_tick.js:188:7) 对应的异常代码是everblog-adapter-hexo此处中
module.exports = async function (data, cleanMode = false) { console.log('--1--'+data+"--") const configPath = process.cwd() + '/_config.yml' fse.outputFileSync(configPath, yaml.safeDump(data.$blog))
const postsPath = process.cwd() + '/source/_posts/' fse.emptyDirSync(postsPath) console.log('--2--'+data.notes)
data.notes.forEach(note => { const defaultFrontMatter = { title: note.title, date: formatDate(note.created), updated: formatDate(note.updated), tags: note.tags } debug(
title: ${note.title}, content(enml): ${note.content}
)let contentMarkdown = entities.decodeHTML(enml2text(note.content)) let data = fm.parse(contentMarkdown) _.merge(data.attributes, defaultFrontMatter) contentMarkdown = fm.stringify(data) const filename = postsPath + note.title + '.md' fse.outputFileSync(filename, contentMarkdown) debug(`title: ${filename}, content(markdown): ${JSON.stringify(contentMarkdown)}`)
}) debug('build success!') }
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/zhougy0717/zhougy0717.github.io/issues/1#issuecomment-371353648, or mute the thread https://github.com/notifications/unsubscribe-auth/AFaSthLfpV0ACGA7JuRMCC0iUMeHgUSSks5tcJJagaJpZM4OPMhW .
嗯好的,当初我查你项目中的everblog里面确实是everblog-adaptor-hexo-html
,我先换成everblog-adaptor-hexo-html,试试看是什么效果
非常感谢你的帮助,现在已经顺利编译成功并且实现了想要的效果,这是一个很好的框架,只是了解的人并不是很多,希望以后这个项目能涌进更多像你和nswbmw这样的作者还有更多的使用者。最后再次感谢你花这么多时间解决我的疑问。
不客气,我也觉得很好,多把他发扬光大吧,让更多的人知道。
2018-03-08 10:30 GMT+08:00 柯基 notifications@github.com:
非常感谢你的帮助,现在已经顺利编译成功并且实现了想要的效果,这是一个很好的框架,只是了解的人并不是很多, 希望以后这个项目能涌进更多像你和nswbmw这样的作者还有更多的使用者。最后再次感谢你花这么多时间解决我的疑问。
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/zhougy0717/zhougy0717.github.io/issues/1#issuecomment-371357541, or mute the thread https://github.com/notifications/unsubscribe-auth/AFaStuwrzDF44cCnQ464_ufH900QQWllks5tcJeqgaJpZM4OPMhW .
嗯,一定会的。
我突然想到一个问题,就是文章中的tag标签页怎么办,这个能做到不同文章生成相应的tag么,如果可以的话要在哪里操作呢?
title: Deep Learning (1) - Neural Network with 1 Hidden Layer date: '2017/12/15 18:03:02' updated: '2017/12/18 14:38:31' tags:
凭我的一点记忆,可能是通过adapter做的。可能记错,仅供参考
On Thu, Mar 8, 2018 at 3:29 PM, 柯基 notifications@github.com wrote:
我突然想到一个问题,就是文章中的tag标签页怎么办,这个能做到不同文章生成相应的tag么,如果可以的话要在哪里操作呢?
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/zhougy0717/zhougy0717.github.io/issues/1#issuecomment-371403694, or mute the thread https://github.com/notifications/unsubscribe-auth/AFaStnCZsKDB8IamgxHeWLCNYW-9Y_Ibks5tcN3PgaJpZM4OPMhW .
之前的文章如果是.md格式的话,我也是会和你上面一样先写好类似的tags,但是如果是使用everblog生成的页面,这个也能自动添加tag么?我刚刚设置在印象笔记中文章中多写一行tags:xxx,好好像没什么用,还有印象笔记中的标签也填写了东西,但是没有在生成tag页面中没有东西。 你blog的是用.md写的还是说一直都是用everblog生成的呀,还是两者都有,如果都有的话,你使用everblog生成的时候,要怎么做呢,是不是在每篇印象笔记里在写一遍
---
title: Deep Learning (1) - Neural Network with 1 Hidden Layer
date: '2017/12/15 18:03:02'
updated: '2017/12/18 14:38:31' tags: - deep learning - neural network
---
这个adapter自动添加的 我写evernote笔记用的是马克飞象。在飞象里写Markdown,然后飞象会渲染成enml并存到evernote里。adapter在读到html字串后,添加头部存到html文件里面。后面hexo在generate的时候就会生成相应的tag了。
2018-03-08 16:23 GMT+08:00 柯基 notifications@github.com:
之前的文章如果是.md http://xn--9iqp1hfzhwnnbyat6de67beyh.md格式的话, 我也是会和你上面一样先写好类似的tags,但是如果是使用everblog生成的页面,这个也能自动添加tag么? 我刚刚设置在印象笔记中文章中多写一行tags:xxx,好好像没什么用,还有印象笔记中的标签也填写了东西,但是没有在生成tag页面中没有东西。
https://camo.githubusercontent.com/7053f39870faa4e5d17b540a060b985011b4adb3/687474703a2f2f6f6d76626c343669332e626b742e636c6f7564646e2e636f6d2f31382d332d382f32313836303833312e6a7067 你blog的是用.md http://xn--0iv464a13a.md写的还是说一直都是用everblog生 成的呀,还是两者都有,如果都有的话,你使用everblog生成的时候,要怎么做呢,是不是在每篇印象笔记里在写一遍
title: Deep Learning (1) - Neural Network with 1 Hidden Layer date: '2017/12/15 18:03:02' updated: '2017/12/18 14:38:31' tags: - deep learning - neural network
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/zhougy0717/zhougy0717.github.io/issues/1#issuecomment-371414698, or mute the thread https://github.com/notifications/unsubscribe-auth/AFaStuRfHwQEeYahRBIR7NWGtDzD-B51ks5tcOqegaJpZM4OPMhW .
我在使用网页版马克飞象的时候发现,每次文章前面都会多出一句代码,一开始我以为是缓存的问题,后面比较了一下剪辑到印象笔记的笔记和,马克飞象写的,才发现只有马克飞象写的才会有这种情况。 你会出现这种情况么?你的马克飞象是使用软件版的还是网页版的呀。
看了你好几篇文章,都见到有小红色的棋子,说明都是用马克飞象写的笔记,
<?xml version=“1.0” encoding=“utf-8”?>
刚好被截取掉前10个字符,但我尝试去搜索<?xml version=“1.0” encoding=“utf-8”?>
,但是没有搜出来,你觉得可能的原因出在哪里呢?
现在已经解决了谢谢,是因为enml2html.js
文件中的代码错了
module.exports = function enml2html(enml, resources, webApiUrlPrefix, noteKey) {
let start = enml.indexOf('enml2.dtd">') + 11;
enml = enml.slice(start); // rm <?xml version="1.0"...enml2.dtd">\n
let $ = cheerio.load(enml);
原来代码是+11
,后面改成+1
,现在已经显示正常了。非常感谢
抱歉,又发现一个小bug,我的马克飞象文章中它会自动把题目在打出来一遍好难看,是根据文章名字打出来的,如果没给名字就会显示Untitled
这样子要怎么做才能把多余的题目给去掉呢?
不明白你说的意思,可以配图吗
hexo文章中,会自动生成标题一,和标题二,但是都是一样的东西,我只想让它生成一个标题。不然显得有些难看
这个我记得我应该已经fix掉了。原因是,马克飞象用一级标题作为笔记的title,并且笔记内容中也有这个一级标题,所以在生成hexo post的时候,我会删掉一个一级标题。目前我的博客显示是正常的。目前有一个一只问题就是用马克飞象写的公式,在hexo显示比例不太合适。只能凑合看。我也没时间去研究了。
On Sat, Mar 10, 2018 at 7:35 AM, 柯基 notifications@github.com wrote:
https://camo.githubusercontent.com/64f1ed20cff2d5e5f5b450877b46ee7bedb35b03/687474703a2f2f6f6d76626c343669332e626b742e636c6f7564646e2e636f6d2f31382d332d31302f33373238393936372e6a7067 hexo文章中,会自动生成标题一,和标题二,但是都是一样的东西,我只想让它生成一个标题。不然显得有些难看
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/zhougy0717/zhougy0717.github.io/issues/1#issuecomment-371975678, or mute the thread https://github.com/notifications/unsubscribe-auth/AFaStpIjpV-n8l7YDZ8C3xKI8B2wGktvks5tcxHbgaJpZM4OPMhW .
嗯,好的,谢谢你的解答,现在everblog基本能满足我的需求了。
您好,我在执行everblog build时,报以下错误,能帮忙看看是什么问题吗?谢谢
你用的是哪个版本的everblog和哪个adapter以及版本? 最新的everblog和我的html adapter不兼容,我还没时间去fix
On Tue, Sep 25, 2018 at 2:19 PM Bored-AnnoYing notifications@github.com wrote:
您好,我在执行everblog build时,报以下错误,能帮忙看看是什么问题吗?谢谢
[image: image] https://user-images.githubusercontent.com/18257520/45996204-ea81bd80-c0cd-11e8-9ed0-53ef5dd9af35.png
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/zhougy0717/zhougy0717.github.io/issues/1#issuecomment-424220428, or mute the thread https://github.com/notifications/unsubscribe-auth/AFaSttOPKlfUYvn0t9BSpaJpetRHVJdZks5uecrhgaJpZM4OPMhW .
不好意思,是我自身的问题。在添加的index.js里面,我把:
给带上了双引号,写成了:
把双引号去掉之后就构建成功了。。。
嗯,好的,成功就好
On Tue, Sep 25, 2018 at 3:15 PM Bored-AnnoYing notifications@github.com wrote:
不好意思,是我自身的问题。在添加的index.js里面,我把:
[image: image] https://user-images.githubusercontent.com/18257520/45998300-fa50d000-c0d4-11e8-8839-20daf290980f.png
给带上了双引号,写成了:
[image: image] https://user-images.githubusercontent.com/18257520/45998334-13f21780-c0d5-11e8-9085-baabcb5b785a.png
把双引号去掉之后就构建成功了。。。
[image: image] https://user-images.githubusercontent.com/18257520/45998564-d04bdd80-c0d5-11e8-9444-bbcfc7751cd7.png
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/zhougy0717/zhougy0717.github.io/issues/1#issuecomment-424232851, or mute the thread https://github.com/notifications/unsubscribe-auth/AFaStilj_J5aBxncJ5g3yM_4Uy5fkHHoks5uedgWgaJpZM4OPMhW .
请问一下,everblog build 成功了之后,hexo s 就会看到evernote拉过来的笔记吗?
要先hexo g来生成post,再用hexo s就能在localhost上看到了。再用hexo d部署
额 我之前就是这样操作的,但是并没有生成文件,hexo g 打印的日志也是:
INFO Files loaded in 2.18 s
INFO 0 files generated in 767 ms
很困惑,因为我不是前端的,只能大致看懂代码逻辑。看了下everblog.js 没有看到有类似生成文件的操作。只有几个读取的操作。实在是好奇,成功的是啥样的·····求解惑 谢谢
生成文件在adapter里,everblog提供的框架从印象笔记导出笔记数据,再由各种adapter渲染成post
哦 好像有点懂了 我再试试 谢谢了
https://zhougy0717.github.io/2017/07/03/%E5%9C%A8GitHub%E4%B8%8A%E7%94%A8Evernote+Hexo%E6%90%AD%E5%BB%BA%E4%B8%AA%E4%BA%BA%E9%9D%99%E6%80%81%E5%8D%9A%E5%AE%A2/