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, 2020

The post linear TV and Radio era

Posted by jpluimers on 2020/08/21

Interesting thoughts on the post linear TV and Radio era.

Basically the only risk is to become part of a filter-buble.

Wir haben Netflix, Amazon Prime und Google Music All Access mit Youtube RED Erweiterung, und eine Buttonbar im Browser für die öffentlich-rechtlichen Streams.

Das wird auch alles genutzt. Der Sohn (8) insbesondere schaut nur online, er ist “das mußt Du jetzt so gucken, das kann man nicht anhalten und auch nicht nachgucken” nicht gewohnt und akzeptiert das auch nicht (“Das ist ja Scheiße, laß uns was anderes sehen.”).

Dinge, die nicht verfügbar sind werden getorrented. VPN mit Endpunkten in DE, UK, US ist vorhanden.

Am Fernseher ein Mac Mini und eine Chromecast. In allen Zimmern Sonos (2x Play5, 2x Play3, 2x Play1). Frau mit iPad pro und Macbook Air, Sohn mit MBP und bq Telefon, ich mit MBP und bq Telefon. Oh, und dann noch Steam Home Streaming.

Mir wurde in meiner alten Wohnung irgendwann mal die Hausantenne abgeklemmt, weil man jetzt einen Rahmenvertrag mit Kabel Deutschland geschlossen hatte. Fiel mir erst Wochen später auf. Seitdem gibt es kein lineares Fernsehen mehr. In der diesen Sommer bezogenen neuen Wohnung haben wir das TV-Kabel gar nicht erst angeschlossen. Hier gibt es im Wesentlichen drei Video- und zwei Audio-Quellen:

Video aus diversen Mediatheken etc. via Chromecast auf den AVR geschmissen.
Video von Netflix via Chromecast auf den AVR
Video vom lokalen Storage via Kodi/RasPi auf den AVR

Audio von Spotify auf den AVR
Audio von lokalem Storage via Kodi auf den AVR

Es steht eine Alexa rum, aber die ist im wesentlichen Eieruhr und Lichtschalter. Für das Hörbuch in der badewanne o.Ä. gibt es noch einen normalen direkt gekoppelten Bluetooth-Speaker.

Aber du hast ja nach den Formaten, nicht nach den Quellen gefragt.

Die Freundin suchtet Hörbücher weg wie ein Kettenraucher Zigarettenschachteln. Die kommen etwa zu gleichen Teilen aus Online-Leihen der lokalen Bibliotheken, von Audible oder tatsächlich von gekauften bzw. geschenkten CDs, die dann als erstes digitalisiert werden.

Ich höre gerade im Auto viel Musik, die dann meistens von Spotify, manchmal von der in Handarbeit beladenen SD-Karte kommt. Zur Arbeit fahre ich täglich knapp 30 Minuten mit dem Fahrrad und zurück, da gebe ich mir fast immer The Daily, manchmal vom DLF den Hintergrund oder den Politikpodcast. Filme und Serien kommen meistens von Netflix, manchmal aus Mediatheken oder dem lokalen Archiv. Kleinteiligere Unterhaltung kommt dann viel von YouTube: John Oliver, Daily Show, Jonathan Pie, PBS SpaceTime etc.

Die Dreijährige konsumiert Hörspiele hauptsächlich von digitalisierten CDs oder Spotify, “richtige” Musik am liebsten via Youtube, weil man da die Künstler am Fernseher auch sehen kann.

Linearen Rundfunk gibt es eigentlich nur noch, wenn meine Freundin alleine im Auto unterwegs ist – da hört sie gern Radio. Aber das ist auch zu 50% Gewohnheit von ihrem alten Auto, bei dem sie dazu gar keine Alternative hatte.

Das Angebot ist an sich schon so vielfältig, dass ich mich gar nicht frage, was mir da noch fehlt. Was mir ganz sicher nicht fehlt, ist ein Werbeanteil von 20% (The Daily hat ja auch Werbeunterbrechungen, aber die sind nicht intrusiv, 30% lauter als der Rest und 5 Minuten lang) und die Tatsache dass irgendein Programmdirektor auf Basis von wahrscheinlich ohnehin gefälschten GfK-Reports entscheidet, was ich anzuschauen habe.

Via [WayBack] Jeroen Wiert Pluimers – Google+: The European Parliament lives in #neuland: I have not used the RDS or a DAB equivalent of that in like 5 years.:

The European Parliament lives in #neuland: I have not used the RDS or a DAB equivalent of that in like 5 years.

Apart from the fact, that before that, in every car I used that had DAB/DAB+, the radio had far more reception issues (especially sudden drop-outs, often during traffic announcements) than FM, my life car life has become on-line.

For traffic info, I have Waze, Google Maps, FlitsNav, Flitsmeister, or even TomTom (though their 5 gigabyte map updates are killing me).

