Installing swift on CentOS 8

Previously I worked with swift occasionally and using xCode only. There is my previous post with XML parser written in swift language. Here is my experience in swift installation on Linux platform with initial command line programming example. The first step – swift installation: It takes several minutes. Check swift version: # swift –version Swift… Read More »

ssh login troubleshooting

Suddenly ssh remote control to some of Mac devices stopped working, because remote host identification of that Mac device had been changed on remote side. Generally it means that the remote host key does not match the host key currently saved in /var/root/.ssh/known_hosts file. In other words the ssh handshake failed because host key verification… Read More »

Get screenshot programmatically

Several years ago I implemented a small project: “Optical character recognition (OCR) of Windows application screenshots”. It the first part of the project – the console application which makes screenshot of some process main window or capture entire screen image. The process is selected by its process ID which should specified as argument. When argument… Read More »

Uninstall TeamViewer Host from Mac mainly from terminal

I installed TeamViewer Host on Mac, used it and when tried to drug and drop TeamViewer Host to Trash the dialog “The item “TeamViewer Host” can’t be moved to the Trash because it’s open” was popped up. I did not find any option to quit TeamViewer Host from GUI, just I could minimize the TeamViewer… Read More »

Email Validation For Web Forms

Web response form with email validation looks more professional and help to protect from posting garbage entered in email email text field. Email validation is a hard problem and cannot guarantee 100% address authenticity. There is TCP Finger protocol, which can retrieve user information via email address and confirm that the email address is valid… Read More »

WordPress Again. Installation Guide.

Every time when I am applying WordPress I am googling for some installation details. I remember the whole procedure but always need to refresh some nuances. I am not doing this every day or ever every month and it is difficult to keep everything in memory. It takes time so I decided to create my… Read More »

Apple Silicon Disassembly

The source code of cpubrand_string.cpp presented in “Mac OSX CPU Information. Terminal and Programmatically” post and tested on Mac with Apple Silicon processor works the same when it was compiled on Mac with Apple Silicon or Intel processors as well. Apple announced new Rosetta system that allows users to run applications that contain x86_64 instructions… Read More »

Verify digital signature programmatically

It is continuation of “Signing Windows PE file on Linux” post to verify digital signature programmatically. For demonstration, I am using a previously signed usb-cubby-signed.exe file on Linux with self-signed certificate and Windows .Net API from X509Certificates namespace. The C# console application which determines if application is signed and presents certificate issuer if certificate has… Read More »

Finally Apple Silicon

This post is continuation of “Mac OSX CPU Information. Terminal and Programmatically”. Finally I got device with Apple Silicon processor. Virtual so far. I want to buy physical one when both happen it will be available in store and enough money in my pocket or account or whatever. I hope it happens soon. # sysctl… Read More »

Signing Windows PE file on Linux

The first question is: what for? There are a lot of reason for example someone download Windows application from Linux Apache server. The downloaded application is signed in runtime with different certificate according to selected license. Later during execution Windows application checks certificate type, revocation status and blocks or grants some features. Also application may… Read More »