Author Archive

C#: Using Declaration

January 7th, 2020
Posted in C# | No Comments

Introduced in C# 8.0, the using-declaration language enhancement eliminates nested using-statements. The following code: using System.IO; class Program { static void Main(string[] args) { var filename = “hello.txt”; using (var stream = new FileStream(filename, FileMode.Create)) { using (var writer = new StreamWriter(stream)) { writer.WriteLine(“Hello, World!”); } } } } is improved with using declarations to […]

Encrypting /home on Dell XPS 13 7390

November 28th, 2019
Posted in Security | 1 Comment

The following procedure adds encryption to pre-installed Ubuntu 18.04 on Dell XPS 13 7390: Within a console or terminal, sudo into root. $ sudo su – Create LUKS encrypted file container (20,000 Megabytes or 20GB, for example). # dd status=progress if=/dev/zero bs=1M count=20000 of=/.hostname-home.img # cryptsetup luksFormat /.hostname-home.img Open LUKS encrypted file container. # cryptsetup […]

Dell XPS 13 7390

November 8th, 2019

As the holiday season nears, a new laptop for developing skills and personal projects is worth considering. The Dell XPS 13 7390, with an Intel® Core™ i7-10710U processor, is really enticing. Windows 10 Pro, an M.2 PCIe NVMe SDD, and non-touch display are motivating as well. As with other big purchases, a decision will require […]

Cross-Thread Manipulation of Windows Forms Controls

November 5th, 2019
Posted in Windows | No Comments

System.InvalidOperationException: Cross-thread operation not valid. Control “textBox1” accessed from a thread other than the thread it was created on. The above exception was encountered while placing a function call with long execution time on a separate thread and having that thread update a TextBox with status updates. The issue arises, because “access to Windows Forms […]

Getting an A+ on SSL Labs Report

October 31st, 2019

blog.stevedoria.net received an A+ overall rating from Qualys SSL Labs.