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 4,262 other subscribers

Archive for March 18th, 2021

ESP32-CAM Surveillance Camera (Home Assistant Compatible) – YouTube

Posted by jpluimers on 2021/03/18

Cool little camera.

Absolutely not HD, but comes in very handy for instance when monitoring things from a remote location.

More at [WayBack] ESP32-CAM Video Streaming Web Server (works with Home Assistant) | Random Nerd Tutorials

Build an IP Surveillance Camera with the ESP32-CAM board. The ESP32 Camera hosts a video streaming web server that integrates with Home Assistant or in any browser.

–jeroen

Read the rest of this entry »

Posted in Development, ESP32, Hardware Development, Hardware Interfacing | Leave a Comment »

Image upscaling: waifu2x tool (open source)

Posted by jpluimers on 2021/03/18

Originally created for anime upscaling, the waifu2x algorithm works very well for photos, logos and text.

It is open source too!

More information:

 

–jeroen

Read the rest of this entry »

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

delphi – Invalid floating point operation calling Trunc() – Stack Overflow

Posted by jpluimers on 2021/03/18

I bumped into [WayBack] delphi – Invalid floating point operation calling Trunc() – Stack Overflow, while searching for what might have tests like these fail:

TValueRecordTests.Int64_Through_Value_Container_via_Currency_Intermediate_Is_Identity_Operation(9223372036854775807) = 9223372036854775807
EInvalidOp with message 'Invalid floating point operation'

In the end, it reproduced with a much more simple test case class of which the first three fail (EInvalidOp with message 'Invalid floating point operation'), but the last three succeed.

Lesson learned:

  • High(Int64) stored in Currency or Double, will not Trunc back to their original value.
  • Low(Int64) stored in Currency will not Trunc back to their original value.
  • Testing boundary conditions is nice, but be sure what your boundary conditions are in the first place.

Read the rest of this entry »

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