The Wiert Corner – irregular stream of stuff

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

  • My badges

  • Twitter Updates

  • Pages

  • All categories

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

    Join 1,854 other subscribers

Archive for the ‘Power User’ Category

curl/wget: use content-disposition for the file names

Posted by jpluimers on 2020/04/27

For me, on Windows, curl works better than wget, but on Linux/Mac OS X, curl tends to work better. Some people find wget easier for downloading multiple URLs at the same time. So here the parameter switches for both so they download to the file specified by the Content-Disposition http header:

  • curl --remote-name --remote-header-name
  • wget --content-disposition

My experience is that wget is better at this, especially when redirects are involved (by adding a [WayBack] --location parameter to  thecurl command line).

So for instance the first fails, but the second succeeds determining the download to be VSCodeUserSetup-x64-1.27.2.exe (so curl keeps the name stable):

curl.exe --location --remote-name --remote-time --remote-header-name https://vscode-update.azurewebsites.net/latest/win32-x64-user/stable

wget.exe --content-disposition https://vscode-update.azurewebsites.net/latest/win32-x64-user/stable

This takes into account the name after all followed redirects.

Via:

–jeroen

Posted in *nix, cURL, Power User, wget | Leave a Comment »

Twitter thread unroll so you can read tweet storm on one page without distraction: ThreadReaderApp.com a.k.a. tttthreads.comtttthreads.com

Posted by jpluimers on 2020/04/24

I am have been using ThreadReaderApp.com – and more so since G+ went belly up – but forgot to schedule a post on it, so here it is:

[WayBack] Show HN: Unroll Twitter threads for easy reading | Hacker News:

I made this new service called Thread Reader that given a first tweet from a twitter thread will return a carefully designed web page with the full [WayBack] Tweetstorm unrolled.

It comes with two “bots” – one that answer people who mention “@tttthreads unroll” replying to the first tweet of a threads and give them a link to the unrolled story – the second that search twitter for “#threads” and check if it is a valid thread (> 5 tweets) and if so post a unrolled version back to the author (limited to a few post per hour to avoid to be too spammy)

The stack is good old LAMP using the PHP silex micro framework and of course Twitter API

[WayBack] Thread Reader Thread Reader helps you discover and read the best of Twitter Threads

–jeroen

Posted in LifeHacker, Power User, SocialMedia, Twitter | Leave a Comment »

This means your SD card is dead for writing: “fsck.ext4: unable to set superblock flags on ROOT”

Posted by jpluimers on 2020/04/24

A while ago I had a "fsck.ext4: unable to set superblock flags on ROOT" on an SD card in a Raspberry Pi: it basically means the SD card is dead.

Back then Google found only one entry: [WayBack] Bad Superblock – Raspberry Pi Forums

–jeroen

Posted in *nix, *nix-tools, Development, Hardware Development, Power User, Raspberry Pi | Leave a Comment »

Netgear Prosafe GS110TP – Tweakers

Posted by jpluimers on 2020/04/24

Interesting Power over Ethernet (PoE) capable router: [WayBack] Netgear Prosafe GS110TP – Tweakers