Heck I hardly listen radio in the car anyway: too many ads.

I listen to audio streams. I am almost 50, so most people younger than me – which is far over 50% of the population – will listen to the radio even less.

Via https://plus.google.com/+KristianK%C3%B6hntopp/posts/cQgEQ8sezy5

https://waze.com
https://maps.google.com
https://www.flitsservice.nl/mobiel/flitsnav/flitsnav.php
https://flitsmeister.nl
https://www.tomtom.com/en_gb/sat-nav/sat-nav-app/go-mobile

Related:

–jeroen

Posted in LifeHacker, Power User | Leave a Comment »

find – display only files starting with . (hidden) – Unix & Linux Stack Exchange

Posted by jpluimers on 2020/08/21

find . -type f -name '\.*' -print

Must work if you want list every hidden file down in the directory hierarchy.

This sort of works on Linux, but fails on VMware ESXi (on Linux it only works when applying -maxdepth 1, deeper levels fails because they list all files where the top directory starts with a .):

If you want hidden files and hidden directories, without . and .. :

find -regex '\./\..+' -print

This works on both Linux and VMware ESXi:

If you want hidden files and hidden directories, without . and .. :

find . \( -type f -o -type d \) -name '\.*' -print

Based on:

–jeroen

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

Santa Cruz County fire evacuations

Posted by jpluimers on 2020/08/21

Tweeps to follow:

Packing list for evacuation:

Maps

https://storymaps.arcgis.com/stories/f0121f7f2f0941afb3ed70529b2cee75

https://smco.community.zonehaven.com

https://www.sfchronicle.com/projects/california-fire-map/2020-czu-august-lightning-complex

https://caltopo.com/map.html#

https://twitter.com/erin_bergren/status/1296816829772582918

Finding your zone by address

Marking yourself safe:

https://m.facebook.com/crisisresponse/781051566056232/friends

Drinking water likely unsafe for a long time:

https://twitter.com/erin_bergren/status/1299971292922368000

https://twitter.com/erin_bergren/status/1299770836333756418

https://twitter.com/erin_bergren/status/1299774051234316291

https://twitter.com/erin_bergren/status/1299971292922368000

Updates:

Damaged properties map

https://twitter.com/StillSnarky/status/1298416060643729408

http://www.santacruzcounty.us/firerecovery/damageassessmentmap.aspx

Ben Lomond library on Alba Road is gone:

https://twitter.com/S68004838/status/1296922483359014912

https://twitter.com/erin_bergren/status/1296905259906764800

Our friends house burned down, but their animals seem OK:

[Wayback] CZU Lightning Complex Fire Upper Alba Road – Danny Thorpe

 

First picture of the smoke

https://twitter.com/JalapenoMan1/status/1296892763787554816

Cleaning up the ashes

Safe Ash Clean-Up During and After a Fire

Containment calculation

https://twitter.com/erin_bergren/status/1298471414845112323

Via

Rough map

View the CZU Lightning Complex fires on Google Maps
https://maps.app.goo.gl/QuasoWw8nbQBtr5o7

Posted in Uncategorized | Leave a Comment »

Tracing a packet journey using Linux tracepoints, perf and eBPF | Yet another enthusiast blog!

Posted by jpluimers on 2020/08/21

