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 August 6th, 2025

peter purgathofer: “… i recently found a little HDMI-fob that fakes a second screen; i can now see my presenters’ notes on the built-in screen, while the presentation is on a hallucinated second screen …” – 🌱 hci.social

Posted by jpluimers on 2025/08/06

The below post reminded me that around black friday I bought [Wayback/Archive] ADWITS 2-Pack 4K 2K 1080P 30Hz to 60Hz Support HDMI Display Emulator DDC EDID Headless Ghost Monitor Adapter Dummy Plug, Highest 4096 x 2160 @ 60Hz – Gold Colour: Amazon.de: PC & Video Games

[Wayback/Archive] peter purgathofer: “today i gave a talk, where the…” – 🌱 hci.social

today i gave a talk, where the setup was that i had to share my presentation over zoom, but i didn’t have a second screen. this usually meant that i have to forgo seeing my presenters’ notes because my notebook’s screen would be the shared presentation screen.

i recently found a little HDMI-fob that fakes a second screen; i can now see my presenters’ notes on the built-in screen, while the presentation is on a hallucinated second screen.

simple and effective.

--jeroen


Image from the Toot: [Wayback/Archive] 6af960c3f84a12e8.jpeg (2939×2821)

Posted in Development, Hardware Interfacing, HDMI, LifeHacker, Power User | Leave a Comment »

linux – Get final URL after curl is redirected – Stack Overflow (plus some Twitter scraping tricks)

Posted by jpluimers on 2025/08/06

Sometimes I need [Wayback/Archive] Redirect Checker | Check your Statuscode 301 vs 302 on the command-line, so cURL to the rescue: [Wayback/Archive] linux – Get final URL after curl is redirected – Stack Overflow. The relevant portions of answers and comments further below.

TL;DR:

Since I prefer verbose command-line arguments (you can find them at the [Wayback/Archive] curl – How To Use on-line man page) especially in scripts this HTTP GET request is what works with Twitter:

% curl --location --silent --output /dev/null --write-out "%{url_effective}\n" https://twitter.com/anyuser/status/20
https://x.com/anyuser/status/20

This failed (twitter dislikes HTTP HEAD requests):

% curl --head --location --silent --output /dev/null --write-out "%{url_effective}\n" https://twitter.com/anyuser/status/20
https://twitter.com/anyuser/status/20

Notes

Given so many of my scripts now run on zsh, I added the new-line because of command line – Why does a cURL request return a percent sign (%) with every request in ZSH? – Stack Overflow. You can strip that bit.

Note that these do not perform client side redirects, so they do not return the ultimate originating URL https://x.com/jack/status/20 (which was the first ever Tweet on what was back then called twttr) as Twitter on the client-side overwrites window.location.href with the final URL. Similar behaviour for getting the Twitter user handle of a Twitter user ID, more on Twitter tricks below.

Tweet by TweetID trick via [Wayback/Archive] Accessing a tweet using only its ID (and without the Twitter API) – Bram.us.

Further reading (thanks [Wayback/Archive] vise, [Wayback/Archive] Daniel Stenberg, [Wayback/Archive] Ivan, [Wayback/Archive] AndrewF, [Wayback/Archive] Roger Campanera, and [Wayback/Archive] Dave Baird):

Read the rest of this entry »

Posted in *nix, *nix-tools, bash, Batch-Files, Bookmarklet, Communications Development, Conference Topics, Conferences, CSS, cURL, Development, Event, HTTP, Internet protocol suite, JavaScript/ECMAScript, Power User, Scripting, SocialMedia, Software Development, TCP, Twitter, Web Browsers, Web Development | Tagged: | Leave a Comment »