hexo d部署报错fatal: unable to access... OpenSSL SSL_connect: SSL_ERROR_SYSCALL in connection to github.com:443. Error: Spawn failed

图片说明

问题在弄网页写latex时就出现过,以为是找了个错误教程导致,今天重新把之前的被封复制粘贴过来还是报错,不懂问题出在哪,网上找了一些方法,或者是与自己不同,或者尝试了没用。求大佬出手相救,感激不尽。

1个回答

weixin_44022013
weixin_44022013 谢谢大佬,采用这种方法解决了。输入命令:env GIT_SSL_NO_VERIFY=true hexo d
7 个月之前 回复
Csdn user default icon
上传中...
上传图片
插入图片
抄袭、复制答案,以达到刷声望分或其他目的的行为,在CSDN问答是严格禁止的,一经发现立刻封号。是时候展现真正的技术了!
其他相关推荐
关于git使用的时候出现fatal-unable-to-access-

我在配置GIT的时候,前面都配置好了,远程仓库也配置好了,但是想上传东西的时候却出现了这个 ![图片说明](https://img-ask.csdn.net/upload/201608/10/1470795330_27053.png) 就是任何有关的操作都出现这个,希望能给我解答一下 谢谢

克隆GitHub项目时发生SSL证书错误

操作系统:OS X 10.11.6使用了ss代理, 完整的debug信息如下, ``` TreasuredeMacBook-Pro:~ treasure$ git clone -c http.proxy=socks5://127.0.0.1:1080 https://github.com/iissnan/hexo-theme-next.git themes/next Cloning into 'themes/next'... * Couldn't find host github.com in the .netrc file; using defaults * Trying 127.0.0.1... * 203 * 208 * 39 * 99 * Connected to 127.0.0.1 (127.0.0.1) port 1080 (#0) * SSL certificate problem: Invalid certificate chain * Closing connection 0 fatal: unable to access 'https://github.com/iissnan/hexo-theme-next.git/': SSL certificate problem: Invalid certificate chain ```

hexo+github搭建博客时hexo init 遇到的问题

执行命令hexo init后出现fatal ![图片说明](https://img-ask.csdn.net/upload/201707/22/1500711129_605324.png) 为什么会出现这个错误,怎么解决?

将HEXO部署到Github中出现问题

#输入的命令 $ hexo g #主要报错信息 FATAL can not read a block mapping entry; a multiline key may not be an implicit key at line 83, column 9: branch: master ^ YAMLException: can not read a block mapping entry; a multiline key may not be an implicit key at line 83, column 9: branch: master ^ #其他报错内容 at generateError (G:\my_hexo\node_modules\js-yaml\lib\js-yaml\loader.js:167:10) at throwError (G:\my_hexo\node_modules\js-yaml\lib\js-yaml\loader.js:173:9) at readBlockMapping (G:\my_hexo\node_modules\js-yaml\lib\js-yaml\loader.js:1073:9) at composeNode (G:\my_hexo\node_modules\js-yaml\lib\js-yaml\loader.js:1359:12) at readBlockMapping (G:\my_hexo\node_modules\js-yaml\lib\js-yaml\loader.js:1089:11) at composeNode (G:\my_hexo\node_modules\js-yaml\lib\js-yaml\loader.js:1359:12) at readDocument (G:\my_hexo\node_modules\js-yaml\lib\js-yaml\loader.js:1519:3) at loadDocuments (G:\my_hexo\node_modules\js-yaml\lib\js-yaml\loader.js:1575:5) at Object.load (G:\my_hexo\node_modules\js-yaml\lib\js-yaml\loader.js:1596:19) at Hexo.yamlHelper (G:\my_hexo\node_modules\hexo\lib\plugins\renderer\yaml.js:7:15) at Hexo.tryCatcher (G:\my_hexo\node_modules\bluebird\js\release\util.js:16:23) at Hexo.<anonymous> (G:\my_hexo\node_modules\bluebird\js\release\method.js:15:34) at Promise.then.text (G:\my_hexo\node_modules\hexo\lib\hexo\render.js:60:20) at tryCatcher (G:\my_hexo\node_modules\bluebird\js\release\util.js:16:23) at Promise._settlePromiseFromHandler (G:\my_hexo\node_modules\bluebird\js\release\promise.js:517:31) at Promise._settlePromise (G:\my_hexo\node_modules\bluebird\js\release\promise.js:574:18) at Promise._settlePromise0 (G:\my_hexo\node_modules\bluebird\js\release\promise.js:619:10) at Promise._settlePromises (G:\my_hexo\node_modules\bluebird\js\release\promise.js:699:18) at _drainQueueStep (G:\my_hexo\node_modules\bluebird\js\release\async.js:138:12) at _drainQueue (G:\my_hexo\node_modules\bluebird\js\release\async.js:131:9) at Async._drainQueues (G:\my_hexo\node_modules\bluebird\js\release\async.js:147:5) at Immediate.Async.drainQueues [as _onImmediate] (G:\my_hexo\node_modules\bluebird\js\release\async.js:17:14)

hexo在本地可以显式,但是部署不到在github上面

1,按着教程做,输入http://localhost:4000,原本的图片是这样的, ![图片说明](https://img-ask.csdn.net/upload/201610/11/1476179433_893849.png) ========== 2,然后想换一个界面,然后star了网上的,只是修改 ``` Extensions Plugins: https://hexo.io/plugins/ Themes: https://hexo.io/themes/ theme: yilia //原来是landscape——修改的 ``` 然后图片变成这样 ![图片说明](https://img-ask.csdn.net/upload/201610/11/1476179634_654798.png) ===== 3,然后就想在github上面部署 操作是下面的 ``` Extensions Plugins: https://hexo.io/plugins/ Themes: https://hexo.io/themes/ theme: yilia //原来是landscape Deployment Docs: https://hexo.io/docs/deployment.html deploy: type: git repository: https://github.com/qinsy/qinsy.github.io.git //l branch: master ``` 然后hexo deploy, 但是报错了。 unable to access 'https://github.com/qinsy/qinsy.github.io.git---- ![图片说明](https://img-ask.csdn.net/upload/201610/11/1476179766_685979.png) ===== 访问github报404错。为什么错呢?

hexo d时显示unable to index file

RT ![](http://img.027cgb.com/609450/%E5%9B%BE%E7%89%87/%E6%8D%95%E8%8E%B7.JPG)

Android小白,请各位大佬帮忙看看什么问题,一个关于摄氏华氏转换的小小小程序

做一个摄氏华氏转换的时候,在模拟器上运行有这样的问题 java程序 public class MainActivity extends ActionBarActivity { protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); } public void button1_click(View view){ int c; double f; EditText txtc=(EditText) findViewById(R.id.txtc); EditText txtf=(EditText) findViewById(R.id.txtf); c=Integer.parseInt(txtc.getText().toString()); f=(9.0*c)/5.0+32.0; txtf.setText(String.valueOf(f)); } } xml <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_height="match_parent" android:paddingBottom="@dimen/activity_vertical_margin" android:paddingLeft="@dimen/activity_horizontal_margin" android:paddingRight="@dimen/activity_horizontal_margin" android:paddingTop="@dimen/activity_vertical_margin" tools:context="com.example.ftoc.MainActivity" > <TableRow > <TextView android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="@string/c" /> <TextView android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="@string/equals"/> <TextView android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="@string/f" /> </TableRow> <TableRow > <EditText android:id="@+id/txtc" android:layout_width="100dp" android:layout_height="wrap_content" android:inputType="number"/> <Button android:id="@+id/button1" android:text="@string/shift" android:layout_width="wrap_content" android:layout_height="wrap_content" android:onClick="button1_Click"/> <EditText android:id="@+id/txtf" android:layout_width="100dp" android:layout_height="wrap_content" android:inputType="numberDecimal"/> </TableRow> </RelativeLayout> log猫 10-04 03:31:06.777: E/AndroidRuntime(913): at android.support.v7.app.ActionBarActivityDelegateBase.setContentView(ActionBarActivityDelegateBase.java:228) 10-04 03:31:06.777: E/AndroidRuntime(913): at android.support.v7.app.ActionBarActivity.setContentView(ActionBarActivity.java:102) 10-04 03:31:06.777: E/AndroidRuntime(913): at com.example.ftoc.MainActivity.onCreate(MainActivity.java:16) 10-04 03:31:06.777: E/AndroidRuntime(913): at android.app.Activity.performCreate(Activity.java:5933) 10-04 03:31:06.777: E/AndroidRuntime(913): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1105) 10-04 03:31:06.777: E/AndroidRuntime(913): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2251) 10-04 03:31:06.777: E/AndroidRuntime(913): ... 10 more 10-04 03:31:10.772: I/Process(913): Sending signal. PID: 913 SIG: 9 10-04 04:06:59.931: D/AndroidRuntime(1228): Shutting down VM 10-04 04:06:59.936: E/AndroidRuntime(1228): FATAL EXCEPTION: main 10-04 04:06:59.936: E/AndroidRuntime(1228): Process: com.example.ftoc, PID: 1228 10-04 04:06:59.936: E/AndroidRuntime(1228): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.example.ftoc/com.example.ftoc.MainActivity}: java.lang.RuntimeException: Binary XML file line #10: You must supply a layout_width attribute. 10-04 04:06:59.936: E/AndroidRuntime(1228): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2298) 10-04 04:06:59.936: E/AndroidRuntime(1228): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2360) 10-04 04:06:59.936: E/AndroidRuntime(1228): at android.app.ActivityThread.access$800(ActivityThread.java:144) 10-04 04:06:59.936: E/AndroidRuntime(1228): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1278) 10-04 04:06:59.936: E/AndroidRuntime(1228): at android.os.Handler.dispatchMessage(Handler.java:102) 10-04 04:06:59.936: E/AndroidRuntime(1228): at android.os.Looper.loop(Looper.java:135) 10-04 04:06:59.936: E/AndroidRuntime(1228): at android.app.ActivityThread.main(ActivityThread.java:5221) 10-04 04:06:59.936: E/AndroidRuntime(1228): at java.lang.reflect.Method.invoke(Native Method) 10-04 04:06:59.936: E/AndroidRuntime(1228): at java.lang.reflect.Method.invoke(Method.java:372) 10-04 04:06:59.936: E/AndroidRuntime(1228): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:899) 10-04 04:06:59.936: E/AndroidRuntime(1228): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:694) 。。。。。。。。

