From 839606f70c2a464367e14a569b767a55039c359e Mon Sep 17 00:00:00 2001 From: Bruno Carlin Date: Mon, 16 Jun 2025 02:38:40 +0200 Subject: [PATCH] feat: add post number in slugs --- content/blog/001-setup-nginx-for-mediawiki.md | 2 +- content/blog/002-build-pgpool-on-debian.md | 2 +- .../blog/003-aptana-eclipse-and-xulrunner.md | 2 +- content/blog/004-locking-buzhug.md | 17 ++++------------- ...open-sublime-text-projects-in-a-directory.md | 2 +- content/blog/006-discourse-without-docker.md | 2 +- .../007-prepare-for-the-next-internet-outage.md | 2 +- 7 files changed, 10 insertions(+), 19 deletions(-) diff --git a/content/blog/001-setup-nginx-for-mediawiki.md b/content/blog/001-setup-nginx-for-mediawiki.md index 59f403e..46a9dc1 100644 --- a/content/blog/001-setup-nginx-for-mediawiki.md +++ b/content/blog/001-setup-nginx-for-mediawiki.md @@ -4,7 +4,7 @@ date: "2010-09-15T00:00:00+02:00" tags: - Nginx - Mediawiki -slug: setup-nginx-for-mediawiki +slug: 1-setup-nginx-for-mediawiki summary: > A simple configuration to serve Mediawiki with Nginx and FastCGI --- diff --git a/content/blog/002-build-pgpool-on-debian.md b/content/blog/002-build-pgpool-on-debian.md index 03c0983..3c9587a 100644 --- a/content/blog/002-build-pgpool-on-debian.md +++ b/content/blog/002-build-pgpool-on-debian.md @@ -2,7 +2,7 @@ title: Build the latest PgPool-II on Debian Etch date: "2010-12-14T00:00:00+01:00" tags: [Debian, PgPool-II] -slug: build-pgpool-on-debian +slug: 2-build-pgpool-on-debian summary: > Building PgPool-II on RHEL 5.5 to avoid the "libpq is not installed or libpq is old" error diff --git a/content/blog/003-aptana-eclipse-and-xulrunner.md b/content/blog/003-aptana-eclipse-and-xulrunner.md index 5ba563d..bee72d2 100644 --- a/content/blog/003-aptana-eclipse-and-xulrunner.md +++ b/content/blog/003-aptana-eclipse-and-xulrunner.md @@ -1,5 +1,5 @@ --- -slug: aptana-eclipse-and-xulrunner +slug: 3-aptana-eclipse-and-xulrunner title: Aptana Studio/Eclipse and Xulrunner tags: [Aptana Studio, Eclipse, Xulrunner, Arch Linux] date: "2011-12-16T00:00:00+01:00" diff --git a/content/blog/004-locking-buzhug.md b/content/blog/004-locking-buzhug.md index 47616b3..13f7cce 100644 --- a/content/blog/004-locking-buzhug.md +++ b/content/blog/004-locking-buzhug.md @@ -1,6 +1,6 @@ --- tags: [Python, Buzhug, Database, Locks] -slug: locking-buzhug +slug: 4-locking-buzhug title: Locking Buzhug date: "2012-02-07T00:00:00+01:00" summary: > @@ -13,8 +13,7 @@ a few gotchas. [Buzhug]: http://buzhug.sourceforge.net -Simple solutions are often the best -=================================== +## Simple Solutions Are Often The Bests I came to use Buzhug for the following requirements: @@ -37,10 +36,7 @@ After a quick prototyping (1 day), the choice was done. Then came a few weeks of development and the first stress tests... - -And the real world came back fast -================================= - +## And The Real World Came Back Fast A few times a day, the application backed by this database is intensely used: @@ -54,9 +50,7 @@ Using `buzhug.TS_Base` instead of `buzhug.Base` did not solve anything, as the problem is not thread, but processes. What I need is a system-wide cross-process lock. - -Here is the answer -================== +## Here Is The Answer First step was to find how to implement a cross-process, system-wide lock. As it only has to work on Linux, the @@ -64,7 +58,6 @@ As it only has to work on Linux, the Vmfarms](http://blog.vmfarms.com/2011/03/cross-process-locking-and.html) fits perfectly. Here is a version slightly modified to make it a context manager : - {{< highlight python >}} import fcntl @@ -99,7 +92,6 @@ class PsLock: The second step is to define a new class that inheritates from `buzhug.Base` that uses `PsLock` (inspired by `TS_Base`): - {{< highlight python >}} import buzhug @@ -174,5 +166,4 @@ Now I just use database = PS_Base( ... ) {{< /highlight >}} - And all the errors have vanished. diff --git a/content/blog/005-automatically-open-sublime-text-projects-in-a-directory.md b/content/blog/005-automatically-open-sublime-text-projects-in-a-directory.md index 6fae330..ba4ec63 100644 --- a/content/blog/005-automatically-open-sublime-text-projects-in-a-directory.md +++ b/content/blog/005-automatically-open-sublime-text-projects-in-a-directory.md @@ -1,6 +1,6 @@ --- tags: [Sublime Text 2] -slug: automatically-open-sublime-text-projects-in-a-directory +slug: 5-automatically-open-sublime-text-projects-in-a-directory title: Automatically open Sublime Text projects in a directory date: "2013-05-15T00:00:00+02:00" summary: > diff --git a/content/blog/006-discourse-without-docker.md b/content/blog/006-discourse-without-docker.md index 97a7948..8823541 100644 --- a/content/blog/006-discourse-without-docker.md +++ b/content/blog/006-discourse-without-docker.md @@ -1,6 +1,6 @@ --- title: Discourse without Docker -slug: discourse-without-docker +slug: 6-discourse-without-docker date: "2016-06-27T00:00:00+02:00" tags: [discourse, docker] summary: Detailed instructions on how to install Discourse and plugins without Docker. diff --git a/content/blog/007-prepare-for-the-next-internet-outage.md b/content/blog/007-prepare-for-the-next-internet-outage.md index 3532e6b..83f7249 100644 --- a/content/blog/007-prepare-for-the-next-internet-outage.md +++ b/content/blog/007-prepare-for-the-next-internet-outage.md @@ -1,6 +1,6 @@ --- title: 'Prepare for the Next Internet Outage' -slug: 'prepare-for-the-next-internet-outage' +slug: '7-prepare-for-the-next-internet-outage' date: '2025-06-14T04:05:48+02:00' tags: [architecture, cloud] summary: >