Azulle Plus PC

- Posted in Uncategorized by

I just installed a new wireless keyboard and mouse on my ThinkCentre M53 desktop PC. That leaves me a smaller wireless keyboard I can use at work on our TR media computer, but I'll still need to get a wireless mouse for it. The Kensington lock to secure the Azulle Plus PC to the table on which it sits should arrive tomorrow.

Also, I've made the decision to move my blog to my NAS, as it doesn't require starting and stopping the Zwamp mini-server on Windows. I'll archive and backup the /cms directory regularly, for protection against data loss.

Zip a passed directory using c-sharp

- Posted in Coding by

If passed a valid subdirectory, this 60-line C# console program will zip it to .zip file that is located in same directory as executing code.

Encrypt to HTML

- Posted in Coding by

I can't remember who put me onto this nifty javascript utility. It was someone on the donationcoder forum, but it's been a long time ago and cursory search didn't turn up the relevant post.

Anyway, encrypt-to-HTML is a real jewel written by Steve Clay, a Floridian web dev. You supply it plain text, either by typing or pasting into a textbox, or else from loading it from a file, and it produces an encrypted HTML file containing your protected content. When you open the produced HTML file in a browser, you're provided with a password textbox. You must enter the correct password and then your plain text will be decrypted and shown to you.

You can download this utility here. It's a 12.6 Kb download.

This small download is downloadable here on my website.

Copy contents from one folder to another

- Posted in Coding by

Introducing the CopyTo method, which faithfully copies one directory's contents to another directory. The method listing is on Github here.

And here is a sample program demonstrating its usage.

Convert images to Base64 strings and vice versa

- Posted in Coding by

I wrote a library, crypt.dll that permits conversion of images to Base64 strings, and vice versa. The source code can be downloaded from github

No mamma at the church house

- Posted in Uncategorized by

Today I went to church alone. Susan, Hannah, and Grant went to Lexington to see Emma at the University of Kentucky. I had lunch with Matthew, Laura, and Mamaw — chili and grilled cheese. Snacked some this afternoon while re-watching a sci-fi movie.

Numerical encoding of text using c-sharp

- Posted in Coding by

It just so happens that any character we might use in a string has a numerical encoding. The alphabet ranges from 65-90 for capital letters A through Z, and from 97-122 for lowercase letters a-z. When we want to work with text encoding, we need to add the following namespace to the top of our source code file:

using System.Text;

The numerical representation of our English alphabet takes the form of unique numbers for each upper and lowercase letter, and these are stored in a variable type called byte. A byte is an 8-bit integer that can hold values from 0 to 255.

If we have a string variable named sChar, we can obtain its numerical encoding as follows, if we have referenced the System.Text namespace:

byte[] bt = Encoding.Default.GetBytes(sChar);

The reverse is encoding bytes to characters. If we have an array of bytes, we can convert each element’s value to its corresponding character:

byte[] bytes = {40, 80, 20};
char result;
foreach(byte number in bytes)
{
    result = Convert.ToChar(number);
    Console.WriteLine(“{0} converts to {1}.”, number, result);
}

You can download a sample program here.

Sort a list of DateTime objects

- Posted in Coding by

This sample program shows how, in C#, to sort a list of DateTime objects either in ascending or descending order.

October 12, 2019

- Posted in Uncategorized by

I have certain files and directories which accumulate more data over time. I had been storing these within the blog itself in a /cumulative directory, but that was making backups of the blog itself quite large. So I've repositoried them on my GDrive, pCloud, and box.com, as well as on my OneDrive. Just look for a folder on those cloud repos entitled cumulatives.

This shrank my fp-content.zip backup from ~52 Mb to a bit over 2 Mb.

My father when he was 12 years old

- Posted in Uncategorized by

Yesterday at work I got my Azulle Plus stick-PC moved to TR and connected to my 32" Samsung t.v. via HDMI cable. I plan to slowly build up a video library of psychoeducational group therapy material, which I will store on the attached King Dian 120 Gb external drive and on at least two external web repositories (box.com, pCloud).

My plan is to download educational video clips at home from YouTube and perhaps other sources, then copy them to storage attached to the Azulle Plus for playback on demand. That way, I'm not placing any undue stress of the work network.

It's 6:52 am. We've been up a few minutes, and discovered Emma already in Susan's chair and watching Inkheart :)

Last night after we got home from taking the family out to eat at Little Taste of Texas in Glasgow, Susan and I watched a movie titled Fractured, about a guilt-ridden alcoholic that becomes delusional, with tragic consequences.

Although I'm pretty sure I've got this picture archived on my TNAS and MyCloud devices, as well as multiple cloud services accounts, this morning I Facebooked this picture of dad taken in 1949 when he was twelve years old. I contacted dad's first cousin Sheila Frech via FB Messenger to see if she'd be interested in having the actual photograph. She is indeed, and I'll mail it to her from work on Monday.

I've mopped, which will please Susan. I think I'm going to perhaps read a bit on my Kindle then possibly nap a bit. I've mirrored my updated Flatpress blog to my ThinkCenter PC's primary drive and to my NAS this morning.

Susan has gone out to track down a couple of patients and see to them, and at 11:15 am Grant has finally risen. The girls have been up for awhile, especially Emma. It's a beautiful Fall day. I saw where Ken Hill ran in the Downtown Days' 5-K this morning. I may do 10-K this afternoon, depending on the weather and my disposition. If I don't I'm probably run tomorrow.

Page 3 of 4