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,839 other subscribers

Author Archive

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 »

Install on openSUSE / SLES – Zabbix.org

Posted by jpluimers on 2018/10/29

Interesting: [Archive.isInstall on openSUSE / SLES – Zabbix.org is possible and there are packages for this on the OpenSuSE site itself for the various kinds of distributions.

For instance, Tumbleweed is at http://download.opensuse.org/repositories/server:/monitoring/openSUSE_Tumbleweed/

Good introductions on Zabbix are via [WayBackStephen Fritz on Systems Engineering: Installing and Configuring Basic Zabbix Functionality on Debian Wheezy who has a [Archive.is] zabbix tag.

Other links are at Welcome to workaround.org – tips around open source and Linux stuff.

And there is www.zabbix.com/documentation

–jeroen

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

121 – NOS Teletekst: xs4all and T-mobile internet outage

Posted by jpluimers on 2018/10/28

This time I was not affected, but many people were by the [WayBack] 121 – NOS Teletekst: xs4all and T-mobile outage:

                      NOS Teletekst 121 

    Kort nieuws binnenland              
                                        

 Tienduizenden mensen zijn getroffen  
 door een internetstoring.Abonnees van  
 verschillende providers zoals T-Mobile 
 en XS4ALL,hebben er last van.De        
 problemen begonnen om 2.30 uur en doen 
 zich verspreid over het land voor.Een  
 technisch team van KPN is op zoek naar 
 de oorzaak van de storing.XS4ALL meldt 
 dat 35.000 abonnees zijn gedupeerd.    
                                        
 In Barneveld zijn bij een schuurbrand
 20.000 kippen omgekomen.De brand brak  
 vanmorgen vroeg uit;de oorzaak is nog  
 onbekend.De brandweer wist te voorkomen
 dat een tweede schuur ook vlam vatte.  
 Dit jaar zijn al veel dieren gedood    
 door stalbranden.Zo kwamen bij twee    
 branden in Limburg 35.000 kippen om.   

 volgende  nieuws  weer&verkeer  sport  

Trying to grab the above page as PNG, made me find the old teletekst web-interface is directory browseable, but dysfunctional: [WayBack] Directory Listing For /webtekst.html/

Lots of people were affected as you can see at

[Archive.is] Storingsoverzicht | Allestoringen Realtime overzicht van storingen. Problemen? Wij helpen je verder.

They are powered by Downdetector which has a world-wide monitoring service [Archive.is] Status overview | Downdetector, and seems situated in Haarlem. Cool thing: they have similar sites for many other countries:

allestörungen.at | allestörungen.ch | allestörungen.de | allestoringen.be | allestoringen.nl | aussieoutages.com | canadianoutages.com | downdetector.ae | downdetector.cl |downdetector.co.nz | downdetector.co.za | downdetector.com | downdetector.com.ar | downdetector.com.br | downdetector.dk | downdetector.es | downdetector.fi | downdetector.fr |downdetector.hk | downdetector.ie | downdetector.in | downdetector.it | downdetector.jp | downdetector.mx | downdetector.no | downdetector.pl | downdetector.pt | downdetector.ru |downdetector.se | downdetector.sg | downdetector.co.uk | downdetector.web.tr |

Usually uptime robot warns me on time, and this time my connections were OK:

Read the rest of this entry »

Posted in History, Power User | Leave a Comment »