慶祝 blog 2 歲誕!
來看看我今年做了些什麼吧:

其實每次做新功能的時候我都會寫一篇文章啦,基本上技術討論大部分都是用英文寫的。畢竟很多術語我都不知道中文要怎麼翻,所以索性用英文直接寫好了。

那麼接下來我簡略介紹一下這些功能吧:

Lastlog

>> Lastlog 原文
這是一個簡單的 Brute force 攔截器,登入失敗 n 次之後 IP 就會被鎖定,無法登入。

FastCache

>> FastCache 原文
我應該有討論過幾次關於這個 blog 的 front-end 技術吧?BotanJs 的起源於三年前的 這則文章 。簡單來説是一個整合就是一個 Front-end Service API

可以像這樣透過 API 取得相應模組:
請求 Js: http://SERVICE_URI/rjs/Components.Vim.VimArea
請求 Css: http://SERVICE_URI/rcss/Components.Vim.VimArea

而這裏的 FastCache 就是將請求的結果 Cache 下來,以提升 blog 的回應速度。

PageCache

>> PageCache 原文
因為我一直以來都不滿意 blog 的載入速度,所以一直都在想辦法怎麼讓 blog 跑得快一點 —— 而這個 PageCache 則是最終武器。原理就是將靜態的頁面 Cache 下來,並直接對照 Url 跟內容,求效率達至 O(n).

做的時候卻發現了沒這麼簡單,例如登入的 session 不可以使用 cache ,單這一點就沒辦法做到真正的 O(n) 了,因為在傳回 Cache 之際得做各種檢查決定是否利用 Cache。還得考慮登入之後和什麼清況下的頁面不能 cache 等等,其實還滿難做的啦。

Email Notifications

>> Email Notifications 原文
這個很難做的喔,沒記錯好像做了一個星期。現在各位回覆時候應該有看到一個 電郵地址 的欄位吧,旁邊會有一個「以電郵通知我」的 checkbox :

就是字面意思,如果有回覆的話 blog 就會寄電郵到指定地位通知。聽起來簡單,其實背後有很多東西要做呢!例如要先寄一封驗證的電郵啦,另外還需要讓用戶可以管理自己的通知。又因為無需登入,怎麼識別用戶也是一個難題。

其實這個 blog 沒什麼人看,所以這也只是做來自 high 的東西就是了 ww

***

那麼這次的回顧先到這裏,不知道下次我會搞出些什麼來?

