[TOC]

This blog is eleven years old. It has survived Octopress, Jekyll 2, Jekyll 3, a
couple of domain moves, and now — a rebuild on VitePress.

What I want to share today isn't "here's my new blog". It's the process: how
a legacy static site gets modernized step by step, without breaking a single old
URL, and where I'm planning to take it next — including turning the blog layer
into a reusable, Jekyll-like logging system powered by VitePress.

Read on

📱 Download NueZip on App Store | 🌐 Official Website

Download NueZip on the App Store → | Visit Official Website →

If you're looking for an archive utility for Mac, you've probably already heard of Keka, The Unarchiver, or BetterZip.

So when I started building NueZip, one question came up almost immediately:

"Why build another archive app when there are already so many good ones?"

It's a fair question.

In fact, I used many of these tools myself before starting NueZip.

Keka is mature and reliable. The Unarchiver is excellent at opening archives. BetterZip provides powerful tools for users who need more control.

So NueZip wasn't born because I thought those products were bad.

Quite the opposite.

Read on
Comments

group_concat 只能与groupby连用,分组查询常用场景

场景一:

用户角色关系, 用户表,角色表,用户角色表。 用户可以拥有多个角色。查询所有用户并附带出他们所属的角色。

场景二:

文章标签关系,文章表,标签表,文章标签关系表。查询所有文章并附带出他们所属的标签。

Read on

在好久好久之前,前端的概念是模糊的。前端就是页面仔,切图仔。前端的任务就是把html跟js写好,然后丢给后端套数据。基本传统的MVC,smarty View。

assign->('data', $data)

这些也给后端做了。或者前端就丢给UI(美工)做,前端是不存在的。

Read on

像软件加密与解密一样,javascript的混淆与解混淆同属于同一个范畴。道高一尺,魔高一丈。没有永恒的黑,也没有永恒的白。一切都是资本市场驱动行为,现在都流行你能为人解决什么问题,这个概念。那么市场究竟能容纳多少个能解决这种问题的利益者。JS没有秘密。

其实本人不赞成javascript进行hash混淆处理,一拖慢运行时速度,二体积大。JS代码前端可获取,天生赋予“开源”属性,都可以在chrome devTools下查看。JS非压缩性混淆完全违法前端优化准则。

Read on
Comments

[译]

预计阅读时间:10分钟

在此页面上,您将构建一个在Docker Compose上运行的简单Python Web应用程序。该应用程序使用Flask框架并在Redis中维护一个命中计数器。虽然该示例使用Python,但即使您不熟悉它,此处演示的概念也应该是可以理解的。

预先准备

确保您已经安装了 Docker EngineDocker Compose. 您不需要安装Python或Redis,因为两者都是由Docker镜像提供的。

Read on
Comments

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

Read on
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