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 January, 2022

A Redditor visits the iconic Windows XP “Bliss” hill in Microsoft Flight Simulator and recaptures the magic – NotebookCheck.net News

Posted by jpluimers on 2022/01/17

[Wayback] A Redditor visits the iconic Windows XP “Bliss” hill in Microsoft Flight Simulator and recaptures the magic – NotebookCheck.net News

XP:

2020:

Via: (note the wrong Windows version) [Archive.is] Stonehead on Twitter: “Zo ziet het Windows 95-bureaublad er tegenwoordig uit trouwens. Klimaatverandering is overal… “

–jeroen

Read the rest of this entry »

Posted in History, Power User, Windows, Windows XP | Leave a Comment »

ESXi ash/dash/busybox shell getting current timestamp in UTC ISO8601 format without colons or dashes

Posted by jpluimers on 2022/01/17

On VMware ESXi, with the  Busybox ash/dash shell, I wanted to get the current UTC timestamp in ISO 8601 format without dashes (-) or especially colons (:) and plus-signs (+) you have to back-slash escape colons or double quote parameters, which is often can be a pain).

This is why we can’t have good things: Getting the UTC 8610 timestamp was far less easy than I hoped for.

First of all, Busybox only allows for a precision of seconds, not milliseconds, and the specification format needs better documentation as per [Wayback] embedded linux – How to get ISO8601 seconds format from “date” in busybox? – Stack Overflow:

Read the rest of this entry »

Posted in *nix, *nix-tools, ash/dash, ash/dash development, Development, ESXi6, ESXi6.5, ESXi6.7, ESXi7, Power User, Scripting, sed, sed script, Software Development, Virtualization, VMware, VMware ESXi | Leave a Comment »

Streaming Setup, Iterated (reminder to self, as it might hold for other retro-hardware)

Posted by jpluimers on 2022/01/17

Sebastian Bergmann documented his Twitch streaming setup using digital output from his Amiga 1200 retrocomputing machine: [Wayback] Streaming Setup, Iterated

This might hold for other retro-hardware too, so here is the schema he uses:

[Wayback image]

–jeroen

Read the rest of this entry »

Posted in LifeHacker, Power User | Leave a Comment »

How to Delete Specific Chrome Autofill Suggestions

Posted by jpluimers on 2022/01/14

If use the Chrome web browser, it’s fairly likely you will find Chrome autofill suggestions recommending things for various forms and text entry points. Sometimes those autofill suggestions c…

[Wayback] How to Delete Specific Chrome Autofill Suggestions

Most important are the steps:

  1. Open the related website which has a form entry where autofill suggestions appear
  2. Start typing so that the suggestion shows up as an option in Chrome
  3. Using the keyboard arrows, navigate down the suggestion list to the item(s) you want to remove from the Chrome autofill suggestions
  4. With the suggestion highlighted, use the appropriate keystroke sequence to delete the Chrome suggestion:
    • Mac: Shift + FN + Delete
    • Windows: Shift + Delete
    • Chromebook / Chrome OS: Alt + Shift + Delete
  5. Repeat with other suggestions to delete if desired

Via: [WayBack] edit google chrome autocomplete list – Google Search

–jeroen

Posted in Chrome, Chrome, Google, Power User, Web Browsers | Leave a Comment »

Some notes on OKI memory modules and toner cartridges for MC342 / C332, as toner cartridges physically seem compatible, but are not

Posted by jpluimers on 2022/01/14

I thought the C332 had the same engine as the MC342, as internally the printing part looks identical.

Boy, I was wrong. Toner cartridges, though fitting physically, are not compatible, despite having the same image drum part 44968301.

So the MC342 and C332 have different toners that are physically so similar that they fit, but electronically different.

While searching, I found the C332 by default has 1 gigabyte of memory and no upgrade option, but the MC342 only has 256 megabyte of memory and can be upgraded with one 512 megabyte module to 768 megabyte. This improves printing performance considerably.

The memory module part number is 01182908, which is horrendously expensive despite it being a PC4200 DDR2 SO-DIMM, which means PC5300 and higher should also work.