About the same price as [WayBackAmazon.com: Netgear Prosafe GS110TP

–jeroen

Posted in Ethernet, Network-and-equipment, Power User | Leave a Comment »

Peter Drucker: The Rules of Effectiveness – Personal Growth – Medium

Posted by jpluimers on 2020/04/22

This is so simple and so hard at the same time: [WayBackPeter Drucker: The Rules of Effectiveness – Personal Growth – Medium:

  1. Design the Practice, Not the Person
    This means you have to set schedules when to do things and for how long.
    This is hard in an ever changing, ever interrupting world where tasks are of tough to estimate duration.
  2. Embrace Purposeful Abandonment
    Less+Less==More; which implies you should do a lot less things to be effective. Skip the things you do not really need.
  3. Switch From Exploring to Exploiting
    For me it was hard to understand, especially not being in my 20ies any more for a long time: high reward risky paths are better to be pursued than risk-averse paths.

The cool thing though: Peter Drucker found about all these during his life which was mostly (1909-2005) before computing and social network became ubiquitous.

So yes: the above should be possible in an agile environment.

–jeroen

via: [WayBack] Peter Drucker: The Rules of Effectiveness – Personal Growth – Medium – Marjan Venema – Google+

Posted in Agile, Development, LifeHacker, Software Development | Leave a Comment »

reStructuredText – document title and subtitle

Posted by jpluimers on 2020/04/21

Always watch how you format your reStructuredText sections: [WayBackDocutils FAQ: 2.6 How can I indicate the document title? Subtitle?

That is why I have these comments at the top of most of my documents:

.. $ %
.. # * = + ^ ~ - : . _ ` ' "

The first two are the document title and subtitle marks, the others the level 1 through 13.

–jeroen

Posted in Development, Lightweight markup language, Power User, reStructuredText | Leave a Comment »

macOS and Windows Excel Shortcut: Toggle absolute and relative references | Exceljet

Posted by jpluimers on 2020/04/20

Since I tend to forget the Mac shortcut (the Windows one feels like it is in my autonomic nervous system):

  • F4    Windows shortcut
  • ⌘T   Mac shortcut 
While editing a formula, this shortcut toggles cell references from relative to absolute, to partially absolute, back to relative again: A1 –> $A$1 –> A$1— > $A1 — > A1 It’s much faster and easier than typing $ characters manually.
To convert an existing formula, enter cell edit mode, place the cursor in or next to the reference you’d like to convert, then use the shortcut.
Note: in Excel 2016 for the Mac, you can also use fn + F4. 

Source: Excel Shortcut: Toggle absolute and relative references | Exceljet

–jeroen

Posted in Excel, Office, Office 2011 for Mac, Power User | Leave a Comment »

How to install patterns in openSUSE and SUSE – TechRepublic

Posted by jpluimers on 2020/04/20

This was much easier than I hoped for: the zypper verbs search and install both support the --type pattern argument.

After that, the names for them are pattern names instead of the normal package names.

So for instance:

zypper search --type pattern
zypper install -type pattern kde kde_plasmaaa

Sources:

–jeroen

 

Posted in *nix, Linux, openSuSE, Power User, SuSE Linux, Tumbleweed | Leave a Comment »

When using a e1000 virtual network adapter under VMware, use the “Intel PRO/1000 MT Server (82545EM)” under Virtual Box

Posted by jpluimers on 2020/04/17

Every now and then I need to run existing VMware based disk under a different virtualisation environment.

In my case, the target was VirtualBox, and the source used a e1000 virtual network adapter.

You find the required settings to migrate to VirtualBox by running this inside the directory of your VMware virtual machine:

grep ethernet *vmx

It gives output like this:

ethernet0.present = "TRUE"
ethernet0.virtualDev = "e1000"
ethernet0.networkName = "VM Network on LAN"
ethernet0.addressType = "generated"
ethernet0.generatedAddress = "00:0c:29:cc:cc:cc"
ethernet0.pciSlotNumber = "32"
ethernet0.generatedAddressOffset = "0"

This is in fact an “Intel 82545EM Gigabit Ethernet NIC” adapter, which VirtualBox calls “Intel PRO/1000 MT Server (82545EM)”.

Another compatible pair is the VMware vlance or “AMD 79C970 PCnet32- LANCE NIC” which VirtualBox calls “AMD PCNet PCI II (Am79C970A)”

First note:

Often the virtual operating system still recognises it as a different adapter. Sometimes you can prevent this by also copying the MAC address (as VirtualBox by default uses a MAC address like 080027CCCCCC.

If it is still wrong, then read [WayBack] PredictableNetworkInterfaceNames: the various ways of assigning network interface names in virtualisation environments tend to mismatch. To fix this, I had to rename /etc/sysconfig/ifcfg-ens32 to the nee interface name I found via if -a.

Second note:

VMware supports two special virtual networks that are accessible from the host: vmnet1 (host-only) and vmnet8(NAT) : both are accessible from the host as VMware installs special network adapters:

  • vmnet1 is the host-only network where the host can talk to the VMs and vice versa, but the hosts cannot talk to the outside world
  • vmnet8 is the NAT network where the host can talk to the VMs and vice versa, but the hosts can talk to the outside world

Some background info at:

Read the rest of this entry »

Posted in Power User, VirtualBox, Virtualization, VMware | Leave a Comment »

.ZIP URLs (or, Why You Should Block Domains on a TLD That Doesn’t Have Any) | Blue Coat

Posted by jpluimers on 2020/04/17

Reminder to self:

Some 5 years after the .zip top-level domain got live, I wonder if there are any domains in it.

Currently, it screws up non-quoted searches in browsers like Chrome, so I wonder if  this still holds: .ZIP URLs (or, Why You Should Block Domains on a TLD That Doesn’t Have Any) | Blue Coat

When writing this, there was one domain (nic.zip) and two registrars.

–jeroen

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