Skip to content

Commit df48dfb

Browse files
committed
Fixing center
1 parent 7305ec2 commit df48dfb

12 files changed

Lines changed: 536 additions & 29 deletions

File tree

.python-version

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
3.13

docs/custom.css

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,3 +14,10 @@
1414
width: 100%;
1515
}
1616
}
17+
18+
.centered {
19+
display: block;
20+
margin-left: auto;
21+
margin-right: auto;
22+
text-align: center;
23+
}

docs/posts/2024-11-03-welcome-to-the-jungle/welcome-to-the-jungle.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ As a principal software architect and someone who cares deeply about how we deve
1818

1919
If you are a senior developer, architect, tech lead, or CTO, I invite you on an excursion. We’ll travel winding paths through philosophy, biology, and social sciences to discover new ways of thinking about software development.
2020

21-
<center>![Trekking through rainforest](trekking.jpeg){ width=80% }</center>
21+
![Trekking through rainforest](trekking.jpeg){ .centered width=80% }
2222

2323
What is a software ecosystem? A global multitude of programs, libraries, and operating systems? A whirlpool of interactions between developers, teams, and organizations?
2424

@@ -40,7 +40,7 @@ Removing the flaky character of tests will make the state of the trunk (main bra
4040

4141
A careful, deliberate intervention in the environment by an experienced steward of the ecosystem can have a profound positive impact and make the ecology thrive and flourish.
4242

43-
<center>![Architect in rainforest](architect.jpeg){ width=80% }</center>
43+
![Architect in rainforest](architect.jpeg){ .centered width=80% }
4444

4545
Another lesson that we ought to have learned from biological ecology is that interventions into an environment can have catastrophic consequences. In some cases, we have witnessed how an ignorant action has led to a full collapse of the ecosystem.
4646

@@ -68,7 +68,7 @@ These two approaches represent quite different ecological environments for devel
6868

6969
When Darwin visited the Galápagos Islands in 1835, he noticed how finches had evolved differently on different islands. The isolation of the islands caused a heterogeneity of life forms. This is also true for poly-repo ecologies. They tend to exhibit variations in coding style, build systems, branching strategy, etc. Being isolated, they also exhibit favorable traits like internal cohesion, less complex dependencies, and security by segmentation.
7070

71-
<center>![Paradise islands](islands.jpeg){ width=80% }</center>
71+
![Paradise islands](islands.jpeg){ .centered width=80% }
7272

7373
A monorepo, on the other hand, is a vast rainforest. Life-forms abound and can always immediately interact with each other, especially in watering holes and other nodal points (e.g., the build system). A healthy monorepo is, however, always internally structured in components and parts — it’s not a giant ball of mud. In the jungle, some life forms inhabit the treetops and others the forest floor. In the monorepo, most developer teams spend their time in a niche, a fairly limited set of components and products.
7474

docs/posts/2024-11-06-steal-this-class/steal-this-class.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ To make things worse, much of the advice on Stack Overflow and (LLM output train
1818

1919
Since Ctrl-C, Ctrl-V is the de facto standard programming paradigm, and you are going to do it regardless, consider using these boilerplate classes. They are “copy-paste safe.” They have the right defaults, and they are not missing some essential piece that will get you into trouble later.
2020

21-
<center>![Cute cat](take-this.jpg)</center>
21+
![Cute cat](take-this.jpg){ .centered }
2222

2323
Of course, we have the [C++ Core Guidelines](https://isocpp.github.io/CppCoreGuidelines/CppCoreGuidelines). These are all the defaults and best practices you *should* be using. But, be honest, you’re not going to read those, are you? These are the templates you have been looking for.
2424

@@ -212,6 +212,6 @@ public:
212212

213213
Now, before you get too worked up and start yelling at the screen. I know, there are exceptions to almost all of the recommendations in this post. But they are exceptions. What I have presented are the safe and sane defaults. Your starting point for modern C++.
214214

215-
<center>![Hair of fire](hair-on-fire.jpeg)</center>
215+
![Hair of fire](hair-on-fire.jpeg){ .centered }
216216

217217
<pre><p style="text-align: center; margin-top: 0px; margin-bottom: 4pt;">• • •</p></pre>

docs/posts/2024-12-01-control-is-an-Illusion-anyway/control-is-an-Illusion-anyway.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ Enforcing unconditional and automated formatting before merging is also key. If
9292

9393
The Rosy Reviews process works well for us but it might not be for everyone. Our reviews latency is lower than in many other organization, but it still too high if you ask our developers. If you are curious about going down the eventual quality consistency route, here are some of the challenges we encountered. Consider if this is something that might need special attention in your organization.
9494

95-
<center>![Clueless Revierer](clueless-reviewer.jpeg){ width=50% }</center>
95+
![Clueless Revierer](clueless-reviewer.jpeg){ .centered width=50% }
9696

9797
It doesn't work without reliable tests. If you do "lazy" reviews without tests, you're back to yolo land. That's only fun until it breaks.
9898

docs/posts/2024-12-18-git-beyond-the-basics/git-beyond-the-basics.md

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,9 @@ For instance, if you are not using `git maintenance` or `worktree`, you are miss
1818

1919
Much of the content in this post is straight out of the 2024 FOSDEM talk "So You Think You Know Git?" by the amazing Scott Chacon. Here is that talk and the follow-up "Part 2" from DevWorld 2024. I have cherry-picked the parts that I found most useful from his presentations and mixed them up with some of my own favorite Git features.
2020

21-
<center>
22-
<iframe width="380" height="252" src="https://www.youtube.com/embed/aolI_Rz0ZqY?si=w-fTNQIOv5cjEjoc" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" referrerpolicy="strict-origin-when-cross-origin" allowfullscreen></iframe>
23-
24-
<iframe width="380" height="252" src="https://www.youtube.com/embed/Md44rcw13k4?si=aPogguUMXINligKV" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" referrerpolicy="strict-origin-when-cross-origin" allowfullscreen></iframe>
25-
</center>
21+
<iframe class="centered" width="380" height="252" src="https://www.youtube.com/embed/aolI_Rz0ZqY?si=w-fTNQIOv5cjEjoc" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" referrerpolicy="strict-origin-when-cross-origin" allowfullscreen></iframe>
22+
</br>
23+
<iframe class="centered" width="380" height="252" src="https://www.youtube.com/embed/Md44rcw13k4?si=aPogguUMXINligKV" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" referrerpolicy="strict-origin-when-cross-origin" allowfullscreen></iframe>
2624

2725
Before we get started, make sure you have the latest version of git installed: [https://git-scm.com/](https://git-scm.com/) Some of the things covered in this post are relatively new. If you haven't updated your Git installation for a few years, now is the time.
2826

@@ -36,7 +34,7 @@ Let's start by setting up some nice log formatting and default arguments with a
3634
git config --global alias.l "log --pretty=format:'%C(#cccc00)%h %Cred%ad %Creset%<(60,trunc)%s%C(auto)%d %C(magenta)%<(15,trunc)%an' --date=format:'%y%m%d'"
3735
```
3836

39-
<center>![zlib gitlog color](git-log.png){ width=100% }</center>
37+
![zlib gitlog color](git-log.png){ .centered width=100% }
4038

4139
With formatting out of the way, let's look at some other nice `git log` options.
4240

@@ -108,7 +106,7 @@ While we're at it, let's add some color and a bit more context to the branch out
108106
git config --global alias.b "branch --format='%(color:#cccc00)%(objectname:short) %(color:red)%(committerdate:short) %(color:bold white)%(refname:short)'"
109107
```
110108

111-
<center>![branch alias](git-branch.png){ width=60% }</center>
109+
![branch alias](git-branch.png){ .centered width=60% }
112110

113111
## git push --force-with-lease
114112

@@ -147,7 +145,7 @@ This problem is more common if you have long-lived feature branches or workflows
147145

148146
If you are using Git from the terminal, you might consider adding a bit of ornamentation to your prompt. This is my favorite and it works well for bash.
149147

150-
<center>![zlib gitlog color](git-prompt.png){ width=50% }</center>
148+
![zlib gitlog color](git-prompt.png){ .centered width=50% }
151149

152150
```
153151
git clone https://github.com/magicmonty/bash-git-prompt.git ~/.bash-git-prompt --depth=1
@@ -203,7 +201,7 @@ git commit -m "Adding a bar file"
203201

204202
You then proceed to work and realize that what you are doing should be part of the first commit. You could try to remember this and fix it when you do your interactive rebase later. But you don't have to. You can do a fixup and stay in your development flow. Later, you autosquash the fixup commits and do any further interactive rebasing (if there is still something to do).
205203

206-
<center>![fixup commit](fixup.png){ width=60% }</center>
204+
![fixup commit](fixup.png){ .centered width=60% }
207205

208206
```
209207
echo "fubar" >> foo
@@ -219,7 +217,7 @@ git rebase --autosquash
219217

220218
Maybe the least useful advice in this blog post is also not a git native topic, but a GitHub specific one. But since I know this really trigger some people's OCD, I consider it a public health service. I'm referring to the GitHub language stats for you repo...
221219

222-
<center>![github-linguist](linguist.png){ width=80% }</center>
220+
![github-linguist](linguist.png){ .centered width=80% }
223221

224222
Some times, the tool that GitHub uses `github-linguist` (you can run it locally) need a little help. You can provide hints in a `.gitattributes` file.
225223

docs/posts/2024-12-25-elf-shenanigans/elf-shenanigans.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ As hackers, we some times get a *"what if I just..."* moment. A delightful spark
1818

1919
It turns out, that works like a charm and I have never seen a better looking symbol table!
2020

21-
<center>![console](xmas.gif)</center>
21+
![console](xmas.gif){ .centered }
2222

2323
The assembler complains about silly section names, but putting control characters in a linker script works just fine.
2424

docs/posts/2025-03-31-low-level-talk/low-level.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,4 @@ How low can you go? When it comes to embedded programming, the "full stack" star
1414

1515
<pre><p style="text-align: center; margin-top: 0px; margin-bottom: 4pt;">• • •</p></pre>
1616

17-
<center>
18-
<iframe width="560" height="315" src="https://www.youtube.com/embed/-uZRiTgqQRU?si=0mqLmcUe_uo1zuQb" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" referrerpolicy="strict-origin-when-cross-origin" allowfullscreen></iframe>
19-
</center>
17+
<iframe class="centered" width="560" height="315" src="https://www.youtube.com/embed/-uZRiTgqQRU?si=0mqLmcUe_uo1zuQb" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" referrerpolicy="strict-origin-when-cross-origin" allowfullscreen></iframe>

docs/posts/2025-04-05-bitter-prediction/bitter-prediction.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ For a few days, I had a fantastic time. Then, I didn’t. It wasn’t that the t
2323
I recognized the feeling from a moment in my youth. Back then, I loved playing the game "UFO: Enemy Unknown." The game involved building a global defense network to ward off an alien invasion. Building bases, researching new technologies, and buying weapons were all part of the strategy mechanics. At the same time, I was beginning to explore how software was built. Using a hex editor and a disassembler, I would pick apart things to see how they worked. This was another kind of game that I thoroughly enjoyed. One day, it hit me: the amount of money I had in the game must somehow be stored in the save files! I could use my hex editor to change it.
2424

2525

26-
<center>![xcom](xcom.png){ width=60% }</center>
26+
![xcom](xcom.png){ .centered width=60% }
2727

2828
Sure enough, my plan worked. I awarded myself a generous donation, and for a few hours, I was thrilled. I could buy all the cool stuff I couldn’t afford before and I had no problem fending off the pesky alien invasion. Aliens were no match for my hex editor.
2929

docs/posts/2025-05-19-awesome-apis-talk/awesome-apis.md

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,10 @@ I've recently delivered two talks on *API design best practices for libraries*.
1414

1515
<pre><p style="text-align: center; margin-top: 0px; margin-bottom: 4pt;">• • •</p></pre>
1616

17-
Here is a recording from the ACCU talk 2025 on Apr 3rd.
17+
Here is a recording from the ACCU talk 2025 on Apr 3rd. It's a shorter 20min version.
1818

19-
<center>
20-
<iframe width="560" height="315" src="https://www.youtube.com/embed/crQQjdOARCQ?si=uaF_j_VZqs9FlFzo" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" referrerpolicy="strict-origin-when-cross-origin" allowfullscreen></iframe>
21-
</center>
19+
<iframe class="centered" width="560" height="315" src="https://www.youtube.com/embed/crQQjdOARCQ?si=uaF_j_VZqs9FlFzo" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" referrerpolicy="strict-origin-when-cross-origin" allowfullscreen></iframe>
2220

23-
Here is a recording from the Stockholm C++ Meetup on May 8th. This is a longer version of the talk with a lot of interaction and participation from the audience.
21+
Here is a recording from the Stockholm C++ Meetup on May 8th. This is a longer version of the talk with a lot of interaction and participation from the audience. Unfortunately the audio of audience comments is a bit lacking.
2422

25-
<center>
26-
<iframe width="560" height="315" src="https://www.youtube.com/embed/myoXUpnvfeA?si=hzjJTk2C6f6n4jr0" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" referrerpolicy="strict-origin-when-cross-origin" allowfullscreen></iframe>
27-
</center>
23+
<iframe class="centered" width="560" height="315" src="https://www.youtube.com/embed/myoXUpnvfeA?si=hzjJTk2C6f6n4jr0" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" referrerpolicy="strict-origin-when-cross-origin" allowfullscreen></iframe>

0 commit comments

Comments
 (0)