Historically between EUR 100 and EUR 350 ([Wayback] Oki 01182908 – Prijzen – Tweakers) or GBP 250 ([WayBack] OKI 512MB RAM Memory Upgrade for B721, B731, B840, C321, C330, C530, C531, C610, C612, C711, C712, C822, C823, C831, C833, C841, C843, MC332, MC342, MC351, MC352, MC361, MC362, MC561, MC562 printers)

So via [Archive.is] 512mb ddr2 sodimm – veilingkijker – nieuw en tweedehands I found [Wayback] ≥ Apple 512mb DDR2 667MHz SODIMM – Geheugens – Marktplaats.nl and tried it.

[Wayback/Archive.is] 512MB DDR2 144PIN for OKI Color Printers MC332dn, MC342 N MC332dn, MC342dn, MC342dnw, MC352dn MC352dn L: Amazon.de: Computers & Accessories

[Wayback] MC561 & C330 C711 C530 C610 512MB DDR2 SODIMM MEMORY RAM FOR OKI MC361 C831 C841 SERIES PRINTERS 70061901, 01182908 news9world.com

Installing the memory module is described at page 135 of [Wayback] 45002102EE7_MC562_UG_EN_29888.pdf

The models

[Wayback] MC342dn | DISCONTINUED PRODUCTS | Products | OKI Europe Ltd | Printers and Solutions

Default administrator credentials user admin, password aaaaaa.

[Wayback] Specification | C332 | C300 Series | OKI Europe Ltd

Default administrator credentials: user admin, password 999999.

The toners / accessories

[Wayback] MC342dn | Colour Multifunction Printers | Consumables, Accessories & Part Numbers | Printers, Printing Solutions and Managed Print Services

Options

Item Type Price Notes
20151216003033853-01182907_ram.png/01182907_ram.png256 MB RAM 01182907
20151214104557617-MEM256G_512D.png/MEM256G_512D.png512 MB RAM 01182908

Consumables

Item Type Price Notes
20151216000117113-44973536_toner_k.png/44973536_toner_k.pngBlack Small capacity toner cartridge 44973536 2,200 pages *1
Black Small capacity toner cartridge 44973544 2,200 pages *1
20151216000116917-44973533_toner_y.png/44973533_toner_y.pngYellow Small capacity toner cartridge 44973533 1,500 pages *1
Yellow Small capacity toner cartridge 44973541 1,500 pages *1
20151216000116982-44973534_toner_m.png/44973534_toner_m.pngMagenta Small capacity toner cartridge 44973534 1,500 pages *1
Magenta Small capacity toner cartridge 44973542 1,500 pages *1
20151216000117047-44973535_toner_c.png/44973535_toner_c.pngCyan Small capacity toner cartridge 44973535 1,500 pages *1
Cyan Small capacity toner cartridge 44973543 1,500 pages *1
20151216000109020-44968301_id.png/44968301_id.pngRainbow Image Drum 44968301 30,000 pages *2 *3

*1 Number of A4 pages yield compliant with ISO/IEC 19798.

*2 Average A4 life based on a typical office environment.

*3 30,000 K 20,000 CMY

[Wayback] C332 | Colour Printers | Consumables, Accessories & Part Numbers | OKI Europe Ltd

Options

Item Type Price Notes
20151216003933012-44472102_tray.gif/44472102_tray.gifAdditional Paper Tray 44472102 Capacity of 530 sheets of 80gsm.
20151216003933074-01314101_cabinet.gif/01314101_cabinet.gifCabinet 01314101
20170110060326773/WLAN_34.jpgWLAN Interface 45830202

Consumables

Item Type Price Notes
Black Toner cartridge 46508712 3,500 pages *1
Black Toner cartridge 46508716 1,500 pages *1
C332_HIGH_CAP_YELLOW_TONER_46508709_FRONTYellow Toner cartridge 46508709 3,000 pages *1
C332_STD_CAP_YELLOW_TONER_46508713_FRONTYellow Toner cartridge 46508713 1,500 pages *1
C332_HIGH_CAP_MAGENTA_TONER_46508710_FRONTMagenta Toner cartridge 46508710 3,000 pages *1
C332_HIGH_CAP_CYAN_TONER_46508711_FRONTCyan Toner cartridge 46508711 3,000 pages *1
C332_STD_CAP_CYAN_TONER_46508715_FRONTCyan Toner cartridge 46508715 1,500 pages *1
20151216000109020-44968301_id.png/44968301_id.pngCMYK Image Drum 44968301 30,000 pages *2 *3
20151216000101457-44472603_fuser.png/FUS-C4J.pngFuser unit 44472603 60,000 pages
20160928025643903-750_belt.png/BLT-C4H.pngTransfer Belt 44472202 60,000 pages

