泛前端开发

泛前端开发
interview
Comments

最近在找工作遇到很多奇葩的面试问题?怎么说呢,就是比较书面性的,比较学术性的问题?
今天大家分享一下吧,我们来分析一下究竟这些问题究竟在问什么?跟最终像表达的是什么?
对于面试题,真是千秋各异,有些公司喜欢问原理,有些公司不管原理什么的,直接那个API怎么怎么用!

Read on →
nginx
Comments

Complete NGINX Cookbook 首先这本说是可以免费下载的。

https://www.nginx.com/resources/library/complete-nginx-cookbook/

正题

我们都清楚 O’Reilly Cookbook 类型的书籍的风格,主要行文风格都是提出问题,给出答案并解决问题。

这本说主要分为三部分讲解:

  • Part I: Load Balancing and HTTP Caching(负载平衡和HTTP缓存)
  • Part II: Security and Access (安全和访问)
  • Part III: Deployment and Operations (部署和运营)

最常用到的当然是第一章,负载均衡;十一章,访问控制,如何设置跨域;十三章,https配置等。
相对于开发者而言,我们更多的只需要了解第一部分。第三部分对于开发者没有什么必要,所以就没有记录,有需要的可以自行阅读。

Read on →
javascript
Comments

如何正确地卸载Service Worker?

以下链接, Google Developers Service Worker工作原理:
https://developers.google.com/web/fundamentals/primers/service-workers/lifecycle#updates

但是假如某一天你网站不需要 Service Worker,如何正确地卸载呢?

以下以 create-react-app 为例子:

Read on →
information
Comments

Scrapy 是什么?

Scrapy是一个基于Python的高级爬虫框架,只需要简单的配置就可以实现你大大的需求。

为什么要介绍Scrapy,内容时代了,没有内容再好看的网站,那又有什么用呢?

Read on →
project
Comments

2017年,起床的第一天,朋友圈里面的都是困难群众。谢谢主席关心的调侃。

2016的计划完成了多少,小目标还是有的,天马行空的就别谈了。该写的写了,头脑发热能折腾到2,3点。

Read on →
project
Comments

cozhihu(多彩知乎)发布啦!

cozhihu是一款知乎皮肤chrome扩展应用。

多彩知乎十分适合geek知乎用户。随时随地刷知乎,保护眼睛两不误。

Read on →
shell
Comments

Learn bash shell, by interest or needed. what is your reason to learn the shell? I think the best reason is that what you need is what you learn.

A few days ago, I rewrite the project css to sass, so I need to rename the css. So I brought out a question, how to “Rename multiple files shell”? To people, solving problems with search engine is the method of least time. I am no exception, I encountered the same problem, and find out the answer in stackoverflow https://stackoverflow.com/questions/6911301/rename-multiple-files-shell.

Read on →
jekyll
Comments

Good news, my blog had Upgrade from Octopress 2.x to Jekyll 3.x. It is not difficult to do this, if you follow me step by step.

As you know, Octopress 2.x is based on Jekyll 2.x. so “Upgrade from Octopress 2.x to Jekyll 3.x” mean that upgrading Jekyll 2.x to Jekyll 3.x.

Read on →
project
Comments

Preface

docs.w3cub project is based on open source<iframe class="github-btn" src="https://ghbtns.com/github-btn.html?user=Thibaut&repo=devdocs&type=star&count=true" allowtransparency="true" frameborder="0" scrolling="0" width="100" height="20"></iframe>. we use jekyll system to rewrite and hosted on Github Pages. This project continued for several months and written in my spare time.

As you know, all pages are static. we think that this would be more fast than using backend router. The most important thing is that Github Pages is free. we also thought about using frondend history router to rewrite this project, but Github Pages don’t support the nginx rule. However we have permission to use 404 page, but useing the 404 page as the frontend router is very crazy idea. So at last we use the jekyll system to generate the static pages.
Read on →