Tool for converting your PowerShell scripts is available from Roger Zander at his site
https://ps2exe.azurewebsites.net/
Source: https://github.com/rzander/PS2EXE/
Author Archives: alochbaum
Switching Domain and Site from GoDaddy
Today I finished switching from GoDaddy where I hosted my WordPress blog and other older sites created in iWeb. The main reason was difficulty in using “Let’s Encrypt Certificates”.
I was running my WordPress site under a Linux Host and I would have to change to their proprietary hosting service and manually renew the “Let’s Encrypt Certificate” every few months.
It took me over a week to get all the changes done, the longest delay was moving my registered domains. I was paying GoDaddy extra to keep my contact information private. So I released that privacy feature and got authorization codes to my new registrar, and GoDaddy emailed me that my domain would be freed on January 17th. Well on January 18th the domain was still with GoDaddy, so I called their technical support. After waiting on hold for 10 minutes, I got a support person who talked me through an instant release of the domain; slowly because the controls were taking nearly a minute to refresh in our web browsers. (If you want the shortcut: there is a drop down in the domain control screen in the subtitle bar that allows you to bypass any domain release delays.)
This is an end of an era for my iWeb created pages, they are leaving the web for good, they are not even saved in the way-back machine.
Update: after Go Daddy finally shut down hosting my site several images were broken. I don’t know where those images were uploaded to, because I moved my full media folder. While I was hosted at Go Daddy, the Word Press updates weren’t automatic and I had someone hack the site and put PDF files randomly on the pages, and Go Daddy called up to let me know the site was hacked and sold me a security scanning tool. (Which I bought because I was busy with other things, but paying for that was another reason I left their hosting.)
Using File Differences in Visual Studio
You can add several cool tools to Visual Studio by using the command window. The following example used the command window with Tools.DiffFiles <left file> <right file>.
Two ways to check NTP servers?
Here are the procedures to an NTP server on you network: on the Unix derived mac you use “ntdate -q <server name or ip>”, but on windows you use “w32tm /stripchart /computer:<server name or ip>”.
Now I started the w32tm /stripchart /computer:10.10.10.50 in power shell on my dell notebook and it started to running away with the message to use “Ctrl-Break” to stop. Here’s where it gets fun, the FN extra keys labeled in small orange letters don’t have anything called “Break”, it took me a few minutes to do Ctrl-FN-Insert to stop this. (The insert key is labeled with small orange letters as “Pause”.)
Synology DiskStation DS1517+
I have had a DS1515+ for over a year, and now I’m jealous of the new model, but not quite. The new DS1517+ has an option for a dual 10gigabit copper connection OR a card with two M2 slots.
The “OR” is why I not fully jealous, I see the future as both these; and this model is just stuck in the middle of now and the future.
Clonezilla is cool, but you need to know about uniqueid or “signature id”
I use a
nd recommend Clonezilla to clone hard drives, but if you want to use clone and the original disk at the same time; you might have to change the Signature ID in a windows command prompt.
Type DISKPART from a command prompt to get in to the tool.
Inside the tool “list disk” will list the disks.
To do anything with a disk you must type “select disk <number>” where <number> is ### field from the “list disk”.
After you selected a disk you can “uniqueid disk” to list the signature id; and “uniqueid disk ID=<signature id>” where <signature id> is different than the ones you are currently using.
To get back to the command prompt from the DISKPART tool just type “exit”.
I don’t believe this can be changed in the Disk Management control, which you can open from the command prompt by typing “diskmgmt.msc”, however this tool will show you if the clone is offline via signature conflict. After changing the signature with steps above you can use this tool to right click on disk (above the work offline, not on the partitions.)
Delegates in Swift, different from C#?
You can define a delegate inside one struct that points to another struct with functions you can use. I’m currently trying to understand the difference in C# delegates and swift ones.
Quick way to list programs using ports is
Aside
Quick way to list programs using IP ports on the local windows PC via command prompt is:
netstat -a -b
However, this can take a long time, using the netstat -abno method doesn't resolve names.
For GUI from the command prompt type resmon.exe and look at network tab under TCP connections.
Internet News Sites Pushing Videos Can Be Stopped
Aside
Internet News Sites Pushing Videos Can Be Stopped
In Firefox go to about:config and search for media.autoplay.enabled; set this value to false.
C# Delegates, Events and Lambda Functions
I just started exploring new techniques in c# programming.
- Delegates are pointers in C# to functions, possibly compiled in a different file.
- Events are a way for functions to subscribe via delegates to output from delegates, which are set up in delegate as a calling list.
- Lambda functions shown by the “=>” symbol in code allow a defining of an inline delegate.