*1 Number of A4 pages yield compliant with ISO/IEC 19798.

*2 Average A4 life based on a typical office environment.

*3 30,000 K 20,000 CMY

 

MC342 toner in C332 printer

As soon as you put a black MC342 toner in a C332 toner, you will get this error in the display: SERVICE CALL 231:ERROR 08 (see picture and [Wayback/Archive.is] oki service call 231 error 08 – Google Search)

This error only goes away when:

  1. you re-insert the original toner cartridge
  2. then power-down and power-up the printer

I could not find C332 specific information for this error, but similar models do have it (partially) listed (note the 08 error for the C332 means the black toner cartridge, not the cyan one):

Toner sensors

 

Read the rest of this entry »

Posted in Hardware, LifeHacker, MC342 printer/scanner, OKI C332, OKI Printers, Power User, Printers | Leave a Comment »

Google 2FA “Sorry, we can’t fulfill this request at this time. Please try again later or use a different phone number.”

Posted by jpluimers on 2022/01/14

A while ago while first securing a bunch of accounts with a phone number, then later replacing them with 2FA hardware, I got this error message:

Sorry, we can’t fulfill this request at this time. Please try again later or use a different phone number.

This seems to have to do with the fact that if have gotten about 10 2FA messages a day, then it cannot be used to add a new phone number to an account. The phone number still can be used to verify existing accounts where the phone number was already registered.

Retrying after 24 hours usually works.

Related:

–jeroen

Posted in Google, GoogleAccount, Power User | Leave a Comment »

On learning vi/vim

Posted by jpluimers on 2022/01/13

I saved below thread (if you cannot read German: try Google Translate on it [Archive.is]).

The part that – translated – strikes me most is this:

A mini-challenge where I want to spent 15 minutes per day on: when I need some functionality, instead of hacking around, research how it really is supposed to be done and internalise that way.

This totally aligns with me “learn new things every day” mantra.

Also some interesting vi/vim resources and approaches are mentioned:

If you are better at reading tables or lists for commands, I can recommend [Wayback] Basic vi Commands (Computer Science Department, Colorado State University).

One of the hardest things for me to remember somehow is the search/replace syntax, though it is very similar to that of sed. Useful examples of most permutations are at [Wayback] Vi For Smarties – Lesson Eight under “Advanced Search and Replace”:

  1. Use :s/foo/bar/ to replace the first occurrence of the word foo on the current line with the word bar.
  2. Use :s/foo/bar/g to replace all occurrences of the word foo on the current line with the word bar.
  3. Use :%s/foo/bar/g to replace all occurrences of the word foo in the current file with the word bar. Leaving off the g at the end only replaces the first occurrence of foo on each line of the current file.
  4. Use :%s/foo//g to delete all occurrences of the word foo in the current file. Leaving off the percent sign (%), of course, only does this for the current line.
  5. Use :%s/foo/bar/gc to have Vi query you before each attempt to replace the word foo with the word bar.

It is part of a series of tutorials starting at [Wayback] Vi For Smarties – Lesson One, and after the last lesson directs to the in-depth – as prose written – tutorial series [Archive.is] Wayback: The Vi/Ex Editor (which, despite marked by “[ Editor’s Note: . This tutorial series is a “work in progress” and will evolve over time. We’ll announce each new addition and expand this table of contents.]” got ditched shortly after January 2006)

https://web.archive.org/web/20160108053134/http://www.networkcomputin…

.

Note that like sed, you can use a different search/replace character than /: [Wayback] vim – / in vi Search and replace? – Stack Overflow

  • Escape the / with \ like this: \/.
  • Use different search character than /, for instance ., or #.

Back to the twitter thread

[Archive.is] Das königliche Wir on Twitter: “Ich lerne jetzt vi(m). Klingt beknackt, oder? Aber ich hab überlegt: ich möchte effizienter werden, meinen Kram stressfreier bewältigen. Und ich finde, es bietet sich an da an Baustellen anzusetzen, die täglich relevant sind. Und vi(m) nutze ich in der Tat täglich. 1/”