As I need this one day: [WayBackTracing a packet journey using Linux tracepoints, perf and eBPF | Yet another enthusiast blog!

Via: [WayBack] Great read about bpf – Kristian Köhntopp – Google+

–jeroen

Posted in Linux, Power User | Leave a Comment »

Delphi unit aliases: multiple ones can point to the same unit

Posted by jpluimers on 2020/08/20

A while ago, I had to figure out how to get some GExperts stuff cross-compile to older Delphi versions, because of UITypes usage that is not available in Delphi XE and lower (but much of what it contains is in the Types unit).

So I went down memory lane, as I remember in Delphi 2, the Delphi 1 WinTypes and WinProcs units were merged into the Windows unit.

A quick search revealed the stackoverflow entry mentioned here:

for the Delphi 1 -> Delphi 2 migrations, these aliases were used where multiple units pointed to the same one:

WinTypes=Windows;WinProcs=Windows;DbiProcs=BDE;DbiTypes=BDE;DbiErrs=BDE

See [WayBack] delphi – wintypes.dcu not found and code completion stops working – Stack Overflow

A longer search found this in my own archives:

File D2-CS-2.0\DEMOS\DOC\AUTOPROJ\AUTOPROJ.DOF

Has this line:

UnitAliases=WinTypes=Windows;WinProcs=Windows

Source: [WayBack] GX_GenericUtils.pas fails to build in Delphi 2007 because it uses unit UITypes · Issue #22 · jpluimers/GExperts · GitHub

(Ab)using unit aliases to fail on VCL

You can use unit aliases so your applications cannot use the VCL any more.

The trick is to alias Forms or VCL.Forms into something that does not exists, like Forms=__no_VCL_Forms__. The reason this works is that any VCL application uses the Forms unit because of the Forms.Application variable.

Reference:

–jeroen

Posted in Conference Topics, Conferences, Delphi, Development, Event, GExperts, Software Development | Leave a Comment »

Don’t use the TPL as it still has rough edges in unsuspected places

Posted by jpluimers on 2020/08/20

A few posts on why not to use the TPL and be very careful with regular RTL threading code:

In my opinion, threading code needs to be written and maintained by people that live and breath multi-threading. Over the years, RTL and TPL have not lived up to that, but a library like [WayBack] OmniThreadLibrary has.

If you still insist on the TPL, or want to break it, start with these posts: [WayBack] Parallel Programming Archives • Stephen Ball’s Technical Blog

–jeroen

Posted in Delphi, Development, Software Development | 1 Comment »

Happy birthday UDP!

Posted by jpluimers on 2020/08/20

Today it’s the 40th birthday of UDP. Or more precise: 40 years after [WayBackRFC 768 – User Datagram Protocol got submitted.

It is still used a lot today, so be sure to read more background on [WayBackUser Datagram Protocol – Wikipedia.

And of course on a birthday, it is nice to have few good jokes. So here we go:

[WayBack“I would tell you a joke about UDP, but you probably wouldn’t get it.” | Hacker News

[WayBack] I would tell you a joke about UDP, but you probably wouldn’t get it. So here’s a TCP joke | reddit.

[Archive.is]:

  • UDP packet bar walks into
  • The best thing about UDP jokes is that I don’t care if you get it. #sysadmin #IT

You can generate more yourself: udpjoke.py

–jeroen

Read the rest of this entry »

Posted in Communications Development, Conference Topics, Conferences, Development, Event, History, Internet protocol suite, UDP | Leave a Comment »

windows – Batch-file: undocumented wild card characters to check for file pattern existence – Stack Overflow

Posted by jpluimers on 2020/08/19

I wish I had known these undocumented wildcards exists like two decades ago: [WayBackwindows – Batch-file: Check if file with pattern exist – Stack Overflow, thanks Squashman:

There are undocumented wildcards that you can use to achieve this as well.

IF EXIST "D:\*Backup*.<" (
   ECHO "file exist"
) ELSE (
   ECHO "file not exist"
)

This wildcard option and other were discussed in length at the following two links.

From those links:

The following wildcard characters can be used in the pattern string.

Wildcard character  Meaning

* (asterisk)
Matches zero or more characters

? (question mark)
Matches a single character

" 
Matches either a period or zero characters beyond the name string

>
Matches any single character or, upon encountering a period or end of name string, advances the expression to the end of the set of contiguous >

<
Matches zero or more characters until encountering and matching the final . in the name

–jeroen

Posted in Batch-Files, Development, Scripting, Software Development | Leave a Comment »

TMonitor versus Critical sections revisited: when possible, use SRWL over TMonitor, then TCritical section

Posted by jpluimers on 2020/08/19

Via [WayBack] TMonitor vrs Critical sections revisited. Back then (https://www.delphitools.info/2013/06/06/tmonitor-vs-trtlcriticalsection/), it was found that critic… – Kiriakos Vlahos – Google+ as he re-did the measurements that DelphiTools did before Delphi XE5 came out:

Slim Reader/Writer Lock (SWRL) is even faster than TMonitor:

  • CriticalSection 0.035
  • TMonitor 0.019
  • SWRL 0.012

Of course if you have a speedy lock-free solution, that is always favourable, but few people know how to write lock free data structures or how to find the libraries (despite Julian Bucknall covering quite a few of them in Delphi back in the days).

Related:

–jeroen

Posted in Delphi, Development, Software Development | 4 Comments »

Nick Hodges on SOLID in TypeScript using Angular

Posted by jpluimers on 2020/08/18

For my link archive: after a long history of Delphi programming, Nick Hodges did a

SOLID series with TypeScript using Angular

They explain these SOLID – Wikipedia concepts:

  1. Single responsibility principle – Wikipedia
  2. Open–closed principle – Wikipedia
  3. Liskov substitution principle – Wikipedia
  4. Interface segregation principle – Wikipedia
  5. Dependency inversion principle – Wikipedia

After that, he did a series on:

[WayBack] Angular 101 – Angles and Types

More Angular and TypeScript

Since Nick likes that combination so much:

and his TypeScript series start:

and what started as a trilogy in 5 parts of his [WayBack] Angular 101 – Angles and Types became much longer:

Related:

DIID update

Nick also updated the public repository with the changes that did make it in his Dependency injection in Delphi book earlier:

–jeroen

Read the rest of this entry »

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