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

Pathfinder, a fast GPU-based font rasterizer in Rust – pcwalton

Posted by jpluimers on 2018/04/25

When you thought font rendering was a done thing, read [WayBackPathfinder, a fast GPU-based font rasterizer in Rust – pcwalton

via: [WayBack] Text display is so critical, great speed is a MUST http://pcwalton.github.io/blog/2017/02/14/pathfinder/ – David Berneda – Google+

–jeroen

 

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

Reminder to self: check out “Debugging helper for TDataSet” and “debugger TDataSetVisualizer” for Delphi

Posted by jpluimers on 2018/04/24

So I won’t forget to check these out:

Via  [WayBackI like programming in Delphi, but I don’t particularly like writing applications that work with database backends… – Thomas Mueller (dummzeuch) – Google+ (thanks Stefan Glienke)

Read the rest of this entry »

Posted in Delphi, Delphi 10 Seattle, Delphi 2010, Delphi XE, Delphi XE2, Delphi XE3, Delphi XE4, Delphi XE5, Delphi XE6, Delphi XE7, Delphi XE8, Development, Software Development | 1 Comment »

How to embed a superscript Registered symbol in a Rave memo buffer.

Posted by jpluimers on 2018/04/24

Thomas Pfister came with a nice solution to this question:

[WayBack] Does anyone know how to embed a superscript Registered symbol in a Rave memo buffer? – Phillip Woon – Google+

Since Google has such bad indexing of G+, here is the solution:

procedure TForm4.RvSystem1Print(Sender: TObject);
const
  SuperscriptOn = RPTFPrefix + RPTFSuperscript + RPTFOn + RPTFSuffix; // from RpDefine.pas
  SuperscriptOff = RPTFPrefix + RPTFSuperscript + RPTFOff + RPTFSuffix;
var
  MemoBuf: TMemoBuf;
begin
  MemoBuf := TMemoBuf.Create;
  try
    MemoBuf.Text := 'Test' + SuperscriptOn + '®' + SuperscriptOff + ' Test';
    MemoBuf.PrintStart := 0.5;
    MemoBuf.PrintEnd := 8.0;

    with Sender as TBaseReport do begin
      PrintMemo(MemoBuf, 1, true);
    end;
  finally
    FreeAndNil(MemoBuf);
  end;
end;

–jeroen

Source: Does anyone know how to embed a superscript Registered symbol in a Rave memo …

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

use `zypper refresh` when this fails: openSUSE Tumbleweed upgrade – openSUSE

Posted by jpluimers on 2018/04/23

A while ago, when upgrading from CPE_NAME="cpe:/o:opensuse:tumbleweed:20170206" to CPE_NAME="cpe:/o:opensuse:tumbleweed:20170213":

aRetrieving: monitoring-tools-1.14.0-4.2.x86_64.rpm ......................................................................................................[error]
File './x86_64/monitoring-tools-1.14.0-4.2.x86_64.rpm' not found on medium 'http://download.opensuse.org/repositories/server:/monitoring/openSUSE_Tumbleweed/'

What happened is that the local zypper configuration was out of sync with the repository. A zypper refresh solved that.

So I expanded my zypper-twup alias to always include the zypper refresh.

Then I updated the documentation from [old WayBackopenSUSE:Tumbleweed upgrade – openSUSE to [new WayBackopenSUSE:Tumbleweed upgrade – openSUSE.

Note you need an account at https://login.microfocus.com to logon to the various opensuse.org sites to make edits or post messages.

–jeroen

 

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

If you never updated your Intel 320 SSD firmware, you should

Posted by jpluimers on 2018/04/23

Somehow I missed this:

So I made a file and an image backup, then updated the firmware.

–jeroen

Posted in Hardware, Power User, SSD | Leave a Comment »

A while ago, Windows 10 started to popup an Edge browser window after reboot without an internet connection

Posted by jpluimers on 2018/04/21

Does anyone know how to disable Edge popping up with a failed link www.msftconnecttest.com/redirect on machines blocked by a router?

This happens on the PC running Windows 10 Pro N (winver shows 1709 build 16299.371) that is not allowed to do any internet access.

Related: [WayBack] How to Find Out Which Build and Version of Windows 10 You Have | ilicomm

Later:

This seems to be intended as per these links:

TL;DR:

This can happen on Windows 8 and up when Windows thinks there is a partial network connection and a logon to a proxy or captive portal might solve the solution.

Allowing these in the proxy for port 80 solves the issue:

  •  *.msftncsi.com
  • *.msftconnecttest.com

--jeroen

Posted in Captive Portal, Internet, Power User, Windows, Windows 10 | Leave a Comment »

4 of the Best Critical Thinking Resources for Learners to Have

Posted by jpluimers on 2018/04/20

Critical thinking resources like these are some of the best ones for learners to have. Share them so they can use them as references and tools for development every day.

Source: [WayBack4 of the Best Critical Thinking Resources for Learners to Have.

Via: [WayBack] have to print it and put it on my desk, been trying to do this for a long time, but this is a really good list to have handy – Lars Fosdal – Google+

Sharing them and the pictures below.

–jeroen

Read the rest of this entry »

Posted in LifeHacker, Opinions, Power User | Leave a Comment »

Fixing a broken mirrored Intel Matrix RAID-1 machine

Posted by jpluimers on 2018/04/20

A while ago I had an Intel Matrix RAID-1 pair of drives that got broken. One of them turned “red” and – since both drives were only a few serial numbers apart – the other was giving issues the moment I tried fiddling with it.

These actions failed:

  1. Windows image backup – would end up with a “blue” screen indicating Windows 10 had a problem and was trying to collect data
  2. Paragon HDM
    1. Migrating the OS to a brand new RAID-1 set
    2. P2V
  3. Disk2vhd would hang at the 100% completion mark

What had succeeded was a regular Windows backup (a non-image one).

This is what I finally did to get it working again:

  1. Kill disk2vhd after it hung a few hours at the 100% completion mark
  2. Verify with
  3. Mark the VHD file as online using diskpart (first atach the vdisk, select disk, then mark it online)
  4. Verify with chkdsk that the image was in fact without problems
  5. Detach the VHD file using diskpart
  6. Copy the VHD file to a HDD that Paragon HDM would recognise
  7. Use Paragon HDM to perform a V2P copy
    • Paragon expects a .VD file, but if you ask it to use all file types, it does recognise that VHD files contain disk images

–jeroen

References:

Posted in NTFS, Power User, Windows, Windows 10 | Leave a Comment »

How to switch off the sound on the desktop Hangout? – Google Product Forums

Posted by jpluimers on 2018/04/20

For a long time, this was hard: [Archive.isHow to switch off the sound on the desktop Hangout? – Google Product Forums.

A lot of people complained, often in a not so nice way.

The solution – that took years to appear – however now is very simple:

Click the options hamburger on the top left, then remove the checkmark for “Sounds for incoming messages”

Posted in Google, GoogleHangouts, Hangouts, Power User | Leave a Comment »

Tip for the doc team: make TMonitor.Enter docs more clear on non-blocking re-entry from the same thread

Posted by jpluimers on 2018/04/19

Even when the Delphi team was large, the documentation was lacking, so with the reduced Delphi team size, I don’t have high expectations of the below to get fixed.

But since much of the post Delphi 7 run-time library looks a lot like the .NET core, you can usually fallback to the Microsoft documentation.

Tip for the doc team: make http://docwiki.embarcadero.com/Libraries/en/System.TMonitor.Enter more clear. Especially that if the same thread calls TMonitor.Enter more than one time, it will allow entry without blocking as per System.Threading.Monitor.Enter Method (Object) documentation https://msdn.microsoft.com/en-us/library/de0542zz

(note that this got introduced in Delphi XE3: http://docwiki.embarcadero.com/Libraries/XE3/en/System.TMonitor.Enter)

–jeroen

via: [WayBack] Tip for the doc team: make http://docwiki.embarcadero.com/Libraries/Seattle/e…

Posted in Delphi, Delphi 10 Seattle, Delphi 10.1 Berlin (BigBen), Delphi XE3, Delphi XE4, Delphi XE5, Delphi XE6, Delphi XE7, Delphi XE8, Development, Software Development | 2 Comments »