今年的 commit
* 4708d1a 4 days ago [斟酌 鵬兄] | Added Meta Tags support  (origin/master, master)
* 3729bc4 8 weeks ago [斟酌 鵬兄] | Added Archived Flag
* a1bca18 9 weeks ago [斟酌 鵬兄] | Disallow root tags
* a45fed8 2 months ago [斟酌 鵬兄] | Added wp-admin pages
* fc0d405 3 months ago [斟酌 鵬兄] | Fixed section button link error
* 74b399d 3 months ago [斟酌 鵬兄] | Fixed page cache issue
* 65f253e 3 months ago [斟酌 鵬兄] | update license
* c9495ef 3 months ago [斟酌 鵬兄] | favicon should be handled by apache
* 1cd90f1 3 months ago [斟酌 鵬兄] | Optimized the meta tags a bit
* b0898b5 3 months ago [斟酌 鵬兄] | Default secHref fix
* 665d9fe 3 months ago [斟酌 鵬兄] | Should set secHref to defaultSection if not found
* fae11e0 3 months ago [斟酌 鵬兄] | Allow RSS to retrieve archived articles
* 4380e11 3 months ago [斟酌 鵬兄] | Profile add GReaper
* e9f6349 3 months ago [斟酌 鵬兄] | Update About Page
* cdd96b2 3 months ago [斟酌 鵬兄] | Proper section buttons links in Archived listings
* afd4721 3 months ago [斟酌 鵬兄] | 404 if no articles are found
* 36cc925 3 months ago [斟酌 鵬兄] | Fixed Tag html format error
* df58458 4 months ago [斟酌 鵬兄] | Viewport with device-width
* 471caeb 5 months ago [斟酌 鵬兄] | worker.suicide is deprecated
* 2564f41 5 months ago [斟酌 鵬兄] | Guests Reply Subscription impl
* 95a2dce 5 months ago [斟酌 鵬兄] | Bad request in file download
* 441ab11 5 months ago [斟酌 鵬兄] | Do not store cache when logged in
* bd8702c 5 months ago [斟酌 鵬兄] | PageCache impl
* 013c1fb 6 months ago [斟酌 鵬兄] | Fixed NS for daemon-archive
* 81c1335 6 months ago [斟酌 鵬兄] | Production config
* 37d228b 6 months ago [斟酌 鵬兄] | Finally added Contact function
* c88b594 6 months ago [斟酌 鵬兄] | Show section for current article
* 3411ecc 6 months ago [斟酌 鵬兄] | Catch SIGHUP to reload logs
* 32369de 6 months ago [斟酌 鵬兄] | Fixed tags/sections not being trimmed
* a98fb02 7 months ago [斟酌 鵬兄] | fixed favicon routing handler
* 778a992 7 months ago [斟酌 鵬兄] | Thumbnailer bugfix
* 5083c40 8 months ago [斟酌 鵬兄] | npm modules & framework update
* 8208f91 8 months ago [斟酌 鵬兄] | Escape CDATA
* 97cd68e 8 months ago [斟酌 鵬兄] | Prevent xml CDATA injection
* a7b55f2 9 months ago [斟酌 鵬兄] | RSS Summarizer
* 264ccce 9 months ago [斟酌 鵬兄] | Lastlog should use x-forwarded-for
* c20772c 9 months ago [斟酌 鵬兄] | UA Crash bug
* 7e5721c 9 months ago [斟酌 鵬兄] | Added meta desc for spiders
* a79040f 9 months ago [斟酌 鵬兄] | Disallow 360Spider
* e84dab1 9 months ago [斟酌 鵬兄] | Cannot redirect to chinese title
* 7f7545c 9 months ago [斟酌 鵬兄] | Disposing the slow regex
* 6767c00 9 months ago [斟酌 鵬兄] | breadcrumb don't need to be escaped again
* 1b39ccb 9 months ago [斟酌 鵬兄] | Added secHref, RSS remove reference content wrapper
* 2857273 9 months ago [斟酌 鵬兄] | Should encode the secUri for href
* 166854f 9 months ago [斟酌 鵬兄] | Restructuring useful resources to submodule
* 76276f8 9 months ago [斟酌 鵬兄] | Disallow the baiduspider
* 3255b7d 9 months ago [斟酌 鵬兄] | Added templating options to not strip the texts
* 0adeddd 9 months ago [斟酌 鵬兄] | Added robots.txt
* d0ea78d 9 months ago [斟酌 鵬兄] | Session: expire() args is not taken correctly
* 567684a 10 months ago [斟酌 鵬兄] | Fastcache impl using Redis
* fbf069f 10 months ago [斟酌 鵬兄] | fixed cronjob require path error
* 06cf121 10 months ago [斟酌 鵬兄] | Fixed AstroEdit for "Exit and goto article"
* 98c4367 10 months ago [斟酌 鵬兄] | Fixed usercomment anchor jump, added title
* 7b4b25a 10 months ago [斟酌 鵬兄] | ArticleReference, ArticleContent mapping bugfix
* 3781fb3 11 months ago [斟酌 鵬兄] | Fixed the login due a infrastructure bug
* 4e3fa3a 11 months ago [斟酌 鵬兄] | framework update
* 64be25b 11 months ago [斟酌 鵬兄] | Fixed some ES6 deprecations
* 5967d11 11 months ago [斟酌 鵬兄] | tag fix, article content snippet
* 1be42d0 12 months ago [斟酌 鵬兄] | Framework update
* c8b00e5 12 months ago [斟酌 鵬兄] | youtube should use https
* df62c3e 12 months ago [斟酌 鵬兄] | Multiline comments
* d553b3e 12 months ago [斟酌 鵬兄] | Need to decode section button uri
* 6452ef7 12 months ago [斟酌 鵬兄] | Wrong fix
* 5b57b9f 12 months ago [斟酌 鵬兄] | Fixed double encoded secUri
* dcae4f3 12 months ago [斟酌 鵬兄] | Should set ttr only in banned mode
* 9f785bd 12 months ago [斟酌 鵬兄] | Added sTTR
* e31dca0 12 months ago [斟酌 鵬兄] | Lastlog feature
Profile picture
斟酌 鵬兄
Mon Mar 13 2017 02:35:42 GMT+0000 (Coordinated Universal Time)
Last modified: Tue Apr 11 2017 14:52:09 GMT+0000 (Coordinated Universal Time)
Comments
No comments here.
Do you even comment?
website: 
Not a valid website
Invalid email format
Please enter your email
*Name: 
Please enter a name
Submit
抱歉,Google Recaptcha 服務被牆掉了,所以不能回覆了