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 September, 2016

Jark/FTDISample: Note: As of version 10556.0 the ftdi driver does no longer seem to work. A sample application showcasing the FTDI D2XX driver use in Windows Universal projects (UWP). This sample is tested on the Raspberry PI 2 with Windows IOT installed and a FTDI FT232R usb-to-serial adapter.

Posted by jpluimers on 2016/09/22

Source: Jark/FTDISample: Note: As of version 10556.0 the ftdi driver does no longer seem to work. A sample application showcasing the FTDI D2XX driver use in Windows Universal projects (UWP). This sample is tested on the Raspberry PI 2 with Windows IOT installed and a FTDI FT232R usb-to-serial adapter.

Yeah, I couldn’t get this working either. I’m not sure where ReadTimeout is actually used by the SerialDevice class internally. But I did end up getting something working by copying the timeout to a

Source: c# – Unable to use SerialDevice.ReadTimeout in Windows 10 IoT – Stack Overflow

Source: Raspberry Pi • View topic – Windows 10 IoT Core Simple Serial Example not working

Posted in Development, IoT Internet of Things, Network-and-equipment, Power User, Software Development | Leave a Comment »

grep: searching for pipes, optional characters

Posted by jpluimers on 2016/09/22

For my own reference as RegEx is a write-only language:

Search for pipes means just back-slash escaping them:

grep "\|S\|" products.txt > s-rated-products.txt

Search for optional charactes (in this case searching for both the singular and plural form of a word) can be done by grouping the optional part in parentheses:

grep -i "Movie(s)?" products.txt > movie-products.txt

Search for either OR:

grep -E "foo|bar" products.txt > foo-or-bar-products.txt
egrep "foo|bar" products.txt > foo-or-bar-products.txt

Note that the Borland grep does not support the OR syntax, but egrep does.

–jeroen

via:

Posted in Development, RegEx, Software Development | Leave a Comment »

Moeder na zoveelste zorgaanvraag: huilen staat me nader dan het lachen | NOS

Posted by jpluimers on 2016/09/21

http://nos.nl/artikel/2133703-moeder-na-zoveelste-zorgaanvraag-huilen-staat-me-nader-dan-het-lachen.html

Posted in Uncategorized | Leave a Comment »

com – Delphi [weak] reference attribute produces “Invalid class typecast” when implementation is in more than one library – Stack Overflow

Posted by jpluimers on 2016/09/21

Source: com – Delphi [weak] reference attribute produces “Invalid class typecast” when implementation is in more than one library – Stack Overflow

via: Interesting question and excellent answers about [weak] references (not to be) used with COM interfaces. – Ondrej Kelle – Google+

 

Posted in Delphi, Delphi 10.1 Berlin (BigBen), Development, Software Development | Leave a Comment »

Delphi Code Monkey: Delphi Features I Avoid Using And Believe Need to be Gradually Eliminated from Codebases

Posted by jpluimers on 2016/09/21

Hear, hear! Delphi Code Monkey: Delphi Features I Avoid Using And Believe Need to be Gradually Eliminated from Codebases

Posted in Delphi, Delphi 10 Seattle, Delphi 10.1 Berlin (BigBen), Delphi 2007, Delphi XE, Delphi XE2, Delphi XE3, Delphi XE4, Delphi XE5, Delphi XE6, Delphi XE7, Delphi XE8, Development, Software Development | Leave a Comment »

SPAM – Garantiebellen – +31172749040 – ‘Hang op! Klik weg! Bel uw bank!’ – #KVK doe er wat aan!

Posted by jpluimers on 2016/09/21

Onder het mom van ‘Hang op! Klik weg! Bel uw bank!’:

Ik werd net gebeld door +31172749040 die zich bekend maakten als “Garantie Bellen” en onder het mom van “partner van KPN” je proberen een nieuw abonnement met lagere tarieven aan te smeren.

Hun web-site meldt dat ze in Rotterdam zitten:

Hun algemene voorwaarden echter Utrecht:

Garantie Bellen, Churchilllaan 11, 3527 GV in Utrecht

Op de hele site geen informatie van het handelsregister, dus ze plegen sowieso een economisch delict:

Het niet naleven van de verplichting om het KvK-nummer te vermelden is een economisch delict (art. 1 sub 4 WED). Het is een overtreding die wordt gestraft met hechtenis van ten hoogste zes maanden, taakstraf of een geldboete van de vierde categorie (dat wil zeggen ten hoogste €19.000,-).

Die heb ik inmiddels zelf gevonden: 61233927 met als informatie:

Naam:  To the Max Callcenter B.V.
Vestigingsadres:    Westblaak  142  
Vestigingsplaats:   3012KM  Rotterdam
KvK-nummer: 61233927
Vestigingsnummer:   000030351928
Soort Inschrijving: Hoofdvestiging

To the Max Callcenter B.V.Hoofdvestiging
Bestaande handelsnamen
To the Max Callcenter B.V. | Garantiebellen | Garantie-bellen
Statutaire naam
To the Max Callcenter B.V.
KvK 61233927Vestigingsnr. 000030351928Westblaak 142 3012KMRotterdam
61233927 0000 000030351928 To the Max Callcenter BV. To the Max Callcenter BV, Garantiebellen, Garantie-bellen. Callcenters. …

–jeroen

Posted in Power User, SPAM | 3 Comments »

Tools to view Blue Screen info and Windows/Application Crash Reports

Posted by jpluimers on 2016/09/21

These NirSoft tools helped me finding out about some crashes that never made it to the event log:

At first I thought my own software development caused them, but In the end they were caused by buggy video drivers.

–jeroen

Posted in Development, Power User, Software Development, Windows | Leave a Comment »

Yes Dorothy, the .NET System.Array Class can throw you a NotSupportedException

Posted by jpluimers on 2016/09/21

It’s been in the System.Array class forever, but remarkably few people do know that it can throw you a NotSupportedException (for instance when calling Add, Insert, Remove, etc).

It does because it implements IList, but not all methods implemented from IList are valid.

And it also indicates that, as the IList Properties allows for IsFixedSize to return false.

A similar case is there for IsReadOnly: then you cannot even modify the values.

Ever since I started teaching .NET/C# classes almost 15 years ago, I warned:

beware when you use IList as not everybody implements all methods.

–jeroen

via:

Posted in .NET, .NET 1.x, .NET 2.0, .NET 3.0, .NET 3.5, .NET 4.0, .NET 4.5, C#, C# 1.0, C# 2.0, C# 3.0, C# 4.0, C# 5.0, C# 6 (Roslyn), Development, Software Development | Leave a Comment »

Studenten Universiteit Eindhoven ontwikkelen slimme stopcontacten – Beeld en geluid – Nieuws – Tweakers

Posted by jpluimers on 2016/09/20

Studenten van de Universiteit van Eindhoven hebben een stopcontact ontwikkeld dat bestuurd kan worden met een app en op basis van beweging en tijdschema’s apparaten aan- en uit kan zetten. De Aucasi Socket verschijnt aanstaande zondag op Kickstarter.

Source: Studenten Universiteit Eindhoven ontwikkelen slimme stopcontacten – Beeld en geluid – Nieuws – Tweakers

Posted in Power User | Leave a Comment »

How to downgrade firmware on HP OfficeJet Pro 8610 to allow using old or refilled cartridges – Brozkeff’s lala-land

Posted by jpluimers on 2016/09/20

Source: How to downgrade firmware on HP OfficeJet Pro 8610 to allow using old or refilled cartridges – Brozkeff’s lala-land

via:

Posted in HP Printer Drivers, Power User, Printer drivers, Windows | 2 Comments »