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 October, 2018

A command-line REPL for RESTful HTTP Services – Scott Hanselman

Posted by jpluimers on 2018/10/31

Somewhere in Q4 2018 (actual year, not fiscal year) when .NET Core 2.2 gets released, but you can tinker with it right now: [WayBack] A command-line REPL for RESTful HTTP Services – Scott Hanselman.

Release estimates at [WayBack] core/roadmap.md at master · dotnet/core · GitHub.

–jeroen

Posted in .NET, .NET Core, Development, Software Development | Leave a Comment »

Down on the Upside – Kevlin Henney – Medium

Posted by jpluimers on 2018/10/31

Interesting read: [WayBack] Down on the Upside – Kevlin Henney – Medium

Abstraction is a question of less over more. But is it also a question of high over low?

What developers call abstraction, is not the abstraction end-users mean. Being aware of that makes software development life a whole lot easier.

Via: [WayBack] Kevlin Henney – Google+

–jeroen

Posted in Design Patterns, Development, Software Development | Leave a Comment »

Batch files and parentheses

Posted by jpluimers on 2018/10/31

Answering [WayBack] delphi – post-build event with multiple if/copy combinations only execute if first file does not exist – Stack Overflow made me do a quick search for parentheses handling in batch files. TL;DR: it is a mess.

But it reveals some interesting links:

–jeroen

Posted in Batch-Files, Conference Topics, Conferences, Development, Event, Scripting, Software Development, Windows Development | Leave a Comment »

PowerShell: measuring size of the Windows TEMP directory

Posted by jpluimers on 2018/10/31

Due some issues in Windows, every now and then the Windows TEMP directory gets huge.

This script helps measuring the recursive size of that folder:

$WindowPath = [System.Environment]::GetFolderPath([System.Environment+SpecialFolder]::Windows)
$WindowTempPath = Join-Path -Path $WindowPath -ChildPath "TEMP"
$Result = Get-ChildItem $WindowTempPath -Recurse | Measure-Object -Property Length -Sum
$RecursiveSumInBytes = $Result.Sum
Write-Host "$RecursiveSumInBytes"

