The Wiert Corner – irregular stream of stuff

Jeroen W. Pluimers on .NET, C#, Delphi, databases, and personal interests

  • My badges

  • Twitter Updates

  • My Flickr Stream

  • Pages

  • All categories

  • Enter your email address to subscribe to this blog and receive notifications of new posts by email.

    Join 1,860 other subscribers

Archive for September, 2022

Note (typography) – Wikipedia; Footnote – PrintWiki

Posted by jpluimers on 2022/09/30

For my reference:

Typographical devices such as the asterisk (*) or dagger (†) may also be used to point to notes; the traditional order of these symbols in English is *, †, ‡, §, ‖, ¶.[1] Other symbols, including the #, Δ, ◊, ↓, and ☞, have also been used.[2][3]

Source: Note (typography) – Wikipedia

The most common sequence of footnote reference marks is:

  1. asterisk (*),
  2. dagger (†),
  3. double dagger (††),
  4. paragraph symbol (¶),
  5. section mark (§),
  6. parallel rules (||),
  7. number sign (#).

If more are required, they can be doubled up:

  • double asterisks (**),
  • double single daggers (††),
  • double double daggers (††††),
  • etc.

However, when many footnotes are used, it is more practical to use consecutive numbers to identify each footnote.

Source: [Wayback/Archive.is] Footnote – PrintWiki

–jeroen

Posted in LifeHacker, Power User | Leave a Comment »

Git (even recent versions) hanging after “Resolving deltas: 100%”

Posted by jpluimers on 2022/09/29

If you ever come across git hanging after completing “Resolving deltas: 100%“, then remember this can still happen with recent git versions; the below output was with git version 2.24.1.windows.2.

C:\bin>git clone https://wiert@gitlab.com/wiert.me/private/Windows/bin.git
Cloning into 'bin'...
remote: Enumerating objects: 74, done.
remote: Counting objects: 100% (74/74), done.
remote: Compressing objects: 100% (54/54), done.
remote: Total 1063 (delta 30), reused 39 (delta 15)
Receiving objects: 100% (1063/1063), 26.74 MiB | 516.00 KiB/s, done.
Resolving deltas: 100% (385/385), done.

or (after pressing Ctrl-C):

C:\bin>git clone https://wiert@gitlab.com/wiert.me/private/Windows/bin.git
Cloning into 'bin'...
remote: Enumerating objects: 74, done.
remote: Counting objects: 100% (74/74), done.
remote: Compressing objects: 100% (54/54), done.
remote: Total 1063 (delta 30), reused 39 (delta 15)
Receiving objects: 100% (1063/1063), 26.74 MiB | 516.00 KiB/s, done.
Resolving deltas: 100% (385/385), done.
fatal: index-pack failed

Retry after a while

Sometimes this is as easy as waiting until the remote system comes to its senses. In this case, waiting some 8 hours resolved it:

C:\bin>git clone https://wiert@gitlab.com/wiert.me/private/Windows/bin.git
C:\bin>git clone https://wiert@gitlab.com/wiert.me/private/Windows/bin.git
Cloning into 'bin'...
remote: Enumerating objects: 74, done.
remote: Counting objects: 100% (74/74), done.
remote: Compressing objects: 100% (54/54), done.
remote: Total 1063 (delta 30), reused 39 (delta 15)
Receiving objects: 100% (1063/1063), 26.74 MiB | 748.00 KiB/s, done.
Resolving deltas: 100% (385/385), done.

In my case this worked, even though GitLab did not show any problems in their status history: [WayBack] GitLab System Status History.

I waited (and succeeded) because of [WayBack] git – How to solve’fatal: index-pack failed’? – Stack Overflow.

Check the index and get the most recent

Some links that I want to check out later:

Searches

–jeroen

Posted in Development, DVCS - Distributed Version Control, git, Software Development, Source Code Management | Leave a Comment »

LPRng: RESOURCES – PostScript, Epson, HP, Xerox, PPD, etc

Posted by jpluimers on 2022/09/28

When writing Some links on PostScript books and online content, back from the days, I archived [Wayback] Index of /RESOURCES from the site hosting the [Wayback/Archive.is] LPRng Web Page (see also LPRng on Wikipedia):

The LPRng software is an enhanced, extended, and portable implementation of the Berkeley LPR print spooler functionality. While providing the same interface and meeting RFC1179 requirements, the implementation is completely new and provides support for the following features: lightweight (no databases needed) lpr, lpc, and lprm programs; dynamic redirection of print queues; automatic job holding; highly verbose diagnostics; multiple printers serving a single queue; client programs do not need to run SUID root; greatly enhanced security checks; and a greatly improved permission and authorization mechanism.

The source software compiles and runs on a wide variety of UNIX systems, and is compatible with other print spoolers and network printers that use the LPR interface and meet RFC1179 requirements.

Subdirectories (the PPD one goes one level deeper with both files and directories; XEROX just has a subdirectory with one file):

–jeroen

Posted in Development, EPS/PostScript, Hardware, HP Printer Drivers, Power User, Printer drivers, Printers, Software Development, Windows | Leave a Comment »

The Hardware Hacking Handbook | No Starch Press

Posted by jpluimers on 2022/09/27

Want: [Wayback] The Hardware Hacking Handbook | No Starch Press

The Hardware Hacking Handbook

Breaking Embedded Security with Hardware Attacks
by Colin O’Flynn and Jasper van Woudenberg
November 2021, 512 pp.
ISBN-13:
9781593278748
Print Book (PREORDER) and FREE Ebook, $49.99
Ebook (PDF, Mobi, and ePub), $39.99
Hardware Hacking Handbook Cover

Via:

Some topics in the book are listed in [Archive.is] Colin O’Flynn on Twitter: “A random thread about a few things that @jzvw and I packed into The Hardware Hacking Handbook (note – this twitter thread is an advertisement, don’t be tricked into thinking this will be some nice useful stand-alone content). Roughly following book order:”.

–jeroen

Read the rest of this entry »

Posted in Development, Hardware, Hardware Development, IoT Internet of Things, Network-and-equipment, Power User | Leave a Comment »

Krapte op de arbeidsmarkt? Kom eens van jullie luie gat, werkgevers! – NRC

Posted by jpluimers on 2022/09/26

Interessant stuk van Japke: [Wayback/Archive] Krapte op de arbeidsmarkt? Kom eens van jullie luie gat, werkgevers! – NRC

Via: [Wayback/Archive] Japke-d. Bouma on Twitter: “Krapte op de arbeidsmarkt? Ontsla je ‘HR’-afdeling.”

Geralateerd:

Read the rest of this entry »

Posted in Awareness | Leave a Comment »

Isotopp’s classic IT book collection

Posted by jpluimers on 2022/09/26

This is too cool!

PSTN, ISDN, data communication, networking, Sendmail, Postfix, Exim, C, C++, Unix, Linux you name ancient but relevant stuff and it is there.

  1. [Archive.is] Kristian Köhntopp on Twitter: “Ich hab hier diese …… “
  2. [Archive.is] Kristian Köhntopp on Twitter: “Exotische Sprachen sind exotisch. Aus dem Postscript-Buch hab ich immerhin noch eine Signature bekommen. … “

Some pictures below the signature.

The isotopp and PostScript explanation is in my post How isotopp became the online handle of Kristian Köhntopp.

Via: [Archive.is] Kristian Köhntopp on Twitter: “Weird Books: … “

–jeroen

Read the rest of this entry »

Posted in History, Retrocomputing | Leave a Comment »

Jan Tessel heeft een handboek geschreven ‘Kiezen van geschikte warmtepomp’; kost inclusief verzendkosten weinig: handig materiaal!

Posted by jpluimers on 2022/09/23

Voor als je je wilt voorbereiden om te zien welke warmtepomp je het beste kunt bestellen: [Wayback Energie-Waterland.nl/ is website van mijn werk on Twitter: “Heb handboek geschreven ‘Kiezen van geschikte warmtepomp’ Met positieve tekst kan lezer kiezen welk type warmtepomp het beste past bij de eigen woning…”

Inclusief verzenden kost 1 exemplaar EUR 12. Bij grotere aantallen korting op het boek en de verzendkosten, zie [Wayback/Archive] energie-waterland.nl: Over ons.

De inhoudsopgave:

Read the rest of this entry »

Posted in Awareness, Climate change, LifeHacker, Power User, Solar Power | Leave a Comment »

Using styles on just html tr to format the borders of table rows

Posted by jpluimers on 2022/09/22

A long time ago, I found out that by default, you could only format td elements in HTML tables: somehow doing that with just tr failed, and I never understood why.

Since I wasn’t doing a lot of html stuff back then, I just lived with the few occurrences and moved on.

A while ago, I needed html tables again, and – since WordPress.com hosted blogs do not allow CSS style sheets – I had to use inline style attributes. That would bloat many td elements, so I did a [Wayback/Archive.is] html table border below row – Google Search, where the first few hits – all on StackOverflow – tremendously helped my to understand why this was the case and how to fix it:

  • In [Wayback/Archive.is] css – Giving a border to an HTML table row, – Stack Overflow, [Wayback/Archive.is] User Jukka K. Korpela – Stack Overflow explains about the various border models, but only shows a a solution having the CSS style sheet in a style element which WordPress.com disallows:
    You can set border properties on a tr element, but according to the CSS 2.1 specification, such properties have no effect in the separated borders model, which tends to be the default in browsers. Ref.: 17.6.1 The separated borders model. (The initial value of border-collapse is separate according to CSS 2.1, and some browsers also set it as default value for table. The net effect anyway is that you get separated border on almost all browsers unless you explicitly specifi collapse.)
    Thus, you need to use collapsing borders. Example:
    <style>
    table { border-collapse: collapse; }
    tr:nth-child(3) { border: solid thin; }
    </style>
    

    From that, I learned about these:

    • [Wayback/Archive.is] Tables: borders
      There are two distinct models for setting borders on table cells in CSS. One is most suitable for so-called separated borders around individual cells, the other is suitable for borders that are continuous from one end of the table to the other. Many border styles can be achieved with either model, so it is often a matter of taste which one is used.
      border-collapse
      Value: collapse | separateinherit
      Initial: separate
      Applies to: table‘ and ‘inline-table’ elements
      Inherited: yes
      Percentages: N/A
      Media: visual
      Computed value: as specified
      This property selects a table’s border model. The value ‘separate‘ selects the separated borders border model. The value ‘collapse‘ selects the collapsing borders model. The models are described below.
    • [Wayback/Archive.is] Tables: separated borders (default)
    • [Wayback/Archive.is] Tables: collapsing borders
  • In [Wayback/Archive.is] Create table with only bottom border in HTML – Stack Overflow, [Wayback/Archive.is] Martin2904 explains how to solve it with CSS style sheets and inline style attributes, but does not link to the “why”:
    Just use the following code-snippet and paste it in you style.css
    table {
      border-collapse: collapse;
    }
    tr{
      border-bottom: 1px solid black;
    }
    <table>
      <tbody>
        <tr>
          <td>Lorem</td>
          <td>Ipsum</td>
        </tr>
      </tbody>
    </table>
    Without using style.css
    <table style="border-collapse: collapse;">
      <tbody>
        <tr style="border-bottom: 1px solid black;">
          <td>Lorem</td>
          <td>Ipsum</td>
        </tr>
      </tbody>
    </table>

–jeroen

Posted in CSS, Development, HTML, Software Development, Web Development | Leave a Comment »

Select matching element/rename HTML tag in Visual Studio Code – Stack Overflow

Posted by jpluimers on 2022/09/21

I totally missed that in 2019, the F2 key was enabled to rename HTML tags, but it does: [Wayback/Archive.is] Select matching element/rename HTML tag in Visual Studio Code – Stack Overflow:

HTML rename tags
You can now use F2 to rename the opening/closing tag pairs in HTML.
F2 when the cursor is over one of the tags and you will get a little input box with the cursor to input the new tag name and the start/end tags will be replaced with whatever you type upon .
demo of HTML rename tags

[Wayback/Archive.is] Another answer indicates that even more recently, Linked Editing can do the same without even pressing F2. Too bad it is not enabled by default:

No need for extension, this is now cooked into VSCode.
"editor.linkedEditing": true

–jeroen

Posted in .NET, Development, HTML, Software Development, Visual Studio and tools, vscode Visual Studio Code, Web Development | Leave a Comment »

Python Breaking Distance calculator (includes the German DIN 1451 font for traffic signage)

Posted by jpluimers on 2022/09/20

If you ever want a good visual representation to compare the breaking distance for a car at two different speeds, and see at what speed you will hit the human “obstacle”, then use the Python script mkbremsweg.py.

Git repository: [Wayback/Archive.is] joschtl / bremsweg · GitLab.

The image is generated in the current directory

It probably won’t work on Windows as it dynamically builds a very long command-line calling ImageMagick tool [Wayback/Archive.is] convert once to do all the drawing.

The text in the picture for now is hardcoded in German, but would be easy to adopt.

The fonts used are and FreeSans and [Wayback/Archive.is] Alte DIN 1451 Mittelschrift Font Family · 1001 Fonts (which the Germans use for Traffic Signage and is very similar to fonts used in other countries).

Calculations are based on [Wayback/Archive.is] Bremsweg-Rechner für Anhalteweg & Bremsweg – Johannes Strommer.

Via:

–jeroen

Posted in *nix, *nix-tools, cars, Development, ImageMagick, LifeHacker, Power User, Python, Scripting, Software Development, Traffic, Windows | Leave a Comment »