Author Archives: smike19

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 »

HTTP for IPv6 from client side

IPv6 works in the same way as IPv4 address, however IPv6 addresses must be enclosed in square brackets. It is required to avoid conflict with colon character in protocol specification: http:, https:, ftp:. To test IPv6 installed Apache server on Ubuntu device and enable IPv6. The IPv6 of my Ubuntu device is “2002:ac7:fa01:c71e:250:56ff:fe98:bebd”. First I… Read More »

Python deals the cards

About 10 years ago I applied to software developer position and received the following coding exercise: Using Java/Python, please design and implement the classes for a card game (pick any game, Poker for example), which uses an ordered deck of cards, containing 52 cards divided in 13 ranks (A, 2, 3, 4, 5, 6, 7,… Read More »