Author: Bian Xi

Terminology index – a list of bike part names and cycling concepts (Cache)

Terminology index - a list of bike part names and cycling concepts (Cache)

This is a cached page of https://bicycles.stackexchange.com/questions/244/terminology-index-a-list-of-bike-part-names-and-cycling-concepts.

Page Cached

There's a handy reference at the Park Tool Co. website, a bike repair map; it's a diagram of a bike with all the parts labeled, and is very handy! At the moment, the diagram is up at parktool.com/blog/repair-help. (They've changed the URL in the past, so this link may break.)

A road bike has the following parts (source):

bicycle_parts_labeled.jpg

A mountain bike has the following parts (source):

850px-Bicycle_diagram-en.svg_.png


Edit: This page is meant to identify what things or concepts are (as per this thread in meta). If you want to recommend an accessory or a specific product you've found handy, please use the accessories page.


Contents
Axle Axle Nuts
BCD (Bolt Circle Diameter)
Bearing
Belt Drive
Bidon/Bottle
Bonk/Bonking
Bottle Cage / Bottle Holder
Bottom Bracket
Boom/Boom Tube
Brazed Frame
Brifter
BSD (Bead Seat Diameter)
BSO/Bike-Shaped-Object
Cable Pull
Cable Stretcher
Cadence
Cassette
Chain
Chain Gauge
Chain Guard/Cover
Chain Tool
Chain Tug/Chain Tensioner
Chainstay Length
Chainsuck
Chamois
Clipless Pedals
Coaster Brake (foot brake / pedal brake)
Crank
Derailleur
Derailer Hanger/Derailleur Ranger
Direct Drive
Disk/Disc Brake
Disc Hub
Door Zone
Dropout
Dropper Post
Dunlop Valve
e
Engine/Motor
Electronic shifting
Eccentric
Fender/Mudguard/Mudflaps
Fixed-Gear
Flip-Flop Hub
Folding Bike
Frame
Frame Sizing
Gear Inches Groupset
Handlebars
Headset
Hose Clamp aka Jubilee Clip
Hub
Hub Skewer
Internally-Geared Hub
j
Keel Tube
Lawyer lips/lawyer tabs
Lateral Tube
LBS/Local Bike Shop
Lights
Luggage Carrier/Rack
Lugged Frame
Master Link
MIPS
Mixte
Mountain Bike
n
Noodle
o
Over Locknut Dimension or OLD
Pannier
Play
Power Meter
Presta Valve/Presta Tube
Pump Peg
Q-Factor Quick-Release
Recumbent Cycles
REI (Recreational Equipment Inc)
Rim
Rim Tape
Rim Brakes, e.g. cantilever, dual pivot, V-brakes
Saddle
Saddlebag
Schrader Valve/ Schrader Tube
Shaft Drive
Single-speed
Skewer
Spider
Spoke
Stay, Mudguard/fender
Stem
Suspension Fork/Rear Shock
Through/Thru Axle
Tire, Clincher
Tire, Tubeless
Tire, Tubular
Tire, Solid/airless/runflat
Tire Boot
Tire Clearance
Tire Lever/Tire Iron
Tire Saver
Tire Sealant
Tolerances
Track Pump/Floor Pump
Triathalon Bars/Triathlon Bars
u
U-Brake
V-Brake
Velomobile
Welded Frame
x
y
z

References

Terminology index - a list of bike part names and cycling concepts

2021-12-26 – Changed to cheap shoes got better performance – First time

2021-12-26 - Changed to cheap shoes got better performance - First time

After changed shoes, which is only SGD15, from Decathlon, performance is quite good compare with my old Nike, quite surprise. In fact, the distance should be also a bit longer as recorded in other days, I always jogging in same route.

Result

Just changed cheap shoes

Learning – Hugo – Static Site Generator

Learning - Hugo - Static Site Generator

Installation

Windows

hugo version

MacOS

  • Install Homebrew

  • Install hugo

brew install hugo
hugo version

Create a new site

hugo new site <site_name>

Then the folder created.

Site contents

  • archetypes - data type
  • content
  • data
  • layouts
  • static
  • themes
  • config.toml

Theme

theme = "ga-hugo-theme"

Create content

hugo new a.md
hugo new dir1/b.md

Run hugo in draft mode

hugo server -D

Single content

Display one page content.

List content

List other single contents in the page. The list page for Level 1 directories are automatically created hugo.

Manually create list page

Force hugo create list page, create _index.md file in the directory, and update the content of _index.md file will show on the list page

hugo new dir1/dir2/_index.md

Front Matter

YAML

---
title: "title"
date: 2017-...
draft: true
---

TOML

+++
title = "title"
date = 2017-...
draft = true
+++

Archetypes

The file archetypes/default.md has the template of new files.

---
tltle: "{{ replace .TranslationBaseName "-" " " | title }}"
date: {{ .Date }}
draft: true
---

The template file can be named as directory name, such as dir1.md, it will be used for contents created in dir1

hugo new dir1/b.md

Shortcodes

The predefined shortcodes can be found in hugo shortcode page, it also can be customized using shortcode template.

{{< youtube w7Ft2ymGmfc >}}

Taxonomies

Tags and categories

---
tags: [ "tag1", "tag2", "tag3"]
categories: [ "cat1"]
---

The tags and categories will be shown in contents if using learning theme.

Access tags and categories from page

https://localhost:1313/tags/tag1/
https://localhost:1313/categories/cat1/

Custome taxonomy

In content file

---
Moods: [ "Happy", "Upbeat" ]
---

In config.toml file

[taxonomies]
  tag = "tags"
  category = "categories"
  mood = "moods"

Note: If taxonomies session exists in config.toml file, then tag and category also must be included.

  • Restart hugo server

Template Basics

Theme template

Templates are in themes/ga-hugo-theme/layouts/_default. The list.html is for list page, the single.html is for single page.

Custome template

List page

Create in layouts/_default/list.html

<html>
<head>
  <meta charset="UTF-8">

  <title>Document</title>
</head>
<body>
  {{.Content}}
  <ul>
    {{ range .Pages }}
      <li><a href="{{.URL}}">{{.Title}}</a></li>
    {{end}}
  </ul>
</body>
</html>

Single page

Create in layouts/_default/page.html

<html>
<head>
  <meta charset="UTF-8">

  <title>Document</title>
</head>
<body>
  <h1>Header</h1>
  <h3>{{.Title}}</h3>
  <h4>{{.Date}}</h4>
  {{.Content}}
  <h2>Footer</h2>
</body>
</html>

Home page

Home page is a special list page. Create in layouts/index.html.

Section template

Create in layouts/_default/<dir_name>/single.html, which replace the template for files in <dir_name>.

Base Templates & Blocks

Create in layouts/_default/baseof.html, it is the template for all pages.

<html>
<head>
  <meta charset="UTF-8">

  <title>Document</title>
</head>
<body>
  Top of baseof
  <hr>
  {{ block "main" . }}

  {{end}}

  {{ block "footer" . }}
  <br>
  {{end}}
  <hr>
  Bottom of baseof
</body>
</html>

The create layouts/_default/single.html

{{ define "main" }}
  This is the single template
{{end}}
{{ define "footer" }}
  This is the single footer
{{end}}

The create layouts/_default/list.html

{{ define "main" }}
  This is the list template
{{end}}

Note: no overwrite in layouts/_default/list.html for footer.

Variables

Hugo variables only can be used in templates in layout.

For example:

<h1 style="color: {{ .Params.color }}">Single Template</h1><hr><br>

{{ .Title }} {{ .Date }} {{ .URL }}
{{ .Params.myVar }}

The myVar and color are custom variables defined in markdown file

---
myVar: "myValue"
color: "blue"
---

Define in template

{{ $myVarName := "string value" }}

<h1>{{ $myVarName }}</h1>

https://gohugo.io/variables

Function

Hugo functions only can be used in templates in layout.

{{ funcName param1 param2 }}

For example:

{{ truncate 10 "This is a very long string" }}
{{ add 1 5 }}
{{ sub 1 5 }}
{{ singularize "dogs" }}
{{ range .Pages }}
  {{ .Title }} <br>
{{ end }}

https://gohugo.io/functions

If Statements

{{ $var1 := "dog" }}
{{ $var2 := "cat" }}

{{ if not (eq $var1 $var2) }}
  True
{{ else if ... }}
{{ else }}
  False
{{ end }}
{{ if and (lt $var1 $var2) (lt $var1 $var3) }}
eq
lt
le
gt
ge
not
{{ $title := .Title }}
{{ range .Site.Pages }}
  <li><a href="{{.URL}}" style="{{ if eq .Title $title }} background-color:yellow; {{end}}">{{.Title}}</a></li>
{{ end }}

Data Files

The JSON, YAML, TOML files, for example, data/states.json

{{ range .Site.Data.states }}
  {{.name}} <br> {{.capital}}
{{end}}

Partial Templates

Header, footer, etc. Create file in layouts/partials/header.html

<h1>{{.Title}}</h1>
<p>{{.Date}}</p>
<hr>
<br>

In layouts/_default/single.html

{{ partial "header" . }}
<h1>Single Template</h1><hr><br>

Note: The . after "header" is indicating the entire scope of variables.

Custom dictionary

<h1>{{.myTitle}}</h1>
<p>{{.myDate}}</p>
<hr>
<br>

In layouts/_default/single.html

{{ partial "header" (dict "myTitle" "myCustomTitle" "myDate" "myCustomDate")}}
<h1>Single Template</h1><hr><br>

Note: It is the same as myTitle := myCustomTitle, myDate := myCustomDate

Shortcode Templates

Shortcode is used in markdown file, created in layouts/shortcodes.

Using variable name

For example, layouts/shortcodes/myshortcode.html

This is my shortcode file.
<p style="color: {{.Get `color`}}">This is the frameworks text</p>

Note: the " is replaced to "`"

In markdown file

{{< myshortcode color="blue">}}

Using variable number

For example, layouts/shortcodes/myshortcode.html

This is my shortcode file.
<p style="color: {{.Get 0}}">This is the frameworks text</p>

Note: the " is replaced to "`"

In markdown file

{{< myshortcode blue >}}

Multiple lines

In markdown file

{{< myshortcode >}}
  This is the text inside the shortcode tags
{{< /myshortcode >}}

In template file

<p style="background-color: yellow;">{{.Inner}}</p>

If you want to use markdown in shortcode, do follow

{{% myshortcode %}}
  **bold text**
{{% /myshortcode %}}

Building your site

huge server -D

If you just want to build the site into public folder

huge

Note: delete public folder first.

References

Hugo - Static Site Generator | Tutorial

LXC/LXD vs Docker

LXC/LXD vs Docker

Proxmox supports LXC, TrueNAS supports kubernates. The difference between LXC and docker container is, the LXC runs full OS without kernel, docker container only runs application.

Persistent docker container

Docker container also can be saved as image to be used next time. But the execution parameters can not be saved. To relaunch again, docker compose file can be a good choice if no change after container created.

LXC is persistent

LXC is a running VM sharing kernel and drivers with host, so OS and it's configue are in LXC.

The disadvantages of LXC are

References

LXC/LXD vs Docker Which is better?
Linux Container (LXC) Introduction

Turn on Hibernate in Windows 11

Turn on Hibernate in Windows 11

In post Turn on Hibernate in Windows 10, describe how to turn on Hibernate in Windows 10.

In Windows 11, even click on Change settings that are currently unavailable, Hibernate option is still missing.

Enable command

Run following command in Administrator command line to show the Hibernate option

powercfg /h /type full

References

How to Enable Hibernate Mode on Windows 11