It uses these tricks:

  • Accessing native .NET types; in this case [WayBackEnvironment.SpecialFolder Enumeration (System) to get the “The Windows directory or SYSROOT. This corresponds to the %windir% or %SYSTEMROOT% environment variables. Added in the .NET Framework 4.”
  • Assuming the Windows TEMP directory is always named that way.
  • Using [WayBackJoin-Path to combine a base path with a child path without worrying about the path delimiter.
  • Recursively enumerating all items in that folder using [WayBackGet-ChildItem.
  • Aggregating with [WayBackMeasure-Object over the Length property of each Child-Item to determine their Sum.

After this, cleaning up uses two more tricks:

$WindowPath = [System.Environment]::GetFolderPath([System.Environment+SpecialFolder]::Windows)
$WindowTempPath = Join-Path -Path $WindowPath -ChildPath "TEMP"
Get-ChildItem $WindowTempPath -Recurse | foreach { Remove-Item $_.FullName -Recurse }

Inspired by:

–jeroen

Posted in CommandLine, Development, PowerShell, Software Development | Leave a Comment »

airbus-seclab/crashos

Posted by jpluimers on 2018/10/30

Cool repository, but contact your cloud provider before trying…: [WayBackairbus-seclab/crashos.

via:

–jeroen

Posted in Fusion, Hyper-V, KVM Kernel-based Virtual Machine, Power User, Proxmox, View, VirtualBox, Virtualization, VMware, VMware ESXi, VMware Workstation | Leave a Comment »

Delphi: create implementations in the same order as the interface section and sync method signatures

Posted by jpluimers on 2018/10/30

An interesting question at [WayBack] Previously i have not been big on IDE plugins.So i’m blatantly asking for pointers on the following, i.e. is there already such beasts? Or maybe i’m i… – Dany Marmur – Google+:

… asking for pointers on the following…

Crtl+C – create implementations in the same order as the interface section?
Ctrl+C – adjust the signature of the method the cursor is on interface if implementation and vice versa.

I realise they can both be very tricky to implement. Second function might not be able to handle overloads.

From that thread, a few things you might want to try:

  • [WayBack] ModelMaker Code Explorer can do both.
  • [Archive.is] DDevExtensions version 2.82 (2014-08-25): introduced “Added: Disable Alpha-Sort Class Completion (Default off)”
  • More recent versions of the IDE (I think 10.0) incorporated the “sync prototypes” action (Shift+Ctrl+Alt+P) from Castalia.

–jeroen

 

Posted in Castalia, Delphi, Development, Software Development | Leave a Comment »

Hear Marvin Gaye Sing “I Heard It Through the Grapevine” A Capella: The Haunting Isolated Vocal Track | Open Culture

Posted by jpluimers on 2018/10/30

Because Marvin Gaye’s mega-hit single, ‘I Heard it Through the Grapevine,’ turns 50 this today: [WayBack/Archive.is] Hear Marvin Gaye Sing “I Heard It Through the Grapevine” A Capella: The Haunting Isolated Vocal Track | Open Culture

Media below.

Via: [WayBack] Meredith Frost on Twitter: “Marvin Gaye’s isolated vocals for “I Heard It Through The Grapevine.” Simply incredible.”

–jeroen

Read the rest of this entry »

Posted in History | Leave a Comment »

xkcd: Free Speech

Posted by jpluimers on 2018/10/29

[WayBack] xkcd: Free Speech is worth repeating every now and then:

Title text: I can’t remember where I heard this, but someone once said that defending a position by citing free speech is sort of the ultimate concession; you’re saying that the most compelling thing you can say for your position is that it’s not literally illegal to express.

Transcript

Cueball: Public Service Announcement: The Right to Free Speech means the government can’t arrest you for what you say.
Cueball: It doesn’t mean that anyone else has to listen to your bullshit, or host you while you share it.
Cueball: The 1st Amendment doesn’t shield you from criticism or consequences.
Cueball: If you’re yelled at, boycotted, have your show canceled, or get banned from an Internet community, your free speech rights aren’t being violated.
Cueball: It’s just that the people listening think you’re an asshole,
[A picture of a partially open door is displayed.]
Cueball: And they’re showing you the door.

Be sure to read [WayBack] 1357: Free Speech – explain xkcd too.

–jeroen

Posted in History, Opinions | Leave a Comment »

Language Accessory Pack for Office – Office Support

Posted by jpluimers on 2018/10/29

For my link archive: [WayBack] Language Accessory Pack for Office – Office Support (short-link)

All supported languages for Office 2010, 2013 and 2066/newer versions.

–jeroen

Posted in Office, Office 2010, Office 2013, Office 2016, Power User, Windows | Leave a Comment »

Map of the internet precursor ARPA network as of May 1973 – David Newbury

Posted by jpluimers on 2018/10/29

Today’s internet day anniversary only started in 2005. But the networks leading to the internet are a lot older and date as far back as the late 1960s. In fact [WayBackInternet Day, October 29th refers to the first ARPA network communication taking place in 1969.

About two years ago, David Newbury published this piece of history from 1973: a map of the ARPA network (later called ARPANET).

[WayBackDavid Newbury: “Going through old papers my dad gave me, I found his map of the internet as of May 1973. The entire internet. https://t.co/0krvYoRGav”

The resulting thread has loads of more interesting pictures which I tried to save in the Wayback Machine as not even Wikipedia seems to have them.

It also includes a discussion on the meaning of the zig-zag line to Hawaii, the connection to London (UK that is, not USA) later that year and even earlier state of the late 1960s.

Worth reading (:

Here are some references to messages and links from the Twitter thread:

via [WayBackWell, that’s changed quite a bit in the meantime https://twitter.com/workergn…

–jeroen

Read the rest of this entry »

Posted in History | Leave a Comment »