Ich lerne jetzt vi(m).

Klingt beknackt, oder? Aber ich hab überlegt: ich möchte effizienter werden, meinen Kram stressfreier bewältigen. Und ich finde, es bietet sich an da an Baustellen anzusetzen, die täglich relevant sind. Und vi(m) nutze ich in der Tat täglich.

Aber auch wenn ich ihn nutze und über den »Hilfe, wie komm ich aus dem Editor wieder raus?!«-Witz nur sehr müde die Augen rolle gehe ich davon aus, dass ich nicht mal einen Bruchteil der Möglichkeiten ausschöpfe, die er bietet (1. Release 1976, älter als ich!). Das ist spannend.

Das ist jetzt meine Mini-Challenge, auf die ich jeden Tag eine Viertelstunde verwenden will: wenn ich eine Funktion brauche mich nicht mehr drum herum zu hacken, sondern recherchieren wie es richtig geht und das dann gefälligst auch verinnerlichen. Mal sehen, ob das so klappt

In dem Zuge will ich auch wieder verstärkt (neo)mutt in Verbindung mit vim nutzen – das wäre ein wunderbares tägliches Training 😎 Mails schreiben muss man irgendwie immer.

neomutt bietet leider auch einen Eimer voll Funktionen, die ich noch nicht ordentlich nutze. Gnah.

An euren Replies erkenne ich, dass das mit dem »sich die Kürzel merken« echt heikel zu sein scheint 🤔 Wie handhabt ihr das im Alltag? Einfach ein paar Basics wie :u und CTRL+r und gut ist? Ich bin neugierig. Oder nutzt ihr alle nano? (Ich glaub, dann muss ich entfolgen) 😂

Nur als kleinen Zwischenstand: nach dem Lesen eurer Antworten schließe ich, dass ich mich mit meinem Kenntnisstand nicht verstecken muss 😂 Da hat mir der virtuelle Schulterblick schon weiter geholfen.

vi(m), weil ich Admin bin und dieses Tool auf jedem System und ohne X-Geraffels üblicherweise vorfinde (wenn auch bei neueren Installationen dieser absurde „visual mode“ der Default ist 😳). Auch unter (Open)Solaris, IRIX, was weiß ich.

Antworten:

Patrick Ben Koetter (@patrickbkoetter)

Ich habe diverse Plugins ausprobiert und lande immer wieder bei “normal“, weil ich einfach nicht die Disziplin aufbringe das Zeug richtig zu üben.

Marcel Weinberg (@winem_)

Denke so geht es vielen, die eben teilweise auch schon viele Jahre in der IT sind. Ist dir vimtutor bekannt? Den regelmäßig durchzutanzen hilft auch etwas, auch wenn man einiges immer mal vergisst oder einfach nicht nutzt.

Kristian Köhntopp (@isotopp)

vi movement Kommandos haben System. Erkenne und lerne das System. hjkl + prefix+hjkl, Marken, prefix+jump to mark und so weiter.

Und bleibe von den verblödeten Plugins weg. Die braucht kein Mensch und machen vim nur langsam im Start und kompliziert.

Boris (@k3rvyn)

Was mich so richtig weiter gebracht hat, war dieser Talk:
https://www.youtube.com/watch?v=5r6yzFEXajQ

winfreak (@winfreak)

Ich bilde mir kleine Merkphrasen für movements…
Aus „ciw“ wird „change inner word“, z.B.
Das kann ich mir deutlich besser merken.

–jeroen

Read the rest of this entry »

Posted in *nix, *nix-tools, Development, Power User, Scripting, Software Development, vi/vim | Leave a Comment »