hexo g / s / d 之后报错(TypeError [ERR_INVALID_URL]: Invalid URL: http://localhost:4000,检查是否成功)?

再进行了hexo g / s 操作之后,进行 hexo d ,中间在让输入GitHub账号密码的时候卡了,我就关闭窗口重新操作,之后就出现了如图所示情况,求解答。。。 ![图片说明](https://img-ask.csdn.net/upload/202004/17/1587081764_605696.png)

Hexo nexT主题博客,搭建遇到错误

搭建博客,配置部署的时候我遇到了点问题 ``` ERROR Process failed: layout/_macro/post.swig Error: SyntaxError: Unexpected token || in file E:\BlogRepos\themes\next\layout\_macro\post.swig. at Object.exports.throwError (E:\BlogRepos\node_modules\swig-templates\lib\utils.js:188:9) at exports.Swig.precompile (E:\BlogRepos\node_modules\swig-templates\lib\swig.js:550:13) at Object.compile (E:\BlogRepos\node_modules\swig-templates\lib\swig.js:651:16) at Function.swigRenderer.compile (E:\BlogRepos\node_modules\hexo\lib\plugins\renderer\swig.js:41:47) at Theme._View.View.View._precompile (E:\BlogRepos\node_modules\hexo\lib\theme\view.js:116:31) at Theme._View.View.View (E:\BlogRepos\node_modules\hexo\lib\theme\view.js:14:8) at new Theme._View.View (E:\BlogRepos\node_modules\hexo\lib\theme\index.js:37:13) at Theme.setView (E:\BlogRepos\node_modules\hexo\lib\theme\index.js:71:16) at file.read.then.result (E:\BlogRepos\node_modules\hexo\lib\theme\processors\view.js:14:14) at tryCatcher (E:\BlogRepos\node_modules\bluebird\js\release\util.js:16:23) at Promise._settlePromiseFromHandler (E:\BlogRepos\node_modules\bluebird\js\release\promise.js:517:31) at Promise._settlePromise (E:\BlogRepos\node_modules\bluebird\js\release\promise.js:574:18) at Promise._settlePromise0 (E:\BlogRepos\node_modules\bluebird\js\release\promise.js:619:10) at Promise._settlePromises (E:\BlogRepos\node_modules\bluebird\js\release\promise.js:699:18) at Promise._fulfill (E:\BlogRepos\node_modules\bluebird\js\release\promise.js:643:18) at Promise._resolveCallback (E:\BlogRepos\node_modules\bluebird\js\release\promise.js:437:57) at Promise._settlePromiseFromHandler (E:\BlogRepos\node_modules\bluebird\js\release\promise.js:529:17) at Promise._settlePromise (E:\BlogRepos\node_modules\bluebird\js\release\promise.js:574:18) at Promise._settlePromise0 (E:\BlogRepos\node_modules\bluebird\js\release\promise.js:619:10) at Promise._settlePromises (E:\BlogRepos\node_modules\bluebird\js\release\promise.js:699:18) at Promise._fulfill (E:\BlogRepos\node_modules\bluebird\js\release\promise.js:643:18) at E:\BlogRepos\node_modules\bluebird\js\release\nodeback.js:42:21 ``` 希望大佬帮我看看

hexo博客无法显示背景图片

hexo框架写的博客,主题是next,本地预览可以看到背景,但是真实网站看不到,已经试过先hexo c之后再上传,还是没有用 hexo的配置文件 ``` # Hexo Configuration ## Docs: https://hexo.io/docs/configuration.html ## Source: https://github.com/hexojs/hexo/ # Site title: subtitle: description: 这是一个搞着玩的博客,功能暂未完全完善,将就着看吧您内~! keywords: author: 肖肖 language: zh-Hans timezone: # URL ## If your site is put in a subdirectory, set url as 'http://yoursite.com/child' and root as '/child/' url: http://yoursite.com root: / permalink: :year/:month/:day/:title/ permalink_defaults: # Directory source_dir: source public_dir: public tag_dir: tags archive_dir: archives category_dir: categories code_dir: downloads/code i18n_dir: :lang skip_render: # Writing new_post_name: :title.md # File name of new posts default_layout: post titlecase: false # Transform title into titlecase external_link: true # Open external links in new tab filename_case: 0 render_drafts: false post_asset_folder: true relative_link: false future: true highlight: enable: true line_number: true auto_detect: false tab_replace: # Home page setting # path: Root path for your blogs index page. (default = '') # per_page: Posts displayed per page. (0 = disable pagination) # order_by: Posts order. (Order by date descending by default) index_generator: path: '' per_page: 10 order_by: -date # Category & Tag default_category: uncategorized category_map: tag_map: # Date / Time format ## Hexo uses Moment.js to parse and display date ## You can customize the date format as defined in ## http://momentjs.com/docs/#/displaying/format/ date_format: YYYY-MM-DD time_format: HH:mm:ss # Pagination ## Set per_page to 0 to disable pagination per_page: 10 pagination_dir: page # Extensions ## Plugins: https://hexo.io/plugins/ ## Themes: https://hexo.io/themes/ theme: next # Deployment ## Docs: https://hexo.io/docs/deployment.html deploy: type: git repo: branch: master ``` 然后是next的配置文件 ``` # =============================================================== # ========================= ATTENTION! ========================== # =============================================================== # NexT repository is moving here: https://github.com/theme-next # =============================================================== # It's rebase to v6.0.0 and future maintenance will resume there # =============================================================== # --------------------------------------------------------------- # Theme Core Configuration Settings # --------------------------------------------------------------- # Set to true, if you want to fully override the default configuration. # Useful if you don't want to inherit the theme _config.yml configurations. override: false # --------------------------------------------------------------- # Site Information Settings # --------------------------------------------------------------- # To get or check favicons visit: https://realfavicongenerator.net # Put your favicons into `hexo-site/source/` (recommend) or `hexo-site/themes/next/source/images/` directory. # Default NexT favicons placed in `hexo-site/themes/next/source/images/` directory. # And if you want to place your icons in `hexo-site/source/` root directory, you must remove `/images` prefix from pathes. # For example, you put your favicons into `hexo-site/source/images` directory. # Then need to rename & redefine they on any other names, otherwise icons from Next will rewrite your custom icons in Hexo. favicon: small: /images/favicon-16x16-next.png medium: /images/favicon.ico apple_touch_icon: /images/apple-touch-icon-next.png safari_pinned_tab: /images/logo.svg #android_manifest: /images/manifest.json #ms_browserconfig: /images/browserconfig.xml # Set default keywords (Use a comma to separate) keywords: "Hexo, NexT" # Set rss to false to disable feed link. # Leave rss as empty to use site's feed link. # Set rss to specific value if you have burned your feed already. rss: footer: # Specify the date when the site was setup. # If not defined, current year will be used. since: 2019 # Icon between year and copyright info. icon: user # If not defined, will be used `author` from Hexo main config. copyright: # ------------------------------------------------------------- # Hexo link (Powered by Hexo). powered: true theme: # Theme & scheme info link (Theme - NexT.scheme). enable: true # Version info of NexT after scheme info (vX.X.X). version: true # ------------------------------------------------------------- # Any custom text can be defined here. #custom_text: Hosted by <a target="_blank" href="https://pages.github.com">GitHub Pages</a> # --------------------------------------------------------------- # SEO Settings # --------------------------------------------------------------- # Canonical, set a canonical link tag in your hexo, you could use it for your SEO of blog. # See: https://support.google.com/webmasters/answer/139066 # Tips: Before you open this tag, remember set up your URL in hexo _config.yml ( ex. url: http://yourdomain.com ) canonical: true # Change headers hierarchy on site-subtitle (will be main site description) and on all post/pages titles for better SEO-optimization. seo: false # If true, will add site-subtitle to index page, added in main hexo config. # subtitle: Subtitle index_with_subtitle: false # --------------------------------------------------------------- # Menu Settings # --------------------------------------------------------------- # When running the site in a subdirectory (e.g. domain.tld/blog), remove the leading slash from link value (/archives -> archives). # Usage: `Key: /link/ || icon` # Key is the name of menu item. If translate for this menu will find in languages - this translate will be loaded; if not - Key name will be used. Key is case-senstive. # Value before `||` delimeter is the target link. # Value after `||` delimeter is the name of FontAwesome icon. If icon (with or without delimeter) is not specified, question icon will be loaded. menu: home: / || home #about: /about/ || user #tags: /tags/ || tags #categories: /categories/ || th archives: /archives/ || archive #schedule: /schedule/ || calendar #sitemap: /sitemap.xml || sitemap #commonweal: /404/ || heartbeat # Enable/Disable menu icons. menu_icons: enable: true # --------------------------------------------------------------- # Scheme Settings # --------------------------------------------------------------- # Schemes #scheme: Muse #scheme: Mist #scheme: Pisces scheme: Gemini # --------------------------------------------------------------- # Sidebar Settings # --------------------------------------------------------------- # Social Links. # Usage: `Key: permalink || icon` # Key is the link label showing to end users. # Value before `||` delimeter is the target permalink. # Value after `||` delimeter is the name of FontAwesome icon. If icon (with or without delimeter) is not specified, globe icon will be loaded. #social: #GitHub: https://github.com/yourname || github #E-Mail: mailto:yourname@gmail.com || envelope #Google: https://plus.google.com/yourname || google #Twitter: https://twitter.com/yourname || twitter #FB Page: https://www.facebook.com/yourname || facebook #VK Group: https://vk.com/yourname || vk #StackOverflow: https://stackoverflow.com/yourname || stack-overflow #YouTube: https://youtube.com/yourname || youtube #Instagram: https://instagram.com/yourname || instagram #Skype: skype:yourname?call|chat || skype social_icons: enable: true icons_only: false transition: false # Blog rolls links_icon: link links_title: Links links_layout: block #links_layout: inline #links: #Title: http://example.com/ # Sidebar Avatar # in theme directory(source/images): /images/avatar.gif # in site directory(source/uploads): /uploads/avatar.gif avatar: /images/avatar.png # Table Of Contents in the Sidebar toc: enable: true # Automatically add list number to toc. number: true # If true, all words will placed on next lines if header width longer then sidebar width. wrap: false # Creative Commons 4.0 International License. # http://creativecommons.org/ # Available: by | by-nc | by-nc-nd | by-nc-sa | by-nd | by-sa | zero #creative_commons: by-nc-sa #creative_commons: sidebar: # Sidebar Position, available value: left | right (only for Pisces | Gemini). position: left #position: right # Sidebar Display, available value (only for Muse | Mist): # - post expand on posts automatically. Default. # - always expand for all pages automatically # - hide expand only when click on the sidebar toggle icon. # - remove Totally remove sidebar including sidebar toggle. display: post #display: always #display: hide #display: remove # Sidebar offset from top menubar in pixels (only for Pisces | Gemini). offset: 12 # Back to top in sidebar (only for Pisces | Gemini). b2t: false # Scroll percent label in b2t button. scrollpercent: true # Enable sidebar on narrow view (only for Muse | Mist). onmobile: true # --------------------------------------------------------------- # Post Settings # --------------------------------------------------------------- # Automatically scroll page to section which is under <!-- more --> mark. scroll_to_more: true # Automatically saving scroll position on each post/page in cookies. save_scroll: false # Automatically excerpt description in homepage as preamble text. excerpt_description: true # Automatically Excerpt. Not recommend. # Please use <!-- more --> in the post to control excerpt accurately. auto_excerpt: enable: true length: 0 # Post meta display settings post_meta: item_text: true created_at: true updated_at: false categories: true # Post wordcount display settings # Dependencies: https://github.com/willin/hexo-wordcount post_wordcount: item_text: true wordcount: true min2read: true totalcount: false separated_meta: true # Wechat Subscriber #wechat_subscriber: #enabled: true #qcode: /path/to/your/wechatqcode ex. /uploads/wechat-qcode.jpg #description: ex. subscribe to my blog by scanning my public wechat account # Reward #reward_comment: Donate comment here #wechatpay: /images/wechatpay.jpg #alipay: /images/alipay.jpg #bitcoin: /images/bitcoin.png # Declare license on posts post_copyright: enable: false license: CC BY-NC-SA 3.0 license_url: https://creativecommons.org/licenses/by-nc-sa/3.0/ # --------------------------------------------------------------- # Misc Theme Settings # --------------------------------------------------------------- # Reduce padding / margin indents on devices with narrow width. mobile_layout_economy: false # Android Chrome header panel color ($black-deep). android_chrome_color: "#222" # Custom Logo. # !!Only available for Default Scheme currently. # Options: # enabled: [true/false] - Replace with specific image # image: url-of-image - Images's url custom_logo: enabled: true image: # Code Highlight theme # Available value: # normal | night | night eighties | night blue | night bright # https://github.com/chriskempson/tomorrow-theme highlight_theme: normal # --------------------------------------------------------------- # Font Settings # - Find fonts on Google Fonts (https://www.google.com/fonts) # - All fonts set here will have the following styles: # light, light italic, normal, normal italic, bold, bold italic # - Be aware that setting too much fonts will cause site running slowly # - Introduce in 5.0.1 # --------------------------------------------------------------- # CAUTION! Safari Version 10.1.2 bug: https://github.com/iissnan/hexo-theme-next/issues/1844 # To avoid space between header and sidebar in Pisces / Gemini themes recommended to use Web Safe fonts for `global` (and `logo`): # Arial | Tahoma | Helvetica | Times New Roman | Courier New | Verdana | Georgia | Palatino | Garamond | Comic Sans MS | Trebuchet MS # --------------------------------------------------------------- font: enable: true # Uri of fonts host. E.g. //fonts.googleapis.com (Default). host: # Font options: # `external: true` will load this font family from `host` above. # `family: Times New Roman`. Without any quotes. # `size: xx`. Use `px` as unit. # Global font settings used on <body> element. global: external: true family: Lato size: # Font settings for Headlines (h1, h2, h3, h4, h5, h6). # Fallback to `global` font settings. headings: external: true family: size: # Font settings for posts. # Fallback to `global` font settings. posts: external: true family: # Font settings for Logo. # Fallback to `global` font settings. logo: external: true family: size: # Font settings for <code> and code blocks. codes: external: true family: size: # --------------------------------------------------------------- # Third Party Services Settings # --------------------------------------------------------------- # MathJax Support mathjax: enable: false per_page: false cdn: //cdn.bootcss.com/mathjax/2.7.1/latest.js?config=TeX-AMS-MML_HTMLorMML # Han Support docs: https://hanzi.pro/ han: false # Swiftype Search API Key #swiftype_key: # Baidu Analytics ID #baidu_analytics: # Duoshuo ShortName #duoshuo_shortname: # Disqus disqus: enable: false shortname: count: true # Hypercomments #hypercomments_id: # changyan changyan: enable: false appid: appkey: # Valine. # You can get your appid and appkey from https://leancloud.cn # more info please open https://valine.js.org valine: enable: true appid: appkey: notify: false # mail notifier , https://github.com/xCss/Valine/wiki verify: false # Verification code placeholder: 高冷的你说点什么吧( ´・・)ノ(._.`) avatar: mm # gravatar style guest_info: nick,mail,link # custom comment header pageSize: 10 # pagination size # Support for youyan comments system. # You can get your uid from http://www.uyan.cc #youyan_uid: your uid # Support for LiveRe comments system. # You can get your uid from https://livere.com/insight/myCode (General web site) #livere_uid: your uid # Gitment # Introduction: https://imsun.net/posts/gitment-introduction/ # You can get your Github ID from https://api.github.com/users/<Github username> gitment: enable: false mint: true # RECOMMEND, A mint on Gitment, to support count, language and proxy_gateway count: true # Show comments count in post meta area lazy: false # Comments lazy loading with a button cleanly: false # Hide 'Powered by ...' on footer, and more language: # Force language, or auto switch by theme github_user: # MUST HAVE, Your Github ID github_repo: # MUST HAVE, The repo you use to store Gitment comments client_id: # MUST HAVE, Github client id for the Gitment client_secret: # EITHER this or proxy_gateway, Github access secret token for the Gitment proxy_gateway: # Address of api proxy, See: https://github.com/aimingoo/intersect redirect_protocol: # Protocol of redirect_uri with force_redirect_protocol when mint enabled # Baidu Share # Available value: # button | slide # Warning: Baidu Share does not support https. #baidushare: ## type: button # Share # This plugin is more useful in China, make sure you known how to use it. # And you can find the use guide at official webiste: http://www.jiathis.com/. # Warning: JiaThis does not support https. #jiathis: ##uid: Get this uid from http://www.jiathis.com/ #add_this_id: # Share duoshuo_share: true # NeedMoreShare2 # This plugin is a pure javascript sharing lib which is useful in China. # See: https://github.com/revir/need-more-share2 # Also see: https://github.com/DzmVasileusky/needShareButton # iconStyle: default | box # boxForm: horizontal | vertical # position: top / middle / bottom + Left / Center / Right networks: Weibo,Wechat,Douban,QQZone,Twitter,Linkedin,Mailto,Reddit, # Delicious,StumbleUpon,Pinterest,Facebook,GooglePlus,Slashdot, # Technorati,Posterous,Tumblr,GoogleBookmarks,Newsvine, # Evernote,Friendfeed,Vkontakte,Odnoklassniki,Mailru needmoreshare2: enable: false postbottom: enable: false options: iconStyle: box boxForm: horizontal position: bottomCenter networks: Weibo,Wechat,Douban,QQZone,Twitter,Facebook float: enable: false options: iconStyle: box boxForm: horizontal position: middleRight networks: Weibo,Wechat,Douban,QQZone,Twitter,Facebook # Google Webmaster tools verification setting # See: https://www.google.com/webmasters/ #google_site_verification: # Google Analytics #google_analytics: # Bing Webmaster tools verification setting # See: https://www.bing.com/webmaster/ #bing_site_verification: # Yandex Webmaster tools verification setting # See: https://webmaster.yandex.ru/ #yandex_site_verification: # CNZZ count #cnzz_siteid: # Application Insights # See https://azure.microsoft.com/en-us/services/application-insights/ # application_insights: # Make duoshuo show UA # user_id must NOT be null when admin_enable is true! # you can visit http://dev.duoshuo.com get duoshuo user id. duoshuo_info: ua_enable: true admin_enable: false user_id: 0 #admin_nickname: Author # Post widgets & FB/VK comments settings. # --------------------------------------------------------------- # Facebook SDK Support. # https://github.com/iissnan/hexo-theme-next/pull/410 facebook_sdk: enable: false app_id: #<app_id> fb_admin: #<user_id> like_button: #true webmaster: #true # Facebook comments plugin # This plugin depends on Facebook SDK. # If facebook_sdk.enable is false, Facebook comments plugin is unavailable. facebook_comments_plugin: enable: false num_of_posts: 10 # min posts num is 1 width: 100% # default width is 550px scheme: light # default scheme is light (light or dark) # VKontakte API Support. # To get your AppID visit https://vk.com/editapp?act=create vkontakte_api: enable: false app_id: #<app_id> like: true comments: true num_of_posts: 10 # Star rating support to each article. # To get your ID visit https://widgetpack.com rating: enable: false id: #<app_id> color: fc6423 # --------------------------------------------------------------- # Show number of visitors to each article. # You can visit https://leancloud.cn get AppID and AppKey. leancloud_visitors: enable: false app_id: #<app_id> app_key: #<app_key> # Another tool to show number of visitors to each article. # visit https://console.firebase.google.com/u/0/ to get apiKey and projectId # visit https://firebase.google.com/docs/firestore/ to get more information about firestore firestore: enable: false collection: articles #required, a string collection name to access firestore database apiKey: #required projectId: #required bluebird: false #enable this if you want to include bluebird 3.5.1(core version) Promise polyfill # Show PV/UV of the website/page with busuanzi. # Get more information on http://ibruce.info/2015/04/04/busuanzi/ busuanzi_count: # count values only if the other configs are false enable: true # custom uv span for the whole site site_uv: true site_uv_header: 本站访问人数 site_uv_footer: 人次 # custom pv span for the whole site site_pv: true site_pv_header: 本站访问量 site_pv_footer: 次 # custom pv span for one page only page_pv: true page_pv_header: 本文阅读量 page_pv_footer: 次 # Tencent analytics ID # tencent_analytics: # Tencent MTA ID # tencent_mta: # Enable baidu push so that the blog will push the url to baidu automatically which is very helpful for SEO baidu_push: false # Google Calendar # Share your recent schedule to others via calendar page # # API Documentation: # https://developers.google.com/google-apps/calendar/v3/reference/events/list calendar: enable: false calendar_id: <required> api_key: <required> orderBy: startTime offsetMax: 24 offsetMin: 4 timeZone: showDeleted: false singleEvents: true maxResults: 250 # Algolia Search algolia_search: enable: false hits: per_page: 10 labels: input_placeholder: Search for Posts hits_empty: "We didn't find any results for the search: ${query}" hits_stats: "${hits} results found in ${time} ms" # Local search # Dependencies: https://github.com/flashlab/hexo-generator-search local_search: enable: true # if auto, trigger search by changing input # if manual, trigger search by pressing enter key or search button trigger: auto # show top n results per article, show all results by setting to -1 top_n_per_article: 1 # --------------------------------------------------------------- # Tags Settings # --------------------------------------------------------------- # External URL with BASE64 encrypt & decrypt. # Usage: {% exturl text url "title" %} # Alias: {% extlink text url "title" %} exturl: false # Note tag (bs-callout). note: # Note tag style values: # - simple bs-callout old alert style. Default. # - modern bs-callout new (v2-v3) alert style. # - flat flat callout style with background, like on Mozilla or StackOverflow. # - disabled disable all CSS styles import of note tag. style: simple icons: false border_radius: 3 # Offset lighter of background in % for modern and flat styles (modern: -12 | 12; flat: -18 | 6). # Offset also applied to label tag variables. This option can work with disabled note tag. light_bg_offset: 0 # Label tag. label: true # Tabs tag. tabs: enable: true transition: tabs: false labels: true border_radius: 0 #! --------------------------------------------------------------- #! DO NOT EDIT THE FOLLOWING SETTINGS #! UNLESS YOU KNOW WHAT YOU ARE DOING #! --------------------------------------------------------------- # Use velocity to animate everything. motion: enable: true async: false transition: # Transition variants: # fadeIn | fadeOut | flipXIn | flipXOut | flipYIn | flipYOut | flipBounceXIn | flipBounceXOut | flipBounceYIn | flipBounceYOut # swoopIn | swoopOut | whirlIn | whirlOut | shrinkIn | shrinkOut | expandIn | expandOut # bounceIn | bounceOut | bounceUpIn | bounceUpOut | bounceDownIn | bounceDownOut | bounceLeftIn | bounceLeftOut | bounceRightIn | bounceRightOut # slideUpIn | slideUpOut | slideDownIn | slideDownOut | slideLeftIn | slideLeftOut | slideRightIn | slideRightOut # slideUpBigIn | slideUpBigOut | slideDownBigIn | slideDownBigOut | slideLeftBigIn | slideLeftBigOut | slideRightBigIn | slideRightBigOut # perspectiveUpIn | perspectiveUpOut | perspectiveDownIn | perspectiveDownOut | perspectiveLeftIn | perspectiveLeftOut | perspectiveRightIn | perspectiveRightOut post_block: fadeIn post_header: slideDownIn post_body: slideDownIn coll_header: slideLeftIn # Only for Pisces | Gemini. sidebar: slideUpIn # Fancybox fancybox: true # Progress bar in the top during page loading. pace: true # Themes list: #pace-theme-big-counter #pace-theme-bounce #pace-theme-barber-shop #pace-theme-center-atom #pace-theme-center-circle #pace-theme-center-radar #pace-theme-center-simple #pace-theme-corner-indicator #pace-theme-fill-left #pace-theme-flash #pace-theme-loading-bar #pace-theme-mac-osx #pace-theme-minimal # For example # pace_theme: pace-theme-center-simple pace_theme: pace-theme-minimal # Canvas-nest canvas_nest: true # three_waves three_waves: false # canvas_lines canvas_lines: false # canvas_sphere canvas_sphere: false # Only fit scheme Pisces # Canvas-ribbon # size: The width of the ribbon. # alpha: The transparency of the ribbon. # zIndex: The display level of the ribbon. canvas_ribbon: enable: false size: 300 alpha: 0.6 zIndex: -1 # Script Vendors. # Set a CDN address for the vendor you want to customize. # For example # jquery: https://ajax.googleapis.com/ajax/libs/jquery/2.2.0/jquery.min.js # Be aware that you should use the same version as internal ones to avoid potential problems. # Please use the https protocol of CDN files when you enable https on your site. vendors: # Internal path prefix. Please do not edit it. _internal: lib # Internal version: 2.1.3 jquery: # Internal version: 2.1.5 # See: http://fancyapps.com/fancybox/ fancybox: fancybox_css: # Internal version: 1.0.6 # See: https://github.com/ftlabs/fastclick fastclick: # Internal version: 1.9.7 # See: https://github.com/tuupola/jquery_lazyload lazyload: # Internal version: 1.2.1 # See: http://VelocityJS.org velocity: # Internal version: 1.2.1 # See: http://VelocityJS.org velocity_ui: # Internal version: 0.7.9 # See: https://faisalman.github.io/ua-parser-js/ ua_parser: # Internal version: 4.6.2 # See: http://fontawesome.io/ fontawesome: # Internal version: 1 # https://www.algolia.com algolia_instant_js: algolia_instant_css: # Internal version: 1.0.2 # See: https://github.com/HubSpot/pace # Or use direct links below: # pace: //cdn.bootcss.com/pace/1.0.2/pace.min.js # pace_css: //cdn.bootcss.com/pace/1.0.2/themes/blue/pace-theme-flash.min.css pace: pace_css: # Internal version: 1.0.0 # https://github.com/hustcc/canvas-nest.js canvas_nest: # three three: # three_waves # https://github.com/jjandxa/three_waves three_waves: # three_waves # https://github.com/jjandxa/canvas_lines canvas_lines: # three_waves # https://github.com/jjandxa/canvas_sphere canvas_sphere: # Internal version: 1.0.0 # https://github.com/zproo/canvas-ribbon canvas_ribbon: # Internal version: 3.3.0 # https://github.com/ethantw/Han han: # needMoreShare2 # https://github.com/revir/need-more-share2 needMoreShare2: # Assets css: css js: js images: images # Online contact daovoice: true daovoice_app_id: # 这里填你刚才获得的 app_id # Theme version live2d: enable: false model: z16 bottom: -30 version: 5.1.4 ``` 已经折腾了两天了,就差回档了,感觉回档也没有用,小白在此感谢各位大佬了 然后我修改背景图片修改的是Blog\themes\next\source\css\_custom\custom.styl文件 ``` // Custom styles. // 主页文章添加阴影效果 .post { margin-top: 60px; margin-bottom: 60px; padding: 25px; -webkit-box-shadow: 0 0 5px rgba(202, 203, 203, .5); -moz-box-shadow: 0 0 5px rgba(202, 203, 204, .5); } .site-meta { background: $orange; //天空的颜色,和我的眼镜是绝配 } // 鼠标样式 * { cursor: url(""),auto!important } :active { cursor: url(""),auto!important } // Custom styles. body { background-image: url(/images/background.jpg); background-attachment: fixed; background-repeat: no-repeat; background-size: cover; //改变背景色和透明度 .main-inner { padding: 25px; opacity: 0.85; border-radius: 10px; right: 0 !important; top: 0 !important; bottom: 0 !important; } } body .main { margin-bottom: 0px; } ```

RSS Feed结构出错。 奇怪的'元素'<head />。 去哪儿看?

<div class="post-text" itemprop="text"> <p>I just found when trying to use IFTTT that my blog's wordpress feed seems to be faulty: <a href="https://validator.w3.org/feed/check.cgi?url=https%3A%2F%2Fwww.kallmeyer-naturheilpraxis.de%2Ffeed" rel="nofollow noreferrer">https://validator.w3.org/feed/check.cgi?url=https%3A%2F%2Fwww.kallmeyer-naturheilpraxis.de%2Ffeed</a></p> <p>There appears to a strange element in the beginning.</p> <p>I am by no means a programmer but this is a great point to start learning php. Unfortunately after checking most of the wordpress php that they are as they should be.</p> <p>So now I have no idea where to look else. I did download all php files locally and tried to search for this element - nothing.</p> <p>It would be nice if someone could put back on track where possibly to look for the bug. </p> <p>Thanks.</p> </div>

HEXO NEXT 头像无法显示!!!史无前例

快被整疯了... 上传部署成功,github有图片文件 路径没问题,检查过几十遍 ```cpp url: /source/images/sun.gif` ``` 图片文件就是sun.gif 大小:3MB 在hexo s中打开图片链接:Cannot GET /%5Bobject%20Object%5D/ ![批注 2020-04-26 152728.jpg](https://i.loli.net/2020/04/26/wRPUTzk64WAHL9m.jpg) signskyc是我的博主名字 清过浏览器缓存,用过hexo clean 在网站中打开图片链接: --- 404 File not found The site configured at this address does not contain the requested file. If this is your site, make sure that the filename case matches the URL. For root URLs (like http://example.com/) you must provide an index.html file. Read the full documentation for more information about using GitHub Pages. --- 我该怎么办? my blog:[blog](https://zhangganqing.github.io/) # 坐等大佬解决

ubuntu zookeeper 启动报错 [[: not found -p: not found

panda@panda-VirtualBox:~/zookeeper-server/zk1/bin$ ls README.txt zkCli.cmd zkEnv.cmd zkServer.cmd zkServer.sh zkCleanup.sh zkCli.sh zkEnv.sh zkServer-initialize.sh panda@panda-VirtualBox:~/zookeeper-server/zk1/bin$ sh zkServer.sh start zkServer.sh: 80: /home/panda/zookeeper-server/zk1/bin/zkEnv.sh: [[: not found -p: not found java is /usr/jvm/jdk1.8/bin/java Error: JAVA_HOME is not set and java could not be found in PATH. panda@panda-VirtualBox:~/zookeeper-server/zk1/bin$ https://zhidao.baidu.com/question/1644189876595332740.html?entry=qb_uhome_tag

hexo使用gitment不能跳转

第一次使用hexo,想配置一个gitment,根据网上的教程: 我注册了github的授权管理得到了注册秘钥: ![github](https://img-ask.csdn.net/upload/201901/25/1548400444_219452.png) 我自己的博客地址是:[https://maiyikai.github.io](https://maiyikai.github.io "https://maiyikai.github.io") 但是每次点击登录都会跳到主页,并且报错: ![图片说明](https://img-ask.csdn.net/upload/201901/25/1548400565_440554.png) 重定向地址:[https://maiyikai.github.io/?error=redirect_uri_mismatch&error_description=The redirect_uri MUST match the registered callback URL for this application.&error_uri=https://developer.github.com/apps/managing-oauth-apps/troubleshooting-authorization-request-errors/#redirect-uri-mismatch](https://maiyikai.github.io/?error=redirect_uri_mismatch&error_description=The redirect_uri MUST match the registered callback URL for this application.&error_uri=https://developer.github.com/apps/managing-oauth-apps/troubleshooting-authorization-request-errors/#redirect-uri-mismatch "https://maiyikai.github.io/?error=redirect_uri_mismatch&error_description=The redirect_uri MUST match the registered callback URL for this application.&error_uri=https://developer.github.com/apps/managing-oauth-apps/troubleshooting-authorization-request-errors/#redirect-uri-mismatch") 每次都说是我的重定向有问题,,但是地址没有错啊,,请教?

执行hexo d部署到github出错

![图片说明](https://img-ask.csdn.net/upload/201803/04/1520146002_356822.png) github已经配置了ssh key 并且执行$ ssh -T git@github.com 能连接到github

Instagram通过API获取所有媒体 -

<div class="post-text" itemprop="text"> <p>I am using <a href="https://github.com/cosenary/Instagram-PHP-API" rel="nofollow noreferrer">https://github.com/cosenary/Instagram-PHP-API</a> to integrate Instagram API for my application.</p> <p>I have a requirement of getting all the media's for the 'self' user and display. I tried with min_id and max_id but it only show recent 20 media I also use max_timestamp and min_timestamp but nothing worked to me.</p> <p>Is there something I missing or is there any work around to solve this issue.</p> <p>Thanks FJ</p> </div>

Git误执行git config --global core.excludesfile .idea

warning: unable to access '.idea': Permission denied fatal: cannot use .idea as an exclude file SourceTree打开 也不行了 下面是SourceTree打开的提示 ![图片说明](https://img-ask.csdn.net/upload/201608/23/1471936717_847020.png) 这个问题 不仅仅出现这个当前 项目 误执行了那条命令 之后 所以的项目 都出现了这个问题

hexo样式错乱,加载不出来。

前天突然就没有任何的样式了,找不到什么原因,用之前的备份,全部覆盖了依然这样子。 ![在这里插入图片描述](https://img-blog.csdnimg.cn/20190521181653752.png) 控制台报错,不知道什么原因 ![图片说明](https://img-ask.csdn.net/upload/201905/21/1558434041_942608.jpg) 尝试了修改_config.yml文件中root: /XXXX.github.io/,但是没有解决掉,各位大神帮忙看下什么原因。

hexo上传到码云之后,css样式无法加载出来

``` url: http://kinghtxg.gitee.io/kinghtblog/ root: /kinghtblog/ ``` 网上找了很多修改_config.yml文件的url 修改了很多次,都还没解决这个问题

在中国程序员是青春饭吗?

今年,我也32了 ,为了不给大家误导,咨询了猎头、圈内好友,以及年过35岁的几位老程序员……舍了老脸去揭人家伤疤……希望能给大家以帮助,记得帮我点赞哦。 目录: 你以为的人生 一次又一次的伤害 猎头界的真相 如何应对互联网行业的「中年危机」 一、你以为的人生 刚入行时,拿着傲人的工资,想着好好干,以为我们的人生是这样的: 等真到了那一天,你会发现,你的人生很可能是这样的: ...

程序员请照顾好自己,周末病魔差点一套带走我。

程序员在一个周末的时间,得了重病,差点当场去世,还好及时挽救回来了。

Java基础知识面试题(2020最新版)

文章目录Java概述何为编程什么是Javajdk1.5之后的三大版本JVM、JRE和JDK的关系什么是跨平台性?原理是什么Java语言有哪些特点什么是字节码?采用字节码的最大好处是什么什么是Java程序的主类?应用程序和小程序的主类有何不同?Java应用程序与小程序之间有那些差别?Java和C++的区别Oracle JDK 和 OpenJDK 的对比基础语法数据类型Java有哪些数据类型switc...

技术大佬:我去,你写的 switch 语句也太老土了吧

昨天早上通过远程的方式 review 了两名新来同事的代码,大部分代码都写得很漂亮,严谨的同时注释也很到位,这令我非常满意。但当我看到他们当中有一个人写的 switch 语句时,还是忍不住破口大骂:“我擦,小王,你丫写的 switch 语句也太老土了吧!” 来看看小王写的代码吧,看完不要骂我装逼啊。 private static String createPlayer(PlayerTypes p...

和黑客斗争的 6 天!

互联网公司工作,很难避免不和黑客们打交道,我呆过的两家互联网公司,几乎每月每天每分钟都有黑客在公司网站上扫描。有的是寻找 Sql 注入的缺口,有的是寻找线上服务器可能存在的漏洞,大部分都...

Intellij IDEA 实用插件安利

1. 前言从2020 年 JVM 生态报告解读 可以看出Intellij IDEA 目前已经稳坐 Java IDE 头把交椅。而且统计得出付费用户已经超过了八成(国外统计)。IDEA 的...

女程序员,为什么比男程序员少???

昨天看到一档综艺节目,讨论了两个话题:(1)中国学生的数学成绩,平均下来看,会比国外好?为什么?(2)男生的数学成绩,平均下来看,会比女生好?为什么?同时,我又联想到了一个技术圈经常讨...

总结了 150 余个神奇网站,你不来瞅瞅吗?

原博客再更新,可能就没了,之后将持续更新本篇博客。

副业收入是我做程序媛的3倍,工作外的B面人生是怎样的?

提到“程序员”,多数人脑海里首先想到的大约是:为人木讷、薪水超高、工作枯燥…… 然而,当离开工作岗位,撕去层层标签,脱下“程序员”这身外套,有的人生动又有趣,马上展现出了完全不同的A/B面人生! 不论是简单的爱好,还是正经的副业,他们都干得同样出色。偶尔,还能和程序员的特质结合,产生奇妙的“化学反应”。 @Charlotte:平日素颜示人,周末美妆博主 大家都以为程序媛也个个不修边幅,但我们也许...

MySQL数据库面试题(2020最新版)

文章目录数据库基础知识为什么要使用数据库什么是SQL?什么是MySQL?数据库三大范式是什么mysql有关权限的表都有哪几个MySQL的binlog有有几种录入格式?分别有什么区别?数据类型mysql有哪些数据类型引擎MySQL存储引擎MyISAM与InnoDB区别MyISAM索引与InnoDB索引的区别?InnoDB引擎的4大特性存储引擎选择索引什么是索引?索引有哪些优缺点?索引使用场景(重点)...

如果你是老板,你会不会踢了这样的员工?

有个好朋友ZS,是技术总监,昨天问我:“有一个老下属,跟了我很多年,做事勤勤恳恳,主动性也很好。但随着公司的发展,他的进步速度,跟不上团队的步伐了,有点...

我入职阿里后,才知道原来简历这么写

私下里,有不少读者问我:“二哥,如何才能写出一份专业的技术简历呢?我总感觉自己写的简历太烂了,所以投了无数份,都石沉大海了。”说实话,我自己好多年没有写过简历了,但我认识的一个同行,他在阿里,给我说了一些他当年写简历的方法论,我感觉太牛逼了,实在是忍不住,就分享了出来,希望能够帮助到你。 01、简历的本质 作为简历的撰写者,你必须要搞清楚一点,简历的本质是什么,它就是为了来销售你的价值主张的。往深...

魂迁光刻,梦绕芯片,中芯国际终获ASML大型光刻机

据羊城晚报报道,近日中芯国际从荷兰进口的一台大型光刻机,顺利通过深圳出口加工区场站两道闸口进入厂区,中芯国际发表公告称该光刻机并非此前盛传的EUV光刻机,主要用于企业复工复产后的生产线扩容。 我们知道EUV主要用于7nm及以下制程的芯片制造,光刻机作为集成电路制造中最关键的设备,对芯片制作工艺有着决定性的影响,被誉为“超精密制造技术皇冠上的明珠”,根据之前中芯国际的公报,目...

优雅的替换if-else语句

场景 日常开发,if-else语句写的不少吧??当逻辑分支非常多的时候,if-else套了一层又一层,虽然业务功能倒是实现了,但是看起来是真的很不优雅,尤其是对于我这种有强迫症的程序"猿",看到这么多if-else,脑袋瓜子就嗡嗡的,总想着解锁新姿势:干掉过多的if-else!!!本文将介绍三板斧手段: 优先判断条件,条件不满足的,逻辑及时中断返回; 采用策略模式+工厂模式; 结合注解,锦...

离职半年了,老东家又发 offer,回不回?

有小伙伴问松哥这个问题,他在上海某公司,在离职了几个月后,前公司的领导联系到他,希望他能够返聘回去,他很纠结要不要回去? 俗话说好马不吃回头草,但是这个小伙伴既然感到纠结了,我觉得至少说明了两个问题:1.曾经的公司还不错;2.现在的日子也不是很如意。否则应该就不会纠结了。 老实说,松哥之前也有过类似的经历,今天就来和小伙伴们聊聊回头草到底吃不吃。 首先一个基本观点,就是离职了也没必要和老东家弄的苦...

2020阿里全球数学大赛:3万名高手、4道题、2天2夜未交卷

阿里巴巴全球数学竞赛( Alibaba Global Mathematics Competition)由马云发起,由中国科学技术协会、阿里巴巴基金会、阿里巴巴达摩院共同举办。大赛不设报名门槛,全世界爱好数学的人都可参与,不论是否出身数学专业、是否投身数学研究。 2020年阿里巴巴达摩院邀请北京大学、剑桥大学、浙江大学等高校的顶尖数学教师组建了出题组。中科院院士、美国艺术与科学院院士、北京国际数学...

为什么你不想学习?只想玩?人是如何一步一步废掉的

不知道是不是只有我这样子,还是你们也有过类似的经历。 上学的时候总有很多光辉历史,学年名列前茅,或者单科目大佬,但是虽然慢慢地长大了,你开始懈怠了,开始废掉了。。。 什么?你说不知道具体的情况是怎么样的? 我来告诉你: 你常常潜意识里或者心理觉得,自己真正的生活或者奋斗还没有开始。总是幻想着自己还拥有大把时间,还有无限的可能,自己还能逆风翻盘,只不是自己还没开始罢了,自己以后肯定会变得特别厉害...

男生更看重女生的身材脸蛋,还是思想?

往往,我们看不进去大段大段的逻辑。深刻的哲理,往往短而精悍,一阵见血。问:产品经理挺漂亮的,有点心动,但不知道合不合得来。男生更看重女生的身材脸蛋,还是...

为什么程序员做外包会被瞧不起?

二哥,有个事想询问下您的意见,您觉得应届生值得去外包吗?公司虽然挺大的,中xx,但待遇感觉挺低,马上要报到,挺纠结的。

当HR压你价,说你只值7K,你该怎么回答?

当HR压你价,说你只值7K时,你可以流畅地回答,记住,是流畅,不能犹豫。 礼貌地说:“7K是吗?了解了。嗯~其实我对贵司的面试官印象很好。只不过,现在我的手头上已经有一份11K的offer。来面试,主要也是自己对贵司挺有兴趣的,所以过来看看……”(未完) 这段话主要是陪HR互诈的同时,从公司兴趣,公司职员印象上,都给予对方正面的肯定,既能提升HR的好感度,又能让谈判气氛融洽,为后面的发挥留足空间。...

面试:第十六章:Java中级开发

HashMap底层实现原理,红黑树,B+树,B树的结构原理 Spring的AOP和IOC是什么?它们常见的使用场景有哪些?Spring事务,事务的属性,传播行为,数据库隔离级别 Spring和SpringMVC,MyBatis以及SpringBoot的注解分别有哪些?SpringMVC的工作原理,SpringBoot框架的优点,MyBatis框架的优点 SpringCould组件有哪些,他们...

面试阿里p7,被按在地上摩擦,鬼知道我经历了什么?

面试阿里p7被问到的问题(当时我只知道第一个):@Conditional是做什么的?@Conditional多个条件是什么逻辑关系?条件判断在什么时候执...

Python爬虫,高清美图我全都要(彼岸桌面壁纸)

爬取彼岸桌面网站较为简单,用到了requests、lxml、Beautiful Soup4

差点跪了...

最近微信又搞出了一个大利器,甚至都上了热搜,当然消息最敏捷的自媒体人,纷纷都开通了自己的视频号。01 视频号是什么呢?视频号是微信体系内的短视频,它不同...

面试了一个 31 岁程序员,让我有所触动,30岁以上的程序员该何去何从?

最近面试了一个31岁8年经验的程序猿,让我有点感慨,大龄程序猿该何去何从。

Vue回炉重造之router路由(更新中)

你好,我是Vam的金豆之路,可以叫我豆哥。2019年年度博客之星、技术领域博客专家。主要领域:前端开发。我的微信是 maomin9761,有什么疑问可以加我哦,自己创建了一个微信技术交流群,可以加我邀请你一起交流学习。最后自己也创建了一个微信公众号,里面的文章是我自己精挑细选的文章,主要介绍各种IT新技术。欢迎关注哦,微信搜索:臻美IT,等你来。 欢迎阅读本博文,本博文主要讲述【】,文字通...

大三实习生,字节跳动面经分享,已拿Offer

说实话,自己的算法,我一个不会,太难了吧

程序员垃圾简历长什么样?

已经连续五年参加大厂校招、社招的技术面试工作,简历看的不下于万份 这篇文章会用实例告诉你,什么是差的程序员简历! 疫情快要结束了,各个公司也都开始春招了,作为即将红遍大江南北的新晋UP主,那当然要为小伙伴们做点事(手动狗头)。 就在公众号里公开征简历,义务帮大家看,并一一点评。《启舰:春招在即,义务帮大家看看简历吧》 一石激起千层浪,三天收到两百多封简历。 花光了两个星期的所有空闲时...

Java岗开发3年,公司临时抽查算法,离职后这几题我记一辈子

前几天我们公司做了一件蠢事,非常非常愚蠢的事情。我原以为从学校出来之后,除了找工作有测试外,不会有任何与考试有关的事儿。 但是,天有不测风云,公司技术总监、人事总监两位大佬突然降临到我们事业线,叫上我老大,给我们组织了一场别开生面的“考试”。 那是一个风和日丽的下午,我翘着二郎腿,左手端着一杯卡布奇诺,右手抓着我的罗技鼠标,滚动着轮轴,穿梭在头条热点之间。 “淡黄的长裙~蓬松的头发...

大胆预测下未来5年的Web开发

在2019年的ReactiveConf 上,《Elm in Action》的作者Richard Feldman对未来5年Web开发的发展做了预测,很有意思,分享给大家。如果你有机会从头...

立即提问
相关内容推荐