The Definitive T430 Modding Guide | by George Kushnir (https://n4ru.it) | Medium

Posted by jpluimers on 2022/01/13

Lots of ideas, also for the W530 model: [Wayback] The Definitive T430 Modding Guide | by George Kushnir (https://n4ru.it) | Medium.

–jeroen

Posted in Development, Hardware Development, Power User, ThinkPad | Leave a Comment »

Patching ESXi so you can boot a MacOS virtual machine from it

Posted by jpluimers on 2022/01/13

This is totally opposite to yesterday’s Secure Boot post: [Wayback/Archive.is] shanyungyang/esxi-unlocker: VMware ESXi macOS

macOS Unlocker V3.0.2 for VMware ESXi
=====================================

1. Introduction
---------------

Unlocker 3 for ESXi is designed for VMware ESXi 6.5, 6.7 and 7.0

The patch code carries out the following modifications dependent on the product
being patched:

* Fix vmware-vmx to allow macOS to boot
* Fix libvmkctl to allow vSphere to control the guest

The code is written in Python as it makes the Unlocker easier to run and
maintain on ESXi.

+-----------------------------------------------------------------------------+
| IMPORTANT:                                                                  |
| ==========                                                                  |
|                                                                             |
| Always uninstall the previous version of the Unlocker before using a new    |
| version. Failure to do this could render VMware unusable.                   |
|                                                                             |
+-----------------------------------------------------------------------------+

2. Installation
---------------
Copy the distribution file to the ESXi host datastore using scp or some other
data transfer system. If you want to use the source version (i.e. from GIT) see
"5. Building" fist.

Decompress the file from the ESXi console or via SSH:

    tar xzvf esxi-unlocker-xxx.tgz

(xxx - will be the version number, for example, 300)

Run the command from the terminal:

    ./esxi-install.sh

Finally reboot the server.

3. Uninstallation
-----------------
Open the ESXi console or login via SSH and change to the folder where the files were extracted.

Run the command from the terminal:

    ./esxi-uninstall.sh

Finally reboot the server.

4. Notes
--------
A. There is a command added called esxi-smctest.sh which can show if the patch is successful. It must be run from a
terminal or SSH session. The output should be:

/bin/vmx
smcPresent = true
custom.vgz     false   32486592 B

Note: The uncompressed size reported for custom.vgz will vary depending on the ESXi version.

B. The unlocker can be temporarily disabled during boot by editing the boot options and adding "nounlocker".

5. Building
-----------
If you want to use a version which is not availbale as a distribution (e.g. the code from "master" branch)
you need to first build the package.

Checkout the repository:

    git clone https://github.com/shanyungyang/esxi-unlocker.git

(if you don't have git installed you can download ZIP archive from GitHub instead)

Enter the directory and build:
    
    cd esxi-unlocker
    ./esxi-build.py

If everything went correctly the ouput should be:

    ESXi-Build for macOS

    Timestamping files...

    Creating unlocker.tgz...
    etc/
    etc/rc.local.d/
    etc/rc.local.d/unlocker.py

    Creating esxi-unlocker-301.tgz...
    unlocker.tgz
    esxi-install.sh
    esxi-uninstall.sh
    esxi-smctest.sh
    readme.txt

The package you need to copy in the example above is esxi-unlocker-301.tgz (NOT unlocker.tgz!).

6. Thanks
---------

Thanks to Zenith432 for originally building the C++ unlocker and Mac Son of Knife
(MSoK) for all the testing and support.

Thanks also to Sam B for finding the solution for ESXi 6 and helping me with
debugging expertise. Sam also wrote the code for patching ESXi ELF files and
modified the unlocker code to run on Python 3 in the ESXi 6.5 environment.

History
-------
26/09/18 3.0.0 - First release
01/05/20 3.0.1 - Fix for ESXi 7.0
10/18/20 3.0.1 - Fix for ESXi 7.0 U1 (7.0.1)

(c) 2011-2018 Dave Parsons

–jeroen

Posted in Apple, ESXi6, ESXi6.5, ESXi6.7, ESXi7, Mac OS X / OS X / MacOS, Power User, Virtualization, VMware, VMware ESXi | Leave a Comment »

A few tools on my list for research: fswatch, entr, ack and ag

Posted by jpluimers on 2022/01/12

Based on the below tweet and replies, these tools are not on my research list:

[Archive.is] Aaron Patterson on Twitter: “Here is my “autotest for lazy people”. It watches for changes in the lib or test directory, and runs rake test on change. There are definitely better, purpose built tools for this. But I am lazy…”

–jeroen

Posted in *nix, *nix-tools, Development, fgrep, find, grep, Power User, Scripting, Software Development | Leave a Comment »